diff --git a/airport.zip b/airport.zip new file mode 100644 index 0000000..4da587f Binary files /dev/null and b/airport.zip differ diff --git a/airport/.htaccess b/airport/.htaccess new file mode 100644 index 0000000..0519ecb --- /dev/null +++ b/airport/.htaccess @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/401.a61ddb94.gif b/airport/assets/401.a61ddb94.gif new file mode 100644 index 0000000..cd6e0d9 Binary files /dev/null and b/airport/assets/401.a61ddb94.gif differ diff --git a/airport/assets/401.b3f55b8a.css b/airport/assets/401.b3f55b8a.css new file mode 100644 index 0000000..86b9a06 --- /dev/null +++ b/airport/assets/401.b3f55b8a.css @@ -0,0 +1 @@ +.errPage-container[data-v-980b8710]{width:800px;max-width:100%;margin:100px auto}.errPage-container .pan-back-btn[data-v-980b8710]{background:#008489;color:#fff;border:none!important}.errPage-container .pan-gif[data-v-980b8710]{margin:0 auto;display:block}.errPage-container .pan-img[data-v-980b8710]{display:block;margin:0 auto;width:100%}.errPage-container .text-jumbo[data-v-980b8710]{font-size:60px;font-weight:700;color:#484848}.errPage-container .list-unstyled[data-v-980b8710]{font-size:14px}.errPage-container .list-unstyled li[data-v-980b8710]{padding-bottom:5px}.errPage-container .list-unstyled a[data-v-980b8710]{color:#008489;text-decoration:none}.errPage-container .list-unstyled a[data-v-980b8710]:hover{text-decoration:underline} diff --git a/airport/assets/401.ce836d35.js b/airport/assets/401.ce836d35.js new file mode 100644 index 0000000..b418861 --- /dev/null +++ b/airport/assets/401.ce836d35.js @@ -0,0 +1 @@ +import{_ as h,r as f,d as n,o as m,c as b,e as t,w as o,m as r,l as e,f as g,s as k,p as x,q as w}from"./index.79832097.js";const v="/airport/assets/401.a61ddb94.gif";const c=s=>(x("data-v-980b8710"),s=s(),w(),s),y={class:"errPage-container"},I=c(()=>e("h1",{class:"text-jumbo text-ginormous"}," 401\u9519\u8BEF! ",-1)),B=c(()=>e("h2",null,"\u60A8\u6CA1\u6709\u8BBF\u95EE\u6743\u9650\uFF01",-1)),C=c(()=>e("h6",null,"\u5BF9\u4E0D\u8D77\uFF0C\u60A8\u6CA1\u6709\u8BBF\u95EE\u6743\u9650\uFF0C\u8BF7\u4E0D\u8981\u8FDB\u884C\u975E\u6CD5\u64CD\u4F5C\uFF01\u60A8\u53EF\u4EE5\u8FD4\u56DE\u4E3B\u9875\u9762",-1)),G={class:"list-unstyled"},N={class:"link-type"},S=["src"],V={__name:"401",setup(s){let{proxy:a}=k();const l=f(v+"?"+ +new Date);function d(){a.$route.query.noGoBack?a.$router.push({path:"/"}):a.$router.go(-1)}return($,q)=>{const i=n("el-button"),p=n("router-link"),_=n("el-col"),u=n("el-row");return m(),b("div",y,[t(i,{icon:"arrow-left",class:"pan-back-btn",onClick:d},{default:o(()=>[r(" \u8FD4\u56DE ")]),_:1}),t(u,null,{default:o(()=>[t(_,{span:12},{default:o(()=>[I,B,C,e("ul",G,[e("li",N,[t(p,{to:"/"},{default:o(()=>[r(" \u56DE\u9996\u9875 ")]),_:1})])])]),_:1}),t(_,{span:12},{default:o(()=>[e("img",{src:g(l),width:"313",height:"428",alt:"Girl has dropped her ice cream."},null,8,S)]),_:1})]),_:1})])}}},D=h(V,[["__scopeId","data-v-980b8710"]]);export{D as default}; diff --git a/airport/assets/401.ce836d35.js.gz b/airport/assets/401.ce836d35.js.gz new file mode 100644 index 0000000..cdf5ab0 Binary files /dev/null and b/airport/assets/401.ce836d35.js.gz differ diff --git a/airport/assets/404.40956bff.css b/airport/assets/404.40956bff.css new file mode 100644 index 0000000..c8c321f --- /dev/null +++ b/airport/assets/404.40956bff.css @@ -0,0 +1 @@ +.wscn-http404-container[data-v-5945313b]{transform:translate(-50%,-50%);position:absolute;top:40%;left:50%}.wscn-http404[data-v-5945313b]{position:relative;width:1200px;padding:0 50px;overflow:hidden}.wscn-http404 .pic-404[data-v-5945313b]{position:relative;float:left;width:600px;overflow:hidden}.wscn-http404 .pic-404__parent[data-v-5945313b]{width:100%}.wscn-http404 .pic-404__child[data-v-5945313b]{position:absolute}.wscn-http404 .pic-404__child.left[data-v-5945313b]{width:80px;top:17px;left:220px;opacity:0;animation-name:cloudLeft-5945313b;animation-duration:2s;animation-timing-function:linear;animation-fill-mode:forwards;animation-delay:1s}.wscn-http404 .pic-404__child.mid[data-v-5945313b]{width:46px;top:10px;left:420px;opacity:0;animation-name:cloudMid-5945313b;animation-duration:2s;animation-timing-function:linear;animation-fill-mode:forwards;animation-delay:1.2s}.wscn-http404 .pic-404__child.right[data-v-5945313b]{width:62px;top:100px;left:500px;opacity:0;animation-name:cloudRight-5945313b;animation-duration:2s;animation-timing-function:linear;animation-fill-mode:forwards;animation-delay:1s}@keyframes cloudLeft-5945313b{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@keyframes cloudMid-5945313b{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@keyframes cloudRight-5945313b{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}.wscn-http404 .bullshit[data-v-5945313b]{position:relative;float:left;width:300px;padding:30px 0;overflow:hidden}.wscn-http404 .bullshit__oops[data-v-5945313b]{font-size:32px;font-weight:700;line-height:40px;color:#1482f0;opacity:0;margin-bottom:20px;animation-name:slideUp-5945313b;animation-duration:.5s;animation-fill-mode:forwards}.wscn-http404 .bullshit__headline[data-v-5945313b]{font-size:20px;line-height:24px;color:#222;font-weight:700;opacity:0;margin-bottom:10px;animation-name:slideUp-5945313b;animation-duration:.5s;animation-delay:.1s;animation-fill-mode:forwards}.wscn-http404 .bullshit__info[data-v-5945313b]{font-size:13px;line-height:21px;color:gray;opacity:0;margin-bottom:30px;animation-name:slideUp-5945313b;animation-duration:.5s;animation-delay:.2s;animation-fill-mode:forwards}.wscn-http404 .bullshit__return-home[data-v-5945313b]{display:block;float:left;width:110px;height:36px;background:#1482f0;border-radius:100px;text-align:center;color:#fff;opacity:0;font-size:14px;line-height:36px;cursor:pointer;animation-name:slideUp-5945313b;animation-duration:.5s;animation-delay:.3s;animation-fill-mode:forwards}@keyframes slideUp-5945313b{0%{transform:translateY(60px);opacity:0}to{transform:translateY(0);opacity:1}} diff --git a/airport/assets/404.40956bff.css.gz b/airport/assets/404.40956bff.css.gz new file mode 100644 index 0000000..7b1a9d0 Binary files /dev/null and b/airport/assets/404.40956bff.css.gz differ diff --git a/airport/assets/404.4f9ec086.js b/airport/assets/404.4f9ec086.js new file mode 100644 index 0000000..28e1e16 --- /dev/null +++ b/airport/assets/404.4f9ec086.js @@ -0,0 +1 @@ +import{_ as o,v as i,d as l,o as d,c as n,l as s,x as r,f as p,e as h,w as u,y as v,m,p as b,q as g}from"./index.79832097.js";const f="/airport/assets/404.538aa4d7.png",a="/airport/assets/404_cloud.98e7ac66.png";const e=t=>(b("data-v-5945313b"),t=t(),g(),t),x={class:"wscn-http404-container"},w={class:"wscn-http404"},S=v('
404404404404
',1),k={class:"bullshit"},y=e(()=>s("div",{class:"bullshit__oops"}," 404\u9519\u8BEF! ",-1)),I={class:"bullshit__headline"},N=e(()=>s("div",{class:"bullshit__info"}," \u5BF9\u4E0D\u8D77\uFF0C\u60A8\u6B63\u5728\u5BFB\u627E\u7684\u9875\u9762\u4E0D\u5B58\u5728\u3002\u5C1D\u8BD5\u68C0\u67E5URL\u7684\u9519\u8BEF\uFF0C\u7136\u540E\u6309\u6D4F\u89C8\u5668\u4E0A\u7684\u5237\u65B0\u6309\u94AE\u6216\u5C1D\u8BD5\u5728\u6211\u4EEC\u7684\u5E94\u7528\u7A0B\u5E8F\u4E2D\u627E\u5230\u5176\u4ED6\u5185\u5BB9\u3002 ",-1)),V={__name:"404",setup(t){let c=i(()=>"\u627E\u4E0D\u5230\u7F51\u9875\uFF01");return(B,C)=>{const _=l("router-link");return d(),n("div",x,[s("div",w,[S,s("div",k,[y,s("div",I,r(p(c)),1),N,h(_,{to:"/index",class:"bullshit__return-home"},{default:u(()=>[m(" \u8FD4\u56DE\u9996\u9875 ")]),_:1})])])])}}},D=o(V,[["__scopeId","data-v-5945313b"]]);export{D as default}; diff --git a/airport/assets/404.4f9ec086.js.gz b/airport/assets/404.4f9ec086.js.gz new file mode 100644 index 0000000..0e3f430 Binary files /dev/null and b/airport/assets/404.4f9ec086.js.gz differ diff --git a/airport/assets/404.538aa4d7.png b/airport/assets/404.538aa4d7.png new file mode 100644 index 0000000..3d8e230 Binary files /dev/null and b/airport/assets/404.538aa4d7.png differ diff --git a/airport/assets/404.b46c7eb9.js b/airport/assets/404.b46c7eb9.js new file mode 100644 index 0000000..65b79d6 --- /dev/null +++ b/airport/assets/404.b46c7eb9.js @@ -0,0 +1 @@ +const s="/airport/assets/404.ddd506c6.svg";export{s as default}; diff --git a/airport/assets/404.ddd506c6.svg b/airport/assets/404.ddd506c6.svg new file mode 100644 index 0000000..6df5019 --- /dev/null +++ b/airport/assets/404.ddd506c6.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/404_cloud.98e7ac66.png b/airport/assets/404_cloud.98e7ac66.png new file mode 100644 index 0000000..c6281d0 Binary files /dev/null and b/airport/assets/404_cloud.98e7ac66.png differ diff --git a/airport/assets/VehicleMovementControlRefactored.96e4a3ca.js b/airport/assets/VehicleMovementControlRefactored.96e4a3ca.js new file mode 100644 index 0000000..6f246f6 --- /dev/null +++ b/airport/assets/VehicleMovementControlRefactored.96e4a3ca.js @@ -0,0 +1,78 @@ +import{W as Gh,r as lt,C as lo,F as Ga,D as un,_ as uo,o as co,c as fo,l as H,x as Wt,G as Lh,Q as Nh,j as Fh,p as Dh,q as kh,V as Vh,X as Bh,e as hr,f as Uh,H as $h}from"./index.79832097.js";var Wh=function(){function i(){this.disposed=!1}return i.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},i.prototype.disposeInternal=function(){},i}();const jh=Wh;function Xh(i,e,t){for(var n,r,a=t||Vi,s=0,o=i.length,h=!1;s>1),r=+a(i[n],e),r<0?s=n+1:(o=n,h=!r);return h?s:~s}function Vi(i,e){return i>e?1:i0){for(r=1;r0?r-1:r:i[r-1]-e0||t&&s===0)})}function Hh(){return!0}function E1(){return!1}function Cr(){}function qh(i){var e=!1,t,n,r;return function(){var a=Array.prototype.slice.call(arguments);return(!e||this!==r||!qi(a,n))&&(e=!0,r=this,n=a,t=i.apply(this,arguments)),t}}function X(){return function(){throw new Error("Unimplemented abstract method.")}()}var zh=0;function yt(i){return i.ol_uid||(i.ol_uid=String(++zh))}var Kh="6.15.1",Ve=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",w1=Ve.indexOf("firefox")!==-1,Jh=Ve.indexOf("safari")!==-1&&Ve.indexOf("chrom")==-1;Jh&&(Ve.indexOf("version/15.4")>=0||Ve.match(/cpu (os|iphone os) 15_4 like mac os x/));var x1=Ve.indexOf("webkit")!==-1&&Ve.indexOf("edge")==-1,A1=Ve.indexOf("macintosh")!==-1,C1=typeof devicePixelRatio<"u"?devicePixelRatio:1,Ur=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,Zh=typeof Image<"u"&&Image.prototype.decode,P1=function(){var i=!1;try{var e=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return i}(),Qh=globalThis&&globalThis.__extends||function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),tl=function(i){Qh(e,i);function e(t){var n=this,r="v"+Kh.split("-")[0],a="Assertion failed. See https://openlayers.org/en/"+r+"/doc/errors/#"+t+" for details.";return n=i.call(this,a)||this,n.code=t,n.name="AssertionError",n.message=a,n}return e}(Error);const vo=tl;function Ot(i,e){if(!i)throw new vo(e)}new Array(6);function Fe(){return[1,0,0,1,0,0]}function el(i,e,t,n,r,a,s){return i[0]=e,i[1]=t,i[2]=n,i[3]=r,i[4]=a,i[5]=s,i}function il(i,e){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i}function wt(i,e){var t=e[0],n=e[1];return e[0]=i[0]*t+i[2]*n+i[4],e[1]=i[1]*t+i[3]*n+i[5],e}function nl(i,e,t){return el(i,e,0,0,t,0,0)}function Bi(i,e,t,n,r,a,s,o){var h=Math.sin(a),l=Math.cos(a);return i[0]=n*l,i[1]=r*h,i[2]=-n*h,i[3]=r*l,i[4]=s*n*l-o*n*h+e,i[5]=s*r*h+o*r*l+t,i}function rl(i,e){var t=al(e);Ot(t!==0,32);var n=e[0],r=e[1],a=e[2],s=e[3],o=e[4],h=e[5];return i[0]=s/t,i[1]=-r/t,i[2]=-a/t,i[3]=n/t,i[4]=(a*h-s*o)/t,i[5]=-(n*h-r*o)/t,i}function al(i){return i[0]*i[3]-i[1]*i[2]}var as;function sl(i){var e="matrix("+i.join(", ")+")";if(Ur)return e;var t=as||(as=document.createElement("div"));return t.style.transform=e,t.style.transform}const pt={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function T1(i){for(var e=pe(),t=0,n=i.length;tr&&(h=h|pt.RIGHT),oa&&(h=h|pt.ABOVE),h===pt.UNKNOWN&&(h=pt.INTERSECTING),h}function pe(){return[1/0,1/0,-1/0,-1/0]}function Ui(i,e,t,n,r){return r?(r[0]=i,r[1]=e,r[2]=t,r[3]=n,r):[i,e,t,n]}function $r(i){return Ui(1/0,1/0,-1/0,-1/0,i)}function hl(i,e){var t=i[0],n=i[1];return Ui(t,n,t,n,e)}function _o(i,e,t,n,r){var a=$r(r);return mo(a,i,e,t,n)}function po(i,e){return i[0]==e[0]&&i[2]==e[2]&&i[1]==e[1]&&i[3]==e[3]}function ll(i,e){return e[0]i[2]&&(i[2]=e[2]),e[1]i[3]&&(i[3]=e[3]),i}function yo(i,e){e[0]i[2]&&(i[2]=e[0]),e[1]i[3]&&(i[3]=e[1])}function mo(i,e,t,n,r){for(;te[0]?n[0]=i[0]:n[0]=e[0],i[1]>e[1]?n[1]=i[1]:n[1]=e[1],i[2]=e[0]&&i[1]<=e[3]&&i[3]>=e[1]}function dl(i){return i[2]=s&&m<=h),!n&&!!(a&pt.RIGHT)&&!(r&pt.RIGHT)&&(y=v-(c-h)*g,n=y>=o&&y<=l),!n&&!!(a&pt.BELOW)&&!(r&pt.BELOW)&&(m=c-(v-o)/g,n=m>=s&&m<=h),!n&&!!(a&pt.LEFT)&&!(r&pt.LEFT)&&(y=v-(c-s)*g,n=y>=o&&y<=l)}return n}function xo(i,e){var t=e.getExtent(),n=Wr(i);if(e.canWrapX()&&(n[0]=t[2])){var r=kt(t),a=Math.floor((n[0]-t[0])/r),s=a*r;i[0]-=s,i[2]-=s}return i}function _l(i,e){if(e.canWrapX()){var t=e.getExtent();if(!isFinite(i[0])||!isFinite(i[2]))return[[t[0],i[1],t[2],i[3]]];xo(i,e);var n=kt(t);if(kt(i)>n)return[[t[0],i[1],t[2],i[3]]];if(i[0]t[2])return[[i[0],i[1],t[2],i[3]],[t[0],i[1],i[2]-n,i[3]]]}return[i]}function ve(i,e,t){return Math.min(Math.max(i,e),t)}var pl=function(){var i;return"cosh"in Math?i=Math.cosh:i=function(e){var t=Math.exp(e);return(t+1/t)/2},i}(),G1=function(){var i;return"log2"in Math?i=Math.log2:i=function(e){return Math.log(e)*Math.LOG2E},i}();function yl(i,e,t,n,r,a){var s=r-t,o=a-n;if(s!==0||o!==0){var h=((i-t)*s+(e-n)*o)/(s*s+o*o);h>1?(t=r,n=a):h>0&&(t+=s*h,n+=o*h)}return si(i,e,t,n)}function si(i,e,t,n){var r=t-i,a=n-e;return r*r+a*a}function L1(i){for(var e=i.length,t=0;tr&&(r=s,n=a)}if(r===0)return null;var o=i[n];i[n]=i[t],i[t]=o;for(var h=t+1;h=0;c--){f[c]=i[c][e]/i[c][c];for(var v=c-1;v>=0;v--)i[v][e]-=i[v][c]*f[c]}return f}function Ni(i){return i*Math.PI/180}function N1(i,e){var t=i%e;return t*e<0?t+e:t}function fe(i,e,t){return i+t*(e-i)}function Ao(i,e){var t=Math.pow(10,e);return Math.round(i*t)/t}function F1(i,e){return Math.floor(Ao(i,e))}function D1(i,e){return Math.ceil(Ao(i,e))}var ml=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,Sl=/^([a-z]*)$|^hsla?\(.*\)$/i;function Co(i){return typeof i=="string"?i:Po(i)}function Ml(i){var e=document.createElement("div");if(e.style.color=i,e.style.color!==""){document.body.appendChild(e);var t=getComputedStyle(e).color;return document.body.removeChild(e),t}else return""}var El=function(){var i=1024,e={},t=0;return function(n){var r;if(e.hasOwnProperty(n))r=e[n];else{if(t>=i){var a=0;for(var s in e)(a++&3)===0&&(delete e[s],--t)}r=wl(n),e[n]=r,++t}return r}}();function Pr(i){return Array.isArray(i)?i:El(i)}function wl(i){var e,t,n,r,a;if(Sl.exec(i)&&(i=Ml(i)),ml.exec(i)){var s=i.length-1,o=void 0;s<=4?o=1:o=2;var h=s===4||s===8;e=parseInt(i.substr(1+0*o,o),16),t=parseInt(i.substr(1+1*o,o),16),n=parseInt(i.substr(1+2*o,o),16),h?r=parseInt(i.substr(1+3*o,o),16):r=255,o==1&&(e=(e<<4)+e,t=(t<<4)+t,n=(n<<4)+n,h&&(r=(r<<4)+r)),a=[e,t,n,r/255]}else i.indexOf("rgba(")==0?(a=i.slice(5,-1).split(",").map(Number),ss(a)):i.indexOf("rgb(")==0?(a=i.slice(4,-1).split(",").map(Number),a.push(1),ss(a)):Ot(!1,14);return a}function ss(i){return i[0]=ve(i[0]+.5|0,0,255),i[1]=ve(i[1]+.5|0,0,255),i[2]=ve(i[2]+.5|0,0,255),i[3]=ve(i[3],0,1),i}function Po(i){var e=i[0];e!=(e|0)&&(e=e+.5|0);var t=i[1];t!=(t|0)&&(t=t+.5|0);var n=i[2];n!=(n|0)&&(n=n+.5|0);var r=i[3]===void 0?1:Math.round(i[3]*100)/100;return"rgba("+e+","+t+","+n+","+r+")"}var xl=function(){function i(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return i.prototype.clear=function(){this.cache_={},this.cacheSize_=0},i.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},i.prototype.expire=function(){if(this.canExpireCache()){var e=0;for(var t in this.cache_){var n=this.cache_[t];(e++&3)===0&&!n.hasListener()&&(delete this.cache_[t],--this.cacheSize_)}}},i.prototype.get=function(e,t,n){var r=os(e,t,n);return r in this.cache_?this.cache_[r]:null},i.prototype.set=function(e,t,n,r){var a=os(e,t,n);this.cache_[a]=r,++this.cacheSize_},i.prototype.setSize=function(e){this.maxCacheSize_=e,this.expire()},i}();function os(i,e,t){var n=t?Co(t):"null";return e+":"+i+":"+n}var hs=new xl,Al=function(){function i(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}return i.prototype.preventDefault=function(){this.defaultPrevented=!0},i.prototype.stopPropagation=function(){this.propagationStopped=!0},i}();const Dn=Al,To={PROPERTYCHANGE:"propertychange"};var Be=typeof Object.assign=="function"?Object.assign:function(i,e){if(i==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(i),n=1,r=arguments.length;n0:!1},e.prototype.removeEventListener=function(t,n){var r=this.listeners_&&this.listeners_[t];if(r){var a=r.indexOf(n);a!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(r[a]=Cr,++this.pendingRemovals_[t]):(r.splice(a,1),r.length===0&&delete this.listeners_[t]))}},e}(jh);const jr=Tl,Gt={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 Yt(i,e,t,n,r){if(n&&n!==i&&(t=t.bind(n)),r){var a=t;t=function(){i.removeEventListener(e,t),a.apply(this,arguments)}}var s={target:i,type:e,listener:t};return i.addEventListener(e,t),s}function Tr(i,e,t,n){return Yt(i,e,t,n,!0)}function Ht(i){i&&i.target&&(i.target.removeEventListener(i.type,i.listener),Fa(i))}var Il=globalThis&&globalThis.__extends||function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),zi=function(i){Il(e,i);function e(){var t=i.call(this)||this;return t.on=t.onInternal,t.once=t.onceInternal,t.un=t.unInternal,t.revision_=0,t}return e.prototype.changed=function(){++this.revision_,this.dispatchEvent(Gt.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,n){if(Array.isArray(t)){for(var r=t.length,a=new Array(r),s=0;s=i.maxResolution)return!1;var n=e.zoom;return n>i.minZoom&&n<=i.maxZoom}const Fl=Nl;function B1(i,e){return i[0]+=+e[0],i[1]+=+e[1],i}function Dl(i,e){for(var t=!0,n=i.length-1;n>=0;--n)if(i[n]!=e[n]){t=!1;break}return t}function U1(i,e){var t=Math.cos(e),n=Math.sin(e),r=i[0]*t-i[1]*n,a=i[1]*t+i[0]*n;return i[0]=r,i[1]=a,i}function $1(i,e){return i[0]*=e,i[1]*=e,i}function W1(i,e){var t=i[0]-e[0],n=i[1]-e[1];return t*t+n*n}function kl(i,e){if(e.canWrapX()){var t=kt(e.getExtent()),n=Oo(i,e,t);n&&(i[0]-=n*t)}return i}function Oo(i,e,t){var n=e.getExtent(),r=0;if(e.canWrapX()&&(i[0]n[2])){var a=t||kt(n);r=Math.floor((i[0]-n[0])/a)}return r}var Vl=globalThis&&globalThis.__extends||function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Bl=function(i){Vl(e,i);function e(t,n,r,a){var s=i.call(this,t)||this;return s.inversePixelTransform=n,s.frameState=r,s.context=a,s}return e}(Dn);const Ul=Bl;var j1="ol-hidden",$l="ol-selectable",X1="ol-unselectable",Y1="ol-control",H1="ol-collapsed",Wl=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"),us=["style","variant","weight","size","lineHeight","family"],bo=function(i){var e=i.match(Wl);if(!e)return null;for(var t={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},n=0,r=us.length;n0;)this.pop()},e.prototype.extend=function(t){for(var n=0,r=t.length;n1?t:2,a=e;a===void 0&&(r>2?a=i.slice():a=new Array(n));for(var s=0;scr?o=cr:o<-cr&&(o=-cr),a[s+1]=o}return a}function lu(i,e,t){var n=i.length,r=t>1?t:2,a=e;a===void 0&&(r>2?a=i.slice():a=new Array(n));for(var s=0;s=l?e[o+u]:h[u];return s}}function mu(i,e,t,n){var r=ct(i),a=ct(e);ji(r,a,_s(t)),ji(a,r,_s(n))}function Su(i,e){if(i===e)return!0;var t=i.getUnits()===e.getUnits();if(i.getCode()===e.getCode())return t;var n=Ba(i,e);return n===Va&&t}function Ba(i,e){var t=i.getCode(),n=e.getCode(),r=Fo(t,n);return r||(r=Do),r}function ya(i,e){var t=ct(i),n=ct(e);return Ba(t,n)}function ps(i,e,t){var n=ya(e,t);return n(i,void 0,i.length)}var Mu=null;function Q1(){return Mu}function ty(i,e){return i}function ey(i,e){return _a&&!Dl(i,[0,0])&&i[0]>=-180&&i[0]<=180&&i[1]>=-90&&i[1]<=90&&(_a=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),i}function Eu(i,e){return i}function wu(i,e){return i}function ys(i,e,t){return function(n){var r,a;if(i.canWrapX()){var s=i.getExtent(),o=kt(s);n=n.slice(0),a=Oo(n,i,o),a&&(n[0]=n[0]-a*o),n[0]=ve(n[0],s[0],s[2]),n[1]=ve(n[1],s[1],s[3]),r=t(n)}else r=t(n);return a&&e.canWrapX()&&(r[0]+=a*kt(e.getExtent())),r}}function xu(){pa(ds),pa(gs),yu(gs,ds,hu,lu)}xu();const vt={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"};function oi(i,e,t,n,r,a){for(var s=a||[],o=0,h=e;h1)f=t;else if(c>0){for(var v=0;vr&&(r=l),a=o,s=h}return r}function $a(i,e,t,n,r){for(var a=0,s=t.length;a0;){for(var f=l.pop(),c=l.pop(),v=0,g=i[c],m=i[c+1],y=i[f],E=i[f+1],S=c+n;Sv&&(u=S,v=C)}v>r&&(h[(u-e)/n]=1,c+n0&&m>v)&&(g<0&&y0&&y>g)){l=f,u=c;continue}a[s++]=l,a[s++]=u,o=l,h=u,l=f,u=c}}return a[s++]=l,a[s++]=u,s}function Uo(i,e,t,n,r,a,s,o){for(var h=0,l=t.length;ha&&(l-o)*(a-h)-(r-o)*(u-h)>0&&s++:u<=a&&(l-o)*(a-h)-(r-o)*(u-h)<0&&s--,o=l,h=u}return s!==0}function Ha(i,e,t,n,r,a){if(t.length===0||!ri(i,e,t[0],n,r,a))return!1;for(var s=1,o=t.length;sA&&(l=(u+f)/2,Ha(i,e,t,n,l,g)&&(p=l,A=C)),u=f}return isNaN(p)&&(p=r[a]),s?(s.push(p,g,A),s):[p,g,A]}function Hu(i,e,t,n,r){for(var a=[],s=0,o=t.length;s=r[0]&&a[2]<=r[2]||a[1]>=r[1]&&a[3]<=r[3]?!0:Xo(i,e,t,n,function(s,o){return gl(r,s,o)}):!1}function qu(i,e,t,n,r){for(var a=0,s=t.length;a0}function qo(i,e,t,n,r){for(var a=r!==void 0?r:!1,s=0,o=t.length;s0&&i[1]>0}function Gr(i,e){return Array.isArray(i)?i:(e===void 0?e=[i,i]:(e[0]=i,e[1]=i),e)}var tc=globalThis&&globalThis.__extends||function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Et={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},ec=function(i){tc(e,i);function e(t){var n=i.call(this)||this;n.on,n.once,n.un,n.options=t,n.id=t.id,n.insertFirst=t.insertFirst!==void 0?t.insertFirst:!0,n.stopEvent=t.stopEvent!==void 0?t.stopEvent:!0,n.element=document.createElement("div"),n.element.className=t.className!==void 0?t.className:"ol-overlay-container "+$l,n.element.style.position="absolute",n.element.style.pointerEvents="auto";var r=t.autoPan;return r&&typeof r!="object"&&(r={animation:t.autoPanAnimation,margin:t.autoPanMargin}),n.autoPan=r||!1,n.rendered={transform_:"",visible:!0},n.mapPostrenderListenerKey=null,n.addChangeListener(Et.ELEMENT,n.handleElementChanged),n.addChangeListener(Et.MAP,n.handleMapChanged),n.addChangeListener(Et.OFFSET,n.handleOffsetChanged),n.addChangeListener(Et.POSITION,n.handlePositionChanged),n.addChangeListener(Et.POSITIONING,n.handlePositioningChanged),t.element!==void 0&&n.setElement(t.element),n.setOffset(t.offset!==void 0?t.offset:[0,0]),n.setPositioning(t.positioning||"top-left"),t.position!==void 0&&n.setPosition(t.position),n}return e.prototype.getElement=function(){return this.get(Et.ELEMENT)},e.prototype.getId=function(){return this.id},e.prototype.getMap=function(){return this.get(Et.MAP)||null},e.prototype.getOffset=function(){return this.get(Et.OFFSET)},e.prototype.getPosition=function(){return this.get(Et.POSITION)},e.prototype.getPositioning=function(){return this.get(Et.POSITIONING)},e.prototype.handleElementChanged=function(){ql(this.element);var t=this.getElement();t&&this.element.appendChild(t)},e.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Hl(this.element),Ht(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();if(t){this.mapPostrenderListenerKey=Yt(t,nu.POSTRENDER,this.render,this),this.updatePixelPosition();var n=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?n.insertBefore(this.element,n.childNodes[0]||null):n.appendChild(this.element),this.performAutoPan()}},e.prototype.render=function(){this.updatePixelPosition()},e.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},e.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.performAutoPan()},e.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},e.prototype.setElement=function(t){this.set(Et.ELEMENT,t)},e.prototype.setMap=function(t){this.set(Et.MAP,t)},e.prototype.setOffset=function(t){this.set(Et.OFFSET,t)},e.prototype.setPosition=function(t){this.set(Et.POSITION,t)},e.prototype.performAutoPan=function(){this.autoPan&&this.panIntoView(this.autoPan)},e.prototype.panIntoView=function(t){var n=this.getMap();if(!(!n||!n.getTargetElement()||!this.get(Et.POSITION))){var r=this.getRect(n.getTargetElement(),n.getSize()),a=this.getElement(),s=this.getRect(a,[Xl(a),Yl(a)]),o=t||{},h=o.margin===void 0?20:o.margin;if(!ii(r,s)){var l=s[0]-r[0],u=r[2]-s[2],f=s[1]-r[1],c=r[3]-s[3],v=[0,0];if(l<0?v[0]=l-h:u<0&&(v[0]=Math.abs(u)+h),f<0?v[1]=f-h:c<0&&(v[1]=Math.abs(c)+h),v[0]!==0||v[1]!==0){var g=n.getView().getCenterInternal(),m=n.getPixelFromCoordinateInternal(g);if(!m)return;var y=[m[0]+v[0],m[1]+v[1]],E=o.animation||{};n.getView().animateInternal({center:n.getCoordinateFromPixelInternal(y),duration:E.duration,easing:E.easing})}}}},e.prototype.getRect=function(t,n){var r=t.getBoundingClientRect(),a=r.left+window.pageXOffset,s=r.top+window.pageYOffset;return[a,s,a+n[0],s+n[1]]},e.prototype.setPositioning=function(t){this.set(Et.POSITIONING,t)},e.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},e.prototype.updatePixelPosition=function(){var t=this.getMap(),n=this.getPosition();if(!t||!t.isRendered()||!n){this.setVisible(!1);return}var r=t.getPixelFromCoordinate(n),a=t.getSize();this.updateRenderedPosition(r,a)},e.prototype.updateRenderedPosition=function(t,n){var r=this.element.style,a=this.getOffset(),s=this.getPositioning();this.setVisible(!0);var o=Math.round(t[0]+a[0])+"px",h=Math.round(t[1]+a[1])+"px",l="0%",u="0%";s=="bottom-right"||s=="center-right"||s=="top-right"?l="-100%":(s=="bottom-center"||s=="center-center"||s=="top-center")&&(l="-50%"),s=="bottom-left"||s=="bottom-center"||s=="bottom-right"?u="-100%":(s=="center-left"||s=="center-center"||s=="center-right")&&(u="-50%");var f="translate(".concat(l,", ").concat(u,") translate(").concat(o,", ").concat(h,")");this.rendered.transform_!=f&&(this.rendered.transform_=f,r.transform=f,r.msTransform=f)},e.prototype.getOptions=function(){return this.options},e}(ci);const ic=ec;var nc=globalThis&&globalThis.__extends||function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),rc=function(i){nc(e,i);function e(t){var n=i.call(this)||this;if(n.on,n.once,n.un,n.id_=void 0,n.geometryName_="geometry",n.style_=null,n.styleFunction_=void 0,n.geometryChangeKey_=null,n.addChangeListener(n.geometryName_,n.handleGeometryChanged_),t)if(typeof t.getSimplifiedGeometry=="function"){var r=t;n.setGeometry(r)}else{var a=t;n.setProperties(a)}return n}return e.prototype.clone=function(){var t=new e(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());var n=this.getGeometry();n&&t.setGeometry(n.clone());var r=this.getStyle();return r&&t.setStyle(r),t},e.prototype.getGeometry=function(){return this.get(this.geometryName_)},e.prototype.getId=function(){return this.id_},e.prototype.getGeometryName=function(){return this.geometryName_},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.handleGeometryChange_=function(){this.changed()},e.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Ht(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=Yt(t,Gt.CHANGE,this.handleGeometryChange_,this)),this.changed()},e.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},e.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?ac(t):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()},e}(ci);function ac(i){if(typeof i=="function")return i;var e;if(Array.isArray(i))e=i;else{Ot(typeof i.getZIndex=="function",41);var t=i;e=[t]}return function(){return e}}const Mr=rc;function zo(i,e,t,n,r,a,s){var o,h,l=(t-e)/n;if(l===1)o=e;else if(l===2)o=e,h=r;else if(l!==0){for(var u=i[e],f=i[e+1],c=0,v=[0],g=e+n;g1?s:2,A=a||new Array(p),g=0;g>1;rt;){if(n-t>600){var a=n-t+1,s=e-t+1,o=Math.log(a),h=.5*Math.exp(2*o/3),l=.5*Math.sqrt(o*h*(a-h)/a)*(s-a/2<0?-1:1),u=Math.max(t,Math.floor(e-s*h/a+l)),f=Math.min(n,Math.floor(e+(a-s)*h/a+l));Zo(i,e,u,f,r)}var c=i[e],v=t,g=n;for(sn(i,t,e),r(i[n],c)>0&&sn(i,t,n);v0;)g--}r(i[t],c)===0?sn(i,t,g):(g++,sn(i,g,n)),g<=e&&(t=g+1),e<=g&&(n=g-1)}}function sn(i,e,t){var n=i[e];i[e]=i[t],i[t]=n}function mc(i,e){return ie?1:0}class Qo{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data;const n=[];if(!vr(e,t))return n;const r=this.toBBox,a=[];for(;t;){for(let s=0;s=0&&a[t].children.length>this._maxEntries;)this._split(a,t),t--;this._adjustParentBBoxes(r,a,t)}_split(e,t){const n=e[t],r=n.children.length,a=this._minEntries;this._chooseSplitAxis(n,a,r);const s=this._chooseSplitIndex(n,a,r),o=xi(n.children.splice(s,n.children.length-s));o.height=n.height,o.leaf=n.leaf,Mi(n,this.toBBox),Mi(o,this.toBBox),t?e[t-1].children.push(o):this._splitRoot(n,o)}_splitRoot(e,t){this.data=xi([e,t]),this.data.height=e.height+1,this.data.leaf=!1,Mi(this.data,this.toBBox)}_chooseSplitIndex(e,t,n){let r,a=1/0,s=1/0;for(let o=t;o<=n-t;o++){const h=cn(e,0,o,this.toBBox),l=cn(e,o,n,this.toBBox),u=xc(h,l),f=ea(h)+ea(l);u=t;l--){const u=e.children[l];fn(o,e.leaf?a(u):u),h+=dr(o)}return h}_adjustParentBBoxes(e,t,n){for(let r=n;r>=0;r--)fn(t[r],e)}_condense(e){for(let t=e.length-1,n;t>=0;t--)e[t].children.length===0?t>0?(n=e[t-1].children,n.splice(n.indexOf(e[t]),1)):this.clear():Mi(e[t],this.toBBox)}}function Sc(i,e,t){if(!t)return e.indexOf(i);for(let n=0;n=i.minX&&e.maxY>=i.minY}function xi(i){return{children:i,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function xs(i,e,t,n,r){const a=[e,t];for(;a.length;){if(t=a.pop(),e=a.pop(),t-e<=n)continue;const s=e+Math.ceil((t-e)/n/2)*n;yc(i,s,e,t,r),a.push(e,s,s,t)}}const ot={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};var Ac=function(){function i(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=Gr(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}return i.prototype.clone=function(){var e=this.getScale();return new i({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},i.prototype.getOpacity=function(){return this.opacity_},i.prototype.getRotateWithView=function(){return this.rotateWithView_},i.prototype.getRotation=function(){return this.rotation_},i.prototype.getScale=function(){return this.scale_},i.prototype.getScaleArray=function(){return this.scaleArray_},i.prototype.getDisplacement=function(){return this.displacement_},i.prototype.getDeclutterMode=function(){return this.declutterMode_},i.prototype.getAnchor=function(){return X()},i.prototype.getImage=function(e){return X()},i.prototype.getHitDetectionImage=function(){return X()},i.prototype.getPixelRatio=function(e){return 1},i.prototype.getImageState=function(){return X()},i.prototype.getImageSize=function(){return X()},i.prototype.getOrigin=function(){return X()},i.prototype.getSize=function(){return X()},i.prototype.setDisplacement=function(e){this.displacement_=e},i.prototype.setOpacity=function(e){this.opacity_=e},i.prototype.setRotateWithView=function(e){this.rotateWithView_=e},i.prototype.setRotation=function(e){this.rotation_=e},i.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=Gr(e)},i.prototype.listenImageChange=function(e){X()},i.prototype.load=function(){X()},i.prototype.unlistenImageChange=function(e){X()},i}();const th=Ac;function te(i){return Array.isArray(i)?Po(i):i}var Cc=globalThis&&globalThis.__extends||function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Pc=function(i){Cc(e,i);function e(t){var n=this,r=t.rotateWithView!==void 0?t.rotateWithView:!1;return n=i.call(this,{opacity:1,rotateWithView:r,rotation:t.rotation!==void 0?t.rotation:0,scale:t.scale!==void 0?t.scale:1,displacement:t.displacement!==void 0?t.displacement:[0,0],declutterMode:t.declutterMode})||this,n.canvas_=void 0,n.hitDetectionCanvas_=null,n.fill_=t.fill!==void 0?t.fill:null,n.origin_=[0,0],n.points_=t.points,n.radius_=t.radius!==void 0?t.radius:t.radius1,n.radius2_=t.radius2,n.angle_=t.angle!==void 0?t.angle:0,n.stroke_=t.stroke!==void 0?t.stroke:null,n.size_=null,n.renderOptions_=null,n.render(),n}return e.prototype.clone=function(){var t=this.getScale(),n=new e({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 n.setOpacity(this.getOpacity()),n},e.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var n=this.getDisplacement();return[t[0]/2-n[0],t[1]/2+n[1]]},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.setFill=function(t){this.fill_=t,this.render()},e.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},e.prototype.getImage=function(t){var n=this.canvas_[t];if(!n){var r=this.renderOptions_,a=ie(r.size*t,r.size*t);this.draw_(r,a,t),n=a.canvas,this.canvas_[t]=n}return n},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.size_},e.prototype.getImageState=function(){return ot.LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.setStroke=function(t){this.stroke_=t,this.render()},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.calculateLineJoinSize_=function(t,n,r){if(n===0||this.points_===1/0||t!=="bevel"&&t!=="miter")return n;var a=this.radius_,s=this.radius2_===void 0?a:this.radius2_;if(ah&&(this.instructions.push([j.CUSTOM,h,u,t,r,be]),this.hitDetectionInstructions.push([j.CUSTOM,h,u,t,a||r,be]));break;case"Point":l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),u=this.coordinates.length,this.instructions.push([j.CUSTOM,h,u,t,r]),this.hitDetectionInstructions.push([j.CUSTOM,h,u,t,a||r]);break}this.endGeometry(n)},e.prototype.beginGeometry=function(t,n){this.beginGeometryInstruction1_=[j.BEGIN_GEOMETRY,n,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[j.BEGIN_GEOMETRY,n,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t=this.hitDetectionInstructions;t.reverse();var n,r=t.length,a,s,o=-1;for(n=0;nthis.maxLineWidth&&(this.maxLineWidth=r.lineWidth,this.bufferedMaxExtent_=null)}else r.strokeStyle=void 0,r.lineCap=void 0,r.lineDash=null,r.lineDashOffset=void 0,r.lineJoin=void 0,r.lineWidth=void 0,r.miterLimit=void 0},e.prototype.createFill=function(t){var n=t.fillStyle,r=[j.SET_FILL_STYLE,n];return typeof n!="string"&&r.push(!0),r},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[j.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,n){var r=t.fillStyle;(typeof r!="string"||t.currentFillStyle!=r)&&(r!==void 0&&this.instructions.push(n.call(this,t)),t.currentFillStyle=r)},e.prototype.updateStrokeStyle=function(t,n){var r=t.strokeStyle,a=t.lineCap,s=t.lineDash,o=t.lineDashOffset,h=t.lineJoin,l=t.lineWidth,u=t.miterLimit;(t.currentStrokeStyle!=r||t.currentLineCap!=a||s!=t.currentLineDash&&!qi(t.currentLineDash,s)||t.currentLineDashOffset!=o||t.currentLineJoin!=h||t.currentLineWidth!=l||t.currentMiterLimit!=u)&&(r!==void 0&&n.call(this,t),t.currentStrokeStyle=r,t.currentLineCap=a,t.currentLineDash=s,t.currentLineDashOffset=o,t.currentLineJoin=h,t.currentLineWidth=l,t.currentMiterLimit=u)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var n=[j.END_GEOMETRY,t];this.instructions.push(n),this.hitDetectionInstructions.push(n)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=ol(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;La(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(eh);const Bn=Bc;var Uc=globalThis&&globalThis.__extends||function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),$c=function(i){Uc(e,i);function e(t,n,r,a){var s=i.call(this,t,n,r,a)||this;return s.hitDetectionImage_=null,s.image_=null,s.imagePixelRatio_=void 0,s.anchorX_=void 0,s.anchorY_=void 0,s.height_=void 0,s.opacity_=void 0,s.originX_=void 0,s.originY_=void 0,s.rotateWithView_=void 0,s.rotation_=void 0,s.scale_=void 0,s.width_=void 0,s.declutterMode_=void 0,s.declutterImageWithText_=void 0,s}return e.prototype.drawPoint=function(t,n){if(!!this.image_){this.beginGeometry(t,n);var r=t.getFlatCoordinates(),a=t.getStride(),s=this.coordinates.length,o=this.appendFlatPointCoordinates(r,a);this.instructions.push([j.DRAW_IMAGE,s,o,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([j.DRAW_IMAGE,s,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(n)}},e.prototype.drawMultiPoint=function(t,n){if(!!this.image_){this.beginGeometry(t,n);var r=t.getFlatCoordinates(),a=t.getStride(),s=this.coordinates.length,o=this.appendFlatPointCoordinates(r,a);this.instructions.push([j.DRAW_IMAGE,s,o,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([j.DRAW_IMAGE,s,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(n)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,i.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,n){var r=t.getAnchor(),a=t.getSize(),s=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=r[0],this.anchorY_=r[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=a[1],this.opacity_=t.getOpacity(),this.originX_=s[0],this.originY_=s[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=a[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=n},e}(Bn);const Wc=$c;var jc=globalThis&&globalThis.__extends||function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Xc=function(i){jc(e,i);function e(t,n,r,a){return i.call(this,t,n,r,a)||this}return e.prototype.drawFlatCoordinates_=function(t,n,r,a){var s=this.coordinates.length,o=this.appendFlatLineCoordinates(t,n,r,a,!1,!1),h=[j.MOVE_TO_LINE_TO,s,o];return this.instructions.push(h),this.hitDetectionInstructions.push(h),r},e.prototype.drawLineString=function(t,n){var r=this.state,a=r.strokeStyle,s=r.lineWidth;if(!(a===void 0||s===void 0)){this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(t,n),this.hitDetectionInstructions.push([j.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,Cn,Pn],ai);var o=t.getFlatCoordinates(),h=t.getStride();this.drawFlatCoordinates_(o,0,o.length,h),this.hitDetectionInstructions.push(Le),this.endGeometry(n)}},e.prototype.drawMultiLineString=function(t,n){var r=this.state,a=r.strokeStyle,s=r.lineWidth;if(!(a===void 0||s===void 0)){this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(t,n),this.hitDetectionInstructions.push([j.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset],ai);for(var o=t.getEnds(),h=t.getFlatCoordinates(),l=t.getStride(),u=0,f=0,c=o.length;fi&&(h>o&&(o=h,a=l,s=f),h=0,l=f-r)),c=v,y=S,E=p),g=A,m=C}return h+=v,h>o?[l,f]:[a,s]}var Kc=globalThis&&globalThis.__extends||function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),mn={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},Jc=function(i){Kc(e,i);function e(t,n,r,a){var s=i.call(this,t,n,r,a)||this;return s.labels_=null,s.text_="",s.textOffsetX_=0,s.textOffsetY_=0,s.textRotateWithView_=void 0,s.textRotation_=0,s.textFillState_=null,s.fillStates={},s.textStrokeState_=null,s.strokeStates={},s.textState_={},s.textStates={},s.textKey_="",s.fillKey_="",s.strokeKey_="",s.declutterImageWithText_=void 0,s}return e.prototype.finish=function(){var t=i.prototype.finish.call(this);return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t},e.prototype.drawText=function(t,n){var r=this.textFillState_,a=this.textStrokeState_,s=this.textState_;if(!(this.text_===""||!s||!r&&!a)){var o=this.coordinates,h=o.length,l=t.getType(),u=null,f=t.getStride();if(s.placement===ih.LINE&&(l=="LineString"||l=="MultiLineString"||l=="Polygon"||l=="MultiPolygon")){if(!Dt(this.getBufferedMaxExtent(),t.getExtent()))return;var c=void 0;if(u=t.getFlatCoordinates(),l=="LineString")c=[u.length];else if(l=="MultiLineString")c=t.getEnds();else if(l=="Polygon")c=t.getEnds().slice(0,1);else if(l=="MultiPolygon"){var v=t.getEndss();c=[];for(var g=0,m=v.length;gF[2]}else k=A>L;var $=Math.PI,W=[],nt=x+n===e;e=x,y=0,E=O,c=i[e],v=i[e+1];var ht;if(nt){S(),ht=Math.atan2(v-m,c-g),k&&(ht+=ht>0?-$:$);var K=(L+A)/2,z=(N+C)/2;return W[0]=[K,z,(R-a)/2,ht,r],W}r=r.replace(/\n/g," ");for(var J=0,st=r.length;J0?-$:$),ht!==void 0){var G=ft-ht;if(G+=G>$?-2*$:G<-$?2*$:0,Math.abs(G)>s)return null}ht=ft;for(var rt=J,mt=0;J0&&i.push(` +`,""),i.push(e,""),i}var ff=function(){function i(e,t,n,r){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=Fe(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={}}return i.prototype.createLabel=function(e,t,n,r){var a=e+t+n+r;if(this.labels_[a])return this.labels_[a];var s=r?this.strokeStates[r]:null,o=n?this.fillStates[n]:null,h=this.textStates[t],l=this.pixelRatio,u=[h.scale[0]*l,h.scale[1]*l],f=Array.isArray(e),c=h.justify?mn[h.justify]:bs(Array.isArray(e)?e[0]:e,h.textAlign||Rn),v=r&&s.lineWidth?s.lineWidth:0,g=f?e:e.split(` +`).reduce(cf,[]),m=Zl(h,g),y=m.width,E=m.height,S=m.widths,p=m.heights,A=m.lineWidths,C=y+v,x=[],O=(C+2)*u[0],R=(E+v)*u[1],L={width:O<0?Math.floor(O):Math.ceil(O),height:R<0?Math.floor(R):Math.ceil(R),contextInstructions:x};if((u[0]!=1||u[1]!=1)&&x.push("scale",u),r){x.push("strokeStyle",s.strokeStyle),x.push("lineWidth",v),x.push("lineCap",s.lineCap),x.push("lineJoin",s.lineJoin),x.push("miterLimit",s.miterLimit);var N=Ur?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;N.prototype.setLineDash&&(x.push("setLineDash",[s.lineDash]),x.push("lineDashOffset",s.lineDashOffset))}n&&x.push("fillStyle",o.fillStyle),x.push("textBaseline","middle"),x.push("textAlign","center");for(var k=.5-c,F=c*C+k*v,$=[],W=[],nt=0,ht=0,K=0,z=0,J,st=0,ft=g.length;ste?e-l:a,A=s+u>t?t-u:s,C=g[3]+p*c[0]+g[1],x=g[0]+A*c[1]+g[2],O=E-g[3],R=S-g[0];(m||f!==0)&&(Pe[0]=O,Te[0]=O,Pe[1]=R,ue[1]=R,ue[0]=O+C,ce[0]=ue[0],ce[1]=R+x,Te[1]=ce[1]);var L;return f!==0?(L=Bi(Fe(),n,r,1,1,f,-n,-r),wt(L,Pe),wt(L,ue),wt(L,ce),wt(L,Te),Ui(Math.min(Pe[0],ue[0],ce[0],Te[0]),Math.min(Pe[1],ue[1],ce[1],Te[1]),Math.max(Pe[0],ue[0],ce[0],Te[0]),Math.max(Pe[1],ue[1],ce[1],Te[1]),Ei)):Ui(Math.min(O,O+C),Math.min(R,R+x),Math.max(O,O+C),Math.max(R,R+x),Ei),v&&(E=Math.round(E),S=Math.round(S)),{drawImageX:E,drawImageY:S,drawImageW:p,drawImageH:A,originX:l,originY:u,declutterBox:{minX:Ei[0],minY:Ei[1],maxX:Ei[2],maxY:Ei[3],value:y},canvasTransform:L,scale:c}},i.prototype.replayImageOrLabel_=function(e,t,n,r,a,s,o){var h=!!(s||o),l=r.declutterBox,u=e.canvas,f=o?o[2]*r.scale[0]/2:0,c=l.minX-f<=u.width/t&&l.maxX+f>=0&&l.minY-f<=u.height/t&&l.maxY+f>=0;return c&&(h&&this.replayTextBackground_(e,Pe,ue,ce,Te,s,o),Ql(e,r.canvasTransform,a,n,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0},i.prototype.fill_=function(e){if(this.alignFill_){var t=wt(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;e.save(),e.translate(t[0]%n,t[1]%n),e.rotate(this.viewRotation_)}e.fill(),this.alignFill_&&e.restore()},i.prototype.setStrokeStyle_=function(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.setLineDash&&(e.lineDashOffset=t[7],e.setLineDash(t[6]))},i.prototype.drawLabelWithPointPlacement_=function(e,t,n,r){var a=this.textStates[t],s=this.createLabel(e,t,r,n),o=this.strokeStates[n],h=this.pixelRatio,l=bs(Array.isArray(e)?e[0]:e,a.textAlign||Rn),u=mn[a.textBaseline||Rr],f=o&&o.lineWidth?o.lineWidth:0,c=s.width/h-2*a.scale[0],v=l*c+2*(.5-l)*f,g=u*s.height/h+2*(.5-u)*f;return{label:s,anchorX:v,anchorY:g}},i.prototype.execute_=function(e,t,n,r,a,s,o,h){var l;this.pixelCoordinates_&&qi(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=oi(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),il(this.renderedTransform_,n));for(var u=0,f=r.length,c=0,v,g,m,y,E,S,p,A,C,x,O,R,L=0,N=0,k=null,F=null,$=this.coordinateCache_,W=this.viewRotation_,nt=Math.round(Math.atan2(-n[1],n[0])*1e12)/1e12,ht={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:W},K=this.instructions!=r||this.overlaps?0:200,z,J,st,ft;uK&&(this.fill_(e),L=0),N>K&&(e.stroke(),N=0),!L&&!N&&(e.beginPath(),y=NaN,E=NaN),++u;break;case j.CIRCLE:c=G[1];var mt=l[c],ae=l[c+1],Kt=l[c+2],Zi=l[c+3],Yn=Kt-mt,Hn=Zi-ae,me=Math.sqrt(Yn*Yn+Hn*Hn);e.moveTo(mt+me,ae),e.arc(mt,ae,me,0,2*Math.PI,!0),++u;break;case j.CLOSE_PATH:e.closePath(),++u;break;case j.CUSTOM:c=G[1],v=G[2];var qr=G[3],Xe=G[4],qn=G.length==6?G[5]:void 0;ht.geometry=qr,ht.feature=z,u in $||($[u]=[]);var Ye=$[u];qn?qn(l,c,v,2,Ye):(Ye[0]=l[c],Ye[1]=l[c+1],Ye.length=2),Xe(Ye,ht),++u;break;case j.DRAW_IMAGE:c=G[1],v=G[2],A=G[3],g=G[4],m=G[5];var Se=G[6],zn=G[7],Kn=G[8],zr=G[9],Jn=G[10],di=G[11],Zn=G[12],Me=G[13],Qi=G[14],He=G[15];if(!A&&G.length>=20){C=G[19],x=G[20],O=G[21],R=G[22];var tn=this.drawLabelWithPointPlacement_(C,x,O,R);A=tn.label,G[3]=A;var Kr=G[23];g=(tn.anchorX-Kr)*this.pixelRatio,G[4]=g;var en=G[24];m=(tn.anchorY-en)*this.pixelRatio,G[5]=m,Se=A.height,G[6]=Se,Me=A.width,G[13]=Me}var nn=void 0;G.length>25&&(nn=G[25]);var se=void 0,vi=void 0,qe=void 0;G.length>17?(se=G[16],vi=G[17],qe=G[18]):(se=ni,vi=!1,qe=!1),Jn&&nt?di+=W:!Jn&&!nt&&(di-=W);for(var Jr=0;c0){if(!s||v!=="Image"&&v!=="Text"||s.indexOf(x)!==-1){var k=(c[L]-3)/4,F=r-k%o,$=r-(k/o|0),W=a(x,O,F*F+$*$);if(W)return W}u.clearRect(0,0,o,o);break}}var m=Object.keys(this.executorsByZIndex_).map(Number);m.sort(Vi);var y,E,S,p,A;for(y=m.length-1;y>=0;--y){var C=m[y].toString();for(S=this.executorsByZIndex_[C],E=ra.length-1;E>=0;--E)if(v=ra[E],p=S[v],p!==void 0&&(A=p.executeHitDetection(u,h,n,g,f),A))return A}},i.prototype.getClipCoords=function(e){var t=this.maxExtent_;if(!t)return null;var n=t[0],r=t[1],a=t[2],s=t[3],o=[n,r,n,s,a,s,a,r];return oi(o,0,8,2,e,o),o},i.prototype.isEmpty=function(){return $i(this.executorsByZIndex_)},i.prototype.execute=function(e,t,n,r,a,s,o){var h=Object.keys(this.executorsByZIndex_).map(Number);h.sort(Vi),this.maxExtent_&&(e.save(),this.clip(e,n));var l=s||ra,u,f,c,v,g,m;for(o&&h.reverse(),u=0,f=h.length;ut)break;var o=n[s];o||(o=[],n[s]=o),o.push(((i+r)*e+(i+a))*4+3),r>0&&o.push(((i-r)*e+(i+a))*4+3),a>0&&(o.push(((i+r)*e+(i-a))*4+3),r>0&&o.push(((i-r)*e+(i-a))*4+3))}for(var h=[],r=0,l=n.length;r0,6);var f=r.src!==void 0?ot.IDLE:ot.LOADED;return n.color_=r.color!==void 0?Pr(r.color):null,n.iconImage_=Af(l,u,n.imgSize_!==void 0?n.imgSize_:null,n.crossOrigin_,f,n.color_),n.offset_=r.offset!==void 0?r.offset:[0,0],n.offsetOrigin_=r.offsetOrigin!==void 0?r.offsetOrigin:Nt.TOP_LEFT,n.origin_=null,n.size_=r.size!==void 0?r.size:null,n}return e.prototype.clone=function(){var t=this.getScale();return new e({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_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},e.prototype.getAnchor=function(){var t=this.normalizedAnchor_;if(!t){t=this.anchor_;var n=this.getSize();if(this.anchorXUnits_==Re.FRACTION||this.anchorYUnits_==Re.FRACTION){if(!n)return null;t=this.anchor_.slice(),this.anchorXUnits_==Re.FRACTION&&(t[0]*=n[0]),this.anchorYUnits_==Re.FRACTION&&(t[1]*=n[1])}if(this.anchorOrigin_!=Nt.TOP_LEFT){if(!n)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_==Nt.TOP_RIGHT||this.anchorOrigin_==Nt.BOTTOM_RIGHT)&&(t[0]=-t[0]+n[0]),(this.anchorOrigin_==Nt.BOTTOM_LEFT||this.anchorOrigin_==Nt.BOTTOM_RIGHT)&&(t[1]=-t[1]+n[1])}this.normalizedAnchor_=t}var r=this.getDisplacement();return[t[0]-r[0],t[1]+r[1]]},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=Nt.TOP_LEFT){var n=this.getSize(),r=this.iconImage_.getSize();if(!n||!r)return null;t=t.slice(),(this.offsetOrigin_==Nt.TOP_RIGHT||this.offsetOrigin_==Nt.BOTTOM_RIGHT)&&(t[0]=r[0]-n[0]-t[0]),(this.offsetOrigin_==Nt.BOTTOM_LEFT||this.offsetOrigin_==Nt.BOTTOM_RIGHT)&&(t[1]=r[1]-n[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(Gt.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(Gt.CHANGE,t)},e}(th);const Ri=Pf;var Tf="#333",If=function(){function i(e){var t=e||{};this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=Gr(t.scale!==void 0?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.justify_=t.justify,this.textBaseline_=t.textBaseline,this.fill_=t.fill!==void 0?t.fill:new Yi({color:Tf}),this.maxAngle_=t.maxAngle!==void 0?t.maxAngle:Math.PI/4,this.placement_=t.placement!==void 0?t.placement:ih.POINT,this.overflow_=!!t.overflow,this.stroke_=t.stroke!==void 0?t.stroke:null,this.offsetX_=t.offsetX!==void 0?t.offsetX:0,this.offsetY_=t.offsetY!==void 0?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=t.padding===void 0?null:t.padding}return i.prototype.clone=function(){var e=this.getScale();return new i({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},i.prototype.getOverflow=function(){return this.overflow_},i.prototype.getFont=function(){return this.font_},i.prototype.getMaxAngle=function(){return this.maxAngle_},i.prototype.getPlacement=function(){return this.placement_},i.prototype.getOffsetX=function(){return this.offsetX_},i.prototype.getOffsetY=function(){return this.offsetY_},i.prototype.getFill=function(){return this.fill_},i.prototype.getRotateWithView=function(){return this.rotateWithView_},i.prototype.getRotation=function(){return this.rotation_},i.prototype.getScale=function(){return this.scale_},i.prototype.getScaleArray=function(){return this.scaleArray_},i.prototype.getStroke=function(){return this.stroke_},i.prototype.getText=function(){return this.text_},i.prototype.getTextAlign=function(){return this.textAlign_},i.prototype.getJustify=function(){return this.justify_},i.prototype.getTextBaseline=function(){return this.textBaseline_},i.prototype.getBackgroundFill=function(){return this.backgroundFill_},i.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},i.prototype.getPadding=function(){return this.padding_},i.prototype.setOverflow=function(e){this.overflow_=e},i.prototype.setFont=function(e){this.font_=e},i.prototype.setMaxAngle=function(e){this.maxAngle_=e},i.prototype.setOffsetX=function(e){this.offsetX_=e},i.prototype.setOffsetY=function(e){this.offsetY_=e},i.prototype.setPlacement=function(e){this.placement_=e},i.prototype.setRotateWithView=function(e){this.rotateWithView_=e},i.prototype.setFill=function(e){this.fill_=e},i.prototype.setRotation=function(e){this.rotation_=e},i.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=Gr(e!==void 0?e:1)},i.prototype.setStroke=function(e){this.stroke_=e},i.prototype.setText=function(e){this.text_=e},i.prototype.setTextAlign=function(e){this.textAlign_=e},i.prototype.setJustify=function(e){this.justify_=e},i.prototype.setTextBaseline=function(e){this.textBaseline_=e},i.prototype.setBackgroundFill=function(e){this.backgroundFill_=e},i.prototype.setBackgroundStroke=function(e){this.backgroundStroke_=e},i.prototype.setPadding=function(e){this.padding_=e},i}();const Rf=If;var Qt=.5;function Of(i,e,t,n,r,a,s){var o=i[0]*Qt,h=i[1]*Qt,l=ie(o,h);l.imageSmoothingEnabled=!1;for(var u=l.canvas,f=new yf(l,Qt,r,null,s),c=t.length,v=Math.floor((256*256*256-1)/c),g={},m=1;m<=c;++m){var y=t[m-1],E=y.getStyleFunction()||n;if(!!n){var S=E(y,a);if(!!S){Array.isArray(S)||(S=[S]);for(var p=m*v,A="#"+("000000"+p.toString(16)).slice(-6),C=0,x=S.length;Cm[2];)++S,p=E*S,f.push(this.getRenderTransform(a,s,o,Qt,c,v,p).slice()),y-=E}this.hitDetectionImageData_=Of(r,f,this.renderedFeatures_,u.getStyleFunction(),l,s,o)}n(bf(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,n,r,a,s){var o=this;if(!!this.replayGroup_){var h=n.viewState.resolution,l=n.viewState.rotation,u=this.getLayer(),f={},c=function(m,y,E){var S=yt(m),p=f[S];if(p){if(p!==!0&&EC[0]&&R[2]>C[2]&&A.push([R[0]-x,R[1],R[2]-x,R[3]])}if(this.ready&&this.renderedResolution_==c&&this.renderedRevision_==g&&this.renderedRenderOrder_==y&&ii(this.wrappedRenderedExtent_,S))return qi(this.renderedExtent_,p)||(this.hitDetectionImageData_=null,this.renderedExtent_=p),this.renderedCenter_=E,this.replayGroupChanged=!1,!0;this.replayGroup_=null;var L=new Is(Ea(c,v),S,c,v),N;this.getLayer().getDeclutter()&&(N=new Is(Ea(c,v),S,c,v));for(var k,F,$,F=0,$=A.length;F<$;++F)r.loadFeatures(A[F],c,f);var W=Nf(c,v),nt=!0,ht=function(ft){var G,rt=ft.getStyleFunction()||n.getStyleFunction();if(rt&&(G=rt(ft,c)),G){var mt=this.renderFeature(ft,W,G,L,k,N);nt=nt&&!mt}}.bind(this),K=Eu(S),z=r.getFeaturesInExtent(K);y&&z.sort(y);for(var F=0,$=z.length;F<$;++F)ht(z[F]);this.renderedFeatures_=z,this.ready=nt;var J=L.finish(),st=new Gs(S,c,v,r.getOverlaps(),J,n.getRenderBuffer());return N&&(this.declutterExecutorGroup=new Gs(S,c,v,r.getOverlaps(),N.finish(),n.getRenderBuffer())),this.renderedResolution_=c,this.renderedRevision_=g,this.renderedRenderOrder_=y,this.renderedExtent_=p,this.wrappedRenderedExtent_=S,this.renderedCenter_=E,this.renderedProjection_=f,this.replayGroup_=st,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},e.prototype.renderFeature=function(t,n,r,a,s,o){if(!r)return!1;var h=!1;if(Array.isArray(r))for(var l=0,u=r.length;l=200&&o.status<300){var l=e.getType(),u=void 0;l=="json"||l=="text"?u=o.responseText:l=="xml"?(u=o.responseXML,u||(u=new DOMParser().parseFromString(o.responseText,"application/xml"))):l=="arraybuffer"&&(u=o.response),u?a(e.readFeatures(u,{extent:t,featureProjection:r}),e.readProjection(u)):s()}else s()},o.onerror=s,o.send()}function ks(i,e){return function(t,n,r,a,s){var o=this;i0(i,e,t,n,r,function(h,l){o.addFeatures(h),a!==void 0&&a(h)},s||Cr)}}var sh=globalThis&&globalThis.__extends||function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ie=function(i){sh(e,i);function e(t,n,r){var a=i.call(this,t)||this;return a.feature=n,a.features=r,a}return e}(Dn),n0=function(i){sh(e,i);function e(t){var n=this,r=t||{};n=i.call(this,{attributions:r.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:r.wrapX!==void 0?r.wrapX:!0})||this,n.on,n.once,n.un,n.loader_=Cr,n.format_=r.format,n.overlaps_=r.overlaps===void 0?!0:r.overlaps,n.url_=r.url,r.loader!==void 0?n.loader_=r.loader:n.url_!==void 0&&(Ot(n.format_,7),n.loader_=ks(n.url_,n.format_)),n.strategy_=r.strategy!==void 0?r.strategy:t0;var a=r.useSpatialIndex!==void 0?r.useSpatialIndex:!0;n.featuresRtree_=a?new Fs:null,n.loadedExtentsRtree_=new Fs,n.loadingExtentsCount_=0,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null;var s,o;return Array.isArray(r.features)?o=r.features:r.features&&(s=r.features,o=s.getArray()),!a&&s===void 0&&(s=new iu(o)),o!==void 0&&n.addFeaturesInternal(o),s!==void 0&&n.bindFeaturesCollection_(s),n}return e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var n=yt(t);if(!this.addToIndex_(n,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(n,t);var r=t.getGeometry();if(r){var a=r.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(a,t)}else this.nullGeometryFeatures_[n]=t;this.dispatchEvent(new Ie(jt.ADDFEATURE,t))},e.prototype.setupChangeEvents_=function(t,n){this.featureChangeKeys_[t]=[Yt(n,Gt.CHANGE,this.handleFeatureChange_,this),Yt(n,To.PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,n){var r=!0,a=n.getId();return a!==void 0&&(a.toString()in this.idIndex_?r=!1:this.idIndex_[a.toString()]=n),r&&(Ot(!(t in this.uidIndex_),30),this.uidIndex_[t]=n),r},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var n=[],r=[],a=[],s=0,o=t.length;s0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),i.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var n=this.loadedExtentsRtree_,r;n.forEachInExtent(t,function(a){if(po(a.extent,t))return r=a,!0}),r&&n.remove(r)},e.prototype.removeFeature=function(t){if(!!t){var n=yt(t);n in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[n]:this.featuresRtree_&&this.featuresRtree_.remove(t);var r=this.removeFeatureInternal(t);r&&this.changed()}},e.prototype.removeFeatureInternal=function(t){var n=yt(t),r=this.featureChangeKeys_[n];if(!!r){r.forEach(Ht),delete this.featureChangeKeys_[n];var a=t.getId();return a!==void 0&&delete this.idIndex_[a.toString()],delete this.uidIndex_[n],this.dispatchEvent(new Ie(jt.REMOVEFEATURE,t)),t}},e.prototype.removeFromIdIndex_=function(t){var n=!1;for(var r in this.idIndex_)if(this.idIndex_[r]===t){delete this.idIndex_[r],n=!0;break}return n},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){Ot(this.format_,7),this.url_=t,this.setLoader(ks(t,this.format_))},e}(Qf);const Vs=n0;class oh{static getId(e){const t=e.find(n=>Array.isArray(n)&&n[0]==="ID");return t&&t.length>=3?{authority:t[1],code:parseInt(t[2],10)}:null}static convertUnit(e,t="unit"){if(!e||e.length<3)return{type:t,name:"unknown",conversion_factor:null};const n=e[1],r=parseFloat(e[2])||null,a=e.find(o=>Array.isArray(o)&&o[0]==="ID"),s=a?{authority:a[1],code:parseInt(a[2],10)}:null;return{type:t,name:n,conversion_factor:r,id:s}}static convertAxis(e){const t=e[1]||"Unknown";let n;const r=t.match(/^\((.)\)$/);if(r){const l=r[1].toUpperCase();if(l==="E")n="east";else if(l==="N")n="north";else if(l==="U")n="up";else throw new Error(`Unknown axis abbreviation: ${l}`)}else n=e[2]?e[2].toLowerCase():"unknown";const a=e.find(l=>Array.isArray(l)&&l[0]==="ORDER"),s=a?parseInt(a[1],10):null,o=e.find(l=>Array.isArray(l)&&(l[0]==="LENGTHUNIT"||l[0]==="ANGLEUNIT"||l[0]==="SCALEUNIT")),h=this.convertUnit(o);return{name:t,direction:n,unit:h,order:s}}static extractAxes(e){return e.filter(t=>Array.isArray(t)&&t[0]==="AXIS").map(t=>this.convertAxis(t)).sort((t,n)=>(t.order||0)-(n.order||0))}static convert(e,t={}){switch(e[0]){case"PROJCRS":t.type="ProjectedCRS",t.name=e[1],t.base_crs=e.find(c=>Array.isArray(c)&&c[0]==="BASEGEOGCRS")?this.convert(e.find(c=>Array.isArray(c)&&c[0]==="BASEGEOGCRS")):null,t.conversion=e.find(c=>Array.isArray(c)&&c[0]==="CONVERSION")?this.convert(e.find(c=>Array.isArray(c)&&c[0]==="CONVERSION")):null;const n=e.find(c=>Array.isArray(c)&&c[0]==="CS");n&&(t.coordinate_system={type:n[1],axis:this.extractAxes(e)});const r=e.find(c=>Array.isArray(c)&&c[0]==="LENGTHUNIT");if(r){const c=this.convertUnit(r);t.coordinate_system.unit=c}t.id=this.getId(e);break;case"BASEGEOGCRS":case"GEOGCRS":t.type="GeographicCRS",t.name=e[1];const a=e.find(c=>Array.isArray(c)&&(c[0]==="DATUM"||c[0]==="ENSEMBLE"));if(a){const c=this.convert(a);a[0]==="ENSEMBLE"?t.datum_ensemble=c:t.datum=c;const v=e.find(g=>Array.isArray(g)&&g[0]==="PRIMEM");v&&v[1]!=="Greenwich"&&(c.prime_meridian={name:v[1],longitude:parseFloat(v[2])})}t.coordinate_system={type:"ellipsoidal",axis:this.extractAxes(e)},t.id=this.getId(e);break;case"DATUM":t.type="GeodeticReferenceFrame",t.name=e[1],t.ellipsoid=e.find(c=>Array.isArray(c)&&c[0]==="ELLIPSOID")?this.convert(e.find(c=>Array.isArray(c)&&c[0]==="ELLIPSOID")):null;break;case"ENSEMBLE":t.type="DatumEnsemble",t.name=e[1],t.members=e.filter(c=>Array.isArray(c)&&c[0]==="MEMBER").map(c=>({type:"DatumEnsembleMember",name:c[1],id:this.getId(c)}));const s=e.find(c=>Array.isArray(c)&&c[0]==="ENSEMBLEACCURACY");s&&(t.accuracy=parseFloat(s[1]));const o=e.find(c=>Array.isArray(c)&&c[0]==="ELLIPSOID");o&&(t.ellipsoid=this.convert(o)),t.id=this.getId(e);break;case"ELLIPSOID":t.type="Ellipsoid",t.name=e[1],t.semi_major_axis=parseFloat(e[2]),t.inverse_flattening=parseFloat(e[3]),e.find(c=>Array.isArray(c)&&c[0]==="LENGTHUNIT")&&this.convert(e.find(c=>Array.isArray(c)&&c[0]==="LENGTHUNIT"),t);break;case"CONVERSION":t.type="Conversion",t.name=e[1],t.method=e.find(c=>Array.isArray(c)&&c[0]==="METHOD")?this.convert(e.find(c=>Array.isArray(c)&&c[0]==="METHOD")):null,t.parameters=e.filter(c=>Array.isArray(c)&&c[0]==="PARAMETER").map(c=>this.convert(c));break;case"METHOD":t.type="Method",t.name=e[1],t.id=this.getId(e);break;case"PARAMETER":t.type="Parameter",t.name=e[1],t.value=parseFloat(e[2]),t.unit=this.convertUnit(e.find(c=>Array.isArray(c)&&(c[0]==="LENGTHUNIT"||c[0]==="ANGLEUNIT"||c[0]==="SCALEUNIT"))),t.id=this.getId(e);break;case"BOUNDCRS":t.type="BoundCRS";const h=e.find(c=>Array.isArray(c)&&c[0]==="SOURCECRS");if(h){const c=h.find(v=>Array.isArray(v));t.source_crs=c?this.convert(c):null}const l=e.find(c=>Array.isArray(c)&&c[0]==="TARGETCRS");if(l){const c=l.find(v=>Array.isArray(v));t.target_crs=c?this.convert(c):null}const u=e.find(c=>Array.isArray(c)&&c[0]==="ABRIDGEDTRANSFORMATION");u?t.transformation=this.convert(u):t.transformation=null;break;case"ABRIDGEDTRANSFORMATION":if(t.type="Transformation",t.name=e[1],t.method=e.find(c=>Array.isArray(c)&&c[0]==="METHOD")?this.convert(e.find(c=>Array.isArray(c)&&c[0]==="METHOD")):null,t.parameters=e.filter(c=>Array.isArray(c)&&(c[0]==="PARAMETER"||c[0]==="PARAMETERFILE")).map(c=>{if(c[0]==="PARAMETER")return this.convert(c);if(c[0]==="PARAMETERFILE")return{name:c[1],value:c[2],id:{authority:"EPSG",code:8656}}}),t.parameters.length===7){const c=t.parameters[6];c.name==="Scale difference"&&(c.value=Math.round((c.value-1)*1e12)/1e6)}t.id=this.getId(e);break;case"AXIS":t.coordinate_system||(t.coordinate_system={type:"unspecified",axis:[]}),t.coordinate_system.axis.push(this.convertAxis(e));break;case"LENGTHUNIT":const f=this.convertUnit(e,"LinearUnit");t.coordinate_system&&t.coordinate_system.axis&&t.coordinate_system.axis.forEach(c=>{c.unit||(c.unit=f)}),f.conversion_factor&&f.conversion_factor!==1&&t.semi_major_axis&&(t.semi_major_axis={value:t.semi_major_axis,unit:f});break;default:t.keyword=e[0];break}return t}}class r0 extends oh{static convert(e,t={}){return super.convert(e,t),t.coordinate_system&&t.coordinate_system.subtype==="Cartesian"&&delete t.coordinate_system,t.usage&&delete t.usage,t}}class a0 extends oh{static convert(e,t={}){super.convert(e,t);const n=e.find(a=>Array.isArray(a)&&a[0]==="CS");n&&(t.coordinate_system={subtype:n[1],axis:this.extractAxes(e)});const r=e.find(a=>Array.isArray(a)&&a[0]==="USAGE");if(r){const a=r.find(h=>Array.isArray(h)&&h[0]==="SCOPE"),s=r.find(h=>Array.isArray(h)&&h[0]==="AREA"),o=r.find(h=>Array.isArray(h)&&h[0]==="BBOX");t.usage={},a&&(t.usage.scope=a[1]),s&&(t.usage.area=s[1]),o&&(t.usage.bbox=o.slice(1))}return t}}function s0(i){return i.find(e=>Array.isArray(e)&&e[0]==="USAGE")?"2019":(i.find(e=>Array.isArray(e)&&e[0]==="CS")||i[0]==="BOUNDCRS"||i[0]==="PROJCRS"||i[0]==="GEOGCRS","2015")}function o0(i){return(s0(i)==="2019"?a0:r0).convert(i)}function h0(i){const e=i.toUpperCase();return e.includes("PROJCRS")||e.includes("GEOGCRS")||e.includes("BOUNDCRS")||e.includes("VERTCRS")||e.includes("LENGTHUNIT")||e.includes("ANGLEUNIT")||e.includes("SCALEUNIT")?"WKT2":(e.includes("PROJCS")||e.includes("GEOGCS")||e.includes("LOCAL_CS")||e.includes("VERT_CS")||e.includes("UNIT"),"WKT1")}var Gn=1,hh=2,lh=3,Nr=4,uh=5,za=-1,l0=/\s/,u0=/[A-Za-z]/,c0=/[A-Za-z84_]/,Hr=/[,\]]/,ch=/[\d\.E\-\+]/;function ye(i){if(typeof i!="string")throw new Error("not a string");this.text=i.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=Gn}ye.prototype.readCharicter=function(){var i=this.text[this.place++];if(this.state!==Nr)for(;l0.test(i);){if(this.place>=this.text.length)return;i=this.text[this.place++]}switch(this.state){case Gn:return this.neutral(i);case hh:return this.keyword(i);case Nr:return this.quoted(i);case uh:return this.afterquote(i);case lh:return this.number(i);case za:return}};ye.prototype.afterquote=function(i){if(i==='"'){this.word+='"',this.state=Nr;return}if(Hr.test(i)){this.word=this.word.trim(),this.afterItem(i);return}throw new Error(`havn't handled "`+i+'" in afterquote yet, index '+this.place)};ye.prototype.afterItem=function(i){if(i===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=Gn;return}if(i==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=Gn,this.currentObject=this.stack.pop(),this.currentObject||(this.state=za);return}};ye.prototype.number=function(i){if(ch.test(i)){this.word+=i;return}if(Hr.test(i)){this.word=parseFloat(this.word),this.afterItem(i);return}throw new Error(`havn't handled "`+i+'" in number yet, index '+this.place)};ye.prototype.quoted=function(i){if(i==='"'){this.state=uh;return}this.word+=i};ye.prototype.keyword=function(i){if(c0.test(i)){this.word+=i;return}if(i==="["){var e=[];e.push(this.word),this.level++,this.root===null?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,this.state=Gn;return}if(Hr.test(i)){this.afterItem(i);return}throw new Error(`havn't handled "`+i+'" in keyword yet, index '+this.place)};ye.prototype.neutral=function(i){if(u0.test(i)){this.word=i,this.state=hh;return}if(i==='"'){this.word="",this.state=Nr;return}if(ch.test(i)){this.word=i,this.state=lh;return}if(Hr.test(i)){this.afterItem(i);return}throw new Error(`havn't handled "`+i+'" in neutral yet, index '+this.place)};ye.prototype.output=function(){for(;this.place0?90:-90),i.lat_ts=i.lat1,delete i.lat1):!i.lat_ts&&i.lat0&&(e==="polar stereographic"||e==="polar stereographic (variant a)")&&(i.lat_ts=i.lat0,i.lat0=Xt(i.lat0>0?90:-90),delete i.lat1)}function Bs(i){let e={units:null,to_meter:void 0};return typeof i=="string"?(e.units=i.toLowerCase(),e.units==="metre"&&(e.units="meter"),e.units==="meter"&&(e.to_meter=1)):i&&i.name&&(e.units=i.name.toLowerCase(),e.units==="metre"&&(e.units="meter"),e.to_meter=i.conversion_factor),e}function Us(i){return typeof i=="object"?i.value*i.unit.conversion_factor:i}function $s(i,e){i.ellipsoid.radius?(e.a=i.ellipsoid.radius,e.rf=0):(e.a=Us(i.ellipsoid.semi_major_axis),i.ellipsoid.inverse_flattening!==void 0?e.rf=i.ellipsoid.inverse_flattening:i.ellipsoid.semi_major_axis!==void 0&&i.ellipsoid.semi_minor_axis!==void 0&&(e.rf=e.a/(e.a-Us(i.ellipsoid.semi_minor_axis))))}function Fr(i,e={}){return!i||typeof i!="object"?i:i.type==="BoundCRS"?(Fr(i.source_crs,e),i.transformation&&(i.transformation.method&&i.transformation.method.name==="NTv2"?e.nadgrids=i.transformation.parameters[0].value:e.datum_params=i.transformation.parameters.map(t=>t.value)),e):(Object.keys(i).forEach(t=>{const n=i[t];if(n!==null)switch(t){case"name":if(e.srsCode)break;e.name=n,e.srsCode=n;break;case"type":n==="GeographicCRS"?e.projName="longlat":n==="ProjectedCRS"&&i.conversion&&i.conversion.method&&(e.projName=i.conversion.method.name);break;case"datum":case"datum_ensemble":n.ellipsoid&&(e.ellps=n.ellipsoid.name,$s(n,e)),n.prime_meridian&&(e.from_greenwich=n.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":e.ellps=n.name,$s(n,e);break;case"prime_meridian":e.long0=(n.longitude||0)*Math.PI/180;break;case"coordinate_system":if(n.axis){if(e.axis=n.axis.map(r=>{const a=r.direction;if(a==="east")return"e";if(a==="north")return"n";if(a==="west")return"w";if(a==="south")return"s";throw new Error(`Unknown axis direction: ${a}`)}).join("")+"u",n.unit){const{units:r,to_meter:a}=Bs(n.unit);e.units=r,e.to_meter=a}else if(n.axis[0]&&n.axis[0].unit){const{units:r,to_meter:a}=Bs(n.axis[0].unit);e.units=r,e.to_meter=a}}break;case"id":n.authority&&n.code&&(e.title=n.authority+":"+n.code);break;case"conversion":n.method&&n.method.name&&(e.projName=n.method.name),n.parameters&&n.parameters.forEach(r=>{const a=r.name.toLowerCase().replace(/\s+/g,"_"),s=r.value;r.unit&&r.unit.conversion_factor?e[a]=s*r.unit.conversion_factor:r.unit==="degree"?e[a]=s*Math.PI/180:e[a]=s});break;case"unit":n.name&&(e.units=n.name.toLowerCase(),e.units==="metre"&&(e.units="meter")),n.conversion_factor&&(e.to_meter=n.conversion_factor);break;case"base_crs":Fr(n,e),e.datumCode=n.id?n.id.authority+"_"+n.id.code:n.name;break}}),e.latitude_of_false_origin!==void 0&&(e.lat0=e.latitude_of_false_origin),e.longitude_of_false_origin!==void 0&&(e.long0=e.longitude_of_false_origin),e.latitude_of_standard_parallel!==void 0&&(e.lat0=e.latitude_of_standard_parallel,e.lat1=e.latitude_of_standard_parallel),e.latitude_of_1st_standard_parallel!==void 0&&(e.lat1=e.latitude_of_1st_standard_parallel),e.latitude_of_2nd_standard_parallel!==void 0&&(e.lat2=e.latitude_of_2nd_standard_parallel),e.latitude_of_projection_centre!==void 0&&(e.lat0=e.latitude_of_projection_centre),e.longitude_of_projection_centre!==void 0&&(e.longc=e.longitude_of_projection_centre),e.easting_at_false_origin!==void 0&&(e.x0=e.easting_at_false_origin),e.northing_at_false_origin!==void 0&&(e.y0=e.northing_at_false_origin),e.latitude_of_natural_origin!==void 0&&(e.lat0=e.latitude_of_natural_origin),e.longitude_of_natural_origin!==void 0&&(e.long0=e.longitude_of_natural_origin),e.longitude_of_origin!==void 0&&(e.long0=e.longitude_of_origin),e.false_easting!==void 0&&(e.x0=e.false_easting),e.easting_at_projection_centre&&(e.x0=e.easting_at_projection_centre),e.false_northing!==void 0&&(e.y0=e.false_northing),e.northing_at_projection_centre&&(e.y0=e.northing_at_projection_centre),e.standard_parallel_1!==void 0&&(e.lat1=e.standard_parallel_1),e.standard_parallel_2!==void 0&&(e.lat2=e.standard_parallel_2),e.scale_factor_at_natural_origin!==void 0&&(e.k0=e.scale_factor_at_natural_origin),e.scale_factor_at_projection_centre!==void 0&&(e.k0=e.scale_factor_at_projection_centre),e.scale_factor_on_pseudo_standard_parallel!==void 0&&(e.k0=e.scale_factor_on_pseudo_standard_parallel),e.azimuth!==void 0&&(e.alpha=e.azimuth),e.azimuth_at_projection_centre!==void 0&&(e.alpha=e.azimuth_at_projection_centre),e.angle_from_rectified_to_skew_grid&&(e.rectified_grid_angle=e.angle_from_rectified_to_skew_grid),fh(e),e)}var v0=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function g0(i,e){var t=e[0],n=e[1];!(t in i)&&n in i&&(i[t]=i[n],e.length===3&&(i[t]=e[2](i[t])))}function dh(i){for(var e=Object.keys(i),t=0,n=e.length;t=56&&e<64&&t>=3&&t<12&&(y=32),e>=72&&e<84&&(t>=0&&t<9?y=31:t>=9&&t<21?y=33:t>=21&&t<33?y=35:t>=33&&t<42&&(y=37)),s=(y-1)*6-180+3,m=oa(s),o=r/(1-r),h=n/Math.sqrt(1-r*Math.sin(v)*Math.sin(v)),l=Math.tan(v)*Math.tan(v),u=o*Math.cos(v)*Math.cos(v),f=Math.cos(v)*(g-m),c=n*((1-r/4-3*r*r/64-5*r*r*r/256)*v-(3*r/8+3*r*r/32+45*r*r*r/1024)*Math.sin(2*v)+(15*r*r/256+45*r*r*r/1024)*Math.sin(4*v)-35*r*r*r/3072*Math.sin(6*v));var E=a*h*(f+(1-l+u)*f*f*f/6+(5-18*l+l*l+72*u-58*o)*f*f*f*f*f/120)+5e5,S=a*(c+h*Math.tan(v)*(f*f/2+(5-l+9*u+4*u*u)*f*f*f*f/24+(61-58*l+l*l+600*u-330*o)*f*f*f*f*f*f/720));return e<0&&(S+=1e7),{northing:Math.round(S),easting:Math.round(E),zoneNumber:y,zoneLetter:S0(e)}}function Ka(i){var e=i.northing,t=i.easting,n=i.zoneLetter,r=i.zoneNumber;if(r<0||r>60)return null;var a=.9996,s=6378137,o=.00669438,h,l=(1-Math.sqrt(1-o))/(1+Math.sqrt(1-o)),u,f,c,v,g,m,y,E,S,p=t-5e5,A=e;n<"N"&&(A-=1e7),y=(r-1)*6-180+3,h=o/(1-o),m=A/a,E=m/(s*(1-o/4-3*o*o/64-5*o*o*o/256)),S=E+(3*l/2-27*l*l*l/32)*Math.sin(2*E)+(21*l*l/16-55*l*l*l*l/32)*Math.sin(4*E)+151*l*l*l/96*Math.sin(6*E),u=s/Math.sqrt(1-o*Math.sin(S)*Math.sin(S)),f=Math.tan(S)*Math.tan(S),c=h*Math.cos(S)*Math.cos(S),v=s*(1-o)/Math.pow(1-o*Math.sin(S)*Math.sin(S),1.5),g=p/(u*a);var C=S-u*Math.tan(S)/v*(g*g/2-(5+3*f+10*c-4*c*c-9*h)*g*g*g*g/24+(61+90*f+298*c+45*f*f-252*h-3*c*c)*g*g*g*g*g*g/720);C=js(C);var x=(g-(1+2*f+c)*g*g*g/6+(5-2*c+28*f-3*c*c+8*h+24*f*f)*g*g*g*g*g/120)/Math.cos(S);x=y+js(x);var O;if(i.accuracy){var R=Ka({northing:i.northing+i.accuracy,easting:i.easting+i.accuracy,zoneLetter:i.zoneLetter,zoneNumber:i.zoneNumber});O={top:R.lat,right:R.lon,bottom:C,left:x}}else O={lat:C,lon:x};return O}function S0(i){var e="Z";return 84>=i&&i>=72?e="X":72>i&&i>=64?e="W":64>i&&i>=56?e="V":56>i&&i>=48?e="U":48>i&&i>=40?e="T":40>i&&i>=32?e="S":32>i&&i>=24?e="R":24>i&&i>=16?e="Q":16>i&&i>=8?e="P":8>i&&i>=0?e="N":0>i&&i>=-8?e="M":-8>i&&i>=-16?e="L":-16>i&&i>=-24?e="K":-24>i&&i>=-32?e="J":-32>i&&i>=-40?e="H":-40>i&&i>=-48?e="G":-48>i&&i>=-56?e="F":-56>i&&i>=-64?e="E":-64>i&&i>=-72?e="D":-72>i&&i>=-80&&(e="C"),e}function M0(i,e){var t="00000"+i.easting,n="00000"+i.northing;return i.zoneNumber+i.zoneLetter+E0(i.easting,i.northing,i.zoneNumber)+t.substr(t.length-5,e)+n.substr(n.length-5,e)}function E0(i,e,t){var n=yh(t),r=Math.floor(i/1e5),a=Math.floor(e/1e5)%20;return w0(r,a,n)}function yh(i){var e=i%Ws;return e===0&&(e=Ws),e}function w0(i,e,t){var n=t-1,r=vh.charCodeAt(n),a=gh.charCodeAt(n),s=r+i-1,o=a+e,h=!1;s>vn&&(s=s-vn+bi-1,h=!0),(s===It||rIt||(s>It||rFt||(s>Ft||rvn&&(s=s-vn+bi-1),o>dn?(o=o-dn+bi-1,h=!0):h=!1,(o===It||aIt||(o>It||aFt||(o>Ft||adn&&(o=o-dn+bi-1);var l=String.fromCharCode(s)+String.fromCharCode(o);return l}function mh(i){if(i&&i.length===0)throw"MGRSPoint coverting from nothing";for(var e=i.length,t=null,n="",r,a=0;!/[A-Z]/.test(r=i.charAt(a));){if(a>=2)throw"MGRSPoint bad conversion from: "+i;n+=r,a++}var s=parseInt(n,10);if(a===0||a+3>e)throw"MGRSPoint bad conversion from: "+i;var o=i.charAt(a++);if(o<="A"||o==="B"||o==="Y"||o>="Z"||o==="I"||o==="O")throw"MGRSPoint zone letter "+o+" not handled: "+i;t=i.substring(a,a+=2);for(var h=yh(s),l=x0(t.charAt(0),h),u=A0(t.charAt(1),h);u0&&(m=1e5/Math.pow(10,c),y=i.substring(a,a+c),v=parseFloat(y)*m,E=i.substring(a+c),g=parseFloat(E)*m),S=v+l,p=g+u,{easting:S,northing:p,zoneLetter:o,zoneNumber:s,accuracy:m}}function x0(i,e){for(var t=vh.charCodeAt(e-1),n=1e5,r=!1;t!==i.charCodeAt(0);){if(t++,t===It&&t++,t===Ft&&t++,t>vn){if(r)throw"Bad character: "+i;t=bi,r=!0}n+=1e5}return n}function A0(i,e){if(i>"V")throw"MGRSPoint given invalid Northing "+i;for(var t=gh.charCodeAt(e-1),n=0,r=!1;t!==i.charCodeAt(0);){if(t++,t===It&&t++,t===Ft&&t++,t>dn){if(r)throw"Bad character: "+i;t=bi,r=!0}n+=1e5}return n}function C0(i){var e;switch(i){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: "+i}function P0(i){i("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),i("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),i("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");for(var e=1;e<=60;++e)i("EPSG:"+(32600+e),"+proj=utm +zone="+e+" +datum=WGS84 +units=m"),i("EPSG:"+(32700+e),"+proj=utm +zone="+e+" +south +datum=WGS84 +units=m");i.WGS84=i["EPSG:4326"],i["EPSG:3785"]=i["EPSG:3857"],i.GOOGLE=i["EPSG:3857"],i["EPSG:900913"]=i["EPSG:3857"],i["EPSG:102113"]=i["EPSG:3857"]}var hi=1,li=2,Di=3,T0=4,xa=5,Xs=6378137,I0=6356752314e-3,Ys=.0066943799901413165,Sn=484813681109536e-20,I=Math.PI/2,R0=.16666666666666666,O0=.04722222222222222,b0=.022156084656084655,D=1e-10,Mt=.017453292519943295,ee=57.29577951308232,Q=Math.PI/4,Ln=Math.PI*2,dt=3.14159265359,bt={};bt.greenwich=0;bt.lisbon=-9.131906111111;bt.paris=2.337229166667;bt.bogota=-74.080916666667;bt.madrid=-3.687938888889;bt.rome=12.452333333333;bt.bern=7.439583333333;bt.jakarta=106.807719444444;bt.ferro=-17.666666666667;bt.brussels=4.367975;bt.stockholm=18.058277777778;bt.athens=23.7163375;bt.oslo=10.722916666667;const G0={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.1},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}};var Hs=/[\s_\-\/\(\)]/g;function $e(i,e){if(i[e])return i[e];for(var t=Object.keys(i),n=e.toLowerCase().replace(Hs,""),r=-1,a,s;++r-1}}function V0(i){var e=$e(i,"extension");if(!!e)return $e(e,"proj4")}function B0(i){return i[0]==="+"}function U0(i){if(L0(i)){if(N0(i))return Ct[i];if(F0(i)){var e=wa(i);if(k0(e))return Ct["EPSG:3857"];var t=V0(e);return t?Aa(t):e}if(B0(i))return Aa(i)}else return"projName"in i?i:wa(i)}function qs(i,e){i=i||{};var t,n;if(!e)return i;for(n in e)t=e[n],t!==void 0&&(i[n]=t);return i}function ne(i,e,t){var n=i*e;return t/Math.sqrt(1-n*n)}function Un(i){return i<0?-1:1}function V(i){return Math.abs(i)<=dt?i:i-Un(i)*Ln}function qt(i,e,t){var n=i*t,r=.5*i;return n=Math.pow((1-n)/(1+n),r),Math.tan(.5*(I-e))/n}function Nn(i,e){for(var t=.5*i,n,r,a=I-2*Math.atan(e),s=0;s<=15;s++)if(n=i*Math.sin(a),r=I-2*Math.atan(e*Math.pow((1-n)/(1+n),t))-a,a+=r,Math.abs(r)<=1e-10)return a;return-9999}function $0(){var i=this.b/this.a;this.es=1-i*i,"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=ne(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function W0(i){var e=i.x,t=i.y;if(t*ee>90&&t*ee<-90&&e*ee>180&&e*ee<-180)return null;var n,r;if(Math.abs(Math.abs(t)-I)<=D)return null;if(this.sphere)n=this.x0+this.a*this.k0*V(e-this.long0),r=this.y0+this.a*this.k0*Math.log(Math.tan(Q+.5*t));else{var a=Math.sin(t),s=qt(this.e,t,a);n=this.x0+this.a*this.k0*V(e-this.long0),r=this.y0-this.a*this.k0*Math.log(s)}return i.x=n,i.y=r,i}function j0(i){var e=i.x-this.x0,t=i.y-this.y0,n,r;if(this.sphere)r=I-2*Math.atan(Math.exp(-t/(this.a*this.k0)));else{var a=Math.exp(-t/(this.a*this.k0));if(r=Nn(this.e,a),r===-9999)return null}return n=V(this.long0+e/(this.a*this.k0)),i.x=n,i.y=r,i}var X0=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"];const Y0={init:$0,forward:W0,inverse:j0,names:X0};function H0(){}function zs(i){return i}var q0=["longlat","identity"];const z0={init:H0,forward:zs,inverse:zs,names:q0};var K0=[Y0,z0],ei={},Gi=[];function Sh(i,e){var t=Gi.length;return i.names?(Gi[t]=i,i.names.forEach(function(n){ei[n.toLowerCase()]=t}),this):(console.log(e),!0)}function Mh(i){return i.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}function J0(i){if(!i)return!1;var e=i.toLowerCase();if(typeof ei[e]<"u"&&Gi[ei[e]]||(e=Mh(e),e in ei&&Gi[ei[e]]))return Gi[ei[e]]}function Z0(){K0.forEach(Sh)}const Q0={start:Z0,add:Sh,get:J0};var Eh={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:6377563396e-3,b:635625691e-2,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:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"},andrae:{a:637710443e-2,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:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"},clrk80:{a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:63782492e-1,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298556e-3,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:63781575e-1,b:63567722e-1,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:63567733205e-4,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:63558348467e-4,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"},WGS84:{a:6378137,rf:298.257223563,ellipseName:"WGS 84"},sphere:{a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}};const td=Eh.WGS84;function ed(i,e,t,n){var r=i*i,a=e*e,s=(r-a)/r,o=0;n?(i*=1-s*(R0+s*(O0+s*b0)),r=i*i,s=0):o=Math.sqrt(s);var h=(r-a)/a;return{es:s,e:o,ep2:h}}function id(i,e,t,n,r){if(!i){var a=$e(Eh,n);a||(a=td),i=a.a,e=a.b,t=a.rf}return t&&!e&&(e=(1-1/t)*i),(t===0||Math.abs(i-e)3&&(o.datum_params[3]!==0||o.datum_params[4]!==0||o.datum_params[5]!==0||o.datum_params[6]!==0)&&(o.datum_type=li,o.datum_params[3]*=Sn,o.datum_params[4]*=Sn,o.datum_params[5]*=Sn,o.datum_params[6]=o.datum_params[6]/1e6+1)),s&&(o.datum_type=Di,o.grids=s),o.a=t,o.b=n,o.es=r,o.ep2=a,o}var Ja={};function ad(i,e,t){return e instanceof ArrayBuffer?sd(i,e,t):{ready:od(i,e)}}function sd(i,e,t){var n=!0;t!==void 0&&t.includeErrorFields===!1&&(n=!1);var r=new DataView(e),a=ud(r),s=cd(r,a),o=fd(r,s,a,n),h={header:s,subgrids:o};return Ja[i]=h,h}async function od(i,e){for(var t=[],n=await e.getImageCount(),r=n-1;r>=0;r--){var a=await e.getImage(r),s=await a.readRasters(),o=s,h=[a.getWidth(),a.getHeight()],l=a.getBoundingBox().map(Ks),u=[a.fileDirectory.ModelPixelScale[0],a.fileDirectory.ModelPixelScale[1]].map(Ks),f=l[0]+(h[0]-1)*u[0],c=l[3]-(h[1]-1)*u[1],v=o[0],g=o[1],m=[];for(let S=h[1]-1;S>=0;S--)for(let p=h[0]-1;p>=0;p--){var y=S*h[0]+p;m.push([-Ne(g[y]),Ne(v[y])])}t.push({del:u,lim:h,ll:[-f,c],cvs:m})}var E={header:{nSubgrids:n},subgrids:t};return Ja[i]=E,E}function hd(i){if(i===void 0)return null;var e=i.split(",");return e.map(ld)}function ld(i){if(i.length===0)return null;var e=i[0]==="@";return e&&(i=i.slice(1)),i==="null"?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:i,mandatory:!e,grid:Ja[i]||null,isNull:!1}}function Ks(i){return i*Math.PI/180}function Ne(i){return i/3600*Math.PI/180}function ud(i){var e=i.getInt32(8,!1);return e===11?!1:(e=i.getInt32(8,!0),e!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function cd(i,e){return{nFields:i.getInt32(8,e),nSubgridFields:i.getInt32(24,e),nSubgrids:i.getInt32(40,e),shiftType:Ca(i,56,56+8).trim(),fromSemiMajorAxis:i.getFloat64(120,e),fromSemiMinorAxis:i.getFloat64(136,e),toSemiMajorAxis:i.getFloat64(152,e),toSemiMinorAxis:i.getFloat64(168,e)}}function Ca(i,e,t){return String.fromCharCode.apply(null,new Uint8Array(i.buffer.slice(e,t)))}function fd(i,e,t,n){for(var r=176,a=[],s=0;s5e-11?!1:i.datum_type===hi?i.datum_params[0]===e.datum_params[0]&&i.datum_params[1]===e.datum_params[1]&&i.datum_params[2]===e.datum_params[2]:i.datum_type===li?i.datum_params[0]===e.datum_params[0]&&i.datum_params[1]===e.datum_params[1]&&i.datum_params[2]===e.datum_params[2]&&i.datum_params[3]===e.datum_params[3]&&i.datum_params[4]===e.datum_params[4]&&i.datum_params[5]===e.datum_params[5]&&i.datum_params[6]===e.datum_params[6]:!0}function wh(i,e,t){var n=i.x,r=i.y,a=i.z?i.z:0,s,o,h,l;if(r<-I&&r>-1.001*I)r=-I;else if(r>I&&r<1.001*I)r=I;else{if(r<-I)return{x:-1/0,y:-1/0,z:i.z};if(r>I)return{x:1/0,y:1/0,z:i.z}}return n>Math.PI&&(n-=2*Math.PI),o=Math.sin(r),l=Math.cos(r),h=o*o,s=t/Math.sqrt(1-e*h),{x:(s+a)*l*Math.cos(n),y:(s+a)*l*Math.sin(n),z:(s*(1-e)+a)*o}}function xh(i,e,t,n){var r=1e-12,a=r*r,s=30,o,h,l,u,f,c,v,g,m,y,E,S,p,A=i.x,C=i.y,x=i.z?i.z:0,O,R,L;if(o=Math.sqrt(A*A+C*C),h=Math.sqrt(A*A+C*C+x*x),o/ta&&pn.y||v>n.x||yo&&Math.abs(h.y)>o);if(s<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=V(a.x+t.ll[0]),n.y=a.y+t.ll[1]}else isNaN(a.x)||(n.x=i.x+a.x,n.y=i.y+a.y);return n}function Zs(i,e){var t={x:i.x/e.del[0],y:i.y/e.del[1]},n={x:Math.floor(t.x),y:Math.floor(t.y)},r={x:t.x-1*n.x,y:t.y-1*n.y},a={x:Number.NaN,y:Number.NaN},s;if(n.x<0||n.x>=e.lim[0]||n.y<0||n.y>=e.lim[1])return a;s=n.y*e.lim[0]+n.x;var o={x:e.cvs[s][0],y:e.cvs[s][1]};s++;var h={x:e.cvs[s][0],y:e.cvs[s][1]};s+=e.lim[0];var l={x:e.cvs[s][0],y:e.cvs[s][1]};s--;var u={x:e.cvs[s][0],y:e.cvs[s][1]},f=r.x*r.y,c=r.x*(1-r.y),v=(1-r.x)*(1-r.y),g=(1-r.x)*r.y;return a.x=v*o.x+c*h.x+g*u.x+f*l.x,a.y=v*o.y+c*h.y+g*u.y+f*l.y,a}function Qs(i,e,t){var n=t.x,r=t.y,a=t.z||0,s,o,h,l={};for(h=0;h<3;h++)if(!(e&&h===2&&t.z===void 0))switch(h===0?(s=n,"ew".indexOf(i.axis[h])!==-1?o="x":o="y"):h===1?(s=r,"ns".indexOf(i.axis[h])!==-1?o="y":o="x"):(s=a,o="z"),i.axis[h]){case"e":l[o]=s;break;case"w":l[o]=-s;break;case"n":l[o]=s;break;case"s":l[o]=-s;break;case"u":t[o]!==void 0&&(l.z=s);break;case"d":t[o]!==void 0&&(l.z=-s);break;default:return null}return l}function Ah(i){var e={x:i[0],y:i[1]};return i.length>2&&(e.z=i[2]),i.length>3&&(e.m=i[3]),e}function Md(i){to(i.x),to(i.y)}function to(i){if(typeof Number.isFinite=="function"){if(Number.isFinite(i))return;throw new TypeError("coordinates must be finite numbers")}if(typeof i!="number"||i!==i||!isFinite(i))throw new TypeError("coordinates must be finite numbers")}function Ed(i,e){return(i.datum.datum_type===hi||i.datum.datum_type===li||i.datum.datum_type===Di)&&e.datumCode!=="WGS84"||(e.datum.datum_type===hi||e.datum.datum_type===li||e.datum.datum_type===Di)&&i.datumCode!=="WGS84"}function Dr(i,e,t,n){var r;Array.isArray(t)?t=Ah(t):t={x:t.x,y:t.y,z:t.z,m:t.m};var a=t.z!==void 0;if(Md(t),i.datum&&e.datum&&Ed(i,e)&&(r=new zt("WGS84"),t=Dr(i,r,t,n),i=r),n&&i.axis!=="enu"&&(t=Qs(i,!1,t)),i.projName==="longlat")t={x:t.x*Mt,y:t.y*Mt,z:t.z||0};else if(i.to_meter&&(t={x:t.x*i.to_meter,y:t.y*i.to_meter,z:t.z||0}),t=i.inverse(t),!t)return;if(i.from_greenwich&&(t.x+=i.from_greenwich),t=md(i.datum,e.datum,t),!!t)return t=t,e.from_greenwich&&(t={x:t.x-e.from_greenwich,y:t.y,z:t.z||0}),e.projName==="longlat"?t={x:t.x*ee,y:t.y*ee,z:t.z||0}:(t=e.forward(t),e.to_meter&&(t={x:t.x/e.to_meter,y:t.y/e.to_meter,z:t.z||0})),n&&e.axis!=="enu"?Qs(e,!0,t):(t&&!a&&delete t.z,t)}var eo=zt("WGS84");function la(i,e,t,n){var r,a,s;return Array.isArray(t)?(r=Dr(i,e,t,n)||{x:NaN,y:NaN},t.length>2?typeof i.name<"u"&&i.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"?typeof r.z=="number"?[r.x,r.y,r.z].concat(t.slice(3)):[r.x,r.y,t[2]].concat(t.slice(3)):[r.x,r.y].concat(t.slice(2)):[r.x,r.y]):(a=Dr(i,e,t,n),s=Object.keys(t),s.length===2||s.forEach(function(o){if(typeof i.name<"u"&&i.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"){if(o==="x"||o==="y"||o==="z")return}else if(o==="x"||o==="y")return;a[o]=t[o]}),a)}function pr(i){return i instanceof zt?i:typeof i=="object"&&"oProj"in i?i.oProj:zt(i)}function wd(i,e,t){var n,r,a=!1,s;return typeof e>"u"?(r=pr(i),n=eo,a=!0):(typeof e.x<"u"||Array.isArray(e))&&(t=e,r=pr(i),n=eo,a=!0),n||(n=pr(i)),r||(r=pr(e)),t?la(n,r,t):(s={forward:function(o,h){return la(n,r,o,h)},inverse:function(o,h){return la(r,n,o,h)}},a&&(s.oProj=r),s)}function Hi(i,e,t){if(!(this instanceof Hi))return new Hi(i,e,t);if(Array.isArray(i))this.x=i[0],this.y=i[1],this.z=i[2]||0;else if(typeof i=="object")this.x=i.x,this.y=i.y,this.z=i.z||0;else if(typeof i=="string"&&typeof e>"u"){var n=i.split(",");this.x=parseFloat(n[0]),this.y=parseFloat(n[1]),this.z=parseFloat(n[2])||0}else this.x=i,this.y=e,this.z=t||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Hi.fromMGRS=function(i){return new Hi(ph(i))};Hi.prototype.toMGRS=function(i){return _h([this.x,this.y],i)};var xd=1,Ad=.25,io=.046875,no=.01953125,ro=.01068115234375,Cd=.75,Pd=.46875,Td=.013020833333333334,Id=.007120768229166667,Rd=.3645833333333333,Od=.005696614583333333,bd=.3076171875;function Za(i){var e=[];e[0]=xd-i*(Ad+i*(io+i*(no+i*ro))),e[1]=i*(Cd-i*(io+i*(no+i*ro)));var t=i*i;return e[2]=t*(Pd-i*(Td+i*Id)),t*=i,e[3]=t*(Rd-i*Od),e[4]=t*i*bd,e}function Ji(i,e,t,n){return t*=e,e*=e,n[0]*i-t*(n[1]+e*(n[2]+e*(n[3]+e*n[4])))}var Gd=20;function Qa(i,e,t){for(var n=1/(1-e),r=i,a=Gd;a;--a){var s=Math.sin(r),o=1-e*s*s;if(o=(Ji(r,s,Math.cos(r),t)-i)*(o*Math.sqrt(o))*n,r-=o,Math.abs(o)D?Math.tan(t):0,m=Math.pow(g,2),y=Math.pow(m,2);r=1-this.es*Math.pow(o,2),u=u/Math.sqrt(r);var E=Ji(t,o,h,this.en);a=this.a*(this.k0*u*(1+f/6*(1-m+c+f/20*(5-18*m+y+14*c-58*m*c+f/42*(61+179*y-y*m-479*m)))))+this.x0,s=this.a*(this.k0*(E-this.ml0+o*n*u/2*(1+f/12*(5-m+9*c+4*v+f/30*(61+y-58*m+270*c-330*m*c+f/56*(1385+543*y-y*m-3111*m))))))+this.y0}else{var l=h*Math.sin(n);if(Math.abs(Math.abs(l)-1)=1){if(l-1>D)return 93;s=0}else s=Math.acos(s);t<0&&(s=-s),s=this.a*this.k0*(s-this.lat0)+this.y0}return i.x=a,i.y=s,i}function Fd(i){var e,t,n,r,a=(i.x-this.x0)*(1/this.a),s=(i.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+s/this.k0,t=Qa(e,this.es,this.en),Math.abs(t)D?Math.tan(t):0,g=this.ep2*Math.pow(c,2),m=Math.pow(g,2),y=Math.pow(v,2),E=Math.pow(y,2);e=1-this.es*Math.pow(f,2);var S=a*Math.sqrt(e)/this.k0,p=Math.pow(S,2);e=e*v,n=t-e*p/(1-this.es)*.5*(1-p/12*(5+3*y-9*g*y+g-4*m-p/30*(61+90*y-252*g*y+45*E+46*g-p/56*(1385+3633*y+4095*E+1574*E*y)))),r=V(this.long0+S*(1-p/6*(1+2*y+g-p/20*(5+28*y+24*E+8*g*y+6*g-p/42*(61+662*y+1320*E+720*E*y))))/c)}else n=I*Un(s),r=0;else{var o=Math.exp(a/this.k0),h=.5*(o-1/o),l=this.lat0+s/this.k0,u=Math.cos(l);e=Math.sqrt((1-Math.pow(u,2))/(1+Math.pow(h,2))),n=Math.asin(e),s<0&&(n=-n),h===0&&u===0?r=0:r=V(Math.atan2(h,u)+this.long0)}return i.x=r,i.y=n,i}var Dd=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const wr={init:Ld,forward:Nd,inverse:Fd,names:Dd};function Ch(i){var e=Math.exp(i);return e=(e-1/e)/2,e}function Rt(i,e){i=Math.abs(i),e=Math.abs(e);var t=Math.max(i,e),n=Math.min(i,e)/(t||1);return t*Math.sqrt(1+Math.pow(n,2))}function kd(i){var e=1+i,t=e-1;return t===0?i:i*Math.log(e)/t}function Vd(i){var e=Math.abs(i);return e=kd(e*(1+e/(Rt(1,e)+1))),i<0?-e:e}function ts(i,e){for(var t=2*Math.cos(2*e),n=i.length-1,r=i[n],a=0,s;--n>=0;)s=-a+t*r+i[n],a=r,r=s;return e+s*Math.sin(2*e)}function Bd(i,e){for(var t=2*Math.cos(e),n=i.length-1,r=i[n],a=0,s;--n>=0;)s=-a+t*r+i[n],a=r,r=s;return Math.sin(e)*s}function Ud(i){var e=Math.exp(i);return e=(e+1/e)/2,e}function Ph(i,e,t){for(var n=Math.sin(e),r=Math.cos(e),a=Ch(t),s=Ud(t),o=2*r*s,h=-2*n*a,l=i.length-1,u=i[l],f=0,c=0,v=0,g,m;--l>=0;)g=c,m=f,c=u,f=v,u=-g+o*c-h*f+i[l],v=-m+h*c+o*f;return o=n*s,h=r*a,[o*u-h*v,o*v+h*u]}function $d(){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&&(wr.init.apply(this),this.forward=wr.forward,this.inverse=wr.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var i=this.es/(1+Math.sqrt(1-this.es)),e=i/(2-i),t=e;this.cgb[0]=e*(2+e*(-2/3+e*(-2+e*(116/45+e*(26/45+e*(-2854/675)))))),this.cbg[0]=e*(-2+e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))),t=t*e,this.cgb[1]=t*(7/3+e*(-8/5+e*(-227/45+e*(2704/315+e*(2323/945))))),this.cbg[1]=t*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),t=t*e,this.cgb[2]=t*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=t*(-26/15+e*(34/21+e*(8/5+e*(-12686/2835)))),t=t*e,this.cgb[3]=t*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=t*(1237/630+e*(-12/5+e*(-24832/14175))),t=t*e,this.cgb[4]=t*(4174/315+e*(-144838/6237)),this.cbg[4]=t*(-734/315+e*(109598/31185)),t=t*e,this.cgb[5]=t*(601676/22275),this.cbg[5]=t*(444337/155925),t=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+t*(1/4+t*(1/64+t/256))),this.utg[0]=e*(-.5+e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=t*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=t*(13/48+e*(-3/5+e*(557/1440+e*(281/630+e*(-1983433/1935360))))),t=t*e,this.utg[2]=t*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=t*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),t=t*e,this.utg[3]=t*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=t*(49561/161280+e*(-179/168+e*(6601661/7257600))),t=t*e,this.utg[4]=t*(-4583/161280+e*(108847/3991680)),this.gtu[4]=t*(34729/80640+e*(-3418889/1995840)),t=t*e,this.utg[5]=t*(-20648693/638668800),this.gtu[5]=t*(212378941/319334400);var n=ts(this.cbg,this.lat0);this.Zb=-this.Qn*(n+Bd(this.gtu,2*n))}function Wd(i){var e=V(i.x-this.long0),t=i.y;t=ts(this.cbg,t);var n=Math.sin(t),r=Math.cos(t),a=Math.sin(e),s=Math.cos(e);t=Math.atan2(n,s*r),e=Math.atan2(a*r,Rt(n,r*s)),e=Vd(Math.tan(e));var o=Ph(this.gtu,2*t,2*e);t=t+o[0],e=e+o[1];var h,l;return Math.abs(e)<=2.623395162778?(h=this.a*(this.Qn*e)+this.x0,l=this.a*(this.Qn*t+this.Zb)+this.y0):(h=1/0,l=1/0),i.x=h,i.y=l,i}function jd(i){var e=(i.x-this.x0)*(1/this.a),t=(i.y-this.y0)*(1/this.a);t=(t-this.Zb)/this.Qn,e=e/this.Qn;var n,r;if(Math.abs(e)<=2.623395162778){var a=Ph(this.utg,2*t,2*e);t=t+a[0],e=e+a[1],e=Math.atan(Ch(e));var s=Math.sin(t),o=Math.cos(t),h=Math.sin(e),l=Math.cos(e);t=Math.atan2(s*l,Rt(h,l*o)),e=Math.atan2(h,l*o),n=V(e+this.long0),r=ts(this.cgb,t)}else n=1/0,r=1/0;return i.x=n,i.y=r,i}var Xd=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"];const xr={init:$d,forward:Wd,inverse:jd,names:Xd};function Yd(i,e){if(i===void 0){if(i=Math.floor((V(e)+Math.PI)*30/Math.PI)+1,i<0)return 0;if(i>60)return 60}return i}var Hd="etmerc";function qd(){var i=Yd(this.zone,this.long0);if(i===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(i)-183)*Mt,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,xr.init.apply(this),this.forward=xr.forward,this.inverse=xr.inverse}var zd=["Universal Transverse Mercator System","utm"];const Kd={init:qd,names:zd,dependsOn:Hd};function es(i,e){return Math.pow((1-i)/(1+i),e)}var Jd=20;function Zd(){var i=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*i*i),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(i/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+Q)/(Math.pow(Math.tan(.5*this.lat0+Q),this.C)*es(this.e*i,this.ratexp))}function Qd(i){var e=i.x,t=i.y;return i.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*t+Q),this.C)*es(this.e*Math.sin(t),this.ratexp))-I,i.x=this.C*e,i}function tv(i){for(var e=1e-14,t=i.x/this.C,n=i.y,r=Math.pow(Math.tan(.5*n+Q)/this.K,1/this.C),a=Jd;a>0&&(n=2*Math.atan(r*es(this.e*Math.sin(i.y),-.5*this.e))-I,!(Math.abs(n-i.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)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=D&&Math.abs(Math.cos(this.lat_ts))>D&&(this.k0=.5*this.cons*ne(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/qt(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=ne(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(ns(this.lat0,this.sinlat0,this.e))-I,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function hv(i){var e=i.x,t=i.y,n=Math.sin(t),r=Math.cos(t),a,s,o,h,l,u,f=V(e-this.long0);return Math.abs(Math.abs(e-this.long0)-Math.PI)<=D&&Math.abs(t+this.lat0)<=D?(i.x=NaN,i.y=NaN,i):this.sphere?(a=2*this.k0/(1+this.sinlat0*n+this.coslat0*r*Math.cos(f)),i.x=this.a*a*r*Math.sin(f)+this.x0,i.y=this.a*a*(this.coslat0*n-this.sinlat0*r*Math.cos(f))+this.y0,i):(s=2*Math.atan(ns(t,n,this.e))-I,h=Math.cos(s),o=Math.sin(s),Math.abs(this.coslat0)<=D?(l=qt(this.e,t*this.con,this.con*n),u=2*this.a*this.k0*l/this.cons,i.x=this.x0+u*Math.sin(e-this.long0),i.y=this.y0-this.con*u*Math.cos(e-this.long0),i):(Math.abs(this.sinlat0)0?e=V(this.long0+Math.atan2(i.x,-1*i.y)):e=V(this.long0+Math.atan2(i.x,i.y)):e=V(this.long0+Math.atan2(i.x*Math.sin(o),s*this.coslat0*Math.cos(o)-i.y*this.sinlat0*Math.sin(o))),i.x=e,i.y=t,i)}else if(Math.abs(this.coslat0)<=D){if(s<=D)return t=this.lat0,e=this.long0,i.x=e,i.y=t,i;i.x*=this.con,i.y*=this.con,n=s*this.cons/(2*this.a*this.k0),t=this.con*Nn(this.e,n),e=this.con*V(this.con*this.long0+Math.atan2(i.x,-1*i.y))}else r=2*Math.atan(s*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,s<=D?a=this.X0:(a=Math.asin(Math.cos(r)*this.sinX0+i.y*Math.sin(r)*this.cosX0/s),e=V(this.long0+Math.atan2(i.x*Math.sin(r),s*this.cosX0*Math.cos(r)-i.y*this.sinX0*Math.sin(r)))),t=-1*Nn(this.e,Math.tan(.5*(I+a)));return i.x=e,i.y=t,i}var uv=["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"];const cv={init:ov,forward:hv,inverse:lv,names:uv,ssfn_:ns};function fv(){var i=this.lat0;this.lambda0=this.long0;var e=Math.sin(i),t=this.a,n=this.rf,r=1/n,a=2*r-Math.pow(r,2),s=this.e=Math.sqrt(a);this.R=this.k0*t*Math.sqrt(1-a)/(1-a*Math.pow(e,2)),this.alpha=Math.sqrt(1+a/(1-a)*Math.pow(Math.cos(i),4)),this.b0=Math.asin(e/this.alpha);var o=Math.log(Math.tan(Math.PI/4+this.b0/2)),h=Math.log(Math.tan(Math.PI/4+i/2)),l=Math.log((1+s*e)/(1-s*e));this.K=o-this.alpha*h+this.alpha*s/2*l}function dv(i){var e=Math.log(Math.tan(Math.PI/4-i.y/2)),t=this.e/2*Math.log((1+this.e*Math.sin(i.y))/(1-this.e*Math.sin(i.y))),n=-this.alpha*(e+t)+this.K,r=2*(Math.atan(Math.exp(n))-Math.PI/4),a=this.alpha*(i.x-this.lambda0),s=Math.atan(Math.sin(a)/(Math.sin(this.b0)*Math.tan(r)+Math.cos(this.b0)*Math.cos(a))),o=Math.asin(Math.cos(this.b0)*Math.sin(r)-Math.sin(this.b0)*Math.cos(r)*Math.cos(a));return i.y=this.R/2*Math.log((1+Math.sin(o))/(1-Math.sin(o)))+this.y0,i.x=this.R*s+this.x0,i}function vv(i){for(var e=i.x-this.x0,t=i.y-this.y0,n=e/this.R,r=2*(Math.atan(Math.exp(t/this.R))-Math.PI/4),a=Math.asin(Math.cos(this.b0)*Math.sin(r)+Math.sin(this.b0)*Math.cos(r)*Math.cos(n)),s=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(r))),o=this.lambda0+s/this.alpha,h=0,l=a,u=-1e3,f=0;Math.abs(l-u)>1e-7;){if(++f>20)return;h=1/this.alpha*(Math.log(Math.tan(Math.PI/4+a/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),u=l,l=2*Math.atan(Math.exp(h))-Math.PI/2}return i.x=o,i.y=l,i}var gv=["somerc"];const _v={init:fv,forward:dv,inverse:vv,names:gv};var Ci=1e-7;function pv(i){var e=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],t=typeof i.projName=="object"?Object.keys(i.projName)[0]:i.projName;return"no_uoff"in i||"no_off"in i||e.indexOf(t)!==-1||e.indexOf(Mh(t))!==-1}function yv(){var i,e,t,n,r,a,s,o,h,l,u=0,f,c=0,v=0,g=0,m=0,y=0,E=0;this.no_off=pv(this),this.no_rot="no_rot"in this;var S=!1;"alpha"in this&&(S=!0);var p=!1;if("rectified_grid_angle"in this&&(p=!0),S&&(E=this.alpha),p&&(u=this.rectified_grid_angle),S||p)c=this.longc;else if(v=this.long1,m=this.lat1,g=this.long2,y=this.lat2,Math.abs(m-y)<=Ci||(i=Math.abs(m))<=Ci||Math.abs(i-I)<=Ci||Math.abs(Math.abs(this.lat0)-I)<=Ci||Math.abs(Math.abs(y)-I)<=Ci)throw new Error;var A=1-this.es;e=Math.sqrt(A),Math.abs(this.lat0)>D?(o=Math.sin(this.lat0),t=Math.cos(this.lat0),i=1-this.es*o*o,this.B=t*t,this.B=Math.sqrt(1+this.es*this.B*this.B/A),this.A=this.B*this.k0*e/i,n=this.B*e/(t*Math.sqrt(i)),r=n*n-1,r<=0?r=0:(r=Math.sqrt(r),this.lat0<0&&(r=-r)),this.E=r+=n,this.E*=Math.pow(qt(this.e,this.lat0,o),this.B)):(this.B=1/e,this.A=this.k0,this.E=n=r=1),S||p?(S?(f=Math.asin(Math.sin(E)/n),p||(u=E)):(f=u,E=Math.asin(n*Math.sin(f))),this.lam0=c-Math.asin(.5*(r-1/r)*Math.tan(f))/this.B):(a=Math.pow(qt(this.e,m,Math.sin(m)),this.B),s=Math.pow(qt(this.e,y,Math.sin(y)),this.B),r=this.E/a,h=(s-a)/(s+a),l=this.E*this.E,l=(l-s*a)/(l+s*a),i=v-g,i<-Math.PI?g-=Ln:i>Math.PI&&(g+=Ln),this.lam0=V(.5*(v+g)-Math.atan(l*Math.tan(.5*this.B*(v-g))/h)/this.B),f=Math.atan(2*Math.sin(this.B*V(v-this.lam0))/(r-1/r)),u=E=Math.asin(n*Math.sin(f))),this.singam=Math.sin(f),this.cosgam=Math.cos(f),this.sinrot=Math.sin(u),this.cosrot=Math.cos(u),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(E))),this.lat0<0&&(this.u_0=-this.u_0)),r=.5*f,this.v_pole_n=this.ArB*Math.log(Math.tan(Q-r)),this.v_pole_s=this.ArB*Math.log(Math.tan(Q+r))}function mv(i){var e={},t,n,r,a,s,o,h,l;if(i.x=i.x-this.lam0,Math.abs(Math.abs(i.y)-I)>D){if(s=this.E/Math.pow(qt(this.e,i.y,Math.sin(i.y)),this.B),o=1/s,t=.5*(s-o),n=.5*(s+o),a=Math.sin(this.B*i.x),r=(t*this.singam-a*this.cosgam)/n,Math.abs(Math.abs(r)-1)0?this.v_pole_n:this.v_pole_s,h=this.ArB*i.y;return this.no_rot?(e.x=h,e.y=l):(h-=this.u_0,e.x=l*this.cosrot+h*this.sinrot,e.y=h*this.cosrot-l*this.sinrot),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function Sv(i){var e,t,n,r,a,s,o,h={};if(i.x=(i.x-this.x0)*(1/this.a),i.y=(i.y-this.y0)*(1/this.a),this.no_rot?(t=i.y,e=i.x):(t=i.x*this.cosrot-i.y*this.sinrot,e=i.y*this.cosrot+i.x*this.sinrot+this.u_0),n=Math.exp(-this.BrA*t),r=.5*(n-1/n),a=.5*(n+1/n),s=Math.sin(this.BrA*e),o=(s*this.cosgam+r*this.singam)/a,Math.abs(Math.abs(o)-1)D?this.ns=Math.log(n/o)/Math.log(r/h):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=n/(this.ns*Math.pow(r,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function xv(i){var e=i.x,t=i.y;Math.abs(2*Math.abs(t)-Math.PI)<=D&&(t=Un(t)*(I-2*D));var n=Math.abs(Math.abs(t)-I),r,a;if(n>D)r=qt(this.e,t,Math.sin(t)),a=this.a*this.f0*Math.pow(r,this.ns);else{if(n=t*this.ns,n<=0)return null;a=0}var s=this.ns*V(e-this.long0);return i.x=this.k0*(a*Math.sin(s))+this.x0,i.y=this.k0*(this.rh-a*Math.cos(s))+this.y0,i}function Av(i){var e,t,n,r,a,s=(i.x-this.x0)/this.k0,o=this.rh-(i.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(s*s+o*o),t=1):(e=-Math.sqrt(s*s+o*o),t=-1);var h=0;if(e!==0&&(h=Math.atan2(t*s,t*o)),e!==0||this.ns>0){if(t=1/this.ns,n=Math.pow(e/(this.a*this.f0),t),r=Nn(this.e,n),r===-9999)return null}else r=-I;return a=V(h/this.ns+this.long0),i.x=a,i.y=r,i}var Cv=["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 Pv={init:wv,forward:xv,inverse:Av,names:Cv};function Tv(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),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 Iv(i){var e,t,n,r,a,s,o,h=i.x,l=i.y,u=V(h-this.long0);return e=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),t=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/e)-this.s45),n=-u*this.alfa,r=Math.asin(Math.cos(this.ad)*Math.sin(t)+Math.sin(this.ad)*Math.cos(t)*Math.cos(n)),a=Math.asin(Math.cos(t)*Math.sin(n)/Math.cos(r)),s=this.n*a,o=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(r/2+this.s45),this.n),i.y=o*Math.cos(s)/1,i.x=o*Math.sin(s)/1,this.czech||(i.y*=-1,i.x*=-1),i}function Rv(i){var e,t,n,r,a,s,o,h,l=i.x;i.x=i.y,i.y=l,this.czech||(i.y*=-1,i.x*=-1),s=Math.sqrt(i.x*i.x+i.y*i.y),a=Math.atan2(i.y,i.x),r=a/Math.sin(this.s0),n=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(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),t=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(e)),i.x=this.long0-t/this.alfa,o=e,h=0;var u=0;do i.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(o))/(1-this.e*Math.sin(o)),this.e/2))-this.s45),Math.abs(o-i.y)<1e-10&&(h=1),o=i.y,u+=1;while(h===0&&u<15);return u>=15?null:i}var Ov=["Krovak","krovak"];const bv={init:Tv,forward:Iv,inverse:Rv,names:Ov};function Pt(i,e,t,n,r){return i*r-e*Math.sin(2*r)+t*Math.sin(4*r)-n*Math.sin(6*r)}function $n(i){return 1-.25*i*(1+i/16*(3+1.25*i))}function Wn(i){return .375*i*(1+.25*i*(1+.46875*i))}function jn(i){return .05859375*i*i*(1+.75*i)}function Xn(i){return i*i*i*(35/3072)}function rs(i,e,t){var n=e*t;return i/Math.sqrt(1-n*n)}function je(i){return Math.abs(i)1e-7?(t=i*e,(1-i*i)*(e/(1-t*t)-.5/i*Math.log((1-t)/(1+t)))):2*e}var Pa=1,Ta=2,Ia=3,Ar=4;function kv(){var i=Math.abs(this.lat0);if(Math.abs(i-I)0){var e;switch(this.qp=ke(this.e,1),this.mmf=.5/(1-this.es),this.apa=Hv(this.es),this.mode){case Ta:this.dd=1;break;case Pa:this.dd=1;break;case Ia:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case Ar:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=ke(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===Ar&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function Vv(i){var e,t,n,r,a,s,o,h,l,u,f=i.x,c=i.y;if(f=V(f-this.long0),this.sphere){if(a=Math.sin(c),u=Math.cos(c),n=Math.cos(f),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(t=this.mode===this.EQUIT?1+u*n:1+this.sinph0*a+this.cosph0*u*n,t<=D)return null;t=Math.sqrt(2/t),e=t*u*Math.sin(f),t*=this.mode===this.EQUIT?a:this.cosph0*a-this.sinph0*u*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(c+this.lat0)=0?(e=(l=Math.sqrt(s))*r,t=n*(this.mode===this.S_POLE?l:-l)):e=t=0;break}}return i.x=this.a*e+this.x0,i.y=this.a*t+this.y0,i}function Bv(i){i.x-=this.x0,i.y-=this.y0;var e=i.x/this.a,t=i.y/this.a,n,r,a,s,o,h,l;if(this.sphere){var u=0,f,c=0;if(f=Math.sqrt(e*e+t*t),r=f*.5,r>1)return null;switch(r=2*Math.asin(r),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(c=Math.sin(r),u=Math.cos(r)),this.mode){case this.EQUIT:r=Math.abs(f)<=D?0:Math.asin(t*c/f),e*=c,t=u*f;break;case this.OBLIQ:r=Math.abs(f)<=D?this.lat0:Math.asin(u*this.sinph0+t*c*this.cosph0/f),e*=c*this.cosph0,t=(u-Math.sin(r)*this.sinph0)*f;break;case this.N_POLE:t=-t,r=I-r;break;case this.S_POLE:r-=I;break}n=t===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(e,t)}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(e/=this.dd,t*=this.dd,h=Math.sqrt(e*e+t*t),h1&&(i=i>1?1:-1),Math.asin(i)}function Jv(){Math.abs(this.lat1+this.lat2)D?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 Zv(i){var e=i.x,t=i.y;this.sin_phi=Math.sin(t),this.cos_phi=Math.cos(t);var n=ke(this.e3,this.sin_phi),r=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,a=this.ns0*V(e-this.long0),s=r*Math.sin(a)+this.x0,o=this.rh-r*Math.cos(a)+this.y0;return i.x=s,i.y=o,i}function Qv(i){var e,t,n,r,a,s;return i.x-=this.x0,i.y=this.rh-i.y+this.y0,this.ns0>=0?(e=Math.sqrt(i.x*i.x+i.y*i.y),n=1):(e=-Math.sqrt(i.x*i.x+i.y*i.y),n=-1),r=0,e!==0&&(r=Math.atan2(n*i.x,n*i.y)),n=e*this.ns0/this.a,this.sphere?s=Math.asin((this.c-n*n)/(2*this.ns0)):(t=(this.c-n*n)/this.ns0,s=this.phi1z(this.e3,t)),a=V(r/this.ns0+this.long0),i.x=a,i.y=s,i}function tg(i,e){var t,n,r,a,s,o=We(.5*e);if(i0||Math.abs(s)<=D?(o=this.x0+this.a*a*t*Math.sin(n)/s,h=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*t*r)/s):(o=this.x0+this.infinity_dist*t*Math.sin(n),h=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*t*r)),i.x=o,i.y=h,i}function ag(i){var e,t,n,r,a,s;return i.x=(i.x-this.x0)/this.a,i.y=(i.y-this.y0)/this.a,i.x/=this.k0,i.y/=this.k0,(e=Math.sqrt(i.x*i.x+i.y*i.y))?(r=Math.atan2(e,this.rc),t=Math.sin(r),n=Math.cos(r),s=We(n*this.sin_p14+i.y*t*this.cos_p14/e),a=Math.atan2(i.x*t,e*this.cos_p14*n-i.y*this.sin_p14*t),a=V(this.long0+a)):(s=this.phic0,a=0),i.x=a,i.y=s,i}var sg=["gnom"];const og={init:ng,forward:rg,inverse:ag,names:sg};function hg(i,e){var t=1-(1-i*i)/(2*i)*Math.log((1-i)/(1+i));if(Math.abs(Math.abs(e)-t)<1e-6)return e<0?-1*I:I;for(var n=Math.asin(.5*e),r,a,s,o,h=0;h<30;h++)if(a=Math.sin(n),s=Math.cos(n),o=i*a,r=Math.pow(1-o*o,2)/(2*s)*(e/(1-i*i)-a/(1-o*o)+.5/i*Math.log((1-o)/(1+o))),n+=r,Math.abs(r)<=1e-10)return n;return NaN}function lg(){this.sphere||(this.k0=ne(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function ug(i){var e=i.x,t=i.y,n,r,a=V(e-this.long0);if(this.sphere)n=this.x0+this.a*a*Math.cos(this.lat_ts),r=this.y0+this.a*Math.sin(t)/Math.cos(this.lat_ts);else{var s=ke(this.e,Math.sin(t));n=this.x0+this.a*this.k0*a,r=this.y0+this.a*s*.5/this.k0}return i.x=n,i.y=r,i}function cg(i){i.x-=this.x0,i.y-=this.y0;var e,t;return this.sphere?(e=V(this.long0+i.x/this.a/Math.cos(this.lat_ts)),t=Math.asin(i.y/this.a*Math.cos(this.lat_ts))):(t=hg(this.e,2*i.y*this.k0/this.a),e=V(this.long0+i.x/(this.a*this.k0))),i.x=e,i.y=t,i}var fg=["cea"];const dg={init:lg,forward:ug,inverse:cg,names:fg};function vg(){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 gg(i){var e=i.x,t=i.y,n=V(e-this.long0),r=je(t-this.lat0);return i.x=this.x0+this.a*n*this.rc,i.y=this.y0+this.a*r,i}function _g(i){var e=i.x,t=i.y;return i.x=V(this.long0+(e-this.x0)/(this.a*this.rc)),i.y=je(this.lat0+(t-this.y0)/this.a),i}var pg=["Equirectangular","Equidistant_Cylindrical","Equidistant_Cylindrical_Spherical","eqc"];const yg={init:vg,forward:gg,inverse:_g,names:pg};var ao=20;function mg(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=$n(this.es),this.e1=Wn(this.es),this.e2=jn(this.es),this.e3=Xn(this.es),this.ml0=this.a*Pt(this.e0,this.e1,this.e2,this.e3,this.lat0)}function Sg(i){var e=i.x,t=i.y,n,r,a,s=V(e-this.long0);if(a=s*Math.sin(t),this.sphere)Math.abs(t)<=D?(n=this.a*s,r=-1*this.a*this.lat0):(n=this.a*Math.sin(a)/Math.tan(t),r=this.a*(je(t-this.lat0)+(1-Math.cos(a))/Math.tan(t)));else if(Math.abs(t)<=D)n=this.a*s,r=-1*this.ml0;else{var o=rs(this.a,this.e,Math.sin(t))/Math.tan(t);n=o*Math.sin(a),r=this.a*Pt(this.e0,this.e1,this.e2,this.e3,t)-this.ml0+o*(1-Math.cos(a))}return i.x=n+this.x0,i.y=r+this.y0,i}function Mg(i){var e,t,n,r,a,s,o,h,l;if(n=i.x-this.x0,r=i.y-this.y0,this.sphere)if(Math.abs(r+this.a*this.lat0)<=D)e=V(n/this.a+this.long0),t=0;else{s=this.lat0+r/this.a,o=n*n/this.a/this.a+s*s,h=s;var u;for(a=ao;a;--a)if(u=Math.tan(h),l=-1*(s*(h*u+1)-h-.5*(h*h+o)*u)/((h-s)/u-1),h+=l,Math.abs(l)<=D){t=h;break}e=V(this.long0+Math.asin(n*Math.tan(h)/this.a)/Math.sin(t))}else if(Math.abs(r+this.ml0)<=D)t=0,e=V(this.long0+n/this.a);else{s=(this.ml0+r)/this.a,o=n*n/this.a/this.a+s*s,h=s;var f,c,v,g,m;for(a=ao;a;--a)if(m=this.e*Math.sin(h),f=Math.sqrt(1-m*m)*Math.tan(h),c=this.a*Pt(this.e0,this.e1,this.e2,this.e3,h),v=this.e0-2*this.e1*Math.cos(2*h)+4*this.e2*Math.cos(4*h)-6*this.e3*Math.cos(6*h),g=c/this.a,l=(s*(f*g+1)-g-.5*f*(g*g+o))/(this.es*Math.sin(2*h)*(g*g+o-2*s*g)/(4*f)+(s-g)*(f*v-2/Math.sin(2*h))-v),h-=l,Math.abs(l)<=D){t=h;break}f=Math.sqrt(1-this.es*Math.pow(Math.sin(t),2))*Math.tan(t),e=V(this.long0+Math.asin(n*f/this.a)/Math.sin(t))}return i.x=e,i.y=t,i}var Eg=["Polyconic","American_Polyconic","poly"];const wg={init:mg,forward:Sg,inverse:Mg,names:Eg};function xg(){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 Ag(i){var e,t=i.x,n=i.y,r=n-this.lat0,a=t-this.long0,s=r/Sn*1e-5,o=a,h=1,l=0;for(e=1;e<=10;e++)h=h*s,l=l+this.A[e]*h;var u=l,f=o,c=1,v=0,g,m,y=0,E=0;for(e=1;e<=6;e++)g=c*u-v*f,m=v*u+c*f,c=g,v=m,y=y+this.B_re[e]*c-this.B_im[e]*v,E=E+this.B_im[e]*c+this.B_re[e]*v;return i.x=E*this.a+this.x0,i.y=y*this.a+this.y0,i}function Cg(i){var e,t=i.x,n=i.y,r=t-this.x0,a=n-this.y0,s=a/this.a,o=r/this.a,h=1,l=0,u,f,c=0,v=0;for(e=1;e<=6;e++)u=h*s-l*o,f=l*s+h*o,h=u,l=f,c=c+this.C_re[e]*h-this.C_im[e]*l,v=v+this.C_im[e]*h+this.C_re[e]*l;for(var g=0;g.999999999999&&(t=.999999999999),e=Math.asin(t);var n=V(this.long0+i.x/(.900316316158*this.a*Math.cos(e)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),t=(2*e+Math.sin(2*e))/Math.PI,Math.abs(t)>1&&(t=1);var r=Math.asin(t);return i.x=n,i.y=r,i}var Wg=["Mollweide","moll"];const jg={init:Bg,forward:Ug,inverse:$g,names:Wg};function Xg(){Math.abs(this.lat1+this.lat2)=0?(t=Math.sqrt(i.x*i.x+i.y*i.y),e=1):(t=-Math.sqrt(i.x*i.x+i.y*i.y),e=-1);var a=0;if(t!==0&&(a=Math.atan2(e*i.x,e*i.y)),this.sphere)return r=V(this.long0+a/this.ns),n=je(this.g-t/this.a),i.x=r,i.y=n,i;var s=this.g-t/this.a;return n=kr(s,this.e0,this.e1,this.e2,this.e3),r=V(this.long0+a/this.ns),i.x=r,i.y=n,i}var qg=["Equidistant_Conic","eqdc"];const zg={init:Xg,forward:Yg,inverse:Hg,names:qg};function Kg(){this.R=this.a}function Jg(i){var e=i.x,t=i.y,n=V(e-this.long0),r,a;Math.abs(t)<=D&&(r=this.x0+this.R*n,a=this.y0);var s=We(2*Math.abs(t/Math.PI));(Math.abs(n)<=D||Math.abs(Math.abs(t)-I)<=D)&&(r=this.x0,t>=0?a=this.y0+Math.PI*this.R*Math.tan(.5*s):a=this.y0+Math.PI*this.R*-Math.tan(.5*s));var o=.5*Math.abs(Math.PI/n-n/Math.PI),h=o*o,l=Math.sin(s),u=Math.cos(s),f=u/(l+u-1),c=f*f,v=f*(2/l-1),g=v*v,m=Math.PI*this.R*(o*(f-g)+Math.sqrt(h*(f-g)*(f-g)-(g+h)*(c-g)))/(g+h);n<0&&(m=-m),r=this.x0+m;var y=h+f;return m=Math.PI*this.R*(v*y-o*Math.sqrt((g+h)*(h+1)-y*y))/(g+h),t>=0?a=this.y0+m:a=this.y0-m,i.x=r,i.y=a,i}function Zg(i){var e,t,n,r,a,s,o,h,l,u,f,c,v;return i.x-=this.x0,i.y-=this.y0,f=Math.PI*this.R,n=i.x/f,r=i.y/f,a=n*n+r*r,s=-Math.abs(r)*(1+a),o=s-2*r*r+n*n,h=-2*s+1+2*r*r+a*a,v=r*r/h+(2*o*o*o/h/h/h-9*s*o/h/h)/27,l=(s-o*o/3/h)/h,u=2*Math.sqrt(-l/3),f=3*v/l/u,Math.abs(f)>1&&(f>=0?f=1:f=-1),c=Math.acos(f)/3,i.y>=0?t=(-u*Math.cos(c+Math.PI/3)-o/3/h)*Math.PI:t=-(-u*Math.cos(c+Math.PI/3)-o/3/h)*Math.PI,Math.abs(n)1e-12&&--m>0);return m===0?{azi1:NaN,s12:NaN}:(L=x*(r*r-r*(1-a)*(r*(1-a)))/(r*(1-a)*(r*(1-a))),N=1+L/16384*(4096+L*(-768+L*(320-175*L))),k=L/1024*(256+L*(-128+L*(74-47*L))),F=k*S*(O+k/4*(p*(-1+2*O*O)-k/6*O*(-3+4*S*S)*(-3+4*O*O))),$=r*(1-a)*N*(A-F),{azi1:Math.atan2(c*y,u*f-l*c*E),s12:$})}function i_(i,e,t,n,r,a){const s=Math.atan((1-a)*Math.tan(i)),o=Math.sin(s),h=Math.cos(s),l=Math.sin(t),u=Math.cos(t),f=Math.atan2(o,h*u),c=h*l,v=1-c*c,g=v*(r*r-r*(1-a)*(r*(1-a)))/(r*(1-a)*(r*(1-a))),m=1+g/16384*(4096+g*(-768+g*(320-175*g))),y=g/1024*(256+g*(-128+g*(74-47*g)));let E=n/(r*(1-a)*m),S,p=100,A,C,x,O;do A=Math.cos(2*f+E),C=Math.sin(E),x=Math.cos(E),O=y*C*(A+y/4*(x*(-1+2*A*A)-y/6*A*(-3+4*C*C)*(-3+4*A*A))),S=E,E=n/(r*(1-a)*m)+O;while(Math.abs(E-S)>1e-12&&--p>0);if(p===0)return{lat2:NaN,lon2:NaN};const R=o*C-h*x*u,L=Math.atan2(o*x+h*C*u,(1-a)*Math.sqrt(c*c+R*R)),N=Math.atan2(C*l,h*x-o*C*u),k=a/16*v*(4+a*(4-3*v)),F=N-(1-k)*a*c*(E+k*C*(A+k*x*(-1+2*A*A))),$=e+F;return{lat2:L,lon2:$}}function n_(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0),this.f=this.es/(1+Math.sqrt(1-this.es))}function r_(i){var e=i.x,t=i.y,n=Math.sin(i.y),r=Math.cos(i.y),a=V(e-this.long0),s,o,h,l,u,f,c,v,g,m,y;return this.sphere?Math.abs(this.sin_p12-1)<=D?(i.x=this.x0+this.a*(I-t)*Math.sin(a),i.y=this.y0-this.a*(I-t)*Math.cos(a),i):Math.abs(this.sin_p12+1)<=D?(i.x=this.x0+this.a*(I+t)*Math.sin(a),i.y=this.y0+this.a*(I+t)*Math.cos(a),i):(g=this.sin_p12*n+this.cos_p12*r*Math.cos(a),c=Math.acos(g),v=c?c/Math.sin(c):1,i.x=this.x0+this.a*v*r*Math.sin(a),i.y=this.y0+this.a*v*(this.cos_p12*n-this.sin_p12*r*Math.cos(a)),i):(s=$n(this.es),o=Wn(this.es),h=jn(this.es),l=Xn(this.es),Math.abs(this.sin_p12-1)<=D?(u=this.a*Pt(s,o,h,l,I),f=this.a*Pt(s,o,h,l,t),i.x=this.x0+(u-f)*Math.sin(a),i.y=this.y0-(u-f)*Math.cos(a),i):Math.abs(this.sin_p12+1)<=D?(u=this.a*Pt(s,o,h,l,I),f=this.a*Pt(s,o,h,l,t),i.x=this.x0+(u+f)*Math.sin(a),i.y=this.y0+(u+f)*Math.cos(a),i):Math.abs(e)2*I*this.a?void 0:(t=e/this.a,n=Math.sin(t),r=Math.cos(t),a=this.long0,Math.abs(e)<=D?s=this.lat0:(s=We(r*this.sin_p12+i.y*n*this.cos_p12/e),o=Math.abs(this.lat0)-I,Math.abs(o)<=D?this.lat0>=0?a=V(this.long0+Math.atan2(i.x,-i.y)):a=V(this.long0-Math.atan2(-i.x,i.y)):a=V(this.long0+Math.atan2(i.x*n,e*this.cos_p12*r-i.y*this.sin_p12*n))),i.x=a,i.y=s,i)):(h=$n(this.es),l=Wn(this.es),u=jn(this.es),f=Xn(this.es),Math.abs(this.sin_p12-1)<=D?(c=this.a*Pt(h,l,u,f,I),e=Math.sqrt(i.x*i.x+i.y*i.y),v=c-e,s=kr(v/this.a,h,l,u,f),a=V(this.long0+Math.atan2(i.x,-1*i.y)),i.x=a,i.y=s,i):Math.abs(this.sin_p12+1)<=D?(c=this.a*Pt(h,l,u,f,I),e=Math.sqrt(i.x*i.x+i.y*i.y),v=e-c,s=kr(v/this.a,h,l,u,f),a=V(this.long0+Math.atan2(i.x,i.y)),i.x=a,i.y=s,i):(g=Math.atan2(i.x,i.y),m=Math.sqrt(i.x*i.x+i.y*i.y),y=i_(this.lat0,this.long0,g,m,this.a,this.f),i.x=y.lon2,i.y=y.lat2,i))}var s_=["Azimuthal_Equidistant","aeqd"];const o_={init:n_,forward:r_,inverse:a_,names:s_};function h_(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function l_(i){var e,t,n,r,a,s,o,h,l=i.x,u=i.y;return n=V(l-this.long0),e=Math.sin(u),t=Math.cos(u),r=Math.cos(n),s=this.sin_p14*e+this.cos_p14*t*r,a=1,(s>0||Math.abs(s)<=D)&&(o=this.a*a*t*Math.sin(n),h=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*t*r)),i.x=o,i.y=h,i}function u_(i){var e,t,n,r,a,s,o;return i.x-=this.x0,i.y-=this.y0,e=Math.sqrt(i.x*i.x+i.y*i.y),t=We(e/this.a),n=Math.sin(t),r=Math.cos(t),s=this.long0,Math.abs(e)<=D?(o=this.lat0,i.x=s,i.y=o,i):(o=We(r*this.sin_p14+i.y*n*this.cos_p14/e),a=Math.abs(this.lat0)-I,Math.abs(a)<=D?(this.lat0>=0?s=V(this.long0+Math.atan2(i.x,-i.y)):s=V(this.long0-Math.atan2(-i.x,i.y)),i.x=s,i.y=o,i):(s=V(this.long0+Math.atan2(i.x*n,e*this.cos_p14*r-i.y*this.sin_p14*n)),i.x=s,i.y=o,i))}var c_=["ortho"];const f_={init:h_,forward:l_,inverse:u_,names:c_};var ut={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},tt={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function d_(){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>=I-Q/2?this.face=ut.TOP:this.lat0<=-(I-Q/2)?this.face=ut.BOTTOM:Math.abs(this.long0)<=Q?this.face=ut.FRONT:Math.abs(this.long0)<=I+Q?this.face=this.long0>0?ut.RIGHT:ut.LEFT:this.face=ut.BACK,this.es!==0&&(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 v_(i){var e={x:0,y:0},t,n,r,a,s,o,h={value:0};if(i.x-=this.long0,this.es!==0?t=Math.atan(this.one_minus_f_squared*Math.tan(i.y)):t=i.y,n=i.x,this.face===ut.TOP)a=I-t,n>=Q&&n<=I+Q?(h.value=tt.AREA_0,r=n-I):n>I+Q||n<=-(I+Q)?(h.value=tt.AREA_1,r=n>0?n-dt:n+dt):n>-(I+Q)&&n<=-Q?(h.value=tt.AREA_2,r=n+I):(h.value=tt.AREA_3,r=n);else if(this.face===ut.BOTTOM)a=I+t,n>=Q&&n<=I+Q?(h.value=tt.AREA_0,r=-n+I):n=-Q?(h.value=tt.AREA_1,r=-n):n<-Q&&n>=-(I+Q)?(h.value=tt.AREA_2,r=-n-I):(h.value=tt.AREA_3,r=n>0?-n+dt:-n-dt);else{var l,u,f,c,v,g,m;this.face===ut.RIGHT?n=ki(n,+I):this.face===ut.BACK?n=ki(n,+dt):this.face===ut.LEFT&&(n=ki(n,-I)),c=Math.sin(t),v=Math.cos(t),g=Math.sin(n),m=Math.cos(n),l=v*m,u=v*g,f=c,this.face===ut.FRONT?(a=Math.acos(l),r=yr(a,f,u,h)):this.face===ut.RIGHT?(a=Math.acos(u),r=yr(a,f,-l,h)):this.face===ut.BACK?(a=Math.acos(-l),r=yr(a,f,-u,h)):this.face===ut.LEFT?(a=Math.acos(-u),r=yr(a,f,l,h)):(a=r=0,h.value=tt.AREA_0)}return o=Math.atan(12/dt*(r+Math.acos(Math.sin(r)*Math.cos(Q))-I)),s=Math.sqrt((1-Math.cos(a))/(Math.cos(o)*Math.cos(o))/(1-Math.cos(Math.atan(1/Math.cos(r))))),h.value===tt.AREA_1?o+=I:h.value===tt.AREA_2?o+=dt:h.value===tt.AREA_3&&(o+=1.5*dt),e.x=s*Math.cos(o),e.y=s*Math.sin(o),e.x=e.x*this.a+this.x0,e.y=e.y*this.a+this.y0,i.x=e.x,i.y=e.y,i}function g_(i){var e={lam:0,phi:0},t,n,r,a,s,o,h,l,u,f={value:0};if(i.x=(i.x-this.x0)/this.a,i.y=(i.y-this.y0)/this.a,n=Math.atan(Math.sqrt(i.x*i.x+i.y*i.y)),t=Math.atan2(i.y,i.x),i.x>=0&&i.x>=Math.abs(i.y)?f.value=tt.AREA_0:i.y>=0&&i.y>=Math.abs(i.x)?(f.value=tt.AREA_1,t-=I):i.x<0&&-i.x>=Math.abs(i.y)?(f.value=tt.AREA_2,t=t<0?t+dt:t-dt):(f.value=tt.AREA_3,t+=I),u=dt/12*Math.tan(t),s=Math.sin(u)/(Math.cos(u)-1/Math.sqrt(2)),o=Math.atan(s),r=Math.cos(t),a=Math.tan(n),h=1-r*r*a*a*(1-Math.cos(Math.atan(1/Math.cos(o)))),h<-1?h=-1:h>1&&(h=1),this.face===ut.TOP)l=Math.acos(h),e.phi=I-l,f.value===tt.AREA_0?e.lam=o+I:f.value===tt.AREA_1?e.lam=o<0?o+dt:o-dt:f.value===tt.AREA_2?e.lam=o-I:e.lam=o;else if(this.face===ut.BOTTOM)l=Math.acos(h),e.phi=l-I,f.value===tt.AREA_0?e.lam=-o+I:f.value===tt.AREA_1?e.lam=-o:f.value===tt.AREA_2?e.lam=-o-I:e.lam=o<0?-o-dt:-o+dt;else{var c,v,g;c=h,u=c*c,u>=1?g=0:g=Math.sqrt(1-u)*Math.sin(o),u+=g*g,u>=1?v=0:v=Math.sqrt(1-u),f.value===tt.AREA_1?(u=v,v=-g,g=u):f.value===tt.AREA_2?(v=-v,g=-g):f.value===tt.AREA_3&&(u=v,v=g,g=-u),this.face===ut.RIGHT?(u=c,c=-v,v=u):this.face===ut.BACK?(c=-c,v=-v):this.face===ut.LEFT&&(u=c,c=v,v=-u),e.phi=Math.acos(-g)-I,e.lam=Math.atan2(v,c),this.face===ut.RIGHT?e.lam=ki(e.lam,-I):this.face===ut.BACK?e.lam=ki(e.lam,-dt):this.face===ut.LEFT&&(e.lam=ki(e.lam,+I))}if(this.es!==0){var m,y,E;m=e.phi<0?1:0,y=Math.tan(e.phi),E=this.b/Math.sqrt(y*y+this.one_minus_f_squared),e.phi=Math.atan(Math.sqrt(this.a*this.a-E*E)/(this.one_minus_f*E)),m&&(e.phi=-e.phi)}return e.lam+=this.long0,i.x=e.lam,i.y=e.phi,i}function yr(i,e,t,n){var r;return iQ&&r<=I+Q?(n.value=tt.AREA_1,r-=I):r>I+Q||r<=-(I+Q)?(n.value=tt.AREA_2,r=r>=0?r-dt:r+dt):(n.value=tt.AREA_3,r+=I)),r}function ki(i,e){var t=i+e;return t<-dt?t+=Ln:t>+dt&&(t-=Ln),t}var __=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const p_={init:d_,forward:v_,inverse:g_,names:__};var Ra=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.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,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.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]],gn=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Th=.8487,Ih=1.3523,Rh=ee/5,y_=1/Rh,Li=18,Vr=function(i,e){return i[0]+e*(i[1]+e*(i[2]+e*i[3]))},m_=function(i,e){return i[1]+e*(2*i[2]+e*3*i[3])};function S_(i,e,t,n){for(var r=e;n;--n){var a=i(r);if(r-=a,Math.abs(a)=Li&&(n=Li-1),t=ee*(t-y_*n);var r={x:Vr(Ra[n],t)*e,y:Vr(gn[n],t)};return i.y<0&&(r.y=-r.y),r.x=r.x*this.a*Th+this.x0,r.y=r.y*this.a*Ih+this.y0,r}function w_(i){var e={x:(i.x-this.x0)/(this.a*Th),y:Math.abs(i.y-this.y0)/(this.a*Ih)};if(e.y>=1)e.x/=Ra[Li][0],e.y=i.y<0?-I:I;else{var t=Math.floor(e.y*Li);for(t<0?t=0:t>=Li&&(t=Li-1);;)if(gn[t][0]>e.y)--t;else if(gn[t+1][0]<=e.y)++t;else break;var n=gn[t],r=5*(e.y-n[0])/(gn[t+1][0]-n[0]);r=S_(function(a){return(Vr(n,a)-e.y)/m_(n,a)},r,D,100),e.x/=Vr(Ra[t],r),e.y=(5*t+r)*Mt,i.y<0&&(e.y=-e.y)}return e.x=V(e.x+this.long0),e}var x_=["Robinson","robin"];const A_={init:M_,forward:E_,inverse:w_,names:x_};function C_(){this.name="geocent"}function P_(i){var e=wh(i,this.es,this.a);return e}function T_(i){var e=xh(i,this.es,this.a,this.b);return e}var I_=["Geocentric","geocentric","geocent","Geocent"];const R_={init:C_,forward:P_,inverse:T_,names:I_};var xt={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},hn={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 O_(){if(Object.keys(hn).forEach(function(t){if(typeof this[t]>"u")this[t]=hn[t].def;else{if(hn[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);hn[t].num&&(this[t]=parseFloat(this[t]))}hn[t].degrees&&(this[t]=this[t]*Mt)}.bind(this)),Math.abs(Math.abs(this.lat0)-I)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 i=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(i),this.sw=Math.sin(i)}function b_(i){i.x-=this.long0;var e=Math.sin(i.y),t=Math.cos(i.y),n=Math.cos(i.x),r,a;switch(this.mode){case xt.OBLIQ:a=this.sinph0*e+this.cosph0*t*n;break;case xt.EQUIT:a=t*n;break;case xt.S_POLE:a=-e;break;case xt.N_POLE:a=e;break}switch(a=this.pn1/(this.p-a),r=a*t*Math.sin(i.x),this.mode){case xt.OBLIQ:a*=this.cosph0*e-this.sinph0*t*n;break;case xt.EQUIT:a*=e;break;case xt.N_POLE:a*=-(t*n);break;case xt.S_POLE:a*=t*n;break}var s,o;return s=a*this.cg+r*this.sg,o=1/(s*this.sw*this.h1+this.cw),r=(r*this.cg-a*this.sg)*this.cw*o,a=s*o,i.x=r*this.a,i.y=a*this.a,i}function G_(i){i.x/=this.a,i.y/=this.a;var e={x:i.x,y:i.y},t,n,r;r=1/(this.pn1-i.y*this.sw),t=this.pn1*i.x*r,n=this.pn1*i.y*this.cw*r,i.x=t*this.cg+n*this.sg,i.y=n*this.cg-t*this.sg;var a=Rt(i.x,i.y);if(Math.abs(a)1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,this.es!==0){var i=1-this.es,e=1/i;this.radius_p=Math.sqrt(i),this.radius_p2=i,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 D_(i){var e=i.x,t=i.y,n,r,a,s;if(e=e-this.long0,this.shape==="ellipse"){t=Math.atan(this.radius_p2*Math.tan(t));var o=this.radius_p/Rt(this.radius_p*Math.cos(t),Math.sin(t));if(r=o*Math.cos(e)*Math.cos(t),a=o*Math.sin(e)*Math.cos(t),s=o*Math.sin(t),(this.radius_g-r)*r-a*a-s*s*this.radius_p_inv2<0)return i.x=Number.NaN,i.y=Number.NaN,i;n=this.radius_g-r,this.flip_axis?(i.x=this.radius_g_1*Math.atan(a/Rt(s,n)),i.y=this.radius_g_1*Math.atan(s/n)):(i.x=this.radius_g_1*Math.atan(a/n),i.y=this.radius_g_1*Math.atan(s/Rt(a,n)))}else this.shape==="sphere"&&(n=Math.cos(t),r=Math.cos(e)*n,a=Math.sin(e)*n,s=Math.sin(t),n=this.radius_g-r,this.flip_axis?(i.x=this.radius_g_1*Math.atan(a/Rt(s,n)),i.y=this.radius_g_1*Math.atan(s/n)):(i.x=this.radius_g_1*Math.atan(a/n),i.y=this.radius_g_1*Math.atan(s/Rt(a,n))));return i.x=i.x*this.a,i.y=i.y*this.a,i}function k_(i){var e=-1,t=0,n=0,r,a,s,o;if(i.x=i.x/this.a,i.y=i.y/this.a,this.shape==="ellipse"){this.flip_axis?(n=Math.tan(i.y/this.radius_g_1),t=Math.tan(i.x/this.radius_g_1)*Rt(1,n)):(t=Math.tan(i.x/this.radius_g_1),n=Math.tan(i.y/this.radius_g_1)*Rt(1,t));var h=n/this.radius_p;if(r=t*t+h*h+e*e,a=2*this.radius_g*e,s=a*a-4*r*this.C,s<0)return i.x=Number.NaN,i.y=Number.NaN,i;o=(-a-Math.sqrt(s))/(2*r),e=this.radius_g+o*e,t*=o,n*=o,i.x=Math.atan2(t,e),i.y=Math.atan(n*Math.cos(i.x)/e),i.y=Math.atan(this.radius_p_inv2*Math.tan(i.y))}else if(this.shape==="sphere"){if(this.flip_axis?(n=Math.tan(i.y/this.radius_g_1),t=Math.tan(i.x/this.radius_g_1)*Math.sqrt(1+n*n)):(t=Math.tan(i.x/this.radius_g_1),n=Math.tan(i.y/this.radius_g_1)*Math.sqrt(1+t*t)),r=t*t+n*n+e*e,a=2*this.radius_g*e,s=a*a-4*r*this.C,s<0)return i.x=Number.NaN,i.y=Number.NaN,i;o=(-a-Math.sqrt(s))/(2*r),e=this.radius_g+o*e,t*=o,n*=o,i.x=Math.atan2(t,e),i.y=Math.atan(n*Math.cos(i.x)/e)}return i.x=i.x+this.long0,i}var V_=["Geostationary Satellite View","Geostationary_Satellite","geos"];const B_={init:F_,forward:D_,inverse:k_,names:V_};var Mn=1.340264,En=-.081106,wn=893e-6,xn=.003796,Br=Math.sqrt(3)/2;function U_(){this.es=0,this.long0=this.long0!==void 0?this.long0:0}function $_(i){var e=V(i.x-this.long0),t=i.y,n=Math.asin(Br*Math.sin(t)),r=n*n,a=r*r*r;return i.x=e*Math.cos(n)/(Br*(Mn+3*En*r+a*(7*wn+9*xn*r))),i.y=n*(Mn+En*r+a*(wn+xn*r)),i.x=this.a*i.x+this.x0,i.y=this.a*i.y+this.y0,i}function W_(i){i.x=(i.x-this.x0)/this.a,i.y=(i.y-this.y0)/this.a;var e=1e-9,t=12,n=i.y,r,a,s,o,h,l;for(l=0;l=I?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=K_,this.forward=z_)}function H_(i){var e=V(i.x-(this.long0||0)),t=i.y,n,r,a;return n=this.am1+this.m1-Ji(t,r=Math.sin(t),a=Math.cos(t),this.en),r=a*e/(n*Math.sqrt(1-this.es*r*r)),i.x=n*Math.sin(r),i.y=this.am1-n*Math.cos(r),i.x=this.a*i.x+(this.x0||0),i.y=this.a*i.y+(this.y0||0),i}function q_(i){i.x=(i.x-(this.x0||0))/this.a,i.y=(i.y-(this.y0||0))/this.a;var e,t,n,r;if(t=Rt(i.x,i.y=this.am1-i.y),r=Qa(this.am1+this.m1-t,this.es,this.en),(e=Math.abs(r))Fn?(i.x=r*Math.sin(n=e*Math.cos(t)/r),i.y=this.cphi1-r*Math.cos(n)):i.x=i.y=0,i.x=this.a*i.x+(this.x0||0),i.y=this.a*i.y+(this.y0||0),i}function K_(i){i.x=(i.x-(this.x0||0))/this.a,i.y=(i.y-(this.y0||0))/this.a;var e,t,n=Rt(i.x,i.y=this.cphi1-i.y);if(t=this.cphi1+this.phi1-n,Math.abs(t)>I)throw new Error;return Math.abs(Math.abs(t)-I)<=Fn?e=0:e=n*Math.atan2(i.x,i.y)/Math.cos(t),i.x=V(e+(this.long0||0)),i.y=je(t),i}var J_=["bonne","Bonne (Werner lat_1=90)"];const Z_={init:Y_,names:J_};function Q_(i){i.Proj.projections.add(wr),i.Proj.projections.add(xr),i.Proj.projections.add(Kd),i.Proj.projections.add(sv),i.Proj.projections.add(cv),i.Proj.projections.add(_v),i.Proj.projections.add(Ev),i.Proj.projections.add(Pv),i.Proj.projections.add(bv),i.Proj.projections.add(Dv),i.Proj.projections.add(Kv),i.Proj.projections.add(ig),i.Proj.projections.add(og),i.Proj.projections.add(dg),i.Proj.projections.add(yg),i.Proj.projections.add(wg),i.Proj.projections.add(Tg),i.Proj.projections.add(Gg),i.Proj.projections.add(Vg),i.Proj.projections.add(jg),i.Proj.projections.add(zg),i.Proj.projections.add(t_),i.Proj.projections.add(o_),i.Proj.projections.add(f_),i.Proj.projections.add(p_),i.Proj.projections.add(A_),i.Proj.projections.add(R_),i.Proj.projections.add(N_),i.Proj.projections.add(B_),i.Proj.projections.add(X_),i.Proj.projections.add(Z_)}const _n=Object.assign(wd,{defaultDatum:"WGS84",Proj:zt,WGS84:new zt("WGS84"),Point:Hi,toPoint:Ah,defs:Ct,nadgrid:ad,transform:Dr,mgrs:p0,version:"__VERSION__"});Q_(_n);function tp(i){var e=Object.keys(i.defs),t=e.length,n,r;for(n=0;n{var r;const i=typeof window<"u"?Ap((r=window.localStorage)==null?void 0:r.getItem(oo),{}):{},e=i&&typeof i=="object"&&i.enabledVehicleIds&&typeof i.enabledVehicleIds=="object"?i.enabledVehicleIds:{},t=i&&typeof i=="object"&&i.vehicleTypeOverrides&&typeof i.vehicleTypeOverrides=="object"?i.vehicleTypeOverrides:{},n=i&&typeof i=="object"&&i.vehicleRouteAssignments&&typeof i.vehicleRouteAssignments=="object"?i.vehicleRouteAssignments:{};return{enabledVehicleIds:e,vehicleTypeOverrides:t,vehicleRouteAssignments:n}},getters:{isVehicleEnabled:i=>e=>{var t;return e?((t=i.enabledVehicleIds)==null?void 0:t[e])===!0:!1},getVehicleTypeOverride:i=>e=>{var t;if(!!e)return(t=i.vehicleTypeOverrides)==null?void 0:t[e]},getVehicleRouteAssignment:i=>e=>{var t;if(!!e)return(t=i.vehicleRouteAssignments)==null?void 0:t[e]}},actions:{persist(){typeof window>"u"||!window.localStorage||window.localStorage.setItem(oo,JSON.stringify({enabledVehicleIds:this.enabledVehicleIds||{},vehicleTypeOverrides:this.vehicleTypeOverrides||{},vehicleRouteAssignments:this.vehicleRouteAssignments||{}}))},setVehicleEnabled(i,e){!i||(this.enabledVehicleIds={...this.enabledVehicleIds||{},[i]:e===!0},this.persist())},setVehicleTypeOverride(i,e){if(!i)return;const t={...this.vehicleTypeOverrides||{}};e?t[i]=e:delete t[i],this.vehicleTypeOverrides=t,this.persist()},setVehicleRouteAssignment(i,e){if(!i)return;const t={...this.vehicleRouteAssignments||{}},n=String(e||"").trim();n?t[i]=n:delete t[i],this.vehicleRouteAssignments=t,this.persist()},setBulk(i){const e={},t={...this.vehicleTypeOverrides||{}};(i||[]).forEach(n=>{const r=n==null?void 0:n.id;!r||((n==null?void 0:n.enabled)===!0&&(e[r]=!0),(n==null?void 0:n.type)!==void 0&&(n.type?t[r]=n.type:delete t[r]))}),this.enabledVehicleIds=e,this.vehicleTypeOverrides=t,this.persist()}}}),Pp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAB1SURBVHgBhZCBDYAgDATBOIijOIIb4AbqBOAErqiT1MfYpNGWkjR56F0hBCIaUSk4C8xaWQ51lQZcXmbhg2xJAs7fxk8yYU1yYUVS4U5xLpHP4EyfebK4Kbmw8rzkwqaEMHm/gd7BUo/9gCoxxt0S0NsAP/kGlTDQvZwwzk4AAAAASUVORK5CYII=";class ho{constructor(e,t={}){this.url=e,this.ws=null,this.reconnectInterval=t.reconnectInterval||3e3,this.maxReconnectAttempts=t.maxReconnectAttempts||10,this.reconnectAttempts=0,this.eventListeners={},this.isManuallyClosed=!1,this.connect()}connect(){this.ws=new window.WebSocket(this.url),this.ws.onopen=e=>{this.reconnectAttempts=0,this.emit("open",e)},this.ws.onmessage=e=>{this.emit("message",e.data)},this.ws.onerror=e=>{this.emit("error",e)},this.ws.onclose=e=>{this.emit("close",e),this.isManuallyClosed||this.reconnect()}}reconnect(){this.reconnectAttempts{this.reconnectAttempts++,this.connect()},this.reconnectInterval):this.emit("reconnect_failed")}send(e){this.ws&&this.ws.readyState===window.WebSocket.OPEN?this.ws.send(typeof e=="string"?e:JSON.stringify(e)):this.emit("send_failed",e)}close(){this.isManuallyClosed=!0,this.ws&&this.ws.close()}on(e,t){this.eventListeners[e]||(this.eventListeners[e]=[]),this.eventListeners[e].push(t)}off(e,t){!this.eventListeners[e]||(this.eventListeners[e]=this.eventListeners[e].filter(n=>n!==t))}emit(e,...t){this.eventListeners[e]&&this.eventListeners[e].forEach(n=>n(...t))}}let de=null;function Tp(i,e){return de?de.url!==i&&(de.close(),de=new ho(i,e)):de=new ho(i,e),de}function Ip(){de&&(de.close(),de=null)}const Rp={__name:"VehicleAnimationSystem",props:{map:Object,vehicleSource:Object,vehicles:Object,getVehicleStyle:Function,applyStyle:Function,applyLabelPosition:Function},setup(i,{expose:e}){const t=i,n=lt(null),r=lt(0),a=lt({}),s=lt({}),o=.3,h=1,l=50;function u(){n.value&&cancelAnimationFrame(n.value),r.value=0;const S=p=>{r.value||(r.value=p);const A=p-r.value;r.value=p;const C=Math.min(A,16.67);f(C),n.value=requestAnimationFrame(S)};n.value=requestAnimationFrame(S)}function f(S){if(!t.vehicleSource||!t.map)return;const p=performance.now();Object.keys(t.vehicles).forEach(A=>{const C=t.vehicles[A];if(!C)return;const x=a.value[A];if(!x)return;v(x,C,p),x.currentSpeed===void 0?x.currentSpeed=x.speed:x.currentSpeed=x.currentSpeed*o+x.speed*(1-o);let O=Math.max(x.currentSpeed,h);const R=x.targetPosition[0]-x.position[0],L=x.targetPosition[1]-x.position[1],N=Math.sqrt(R*R+L*L),k=O*1e3/3600*(S/1e3);let F;if(N>1e-4?N>k?F=k:F=Math.max(N*.5,k*.3):F=k*.8,N>1e-4){const W=Math.min(F/N,1);x.position[0]+=R*W,x.position[1]+=L*W}else if(x.predictionVector){const W=Math.sqrt(x.predictionVector[0]*x.predictionVector[0]+x.predictionVector[1]*x.predictionVector[1]);W>0&&(x.position[0]+=x.predictionVector[0]/W*F,x.position[1]+=x.predictionVector[1]/W*F)}const $=t.vehicleSource.getFeatureById(A);if($&&($.getGeometry().setCoordinates(x.position),t.vehicles[A]&&(t.vehicles[A].position=x.position),t.applyLabelPosition&&(!x.lastLabelUpdateTime||p-x.lastLabelUpdateTime>33)&&(t.applyLabelPosition(A,x.position),x.lastLabelUpdateTime=p),t.getVehicleStyle)){const W=x.heading!==void 0?x.heading:C?C.heading:0;if(!x.lastHeading||Math.abs(x.lastHeading-W)>.5){const nt=t.getVehicleStyle(A,O,W);t.applyStyle?t.applyStyle(A,nt):$.setStyle(nt),x.lastHeading=W}}x.currentSpeed=O,c(A,x,p)})}function c(S,p,A){p.pathHistory||(p.pathHistory=[]),(!p.lastPathRecordTime||A-p.lastPathRecordTime>100)&&(p.pathHistory.push({time:A,position:[...p.position],heading:p.heading,speed:p.currentSpeed}),p.pathHistory.length>10&&p.pathHistory.shift(),p.lastPathRecordTime=A)}function v(S,p,A,C){if(A-S.lastUpdated>l&&S.currentSpeed>0){if(!S.predictionVector)if(S.pathHistory&&S.pathHistory.length>=2){const R=S.pathHistory[S.pathHistory.length-1],L=S.pathHistory[S.pathHistory.length-2],N=R.position[0]-L.position[0],k=R.position[1]-L.position[1],F=Math.sqrt(N*N+k*k);F>0?S.predictionVector=[N/F,k/F]:S.predictionVector=[0,1]}else S.predictionVector=[0,1];const O=S.currentSpeed*1e3/3600*1;if(S.targetPosition=[S.position[0]+S.predictionVector[0]*O,S.position[1]+S.predictionVector[1]*O],S.predictionVector[0]!==0||S.predictionVector[1]!==0){let L=(Math.atan2(S.predictionVector[1],S.predictionVector[0])*180/Math.PI+72)%360;L<0&&(L+=360),S.targetHeading=L}(!S.lastSpeedReduction||A-S.lastSpeedReduction>2e3)&&(S.speed=Math.max(S.speed*.95,h),S.lastSpeedReduction=A)}}function g(S,p,A,C){a.value[S]={position:[...p],targetPosition:[...p],heading:A,targetHeading:A,speed:C,currentSpeed:C,lastUpdated:Date.now(),predictionVector:null,lastDx:0,lastDy:0,lastHeading:A,speedHistory:[C,C,C],pathHistory:[],lastPathRecordTime:Date.now()},s.value[S]=[]}function m(S,p,A,C){const x=a.value[S]||{},O=Date.now();let R=[0,0];if(x.position){const N=p[0]-x.position[0],k=p[1]-x.position[1],F=Math.sqrt(N*N+k*k);F>1e-4&&(R=[N/F,k/F])}x.speedHistory?(x.speedHistory.push(C),x.speedHistory.length>3&&x.speedHistory.shift()):x.speedHistory=[C,C,C];const L=x.speedHistory.reduce((N,k)=>N+k,0)/x.speedHistory.length;a.value[S]={...x,targetPosition:p,targetHeading:A,heading:x.heading!==void 0?x.heading:A,position:x.position||p,speed:L,lastUpdated:O,predictionVector:R,speedHistory:x.speedHistory}}function y(){n.value&&(cancelAnimationFrame(n.value),n.value=null)}function E(){a.value={},s.value={},Object.keys(t.vehicles).forEach(S=>{const p=t.vehicles[S];p&&(a.value[S]={position:[...p.position],targetPosition:[...p.position],heading:p.heading||0,targetHeading:p.heading||0,speed:p.speed,currentSpeed:p.speed,lastUpdated:Date.now(),predictionVector:null,lastDx:0,lastDy:0,lastHeading:p.heading||0,speedHistory:[p.speed,p.speed,p.speed],pathHistory:[],lastPathRecordTime:Date.now()})})}return lo(()=>{u()}),Ga(()=>{y()}),e({startAnimationLoop:u,stopAnimationLoop:y,resetAnimations:E,initVehicleAnimation:g,updateVehicleAnimationTarget:m,vehicleAnimations:a,vehicleMotionHistory:s}),(S,p)=>null}},Sr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABESURBVHgBPYdRDcAgDAXfq4JJmAYUzcIc4GBShiMQQEgVtJSQcB+XO/Y/PUJ8AJS0zFFSjbmxUQldOLiKub0RbY3R8wRaWxSsIIpLSgAAAABJRU5ErkJggg==";const Op={__name:"VehicleLabelSystem",props:{map:Object,vehicles:Object},setup(i,{expose:e}){const t=i,n=lt({}),r=lt({}),a=500;function s(y,E,S,p){if(!t.map)return;const A=Date.now();(!r.value[y]||A-r.value[y]>a)&&(n.value[y]?(n.value[y].setPosition(E),h(y,S,p)):o(y,E,S,p),r.value[y]=A,console.log(r.value))}function o(y,E,S,p){const A=document.createElement("div");A.className="vehicle-label",A.id=`label-${y}`;const C=l(y,S,p);A.innerHTML=C;const x=new ic({element:A,position:E,offset:[0,-30],positioning:"bottom-center",stopEvent:!1,insertFirst:!0,autoPan:!1});t.map.addOverlay(x),n.value[y]=x,u(y)}function h(y,E,S){const p=document.getElementById(`label-${y}`);if(!p)return;const A=l(y,E,S);p.innerHTML=A,u(y)}function l(y,E,S={}){const p=t.vehicles[y];if(!p)return"";const A=E?`${E.toFixed(1)}km/h`:"0.0km/h",C=p.warning||S&&S.isWarning,x=p.alarm||S&&S.isAlarm,O=p.speedViolation||S&&S.isSpeedViolation,R=p.critical||S&&S.isUnauthorizedEntry;if(!(C||x||O||R))return` +
+
+ ${y} + ${A} +
+
+ `;let N=` +
+
+
+ + + + + +
+
+ `,k="",F=!1;if(C){const $=(S==null?void 0:S.description)||"\u4E0E\u5176\u4ED6\u8F66\u8F86\u8DDD\u79BB\u8FC7\u8FD1\uFF0C\u8BF7\u6CE8\u610F\u907F\u8BA9\uFF01";k=` +
+
+ Select + \u51B2\u7A81\u9884\u8B66 +
+
${$}
+
+ `,F=!0}if(x){const $=(S==null?void 0:S.description)||"\u4E0E\u5176\u4ED6\u8F66\u8F86\u5B58\u5728\u51B2\u7A81\u98CE\u9669\uFF01";k+=` +
+
+ Select + \u51B2\u7A81\u544A\u8B66 +
+
${$}
+
+ `,F||(F=!0)}if(O){const $=(S==null?void 0:S.limitValue)||p.limitValue||30,W=(S==null?void 0:S.actualValue)||p.actualValue||E;k+=` +
+
+ Select + \u8D85\u901F\u544A\u8B66 +
+
+
\u89C4\u5B9A\u901F\u5EA6: ${$}km/h
+
\u5F53\u524D\u901F\u5EA6: ${W.toFixed(1)}km/h
+
+
+ `,F||(F=!0)}if(R){const $=(S==null?void 0:S.description)||"\u8F66\u8F86\u5DF2\u8FDB\u5165\u7981\u884C\u533A\u57DF\uFF01";k+=` +
+
+ Select + \u8D8A\u754C\u544A\u8B66 +
+
${$}
+
+ `,F||(F=!0)}return N+=k,N+=` +
+
+ `,N+=` +
+ ${y} + ${A} +
+
+ `,N}function u(y){setTimeout(()=>{document.querySelectorAll(`.tab-button[data-vehicle="${y}"]`).forEach(p=>{p.removeEventListener("click",f),p.addEventListener("click",f)});const S=document.querySelector(`.tab-button.active[data-vehicle="${y}"]`);S&&!S.classList.contains("current")&&S.click()},100)}function f(y){const E=y.currentTarget,S=E.getAttribute("data-tab"),p=E.getAttribute("data-vehicle");if(E.classList.contains("disabled"))return;const A=document.querySelectorAll(`.tab-button[data-vehicle="${p}"]`),C=document.querySelectorAll(`[data-tab-content][data-vehicle="${p}"]`);A.forEach(O=>O.classList.remove("current")),C.forEach(O=>O.classList.remove("active")),E.classList.add("current");const x=document.querySelector(`[data-tab-content="${S}"][data-vehicle="${p}"]`);x&&x.classList.add("active"),y.stopPropagation()}function c(y){n.value[y]&&(t.map.removeOverlay(n.value[y]),delete n.value[y])}function v(y,E){if(n.value[y]){const S=n.value[y].getElement();S&&(S.style.display=E?"block":"none")}}function g(y,E){n.value[y]&&n.value[y].setPosition(E)}function m(){!t.map||!t.vehicles||Object.keys(n.value).forEach(y=>{t.vehicles[y]&&t.vehicles[y].position&&n.value[y].setPosition(t.vehicles[y].position)})}return Ga(()=>{t.map&&Object.values(n.value).forEach(y=>{t.map.removeOverlay(y)}),n.value={}}),un(()=>t.map,y=>{y&&Object.keys(n.value).forEach(E=>{t.vehicles[E]&&t.vehicles[E].position&&(c(E),s(E,t.vehicles[E].position,t.vehicles[E].speed))})}),e({updateVehicleLabel:s,removeVehicleLabel:c,setLabelVisibility:v,updateLabelPosition:g,updateAllLabels:m}),(y,E)=>null}};const re=i=>(Dh("data-v-60d76804"),i=i(),kh(),i),bp={class:"vehicle-detail-box"},Gp=re(()=>H("span",null,"\u8BE6\u60C5",-1)),Lp={class:"vehicle-detail-content"},Np={class:"vehicle-detail-title"},Fp={class:"vehicle-detail-status-container"},Dp=re(()=>H("div",{class:"vehicle-detail-online"},"\u5728\u7EBF",-1)),kp={class:"vehicle-detail-info-container"},Vp={class:"vehicle-detail-info-row"},Bp={class:"vehicle-detail-info-item"},Up=re(()=>H("span",{class:"vehicle-info-label"},"\u4EFB\u52A1\u5F00\u59CB\u65F6\u95F4:",-1)),$p={class:"vehicle-info-value"},Wp={class:"vehicle-detail-info-item"},jp=re(()=>H("span",{class:"vehicle-info-label"},"\u5F53\u524D\u4F4D\u7F6E:",-1)),Xp={class:"vehicle-info-value"},Yp={class:"vehicle-detail-info-row"},Hp={class:"vehicle-detail-info-item"},qp=re(()=>H("span",{class:"vehicle-info-label"},"\u4EFB\u52A1\u8D77\u70B9:",-1)),zp={class:"vehicle-info-value"},Kp={class:"vehicle-detail-info-item"},Jp=re(()=>H("span",{class:"vehicle-info-label"},"\u4EFB\u52A1\u7EC8\u70B9:",-1)),Zp={class:"vehicle-info-value"},Qp={class:"vehicle-detail-info-row"},t1={class:"vehicle-detail-info-item"},e1=re(()=>H("span",{class:"vehicle-info-label"},"\u884C\u9A76\u603B\u91CC\u7A0B:",-1)),i1={class:"vehicle-info-value"},n1={class:"vehicle-detail-info-item"},r1=re(()=>H("span",{class:"vehicle-info-label"},"\u7535\u91CF\u5269\u4F59:",-1)),a1={class:"vehicle-info-value"},s1={class:"vehicle-detail-info-row"},o1={class:"vehicle-detail-info-item"},h1=re(()=>H("span",{class:"vehicle-info-label"},"\u8D1F\u8D23\u4EBA:",-1)),l1={class:"vehicle-info-value"},u1={class:"vehicle-detail-info-item"},c1=re(()=>H("span",{class:"vehicle-info-label"},"\u8054\u7CFB\u7535\u8BDD:",-1)),f1={class:"vehicle-info-value"},d1={__name:"VehicleDetailPopup",props:{visible:{type:Boolean,default:!1},detail:{type:Object,default:()=>({id:"QN001",type:"\u9A71\u9E1F\u8F66",status:"\u4EFB\u52A1\u4E2D",startTime:"11-19 11:30",currentLocation:"A\u533AT3\u70B9",startLocation:"T1\u822A\u7AD9\u697C",endLocation:"T3\u822A\u7AD9\u697C",totalDistance:"1.3km",battery:"60%",manager:"\u5F20\u4E09",phone:"18661910988"})},popupStyle:{type:Object,default:()=>({left:"0px",top:"0px"})}},emits:["close"],setup(i,{emit:e}){function t(){e("close")}return(n,r)=>i.visible?(co(),fo("div",{key:0,class:"vehicle-detail-container",style:Nh(i.popupStyle)},[H("div",bp,[H("div",{class:"vehicle-detail-header"},[Gp,H("img",{class:"vehicle-detail-close",src:Pp,alt:"",onClick:t})]),H("div",Lp,[H("div",Np,[H("span",null,Wt(i.detail.id)+" ("+Wt(i.detail.type)+")",1),H("div",Fp,[H("div",{class:Lh(["vehicle-detail-status",{"status-running":i.detail.status==="\u4EFB\u52A1\u4E2D","status-idle":i.detail.status==="\u5F85\u547D"}])},Wt(i.detail.status),3),Dp])]),H("div",kp,[H("div",Vp,[H("div",Bp,[Up,H("span",$p,Wt(i.detail.startTime),1)]),H("div",Wp,[jp,H("span",Xp,Wt(i.detail.currentLocation),1)])]),H("div",Yp,[H("div",Hp,[qp,H("span",zp,Wt(i.detail.startLocation),1)]),H("div",Kp,[Jp,H("span",Zp,Wt(i.detail.endLocation),1)])]),H("div",Qp,[H("div",t1,[e1,H("span",i1,Wt(i.detail.totalDistance),1)]),H("div",n1,[r1,H("span",a1,Wt(i.detail.battery),1)])]),H("div",s1,[H("div",o1,[h1,H("span",l1,Wt(i.detail.manager),1)]),H("div",u1,[c1,H("span",f1,Wt(i.detail.phone),1)])])])])])],4)):Fh("",!0)}},v1=uo(d1,[["__scopeId","data-v-60d76804"]]),yn="/airport/assets/specialCar.14b1d09d.svg",g1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAATySURBVHgB7VdfTFtlFD/t+ofSbi2kwAZ1dMCDFJWWDoebmZuJQ4wPNf6JCS+G+CCuUQnKm24mhlc18U8wCMS5xZD5YJzolAWYicpcbBcpmpRBtd2G5c9a6G25ve29nlPuxcIqbRnuyV9y8t373fOd8/u+c77zfRfgf9wGBEEYQZnx+/3F+CqHOwl0/NyIJyoM/rgsLC4ufoRdepQdkCduh/XLZ8cj8LU7CnKV7lmHw1GDfWoUWT5GtkQAZ2+YW0paUYBhefDO8juRgF2r1e7K1+ZWV8AcROcS6LmiouKuRCJRCHmGYasEDOkvtArJZFLOsqwS8sS2ZS4SkKlUKrnJZLojK3CrIbkc4vG4PBAIbH8OYNKZs+nwPE/ZL0kqUXMZl5UA7XdsXKFQyE76ZBhbx0Y9m812qKura484Zh+NwbC8abFYVJv5ybpn0diJ0cnYydpyZdigSX6aAFXrkIsxDLkZiLLCmt5DFg08fUAHO1XcabVa/eDF31cqreXxQYPB0ImfF1BimewrIAfQfseCoz9cW3D87HhonWMJY5MxuHyVhRZrYSvDxuGP+QRU6ZhCTMwizI1lVFmh+WwcJ88yezM2DnLom+Pgk4vLGZ1LoO0oVUfSMxqN+3t7e5sg3xCIcX4FjZwYGFuCsd9isBVYKlTw4jE9aOSxz4LB4BvV1dVXsZvflAAlHcMKb2eKs4TKEgWYjco1Yo3VBanZTwbiGYlI+aEvSL6F+XFSJCHcQoCOV08gfuTD78KpuEso2bUDGqsKwGJSQp1JDQl2eYoFbY2zfy71vf0RPTSYuClBrtl9LSTofsZc8M1z6wiRjaeQxOG71X9OTEwcq6+v9xIRRZpzB2Z7yjkpP2bVghlnSrOLLi+4g0H/1IWhC9+/dOaMV6lU8p+fG/lGGqtTy2FgYOC9zs7Oyz09PffuRzx+T0WDRldm8wRYJMKlCK1OTLf3aE35azjsVZSl9F0QqjOpoP+FstQMr1+/5na5XO6H2951jY+Ph/F7Ah3HOY6jbF4pVP+zePSMlZDHwyjsdDrPxWKx89itQVH39fXd39jYiIT22IkQhcp96acbGIrSkpISdl2svF5vU0tLS5NCoTiIzg5gVwNuIwu2VFioyBSRPxQlrpjvmXduCCS+ICe0tbU9iUarRccqUc8gjqPxtSi27u7uVmwPina1sAFKnU5Xiu1eGqjX6yWHdNFQpOcMEnAd/ziYIsCs8JRQh1DMovN00OGkTCO0G6US7w5l1L+xEHGRSGRBdCSEw2EyzENmXMHdYI3GhVTIYDWrkxn0k6JwsFoNl4gUwzCkx2eqhEnIDTOUrEQASc+KjhPw74RBJLluUlu9kpkh7UBSaQw17e3tpRi+BPzXIOd0Fe8fDQtSEnadnhfCDBceHh4+arfbKd45X0zzusGKMx/54NuwmaogbT8t1gAqWhSO158oCkdv+p1VVVWDqMvJZDIBtgvkPLLC36T/gIHRJcHjZwUJM8G48NUvEeH986HUjvD5fE7I8Yqe03Es4kihCmSP1gmXpqenfx378ocrz5865e3o6LB6PJ7Z5uZma8N9+2xqhc6GF5EHUP8LlL9Q4psZzSsECB2KCWWnaJiqIiUeJTNlNtUAqWYwKH6UCGwjyLgRpbS4uJh+QjRpTtV4I6Z3+kWjYmY0m80F2QzmuwLpY4Qs3zfTWcPfd+9Xd10XmDQAAAAASUVORK5CYII=",_1={__name:"VehicleStyleManager",props:{vehicles:Object},setup(i,{expose:e}){const t=i;function n(a,s,o){const h=t.vehicles[a];if(!h)return r(Oe,o);let l;return h.isAircraft?l=h.hasAircraftRoute?pn:g1:h.isUnmannedVehicle||h.type==="\u65E0\u4EBA\u8F66"||h.type==="UNMANNED_VEHICLE"?l=Oe:l=yn,r(l,o)}function r(a,s){const o=s!==void 0?Number(s):0,h=(o-72)*Math.PI/180;return console.log(`VehicleStyleManager: heading=${o}, rotation=${h}\u5F27\u5EA6, ${h*180/Math.PI}\u5EA6`),new At({image:new Ri({src:a,scale:1,anchor:[.5,.5],rotation:h})})}return e({getVehicleStyle:n}),(a,s)=>null}};const p1={__name:"VehicleMovementControlRefactored",props:{map:Object},emits:["vehicle-details-updated"],setup(i,{expose:e,emit:t}){const n=i,r=new Image;r.src=Oe;const a=new Image;a.src=ln;const s=new Image;s.src=pn,typeof window<"u"&&!window.global&&(window.global=window),typeof window<"u"&&_n&&(_n.defs("EPSG:4528")||(_n.defs("EPSG:4528","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),console.log("\u5DF2\u6CE8\u518C EPSG:4528 \u5750\u6807\u7CFB")),tp(_n)),console.log("\u6CE8\u518CEPSG:4528",ct("EPSG:4528"));const o=lt(null),h=lt(null),l=lt(null),u=lt(null),f=Cp(),c=lt(!0),v=lt(!1),g=lt({id:"QN001",type:"\u9A71\u9E1F\u8F66",status:"\u4EFB\u52A1\u4E2D",startTime:"11-19 11:30",currentLocation:"A\u533AT3\u70B9",startLocation:"T1\u822A\u7AD9\u697C",endLocation:"T3\u822A\u7AD9\u697C",totalDistance:"1.3km",battery:"60%",manager:"\u5F20\u4E09",phone:"18661910988"}),m=lt({left:"0px",top:"0px"}),y=lt(!1);let E=null,S=null;const p=lt({});let A=null,C=null;function x(){const d=p.value||{};Object.keys(d).forEach(_=>{var b,B;const M=d[_];if(!(M!=null&&M.feature))return;if(!(Vt(M)==="AIRCRAFT"?!0:f.isVehicleEnabled(_))){M.feature.setStyle(new At({})),(b=h.value)!=null&&b.setLabelVisibility&&h.value.setLabelVisibility(_,!1);return}St(_,Bt(M)),(B=h.value)!=null&&B.setLabelVisibility&&h.value.setLabelVisibility(_,we(_))})}un(()=>f.enabledVehicleIds,()=>{x()},{deep:!0}),un(()=>f.vehicleTypeOverrides,()=>{x()},{deep:!0});const O={},R=lt({});let L=null,N=null;const k={},F={};function $(d,_){h.value&&h.value.updateLabelPosition&&h.value.updateLabelPosition(d,_)}const W=lt({AIRCRAFT_IN:{visible:!0,showLabel:!0,name:"\u6ED1\u5165\u822A\u7A7A\u5668"},AIRCRAFT_OUT:{visible:!0,showLabel:!0,name:"\u6ED1\u51FA\u822A\u7A7A\u5668"},AIRCRAFT:{visible:!0,showLabel:!0,name:"\u5176\u4ED6\u822A\u7A7A\u5668"},UNMANNED_VEHICLE:{visible:!0,showLabel:!0,name:"\u65E0\u4EBA\u8F66"},AIRPORT_VEHICLE:{visible:!0,showLabel:!0,name:"\u7279\u52E4\u8F66"},SHUTTLE_VEHICLE:{visible:!0,showLabel:!0,name:"\u6446\u6E21\u8F66"}});un(W,d=>{console.log("VehicleMovementControl: vehicleCategories \u53D1\u751F\u53D8\u5316:",d)},{deep:!0});const nt=lt(""),ht=lt("");let K=null;const z=lt({});function J(d){const _=z.value||{},M=_[d];M&&(clearTimeout(M),delete _[d],z.value=_)}function st(d,_,M){J(d);const w=z.value||{};w[d]=setTimeout(_,M),z.value=w}function ft(d){var M;const _=(M=p.value)==null?void 0:M[d];!_||(_.warning=!1,_.alarm=!1,_.position&&h.value&&(h.value.removeVehicleLabel(d),Tt(d,_.position,_.speed>.1?_.speed:0)),_.feature&&l.value&&St(d,l.value.getVehicleStyle(d,_.speed,_.heading)))}function G(d,_,M,w){var T;const P=(T=p.value)==null?void 0:T[d];if(!P)return;const b=Date.now();P.lastConflictAt=b,P.lastConflictLevel=_,_==="alarm"?(P.alarm=!0,P.warning=!1):P.alarm||(P.warning=!0),P.position&&Tt(d,P.position,P.speed,{description:M,isWarning:_==="warning",isAlarm:_==="alarm"});const B=`conflict:${d}`;st(B,()=>{var q;const Y=(q=p.value)==null?void 0:q[d];!Y||Y.lastConflictAt===b&&(ft(d),J(B))},Number(w)>0?Number(w):1e4)}const rt=lt([]),mt=100,ae=lt(!0);function Kt(d){const _={id:`alarm-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,carId:d.carId||d.vehicleId||d.objectId||"\u672A\u77E5\u8F66\u8F86",carType:d.carType||d.vehicleType||d.objectType||"\u672A\u77E5\u7C7B\u578B",time:d.time||Xe(new Date),description:d.description||"\u672A\u77E5\u544A\u8B66",date:d.date||qn(new Date),level:d.level||"medium",type:d.type||"other",...d};return rt.value.unshift(_),rt.value.length>mt&&(rt.value=rt.value.slice(0,mt)),me(),_.id}function Zi(d,_){const M=rt.value.findIndex(w=>w.id===d);return M!==-1?(rt.value[M]={...rt.value[M],..._},me(),!0):!1}function Yn(d){const _=rt.value.findIndex(M=>M.id===d);return _!==-1?(rt.value.splice(_,1),me(),!0):!1}function Hn(){rt.value=[],me()}function me(){u.value&&u.value.updateAlarmList(rt.value)}function qr(){ae.value=!ae.value,u.value&&(ae.value?u.value.show():u.value.hide())}function Xe(d,_=5){const M=new Date(d),w=new Date(d);w.setMinutes(w.getMinutes()+_);const P=M.getHours().toString().padStart(2,"0"),b=M.getMinutes().toString().padStart(2,"0"),B=w.getHours().toString().padStart(2,"0"),T=w.getMinutes().toString().padStart(2,"0");return`T${P}:${b}-${B}:${T}`}function qn(d){const _=d.getFullYear(),M=(d.getMonth()+1).toString().padStart(2,"0"),w=d.getDate().toString().padStart(2,"0"),P=d.getHours().toString().padStart(2,"0"),b=d.getMinutes().toString().padStart(2,"0");return`${_}-${M}-${w} ${P}:${b}`}function Ye({message:d,type:_,duration:M=5e3}){K&&clearTimeout(K),nt.value=d,ht.value=_,K=setTimeout(()=>{nt.value="",ht.value=""},M)}function Se(d,_,M=5e3){Ye({message:d,type:_,duration:M})}function zn(){!n.map||A||(C=new Vs,A=new Ns({source:C,zIndex:20}),n.map.addLayer(A),Jn(),n.map.on("click",zr))}function Kn(){!n.map||L||(N=new Vs,L=new Ns({source:N,zIndex:15,style:new At({stroke:new Ge({color:"#3388ff",width:3})})}),n.map.addLayer(L))}function zr(d){const _=n.map.forEachFeatureAtPixel(d.pixel,function(M){return M});if(_){const M=_.getId();if(M&&p.value[M]){const w=p.value[M];g.value={id:M,type:w.type||"\u672A\u77E5\u7C7B\u578B",status:w.status||"\u4EFB\u52A1\u4E2D",startTime:w.startTime||"11-19 11:30",currentLocation:w.currentLocation||"\u5F53\u524D\u4F4D\u7F6E",startLocation:w.startLocation||"T1\u822A\u7AD9\u697C",endLocation:w.endLocation||"T3\u822A\u7AD9\u697C",totalDistance:w.totalDistance||"1.3km",battery:w.soc||w.battery||"60%",manager:w.manager||w.location||"\u5F20\u4E09",phone:w.phone||w.contactPhone||"18661910988"};const P=d.pixel,b=n.map.getViewport().getBoundingClientRect();m.value={left:b.left+P[0]+10+"px",top:b.top+P[1]+10+"px"},v.value=!0}else v.value=!1}else v.value=!1}function Jn(){!n.map||n.map.on("moveend",()=>{h.value&&h.value.updateAllLabels()})}function di(d){var Ut,_t,Zt,an;if(!C||!n.map)return;const{object_id:_,object_type:M,position:w,heading:P,speed:b}=d,B=(P-72)*Math.PI/180;console.log(`\u8F66\u8F86${_}\u7684heading\u503C: ${P}, \u65CB\u8F6C\u89D2\u5EA6\u8BA1\u7B97: (${P} - 72) * \u03C0/180 = ${B} \u5F27\u5EA6, ${P-72}\u5EA6, \u8F66\u8F86\u7C7B\u578B: ${M}`);let T;T=ps([w.longitude,w.latitude],"EPSG:4326",n.map.getView().getProjection());let Y=C.getFeatureById(_);const q=f.getVehicleTypeOverride(_),et=String(q||M||"").trim(),Z=String(M||"").trim(),U=et.toUpperCase(),gt=U==="AIRCRAFT"||U==="AIRCRAFT_IN"||U==="AIRCRAFT_OUT"||U==="HANGKONG",he=U==="UNMANNED_VEHICLE"||U==="WUREN"||et.includes("\u65E0\u4EBA"),mi=U==="SPECIAL_VEHICLE"||U==="TEQIN"||et.includes("\u7279\u52E4"),Ae=gt&&!!R.value[_],at=P!==void 0?Number(P):0;if(Ae&&gi(_,T),Y){o.value&&o.value.updateVehicleAnimationTarget(_,T,P,b);const sr={...p.value[_]};p.value[_]={...p.value[_],type:et||Z||((Zt=p.value[_])==null?void 0:Zt.type),position:T,heading:at,speed:b,isAircraft:gt,isUnmannedVehicle:he,isSpecialVehicle:mi,hasAircraftRoute:Ae,...d.carId&&{carId:d.carId},...d.type&&{type:d.type},...d.brand&&{brand:d.brand},...d.organization&&{organization:d.organization},...d.routeStatus&&{routeStatus:d.routeStatus},...d.status&&{status:d.status},...d.chargeStatus&&{chargeStatus:d.chargeStatus},...d.voltage&&{voltage:d.voltage},...d.current&&{current:d.current},...d.soc&&{soc:d.soc},...d.lastTime&&{lastTime:d.lastTime},...d.batteryLevel&&{batteryLevel:d.batteryLevel},...d.location&&{location:d.location},...d.contactPhone&&{contactPhone:d.contactPhone},...d.battery&&{battery:d.battery},...d.runningStatus&&{runningStatus:d.runningStatus}};const Ze=p.value[_];if(Zn(sr,Ze)&&t("vehicle-details-updated",Ze),h.value&&!p.value[_].speedViolation&&Tt(_,T,b),Y){let le;const $t=p.value[_];gt?le=Ae?pn:ln:$t&&(String($t.type||"").includes("\u65E0\u4EBA")||String($t.type||"").toUpperCase()==="UNMANNED_VEHICLE"||String($t.type||"").toUpperCase()==="WUREN")?le=Oe:le=yn;const Qr=Vt($t),or=(an=W.value)==null?void 0:an[Qr],bh=(Qr==="AIRCRAFT"?!0:f.isVehicleEnabled(_))&&!!(or&&or.visible);Y.setStyle(bh?new At({image:new Ri({src:le,scale:.75,anchor:[.5,.5],rotation:B})}):new At({})),p.value[_].lastHeading=at}}else{p.value[_]={id:_,type:et||Z,position:T,heading:at,speed:b,isAircraft:gt,isUnmannedVehicle:he,isSpecialVehicle:mi,hasAircraftRoute:Ae,lastHeading:at},Y=new Mr({geometry:new Xi(T),name:`${et||Z} ${_}`,type:et||Z,speed:b,isAircraft:gt,isUnmannedVehicle:he,isSpecialVehicle:mi}),Y.setId(_);let sr,Ze;gt?Ze=Ae?pn:ln:he?Ze=Oe:Ze=yn,sr=new At({image:new Ri({src:Ze,scale:.75,anchor:[.5,.5],rotation:B})});{const le=Vt(p.value[_]),$t=(Ut=W.value)==null?void 0:Ut[le],or=(le==="AIRCRAFT"?!0:f.isVehicleEnabled(_))&&!!($t&&$t.visible);Y.setStyle(or?sr:new At({}))}if(C.addFeature(Y),p.value[_].feature=Y,o.value&&o.value.initVehicleAnimation(_,T,P,b),h.value&&Tt(_,T,b),W.value){const le=Vt(p.value[_]),$t=(_t=W.value)==null?void 0:_t[le];$t&&!$t.visible&&p.value[_].feature&&p.value[_].feature.setStyle(new At({}))}}}function Zn(d,_){return d.carId!==_.carId||d.type!==_.type||d.brand!==_.brand||d.organization!==_.organization||d.routeStatus!==_.routeStatus||d.status!==_.status||d.chargeStatus!==_.chargeStatus||d.voltage!==_.voltage||d.current!==_.current||d.soc!==_.soc||d.lastTime!==_.lastTime||d.batteryLevel!==_.batteryLevel||d.location!==_.location||d.contactPhone!==_.contactPhone||d.battery!==_.battery||d.runningStatus!==_.runningStatus}function Me(){var d;Ip();try{const _=(d=window.APP_CONFIG)==null?void 0:d.WS_BASE_URL;console.log(`\u6B63\u5728\u8FDE\u63A5WebSocket: ${_}`),E=Tp(_,{reconnectInterval:3e3,maxReconnectAttempts:5}),E.on("open",M=>{console.log("WebSocket\u8FDE\u63A5\u6210\u529F!"),y.value=!0,setTimeout(()=>{xe()},1e3)}),E.on("message",M=>{Qi(M)}),E.on("error",M=>{console.error("WebSocket\u9519\u8BEF:",M),y.value=!1}),E.on("close",M=>{console.log(`WebSocket\u8FDE\u63A5\u5173\u95ED: ${M.code} - ${M.reason}`),y.value=!1}),E.on("reconnect_failed",()=>{console.error("WebSocket\u91CD\u8FDE\u5931\u8D25\uFF0C\u5DF2\u8FBE\u5230\u6700\u5927\u91CD\u8BD5\u6B21\u6570"),y.value=!1})}catch(_){console.error("\u521B\u5EFAWebSocket\u8FDE\u63A5\u5931\u8D25:",_)}}function Qi(d){var _,M,w,P,b,B,T,Y,q,et,Z;try{const U=JSON.parse(d);switch(console.log("\u6536\u5230\u6D88\u606F:",U),U.type){case"connection":console.log(`\u8FDE\u63A5\u786E\u8BA4: ${U.message}`);break;case"position_update":console.log(`\u4F4D\u7F6E\u66F4\u65B0: ${(_=U.payload)==null?void 0:_.object_id} (${(M=U.payload)==null?void 0:M.object_type})`),nn(U.payload);break;case"collision_warning":console.log(`\u78B0\u649E\u9884\u8B66: ${((w=U.payload)==null?void 0:w.message)||((b=(P=U.payload)==null?void 0:P.object1)==null?void 0:b.objectName)||""}`),er(U.payload);break;case"path_conflict_alert":console.log(`\u51B2\u7A81\u544A\u8B66/\u9884\u8B66: ${((T=(B=U.payload)==null?void 0:B.object1)==null?void 0:T.objectName)||((Y=U.payload)==null?void 0:Y.messageType)}`),er(U.payload);break;case"rule_violation":console.log(`\u89C4\u5219\u8FDD\u89C4: ${((q=U.payload)==null?void 0:q.ruleName)||((et=U.payload)==null?void 0:et.violationType)}`),ir(U.payload);break;case"pong":console.log("\u6536\u5230\u5FC3\u8DF3\u54CD\u5E94");break;case"vehicle_command":console.log("\u6536\u5230\u8F66\u8F86\u63A7\u5236\u6307\u4EE4:",U.payload);break;case"aircraftRouteUpdate":console.log("\u6536\u5230\u98DE\u673A\u8DEF\u7531\u66F4\u65B0:",U.data),se(U.data);break;case"intersection_traffic_light_status":console.log("\u6536\u5230\u8DEF\u53E3\u7EA2\u7EFF\u706F\u72B6\u6001\u66F4\u65B0:",U.payload),Kr(U.payload);break;case"vehicle_status_update":console.log("\u6536\u5230\u8F66\u8F86\u72B6\u6001\u66F4\u65B0:",U.payload),tn(U.payload);break;case"trafficLight":console.log("\u6536\u5230\u7EA2\u7EFF\u706F\u6D88\u606F:",U.payload),en(U.payload);break;case"trafficlight":case"TrafficLight":console.log("\u6536\u5230\u7EA2\u7EFF\u706F\u6D88\u606F(\u5927\u5C0F\u5199\u53D8\u4F53):",U.payload),en(U.payload);break;case"FLIGHT_NOTIFICATION":console.log("\u6536\u5230\u822A\u73ED\u8FDB\u51FA\u6E2F\u901A\u77E5:",U.payload),He(U.payload);break;default:((Z=U==null?void 0:U.payload)==null?void 0:Z.serviceType)==="rsu-traffic-lights"?(console.log("\u68C0\u6D4B\u5230 rsu-traffic-lights \u670D\u52A1\u6D88\u606F\uFF0C\u6309\u7EA2\u7EFF\u706F\u5904\u7406:",U.payload),en(U.payload)):console.log(`\u672A\u77E5\u6D88\u606F\u7C7B\u578B: ${U.type}`,U);break}}catch(U){console.error("\u5904\u7406WebSocket\u6D88\u606F\u51FA\u9519:",U,d)}}function He(d){if(!d||!d.flightNo){console.error("\u822A\u73ED\u8FDB\u51FA\u6E2F\u901A\u77E5\u6D88\u606F\u683C\u5F0F\u9519\u8BEF:",d);return}const{flightNo:_,flightType:M,eventType:w,runway:P,seat:b,notificationLevel:B,eventDescription:T}=d;console.log(`\u822A\u73ED\u901A\u77E5: ${_} ${w} ${M}`,{runway:P,seat:b,notificationLevel:B,eventDescription:T})}function tn(d){var b,B;if(!d||!d.vehicleId){console.error("\u8F66\u8F86\u72B6\u6001\u66F4\u65B0\u6D88\u606F\u683C\u5F0F\u9519\u8BEF:",d);return}const{vehicleId:_,statusData:M}=d;if(!p.value[_]){console.warn(`\u672A\u627E\u5230\u8F66\u8F86 ${_}\uFF0C\u65E0\u6CD5\u66F4\u65B0\u72B6\u6001`);return}const w={...p.value[_]};if(M){if(M.vehicleInfo){const T=M.vehicleInfo;p.value[_]={...p.value[_],carId:T.vehicleId||p.value[_].carId,type:T.vehicleType||p.value[_].type,brand:T.brand||p.value[_].brand,organization:T.owningUnit||p.value[_].organization}}if(M.operationalStatus){const T=M.operationalStatus,Y=T.operationalMode||p.value[_].routeStatus,q=T.systemHealth;let et=p.value[_].status;q==="HEALTHY"?et=Y==="AUTONOMOUS"?"\u4EFB\u52A1\u4E2D":"\u5728\u7EBF":q==="FAULT"?et="\u6545\u969C":q==="OFFLINE"&&(et="\u79BB\u7EBF"),p.value[_]={...p.value[_],routeStatus:Y,status:et,chargeStatus:T.powerStatus||p.value[_].chargeStatus}}if(M.motionStatus){const T=M.motionStatus;if(T.velocity&&(p.value[_]={...p.value[_],speed:T.velocity.speed!==void 0?T.velocity.speed:p.value[_].speed}),T.position){const{latitude:Y,longitude:q}=T.position;p.value[_]={...p.value[_],currentLocation:`(${Y.toFixed(6)}, ${q.toFixed(6)})`}}}if((b=M.batteryStatus)!=null&&b.mainBattery){const T=M.batteryStatus.mainBattery;p.value[_]={...p.value[_],soc:T.chargeLevel!==void 0?`${T.chargeLevel}%`:p.value[_].soc,voltage:T.voltage!==void 0?`${T.voltage}V`:p.value[_].voltage,current:T.current!==void 0?`${T.current}A`:p.value[_].current,battery:T.chargeLevel!==void 0?`${T.chargeLevel}%`:p.value[_].battery}}if(M.communicationStatus){const T=M.communicationStatus;p.value[_]={...p.value[_],lastTime:T.lastUpdateTime?new Date(T.lastUpdateTime).toLocaleString():new Date().toLocaleString()}}if((B=M.missionContext)!=null&&B.currentMission){const T=M.missionContext.currentMission;p.value[_]={...p.value[_],startTime:T.startTime?new Date(T.startTime).toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).replace(/\//g,"-").replace(/,/,""):p.value[_].startTime,totalDistance:T.totalMileage!==void 0?`${(T.totalMileage/1e3).toFixed(1)}km`:p.value[_].totalDistance,progress:T.progress!==void 0?`${T.progress.toFixed(1)}%`:p.value[_].progress,missionId:T.missionId||p.value[_].missionId,missionType:T.missionType||p.value[_].missionType}}}if(v.value&&g.value.id===_){const T=p.value[_];g.value={...g.value,id:_,type:T.type||g.value.type,status:T.status||g.value.status,startTime:T.startTime||g.value.startTime,currentLocation:T.currentLocation||g.value.currentLocation,totalDistance:T.totalDistance||g.value.totalDistance,battery:T.battery||g.value.battery,manager:T.manager||T.location||g.value.manager,phone:T.phone||T.contactPhone||g.value.phone}}const P=p.value[_];Zn(w,P)&&t("vehicle-details-updated",P)}function Kr(d){window.updateTrafficLightStatus&&window.updateTrafficLightStatus(d)}function en(d){var P;const _=d&&d.serviceData?d.serviceData:d,M=Array.isArray(_&&_.phases)?_.phases:[];let w="unknown";if(M.length>0){const b=M.map(B=>Number(B.phaseColor));b.includes(3)?w="red":b.includes(4)||b.includes(2)?w="yellow":b.includes(1)?w="green":w="unknown"}else{const b=Number((P=_&&_.trafficLightsStatus)!=null?P:d.trafficLightsStatus);b===3?w="red":b===4||b===2?w="yellow":b===1&&(w="green")}window.updateTrafficLightStatus&&window.updateTrafficLightStatus({status:w})}function nn(d){if(!d||!d.object_id){console.error("\u4F4D\u7F6E\u66F4\u65B0\u6D88\u606F\u683C\u5F0F\u9519\u8BEF:",d);return}Zr(d),di(d)}function se(d){if(!d||!d.flightNo||!d.routeGeometry){console.error("\u98DE\u673A\u8DEF\u7531\u66F4\u65B0\u6D88\u606F\u683C\u5F0F\u9519\u8BEF:",d);return}const{flightNo:_,routeType:M,routeStatus:w,routeGeometry:P}=d,b=vi(P);if(b){Jr(_,b,M,w);return}const B=Lt(P);if(!B||B.length===0){console.error("\u89E3\u6790routeGeometry\u5931\u8D25:",P);return}rn(_,B,M,w)}function vi(d){if(!d)return null;if(typeof d=="object"){const M=String((d==null?void 0:d.type)||"");return M==="Feature"||M==="FeatureCollection"||M==="GeometryCollection"?d:null}if(typeof d!="string")return null;const _=d.trim();if(!_||_[0]!=="{"&&_[0]!=="[")return null;try{const M=JSON.parse(_),w=String((M==null?void 0:M.type)||"");return w==="Feature"||w==="FeatureCollection"||w==="GeometryCollection"?M:null}catch{return null}}function qe(d){if(!N)return;N.getFeatures().forEach(M=>{var b,B;const w=String(((b=M==null?void 0:M.getId)==null?void 0:b.call(M))||"");(((B=M==null?void 0:M.get)==null?void 0:B.call(M,"flightNo"))===d||w===d||w&&w.startsWith(`${d}-`))&&N.removeFeature(M)})}function Jr(d,_,M,w){var gt,he,mi,Ae;if(!N||!n.map)return;k[d]&&(clearTimeout(k[d]),delete k[d]),qe(d);const P=n.map.getView().getProjection(),b=new xp,B=b.readFeatures(_,{dataProjection:P,featureProjection:P});let T=P;const Y=B.find(at=>{var Ut,_t,Zt;return((Zt=(_t=(Ut=at==null?void 0:at.getGeometry)==null?void 0:Ut.call(at))==null?void 0:_t.getType)==null?void 0:Zt.call(_t))==="LineString"}),q=(mi=(he=(gt=Y==null?void 0:Y.getGeometry)==null?void 0:gt.call(Y))==null?void 0:he.getCoordinates)==null?void 0:mi.call(he),et=Array.isArray(q)&&q.length?q[0]:null;if(Array.isArray(et)&&et.length===2){const at=Number(et[0]),Ut=Number(et[1]);Number.isFinite(at)&&Number.isFinite(Ut)&&(T=Math.abs(at)<=180&&Math.abs(Ut)<=90?"EPSG:4326":"EPSG:4528")}const Z=T===P?B:b.readFeatures(_,{dataProjection:T,featureProjection:P});let U=null;if(Z.forEach((at,Ut)=>{var Zt,an;const _t=at.getId();_t==null||String(_t).trim()===""?at.setId(`${d}-geo-${Ut}`):at.setId(`${d}-geo-${_t}`),at.set("flightNo",d),M&&at.set("routeType",M),w&&at.set("routeStatus",w),((an=(Zt=at.getGeometry())==null?void 0:Zt.getType)==null?void 0:an.call(Zt))==="LineString"&&!U&&(U=at.getGeometry().getCoordinates(),at.setStyle(Ee(M))),N.addFeature(at)}),U&&U.length&&(R.value[d]={flightNo:d,routeType:M,routeStatus:w,coordinates:U,feature:null,lastUpdateTime:Date.now()},F[d]={maxIndexSeen:0,endHitCount:0,lastIndex:0}),p.value[d]){const at=p.value[d];if(at.isAircraft||((Ae=at.type)==null?void 0:Ae.toUpperCase())==="AIRCRAFT"){p.value[d]={...at,hasAircraftRoute:!0};const _t=p.value[d];_t.feature&&(l.value?St(d,l.value.getVehicleStyle(d,_t.speed,_t.heading)):St(d,Bt(_t)))}}k[d]=setTimeout(()=>{_i(d)},3e5)}function Lt(d){return d.replace(/LINESTRING\s*\(|\)/gi,"").split(",").map(w=>w.trim()).map(w=>{const[P,b]=w.split(" ").map(Number);return[P,b]})}function Qn(d,_,M=0){if(!Array.isArray(d)||d.length===0||!_||_.length!==2)return 0;const w=Math.max(0,Math.min(Math.floor(M||0),d.length-1));let P=w,b=1/0;for(let B=w;B=q,Z=T.maxIndexSeen>=Math.min(3,q);et&&Z&&B<=20?T.endHitCount=(T.endHitCount||0)+1:T.endHitCount=0,F[d]=T,T.endHitCount>=3&&_i(d)}function rn(d,_,M,w){var et;if(!N||!n.map)return;console.log("\u539F\u59CB\u822A\u7EBF\u5750\u6807:",_),k[d]&&(clearTimeout(k[d]),delete k[d]);const b=Array.isArray(_)&&_.length>0&&_.every(Z=>{if(!Array.isArray(Z)||Z.length!==2)return!1;const U=Number(Z[0]),gt=Number(Z[1]);return Number.isFinite(U)&&Number.isFinite(gt)&&Math.abs(U)<=180&&Math.abs(gt)<=90})?"EPSG:4326":"EPSG:4528",B=_.map(Z=>ps(Z,b,n.map.getView().getProjection()));console.log("\u5904\u7406\u540E\u7684\u5750\u6807:",B);const T=B[0],Y=B[B.length-1];let q=N.getFeatureById(d);if(N.getFeatureById(`${d}-start`),N.getFeatureById(`${d}-end`),q){if(q.getGeometry().setCoordinates(B),q.set("routeType",M),q.set("routeStatus",w),q.setStyle(Ee(M)),Ke(d,"start",T),Ke(d,"end",Y),R.value[d]={...R.value[d],routeType:M,routeStatus:w,coordinates:B,lastUpdateTime:Date.now()},F[d]){const Z=F[d];Z.maxIndexSeen=Math.min(Z.maxIndexSeen||0,Math.max(0,B.length-1)),Z.lastIndex=Math.min(Z.lastIndex||0,Math.max(0,B.length-1)),Z.endHitCount=0}}else{const Z=new Lr(B);q=new Mr({geometry:Z,name:`Flight ${d} Route`,flightNo:d,routeType:M,routeStatus:w}),q.setId(d),q.setStyle(Ee(M)),N.addFeature(q),ze(d,"start",T,M),ze(d,"end",Y,M),R.value[d]={flightNo:d,routeType:M,routeStatus:w,coordinates:B,feature:q,lastUpdateTime:Date.now()},F[d]={maxIndexSeen:0,endHitCount:0,lastIndex:0}}if(p.value[d]){const Z=p.value[d];if(Z.isAircraft||((et=Z.type)==null?void 0:et.toUpperCase())==="AIRCRAFT"){p.value[d]={...Z,hasAircraftRoute:!0};const gt=p.value[d];gt.feature&&(l.value?St(d,l.value.getVehicleStyle(d,gt.speed,gt.heading)):St(d,Bt(gt)))}}k[d]=setTimeout(()=>{console.log(`\u822A\u73ED ${d} \u8DEF\u7EBF\u8D85\u65F6\uFF0C5\u5206\u949F\u5185\u672A\u6536\u5230\u66F4\u65B0\u6D88\u606F\uFF0C\u79FB\u9664\u8DEF\u7EBF`),_i(d)},3e5),console.log(`\u822A\u73ED ${d} \u8DEF\u7EBF\u5DF2\u66F4\u65B0\uFF0C\u5C06\u5728\u6536\u5230\u4E0B\u6B21\u66F4\u65B0\u6D88\u606F\u65F6\u5237\u65B0\u663E\u793A\u65F6\u95F4`)}function Ee(d,_){let M="#3388ff",w=3,P;return d==="IN"?M="#292C38":d==="OUT"?M="#27AE60":d==="TEST"&&(M="#FF8C00"),new At({stroke:new Ge({color:M,width:w,lineDash:P})})}function tr(d,_,M){let w="#3388ff";return _==="IN"?w="#292C38":_==="OUT"?w="#27AE60":_==="TEST"&&(w="#FF8C00"),new At({image:new qa({radius:6,fill:new Yi({color:w}),stroke:new Ge({color:"#ffffff",width:2})}),text:new Rf({text:d==="start"?"\u8D77\u70B9":"\u7EC8\u70B9",font:"bold 12px Arial",fill:new Yi({color:"#ffffff"}),stroke:new Ge({color:"#000000",width:3}),offsetX:0,offsetY:-15,textAlign:"center",textBaseline:"bottom"}),zIndex:10})}function ze(d,_,M,w){const P=new Xi(M),b=new Mr({geometry:P,name:`${d} ${_==="start"?"\u8D77\u70B9":"\u7EC8\u70B9"}`,flightNo:d,pointType:_});return b.setId(`${d}-${_}`),b.setStyle(tr(_,w)),N.addFeature(b),b}function Ke(d,_,M){var P;const w=N.getFeatureById(`${d}-${_}`);if(w)w.getGeometry().setCoordinates(M);else{const b=((P=R.value[d])==null?void 0:P.routeType)||"UNKNOWN";ze(d,_,M,b)}}function _i(d){var P;if(!N)return;k[d]&&(clearTimeout(k[d]),delete k[d],console.log(`\u5DF2\u6E05\u9664\u822A\u73ED ${d} \u7684\u8DEF\u7EBF\u5B9A\u65F6\u5668`)),qe(d);const _=N.getFeatureById(d);_&&N.removeFeature(_);const M=N.getFeatureById(`${d}-start`);M&&N.removeFeature(M);const w=N.getFeatureById(`${d}-end`);if(w&&N.removeFeature(w),R.value[d]&&delete R.value[d],F[d]&&delete F[d],p.value[d]){const b=p.value[d];if(b.isAircraft||((P=b.type)==null?void 0:P.toUpperCase())==="AIRCRAFT"){p.value[d]={...b,hasAircraftRoute:!1};const T=p.value[d];T.feature&&(l.value?St(d,l.value.getVehicleStyle(d,T.speed,T.heading)):St(d,Bt(T)))}}console.log(`\u822A\u73ED ${d} \u7684\u8DEF\u7EBF\u5DF2\u5B8C\u5168\u79FB\u9664`)}function er(d){var Y,q;if(!d){console.error("\u51B2\u7A81\u544A\u8B66\u6D88\u606F\u683C\u5F0F\u9519\u8BEF:",d);return}console.log("\u6536\u5230\u51B2\u7A81\u544A\u8B66/\u9884\u8B66:",d);const _=d.object1||{},M=d.object2||{},w=_.objectName||"\u672A\u77E5\u8F66\u8F86",P=M.objectName||"\u672A\u77E5\u8F66\u8F86";d.object2Distance;const b=d.message||`\u4E0E${P}\u53EF\u80FD\u53D1\u751F\u51B2\u7A81`,B=d.alertType==="CONFLICT_ALERT"||d.alert===!0||d.alertLevel==="CRITICAL",T=d.alertType==="CONFLICT_WARNING"||d.warning===!0;if(!B&&T){console.log("\u5904\u7406\u51B2\u7A81\u9884\u8B66:",w,P);const et=`\u9884\u8B66\uFF1A${b}`;Se(et,"warning",8e3),Kt({carId:w,carType:((Y=p.value[w])==null?void 0:Y.type)||"\u672A\u77E5\u7C7B\u578B",time:`${Xe(new Date)}\u4E0E${P}\u53D1\u751F\u51B2`,description:"\u7A81\u9884\u8B66",level:"medium",type:"car",rawData:d}),G(w,"warning",b,1e4),G(P,"warning",b,1e4)}else if(B){console.log("\u5904\u7406\u51B2\u7A81\u544A\u8B66:",w,P);const et=`\u26A0\uFE0F \u544A\u8B66\uFF1A${b}`;Se(et,"alarm",1e4),Kt({carId:w,carType:((q=p.value[w])==null?void 0:q.type)||"\u672A\u77E5\u7C7B\u578B",time:`${Xe(new Date)}\u4E0E${P}\u53D1\u751F\u51B2`,description:"\u7A81\u544A\u8B66",level:"high",type:"car",rawData:d}),G(w,"alarm",b,15e3),G(P,"alarm",b,15e3)}else console.log(`\u672A\u77E5\u7684\u51B2\u7A81\u6D88\u606F\u7C7B\u578B: ${d.messageType||d.alertType}`)}function ir(d){if(!d){console.error("\u89C4\u5219\u8FDD\u89C4\u6D88\u606F\u683C\u5F0F\u9519\u8BEF:",d);return}console.log("\u6536\u5230\u89C4\u5219\u8FDD\u89C4:",d);const _=d.object_id||d.vehicleId||d.vehicleLicense||"\u672A\u77E5\u8F66\u8F86";d.description,d.limitValue,d.actualValue,d.ruleName;const M=d.violationType||"";switch(M.toUpperCase()){case"SPEED":nr(_,d);break;case"ACCESS":pi(_,d);break;default:console.log(`\u672A\u77E5\u7684\u89C4\u5219\u8FDD\u89C4\u7C7B\u578B: ${M}`),pi(_,d)}}function nr(d,_){var B;const M=_.actualValue,w=_.limitValue,P=_.description||"\u8D85\u901F\u8FDD\u89C4",b=_.ruleName||"\u901F\u5EA6\u9650\u5236";if(console.log(`\u68C0\u6D4B\u5230\u8D85\u901F\u8FDD\u89C4: ${d}, \u5B9E\u9645\u901F\u5EA6: ${M}, \u9650\u901F: ${w}`),Se(`\u26A0\uFE0F \u8D85\u901F\u544A\u8B66\uFF1A${d} ${P}`,"warning",8e3),Kt({carId:d,carType:((B=p.value[d])==null?void 0:B.type)||"\u672A\u77E5\u7C7B\u578B",time:`${Xe(new Date)}\u8D85\u901F\u884C\u9A76`,description:`\uFF0C\u901F\u5EA6\u8FBE\u5230${M}km/h`,level:M>w*1.5?"high":"medium",type:"speed",limitValue:w,actualValue:M,ruleName:b,rawData:_}),p.value[d]){const T=p.value[d].speedViolation;p.value[d].info=!1,p.value[d].alarm=!1,p.value[d].warning=!1,p.value[d].critical=!1,p.value[d].speedViolation=!0,p.value[d].limitValue=w,p.value[d].actualValue=M,p.value[d].description=P,p.value[d].ruleName=b,p.value[d].lastSpeedViolationTime=Date.now(),p.value[d].statusLock||(p.value[d].statusLock={active:!1,type:null,until:0}),p.value[d].statusLock={active:!0,type:"speedViolation",until:Date.now()+2e4},p.value[d].cachedIconSrc=null,T||p.value[d].feature&&l.value&&(St(d,l.value.getVehicleStyle(d,p.value[d].speed,p.value[d].heading)),p.value[d].lastIconUpdateTime=Date.now()),p.value[d].position&&h.value&&(h.value.removeVehicleLabel(d),Tt(d,p.value[d].position,M||p.value[d].speed,{description:P||"\u8D85\u901F\u8FDD\u89C4",limitValue:w,actualValue:M,ruleName:b,isSpeedViolation:!0})),O[d]&&clearTimeout(O[d]),O[d]=setTimeout(()=>{p.value[d]&&(console.log(`\u8D85\u901F\u72B6\u6001\u8D85\u65F6: ${d}, \u81EA\u52A8\u6E05\u9664\u8D85\u901F\u72B6\u6001`),!p.value[d].statusLock||!p.value[d].statusLock.active||Date.now()>p.value[d].statusLock.until?(yi(d),delete O[d]):(console.log(`\u8F66\u8F86${d}\u72B6\u6001\u4ECD\u7136\u9501\u5B9A\uFF0C\u5EF6\u8FDF\u6E05\u9664\u8D85\u901F\u72B6\u6001`),O[d]=setTimeout(()=>{yi(d),delete O[d]},p.value[d].statusLock.until-Date.now())))},2e4)}}function pi(d,_){var P;const M=_.description||"\u8D8A\u754C\u544A\u8B66";_.alertLevel;const w=_.ruleName||"\u533A\u57DF\u63A7\u5236";console.log(`\u68C0\u6D4B\u5230\u8D8A\u754C\u544A\u8B66: ${d}, ${M}, \u89C4\u5219: ${w}`),Se(`\u26A0\uFE0F \u8D8A\u754C\u544A\u8B66\uFF1A${d} ${M}`,"critical",1e4),Kt({carId:d,carType:((P=p.value[d])==null?void 0:P.type)||"\u672A\u77E5\u7C7B\u578B",time:`${Xe(new Date)}\u8D8A\u754C`,description:"\u8D8A\u754C\u544A\u8B66",level:"high",type:"report",rawData:_}),console.log("\u8D8A\u754C\u544A\u8B66------------------------------------",p.value[d].type),p.value[d]&&(p.value[d].critical=!0,p.value[d].alarm=!1,p.value[d].warning=!1,p.value[d].info=!1,p.value[d].speedViolation=!1,p.value[d].description=M,p.value[d].ruleName=w,p.value[d].feature&&l.value&&St(d,l.value.getVehicleStyle(d,p.value[d].speed,p.value[d].heading)),p.value[d].position&&h.value&&Tt(d,p.value[d].position,p.value[d].speed,{description:M,ruleName:w,isUnauthorizedEntry:!0}))}function yi(d){const _=p.value[d];if(!!_){if(console.log(`\u5F00\u59CB\u6E05\u9664\u8F66\u8F86${d}\u7684\u8D85\u901F\u72B6\u6001`),_.statusLock&&_.statusLock.active&&Date.now()<_.statusLock.until){console.log(`\u8F66\u8F86${d}\u72B6\u6001\u9501\u5B9A\u4E2D\uFF0C\u6682\u4E0D\u6E05\u9664\u8D85\u901F\u72B6\u6001`);return}_.info=!1,_.alarm=!1,_.warning=!1,_.critical=!1,_.speedViolation=!1,_.limitValue=void 0,_.actualValue=void 0,_.description=void 0,_.ruleName=void 0,_.statusLock&&(_.statusLock.active=!1,_.statusLock.type=null,_.statusLock.until=0),_.cachedIconSrc=null,_.lastIconUpdateTime=Date.now(),_.feature&&l.value&&St(d,l.value.getVehicleStyle(d,_.speed,_.heading)),_.position&&h.value&&(h.value.removeVehicleLabel(d),Tt(d,_.position,_.speed>.1?_.speed:0)),console.log(`\u5DF2\u6210\u529F\u6E05\u9664\u8F66\u8F86${d}\u7684\u8D85\u901F\u72B6\u6001`)}}function Vt(d){if(!d)return"UNMANNED_VEHICLE";const _=f.getVehicleTypeOverride(d.id),M=String(_||d.type||"").toUpperCase();return M?M==="AIRCRAFT"||M==="AIRCRAFT_IN"||M==="AIRCRAFT_OUT"||M==="HANGKONG"||d.isAircraft?"AIRCRAFT":M==="UNMANNED_VEHICLE"||M==="WUREN"||d.isUnmannedVehicle?"UNMANNED_VEHICLE":M==="SPECIAL_VEHICLE"||M==="TEQIN"||d.isSpecialVehicle?"AIRPORT_VEHICLE":M==="SHUTTLE_VEHICLE"||d.isShuttleVehicle?"SHUTTLE_VEHICLE":"UNMANNED_VEHICLE":"UNMANNED_VEHICLE"}function we(d){var P;const _=p.value[d];if(!_)return!1;const M=Vt(_);if(M!=="AIRCRAFT"&&!f.isVehicleEnabled(d))return!1;const w=(P=W.value)==null?void 0:P[M];return!!(w&&w.showLabel)}function Tt(d,_,M,w){!h.value||!h.value.updateVehicleLabel||(we(d)?h.value.updateVehicleLabel(d,_,M,w):h.value.setLabelVisibility&&h.value.setLabelVisibility(d,!1))}function Bt(d){if(!d)return new At({});const _=String(d.type||"").toUpperCase(),M=d.isAircraft||_==="AIRCRAFT"||_==="AIRCRAFT_IN"||_==="AIRCRAFT_OUT"||_==="HANGKONG",w=d.isUnmannedVehicle||_==="UNMANNED_VEHICLE"||_==="WUREN"||String(d.type||"").includes("\u65E0\u4EBA"),P=M?d.hasAircraftRoute?pn:ln:w?Oe:yn,B=((d.heading||0)-72)*Math.PI/180;return new At({image:new Ri({src:P,scale:.75,anchor:[.5,.5],rotation:B})})}function St(d,_){var T,Y;const M=p.value[d];if(!M||!M.feature)return;const w=Vt(M),P=w==="AIRCRAFT"?!0:f.isVehicleEnabled(d),b=(T=W.value)==null?void 0:T[w],B=P&&!!(b&&b.visible);M.feature.setStyle(B?_:new At({})),!P&&((Y=h.value)==null?void 0:Y.setLabelVisibility)&&h.value.setLabelVisibility(d,!1)}function rr(d,_){St(d,_)}function Zr(d){const{object_id:_,speed:M}=d,w=p.value[_];if(!!w&&!(w.statusLock&&w.statusLock.active&&Date.now()15e3?!w.statusLock||!w.statusLock.active||b>w.statusLock.until?(yi(_),console.log(`\u5DF2\u6E05\u9664${_}\u7684\u8D85\u901F\u72B6\u6001\uFF0C\u6062\u590D\u4E3A\u666E\u901A\u72B6\u6001`)):console.log(`\u8F66\u8F86${_}\u72B6\u6001\u9501\u5B9A\u4E2D\uFF0C\u6682\u4E0D\u6E05\u9664\u8D85\u901F\u72B6\u6001`):console.log(`\u8F66\u8F86${_}\u521A\u521A\u5904\u4E8E\u8D85\u901F\u72B6\u6001\uFF0C\u6682\u4E0D\u6E05\u9664\u72B6\u6001\u4EE5\u907F\u514D\u95EA\u70C1`)}}}function ar(){E&&(E.send("ping"),console.log("\u53D1\u9001\u5FC3\u8DF3: ping"))}function xe(){if(E){const d=JSON.stringify({type:"subscribe",topics:["position_update","collision_warning","rule_violation"],timestamp:Date.now()});E.send(d),console.log("\u53D1\u9001\u8BA2\u9605\u8BF7\u6C42")}}function Je(){E&&(E.close(),E=null),S&&(clearTimeout(S),S=null),Object.keys(O).forEach(_=>{clearTimeout(O[_]),delete O[_]}),Object.keys(k).forEach(_=>{clearTimeout(k[_]),delete k[_]}),console.log("\u5DF2\u6E05\u7406\u6240\u6709\u98DE\u673A\u8DEF\u7EBF\u5B9A\u65F6\u5668");const d=z.value||{};Object.keys(d).forEach(_=>{clearTimeout(d[_]),delete d[_]}),z.value={},A&&n.map&&(n.map.removeLayer(A),A=null),L&&n.map&&(n.map.removeLayer(L),L=null),R.value={},n.map&&h.value&&Object.values(p.value).forEach(_=>{_.overlay&&(console.log(`\u79FB\u9664\u6807\u7B7E: ${_.id}`),h.value.removeVehicleLabel(_.id))}),p.value={}}lo(()=>{var M;n.map&&(zn(),Kn()),Me(),(((M=window.APP_CONFIG)==null?void 0:M.ENABLE_ROUTE_DEBUG)===!0||new URLSearchParams(window.location.search).has("debugRoute"))&&(window.__injectWsMessage=w=>{const P=typeof w=="string"?w:JSON.stringify(w);Qi(P)},window.__injectAircraftRouteUpdate=(w,P={fit:!0})=>{var b;if(se(w),!(P&&P.fit===!1))try{const B=w==null?void 0:w.flightNo,T=B?(b=R.value)==null?void 0:b[B]:null;if(T&&T.feature&&n.map){const Y=T.feature.getGeometry().getExtent();n.map.getView().fit(Y,{padding:[50,50,50,50],duration:500})}}catch{}});const _=setInterval(()=>{E&&y.value&&ar()},3e4);Ga(()=>{clearInterval(_),S&&(clearTimeout(S),S=null);try{delete window.__injectWsMessage,delete window.__injectAircraftRouteUpdate}catch{}Je()})}),Vh(()=>{console.log("VehicleMovementControl\u7EC4\u4EF6\u88AB\u6FC0\u6D3B"),!y.value&&!E?(console.log("\u7EC4\u4EF6\u6FC0\u6D3B\uFF0CWebSocket\u672A\u8FDE\u63A5\uFF0C\u6B63\u5728\u91CD\u65B0\u8FDE\u63A5..."),S=setTimeout(()=>{Me()},500)):console.log("\u7EC4\u4EF6\u6FC0\u6D3B\uFF0CWebSocket\u5DF2\u8FDE\u63A5")}),Bh(()=>{console.log("VehicleMovementControl\u7EC4\u4EF6\u88AB\u505C\u7528")}),un(()=>n.map,d=>{d&&(zn(),Kn())}),e({updateVehiclePosition:di,wsConnected:y,sendPing:ar,sendSubscribe:xe,vehicleCategories:W,weatherStationVisible:c,vehicleDetailVisible:v,vehicleDetail:g,alarmList:rt,toggleWeatherStationVisibility(){c.value=!c.value},toggleVehicleDetailVisibility(){v.value=!v.value},updateVehicleDetail(d){d&&(g.value={...g.value,...d},v.value=!0)},showVehicleDetail(d,_){if(p.value[d]){if(g.value={id:d,type:p.value[d].type,status:"\u4EFB\u52A1\u4E2D",startTime:"11-19 11:30",currentLocation:"\u5F53\u524D\u4F4D\u7F6E",startLocation:"T1\u822A\u7AD9\u697C",endLocation:"T3\u822A\u7AD9\u697C",totalDistance:"1.3km",battery:"60%",manager:"\u5F20\u4E09",phone:"18661910988"},_){const M=n.map.getViewport().getBoundingClientRect();m.value={left:M.left+_[0]+10+"px",top:M.top+_[1]+10+"px"}}v.value=!0}},setCategoryVisibility(d,{visible:_,showLabel:M}){console.log(`VehicleMovementControl: \u8BBE\u7F6E\u5206\u7C7B ${d} \u53EF\u89C1\u6027`,{visible:_,showLabel:M}),W.value[d]&&(W.value[d].visible=_,W.value[d].showLabel=M,console.log(`\u66F4\u65B0\u5206\u7C7B\u8BBE\u7F6E\u5B8C\u6210: ${d}`,W.value[d]),Object.values(p.value).forEach(w=>{let P=Vt(w);P===d&&(console.log(`\u66F4\u65B0\u8F66\u8F86 ${w.id} (${P}) \u7684\u663E\u793A\u72B6\u6001:`,{visible:_,showLabel:M}),w.feature&&(_?l.value?St(w.id,l.value.getVehicleStyle(w.id,w.speed,w.heading)):St(w.id,Bt(w)):w.feature.setStyle(new At({}))),h.value&&(h.value.setLabelVisibility?h.value.setLabelVisibility(w.id,M):h.value.updateVehicleLabel&&(M&&w.position?Tt(w.id,w.position,w.speed):h.value.removeVehicleLabel(w.id))))}))},reconnectWebSocket(){console.log("\u624B\u52A8\u91CD\u8FDEWebSocket"),Me()},startVehicleSmoothing(){o.value&&o.value.startAnimationLoop()},stopVehicleSmoothing(){o.value&&o.value.stopAnimationLoop()},resetVehicleAnimations(){o.value&&o.value.resetAnimations()},getAircraftRoutes(){return R.value},showAircraftRoute(d){const _=R.value[d];if(_&&_.feature){const M=_.feature.getGeometry().getExtent();n.map.getView().fit(M,{padding:[50,50,50,50],duration:1e3})}},setAircraftRouteVisibility(d){L&&L.setVisible(d)},createRoutePointMarker(d,_,M,w){return ze(d,_,M,w)},updateRoutePointMarker(d,_,M){return Ke(d,_,M)},removeAircraftRoute(d){return _i(d)},debugInjectAircraftRouteUpdate(d){return se(d)},showAlarmNotification(d,_,M){u.value&&u.value.showNotification(d,_,M)},hideAlarmNotification(){u.value&&u.value.hideNotification()},handleAlarmClose(){console.log("\u544A\u8B66\u901A\u77E5\u7EC4\u4EF6\u5DF2\u5173\u95ED")},addAlarm(d){return Kt(d)},updateAlarm(d,_){return Zi(d,_)},removeAlarm(d){return Yn(d)},clearAlarms(){return Hn()},updateAlarmNotification(){return me()},toggleAlarmNotification(){return qr()},handleAircraftRouteUpdate(d){return se(d)},drawTestRoute(){[{flightNo:"805-807",routeType:"TEST",routeStatus:"ACTIVE",points:[[40508513641064e-6,4024186813497e-6],[40508714127776e-6,4024250934516e-6],[40508853166318e-6,4024293929307e-6],[40509022478135e-6,4024346688892e-6]]},{flightNo:"M4 829-826-K1",routeType:"TEST",routeStatus:"ACTIVE",points:[[40507849913313e-6,4023625932486e-6],[40507732597485e-6,4023991671027e-6],[40507723998527e-6,4023986908527e-6],[40507674841898e-6,402413830738e-5]]},{flightNo:"M1 K2-1-1-1#\u6D88\u9632",routeType:"TEST",routeStatus:"ACTIVE",points:[[40509113197805e-6,4024029951692e-6],[40508997734226e-6,4024393687528e-6],[40509007523809e-6,4024395275028e-6],[40508957783071e-6,4024548361738e-6]]}].forEach(_=>{const M=(_.points||[]).map(P=>`${P[0]} ${P[1]}`).join(", "),w={flightNo:_.flightNo,routeType:_.routeType,routeStatus:_.routeStatus,routeGeometry:`LINESTRING(${M})`};se(w)})}});function Jt(d,_,M){const w=p.value[d];return w?w.isAircraft?oe(ln,M):w.type==="\u65E0\u4EBA\u8F66"||w.type==="UNMANNED_VEHICLE"?oe(Oe,M):oe(yn,M):oe(Oe,M)}function oe(d,_){const w=((_!==void 0?Number(_):0)-72)*Math.PI/180;return new At({image:new Ri({src:d,scale:.75,anchor:[.5,.5],rotation:w})})}return(d,_)=>{var M,w;return co(),fo($h,null,[hr(v1,{visible:v.value,detail:g.value,"popup-style":m.value,onClose:_[0]||(_[0]=P=>v.value=!1)},null,8,["visible","detail","popup-style"]),hr(Rp,{ref_key:"animationSystem",ref:o,map:i.map,"vehicle-source":Uh(C),vehicles:p.value,"get-vehicle-style":((w=(M=l.value)==null?void 0:M.value)==null?void 0:w.getVehicleStyle)||Jt,"apply-style":rr,"apply-label-position":$},null,8,["map","vehicle-source","vehicles","get-vehicle-style"]),hr(Op,{ref_key:"labelSystem",ref:h,map:i.map,vehicles:p.value},null,8,["map","vehicles"]),hr(_1,{ref_key:"styleManager",ref:l,vehicles:p.value},null,8,["vehicles"])],64)}}},ay=uo(p1,[["__scopeId","data-v-844c4d44"]]);export{Q1 as $,Z1 as A,Dn as B,X1 as C,jh as D,Gt as E,ey as F,wu as G,N1 as H,ur as I,U1 as J,B1 as K,ty as L,Eu as M,R1 as N,To as O,P1 as P,dl as Q,Ul as R,iy as S,Hh as T,Wr as U,Cr as V,Dl as W,ci as X,Ue as Y,De as Z,K1 as _,X as a,Gr as a$,C1 as a0,Fe as a1,wt as a2,nu as a3,Hl as a4,ny as a5,po as a6,$r as a7,ol as a8,Fl as a9,W1 as aA,Ns as aB,Vs as aC,Mr as aD,Xi as aE,Lr as aF,Ss as aG,Jo as aH,cc as aI,pc as aJ,ry as aK,nh as aL,ie as aM,ya as aN,wo as aO,So as aP,G1 as aQ,I1 as aR,T1 as aS,yo as aT,pe as aU,ll as aV,L1 as aW,ps as aX,J1 as aY,go as aZ,jl as a_,Y1 as aa,H1 as ab,qi as ac,ql as ad,q1 as ae,j1 as af,ic as ag,Eo as ah,Mo as ai,ii as aj,b1 as ak,Tr as al,x1 as am,A1 as an,E1 as ao,$1 as ap,br as aq,w1 as ar,Ui as as,Dt as at,cl as au,Nu as av,Vo as aw,Cu as ax,fi as ay,vt as az,Ce as b,fl as b0,sl as b1,Vi as b2,hf as b3,M1 as b4,zu as b5,D1 as b6,F1 as b7,wa as b8,ph as b9,_h as ba,p0 as bb,xp as bc,At as bd,Ge as be,Yi as bf,Cp as bg,Pp as bh,Tp as bi,qa as bj,gu as bk,_u as bl,_n as bm,tp as bn,ct as bo,Io as bp,ay as bq,Ri as br,k1 as bs,Bi as c,ca as d,Be as e,iu as f,kt as g,Ot as h,V1 as i,Pi as j,Fa as k,Yt as l,rl as m,yt as n,O1 as o,Gl as p,Cl as q,z1 as r,hs as s,jr as t,Ht as u,ve as v,kl as w,S1 as x,An as y,Ni as z}; diff --git a/airport/assets/VehicleMovementControlRefactored.96e4a3ca.js.gz b/airport/assets/VehicleMovementControlRefactored.96e4a3ca.js.gz new file mode 100644 index 0000000..5eacfe4 Binary files /dev/null and b/airport/assets/VehicleMovementControlRefactored.96e4a3ca.js.gz differ diff --git a/airport/assets/VehicleMovementControlRefactored.f094f266.css b/airport/assets/VehicleMovementControlRefactored.f094f266.css new file mode 100644 index 0000000..753d18b --- /dev/null +++ b/airport/assets/VehicleMovementControlRefactored.f094f266.css @@ -0,0 +1 @@ +.alarm-notification-container[data-v-499c1eca]{position:absolute;left:70px;top:15%;width:400px;background-color:#292c38f2;border-radius:8px;box-shadow:0 4px 12px #0000004d;color:#fff;z-index:1000;overflow:hidden}.detail-tabs[data-v-499c1eca]{width:100%}.tab-header[data-v-499c1eca]{display:flex;align-items:center;justify-content:space-between;border-top-left-radius:8px;border-top-right-radius:8px;padding:0 10px;height:34px;position:relative;border-bottom:1px solid #3A4452}.tab-list[data-v-499c1eca]{display:flex;height:100%;flex:1}.tab-actions[data-v-499c1eca]{display:flex;align-items:center}.add-btn[data-v-499c1eca]{width:20px;height:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:20px;color:#a0a8b7;margin-right:10px;transition:all .3s}.add-btn[data-v-499c1eca]:hover{color:#fff}.tab-item[data-v-499c1eca]{padding:0 12px;height:100%;display:flex;align-items:center;justify-content:center;font-size:13px;color:#a0a8b7;cursor:pointer;position:relative;transition:all .3s;white-space:nowrap}.tab-item.active[data-v-499c1eca]{color:#fff}.tab-item.active[data-v-499c1eca]:after{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background-color:#347ae2}.close-btn[data-v-499c1eca]{width:20px;height:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px}.close-icon[data-v-499c1eca]{font-size:20px;color:#a0a8b7;font-style:normal}.alarm-list[data-v-499c1eca]{max-height:400px;overflow-y:auto;padding:0}.alarm-item[data-v-499c1eca]{display:flex;padding:12px 15px;border-bottom:1px solid #3A4452}.alarm-icon1[data-v-499c1eca]{width:20px;height:20px;border-radius:50%;margin-right:5px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.alarm-img[data-v-499c1eca]{width:16px;height:16px;object-fit:contain}.alarm-dot[data-v-499c1eca]{width:10px;height:10px;border-radius:50%;display:block}.alarm-icon.high .alarm-dot[data-v-499c1eca]{background-color:#ff4d4f}.alarm-icon.medium .alarm-dot[data-v-499c1eca]{background-color:#f90}.alarm-content[data-v-499c1eca]{flex:1}.alarm-title[data-v-499c1eca]{font-size:13px;line-height:1.4;margin-bottom:4px}.alarm-time[data-v-499c1eca]{font-size:12px;color:#8c959f;text-align:right}.empty-data[data-v-499c1eca]{padding:30px 0;text-align:center;color:#8c959f;font-size:14px}.alarm-list[data-v-499c1eca]::-webkit-scrollbar{width:5px}.alarm-list[data-v-499c1eca]::-webkit-scrollbar-track{background:rgba(19,26,36,.5)}.alarm-list[data-v-499c1eca]::-webkit-scrollbar-thumb{background:rgba(78,113,143,.5);border-radius:3px}.alarm-list[data-v-499c1eca]::-webkit-scrollbar-thumb:hover{background:rgba(78,113,143,.8)}.weather-station-container[data-v-aaea1471]{position:fixed;z-index:2000;width:300px;left:var(--0f57bb8d);top:var(--7738e86c)}.weather-station-box[data-v-aaea1471]{background-color:#424851;border-radius:8px;overflow:hidden}.weather-station-header[data-v-aaea1471]{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #777777;background-color:#424851;color:#fff;padding:8px 12px;font-size:16px}.weather-station-close[data-v-aaea1471]{cursor:pointer;font-size:20px;font-weight:700}.weather-station-content[data-v-aaea1471]{padding:12px;color:#fff}.weather-station-title[data-v-aaea1471]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}.weather-station-status[data-v-aaea1471]{color:#4caf50;font-weight:700}.weather-station-info-container[data-v-aaea1471]{display:flex;flex-direction:column;gap:10px}.weather-station-info-row[data-v-aaea1471]{display:flex;justify-content:space-between}.weather-station-info-item[data-v-aaea1471]{flex:1}.weather-info-label[data-v-aaea1471]{color:#eee;font-size:14px;margin-right:4px}.weather-info-value[data-v-aaea1471]{color:#eee;font-size:14px}.vehicle-label{position:absolute;transform:translate(-50%,-100%);z-index:1000;pointer-events:auto}.label-container{background:rgba(238,236,225,.1);border-radius:6px;color:#000;padding:10px 10px 0;min-width:170px;box-shadow:0 10px 15px #02020240;border:1px solid #40506a}.simple-label{padding:6px 10px}.label-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding-bottom:5px}.simple-label .label-header{margin-bottom:0;border-bottom:none;padding-bottom:0}.vehicle-id{font-weight:700;font-size:16px}.vehicle-speed{font-size:12px;color:#000000a6;font-weight:700}.tab-buttons{display:flex;gap:5px;margin-bottom:8px;justify-content:space-around;align-items:center}.tab-button{border:none;width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;background:transparent}.warning-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAcCAYAAAB2+A+pAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAXbSURBVHgBnVZdbFRFFD4z92/v/rS1pQEq1Ea0SAvRimiiEVrhSUwwwUUNiUQT9cFgRBMDoraBxBh5IOGB6qN/JWEJ6oPBiClL4Ymk0YQsQaPJNrTbwraU3e3evb8znrnd3W7ptgud7M/M3HPPd36+c2YI3OeIRqPSJ93/HdwQkY9wDpDOuvtbh9Z9A7GYdz966D1Lck46envV4z0jb6/TpSOuB9RjQJvqlBODG//Z0Xvhgixk7lXdvQmiwm4AaRN+j5/bZpo3zXmPg6t1eLXzh2BszRoblwwI4bVUSrUEBGgUIxOKx/XPL+09qWbtTYTMj5SVc1j7n2c8K/j0lfVDQ961WKwmcM1Q92JUQsmksqKrS1lVR/ch6AJjKSH0yUfVXrWxTUMSSL2c19S7tIDIWRyonaP6B+d2/uJN2xWPmPgprwu3Cuzj31/sN65eDV0TKayRb7oUqPB2vD2lZv7of6AV2LNQ5AR3CqBvPwZazxfAXbPsdVs9jwavX9dgdFSFGvxZHBgJMo4cSI3PBL9tuzzomd5ciD0DpNZtILftwLlV3rZzDvTDifOFm0aoG3Xz5XoMqZTSeeqjx8I5e+28Z4zNOcTcOVvRWt1xOx+59H1zOJVSyRLhpouBRhOgpJOT4S97shdcdpdcBRiIXFe+ajNytP3SRTnL9XcAZLgf4GgsRi35b23v0IHtubS5gMXzQsgXNiw6aTZujb3XMZ1IaIuRbAGwKIVVXVG5vqFB393lDdAqJKnc4FUSyRmX9m+5c17PS9rm4eGqHW0BsCiFG6N/6Z/9+sa+7JjBoNogUoUR1UXMcUPZPfjurgfD4QDUMB4N4+TNZFLLN7YFT13eOmXesqA6MNqrhIDIOvDC5II8l0awRYe9bQPNrtOSPd0JDqlopfM87sPySedy+ldnnz9mTJjVtQkDXQMCzx2GwNY+JFNuMTGYGTP4/t/2fDg9Pqz33eVkGVjkdiSZlOuamqTVjfAWpWTxUjOm/DqmK5+YV8d3D2wqZMvD5NDajevVK/+Cwity7SsXGxfFvKEhcPjMK586t+0lmzypWwvG6Zeg8PPrQPSmpUTBnLT4a193H4DG21pfxaHkA+MGaceCd/IsvG6F8hSpdVxiTnlhClhmpDqtK43EpvJ4q74h7GnB2wK46HUpnHRa1xWFKOHj05t+XJSqyxiyJnlHCy98p1hGZGRyUo0WMamwAEuIBmxFw3Mocn3XEWewvmeAUGr6rhHwlvXF7HNZtgZCO/uNl9+vk6kSDtmali5G029pq3CRkSUFmBpAxgd/euYgnCWHrqHIGmxTEQymUo7cbOMi/h9GbfZTekr88xAfORxIFpc3cBlEySB4XsBVFbk5kaBl4FwySSCyUpjJFQ4eo8QinBjYgWZQGcOwyKhIaCTEh0PzyOxaKgIKPOZj+nl1cTaDFxUDpVzMLBNXg1AQIA+dsykQOvJ4qoeSaY9qqokAGXz/FuKEEcFBD4Ko0NdPSweS721pDmWCidNIGMTQPUqkPD6YQNk0bmbAo2Y+x72OzmLuxU8Hvj8CijhxpzljYwigEg9M7FATqC2AiJK4wjFejK/wyQfxvQexLf59yxCJSpKLWyaupjwCoxLnE5JEMqpiWxfjcVYG9g1vazDpxETW8+Qxl2iWpPKbxIZ6RFCFSiGJRuE9g2J8ELRIfO6TVMypP0WDMYjUQyELxXISoVO2Y00ZxM40FBx7W3c3i0PpKoPW7xHKR0FVWCagyV6YK6EAswxdeOuiJp9diuKzzHH8qT8cXCj+wkGOKJw5DpFlhdmMOQGX21ZAzruybTi5nInXX0twpsTS2TFb2GQzFvnq4ZTS8VCLNGpkZFmiPgsLhTyVMdsAEUFHcA1K5GCIiznMFHWE0SAe4Uokwj12h1G3wZNHUt4wtDjDm0WZkXJ/mLshzJ4cfNjPEnfRADKAkY7GgHREgXRiVSXigK01Dhgu/xXkCU9AhJTmJ+MlR+LQnO7msUQfhz78Vrng/w+hH8AyJD7fMwAAAABJRU5ErkJggg==);background-size:cover}.unwarning-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAcCAYAAACdz7SqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOfSURBVHgBvVa9S1tRFL/v5SUx0YRakopKqRWhFtrJqdBB6ObQQdChWHDq5F9QCk6CdGi6CC0IDl26dG1oBUEqhQ5BRRQj1snFJRZCQ5L31d/v5ebx8pKXF1F64HA/zrnn655z7hXi6qDs7u5+Mk3TOjs7+y7+A6jlcvk3FJo2wLIsU9f1P9ynMeImAfIdhWtra08xdxQ2gQZsb28/Bz0i+UKhV+sUKVQPZFCUKAZLYldQRThQoXZ4ePgS4ewokPt7e3uvpWHXDrMiDYvarWDZ/o2GQdry8vK17leRGDs/P3+PqzM8Ourz8/Mz0FP1KDXB95n81/XW8VImqwuLi4uz2H+ysrLywpdU1tDQUL8ICXPgnTYz9uTk5AuSpCUtbwEcoqrebhGmquL4+PgnleKMuLJSHFLHxsa08fHxGcUnIZPJ9GEwR0ZGBvzH0un046WlpQznQd4GKXVK5BcgAvATE4lEEoOBMdsmUFWV1dXVAqZakLdtSqV16sLCwj149KjTocnJSXpYGx0dvdOJTmM2NjYeiN5K0gEqjSMbL+0A2NzczIHn4cHBwbcgHpz/C56Y6KF8yBBdX19/xroLEliv181isfgVfVcP4mF7zOfzbI9amFJ1YmIibofAxcVFsa+v736lUimF8Xby1htzZW5uTsFdzLIuu1mWy+XeVKvV5P7+/rtufIzWzs7OK9GtSmgVrL8Ms94wDL6lPxBdM4wXPJWpqSk+Bm0lpExPTzP2SXhZt28W2JNZYhHRIcy0JlUoFD7AE8O+AYADOhIuD7lp0Xg02pTGgWxvd7e2tt6CgR6bbOReOb0izhmQ85HypNy41OO6S9djqVQqie8ICz8FTIhG5nk7EkNlAm05dxqJpmkRBKf5pJFmRqPROu6ziiwvI+nK2KsA66R5a8iGQhtMNph4iMINHHSEQ7CT0WhtFssT9GaG25LHfeBBIw/Pm5DVVgkRT+ZyrsLiiLReULj0zEAL5lU74ebaaoC7JtJQrHViLBbTcac17DuI+tdLpZITJcdTXhY8MIeHh3WUTBXKWGMURLoSj8eda8Bo12q1psGKXLsjn7Zm6DG3ZDireGON09NTS9LcO23+EjQfRnw8tmftnQvPnpCh5tygI4ODg8bR0ZEhnXPDrXhCTGXMNL6Z/V7kr0D+DNyRmM1mB7x8UMS6ZCLGZWNoex5bTZVPm2RsGqHJw94ocB1lU5GNxR+hSNAn7Sr/3o42BtC69u5/3R/TicU64+4AAAAASUVORK5CYII=);background-size:100% 100%}.alarm-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAZmSURBVHgBnVZraNxVFj/38X9lJpnMNK+miUkfrI/uumx3kd2CZesurKUr1A/xhWLx8UHxiyCKombiAxERkX5Q9IsigjIq1AoiqI1FEUV8IG1R+og1bTJNk8lkHv/5P+49njvTmDadGcUL/+c99/zO+d1zf/cy+O0m6FL3r1v3n7FM5oH1nvcPCdDNGVNVpQo/+P6BdxcWnnr21KmvgTFGtrqdM9aub3x8nF385ps7bxwY2FvxfQgRGV9lhNQcKcGz7fjx48f/9fGGDd9NTk7GrZzyZj8JiI+T89s/+OCdXZnM3mKlAnETsHpU1EKlWKFaFfePjHz1SsV/9N/j45IiaZqMvAAMkc8QjQ9t3fpGN+LOMI4ZsJWxaECCAHS1Crynh8hWjcgZ4z7975Xi4T379gWPweZncogRjcWWGRI77FAuJ6/csmVHL2PXasQLAmJhCKlvv4X0jz+CPnny/D66TLaXJJNPjO5/eWTHnj02eWXNAQksS5m527ZZN6dSeykzaNbExo0rAKnUBf3Ge8n39SMQfL7+qhusMTw/qV8/xsn20ME5d/j6m7b6tZpmLQpKzcysxFgqNTOp0+tpvab8wsQgTE/bZprwXEBD5ZdHwEqu8bydxYX7Aq1bVi8WiysfNGetWiUMcdunn94G0OWZmmDnAl5Hz0xmwdG82rXJsv7G2i2XcrnxjCITaUsz6mFbuLjK5eWkn8/by1XLzctlB0HYoe2ASna7nKehTUMqGgNkqhQ4b2lnvPdL0c/drk7luvZ4Q0AaGc7UTknLER63wxRHVO0AQesGKK1NJmVb09AAxJjikeUuY9Vv8YgtUMUuiyG5xNhiWy9mTRIo1GoAltXOEvNcnKYiTWjJ7UPT0yZDJus3IXiE9K6Y96Vlfb09DK+GFvPIR0agtGsXYKEArLe3Ad7Mjq4Da3o+5hh5nCurt+gIMxV8zKxlkicVM0nFKffdedcXbhuq0CjMwADwvj6ipqVkQofrsm8ezOYpHgmhI2r9RE0WGvLoEY9oWRSqAv2/azxl21VSmaahi4suguSrr0Lne+8BLlfsqkZhxD9Z1lF706a1WpiCDcHNm5LOUua5HKhYaxmUNUoeYBjY9z6UfafTdU0wF9S9On68kSll1wzQ7B5rkkk58dJrH+pIRxwFGVKFpHs1ZLPIc2Nj2k+kY81FoJX2mWMv1S7Z3PP2ldsP2A1qzwM1clYYHIRFypTTtQpMJ4jK7A23vI623c8lL8UqqgXSCsNwqs5YndJaNK15rEKBrKRRF7hjn3n/nnuTuR3XfNbpeUzXWVpOUQEfHq5f584hvanuZJI/eefdbx27+v9/4kLOU6QLUshSItahPTqqzM7BzS2dH4oVWlUU1iIV7GnQOMs4O/PR7jvW7n76+f1RIjHf4Tik+2x1xmgiTngeFFPdp2996bX3j23/71+EZc9S1ywCzmEQl8CKaoWzJ4G6ByOux/J5L0Kn1wa5njP9ZzK+nPxfjLEeYlyko+kTh//64vP5K6Z+2txf87sIVc26XuGjK/45+/Ott0vWlbqcAp1ngp9Azg6jUt9LhIMB4lTfusz8c0SkSY6dJZ/R8rD6TpY6yyoaAMfaSNNxKdd4KUn/BsppgEIze5FHQJKdrW5gqGjeYtocqmSzyABnNMJRs/EoiA9zbR3zO+L8XDpdmWSszn9jwRHyZTTwEBarCe3MA3csHStJIkY+WUDbDZUw9lB0KcqauEVJoSLt5bHpJw9F6iNVYScY6KPA9RGM2ElfskI5na7tJzaWVeScswMyI7BErROFIuVy2acFDjEQIwxxiOZvgKHOkNMOik+aobSyQiq7ClG5QEI+Q/+nSTxOSMZ/1r5/piKDYm5oKKSEftXnFUkh6ywV23XEkZvPE2+eClQtYNJaoso8TUH2kTB1k+MEfdvM7DMcAwGirLheAB3Pc7Ty2qZMXSiQhFTnDh+JYHj4vM2ANVm55h/fPTVlCZnpCBMqyQOrk3NMCRLiKNYeKSHRHSP9oxOW7SOoMsN4KbRhqcJ5uXtxsVYZHY1ylBmuAmm90Z4tpPQpkOW46PAOy5UxiaLwJBLn9cEWqpAWtaB1Zkr/zNFqOAiD0dq/g5pgrKk0tjsI15tZMp9MTvLR0VFZkVSgjiM6GydsiFSPNqIBQ0NqbnJS0wFYw8TEHz55tx6zfLRYdeb8Pe0X+y0dg9FgPlMAAAAASUVORK5CYII=);background-size:cover}.unalarm-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAStSURBVHgBrVZdaFxVEJ5z7t27u8lumk3XLLsNNUIeSiqpWrAqVIL0zQef8lJE0YC/rz5I+9CnggUFFfwJWm2tVGkQqWlRMBV9EIwKlYKBStBak8aQ3e3u3bs/9/d05uy923T37ia0nWX2/M2Zb2bOnLkHYDM6ApwacfnP/aKwfk7oekFUKh6yK8p6XqyvnxdXrjzqS7PN1HUVEEIwhsv2P3/vVzOZefA8FQSwkB0eCjNQFOasrz8RGR39ibb73EE8bPKIEDQv3GL+uHrP8I8SDELBmjoY2uahUDr9g5vPH+/lDAv1DEkU8p+AFn0ap5Q2AQ+4woTjrjKFDeOM2qbSBcs8yV7a/gLMgttpXScYt5eWJiEWf6YDTO7g/MLZrw7ywYEngfGQCAkFotHn7GOXH5ucnFR7AhIaNWo2ewFcD7qRUakMYTPUNQM8D9TMyHygNgxQAk1NTTH94m/7ZNhY94RyLJssj3db9880MvfWsccJgyLXDijFZmdn1URu52HYIHAnFN9532vYqH7kOgC5XIzHH4ZN7pOicIq3Db2JKdEY6aJokJe3ABIAJYiG3aFNFCGgshVACm0K/yO0hZLxFsBMJqMmEokIQoueSnDVtp069kzoco/bSCM5zFgpG4SOrKAkSHpl/RLjPbyU95Bz13HzCueDqEHtIVtgAwMT2NORG8hOy8NUKiXDahmV3wF6eImx8RznWvH/lW+wr3QHA2EalYu+MzxwTnbGx8fBT13+8/fffQi9CAHPzMy8nrt/4hRw5naXA/h27tx7/qjlGGsutUI6FIlEtpnXS78yqp+hd5HBpYVfDu85cGBeGNUFEF6YdzLsWmrwQdu2SzhzHbmGbEtk8pAoFovRbvXLz08+j9ZDOAkxse+Ro8IwFsBzwzOVM/71F6efxUUFdQZfDhF4CL6HMeQBTdO2W56VXlv869XhbPYpCKunvcm9dvXq+Xv37n3baTTyOC7gDSivra1R0rhBbD2clHfLsixTBdXcMT7+/urKylywvgUgLIdcrP7379kdu3d/gGBmNBq18Ko5CNZKwgBQ4KSDrYVsOo5TQ4bcrl2fnjpx4mX5VRD+r5Oa4WLM/ejdd14cfeChz1RVJT110zQbhmFQ2N3A6CCkQaWJIieQB5GpSiSxqvSTIW8eOpSbnp4+mEil9mDRSFGBEB7e2mLxj9Mfz5x55egbq6iBqUytorE6eldC4FK1WjWgWSScjYCyPzY2pi0tLdFZJpG3IQ/4BtBcpE0+8FagUeC6LimkcyIAPR6Pl+v1egUTsr64uOi0exj0+cjIiLa8vIzJFUviqyGJZ0qA/aiUvJdPDVTOcBwAejh2fS+qxLhXbzQaBCyvgg8m5dszkOm6Lq3u6+vzarWaCOKPAA4pxgJB1trUIlvILSDMcANFKhjSajabDc7P2xCNjuLrkSIstFZ/fz+Fp4JcRouLCFhEhQUcF5HpMpewSFC/gOcl53Fc8vfUc7lcB1h7SNvnyZiIH0bNb+WnBm4aSgodnwnA2jDuANsKyY8yNLO3L51OJ7HIUzINEkEzsRIYvj5fJvjY3tGLIXjvKHDTS83nCL3M/LW78izpaQTcBt0A9SD8CAUtdUcAAAAASUVORK5CYII=);background-size:100% 100%}.speed-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAcCAYAAACUJBTQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAYgSURBVHgBvVZdbBxXFT7n3pnZXe+Pf2KvHdvxmiZCbSJVQlWFVCHkAlJo+a3EiheQENCCWoVA4Y1CYx76kEYgARVqqETUiAeyPJhGqIi/GoWnKk5/0rRNYqf+y67/ant/Z3bm3nt67iZ1t6mdtC890p2dnTn3fOd85373DsKtjAj/88fB79/xSeeXxqdBAyAciRRqsxg08djtX1/8PXuZm4XAnV6MjY05v3545v6RPTjR2DQ7+qV7hC4V6dC3n7/vmanjx6PtfOSNDx4nElkA9+SPzxyVgf6NCknATSz0SUhJB797cL7/vyr/z9LZswTj4+/zeV8AYmpKDHz0npOPVIvNQ0LCjgDCyYCbOsB3LoCqOo256MFnv/GvH41NTkpL8fYg/OIHU1NOsVh0uzqiY0Kg3AlAh1UY+sIFGPjMP2D44GVIjTwIiCB7HPUkjI46j1uG2oC2QGwG/vBd3lNvfPaJaq2dImR/xUO3Bl+go/8rNiu+NVCZ+R34S39t/Y+ahE+8NHasVAQvz7HpOpBjL7YPLzJ6crmW9CD8Xnv3jKrAwH1rHEO3/m+89Chk736qde8vPQfly0e5CmfLf283fSvK1MaTs2vmyIkToUVvZfw6p5u6shEPhOlUEaW2AKJNWwmVJnqp9LcsFZ8bAIzWWllb69j9NdjzxXlOpLwF0gxMhnzTVTedsfEjR/AaXVxSbXra6Ux5cdDQRW1VZD89Abn7l2D0gWUeK5AeeYBMtAzli0e3gOYmeluLoM3QaOh2OF7+woVWX22TsNSxT4ZekKBQdbPQVNisOT37fwVh5RUe59DSa5Nxuw6A23UnVWcLmNl7COb+PgQykW4HANcBHRPQTRStOr29NZ4XOXZFH4qvO772Eh7IlHJjJYyCPcpf5L5GcG2V8EAklEmszp7E4c+fhfnnR0DGUnCjvY3J6aahtOc68UqZnHcrgZWalFJEjhYQf9p97E8P4WO/qC38+UaVX+PXicPiv+8A4SY+AMCrST9T/s4pqUy8oYzbcITtOYp3tWlsh1Hi1dGv9iYH4k3YwcgEgDK+7bvsLgc37nm4R3sSJCJ28rN8oYDCXrQyJua4WggWhCPDn/W/OJHiPQk+gqV2Cf3D3Ct/4XpDobSSiQ7VMESFfN6I/fk8dWW0qSs/JCUarK8aoeh8dOTVM+ndkj5EfOoekPSTkVdPMxlpo01VE9QdHTQbiWZLcpYuioJeFeuQAQksM/FrAnGVo6cP75qaupr73P/SfXK7rZw6uyX9P/3llx/pO3cZCYZ4vM3NXRMGy0FZBWF/v7ZZOnbVLL5GOoFug+E2ISZKaOAqd7GHD47bnu7+bY4y6tIf8K7b11beYzCV8eqHR87WuEHDAsyq1SyzUOQkl9CjDSl8HyYnFd577/U96nXQvhc0KRnf5P6UFMBbvCamCcQcc7wkWG2HE6fP2LZb97iH9NPbzs0SJ8gCWibAOX5zhaNd0caUUNPmOg75L4yNtbJqgRTyvLhWVkJZblaE0csc6QrPv8hCeYOBpvnIKoaZoVy5d98lS9P53DcvcXBWIV5llBlB+CYL6SJX8ZY0ankjrFQHSxDxAqMtEEvZ/kJBzcJmABCzvC4YwyAI5znmBQ50GYRYeHJwopbNufhs4uccD+dZF5c4+Gs8/7yxSdl5GF9vKuXvPn1ki9v3BMfKzhdAJO8GVzqLHej2dioI+w1Qjnu0j7PiQcMMnkAh6uy/yNvXjBE8tF5wpVwSCdzU6+uNE6OjIdlt4nolHzi77bZf4AXxqen1OCQggyizEuET7LmX5+1h/jtYaDWWwAJXMsOVzLtMsZ/oqYQ9EPBc1Q4AcP08abdxRNvc6ABvEX6xqLKeZ0I+FYSIKSRVlSjiBrCOqEtSePOO76/MlnUlvBOaL/ChaYNvux/tZHkimVtejq84mS7QZhcZ6hZCx0BTIIWzbnxc80aTleMAgSUc2rL/0CC2Tw9xtc4qxEKqJ1lHHSpi9UgurtH0IdVfX+iH5iRXsBOANXlTEP60meKf5JfGtNxYUZ6XDSjw/Vq8q64gFZQGIZy8BcCtK2nzy586JVb7+pC/+qCPa9zPY/wmFH3s9g5SXA1WqgGefQAAAABJRU5ErkJggg==);background-size:100% 100%}.unspeed-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAcCAYAAACUJBTQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAR2SURBVHgBvVZbSCNXGJ7J5G7c7MYkFFaNsvrQCypapFso2FIpSx8qC9oWsVAQuts+tyAFxff6oH3qS2kVitCH1kJbCn0riiJeEPFFRaWuYnNbN9lkkslk+n3ZM9nEzZosC/vDx5k5l//7r2dGki4XmVhdXf06mUye5SEGBIN2eHi4PDU19Yb0nKLs7+/fhULdeIqItbxpTM2acUgeHBxUIpHI37qu540aJAdpaWlx4rEmDrmnp8cWj8e/oYWXKRaRKwoNwnlbNY/kiYkJCzcaVYQE2Ncj0D4zM/Mu5+H9bF9fn/UyIhLYd3d3Z6uRhMPhe9g7pCjKrWAweLM0b42NjS6slRFZTS9IEggE7M3Nzbel8hxJCwsLP6C6Ml6vV8G6s7+//zcsuRGi5MnJyT+yLFvMvfDk+vLy8r97e3sMn2Fab5IosNBht9vdpRxQIEHRPSjMbG9vH3R2dn4cjUZ9XJubm+tbWlqaFeGTuHd0dPQtENhQPPLFQlAAD3C9NOEbGxs/WiyWu8DnwJ3x8fEvURjvY98AQI8Htra2/ig9c3R09BXmrzH0pSGTxcRV4AaqMfsot3mdTaeqahpIEel0+hxzXKeJ/fDsJ3hY1keTk5MjdXV1L2HdJQqp2ET2ekgmkwkcHx//idyE4PoQ4w7oSHAOutJ4zkDJjYODg/jY2Nh77e3tw9inlOYPHr+CxwRwH+AZ3SRyAkHg1enp6U+NKj2ys7MzB49yxpOlnYOOm0AIqBdpKIbL6fF4SPIa8PZlV0kqlTqrdBMgzHpXV9cHOP+mILlikjBmcltbmyHKrXAPoVQHmBSpgrhcriBCUtZsdGJ9ff3nzc1Nq9Bh6pNMEgMlJ6EP6KpmtVqziURCaWhouE3rpCpCAtzSv/f29v6FV5V5c7vd1KUj8UWiwn1F95xOZzPG14FbwIdI+NDi4uKvUKRXiH8exjxAiL7A3jvY+xHGd9BnL2P0Aw6RimIdM3Ys43ps8mez2QCeG3DwCvQ5UEEovMz3eC/sJ8H8/Px3IyMjuyxpTD0Eojab7UzTtDOfzxdvbW1Nr62taabygiAvllgsJiOpMjYriLsVz7wsibqmpqb97u7uXqnQ2HK+o6NjHvMkSAHnJAFhDOMD9JN6enqqmXkxPTH7hS6yN7z0BLgG66+CzEtSWPkt+wJGfII5lmiSBMhjDPmL4jnu9/uToVBIhRc56cLdZVYD2dPCsggQhrIoiOKwMgNvP1tZWfkFHvAKuo957vkPBBzjJMWtnAGBbpTcWxdLURYdbBdeURnvIZ8YPcIwVhE7muGJoccSqE6GjeGjB2Xlby19AQELR8eowmodOSqAhxASWkflFninImT0JIYRRZZICwL9IkFpuMqIuHF4eFgDgSriHkdOIlDO8IUZRuQnikvzHAQPhWe5SgRPhKuCFD7HKEkHSpgfKQcUW4TVKr6CKVyoGm8VfkueJtVICl9M6VFYbQKSsFoTI0NU229KFSkQIU8OgmT8bZKe5V+rFmHlSY89e7afuRch/wNRJqL4UjmtQgAAAABJRU5ErkJggg==);background-size:100% 100%}.boundary-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAdCAYAAAC5UQwxAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAhqSURBVHgBxVZrjFVXFV5rn8d9zp03HREYqMPDIkVIB0tTwkUaE2uEFgPGYgW1hdhqYgu1/eXgH7WmTTTx1VobNWlrpQQIUlQqTo2PiqKxwkBhAkNnGB4z996ZuY9z7zln7+23z5lBrD/90TNzz71nn73X2utb3/rWZnrH1Uckdh1e+eMgIE3/x5VwiLMf+/vn8PO/7LC5aa3Z/Ojr77d2NR6r+5VJi61UPEPYZgIpf5KEk71hTGG1RTqoENtpPEtYsViYMenh45Oby/lPu09lKJ9Xe5gVX49Ka4GPu2FsrKlwYIWuDx/WWintX/m9Ht+/TI/vW4JnGDQXxouH1ujCgQ/q+tA+MxC9m/zDTl042Kurp74TjZl3hYMr1P1aZ4ztvr4+Ee3V3C4TWYODxeRs5ly8BUXe2eeo/JdHyM4soPZNA4hGRFGNv/I+RDtOubUvUaL73mj2xNGNFI7/lTK3Pkbp939pGrgYSR4ptAy/NZ5AlJEvG3CxP0SW05xI1+tBpxn0Tv+QdP0aue+5i7K3fSM2AFjHfz4PW3OobcNxwJiNxoqHPgT46tR853Nkd/ZOz1VUOf44cSJHiq0Or9UJLybmgxVa2maGyI472smmSYUdUXzeZez0YUr2bMfbGPnxl+GMFXVsPh+PwWjhlUVRPls/eoxEenYMjkFh7wISifbo0bK5w9FhuZLJVPv27PFFn3Fg2xbJMCk1tZhJ6aVfhrPPRoZVowDDPdHG2z95adoZov1FN74UtW088T/O2G2hxLwNM9lpIcdKZqqOPbB0KQuTnWpFCC1Dl0mno12l50Zzg/ETVHo1DwgS1LHlInzNQDsnSn/HlvOANvMOZ83UvPYFEsnO2J/FaWO7agtBmzeTuKWfOMXmcjFCVrQWf/XzL1L5TzvJynRT26aTMWkwbqBlJ0Pt9/wD0ZcwhA9NUu3wzZRpaaXWu54nu7mTLFfFFaSUbWynOM6NTXmi5ChxIwgYNqPB+rmfkpwcIPemtZRd9VREBC0bVNy3hESqM4qydGQ9PXnQ0a8NJGHZ1PFcgwCo+WhU11KS+Oanmfg2ZB62A1ToWH8/24BUG+agzFlSXJvhxElKLXqAUot3xHkEY0u/vBPbdSMBaP/EGWAV0JGvruaVvz46gSU5ipyZfw1XYkJ6tV/96OEN2zNbFLZrxbDn8wbSfm7Cb+lgtpyWJSQ8tXhnFFlY+hei+TDATlBz/hktEwna8YXd+gPLVlJzLmtCszFtCv5KwKEIlEqs9JQOAh/xIRMi1LajHB0XphjI53U5ooBzXfPcrnz03Rg5QlOvbwcxcvRm87dp2Zov8qeeXXCtvG3bsd5jb4w4rqs005jQNAJzQ7COmqEhLWhEkZ6McygCo0UBfJtk2LcgjAs6VsYZhzqsknfuefLO/ACU76KWj7xKDy1ZTLf3Hx/D6yxSuAKzKyaXKM0L+CrAchk66itUOkwBLX0tYjqq2tZSSQCBxWzSR0lu4oBqWk07hA6SLL5JTnsvNd3xvZht4DAMG/hKgKICghQxPBu2z5DgUSBbVAqKrdnBvISq10tRiRHXuKFkKGLzkUMDacZsyxIRrGHxn5RespOSCz9/XWmiaJivwuikYDEBCK8BmF4mcRYBjGgOC+RadfI5SUJnSQYRI2wnUW80KjJS7X48G5a2wmVAFvgVs9TKdv/HGRzVfrcRhdxhSHhi5MH7bpflyqrUuvXf54jCahjhj+pKvTi0fctXqO7vyMyd+4yzY/fPXFP4QS0kx5U1JNKUYFT4JkIOAjGTw8zyJ6Yj0zTxm7vJK4/Strtn0cmPr9tq9yx6fd4L+++rHDu689LIJfrz+tUH3li36vjfNq4bDGte58IX98+tjry98u1dD/3RBWDashWIff2yB/JgziiZitCmdxovsnyBrbaVVDp0B558SnVvol0bniDR/l36bTp9XKP8ZeDLt86du25q6OIwfWbb1oLv19pEMnX6Jw+O9c7JanqU2ZINzc2YY9o0oznaZ0fLLS6rbhZ6+ZOn73ncnpxaaNrWjfmLyJXW1Ls7gQ5g09Y1Df1A3udpxQKqmu79VkqWPMfqyvnqpUcCvtQ267Wne17+eqjCyw3ljo3NyU3FDs+OtljZzDzXEbeCS6s1qxAq3xVzCWcH4imAM2YxXwbVChRyXVtGrFwrwkaBAsx1aKMvlQ8+J4wWuqBFOmQeZhmO1KV3lebMmbSXwuK1ZEZWbTvEUaGhQ+WRxctgwPSfXFRpIDIq6wri7EI8YyimhtSOrZRKYhMWsPAxp0ZKehY7UMjQdAlswC6R9LGpBAWhpZabwj+F21S2WSZUuUG+qmohCvBxheKaK6P6GOh6cFxhcB9PaAAwhyMVXrjYhKNZ2BH+Am+JfZSXERa8DgNLAIpAhZmcUl8zpDG3+4OrqBrXQ/Mu4Gw1DJQcLK9A9Y1YGjMhVKSG81MVxj1LsEEjgc3heKaMCiscynxSugEE6vDVwKoKVGcSlsoNGdadEdRlW9wodEu5HNaSsyrQ2zFs3BKOXdGhbAUT0hwdtBi+dIik+QghoDA0jBbIHfIkLIoalCllCnAADCDePk53VSyaIE8WXfZrnjUREN0U6+dmrS1vdDTR1tSUElXZhGzmpGOlEIUb6YsRBURh2YghOhSSFgZAyZY1o8E21NP3oaS2BJbSZ7tuccVTMlP23ttU20vIM7PkadpzHodgmj/fvjmbdcJEhysKY06YzbCbhhjW0EHg14e3NLhBnmmgaQrrHvttKZ2uxdXjG1JoI1halUuTMmN7wSXb9vvnzzcsNuTTTDdcplNv2Qv12UyMsyqXTmH3oHHXTBSD5n+Qenp6osc2LCne0GUG8T7bgFQuNSJ4gp49f17hHKPi5vwuXf8GHF1WVycoz7QAAAAASUVORK5CYII=);background-size:100% 100%}.unboundary-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAYqSURBVHgBpVZbbFRFGD572u7Z7m6320JvUEpvFNKAiSF9MIqpKTEpKYiRRhFohGqVEKOhUR9MU6MJ8cGXRl70BWOEiBUDgsTGB/omiE0lLWnlUrYsLV22pd12t3s5l/H7pzPr6VLwwUn+zMx//vm//zpzFCVjMJZ8iVm6BWL/jwyLGbEWqHQojxvd3d0qgVlG8o945H5bfHrsALNSt8AzLT1xIT7/4GB0duJgfO5eExQyxgyWSiwcic6Ot03cHXqR8wAEuXacu0prqFUhuCKoCsoiwNh8uKOsrMxtGYk+ZupGPBb5pLBQ8dXWFvq6u9/3L4GZbF9zs6+6oCC/vLw8FzwwTevixTPlhYrii4YD+8hQ6MwWupcNsiALpBHg4tzMHhwOQIk+Gby9D/xiL+jnH09t4qGCFeAVejxKCWa/9HZHY0MpyXm9StFcONghALXW1tYsJSO0ZIGzqKjIa8ufef6nk8+4FKUS39aPDF/bSQZYph7Gfo3LpVQ+37B5nQgjIx7J+f2u9R+821GzxOeAbtKd6SW5nbtkLQBh7e4dTXXYbwDV3AvcPgq+bhipK6RU05Tazs636yEnvV2naVo18ffvb91IobUB+kAuEcF0OHPIkry8vFUE+PfQ5QM+TSOwjdPToePQaUYXHp6Gwup8Tas5c/qbZ3nOTCMCmXKXy1VFYG1tr9ZxMOR3ZmqsXQD6qR62bt2aI8MqAT2g1QQYGL3arsGzRGz+PCmenp46RiHE96rBwSu7wUuhlMexXwuqAFUeOfJWnfSM+FN3b3wsAAtFWLMfCzh2c3iPZaaGKWeBwFg7KYUXFcHgGBWCQTmOzs98EZ0LnVqMhE9GZ0PfMovATJaIL3y9GItcsPTksABcRbobGxs5oEMAZovEorz1B2CRlay/77ftLzQ3j1ECxu8H3yguKe3i8g4VBcB4WmKxWA8WSZkfwzBU0zQdyGmpx+N+3eFQqZITQsZIe0gVKnNIRXP48KGNFELyLjI7/SVZi2Yeom/glXZ1fbrFsqyYx+MpdbvdZaJK14GqQbVNTU0IsUWNv5o8XCmHXnKfACcCo4fgVRXRYjTyA8/j1P3PJyfRzBQ3xhIYv2AmhaUil+UinzUE2NLSssEOKDAc6d4oKSlhcs3MhBOFzBZS8RO5bvfLoampLi3Pt6G4uPyzS5f6dzkcji3I6VF4uED9lZubS0Yz8Og4gZjKyoPxRCKh7Pr16+mbQFeds4ux1K9IVnXw3sR7FRWV5M0xANWJfOcgR2ml8Xic1uS2BFOdTqfUZ9kAHXRY6e/v5xZKbuX6uu/o458Dl3c2NDw3KmMPEEcymeQFhVkqMm1e8cva6/VmI7cSkNl0Mx5SJJSjo2iEHUrWwUMHNm/btn1UCPPqIhCApurr62mvCyW0TqHoUsTr7OxUo9GoDkAeAb/fz2zAy4qGmpMXTeRh6DjW1fn5ripU4Jqly5mxnp6ezTSj7G8D/AJyOH327Nn6gYGBpwYHB1Ek7CFoBDTb19e3SRQNf02UzMantpCAo9d+30Vg2K8Vd6JxY+SvFiiaO3fu3NNkhK7rIwD9HtRLBPAr4B3FGQ88/IgqGAVtFuD5Up5w06yi58dIxS+HJsY/FGBWKr7w1UxovNtIxk+h0U/s3bu3hDwN3RzaH5681TEXDryZWgi/A9ZdhNsL8Ju4f/nLT1EVgDnpyrED3rlz6zXxPFmPkEkzvRBMrDMIt/mSZ4ZJcsHgjVegs8AGuPxq8/l82vz8vIy33SBJsirtw0IfWmgNZpNX0ZMOtIkBnQnopKuNisqUirKEBS5Ul4aw5eAAVbCKQ3xGdaYBkDNqkXQbyVaRgKJ9TFHBBBYXgIaqLO8TC2Cyn6iRmd0VUkxgylIf2vd8kFdSznbrcF34zeC6eB/ib402Jq43Iz8/30Dj6qqqGiJ8Bg7ruGV0zLzXBBkIJe9HzLqQlV7ReSmno5DM3t5eJuOdjrvIXY4Isdwvu4Vsa6Ys/zFiGbLcgNra2hT60MRtZtr1SEAC4u+islRZ1JseSYgAJ7m288XabduTDqd4eB/5TZSg/GdY+beI0oSwODN5pJDeOfHW2YlAsoQuxyMg/zGeJMOe8J2txPwHmqVUPwAeVUwAAAAASUVORK5CYII=);background-size:100% 100%}.tab-pane{display:none}.tab-pane.active{display:block}.alert-message{font-size:12px;font-weight:Medium;line-height:1.4;padding:5px;border-radius:2px;background-color:transparent}.alert{font-size:14px;font-weight:700;margin:5px}.speed-info{font-size:12px;line-height:1.4;padding:5px;border-radius:2px;background-color:transparent}.limit-value{color:#4caf50}.actual-value{color:#ff4d4f;font-weight:700}.vehicle-detail-container[data-v-60d76804]{position:fixed;z-index:2000;width:380px}.vehicle-detail-box[data-v-60d76804]{background-color:#424851;border-radius:8px;overflow:hidden}.vehicle-detail-header[data-v-60d76804]{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #777777;background-color:#424851;color:#fff;padding:8px 12px;font-size:16px}.vehicle-detail-close[data-v-60d76804]{cursor:pointer;font-size:20px;font-weight:700}.vehicle-detail-content[data-v-60d76804]{padding:12px}.vehicle-detail-title[data-v-60d76804]{color:#fff;font-size:16px;font-weight:bolder;display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.vehicle-detail-status-container[data-v-60d76804]{display:flex;align-items:center}.vehicle-detail-status[data-v-60d76804]{padding:2px 8px;border-radius:4px;font-size:12px;font-weight:700}.vehicle-detail-online[data-v-60d76804]{padding:2px 8px;border-radius:4px;font-size:12px;font-weight:700;background-color:#409eff;color:#fff;margin-left:10px}.status-running[data-v-60d76804],.status-idle[data-v-60d76804]{background-color:#409eff;color:#fff}.vehicle-detail-info-container[data-v-60d76804]{display:flex;flex-direction:column;gap:10px}.vehicle-detail-info-row[data-v-60d76804]{display:flex;justify-content:space-between}.vehicle-detail-info-item[data-v-60d76804]{flex:1}.vehicle-info-label[data-v-60d76804]{color:#eee;font-size:14px;margin-right:4px}.vehicle-info-value[data-v-60d76804]{color:#eee;font-size:14px}.alarm-btn[data-v-844c4d44]{position:absolute;top:20px;left:20px;width:40px;height:40px;background-color:#292c38cc;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1000;box-shadow:0 2px 8px #0000004d;transition:all .3s}.alarm-btn[data-v-844c4d44]:hover{background-color:#292c38;transform:scale(1.05)}.alarm-btn img[data-v-844c4d44]{width:24px;height:24px}.alarm-badge[data-v-844c4d44]{position:absolute;top:-5px;right:-5px;background-color:#ff4d4f;color:#fff;font-size:12px;min-width:18px;height:18px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 4px} diff --git a/airport/assets/VehicleMovementControlRefactored.f094f266.css.gz b/airport/assets/VehicleMovementControlRefactored.f094f266.css.gz new file mode 100644 index 0000000..f8e68aa Binary files /dev/null and b/airport/assets/VehicleMovementControlRefactored.f094f266.css.gz differ diff --git a/airport/assets/VehicleStats.eed4df3d.css b/airport/assets/VehicleStats.eed4df3d.css new file mode 100644 index 0000000..3ba3864 --- /dev/null +++ b/airport/assets/VehicleStats.eed4df3d.css @@ -0,0 +1 @@ +.stats-container[data-v-73fb5fff]{width:100%}.stat-cards[data-v-73fb5fff]{width:100%;display:flex;justify-content:space-between;align-items:center;flex-wrap:nowrap;gap:20px}.stat-card[data-v-73fb5fff]{flex:1;background-color:#292c38;border-radius:8px;padding:16px;display:flex;align-items:center;color:#fff;height:100%;transition:all .3s ease;min-width:200px}.stat-icon[data-v-73fb5fff]{width:50px;height:50px;border-radius:8px;display:flex;align-items:center;justify-content:center;margin-right:16px}.stat-icon .icon[data-v-73fb5fff]{font-size:24px}.stat-info[data-v-73fb5fff]{flex:1}.stat-title[data-v-73fb5fff]{font-size:14px;color:#96a0b5;margin-bottom:8px}.stat-bottom[data-v-73fb5fff]{display:flex;justify-content:space-between;align-items:center}.stat-value[data-v-73fb5fff]{font-size:24px;font-weight:700}.stat-change[data-v-73fb5fff]{display:flex;align-items:center;font-size:12px;color:#67c23a}.stat-change.error-change[data-v-73fb5fff]{color:#f56c6c}.stat-change .percent[data-v-73fb5fff]{margin-right:4px}@media (max-width: 1200px){.stat-cards[data-v-73fb5fff]{flex-wrap:wrap}.stat-card[data-v-73fb5fff]{min-width:calc(50% - 10px);margin-bottom:16px}}@media (max-width: 768px){.stat-cards[data-v-73fb5fff]{flex-direction:column}.stat-card[data-v-73fb5fff]{min-width:100%}} diff --git a/airport/assets/VehicleStats.eed4df3d.css.gz b/airport/assets/VehicleStats.eed4df3d.css.gz new file mode 100644 index 0000000..6198c4c Binary files /dev/null and b/airport/assets/VehicleStats.eed4df3d.css.gz differ diff --git a/airport/assets/authRole.5e2b1ce3.css b/airport/assets/authRole.5e2b1ce3.css new file mode 100644 index 0000000..b113f31 --- /dev/null +++ b/airport/assets/authRole.5e2b1ce3.css @@ -0,0 +1 @@ +.app-container[data-v-7d915e85]{padding:20px;background-color:#292c38;color:#fff;height:calc(100vh - 180px);overflow-y:auto;border-radius:10px} diff --git a/airport/assets/authRole.d19fd60d.js b/airport/assets/authRole.d19fd60d.js new file mode 100644 index 0000000..7da7f76 --- /dev/null +++ b/airport/assets/authRole.d19fd60d.js @@ -0,0 +1 @@ +import{_ as q,Y as z,u as F,r as i,a4 as J,d as s,a8 as P,o as N,c as Y,e as t,w as a,f as o,J as S,k as G,l as m,x as C,T as H,a9 as V,m as $,s as L,p as M,q as Q}from"./index.79832097.js";import{h as W,i as X}from"./user.72b5bfe4.js";const T=_=>(M("data-v-7d915e85"),_=_(),Q(),_),Z={class:"app-container"},ee=T(()=>m("h4",{class:"form-header h4"},"\u57FA\u672C\u4FE1\u606F",-1)),te=T(()=>m("h4",{class:"form-header h4"},"\u89D2\u8272\u4FE1\u606F",-1)),oe={style:{"text-align":"center","margin-left":"-120px","margin-top":"30px"}},le=z({name:"AuthRole"}),ne=Object.assign(le,{setup(_){const b=F(),{proxy:f}=L(),v=i(!0),h=i(0),u=i(1),d=i(10),w=i([]),g=i([]),r=i({nickName:void 0,userName:void 0,userId:void 0});function B(l){f.$refs.roleRef.toggleRowSelection(l)}function U(l){w.value=l.map(e=>e.roleId)}function j(l){return l.roleId}function I(){const l={path:"/system/user"};f.$tab.closeOpenPage(l)}function A(){const l=r.value.userId,e=w.value.join(",");X({userId:l,roleIds:e}).then(c=>{f.$modal.msgSuccess("\u6388\u6743\u6210\u529F"),I()})}return(()=>{const l=b.params&&b.params.userId;l&&(v.value=!0,W(l).then(e=>{r.value=e.user,g.value=e.roles,h.value=g.value.length,J(()=>{g.value.forEach(c=>{c.flag&&f.$refs.roleRef.toggleRowSelection(c)})}),v.value=!1}))})(),(l,e)=>{const c=s("el-input"),x=s("el-form-item"),R=s("el-col"),D=s("el-row"),k=s("el-form"),p=s("el-table-column"),E=s("el-table"),K=s("pagination"),y=s("el-button"),O=P("loading");return N(),Y("div",Z,[ee,t(k,{model:o(r),"label-width":"80px"},{default:a(()=>[t(D,null,{default:a(()=>[t(R,{span:8,offset:2},{default:a(()=>[t(x,{label:"\u7528\u6237\u6635\u79F0",prop:"nickName"},{default:a(()=>[t(c,{modelValue:o(r).nickName,"onUpdate:modelValue":e[0]||(e[0]=n=>o(r).nickName=n),disabled:""},null,8,["modelValue"])]),_:1})]),_:1}),t(R,{span:8,offset:2},{default:a(()=>[t(x,{label:"\u767B\u5F55\u8D26\u53F7",prop:"userName"},{default:a(()=>[t(c,{modelValue:o(r).userName,"onUpdate:modelValue":e[1]||(e[1]=n=>o(r).userName=n),disabled:""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),te,S((N(),G(E,{"row-key":j,onRowClick:B,ref:"roleRef",onSelectionChange:U,data:o(g).slice((o(u)-1)*o(d),o(u)*o(d))},{default:a(()=>[t(p,{label:"\u5E8F\u53F7",width:"55",type:"index",align:"center"},{default:a(n=>[m("span",null,C((o(u)-1)*o(d)+n.$index+1),1)]),_:1}),t(p,{type:"selection","reserve-selection":!0,width:"55"}),t(p,{label:"\u89D2\u8272\u7F16\u53F7",align:"center",prop:"roleId"}),t(p,{label:"\u89D2\u8272\u540D\u79F0",align:"center",prop:"roleName"}),t(p,{label:"\u6743\u9650\u5B57\u7B26",align:"center",prop:"roleKey"}),t(p,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180"},{default:a(n=>[m("span",null,C(l.parseTime(n.row.createTime)),1)]),_:1})]),_:1},8,["data"])),[[O,o(v)]]),S(t(K,{total:o(h),page:o(u),"onUpdate:page":e[2]||(e[2]=n=>V(u)?u.value=n:null),limit:o(d),"onUpdate:limit":e[3]||(e[3]=n=>V(d)?d.value=n:null)},null,8,["total","page","limit"]),[[H,o(h)>0]]),t(k,{"label-width":"100px"},{default:a(()=>[m("div",oe,[t(y,{type:"primary",onClick:e[4]||(e[4]=n=>A())},{default:a(()=>[$("\u63D0\u4EA4")]),_:1}),t(y,{onClick:e[5]||(e[5]=n=>I())},{default:a(()=>[$("\u8FD4\u56DE")]),_:1})])]),_:1})])}}}),re=q(ne,[["__scopeId","data-v-7d915e85"]]);export{re as default}; diff --git a/airport/assets/authRole.d19fd60d.js.gz b/airport/assets/authRole.d19fd60d.js.gz new file mode 100644 index 0000000..7181406 Binary files /dev/null and b/airport/assets/authRole.d19fd60d.js.gz differ diff --git a/airport/assets/authUser.b9a8cfc6.css b/airport/assets/authUser.b9a8cfc6.css new file mode 100644 index 0000000..89850eb --- /dev/null +++ b/airport/assets/authUser.b9a8cfc6.css @@ -0,0 +1 @@ +.app-container[data-v-b6f17246]{padding:20px;background-color:#292c38;color:#fff;height:calc(100vh - 180px);overflow-y:auto;border-radius:10px} diff --git a/airport/assets/authUser.be1c1b53.js b/airport/assets/authUser.be1c1b53.js new file mode 100644 index 0000000..83de994 --- /dev/null +++ b/airport/assets/authUser.be1c1b53.js @@ -0,0 +1 @@ +import{_ as J,Y,u as G,r as d,a6 as H,d as r,a8 as x,o as h,c as M,J as m,T as V,f as o,e,w as t,i as $,m as _,k as y,a9 as W,l as X,x as Z,s as ee}from"./index.79832097.js";import oe from"./selectUser.b448efa8.js";import{c as te,e as le,f as ne}from"./role.9b221df4.js";const ae={class:"app-container"},se=Y({name:"AuthUser"}),re=Object.assign(se,{setup(ue){const R=G(),{proxy:u}=ee(),{sys_normal_disable:P}=u.useDict("sys_normal_disable"),k=d([]),w=d(!0),g=d(!0),N=d(!0),v=d(0),U=d([]),n=H({pageNum:1,pageSize:10,roleId:R.params.roleId,userName:void 0,phonenumber:void 0});function c(){w.value=!0,te(n).then(s=>{k.value=s.rows,v.value=s.total,w.value=!1})}function T(){const s={path:"/system/role"};u.$tab.closeOpenPage(s)}function f(){n.pageNum=1,c()}function A(){u.resetForm("queryRef"),f()}function K(s){U.value=s.map(a=>a.userId),N.value=!s.length}function B(){u.$refs.selectRef.show()}function D(s){u.$modal.confirm('\u786E\u8BA4\u8981\u53D6\u6D88\u8BE5\u7528\u6237"'+s.userName+'"\u89D2\u8272\u5417\uFF1F').then(function(){return le({userId:s.userId,roleId:n.roleId})}).then(()=>{c(),u.$modal.msgSuccess("\u53D6\u6D88\u6388\u6743\u6210\u529F")}).catch(()=>{})}function j(s){const a=n.roleId,b=U.value.join(",");u.$modal.confirm("\u662F\u5426\u53D6\u6D88\u9009\u4E2D\u7528\u6237\u6388\u6743\u6570\u636E\u9879?").then(function(){return ne({roleId:a,userIds:b})}).then(()=>{c(),u.$modal.msgSuccess("\u53D6\u6D88\u6388\u6743\u6210\u529F")}).catch(()=>{})}return c(),(s,a)=>{const b=r("el-input"),C=r("el-form-item"),p=r("el-button"),q=r("el-form"),I=r("el-col"),z=r("right-toolbar"),L=r("el-row"),i=r("el-table-column"),O=r("dict-tag"),Q=r("el-table"),E=r("pagination"),S=x("hasPermi"),F=x("loading");return h(),M("div",ae,[m(e(q,{model:o(n),ref:"queryRef",inline:!0},{default:t(()=>[e(C,{label:"\u7528\u6237\u540D\u79F0",prop:"userName"},{default:t(()=>[e(b,{modelValue:o(n).userName,"onUpdate:modelValue":a[0]||(a[0]=l=>o(n).userName=l),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D\u79F0",clearable:"",style:{width:"240px"},onKeyup:$(f,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(C,{label:"\u624B\u673A\u53F7\u7801",prop:"phonenumber"},{default:t(()=>[e(b,{modelValue:o(n).phonenumber,"onUpdate:modelValue":a[1]||(a[1]=l=>o(n).phonenumber=l),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801",clearable:"",style:{width:"240px"},onKeyup:$(f,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(C,null,{default:t(()=>[e(p,{type:"primary",icon:"Search",onClick:f},{default:t(()=>[_("\u641C\u7D22")]),_:1}),e(p,{icon:"Refresh",onClick:A},{default:t(()=>[_("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[V,o(g)]]),e(L,{gutter:10,class:"mb8"},{default:t(()=>[e(I,{span:1.5},{default:t(()=>[m((h(),y(p,{type:"primary",plain:"",icon:"Plus",onClick:B},{default:t(()=>[_("\u6DFB\u52A0\u7528\u6237")]),_:1})),[[S,["system:role:add"]]])]),_:1},8,["span"]),e(I,{span:1.5},{default:t(()=>[m((h(),y(p,{type:"danger",plain:"",icon:"CircleClose",disabled:o(N),onClick:j},{default:t(()=>[_("\u6279\u91CF\u53D6\u6D88\u6388\u6743")]),_:1},8,["disabled"])),[[S,["system:role:remove"]]])]),_:1},8,["span"]),e(I,{span:1.5},{default:t(()=>[e(p,{type:"warning",plain:"",icon:"Close",onClick:T},{default:t(()=>[_("\u5173\u95ED")]),_:1})]),_:1},8,["span"]),e(z,{showSearch:o(g),"onUpdate:showSearch":a[2]||(a[2]=l=>W(g)?g.value=l:null),onQueryTable:c},null,8,["showSearch"])]),_:1}),m((h(),y(Q,{data:o(k),onSelectionChange:K},{default:t(()=>[e(i,{type:"selection",width:"55",align:"center"}),e(i,{label:"\u7528\u6237\u540D\u79F0",prop:"userName","show-overflow-tooltip":!0}),e(i,{label:"\u7528\u6237\u6635\u79F0",prop:"nickName","show-overflow-tooltip":!0}),e(i,{label:"\u90AE\u7BB1",prop:"email","show-overflow-tooltip":!0}),e(i,{label:"\u624B\u673A",prop:"phonenumber","show-overflow-tooltip":!0}),e(i,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:t(l=>[e(O,{options:o(P),value:l.row.status},null,8,["options","value"])]),_:1}),e(i,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180"},{default:t(l=>[X("span",null,Z(s.parseTime(l.row.createTime)),1)]),_:1}),e(i,{label:"\u64CD\u4F5C",align:"center","class-name":"small-padding fixed-width"},{default:t(l=>[m((h(),y(p,{link:"",type:"primary",icon:"CircleClose",onClick:ie=>D(l.row)},{default:t(()=>[_("\u53D6\u6D88\u6388\u6743")]),_:2},1032,["onClick"])),[[S,["system:role:remove"]]])]),_:1})]),_:1},8,["data"])),[[F,o(w)]]),m(e(E,{total:o(v),page:o(n).pageNum,"onUpdate:page":a[3]||(a[3]=l=>o(n).pageNum=l),limit:o(n).pageSize,"onUpdate:limit":a[4]||(a[4]=l=>o(n).pageSize=l),onPagination:c},null,8,["total","page","limit"]),[[V,o(v)>0]]),e(o(oe),{ref:"selectRef",roleId:o(n).roleId,onOk:f},null,8,["roleId"])])}}}),me=J(re,[["__scopeId","data-v-b6f17246"]]);export{me as default}; diff --git a/airport/assets/authUser.be1c1b53.js.gz b/airport/assets/authUser.be1c1b53.js.gz new file mode 100644 index 0000000..72ce15f Binary files /dev/null and b/airport/assets/authUser.be1c1b53.js.gz differ diff --git a/airport/assets/basicInfoForm.9dffecf9.js b/airport/assets/basicInfoForm.9dffecf9.js new file mode 100644 index 0000000..ae400b4 --- /dev/null +++ b/airport/assets/basicInfoForm.9dffecf9.js @@ -0,0 +1 @@ +import{r as i,d as m,o as b,k as p,w as l,e,f as c}from"./index.79832097.js";const N={__name:"basicInfoForm",props:{info:{type:Object,default:null}},setup(o){const d=i({tableName:[{required:!0,message:"\u8BF7\u8F93\u5165\u8868\u540D\u79F0",trigger:"blur"}],tableComment:[{required:!0,message:"\u8BF7\u8F93\u5165\u8868\u63CF\u8FF0",trigger:"blur"}],className:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u4F53\u7C7B\u540D\u79F0",trigger:"blur"}],functionAuthor:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005",trigger:"blur"}]});return(V,a)=>{const n=m("el-input"),u=m("el-form-item"),r=m("el-col"),f=m("el-row"),s=m("el-form");return b(),p(s,{ref:"basicInfoForm",model:o.info,rules:c(d),"label-width":"150px"},{default:l(()=>[e(f,null,{default:l(()=>[e(r,{span:12},{default:l(()=>[e(u,{label:"\u8868\u540D\u79F0",prop:"tableName"},{default:l(()=>[e(n,{placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u540D\u79F0",modelValue:o.info.tableName,"onUpdate:modelValue":a[0]||(a[0]=t=>o.info.tableName=t)},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(u,{label:"\u8868\u63CF\u8FF0",prop:"tableComment"},{default:l(()=>[e(n,{placeholder:"\u8BF7\u8F93\u5165",modelValue:o.info.tableComment,"onUpdate:modelValue":a[1]||(a[1]=t=>o.info.tableComment=t)},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(u,{label:"\u5B9E\u4F53\u7C7B\u540D\u79F0",prop:"className"},{default:l(()=>[e(n,{placeholder:"\u8BF7\u8F93\u5165",modelValue:o.info.className,"onUpdate:modelValue":a[2]||(a[2]=t=>o.info.className=t)},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(u,{label:"\u4F5C\u8005",prop:"functionAuthor"},{default:l(()=>[e(n,{placeholder:"\u8BF7\u8F93\u5165",modelValue:o.info.functionAuthor,"onUpdate:modelValue":a[3]||(a[3]=t=>o.info.functionAuthor=t)},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:24},{default:l(()=>[e(u,{label:"\u5907\u6CE8",prop:"remark"},{default:l(()=>[e(n,{type:"textarea",rows:3,modelValue:o.info.remark,"onUpdate:modelValue":a[4]||(a[4]=t=>o.info.remark=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])}}};export{N as default}; diff --git a/airport/assets/basicInfoForm.9dffecf9.js.gz b/airport/assets/basicInfoForm.9dffecf9.js.gz new file mode 100644 index 0000000..96243b7 Binary files /dev/null and b/airport/assets/basicInfoForm.9dffecf9.js.gz differ diff --git a/airport/assets/bug.6072aa1f.svg b/airport/assets/bug.6072aa1f.svg new file mode 100644 index 0000000..05a150d --- /dev/null +++ b/airport/assets/bug.6072aa1f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/bug.c2b901ab.js b/airport/assets/bug.c2b901ab.js new file mode 100644 index 0000000..b28cbf7 --- /dev/null +++ b/airport/assets/bug.c2b901ab.js @@ -0,0 +1 @@ +const a="/airport/assets/bug.6072aa1f.svg";export{a as default}; diff --git a/airport/assets/build.cee08664.js b/airport/assets/build.cee08664.js new file mode 100644 index 0000000..bd303c7 --- /dev/null +++ b/airport/assets/build.cee08664.js @@ -0,0 +1 @@ +const s="/airport/assets/build.df478a2b.svg";export{s as default}; diff --git a/airport/assets/build.df478a2b.svg b/airport/assets/build.df478a2b.svg new file mode 100644 index 0000000..97c4688 --- /dev/null +++ b/airport/assets/build.df478a2b.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/button.04c839d6.svg b/airport/assets/button.04c839d6.svg new file mode 100644 index 0000000..904fddc --- /dev/null +++ b/airport/assets/button.04c839d6.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/button.d4ec432f.js b/airport/assets/button.d4ec432f.js new file mode 100644 index 0000000..ba25411 --- /dev/null +++ b/airport/assets/button.d4ec432f.js @@ -0,0 +1 @@ +const t="/airport/assets/button.04c839d6.svg";export{t as default}; diff --git a/airport/assets/car.df33b16b.png b/airport/assets/car.df33b16b.png new file mode 100644 index 0000000..13e1259 Binary files /dev/null and b/airport/assets/car.df33b16b.png differ diff --git a/airport/assets/cascader.1134cded.js b/airport/assets/cascader.1134cded.js new file mode 100644 index 0000000..f0b7a2c --- /dev/null +++ b/airport/assets/cascader.1134cded.js @@ -0,0 +1 @@ +const a="/airport/assets/cascader.86d686bd.svg";export{a as default}; diff --git a/airport/assets/cascader.86d686bd.svg b/airport/assets/cascader.86d686bd.svg new file mode 100644 index 0000000..e256024 --- /dev/null +++ b/airport/assets/cascader.86d686bd.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/chart.47c5fc09.js b/airport/assets/chart.47c5fc09.js new file mode 100644 index 0000000..24eb00f --- /dev/null +++ b/airport/assets/chart.47c5fc09.js @@ -0,0 +1 @@ +const a="/airport/assets/chart.a027cd52.svg";export{a as default}; diff --git a/airport/assets/chart.a027cd52.svg b/airport/assets/chart.a027cd52.svg new file mode 100644 index 0000000..27728fb --- /dev/null +++ b/airport/assets/chart.a027cd52.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/checkbox.c4f0703b.svg b/airport/assets/checkbox.c4f0703b.svg new file mode 100644 index 0000000..013fd3a --- /dev/null +++ b/airport/assets/checkbox.c4f0703b.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/checkbox.e0011079.js b/airport/assets/checkbox.e0011079.js new file mode 100644 index 0000000..8ae0044 --- /dev/null +++ b/airport/assets/checkbox.e0011079.js @@ -0,0 +1 @@ +const c="/airport/assets/checkbox.c4f0703b.svg";export{c as default}; diff --git a/airport/assets/clipboard.4cb84a95.js b/airport/assets/clipboard.4cb84a95.js new file mode 100644 index 0000000..d639354 --- /dev/null +++ b/airport/assets/clipboard.4cb84a95.js @@ -0,0 +1 @@ +const a="/airport/assets/clipboard.9c56eaf6.svg";export{a as default}; diff --git a/airport/assets/clipboard.9c56eaf6.svg b/airport/assets/clipboard.9c56eaf6.svg new file mode 100644 index 0000000..90923ff --- /dev/null +++ b/airport/assets/clipboard.9c56eaf6.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/code.4fee30a6.svg b/airport/assets/code.4fee30a6.svg new file mode 100644 index 0000000..5f9c5ab --- /dev/null +++ b/airport/assets/code.4fee30a6.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/code.e3552bf9.js b/airport/assets/code.e3552bf9.js new file mode 100644 index 0000000..ee48ccf --- /dev/null +++ b/airport/assets/code.e3552bf9.js @@ -0,0 +1 @@ +const e="/airport/assets/code.4fee30a6.svg";export{e as default}; diff --git a/airport/assets/color.36c00dbd.js b/airport/assets/color.36c00dbd.js new file mode 100644 index 0000000..870e9f3 --- /dev/null +++ b/airport/assets/color.36c00dbd.js @@ -0,0 +1 @@ +const a="/airport/assets/color.a2a1a4c2.svg";export{a as default}; diff --git a/airport/assets/color.a2a1a4c2.svg b/airport/assets/color.a2a1a4c2.svg new file mode 100644 index 0000000..44a81aa --- /dev/null +++ b/airport/assets/color.a2a1a4c2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/component.39aabf93.js b/airport/assets/component.39aabf93.js new file mode 100644 index 0000000..96d206b --- /dev/null +++ b/airport/assets/component.39aabf93.js @@ -0,0 +1 @@ +const o="/airport/assets/component.8f346aae.svg";export{o as default}; diff --git a/airport/assets/component.8f346aae.svg b/airport/assets/component.8f346aae.svg new file mode 100644 index 0000000..29c3458 --- /dev/null +++ b/airport/assets/component.8f346aae.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/count4.577debcf.png b/airport/assets/count4.577debcf.png new file mode 100644 index 0000000..aba0cf0 Binary files /dev/null and b/airport/assets/count4.577debcf.png differ diff --git a/airport/assets/dark.78ba5f53.svg b/airport/assets/dark.78ba5f53.svg new file mode 100644 index 0000000..f646bd7 --- /dev/null +++ b/airport/assets/dark.78ba5f53.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/airport/assets/dashboard.1cdb26b4.js b/airport/assets/dashboard.1cdb26b4.js new file mode 100644 index 0000000..3e2f409 --- /dev/null +++ b/airport/assets/dashboard.1cdb26b4.js @@ -0,0 +1 @@ +const a="/airport/assets/dashboard.742fa6e8.svg";export{a as default}; diff --git a/airport/assets/dashboard.742fa6e8.svg b/airport/assets/dashboard.742fa6e8.svg new file mode 100644 index 0000000..5317d37 --- /dev/null +++ b/airport/assets/dashboard.742fa6e8.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/data.01216890.js b/airport/assets/data.01216890.js new file mode 100644 index 0000000..17af6c7 --- /dev/null +++ b/airport/assets/data.01216890.js @@ -0,0 +1 @@ +import{_ as Ce,Y as we,r as c,u as he,a6 as ke,ae as Te,d as u,a8 as J,o as i,c as w,J as b,T as Y,f as t,e as l,w as a,H as S,I as D,k as m,i as Se,m as r,a9 as G,x,l as M,s as De,af as xe,ag as Ue,ah as Le,ai as B,aj as Ne,ak as Re}from"./index.79832097.js";import{g as $e,o as qe}from"./type.09636148.js";const Pe={class:"app-container"},Ie={key:0},Be={class:"dialog-footer"},Ee=we({name:"Data"}),Fe=Object.assign(Ee,{setup(Oe){const{proxy:_}=De(),{sys_normal_disable:U}=_.useDict("sys_normal_disable"),E=c([]),g=c(!1),L=c(!0),T=c(!0),N=c([]),F=c(!0),O=c(!0),R=c(0),$=c(""),j=c(""),z=c([]),K=he(),W=c([{value:"default",label:"\u9ED8\u8BA4"},{value:"primary",label:"\u4E3B\u8981"},{value:"success",label:"\u6210\u529F"},{value:"info",label:"\u4FE1\u606F"},{value:"warning",label:"\u8B66\u544A"},{value:"danger",label:"\u5371\u9669"}]),X=ke({form:{},queryParams:{pageNum:1,pageSize:10,dictName:void 0,dictType:void 0,status:void 0},rules:{dictLabel:[{required:!0,message:"\u6570\u636E\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],dictValue:[{required:!0,message:"\u6570\u636E\u952E\u503C\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],dictSort:[{required:!0,message:"\u6570\u636E\u987A\u5E8F\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}}),{queryParams:d,form:n,rules:Z}=Te(X);function ee(s){$e(s).then(o=>{d.value.dictType=o.data.dictType,j.value=o.data.dictType,y()})}function le(){qe().then(s=>{z.value=s.data})}function y(){L.value=!0,xe(d.value).then(s=>{E.value=s.rows,R.value=s.total,L.value=!1})}function te(){g.value=!1,q()}function q(){n.value={dictCode:void 0,dictLabel:void 0,dictValue:void 0,cssClass:void 0,listClass:"default",dictSort:0,status:"0",remark:void 0},_.resetForm("dataRef")}function P(){d.value.pageNum=1,y()}function ae(){const s={path:"/system/dict"};_.$tab.closeOpenPage(s)}function oe(){_.resetForm("queryRef"),d.value.dictType=j,P()}function ne(){q(),g.value=!0,$.value="\u6DFB\u52A0\u5B57\u5178\u6570\u636E",n.value.dictType=d.value.dictType}function de(s){N.value=s.map(o=>o.dictCode),F.value=s.length!=1,O.value=!s.length}function Q(s){q();const o=s.dictCode||N.value;Ue(o).then(h=>{n.value=h.data,g.value=!0,$.value="\u4FEE\u6539\u5B57\u5178\u6570\u636E"})}function se(){_.$refs.dataRef.validate(s=>{s&&(n.value.dictCode!=null?Le(n.value).then(o=>{B().removeDict(d.value.dictType),_.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),g.value=!1,y()}):Ne(n.value).then(o=>{B().removeDict(d.value.dictType),_.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),g.value=!1,y()}))})}function A(s){const o=s.dictCode||N.value;_.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u5B57\u5178\u7F16\u7801\u4E3A"'+o+'"\u7684\u6570\u636E\u9879\uFF1F').then(function(){return Re(o)}).then(()=>{y(),_.$modal.msgSuccess("\u5220\u9664\u6210\u529F"),B().removeDict(d.value.dictType)}).catch(()=>{})}function ue(){_.download("system/dict/data/export",{...d.value},`dict_data_${new Date().getTime()}.xlsx`)}return ee(K.params&&K.params.dictId),le(),(s,o)=>{const h=u("el-option"),I=u("el-select"),p=u("el-form-item"),V=u("el-input"),f=u("el-button"),H=u("el-form"),k=u("el-col"),ie=u("right-toolbar"),re=u("el-row"),v=u("el-table-column"),pe=u("el-tag"),ce=u("dict-tag"),me=u("el-table"),fe=u("pagination"),_e=u("el-input-number"),ve=u("el-radio"),be=u("el-radio-group"),ge=u("el-dialog"),C=J("hasPermi"),ye=J("loading");return i(),w("div",Pe,[b(l(H,{model:t(d),ref:"queryRef",inline:!0},{default:a(()=>[l(p,{label:"\u5B57\u5178\u540D\u79F0",prop:"dictType"},{default:a(()=>[l(I,{modelValue:t(d).dictType,"onUpdate:modelValue":o[0]||(o[0]=e=>t(d).dictType=e),style:{width:"200px"}},{default:a(()=>[(i(!0),w(S,null,D(t(z),e=>(i(),m(h,{key:e.dictId,label:e.dictName,value:e.dictType},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(p,{label:"\u5B57\u5178\u6807\u7B7E",prop:"dictLabel"},{default:a(()=>[l(V,{modelValue:t(d).dictLabel,"onUpdate:modelValue":o[1]||(o[1]=e=>t(d).dictLabel=e),placeholder:"\u8BF7\u8F93\u5165\u5B57\u5178\u6807\u7B7E",clearable:"",style:{width:"200px"},onKeyup:Se(P,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),l(p,{label:"\u72B6\u6001",prop:"status"},{default:a(()=>[l(I,{modelValue:t(d).status,"onUpdate:modelValue":o[2]||(o[2]=e=>t(d).status=e),placeholder:"\u6570\u636E\u72B6\u6001",clearable:"",style:{width:"200px"}},{default:a(()=>[(i(!0),w(S,null,D(t(U),e=>(i(),m(h,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(p,null,{default:a(()=>[l(f,{type:"primary",icon:"Search",onClick:P},{default:a(()=>[r("\u641C\u7D22")]),_:1}),l(f,{icon:"Refresh",onClick:oe},{default:a(()=>[r("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[Y,t(T)]]),l(re,{gutter:10,class:"mb8"},{default:a(()=>[l(k,{span:1.5},{default:a(()=>[b((i(),m(f,{type:"primary",plain:"",icon:"Plus",onClick:ne},{default:a(()=>[r("\u65B0\u589E")]),_:1})),[[C,["system:dict:add"]]])]),_:1},8,["span"]),l(k,{span:1.5},{default:a(()=>[b((i(),m(f,{type:"success",plain:"",icon:"Edit",disabled:t(F),onClick:Q},{default:a(()=>[r("\u4FEE\u6539")]),_:1},8,["disabled"])),[[C,["system:dict:edit"]]])]),_:1},8,["span"]),l(k,{span:1.5},{default:a(()=>[b((i(),m(f,{type:"danger",plain:"",icon:"Delete",disabled:t(O),onClick:A},{default:a(()=>[r("\u5220\u9664")]),_:1},8,["disabled"])),[[C,["system:dict:remove"]]])]),_:1},8,["span"]),l(k,{span:1.5},{default:a(()=>[b((i(),m(f,{type:"warning",plain:"",icon:"Download",onClick:ue},{default:a(()=>[r("\u5BFC\u51FA")]),_:1})),[[C,["system:dict:export"]]])]),_:1},8,["span"]),l(k,{span:1.5},{default:a(()=>[l(f,{type:"warning",plain:"",icon:"Close",onClick:ae},{default:a(()=>[r("\u5173\u95ED")]),_:1})]),_:1},8,["span"]),l(ie,{showSearch:t(T),"onUpdate:showSearch":o[3]||(o[3]=e=>G(T)?T.value=e:null),onQueryTable:y},null,8,["showSearch"])]),_:1}),b((i(),m(me,{data:t(E),onSelectionChange:de},{default:a(()=>[l(v,{type:"selection",width:"55",align:"center"}),l(v,{label:"\u5B57\u5178\u7F16\u7801",align:"center",prop:"dictCode"}),l(v,{label:"\u5B57\u5178\u6807\u7B7E",align:"center",prop:"dictLabel"},{default:a(e=>[e.row.listClass==""||e.row.listClass=="default"?(i(),w("span",Ie,x(e.row.dictLabel),1)):(i(),m(pe,{key:1,type:e.row.listClass=="primary"?"":e.row.listClass},{default:a(()=>[r(x(e.row.dictLabel),1)]),_:2},1032,["type"]))]),_:1}),l(v,{label:"\u5B57\u5178\u952E\u503C",align:"center",prop:"dictValue"}),l(v,{label:"\u5B57\u5178\u6392\u5E8F",align:"center",prop:"dictSort"}),l(v,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:a(e=>[l(ce,{options:t(U),value:e.row.status},null,8,["options","value"])]),_:1}),l(v,{label:"\u5907\u6CE8",align:"center",prop:"remark","show-overflow-tooltip":!0}),l(v,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180"},{default:a(e=>[M("span",null,x(s.parseTime(e.row.createTime)),1)]),_:1}),l(v,{label:"\u64CD\u4F5C",align:"center",width:"160","class-name":"small-padding fixed-width"},{default:a(e=>[b((i(),m(f,{link:"",type:"primary",icon:"Edit",onClick:Ve=>Q(e.row)},{default:a(()=>[r("\u4FEE\u6539")]),_:2},1032,["onClick"])),[[C,["system:dict:edit"]]]),b((i(),m(f,{link:"",type:"primary",icon:"Delete",onClick:Ve=>A(e.row)},{default:a(()=>[r("\u5220\u9664")]),_:2},1032,["onClick"])),[[C,["system:dict:remove"]]])]),_:1})]),_:1},8,["data"])),[[ye,t(L)]]),b(l(fe,{total:t(R),page:t(d).pageNum,"onUpdate:page":o[4]||(o[4]=e=>t(d).pageNum=e),limit:t(d).pageSize,"onUpdate:limit":o[5]||(o[5]=e=>t(d).pageSize=e),onPagination:y},null,8,["total","page","limit"]),[[Y,t(R)>0]]),l(ge,{title:t($),modelValue:t(g),"onUpdate:modelValue":o[14]||(o[14]=e=>G(g)?g.value=e:null),width:"500px","append-to-body":""},{footer:a(()=>[M("div",Be,[l(f,{type:"primary",onClick:se},{default:a(()=>[r("\u786E \u5B9A")]),_:1}),l(f,{onClick:te},{default:a(()=>[r("\u53D6 \u6D88")]),_:1})])]),default:a(()=>[l(H,{ref:"dataRef",model:t(n),rules:t(Z),"label-width":"80px"},{default:a(()=>[l(p,{label:"\u5B57\u5178\u7C7B\u578B"},{default:a(()=>[l(V,{modelValue:t(n).dictType,"onUpdate:modelValue":o[6]||(o[6]=e=>t(n).dictType=e),disabled:!0},null,8,["modelValue"])]),_:1}),l(p,{label:"\u6570\u636E\u6807\u7B7E",prop:"dictLabel"},{default:a(()=>[l(V,{modelValue:t(n).dictLabel,"onUpdate:modelValue":o[7]||(o[7]=e=>t(n).dictLabel=e),placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u6807\u7B7E"},null,8,["modelValue"])]),_:1}),l(p,{label:"\u6570\u636E\u952E\u503C",prop:"dictValue"},{default:a(()=>[l(V,{modelValue:t(n).dictValue,"onUpdate:modelValue":o[8]||(o[8]=e=>t(n).dictValue=e),placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u952E\u503C"},null,8,["modelValue"])]),_:1}),l(p,{label:"\u6837\u5F0F\u5C5E\u6027",prop:"cssClass"},{default:a(()=>[l(V,{modelValue:t(n).cssClass,"onUpdate:modelValue":o[9]||(o[9]=e=>t(n).cssClass=e),placeholder:"\u8BF7\u8F93\u5165\u6837\u5F0F\u5C5E\u6027"},null,8,["modelValue"])]),_:1}),l(p,{label:"\u663E\u793A\u6392\u5E8F",prop:"dictSort"},{default:a(()=>[l(_e,{modelValue:t(n).dictSort,"onUpdate:modelValue":o[10]||(o[10]=e=>t(n).dictSort=e),"controls-position":"right",min:0},null,8,["modelValue"])]),_:1}),l(p,{label:"\u56DE\u663E\u6837\u5F0F",prop:"listClass"},{default:a(()=>[l(I,{modelValue:t(n).listClass,"onUpdate:modelValue":o[11]||(o[11]=e=>t(n).listClass=e)},{default:a(()=>[(i(!0),w(S,null,D(t(W),e=>(i(),m(h,{key:e.value,label:e.label+"("+e.value+")",value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(p,{label:"\u72B6\u6001",prop:"status"},{default:a(()=>[l(be,{modelValue:t(n).status,"onUpdate:modelValue":o[12]||(o[12]=e=>t(n).status=e)},{default:a(()=>[(i(!0),w(S,null,D(t(U),e=>(i(),m(ve,{key:e.value,label:e.value},{default:a(()=>[r(x(e.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(p,{label:"\u5907\u6CE8",prop:"remark"},{default:a(()=>[l(V,{modelValue:t(n).remark,"onUpdate:modelValue":o[13]||(o[13]=e=>t(n).remark=e),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}}),Ke=Ce(Fe,[["__scopeId","data-v-67808186"]]);export{Ke as default}; diff --git a/airport/assets/data.01216890.js.gz b/airport/assets/data.01216890.js.gz new file mode 100644 index 0000000..bc49e86 Binary files /dev/null and b/airport/assets/data.01216890.js.gz differ diff --git a/airport/assets/data.b4891bdf.css b/airport/assets/data.b4891bdf.css new file mode 100644 index 0000000..07445d6 --- /dev/null +++ b/airport/assets/data.b4891bdf.css @@ -0,0 +1 @@ +.app-container[data-v-67808186]{padding:20px;background-color:#292c38;color:#fff;height:calc(100vh - 180px);overflow-y:auto;border-radius:10px} diff --git a/airport/assets/date-range.61256616.js b/airport/assets/date-range.61256616.js new file mode 100644 index 0000000..89e133f --- /dev/null +++ b/airport/assets/date-range.61256616.js @@ -0,0 +1 @@ +const a="/airport/assets/date-range.be0a664d.svg";export{a as default}; diff --git a/airport/assets/date-range.be0a664d.svg b/airport/assets/date-range.be0a664d.svg new file mode 100644 index 0000000..fda571e --- /dev/null +++ b/airport/assets/date-range.be0a664d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/date.1a1b54fa.js b/airport/assets/date.1a1b54fa.js new file mode 100644 index 0000000..b3ee60b --- /dev/null +++ b/airport/assets/date.1a1b54fa.js @@ -0,0 +1 @@ +const a="/airport/assets/date.47a735ed.svg";export{a as default}; diff --git a/airport/assets/date.47a735ed.svg b/airport/assets/date.47a735ed.svg new file mode 100644 index 0000000..52dc73e --- /dev/null +++ b/airport/assets/date.47a735ed.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/detail.2d6ac319.css b/airport/assets/detail.2d6ac319.css new file mode 100644 index 0000000..84f18c5 --- /dev/null +++ b/airport/assets/detail.2d6ac319.css @@ -0,0 +1 @@ +.app-container[data-v-7fae0292]{padding:20px;background-color:#292c38;color:#fff;min-height:100%;border-radius:10px}.detail-card[data-v-7fae0292]{min-height:calc(100vh - 150px);background-color:#292c38;border:1px solid #4c4f5f}.detail-card .card-header[data-v-7fae0292]{display:flex;justify-content:space-between;align-items:center}.detail-card .card-header span[data-v-7fae0292]{color:#fff;font-size:16px;font-weight:500}.detail-card .card-header .el-button[data-v-7fae0292]{border-radius:8px;font-size:15px;height:36px;min-width:80px;background:#347ae2;color:#fff;border:none}.detail-card .card-header .el-button[data-v-7fae0292]:hover{background:#2968c7}.detail-card[data-v-7fae0292] .el-card__header{background-color:#343744;border-bottom:1px solid #4c4f5f;color:#fff}.detail-card[data-v-7fae0292] .el-card__body{background-color:#292c38;color:#fff}.detail-card[data-v-7fae0292] .el-descriptions{background-color:#292c38}.detail-card[data-v-7fae0292] .el-descriptions .el-descriptions__header{background-color:#343744;color:#fff}.detail-card[data-v-7fae0292] .el-descriptions .el-descriptions__body{background-color:#292c38}.detail-card[data-v-7fae0292] .el-descriptions .el-descriptions__table,.detail-card[data-v-7fae0292] .el-descriptions .el-descriptions__cell{border-color:#4c4f5f}.detail-card[data-v-7fae0292] .el-descriptions__label{width:120px;font-weight:700;background-color:#343744!important;color:#96a0b5!important;border-color:#4c4f5f!important}.detail-card[data-v-7fae0292] .el-descriptions__content{background-color:#292c38!important;color:#fff!important;border-color:#4c4f5f!important}.detail-card[data-v-7fae0292] .el-tag.el-tag--success{background-color:#1f7a1f;border-color:#1f7a1f;color:#fff}.detail-card[data-v-7fae0292] .el-tag.el-tag--info{background-color:#606266;border-color:#606266;color:#fff} diff --git a/airport/assets/detail.2d6ac319.css.gz b/airport/assets/detail.2d6ac319.css.gz new file mode 100644 index 0000000..dce0967 Binary files /dev/null and b/airport/assets/detail.2d6ac319.css.gz differ diff --git a/airport/assets/detail.75f82394.css b/airport/assets/detail.75f82394.css new file mode 100644 index 0000000..30d9f50 --- /dev/null +++ b/airport/assets/detail.75f82394.css @@ -0,0 +1 @@ +.battery-overview-flex[data-v-474a481f]{display:grid;gap:24px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.left-panel[data-v-474a481f]{display:flex;padding:24px 32px;background-color:#343744;border-radius:8px}.battery-overview-grid[data-v-474a481f]{display:flex;flex-wrap:wrap;justify-content:space-between}.battery-block[data-v-474a481f]{background:#343744;border-radius:8px;width:calc(50% - 6px);margin-bottom:0;color:#fff;box-sizing:border-box}.block-title[data-v-474a481f]{display:flex;align-items:center;margin-bottom:10px}.block-no[data-v-474a481f]{background:#409eff;color:#fff;border-radius:4px;font-size:15px;font-weight:700;padding:2px 8px;margin-right:10px}.block-name[data-v-474a481f]{font-size:16px;font-weight:700;color:#fff;padding-bottom:2px;border-bottom:2px solid rgba(109,184,255,.5)}.block-list[data-v-474a481f]{list-style:none;padding:0;margin:0}.block-list li[data-v-474a481f]{font-size:14px;color:#e0e0e0;margin-bottom:6px;display:flex;align-items:center;flex-wrap:no-wrap}.item-no[data-v-474a481f]{color:#bdc1c6;font-size:13px;min-width:2em;display:inline-block}.item-label[data-v-474a481f]{color:#b0b8c9}.item-value[data-v-474a481f]{color:#fff}.right-panel[data-v-474a481f]{border-radius:8px;display:flex;flex-direction:column}.map-title[data-v-474a481f]{color:#4ea1ff;font-weight:700;margin-bottom:8px}.map-container[data-v-474a481f]{flex:1;background:#1e2233;border-radius:8px;min-height:320px;display:flex;align-items:center;justify-content:center}.map-placeholder[data-v-474a481f]{color:#888;font-size:18px}@media (max-width: 900px){.battery-overview-flex[data-v-474a481f]{grid-template-columns:1fr;gap:18px}.left-panel[data-v-474a481f]{margin-bottom:18px}.battery-overview-grid[data-v-474a481f]{flex-direction:column;gap:18px}}.fault-alarm[data-v-7224ea80]{background:#292C38;border-radius:8px;padding:20px;color:#fff}.search-area[data-v-7224ea80]{display:flex;align-items:center;margin-bottom:20px}.search-area .search-select[data-v-7224ea80]{width:150px;margin-right:10px}.search-area .search-buttons[data-v-7224ea80]{margin-right:20px;display:flex;gap:10px}.search-area .action-buttons[data-v-7224ea80]{margin-left:auto;display:flex;gap:10px}[data-v-7224ea80] .el-input__wrapper:hover{box-shadow:none!important}[data-v-7224ea80] .el-select{border:none!important;width:160px!important;--el-border-color-hover: #343744 !important;--el-border-color: #343744 !important}[data-v-7224ea80] .el-select__wrapper.is-focused{box-shadow:none!important}[data-v-7224ea80] .el-select__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;width:160px;font-size:15px;border:none!important}[data-v-7224ea80] .el-input__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;border:none!important;box-shadow:none!important}[data-v-7224ea80] .el-select__placeholder{color:#96a0b5!important}.custom-table[data-v-7224ea80]{background-color:#292c38!important;color:#fff;margin-bottom:20px;border-radius:4px;overflow:hidden}.custom-table[data-v-7224ea80] .el-loading-mask{background-color:#292c38b3!important}.custom-table[data-v-7224ea80] .el-table__empty-block{background-color:#292c38!important}.custom-table[data-v-7224ea80] .el-table__empty-text{color:#96a0b5!important}.custom-table[data-v-7224ea80] .el-table,.custom-table[data-v-7224ea80] .el-table__body{background-color:#292c38!important}.custom-table[data-v-7224ea80] .el-table__inner-wrapper:before{display:none}.custom-table[data-v-7224ea80] .el-table__header{border-top-left-radius:4px;border-top-right-radius:4px;overflow:hidden}.custom-table[data-v-7224ea80] .el-table__header-wrapper th{background-color:#343744!important;color:#96a0b5!important;font-weight:400;border-bottom:none}.custom-table[data-v-7224ea80] .el-table__header-wrapper tr th.el-table__cell:first-child,.custom-table[data-v-7224ea80] .el-table__header-wrapper tr th.el-table__cell:first-child .cell{border-top-left-radius:6px}.custom-table[data-v-7224ea80] .el-table__header-wrapper tr th.el-table__cell:last-child{border-top-right-radius:4px}.custom-table[data-v-7224ea80] .el-table__header-wrapper tr th.el-table__cell:last-child .cell{border-top-right-radius:4px}.custom-table[data-v-7224ea80] .el-table__header-wrapper .el-table__header th.el-table__cell{background-color:#343744!important;color:#96a0b5}.custom-table[data-v-7224ea80] .el-table__header-wrapper tr{background-color:#343744!important}.custom-table[data-v-7224ea80] .el-table__body-wrapper td{height:68px!important;background-color:#292c38;color:#fff;border-bottom:1px solid #4C4F5F}.custom-table[data-v-7224ea80] .el-table__body tr:hover>td{background:#2B3B5A!important}.status-danger[data-v-7224ea80]{color:#ff4d4f;font-weight:700}.status-success[data-v-7224ea80]{color:#00c48f;font-weight:700}.pagination-bar[data-v-7224ea80]{display:none}@media (max-width: 1200px){.search-area[data-v-7224ea80]{flex-wrap:wrap;gap:10px}.search-area .search-select[data-v-7224ea80],.search-area .search-buttons[data-v-7224ea80]{margin-right:0}.search-area .action-buttons[data-v-7224ea80]{margin-left:0;margin-top:10px}}@media (max-width: 768px){.search-area[data-v-7224ea80]{flex-direction:column;align-items:flex-start}.search-area .search-select[data-v-7224ea80]{width:100%;max-width:none}.search-area .search-buttons[data-v-7224ea80],.search-area .action-buttons[data-v-7224ea80]{width:100%;margin-top:10px}}.track-playback-content[data-v-3ddf4e12]{display:flex;gap:20px;flex:1}.left-list[data-v-3ddf4e12]{width:25%;border-radius:8px;padding:16px 8px;display:flex;flex-direction:column}.search-input[data-v-3ddf4e12]{margin-bottom:10px}.task-list[data-v-3ddf4e12]{max-height:400px}.task-item[data-v-3ddf4e12]{position:relative;padding:16px 16px 14px;border-radius:8px;margin-bottom:14px;cursor:pointer;background:#343744;color:#fff;border:2px solid transparent;transition:border .2s,box-shadow .2s;box-sizing:border-box}.task-item.active[data-v-3ddf4e12]{border:2px solid #347ae2;box-shadow:0 2px 8px #347ae214}.corner-triangle[data-v-3ddf4e12]{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAhCAYAAAC1ONkWAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAInSURBVHgBzZe/SxthGMe/z10saSGQUlqwQ6NLwU6mxqWLOrt06NChUIcOHZUONe1gWhAVBx0dBPUPEF2c1U1EJZOCSxIHBUEUxB9o7l7fJ3jhlNzl7nKX188Qcu/7cu+H55737nkoM1wagUY5KIXyGpnTm6OpheoI/3RlC59J0+cgkIRCCKKoG2bfxkR7kazB7j+FTlPoS0Rog0JY7vbSTJN9sPN3oU3X9FXVclIvp9kv8zKEhmn0ASIPlQjRS05zmb8HUzLnBqEIzWlia/TdEEyRQ4S8fRlDb0cciTh5F2O2xlP/ZFiHEJHUzI83mPz2Gj0dz+FLrCI3lpqGIfOOcIaQsKRakzr2j26wvncF32IVuYn2tXLZSAuBYr21ibiGr58SctMYvEj9nD3G+bUIJsZYJ7aeXM+HOH71J+83jwWS8iVWlXtmpOXfZac167vXctNbKaE/kLNLHZ6WXaUYx9dFPdy+sfw4WeJ9a4uUMPB/8QQjX149kDo6M1zvH1jMj5yFV6mGxZju4cKA4AKgjpwfqVDEKnIuBQDL9X98gZWdC9ecikSMCbsA8HUq3Qi7AAgtYna6sqV5IvqOBggtYna2x1IDjRYAkUTMopF+IlIxJmg/EbkYE+TENkWM8SsXSfLXoloACKx5Wd+0iNnx0k80LWJ2vPQTSiJmkcmWBkE0VWtOqRjjVAAoF2NqnVglOfaYWgXAkxBjWK7cYko5535COfyNvQOnfvT9bik6eAAAAABJRU5ErkJggg==) no-repeat 100% 100%;position:absolute;right:0;top:0;width:38px;height:33px;z-index:2}.task-row1[data-v-3ddf4e12]{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;margin-bottom:4px}.task-row1 .dot[data-v-3ddf4e12]{width:8px;height:8px;background:#347ae2;border-radius:50%;display:inline-block;margin-right:2px}.task-row1 .task-no[data-v-3ddf4e12]{color:#347ae2;font-weight:700}.task-row1 .task-name[data-v-3ddf4e12]{color:#fff}.task-row2[data-v-3ddf4e12]{font-size:13px;color:#b0b8c9;margin-bottom:6px}.task-row3[data-v-3ddf4e12]{display:flex;align-items:center;gap:8px}.task-row3 .label[data-v-3ddf4e12]{font-size:13px;color:#fff}.task-row3 .point[data-v-3ddf4e12]{padding:0 5px;border-radius:6px;font-size:13px;font-weight:500;background:transparent;border:1.5px solid}.task-row3 .point.start[data-v-3ddf4e12]{border-color:#347ae2;background:rgba(52,122,226,.2);color:#347ae2}.task-row3 .point.end[data-v-3ddf4e12]{border-color:#27ae60;background:rgba(39,174,96,.2);color:#27ae60}.task-row3 .arrow[data-v-3ddf4e12]{color:#b0b8c9;font-size:15px;font-weight:700}.right-map[data-v-3ddf4e12]{flex:1;border:1px solid #343744;border-radius:8px;padding:20px;display:flex;flex-direction:column;min-width:0}.map-container[data-v-3ddf4e12]{flex:1;border-radius:8px;min-height:400px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.map-img-placeholder[data-v-3ddf4e12]{width:100%;height:100%;border-radius:12px}.track-detail-panel[data-v-3ddf4e12]{position:absolute;top:24px;left:24px;min-width:520px;background:rgba(41,44,56,.8);border-radius:10px;box-shadow:0 2px 12px #0000002e;padding:18px 28px 18px 20px;z-index:10}.track-detail-panel .panel-header[data-v-3ddf4e12]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.track-detail-panel .panel-header .header-left[data-v-3ddf4e12]{display:flex;align-items:center;gap:10px}.track-detail-panel .panel-header .header-left .dot[data-v-3ddf4e12]{width:10px;height:10px;background:#347ae2;border-radius:50%;display:inline-block}.track-detail-panel .panel-header .header-left .panel-title[data-v-3ddf4e12]{font-size:16px;font-weight:700;color:#4ea1ff}.track-detail-panel .vehicle-stats-row[data-v-3ddf4e12]{display:flex;align-items:flex-start;gap:20px;margin-bottom:12px}.track-detail-panel .vehicle-stats-row .vehicle-info[data-v-3ddf4e12]{display:flex;flex-direction:column;align-items:flex-start;padding:3px 10px}.track-detail-panel .vehicle-stats-row .vehicle-info .vehicle-number[data-v-3ddf4e12]{font-size:18px;font-weight:700;color:#fff;line-height:1.2;margin-bottom:2px}.track-detail-panel .vehicle-stats-row .vehicle-info .vehicle-label[data-v-3ddf4e12]{font-size:12px;color:#8a8e99;line-height:1}.track-detail-panel .vehicle-stats-row .stat-item[data-v-3ddf4e12]{display:flex;flex-direction:column;align-items:flex-start}.track-detail-panel .vehicle-stats-row .stat-item .stat-value[data-v-3ddf4e12]{font-size:16px;font-weight:700;color:#fff;line-height:1.2;margin-bottom:2px}.track-detail-panel .vehicle-stats-row .stat-item .stat-label[data-v-3ddf4e12]{font-size:12px;color:#8a8e99;line-height:1}.track-detail-panel .vehicle-stats-row .stat-item.warn .stat-value[data-v-3ddf4e12]{color:#e34d59}.track-detail-panel .vehicle-stats-row .stat-item.prewarn .stat-value[data-v-3ddf4e12]{color:#f7b500}.track-detail-panel .vehicle-stats-row .current-time[data-v-3ddf4e12]{display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(52,122,226,.15);border-radius:6px;padding:8px 12px;min-width:80px;margin-left:auto}.track-detail-panel .vehicle-stats-row .current-time .time-value[data-v-3ddf4e12]{font-size:16px;font-weight:700;color:#4ea1ff;line-height:1}.track-detail-panel .progress-row[data-v-3ddf4e12]{display:flex;align-items:center;gap:16px;margin-bottom:8px}.track-detail-panel .progress-row .progress-bar-wrap[data-v-3ddf4e12]{position:relative;height:8px;background:transparent;cursor:pointer;user-select:none;flex:1}.track-detail-panel .progress-row .speed-select .el-dropdown-link[data-v-3ddf4e12]{color:#4ea1ff;cursor:pointer;font-weight:700;font-size:14px}.track-detail-panel .time-row[data-v-3ddf4e12]{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#b0b8c9}.track-detail-panel .time-row .start-time[data-v-3ddf4e12],.track-detail-panel .time-row .end-time[data-v-3ddf4e12]{font-size:13px;color:#b0b8c9}.track-detail-panel .progress-bar-bg[data-v-3ddf4e12]{position:absolute;left:0;top:0;right:0;bottom:0;background:#343744;border-radius:4px}.track-detail-panel .progress-bar-fg[data-v-3ddf4e12]{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,#347ae2,#4ea1ff);border-radius:4px;height:8px;z-index:1}.track-detail-panel .progress-thumb[data-v-3ddf4e12]{position:absolute;top:50%;transform:translate(-50%,-50%);width:16px;height:16px;background:#fff;border:3px solid #347ae2;border-radius:50%;z-index:2;cursor:pointer;box-shadow:0 2px 8px #347ae21f}.track-detail-panel .progress-flag[data-v-3ddf4e12]{position:absolute;top:-16px;z-index:3;width:16px;height:20px;display:flex;align-items:flex-end;justify-content:center;pointer-events:auto}.track-detail-panel .progress-flag .flag-icon[data-v-3ddf4e12]{position:relative;width:2px;height:18px;background:#e34d59}.track-detail-panel .progress-flag .flag-icon[data-v-3ddf4e12]:before{content:"";position:absolute;left:0;top:0;width:2px;height:18px;background:#e34d59}.track-detail-panel .progress-flag .flag-icon[data-v-3ddf4e12]:after{content:"";position:absolute;left:2px;top:2px;width:0;height:0;border-left:10px solid #e34d59;border-top:3px solid transparent;border-bottom:3px solid transparent;clip-path:polygon(0 0,80% 0,70% 50%,80% 100%,0 100%)}.track-detail-panel .progress-tooltip[data-v-3ddf4e12]{position:absolute;top:-32px;background:#23263a;color:#fff;font-size:12px;padding:2px 8px;border-radius:4px;white-space:nowrap;box-shadow:0 2px 8px #347ae21a;z-index:10;pointer-events:none}.chart-container[data-v-a16c38e1]{flex:1;background:#343744;border-radius:8px;padding:16px;display:flex;flex-direction:column;height:200px}.chart-header[data-v-a16c38e1]{display:flex;justify-content:flex-start;margin-bottom:8px;align-items:center}.chart-title[data-v-a16c38e1]{color:#4ea1ff;font-size:14px;font-weight:500}.chart-center-legend[data-v-a16c38e1]{display:flex;justify-content:center;align-items:center;gap:12px;font-size:12px;color:#96a0b5;margin-bottom:12px}.legend-item[data-v-a16c38e1]{display:flex;align-items:center;gap:4px}.legend-color[data-v-a16c38e1]{width:10px;height:10px;border-radius:2px}.chart-time-span[data-v-a16c38e1]{color:#347ae2;cursor:pointer;margin-left:12px}.chart-body[data-v-a16c38e1]{flex:1}.chart-container[data-v-d0b87f83]{flex:1;background:#343744;border-radius:8px;padding:16px;display:flex;flex-direction:column;height:200px}.chart-header[data-v-d0b87f83]{display:flex;justify-content:flex-start;margin-bottom:8px;align-items:center}.chart-title[data-v-d0b87f83]{color:#4ea1ff;font-size:14px;font-weight:500}.chart-center-legend[data-v-d0b87f83]{display:flex;justify-content:center;align-items:center;gap:24px;font-size:12px;color:#96a0b5;margin-bottom:12px}.legend-item[data-v-d0b87f83]{display:flex;align-items:center;gap:6px}.legend-dot[data-v-d0b87f83]{width:8px;height:8px;border-radius:50%}.chart-body[data-v-d0b87f83]{flex:1}.charging-stats[data-v-812ae25e]{padding:0;color:#fff}.stats-container[data-v-812ae25e]{display:flex;justify-content:space-between;gap:16px;margin-bottom:10px}.stats-cards[data-v-812ae25e]{display:flex;flex-direction:column;justify-content:space-between;gap:16px;width:200px}.stat-card[data-v-812ae25e]{background:#343744;border-radius:8px;padding:16px;display:flex;align-items:center;gap:16px}.stat-icon[data-v-812ae25e]{width:48px;height:48px;border-radius:8px;background:#343744;color:#4ea1ff;display:flex;align-items:center;justify-content:center}.circle-icon[data-v-812ae25e]{width:40px;height:40px;border-radius:50%;background:#343744;color:#4ea1ff;display:flex;align-items:center;justify-content:center;font-size:16px}.stat-content[data-v-812ae25e]{display:flex;flex-direction:column}.stat-title[data-v-812ae25e]{color:#96a0b5;font-size:14px;margin-bottom:8px}.stat-value[data-v-812ae25e]{font-size:24px;font-weight:700;color:#fff}.charts-area[data-v-812ae25e]{flex:1;display:flex;gap:16px}.filter-bar[data-v-812ae25e]{margin-bottom:16px;display:flex;align-items:center}.date-range[data-v-812ae25e]{display:flex;align-items:center;gap:12px}.date-label[data-v-812ae25e]{font-size:16px;font-weight:500}.date-picker[data-v-812ae25e]{width:300px}.filter-btn[data-v-812ae25e]{background:#347AE2;border-color:#347ae2}.reset-btn[data-v-812ae25e]{background:#343744;border-color:#343744;color:#96a0b5}.custom-table[data-v-812ae25e]{background-color:#292c38!important;color:#fff;margin-bottom:20px;border-radius:4px;overflow:hidden}.custom-table[data-v-812ae25e] .el-loading-mask{background-color:#292c38b3!important}.custom-table[data-v-812ae25e] .el-table__empty-block{background-color:#292c38!important}.custom-table[data-v-812ae25e] .el-table__empty-text{color:#96a0b5!important}.custom-table[data-v-812ae25e] .el-table,.custom-table[data-v-812ae25e] .el-table__body{background-color:#292c38!important}.custom-table[data-v-812ae25e] .el-table__inner-wrapper:before{display:none}.custom-table[data-v-812ae25e] .el-table__header{border-top-left-radius:4px;border-top-right-radius:4px;overflow:hidden}.custom-table[data-v-812ae25e] .el-table__header-wrapper th{background-color:#343744!important;color:#96a0b5!important;font-weight:400;border-bottom:none}.custom-table[data-v-812ae25e] .el-table__header-wrapper tr th.el-table__cell:first-child,.custom-table[data-v-812ae25e] .el-table__header-wrapper tr th.el-table__cell:first-child .cell{border-top-left-radius:6px}.custom-table[data-v-812ae25e] .el-table__header-wrapper tr th.el-table__cell:last-child{border-top-right-radius:4px}.custom-table[data-v-812ae25e] .el-table__header-wrapper tr th.el-table__cell:last-child .cell{border-top-right-radius:4px}.custom-table[data-v-812ae25e] .el-table__header-wrapper .el-table__header th.el-table__cell{background-color:#343744!important;color:#96a0b5}.custom-table[data-v-812ae25e] .el-table__header-wrapper tr{background-color:#343744!important}.custom-table[data-v-812ae25e] .el-table__body-wrapper td{height:68px!important;background-color:#292c38;color:#fff;border-bottom:1px solid #4C4F5F}.custom-table[data-v-812ae25e] .el-table__body tr:hover>td{background:#2B3B5A!important}[data-v-812ae25e] .el-date-editor{--el-datepicker-border-color: #343744;--el-datepicker-inner-border-color: #343744;--el-datepicker-inrange-bg-color: #343744}[data-v-812ae25e] .el-date-editor .el-input__wrapper{background-color:#343744!important;box-shadow:none!important}[data-v-812ae25e] .el-date-editor .el-input__inner{color:#fff!important}[data-v-812ae25e] .el-date-editor .el-range-separator{color:#96a0b5!important}.video-monitoring[data-v-d78e640f]{border-radius:8px;color:#fff}.video-monitoring-content[data-v-d78e640f]{padding-bottom:10px}.one-view .video-img[data-v-d78e640f]{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:8px;background:#1e2233}.two-view[data-v-d78e640f]{display:flex;gap:18px}.two-view .video-img[data-v-d78e640f]{flex:1;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:8px;background:#1e2233}.six-view[data-v-d78e640f]{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.six-view .video-img[data-v-d78e640f]{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:8px;background:#1e2233}.vehicle-detail-content[data-v-aa7c6b3c]{width:100%;height:100%;display:flex;flex-direction:column;border-radius:8px;overflow:hidden}.detail-header[data-v-aa7c6b3c]{display:flex;margin-bottom:20px;border-radius:8px;background-color:#292c38;padding:24px;justify-content:flex-start;gap:20px;align-items:center;position:relative}.back-button[data-v-aa7c6b3c]{position:absolute;top:12px;right:12px;z-index:10}.custom-back-btn[data-v-aa7c6b3c]{background-color:#347ae233!important;border-color:#347ae2!important;color:#fff!important}.custom-back-btn[data-v-aa7c6b3c]:hover{background-color:#347ae24d!important}.back-icon[data-v-aa7c6b3c]{margin-right:4px}.vehicle-image[data-v-aa7c6b3c]{width:255px;height:154px;border-radius:8px;background-color:#1e2233;display:flex;justify-content:center;align-items:center}.vehicle-image img[data-v-aa7c6b3c]{width:100%;height:100%;object-fit:cover}.vehicle-info-panel[data-v-aa7c6b3c]{flex:1;display:flex;justify-content:center}.info-bottom-row[data-v-aa7c6b3c]{width:100%}.info-top-row[data-v-aa7c6b3c]{display:flex;flex-direction:column;align-items:center;margin-top:10px}.car-icon[data-v-aa7c6b3c]{width:48px;height:48px;margin-right:10px}.info-title[data-v-aa7c6b3c]{font-size:28px;font-weight:700;color:#fff;margin-bottom:8px}.info-status-row[data-v-aa7c6b3c]{display:flex;align-items:center;gap:0;margin-bottom:16px;font-size:15px}.status-item[data-v-aa7c6b3c]{display:flex;align-items:center}.status-label[data-v-aa7c6b3c]{color:#b0b8c9;margin-right:2px}.status-value[data-v-aa7c6b3c]{margin-right:2px;color:#fff}.status-task[data-v-aa7c6b3c]{color:#409eff}.status-online[data-v-aa7c6b3c]{color:#00c48f}.status-signal[data-v-aa7c6b3c]{background:#4ea1ff}.status-battery[data-v-aa7c6b3c]{background:#00c48f}.status-sep[data-v-aa7c6b3c]{color:#b0b8c9;margin:0 12px;font-weight:400;font-size:15px}.dot[data-v-aa7c6b3c]{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px;vertical-align:middle}.info-cards-row[data-v-aa7c6b3c]{display:flex;gap:10px}.info-card[data-v-aa7c6b3c]{display:flex;align-items:center;justify-content:center;background:#343744;border-radius:8px;padding:5px 10px}.card-icon[data-v-aa7c6b3c]{width:20px;height:20px;margin-right:12px;display:flex;align-items:center;justify-content:center}.card-icon img[data-v-aa7c6b3c]{width:100%;height:100%;object-fit:contain}.card-content[data-v-aa7c6b3c]{display:flex;flex-direction:column;justify-content:center}.card-title[data-v-aa7c6b3c]{font-size:14px;color:#b0b8c9;margin-bottom:2px}.card-value[data-v-aa7c6b3c]{font-size:12px;color:#fff}.detail-tabs[data-v-aa7c6b3c]{position:relative;flex:1;padding:12px 24px;background-color:#292c38;border-radius:8px;min-height:0;overflow:auto}.split-btns[data-v-aa7c6b3c]{position:absolute;top:0px;right:32px;transform:translateY(80%);z-index:10;display:flex;gap:8px}.custom-tabs-label[data-v-aa7c6b3c]{display:flex;align-items:center;gap:4px}.custom-tabs-label img[data-v-aa7c6b3c]{width:16px;height:16px;filter:brightness(0) invert(1)}[data-v-aa7c6b3c] .el-tabs{--el-tabs-header-background-color: #1e2233;--el-tabs-border-color: #303850}[data-v-aa7c6b3c] .el-tabs__header{margin-bottom:20px;border-bottom:none}[data-v-aa7c6b3c] .el-tabs__item{color:#f0f0f0}[data-v-aa7c6b3c] .el-tabs__item.is-active{color:#409eff}[data-v-aa7c6b3c] .el-tabs__item.is-active .custom-tabs-label img{filter:brightness(0) saturate(100%) invert(46%) sepia(85%) saturate(1731%) hue-rotate(199deg) brightness(100%) contrast(101%)}[data-v-aa7c6b3c] .el-tabs__nav-wrap:after{height:1px;background-color:#4c4f5f}@media (max-width: 992px){.detail-header[data-v-aa7c6b3c]{flex-direction:column;align-items:flex-start}.vehicle-image[data-v-aa7c6b3c]{margin-right:0;margin-bottom:16px}.info-cards-row[data-v-aa7c6b3c]{flex-wrap:wrap}} diff --git a/airport/assets/detail.75f82394.css.gz b/airport/assets/detail.75f82394.css.gz new file mode 100644 index 0000000..a5046c9 Binary files /dev/null and b/airport/assets/detail.75f82394.css.gz differ diff --git a/airport/assets/detail.9a0c9aad.js b/airport/assets/detail.9a0c9aad.js new file mode 100644 index 0000000..29d44a9 --- /dev/null +++ b/airport/assets/detail.9a0c9aad.js @@ -0,0 +1 @@ +import{_ as D,r as u,C as k,d as n,a8 as B,o as p,c as C,J as w,k as N,w as e,u as S,a as V,l as f,e as t,m as o,x as s,p as q,q as A}from"./index.79832097.js";import{a as R}from"./intersection.55727948.js";const T=i=>(q("data-v-7fae0292"),i=i(),A(),i),z={class:"app-container"},E={class:"card-header"},J=T(()=>f("span",null,"\u8DEF\u53E3\u8BE6\u60C5",-1)),M={__name:"detail",setup(i){const r=S(),v=V(),d=u(!1),a=u({});function m(){v.go(-1)}function g(){const _=r.params.id||r.query.id;if(!_){console.error("\u672A\u627E\u5230\u8DEF\u53E3ID");return}d.value=!0,R(_).then(c=>{console.log("\u83B7\u53D6\u8DEF\u53E3\u8BE6\u60C5\u6570\u636E:",c),a.value=c.data||c,d.value=!1}).catch(c=>{console.error("\u83B7\u53D6\u8DEF\u53E3\u8BE6\u60C5\u5931\u8D25:",c),d.value=!1})}return k(()=>{g()}),(_,c)=>{const b=n("el-button"),l=n("el-descriptions-item"),h=n("el-tag"),I=n("el-descriptions"),y=n("el-card"),x=B("loading");return p(),C("div",z,[w((p(),N(y,{class:"detail-card"},{header:e(()=>[f("div",E,[J,t(b,{onClick:m,type:"primary",size:"small"},{default:e(()=>[o("\u8FD4\u56DE")]),_:1})])]),default:e(()=>[t(I,{column:1,border:""},{default:e(()=>[t(l,{label:"\u8DEF\u53E3ID"},{default:e(()=>[o(s(a.value.id),1)]),_:1}),t(l,{label:"\u8DEF\u53E3\u540D\u79F0"},{default:e(()=>[o(s(a.value.intersectionName),1)]),_:1}),t(l,{label:"\u8DEF\u53E3\u7F16\u53F7"},{default:e(()=>[o(s(a.value.intersectionId),1)]),_:1}),t(l,{label:"\u7ECF\u5EA6"},{default:e(()=>[o(s(a.value.longitude),1)]),_:1}),t(l,{label:"\u7EAC\u5EA6"},{default:e(()=>[o(s(a.value.latitude),1)]),_:1}),t(l,{label:"\u533A\u57DF\u7F16\u7801"},{default:e(()=>[o(s(a.value.areaCode),1)]),_:1}),t(l,{label:"\u63CF\u8FF0"},{default:e(()=>[o(s(a.value.description),1)]),_:1}),t(l,{label:"\u72B6\u6001"},{default:e(()=>[t(h,{type:a.value.isActive?"success":"info"},{default:e(()=>[o(s(a.value.isActive?"\u5DF2\u6FC0\u6D3B":"\u672A\u6FC0\u6D3B"),1)]),_:1},8,["type"])]),_:1}),t(l,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:e(()=>[o(s(a.value.createdTime),1)]),_:1})]),_:1})]),_:1})),[[x,d.value]])])}}},G=D(M,[["__scopeId","data-v-7fae0292"]]);export{G as default}; diff --git a/airport/assets/detail.9a0c9aad.js.gz b/airport/assets/detail.9a0c9aad.js.gz new file mode 100644 index 0000000..c61136e Binary files /dev/null and b/airport/assets/detail.9a0c9aad.js.gz differ diff --git a/airport/assets/detail.dbd9843f.js b/airport/assets/detail.dbd9843f.js new file mode 100644 index 0000000..8a1f34d --- /dev/null +++ b/airport/assets/detail.dbd9843f.js @@ -0,0 +1,52 @@ +import{_ as Or,r as nt,C as en,D as mp,v as Ve,o as gt,c as mt,l as E,H as mi,I as yi,x as pt,j as la,f as Ft,L as ln,p as un,q as hn,d as Pt,e as H,w as lt,m as Le,G as yp,J as dh,T as ph,a1 as gh,a0 as Gs,a3 as T0,Q as ka,O as yr,a4 as ou,S as _p,a5 as C0,n as Vs,y as D0}from"./index.79832097.js";import{g as M0}from"./manager.4e506c5f.js";const I0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAu5SURBVHgBxVlrcFVXFV7r3JsQEiDBoTxq64SptRUoCf7RqbUN+BgEpgYU/dEZBWttqdOW9o8zjja5P5zWYUbI2If1BagzYltKaDu2nYokUpHpOCQtVKvySDtWEGwTCST3uZdrP9be+1wCIWDtzuOee87Z+3xrrW+99kH4H4w1m6kJGvLtpLCFvzYTUCsQNilSTUCgf/UYUEoNAGX7gaifFPRuWzt5AC5xIFzkMKCn5NfzEjeBgjZ9jgxYsp9kTxjwVgjige4A3P39hJlNxZF8b/e66QNwEWPCAqzZQU1JubheAdzNX5tAESpE/se/FjEKeD0UfyL/KCeVvsyfSGlBGAluKeUzue51E7PKhAT46hOFTkK8m584nYhEswaIBsaoUEXnRds8h7SgAjYGbo2mp1rL8UHuydsaOy8U0wUJsGbHaHNSyezgR7Q47aLXpH6kUg6cUWWgisPGRxgJbOErawURBDz1zOcAVdTiC6FVMt4Nt20fXZOoTB8v3KrVDBGP9Z/WOoJoMtK8N49ywqBTu+ETQgzeaV/O8XrNmCR97Y8Nto+H77wCfI0pU6HMZl680T6MwkUniKaMSoG3KhdVizugpwmF807tgYbxNQ4ShDvaHx3svCgBNN/ZOTus6Y25SZ6qDCYUywc6CL+dEEEQEnp5Swj3lZcT42jldGQM1rHi4XMLMaYP3PpkoV0BPuU1DZ6bIBy3iuNPJcxwGL0FnH9E5wzlwEquonmQCq/MMGMWhJRzY2bN03dO2zquAHewwxZV0seJpsksazWruc8LW8cFo3QJmSTyCVCIY71ynhw0Ci6WOk2Td2YOBuTxSDSTeTyGMgksqnbssyhUVJndPLFJzG8dTnhuqMBBx4jiHiZUqqIReAfFCIRolebPTnDmFIwikbvPCY1WZz4ysUCNxTI8VY03JYDmPd/dHB7mtOGpbTnkaOSih6g1PTRFiIIvi8bnzc7Ao19qwNyyesgtr48EFmNaKyuiAAEtnVikRct+8HZH/BxvMh3rUWWOWIeM+QmG59755ClWTc7sjvbKUUjooBVsz9HMBsQ7b6yD+SyAjBPDCm7/1bCFIet5f4gsKT7lqDRSSeb23Dt9SH/JelOoTEfMQacZjEU1CUsUrrUi3znWI+JZ8/R69bUAy+fX4vJ5NVBfG5bb/bcS/HTvKHhrmoAA4l/V/EdfiQA01iXqHv7MeQto7UM5OYJiR/LxW1Jpyszkk1Mwk6e9PJjBt11dQ6tba/GyKQH4wX+W4fH9BTh4rAIuj0g4RkloFC3mE6C2JNqsz8YaKkLGWCFrtQ9tNteAL8bcodeqieE82dQ8JtSJQpyfWq2bpDxvVoIMXPPdIz9TIPh1XwGePVAUAWVtlJVsRqfI5OQt70oXyRhNtWCtkLWLZe5xIQZjZ9QWUeDiPXmDoYRGFJU7gRtqE1jdUoOfZbrE4/H9RXrmtSKMFEKWFnNa8thiLw7BzsDW5JgQuHpLLMNT2rQAaOhTwqNGwzKRqp3Vl8A2iel7IifVN36hpQaWVfH8teMVeqh3FLWzeuumlrdUi6MdiJUJfHluwrjXrJZJGYWWktPTs5DnZiRjzBQD9WYWsO7IuAnaLGsePm92Aus+XgcxzzXgh3+fZ56XESSeOxbqbLjg8izEOUCPPx4papr59ELWQbxVRPO24rAVbqYy9XNZyGZaDHjRRtqMEEoCQ0Z3YFI0zZiSwIyGBJ/oLxphORLxB+HLb5RhpGiSEUoj4zhtKLHkQzW45JraFM20UBt/ezoI6/3ClBZO+c7icg2pNctPbpUM6sH7qBKEAO8DJDfhyeEK9AxX4pICI5dwiU6iQahrbN6wqt71ehGue38WPnltLRw+WQfdfXm/jqEVKQjZGtDPJZN3mrN8vVkk8qHSxWNfcfLDPzwrgZuuyoYoEcwfORfERJVLGGpte8+Cy0N02rTrDMycmsADK6fA1z9RD6/+owRHTlZS96ccX/sIgqUBQCt+eVteEVW3ey6iOgfT/O5aORnejbHioXeMoHNnZOjBlVPxNIfbb24/BcdPVcTbox7bVqrGwQ1YHExs/A75y0qrUl3T0mtr4N0aknYOnyjj9188DbOmJXDfpxukiAydG0r9BRgoT9OzynPX25zislmrYevLBRh4uwLrbphkFntkTx52/70kCOAbN06GtqttVbLqR6dAKKNX7L7DNHOG612/GzHX1i9pMJy380PU23u4yD4wCu2LJsMtH6uHX+wbNcoM/XfIO+COE0Y5JEnDPFQZWX1pSy6TpbUmC7i6JbpMYakxtK2rEKi630cMMw5r/vPQljCg9ZaN81xDGgmzbo5W2xCjaNJfVIhg6MKq19JYaMwwpgUcAyVQVb9EY0j1m7ved86dEaGMQmGE3V+y+cBk7zcSoqRfsiNazknFBlY5JLhS6L05lVdKdJ/XEqXBU3Q8zogNG2ohjFo2fTiAt/xyZCPft94kPpuz/c1i3XU31EHbB7Pw/xwvHMzDhueHjSipHkFIooyauhLC8iuhs3LhlVyd45tyeE8GxeAh5APHUFQV6k9qi5Vuif/kK2owdTfRe4TcDQzgqzcADLakDL3JlrXcmiH2mNOuzpCtj7O8MBq6YPvZ3jx3VXlzPNHxr1MVeKz3DPyw5wwc/09lzHsUxHvAvluVZNvfk5szkHWnevhcmzkOM0LNOwaHHnxhBI6+UzGR6si/K/TdmxsQJjByTw/DYZ6nn3H4ZBk3rG5MXcc4vEoBGWIL8MxN+pIRoK5c7BrF7HpWeKNVujT2dhNL968HuBXUE+9qsyXFUU5skvsOvlUKtQ0nK0n78fYKurXu+0yDOXfoZNnV5AD9bxY98A3PDZv7jp9SvsU01tBlLob8VCnne70AmkZf3HpmE+8Id5r4Knp3zQv3sX7i4mtqYMGcLKy4bhI882rB8PPmhZPMdbYE7PpLAYhi5TlHdLT81LxaWHhFDaxcVIc79ufN/FUfqTfzD50ow/MHRn1jj1L9ikJMH2P8Ysu+3NwBL4AeRVXsqgG2glJNEE0T4FKx7v5ryQhw6/V18NFmM900KHrs7M9LuZzOHxTWePHPBWIBcF3bFLj+qknG3xZeaWut7X8a8fcBud0/YRD4LUsolQs5we03aV7f+b38vPZv1YFt8EG0BlHTrf9p6uhhuioug/Wfbth/vi9Pzx3Mh27OPgydHr0FD3GpoLORFmJ2YwZm8Z+uQH/cexqefSUfGAcg81wvYZbVpUXn3o4rdwrusxzv8z8Z3s8TWqvLWBLx3XkN/DL+a+Ca7MBbZTidpxTnUz4oG2O+IAOaPS1BXe80MPv63izRmbzyzVBcwpDrge3mFwzsuX/O3BjvWem1JlNeVSwnfbxSU6x5p1P/EA6dGIc/e1WoE+2Teo2mqkk8xnOPDVXAt65ebv/CxJUrSuqSoVKlsLga71mbu9vWTh9QZXWvgrhkMbsCFADw3qUK2nYXkJS8vHOyWg/2zRK4eC6W9UWZ/Wp3QBTEl11W1feU14rjnlcAPXgLewtPzJkHKgjmFzrFDZA8yXu8a0JMARYZziOyJ6NQh9Kog422GAnuShvI7fnOB7rHwnrONzTdtzfmWDudJhr7alBAR2DBCxiVI+HtDUnmlN/0WtWhzmo7mJ4Tlup86f45uXPhHDd7rnhksJ33xTYz1EYaY+c4jreKovb9XO8LALwlzIcrx+3OTijc+P+Qqqj1f+i4Yuv58F1Q+l+6cbC5phZ2k353YJUatkiirOsoleK8gaSqXmzLYWozIczlo75SGVft41pnPGwTql/4ZZvegu9Mcx78ToGhvts3jSMYRYJYfOn5Rha7hTnI17pe+va5KXNJAuixdOOx5iRT28HP+0oosjxFfKRCbyWKs7HPI3GtxZ+DfKIrKeW7enJzhyaCZ8ICxIJwIm8jyPA2N7WA36uBdGwP743Dm0jZ51fQwwB6Lgb4JQsQj7YHjrGPZNrYG1u4hm9hZHOV8RefffXOxyBzTXd/AyxGPxTyOy8WdDz+C4geaDhCJoXQAAAAAElFTkSuQmCC",P0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABjSURBVHgB7dTRCYAwDATQqxM4giO4sSu5QRzBDc4U8qOoNIVCKXlw9Kft5StA6A5JYT15/pdeCqjHqdnhs+Qk9XvLJtnglN/YcDcTGouCKIiCEQq+lt1h8Vg1c8myE9YThO5cisOaSb/8CBoAAAAASUVORK5CYII=",L0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABoSURBVHgB7ZTRCYAwDESvTuAojuDmdQQ3yApucEbwR2moFoQi9+DoR6Av+TlAdAdJYzt2/y8VBPRn86wF/+QZPUs0Sw4qFxxkxNdZMMvnchcGfIwEEkjwB8HbsptRKcInZWdsxyC6YweEd6VBXF6n0AAAAABJRU5ErkJggg==",R0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADoSURBVHgB7ZThDYIwEIVb4wAdoU6gTiAj6AYdgU1kA3EDN1A3YANxAzbAVz3MCznAP0RNuOTC8fXuHm1pjZnsp6zWbQM/KDyyRCvgnnNFJ4UXEufEc3oPxCv4VuI1fD8kUFhrrzIj5iXxBA/fCBC37WYzM7L9v4C2ByesZSWxJ56CB4ldzGtywG/mQ4Gg5NzhR/hF4UVHTaeAVXKqnjHXwfWGckhKQh6emNdXbkmsWaI4szPVRO7w2777apscML6I3hLLiGfES+K7drPpHAyadg5WdKc44l7uoGfMBcSXps/qEa7ryb5vD8yyymozrQlKAAAAAElFTkSuQmCC",E0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACjSURBVHgB3VFLEYMwEN1sKoA4wEIdREIddKqgFiqlDkoVtBJaBzjI556EBwPDDBcy4QTvkmTnfTa7RLuHMMbUzHzHvcoRxBjfSqlmerMQ4pVS0jli8Kqej9A5zFqbvPdXysSSz7QB6EQXG0B8wXc+WzoY5lBsgE08MdRzqYEdTX4nnF/s9uGc02sqJNb9GUL4TzVG8YZhNJQB8FoppUZyS8dBBxlHQhlOi9lfAAAAAElFTkSuQmCC",k0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEOSURBVHgBpVPtEcFAFHy58Tu5dKCEqAAdUIGoABWgAlRAB6iADlABHeSSAhK7RkyYOx/jzdy8vXd7e+/2EpE/w3MtJElSV0qNifM8n4ZheLHxak5lz9sVRWEANXCE3LDxlOP0CTdCoIvRBq6jNpRvgq0bY5I0TcdljZg1hP4oAPIS5PNdLM6yrEfMGtfk3RWwoYOWY5h3axe5iXmLGLnPNXBaTgGYNcNY+b6/fT0Jr7BH2pBjFSiN45OJI9DBSGyG2owr6xzVmtXQqnGfBBhVQxUIUdW4p/spNcDoWa7yMNSD0gyTSGvdlh8CXRxg6LEG004AMQprZPOtAA8Ff377mfjB8M3ltzgGQbCQf+MKvdXFV+092BsAAAAASUVORK5CYII=",O0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFTSURBVHgBlVPBcYMwEAQGHnxAVBBKIBVkUkIqsNNBOjAlJBXEqSAlOB3YHZhUgIAHDxjILhEeWYhkrJkbxN3e3mlPcp2VVZZlik8Gk7QkSU42nGtJfHFdd4etMEKF53l5FEUfutPTEoWU8sBk2Os4jvdCCJfGPXxfwzDsgTkSu2iFAdhZtb56LGJYyAxs4Rz1ZOyzP0hKHlWvfq6q6t3oaFzrCNgdSSYNVKUU53uzFJQ4O0ly3QkshRRt295RxEkQ25igOsV8BslG7wbYgt+u6zLP+X9JZznSaYFYkqDgj000tJoD9Anbc5Rz5Rnb9331WwKCUJirskrEpmkeTGIKztjFwZGo0aSzj4m2C6PGONZ1vXGMiocbLtJx9l1ExBmfHDU2tqhrwkSOEjEmFsA+zjHbY9qqx5QaIZLncRxf3ZcFgUaU+b4fo5oIguAUhuG3DfcD0GYNMVRQg6sAAAAASUVORK5CYII=",B0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEASURBVHgB3VLbEYIwEAzBbwgdYAd2ICXQAViBWAFQiVKBdiAlaAd0wOMfcA8SJhPRf70Zx5u9vb1dgLGfL6uua59zfkQvJsCySsdxColHruvm6GP0e5oPw1B4nlcqAY6F6ziOgQLQK6E7+li/RjPCISgWsGmaseu6SCeCkBFOLkzLJn9jEmgJV1L8MiFExb4UuMGbAFmUrd+27ZnNuU/I3RjLIcVfE7jQMpszh2x+uDm5N6hiNZMehWZwkeq4zgdnx9mHklEqeo0r48kNYj0oQomMGS4FagHKCcVAhK38HlIZyaf/vu+fSokDPODazbwALMGFask6u6ps2w4k/i/1AllNlyp405N+AAAAAElFTkSuQmCC",N0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADWSURBVHgB7VLRDcIgEAXqALABo9gJdANH0A0coSPoBuoEsoFxgtYJoB2g+F5CjRq1NvXTS9p7vOOOg3tCjDTJn/d+qpRaDEls2/ZgjNlLJFspZQnOwVffJMcYNdwc3kwALEmtdS4GWAghZlk2U2Kk/Qv0FMCIV03TfNQHxxgI6rpeQhxniMOl5Cl0UYAjvtzzIo3+phskF5wrvjJtssTkU8yTY4w81+DX79q2adOp44CP5BDTr67wYGhrk1p0OIWY0uU1KfkdfN5XwMFVTxwLbLv3+qldARJSg3z1CMvXAAAAAElFTkSuQmCC",F0="/airport/assets/map.bc12a339.png";const z0=r=>(un("data-v-474a481f"),r=r(),hn(),r),G0={class:"battery-overview-flex"},V0={class:"left-panel"},H0={class:"battery-overview-grid"},U0={class:"block-title"},W0={class:"block-no"},Y0={class:"block-name"},X0={class:"block-list"},$0={class:"item-no"},Q0={class:"item-label"},Z0={key:0,class:"item-value"},q0=z0(()=>E("div",{class:"right-panel"},[E("img",{src:F0,alt:"\u5730\u56FE",class:"map-image"})],-1)),K0={__name:"BatteryOverview",props:{vehicle:{type:Object,required:!0}},setup(r){const t=r,e=nt({}),i=nt(0);function n(h){if(!h)return"";const f=new Date(Number(h)),v=f.getFullYear(),c=String(f.getMonth()+1).padStart(2,"0"),d=String(f.getDate()).padStart(2,"0"),m=String(f.getHours()).padStart(2,"0"),p=String(f.getMinutes()).padStart(2,"0"),g=String(f.getSeconds()).padStart(2,"0");return`${v}/${c}/${d} ${m}:${p}:${g}`}function a(h){return h==="CHARGING"||h===1?"\u5145\u7535\u4E2D":h==="DISCHARGING"||h===2?"\u653E\u7535\u4E2D":"\u7A7A\u95F2"}function o(h,f){if(h==null)return"\u2014";const v=Number(h);return Number.isNaN(v)?"\u2014":`${v}${f}`}function s(...h){for(const f of h)if(f!=null)return f}async function l(){var f,v,c,d,m,p,g,y;const h=(f=t.vehicle)==null?void 0:f.carId;if(!!h)try{const _=await ln({url:`/api/vehicle-manager/vehicles/${encodeURIComponent(h)}/battery`,method:"get"}),A=_&&_.data!==void 0?_.data:_||{},b=(m=(d=(c=(v=A==null?void 0:A.data)==null?void 0:v.batteryStatus)!=null?c:A==null?void 0:A.batteryStatus)!=null?d:A==null?void 0:A.data)!=null?m:{},S=(g=(p=b==null?void 0:b.mainBattery)!=null?p:b==null?void 0:b.battery)!=null?g:{};e.value={voltage:s(S==null?void 0:S.voltage,b==null?void 0:b.voltage,A==null?void 0:A.voltage),current:s(S==null?void 0:S.current,b==null?void 0:b.current,A==null?void 0:A.current),temperature:s(S==null?void 0:S.temperature,b==null?void 0:b.temperature,A==null?void 0:A.temperature),chargingStatus:s(S==null?void 0:S.chargingStatus,b==null?void 0:b.chargingStatus,A==null?void 0:A.chargingStatus)},i.value=s(A==null?void 0:A.timestamp,b==null?void 0:b.timestamp,(y=A==null?void 0:A.data)==null?void 0:y.timestamp)||0}catch{e.value={},i.value=0}}en(l),mp(()=>{var h;return(h=t.vehicle)==null?void 0:h.carId},()=>l());const u=Ve(()=>{var g,y,_,A,b,S;const h=o((g=e.value)==null?void 0:g.voltage,"V"),f=o((y=e.value)==null?void 0:y.current,"A"),v=o((_=e.value)==null?void 0:_.temperature,"\u2103"),c=a((A=e.value)==null?void 0:A.chargingStatus),d=n(i.value),m=((b=t.vehicle)==null?void 0:b.status)||"\u2014",p=((S=t.vehicle)==null?void 0:S.location)||"\u2014";return[{no:"01",title:"\u7535\u6C60\u5F53\u524D\u53C2\u6570",items:[{no:"1.1",label:"\u7535\u538B",value:h},{no:"1.2",label:"\u7535\u6D41",value:f},{no:"1.3",label:"\u6E29\u5EA6",value:v}]},{no:"02",title:"\u72B6\u6001\u76D1\u6D4B",items:[{no:"2.1",label:"\u8F66\u8F86\u72B6\u6001",value:m},{no:"2.2",label:"\u5F53\u524D\u5145\u7535\u72B6\u6001",value:c},{no:"2.3",label:"\u6700\u65B0\u66F4\u65B0\u65F6\u95F4",value:d},{no:"2.4",label:"\u6700\u65B0\u4F4D\u7F6E",value:p}]}]});return(h,f)=>(gt(),mt("div",G0,[E("div",V0,[E("div",H0,[(gt(!0),mt(mi,null,yi(Ft(u),v=>(gt(),mt("div",{class:"battery-block",key:v.no},[E("div",U0,[E("span",W0,pt(v.no),1),E("span",Y0,pt(v.title),1)]),E("ul",X0,[(gt(!0),mt(mi,null,yi(v.items,c=>(gt(),mt("li",{key:c.no},[E("span",$0,pt(c.no),1),E("span",Q0,pt(c.label),1),c.value!==void 0?(gt(),mt("span",Z0,"\uFF1A"+pt(c.value),1)):la("",!0)]))),128))])]))),128))])]),q0]))}},J0=Or(K0,[["__scopeId","data-v-474a481f"]]);const j0={class:"fault-alarm"},t_={class:"search-area"},e_={class:"search-buttons"},r_={class:"action-buttons"},i_={__name:"FaultAlarm",props:{detail:{type:Object,default:()=>null},vehicle:{type:Object,default:()=>({})}},setup(r){const t=r,e=nt({type:"",status:""}),i=nt(1),n=nt(10),a=Ve(()=>{var v,c,d,m,p;const f=(v=t.detail)==null?void 0:v.fmsMessage;return f?[{index:1,carId:((c=t.detail)==null?void 0:c.vehicleId)||"",vin:((m=(d=t.detail)==null?void 0:d.details)==null?void 0:m.vin)||"",location:"",status:f.isActive===1?"\u672A\u89E3\u9664":"\u5DF2\u89E3\u9664",faultType:f.description||f.code||"",faultLevel:(p=f.level)!=null?p:"",faultStart:f.ts||"",faultEnd:""}]:[]}),o=Ve(()=>a.value.filter(f=>{const v=!e.value.type||f.status===e.value.type,c=!e.value.status||f.status===e.value.status;return v&&c})),s=Ve(()=>{const f=(i.value-1)*n.value;return o.value.slice(f,f+n.value)});function l(){i.value=1}function u(){e.value={type:"",status:""},i.value=1}function h({page:f,limit:v}){}return(f,v)=>{const c=Pt("el-option"),d=Pt("el-select"),m=Pt("el-button"),p=Pt("el-table-column"),g=Pt("el-table");return gt(),mt("div",j0,[E("div",t_,[H(d,{modelValue:e.value.type,"onUpdate:modelValue":v[0]||(v[0]=y=>e.value.type=y),placeholder:"\u6545\u969C\u72B6\u6001",clearable:"",class:"search-select"},{default:lt(()=>[H(c,{label:"\u5168\u90E8",value:""}),H(c,{label:"\u672A\u89E3\u9664",value:"\u672A\u89E3\u9664"}),H(c,{label:"\u5DF2\u89E3\u9664",value:"\u5DF2\u89E3\u9664"})]),_:1},8,["modelValue"]),H(d,{modelValue:e.value.status,"onUpdate:modelValue":v[1]||(v[1]=y=>e.value.status=y),placeholder:"\u8F66\u8F86\u72B6\u6001",clearable:"",class:"search-select"},{default:lt(()=>[H(c,{label:"\u5168\u90E8",value:""}),H(c,{label:"\u5728\u7EBF",value:"\u5728\u7EBF"}),H(c,{label:"\u79BB\u7EBF",value:"\u79BB\u7EBF"})]),_:1},8,["modelValue"]),E("div",e_,[H(m,{type:"primary",class:"search-btn",onClick:l},{default:lt(()=>[Le("\u641C\u7D22")]),_:1}),H(m,{class:"reset-btn",onClick:u},{default:lt(()=>[Le("\u91CD\u7F6E")]),_:1})]),E("div",r_,[H(m,{class:"export-btn"},{default:lt(()=>[Le("\u5BFC\u51FA")]),_:1})])]),H(g,{data:Ft(s),"header-cell-style":{backgroundColor:"#343744",color:"#fff"},class:"custom-table"},{default:lt(()=>[H(p,{prop:"index",label:"\u5E8F\u53F7",width:"60"}),H(p,{prop:"carId",label:"\u7535\u6C60SN\u7801"}),H(p,{prop:"vin",label:"\u8F66\u8F86VIN\u7801"}),H(p,{prop:"location",label:"\u7535\u6C60\u5305\u7F16\u53F7"}),H(p,{prop:"status",label:"\u6545\u969C\u72B6\u6001"},{default:lt(y=>[E("span",{class:yp(y.row.status==="\u672A\u89E3\u9664"?"status-danger":"status-success")},pt(y.row.status),3)]),_:1}),H(p,{prop:"faultType",label:"\u6545\u969C\u540D\u79F0"}),H(p,{prop:"faultLevel",label:"\u6545\u969C\u7B49\u7EA7"}),H(p,{prop:"faultStart",label:"\u6545\u969C\u5F00\u59CB\u65F6\u95F4"}),H(p,{prop:"faultEnd",label:"\u6545\u969C\u7ED3\u675F\u65F6\u95F4"})]),_:1},8,["data"]),dh(H(gh,{total:Ft(o).length,page:i.value,"onUpdate:page":v[2]||(v[2]=y=>i.value=y),limit:n.value,"onUpdate:limit":v[3]||(v[3]=y=>n.value=y),onPagination:h},null,8,["total","page","limit"]),[[ph,Ft(o).length>0]])])}}},n_=Or(i_,[["__scopeId","data-v-7224ea80"]]),a_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADsAAAAQCAYAAACoTgdGAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAL6SURBVHgB7VZPi1JRFL/3/fHfpJgFIgg5IC1sFppBzKKQvkAr9y3b9RHUj9AHaFEUERExTNBmCGkXJJqZxEygNu2mRTADLeb5Xvdcz3lz3vM5m1ZJFw733Xv+/M7fq0KsyRruf7832p9Uz5MxxBosz/OEYc8HrmG+HnyZ1sSaLokERTM+jg+uD7/NJqsCtsIXnw8OW7A7J87DWm3zF91Dm0gpr/gonrOzdXVzQOfR5EfVc7y7Pl/K6Va5+JjO/ckkaznWA471txiqorNXzx496XQ6ukOHo/7hjdrNT2bMeKcCvlO9VupzvEAbK2Xpuo4BRHhnNJeOA/euXPDtAN9xfvu6CzolnpY7OT6WoAs2gL+wtYxBPI4BbQqk7kMYczkej7VuuVw2fx4dme7c1XYd51SKc8ZUM5vNpolCRKRkhchstVoGENOzGo2GL4N3fpvV63UbiMmZpA/fcI98mzC4L4QBfNTXsirQuNqTu3vd7eHX6Wz37d62OidQxogKVIIxMkLOkBOKYoripVIpATsCaT46YeN9AsFjqGcwu6QPFGPOaIxKpQI6iSgMJB+DbNCZAn3+8s0tdc4quoD8yGANFpTNK4hnMJ5StFEsFpMIYrFkxIkPBA6zhJHdZD6f30AZcpYC0YESv1AopCJ84RgptKGr+v7D4P7TFzu31ffldDp9KZfLZZBvwniGA+bZo6z7lcZs82BjLPMUDMksJQPtEJ8ctcNVgyDBPsPgfsSZfpIHi5W8SMGqPYM8GqWl6poiWFGaFx0Mtie1aZSMblNMjM3a1LdBbYwtq/VhbsOjQIHSG8LmNR4i6jqodhYDzeKZMIILSh16LPxXEoF4IvxAQQ/bJJJPNtA251ki8BKfzS4jA21L5l8Yw8LkQ7Uz0L44CgmxoqpUWUHG+T09/cxpwZwUobNcBUBOs30ln9shWc4L/QpQRyRFcITW4h8iX7oj6CeLPYpLgVriH1+q2l673YbPea/XE91uF67gH5wn1nXh2wGfUvxfQvwB1mI6lQoV2HwAAAAASUVORK5CYII=";function o_(r){return ln({url:"/system/vehicle_location/list",method:"get",params:r})}function s_(r){return ln({url:"/system/vehicle_location/trajectory/batch",method:"post",data:r})}function l_(r,t){return ln({url:"/system/vehicle_location/vehicle/"+r,method:"get",params:t})}function u_(r,t){return ln({url:"/system/vehicle_location/plate/"+r,method:"get",params:t})}const Yt=r=>(un("data-v-3ddf4e12"),r=r(),hn(),r),h_={class:"track-playback-content"},f_={class:"left-list"},c_=["onClick"],v_={key:0,class:"corner-triangle"},d_={class:"task-row1"},p_=Yt(()=>E("span",{class:"dot"},null,-1)),g_={class:"task-no"},m_={class:"task-name"},y_={class:"task-row2"},__={class:"task-row3"},A_=Yt(()=>E("span",{class:"point start"},"\u8D77\u70B9",-1)),S_={class:"label"},b_=Yt(()=>E("img",{class:"arrow",src:a_,alt:"arrow"},null,-1)),w_=Yt(()=>E("span",{class:"point end"},"\u7EC8\u70B9",-1)),x_={class:"label"},T_={class:"right-map"},C_={class:"map-container"},D_=Yt(()=>E("div",{class:"map-img-placeholder"},null,-1)),M_={class:"track-detail-panel"},I_={class:"panel-header"},P_=Yt(()=>E("div",{class:"header-left"},[E("span",{class:"dot"}),E("span",{class:"panel-title"},"\u8F68\u8FF9\u8BE6\u60C5")],-1)),L_={class:"vehicle-stats-row"},R_={class:"stat-item"},E_={class:"stat-value"},k_=Yt(()=>E("span",{class:"stat-label"},"\u8F66\u724C\u53F7",-1)),O_={class:"stat-item"},B_={class:"stat-value"},N_=Yt(()=>E("span",{class:"stat-label"},"\u6700\u5927\u65F6\u901F",-1)),F_={class:"stat-item"},z_={class:"stat-value"},G_=Yt(()=>E("span",{class:"stat-label"},"\u5E73\u5747\u65F6\u901F",-1)),V_={class:"stat-item"},H_={class:"stat-value"},U_=Yt(()=>E("span",{class:"stat-label"},"\u884C\u9A76\u603B\u91CC\u7A0B",-1)),W_={class:"stat-item"},Y_={class:"stat-value"},X_=Yt(()=>E("span",{class:"stat-label"},"\u884C\u9A76\u8017\u65F6",-1)),$_={class:"stat-item warn"},Q_={class:"stat-value"},Z_=Yt(()=>E("span",{class:"stat-label"},"\u51B2\u7A81\u544A\u8B66",-1)),q_={class:"stat-item prewarn"},K_={class:"stat-value"},J_=Yt(()=>E("span",{class:"stat-label"},"\u51B2\u7A81\u9884\u8B66",-1)),j_={class:"progress-row"},t1=Yt(()=>E("div",{class:"progress-bar-bg"},null,-1)),e1=["title"],r1=Yt(()=>E("div",{class:"flag-icon"},null,-1)),i1=[r1],n1={class:"speed-select"},a1={class:"el-dropdown-link"},o1=Yt(()=>E("i",{class:"el-icon-arrow-down"},null,-1)),s1={class:"time-row"},l1={class:"start-time"},u1={class:"end-time"},h1={__name:"TrackPlayback",props:{vehicle:{type:Object,default:()=>({})},detail:{type:Object,default:()=>({})},tasks:{type:Array,default:()=>[]}},setup(r){const t=r,e=nt({pageNum:1,pageSize:10,timeRange:[],vehicleId:"",licensePlate:""}),i=nt([]),n=nt(!1),a=nt(0),o=nt([]),s=nt(""),l=nt(0),u=nt({licensePlate:"",maxSpeed:"0",averageSpeed:"0",totalDistance:"0",totalTime:"0",warnings:"0",preWarnings:"0",startTime:"",endTime:""}),h=nt("");Gs(()=>{var P;(P=t.vehicle)!=null&&P.carId&&(h.value=t.vehicle.carId,e.value.vehicleId="",e.value.licensePlate=t.vehicle.carId)});function f(P){return(Array.isArray(P)?P:[]).map(L=>{var q,Y,st,V,it,ut,X,J,Bt,Tt,we,xe,cr,vr,dr;const F=(Array.isArray(L==null?void 0:L.points)?L.points:Array.isArray(L==null?void 0:L.waypoints)?L.waypoints:Array.isArray((q=L==null?void 0:L.path)==null?void 0:q.points)?L.path.points:[]).map(tt=>{var pr,gr,Nt,Qe,mr,gn,mn,yn,_n,An,Sn,Cf,Df,Mf,If,Pf,Lf,Rf;const Te=(Nt=(gr=(pr=tt==null?void 0:tt.timestamp)!=null?pr:tt==null?void 0:tt.time)!=null?gr:tt==null?void 0:tt.ts)!=null?Nt:Date.now(),Br=(mn=(gn=(mr=(Qe=tt==null?void 0:tt.longitude)!=null?Qe:tt==null?void 0:tt.lng)!=null?mr:tt==null?void 0:tt.lon)!=null?gn:tt==null?void 0:tt.y)!=null?mn:0,Nr=(An=(_n=(yn=tt==null?void 0:tt.latitude)!=null?yn:tt==null?void 0:tt.lat)!=null?_n:tt==null?void 0:tt.x)!=null?An:0,Fr=Number((Cf=(Sn=tt==null?void 0:tt.speed)!=null?Sn:tt==null?void 0:tt.v)!=null?Cf:0)||0;return{timestamp:typeof Te=="string"?Te:new Date(Te).toISOString(),longitude:Number(Br)||0,latitude:Number(Nr)||0,speed:Fr,vehicleId:(If=(Mf=L==null?void 0:L.vehicleId)!=null?Mf:(Df=t.vehicle)==null?void 0:Df.carId)!=null?If:"",licensePlate:(Rf=(Lf=L==null?void 0:L.licensePlate)!=null?Lf:(Pf=t.vehicle)==null?void 0:Pf.licensePlate)!=null?Rf:""}}),W=F[0],G=F[F.length-1]||W,Z=F.length>0?(F.reduce((tt,Te)=>tt+(Te.speed||0),0)/F.length).toFixed(2):"0";return{id:((it=(V=(Y=L==null?void 0:L.id)!=null?Y:L==null?void 0:L.vehicleId)!=null?V:(st=t.vehicle)==null?void 0:st.carId)!=null?it:"0").toString(),no:((Tt=(Bt=(X=(ut=L==null?void 0:L.no)!=null?ut:L==null?void 0:L.missionId)!=null?X:L==null?void 0:L.id)!=null?Bt:(J=t.vehicle)==null?void 0:J.carId)!=null?Tt:"").toString(),name:(xe=(we=L==null?void 0:L.name)!=null?we:L==null?void 0:L.missionType)!=null?xe:"\u4EFB\u52A1",time:W&&G?`${W.timestamp}--${G.timestamp}`:"",start:W?`\u7ECF\u5EA6${W.longitude},\u7EAC\u5EA6${W.latitude}`:"",end:G?`\u7ECF\u5EA6${G.longitude},\u7EAC\u5EA6${G.latitude}`:"",speed:`${Z}km/h`,licensePlate:(dr=(vr=L==null?void 0:L.licensePlate)!=null?vr:(cr=t.vehicle)==null?void 0:cr.licensePlate)!=null?dr:"",points:F}})}Gs(()=>{var P,L,N,F,W;if(Array.isArray(t.tasks)&&t.tasks.length>0){const G=f(t.tasks);o.value=G,o.value.length>0&&(l.value=o.value[0].id,y(o.value[0]))}else(Array.isArray((L=(P=t.detail)==null?void 0:P.path)==null?void 0:L.waypoints)&&t.detail.path.waypoints.length>0||Array.isArray((N=t.detail)==null?void 0:N.waypoints)&&t.detail.waypoints.length>0||Array.isArray((W=(F=t.detail)==null?void 0:F.path)==null?void 0:W.path)&&t.detail.path.path.length>0)&&v()});function v(){var st,V,it,ut,X,J,Bt,Tt,we,xe,cr,vr,dr,tt,Te,Br,Nr,Fr,pr,gr;const P=((V=(st=t.detail)==null?void 0:st.path)==null?void 0:V.waypoints)||((it=t.detail)==null?void 0:it.waypoints)||((X=(ut=t.detail)==null?void 0:ut.path)==null?void 0:X.path);if(!Array.isArray(P)||P.length===0)return;const L=((J=t.detail)==null?void 0:J.timestamp)||((Tt=(Bt=t.detail)==null?void 0:Bt.path)==null?void 0:Tt.timestamp)||((we=t.detail)==null?void 0:we.lastSeenAt)||Date.now(),N=(Nr=(Br=(cr=(xe=t.detail)==null?void 0:xe.position)==null?void 0:cr.v)!=null?Br:(Te=(tt=(dr=(vr=t.detail)==null?void 0:vr.chassis)==null?void 0:dr.sys_info)==null?void 0:tt.state_info)==null?void 0:Te.d_speed_kmph)!=null?Nr:0,F=((Fr=t.detail)==null?void 0:Fr.vehicleId)||((pr=t.vehicle)==null?void 0:pr.carId)||"",W=((gr=t.vehicle)==null?void 0:gr.licensePlate)||"",G=P.map((Nt,Qe)=>{var mr,gn,mn,yn,_n,An,Sn;return{timestamp:new Date(L+Qe*1e3).toISOString(),longitude:(yn=(mn=(gn=(mr=Nt.y)!=null?mr:Nt.longitude)!=null?gn:Nt.lng)!=null?mn:Nt.lon)!=null?yn:Nt.x,latitude:(Sn=(An=(_n=Nt.x)!=null?_n:Nt.latitude)!=null?An:Nt.lat)!=null?Sn:Nt.y,speed:Number(N)||0,vehicleId:F,licensePlate:W}}),Z=G[0],q=G[G.length-1],Y=(G.reduce((Nt,Qe)=>Nt+(Qe.speed||0),0)/G.length).toFixed(2);o.value=[{id:(F==null?void 0:F.toString())||"0",no:(F==null?void 0:F.toString())||"",name:"\u4EFB\u52A1",time:`${Z.timestamp}--${q.timestamp}`,start:`\u7ECF\u5EA6${Z.longitude},\u7EAC\u5EA6${Z.latitude}`,end:`\u7ECF\u5EA6${q.longitude},\u7EAC\u5EA6${q.latitude}`,speed:`${Y}km/h`,points:G}],l.value=o.value[0].id}Gs(()=>{var L,N,F,W,G,Z,q;const P=Array.isArray((N=(L=t.detail)==null?void 0:L.path)==null?void 0:N.waypoints)&&t.detail.path.waypoints.length>0||Array.isArray((F=t.detail)==null?void 0:F.waypoints)&&t.detail.waypoints.length>0||Array.isArray((G=(W=t.detail)==null?void 0:W.path)==null?void 0:G.path)&&t.detail.path.path.length>0;(!t.tasks||t.tasks.length===0)&&P&&(((Z=t.detail)==null?void 0:Z.vehicleId)||((q=t.vehicle)==null?void 0:q.carId))&&v()});async function c(){n.value=!0;try{let P;const L=e.value,N=L.licensePlate,F=L.vehicleId,W={pageNum:L.pageNum,pageSize:L.pageSize,timeRange:L.timeRange};if(N?P=await u_(encodeURIComponent(N),W):F?P=await l_(F,W):P=await o_(W),P.code===200){i.value=P.rows||[],a.value=P.total;const G={};i.value.forEach(q=>{G[q.vehicleId]||(G[q.vehicleId]=[]),G[q.vehicleId].push(q)});const Z=[];Object.keys(G).forEach((q,Y)=>{const st=G[q],V=st[0],it=st[st.length-1],ut=(st.reduce((J,Bt)=>J+Bt.speed,0)/st.length).toFixed(2),X=V.licensePlate||"--";Z.push({id:q,no:q,name:`\u8F66\u8F86${X}\u8F68\u8FF9`,time:`${V.timestamp}--${it.timestamp}`,start:`\u7ECF\u5EA6${V.longitude},\u7EAC\u5EA6${V.latitude}`,end:`\u7ECF\u5EA6${it.longitude},\u7EAC\u5EA6${it.latitude}`,status:"\u5DF2\u5B8C\u6210",speed:`${ut}km/h`,licensePlate:X,points:st})}),o.value=Z,o.value.length>0&&(l.value=o.value[0].id,y(o.value[0]))}else yr.error(P.msg||"\u83B7\u53D6\u8F66\u8F86\u8FD0\u52A8\u4FE1\u606F\u5217\u8868\u5931\u8D25")}catch(P){console.error("\u83B7\u53D6\u8F66\u8F86\u8FD0\u52A8\u4FE1\u606F\u5217\u8868\u5F02\u5E38",P),yr.error("\u83B7\u53D6\u8F66\u8F86\u8FD0\u52A8\u4FE1\u606F\u5217\u8868\u5F02\u5E38")}finally{n.value=!1}}async function d(P,L){if(!(!P||P.length===0)){n.value=!0;try{const N={vehicleIds:P,startTime:(L==null?void 0:L[0])||"",endTime:(L==null?void 0:L[1])||"",pageNum:1,pageSize:1e3},F=await s_(N);if(console.log("\u6279\u91CF\u8F68\u8FF9\u67E5\u8BE2\u7ED3\u679C:",F),F.code===200){const W=F.data||F.rows||[],G={};W.forEach(q=>{G[q.vehicleId]||(G[q.vehicleId]=[]),G[q.vehicleId].push(q)});const Z=[];Object.keys(G).forEach(q=>{const Y=G[q];Y.sort((X,J)=>new Date(X.timestamp)-new Date(J.timestamp));const st=Y[0],V=Y[Y.length-1],it=(Y.reduce((X,J)=>X+(J.speed||0),0)/Y.length).toFixed(2),ut=st.licensePlate||"--";Z.push({id:q,no:q,name:`\u8F66\u8F86${ut}\u8F68\u8FF9\u56DE\u653E`,time:`${st.timestamp}--${V.timestamp}`,start:`\u7ECF\u5EA6${st.longitude},\u7EAC\u5EA6${st.latitude}`,end:`\u7ECF\u5EA6${V.longitude},\u7EAC\u5EA6${V.latitude}`,status:"\u56DE\u653E\u5C31\u7EEA",speed:`${it}km/h`,licensePlate:ut,points:Y,isPlayback:!0})}),Z.length>0?(o.value=Z,o.value.length>0&&(l.value=o.value[0].id,y(o.value[0])),yr.success(`\u6210\u529F\u52A0\u8F7D${Z.length}\u4E2A\u8F66\u8F86\u7684\u8F68\u8FF9\u56DE\u653E\u6570\u636E`)):yr.warning("\u672A\u627E\u5230\u8F68\u8FF9\u56DE\u653E\u6570\u636E")}else yr.error(F.msg||"\u6279\u91CF\u67E5\u8BE2\u8F66\u8F86\u8F68\u8FF9\u5931\u8D25")}catch(N){console.error("\u6279\u91CF\u67E5\u8BE2\u8F66\u8F86\u8F68\u8FF9\u5F02\u5E38",N),yr.error("\u6279\u91CF\u67E5\u8BE2\u8F66\u8F86\u8F68\u8FF9\u5F02\u5E38")}finally{n.value=!1}}}const m=Ve(()=>s.value?o.value.filter(P=>P.name.includes(s.value)||P.no.includes(s.value)||P.id.toString().includes(s.value)):o.value),p=Ve(()=>o.value.find(P=>P.id===l.value)),g=Ve(()=>{var P,L;return(P=p.value)!=null&&P.licensePlate?p.value.licensePlate:u.value.licensePlate?u.value.licensePlate:(L=t.vehicle)!=null&&L.licensePlate?t.vehicle.licensePlate:"--"});function y(P){l.value=P.id,P.points&&P.points.length>0&&(_(P.points),P.licensePlate&&(u.value.licensePlate=P.licensePlate))}function _(P){P.sort((V,it)=>new Date(V.timestamp)-new Date(it.timestamp));const L=P[0],N=u.value.licensePlate;L&&L.licensePlate&&(u.value.licensePlate=L.licensePlate);const F=Math.max(...P.map(V=>V.speed)).toFixed(2),W=(P.reduce((V,it)=>V+it.speed,0)/P.length).toFixed(2);let G=0;for(let V=1;V0?st.toString():"1",warnings:"0",preWarnings:"0",startTime:P[0].timestamp,endTime:P[P.length-1].timestamp},x.value=[{percent:20,label:"\u544A\u8B66 "+P[Math.floor(P.length*.2)].timestamp},{percent:60,label:"\u9884\u8B66 "+P[Math.floor(P.length*.6)].timestamp}]}function A(){var L;const P=o.value.find(N=>N.id===l.value);if(P)if(P.points&&P.points.length>0)_(P.points),yr.success("\u5F00\u59CB\u8F68\u8FF9\u56DE\u653E");else{const N=[P.id.toString()];d(N,e.value.timeRange)}else if(e.value.vehicleId){const N=[e.value.vehicleId];d(N,e.value.timeRange)}else if((L=t.vehicle)!=null&&L.carId){const N=[t.vehicle.carId];d(N,e.value.timeRange)}else if(o.value.length>0){const N=o.value.map(F=>F.id.toString());d(N,e.value.timeRange)}else c(),yr.info("\u8BF7\u5148\u9009\u62E9\u4E00\u4E2A\u8F66\u8F86\u4EFB\u52A1")}const b=nt(30),S=nt(1),w=nt(!1),T=nt(""),D=nt(0),x=nt([]);let C=!1;function I(P){C=!0,document.addEventListener("mousemove",R),document.addEventListener("mouseup",k)}function R(P){if(!C)return;const N=document.querySelector(".progress-bar-wrap").getBoundingClientRect();let F=(P.clientX-N.left)/N.width*100;F=Math.max(0,Math.min(100,F)),b.value=F}function k(){C=!1,document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",k)}function O(P){const N=P.currentTarget.getBoundingClientRect();let F=(P.clientX-N.left)/N.width*100;F=Math.max(0,Math.min(100,F)),D.value=P.clientX-N.left;const W=20*60,G=Math.round(F/100*W),Z=String(Math.floor(G/60)).padStart(2,"0"),q=String(G%60).padStart(2,"0");T.value=`${Z}:${q}`,w.value=!0}function B(P){const N=P.currentTarget.getBoundingClientRect();let F=(P.clientX-N.left)/N.width*100;F=Math.max(0,Math.min(100,F)),b.value=F}function Q(P){S.value=P}return en(()=>{var P,L;t.vehicle&&(t.vehicle.licensePlate&&(u.value.licensePlate=t.vehicle.licensePlate),u.value={licensePlate:t.vehicle.licensePlate||"--",maxSpeed:"0",averageSpeed:"0",totalDistance:"0",totalTime:"0",warnings:"0",preWarnings:"0",startTime:"",endTime:""}),(L=(P=t.detail)==null?void 0:P.path)!=null&&L.path||c()}),(P,L)=>{const N=Pt("el-input"),F=Pt("el-scrollbar"),W=Pt("el-button"),G=Pt("el-dropdown-item"),Z=Pt("el-dropdown-menu"),q=Pt("el-dropdown");return gt(),mt("div",h_,[E("div",f_,[H(N,{modelValue:s.value,"onUpdate:modelValue":L[0]||(L[0]=Y=>s.value=Y),class:"search-input",placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u53F7/\u8F66\u8F86\u540D","suffix-icon":Ft(T0)},null,8,["modelValue","suffix-icon"]),H(F,{class:"task-list"},{default:lt(()=>[(gt(!0),mt(mi,null,yi(Ft(m),Y=>(gt(),mt("div",{key:Y.id,class:yp(["task-item",{active:Y.id===l.value}]),onClick:st=>y(Y)},[Y.id===l.value?(gt(),mt("div",v_)):la("",!0),E("div",d_,[p_,E("span",g_,pt(Y.no),1),E("span",m_,pt(Y.name),1)]),E("div",y_,pt(Y.time),1),E("div",__,[A_,E("span",S_,pt(Y.start),1),b_,w_,E("span",x_,pt(Y.end),1)])],10,c_))),128))]),_:1})]),E("div",T_,[E("div",C_,[D_,E("div",M_,[E("div",I_,[P_,H(W,{size:"small",type:"primary",class:"replay-btn",onClick:A},{default:lt(()=>[Le("\u56DE\u653E")]),_:1})]),E("div",L_,[E("div",R_,[E("span",E_,pt(Ft(g)),1),k_]),E("div",O_,[E("span",B_,pt(u.value.maxSpeed)+"km/h",1),N_]),E("div",F_,[E("span",z_,pt(u.value.averageSpeed)+"km/h",1),G_]),E("div",V_,[E("span",H_,pt(u.value.totalDistance)+"km",1),U_]),E("div",W_,[E("span",Y_,pt(u.value.totalTime)+"min",1),X_]),E("div",$_,[E("span",Q_,pt(u.value.warnings),1),Z_]),E("div",q_,[E("span",K_,pt(u.value.preWarnings),1),J_])]),E("div",j_,[E("div",{class:"progress-bar-wrap",onMousemove:O,onMouseleave:L[1]||(L[1]=Y=>w.value=!1),onClick:B},[t1,E("div",{class:"progress-bar-fg",style:ka({width:b.value+"%"})},null,4),E("div",{class:"progress-thumb",style:ka({left:b.value+"%"}),onMousedown:I},null,36),(gt(!0),mt(mi,null,yi(x.value,Y=>(gt(),mt("div",{key:Y.label,class:"progress-flag",style:ka({left:Y.percent+"%"}),title:Y.label},i1,12,e1))),128)),w.value?(gt(),mt("div",{key:0,class:"progress-tooltip",style:ka({left:D.value+"px"})},pt(T.value),5)):la("",!0)],32),E("div",n1,[H(q,{onCommand:Q},{dropdown:lt(()=>[H(Z,null,{default:lt(()=>[H(G,{command:"1"},{default:lt(()=>[Le("1x")]),_:1}),H(G,{command:"2"},{default:lt(()=>[Le("2x")]),_:1}),H(G,{command:"4"},{default:lt(()=>[Le("4x")]),_:1})]),_:1})]),default:lt(()=>[E("span",a1,[Le(pt(S.value)+"x ",1),o1])]),_:1})])]),E("div",s1,[E("span",l1,"\u5F00\u59CB\u65F6\u95F4 "+pt(u.value.startTime||"--"),1),E("span",u1,"\u7ED3\u675F\u65F6\u95F4 "+pt(u.value.endTime||"--"),1)])])])])])}}},f1=Or(h1,[["__scopeId","data-v-3ddf4e12"]]),c1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAW8SURBVHgB1VrNctNWFD7n2sCincHtC2Cm0zLpJs4T4O46JSEKSwpYmT5AwhPEPAHJqqtOFAJ0BwpJCzvMjl2UXUo7g/MCxQztTNtYOv2O7Ouqju3IsknMN2Pr70o6556fe37ENAY4jlv4JyQnxzQtTEUhKhmSArYFO0aI60xUZ6GADQe4/sL3vTqNCKaMUKKbRMug7DLIK+FBvggHLFw/c8YEv0fh25rvNez4a9e+u3AoUVFCjGUpR2ASr2/kmFdHYWZoBizhIlIB8b4R429vr7+gDJhbWLwcRZELIvBjDxK8MywjQzEw67hVJZxFvD+MWUvO8Cj42nGLeYowIVzF787OE6+a9t5UDGDWi02Rx9htNJkXn41Bd3tBGcmJrBiiMlTrqzTSOJaBOcd1IzwUs7668+TeGp0Arsy5y8bIUjPk2093PH/Q2IEMWJUR5oWffS+gE0RbGs/hFDYGqVSu3wVLfAhRPvW9fTph/LYfND6bmtlikruXLs188uqXoNZrnOl1EsQ7lvj3pe9poO9WGoSlctVZrPQac0SF1GAPIbrTJj4J0FQK4UR6GfYRCYSx3snqpBCvANFBFPHaYcsT9ofq/ZX5yjpNKGbnK89nr7oryXMdCajqENwlVOcOTSh0DUIY4pYRDdhzHQZCoRUwUJ0k1emG0gaX7n0c0ZI9FzOgsy8kbtOYDZpw5InWklKIGQixdCP09SZ59i18jb+EfSuFmAH4/CUTGY8+EIihLUJIrvts/f5PWxsX0z5g05WyEVriRMICBNc3+LY9uH9TlnV7Y5NX7bExNP8fFeRdv8eZVXZuvvLmHfNFo+oDQlLHOQ9uimsieg4CyhGyEvuTkBpJBpnpLnYvJO/tjJU4a/M2b7RmMRvY/yjieYThNI2DWurbDFVAQP3be9xTYuuuFHIRrYPA+uE76rjktiRW7fGDW/LGcKzHNcpCPmPSRUoGOWwJEd9QkaYy0O/a2YiqIL6I3Ndd9LkxiAD5vwoOBQjyAN6oCFWWInLYOo0BqjrYLIHB1eubnCnNTAu40yAuHkD/i48e/XBAI8KqDnWpTlqokVvDT4mGOpE8jQkd1QED587T44cV6VyD4W5Zb9QP6qHUwClhJ4Og6wFio/Ex0LaLWkx2m3boeREb/b23bC6PGWvosjxqhaHby6hKnYtoV1KqlEoJhi80JPKQWuNTkzuP/bGUSCwS3qg8yBtZHKdi3WgvwHWoHgd/HUYlGiNOwhs12/aGqh7+4E/T3ihq/Ux9GU7tjSS2jcxAEDetpcw88oC9nNH6ZjpEIa1BbM7DW/IaGXU9PpfwMr1UB6tuFUx33gHJlOJFjKlKGYFnlDWcMGdzKMqSOGlvvHmfa2B6MYLkbGyTNL7YG0W0nFQdXD+fjJswuqYM3hghmNOCcmik9Y4415x1y/SBALl7Gbn7ru63UkrmmiRD3QkHpIdCsIlVNmZA0zQYspNMlicVNv216hMzoMtyd7I8qYD7dJPpb6cqYZPluLwyoehV+ukwYKWAPsDEFrZSlX7gkXavOO4wYe2JAH2KZXie193nj9RGUf1aMKhSfIOCKk0IVHXQZFnSgnP3tSP9Aa3LX5qaeQsmvv8S9fl9HNMpQonXgnOIbs2zJ97L7us9+wPbvuehJu/pjadp1JZ41K28fq2mvh2aV/t7L76Ymi5oRHkakmj3BJ4q8ejN9Q0Kc4Me0mJi5gAP+fHzqRn+dT94SScANVgQfxeLa3V7a3BjMVWb1TbckDvUsjSj06LVztWakhRgsAvPxtFmTWLWubVim9F5Q964GEl2//kYlenG0J8a2Ga0/TwAJcWNnR2vRhmgUSVHqEYgDsva/c/8sYcygsJqWRvSWp8RpKYoMtWiJu3l81RPSsdpBYmFv5tUOpOnC5rQIJ53hOLyYG2UzxYyM9CLGcRS05pututDxcSQhqai8NlBFJdfTPCnka1xfGvxL3j7NHzVTjpEAAAAAElFTkSuQmCC",v1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAUxSURBVHgB1VpPTyRVEK96PXjRxNEPIEOMErwwJGi80XszAjvNfgCniR8APG3cPQAn3dPCyZOh8eJtbf4o3GhuHDbS3HA1YVjvOhs1UZl+tb83Q5PJMEBPzyzT/JKBnu7XPVWv6tWr+lUz9QCO4+b/j8ixmEaFqSBERUWSx/98PEaIK0xUYaGQFYe4vuf7XoW6BFNKGKFrRPOQbALiFfEgX4RDFq4MDKjwDx29CHyvGo+/d+/zwVPRBYkwlsXWUBI/X7WYl7tRpmMFYsFFpAzhfSXK39xc3aMUmJ6ZndBauxACH/ZgwaVOFelIgSnHXTSCs4j3t1IrzTPcDT5x3EKONCaEF/FZ2trwFpPem0gBzHqhJvIDDqs15tmdHvhuOxhFLJEFRWTDte4ksca1Ckw7rqvxUMz68tbGdyt0A5icdueVkrlaxF9sb3n+VWOvVCB2GWGe+cn3QrpBnFljF0Fh7SqXsi67EAsfwZTbvndEN4zfjsLquyNj60zyeHh47K1nv4RBu3Gq3UkI78TCvyp/TwLz20YGYSnfdWbL7cZccCGzYE9hun4L3wzIVIwQRNot7AsWiOp+J8tZEd4AQoda88ppIxJeDuP3k6XyKmUUU6Xy7tRdd6H53LkFjOsQwiVcZ4kyCrMHIQ1xbWQD8blzBSKhBSiwmCXXaYWRDSHde0PTXHyuroCZfSFxa0qtUcaRI1pptkJdgQhbN1JfL8uzH8M3+ZewH1uhrgBi/pzSyqNbAlG0TkjJzTHHcf/H9bWhpA8Yf/i7jR2yTGmhqWrpaGX/0VCFUmK6VP7zL+YhZdwHu1niPOfj+8cmWu2KJvwnSvPBzmrXLOt4/P6xTanB/uuaS0jDaRRfgqS31XLWHGkJn341eIe6wPiXz3fZsowVA0oBZky6SFGhhi0i40tsAdS0eWbuOjOFABXqAihJTxCNCgrhs4AatkK3DAinYZ08gP8Xnjz59oT6jA8fPHc/enjSSWCoQva8ouxgAqyGnXSw36jHM6VAKhgXqjYnR/1CpGkPtXdAHSKH1Vx9W1lv4rgnFEla/Pz1O14n48824IpSxOG/p7pItwwg1wqGqgSrhz+Ip53cLEIdjW/7DOYinpPa6li8o4bKzKEOOLSU4TcT/nAUrZFl7Y4/ODlIu6GB6DXpSLGmoxlKCShvm3RCvWaBlCVxkt749NFQUIuiIUxhkDYXQs0NlprtsItkzhDKkZIGJ1uvNadcm24JULvbqN0PzHFjH2AOkGOX6JYA+RiIYLVsjusKmDINC9nJwn5wHeLyN3afugJmW24tlrMKhE+3ufw9TyXiYrlOr2QU7aifcwViK6APkFliKxH1g4h0MOm485QxoE8xj8hz3Hr+QjYK9mtGgaX4FIQqZQTGdZDozRnCufXahf6A4eWHR8ZeQIlvPgA/f4Tv1EcY4Q3hHKFbs7Ph7bdeb1sPbPqeB+bAMzf2c1HHwoO38i5rNV3aoXl2dLj3/shoHjnHcj8scdYT2DbCozd3KeFsXfWQhhJjJ3jI9++NjPGvR+E+3QDMgoXwj7G5Lm6uX91YTNRmjRtuqB2CNM3opGi0c2kVO20eC3Zmpxdt1mZMOZ8txM3onCKvV4o0d//5GpdpRcevGsTN6Pj1AIlobWvLCygFTFbJmkoaeVja7n/qlz2MIiBWbdOQNvwMipQQDEGga3SYy1Gl2TpOI0nM/1ej4kCOBhEYsMeII1SnB4NuXltIrUA7ZZBLjYIyLEqjXi00DaniXBUxO9RiKEUV/qNkvRfvWrwE8YLSutvuhhMAAAAASUVORK5CYII=";/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var su=function(r,t){return su=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},su(r,t)};function et(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");su(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var d1=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),p1=function(){function r(){this.browser=new d1,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),li=new p1;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(li.wxa=!0,li.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?li.worker=!0:typeof navigator>"u"?(li.node=!0,li.svgSupported=!0):g1(navigator.userAgent,li);function g1(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const ot=li;var mh=12,m1="sans-serif",_i=mh+"px "+m1,y1=20,_1=100,A1="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function S1(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function X1(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var h=r[u].getBoundingClientRect(),f=2*u,v=h.left,c=h.top;o.push(v,c),l=l&&a&&v===a[f]&&c===a[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[i]=e?Bf(s,o):Bf(o,s))}function Cp(r){return r.nodeName.toUpperCase()==="CANVAS"}var $1=/([&<>"'])/g,Q1={"&":"&","<":"<",">":">",'"':""","'":"'"};function ge(r){return r==null?"":(r+"").replace($1,function(t,e){return Q1[e]})}var Z1=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ws=[],q1=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function du(r,t,e,i){return e=e||{},i?Ff(r,t,e):q1&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Ff(r,t,e),e}function Ff(r,t,e){if(ot.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Cp(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(vu(Ws,r,i,n)){e.zrX=Ws[0],e.zrY=Ws[1];return}}e.zrX=e.zrY=0}function bh(r){return r||window.event}function ve(r,t,e){if(t=bh(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&du(r,o,t,e)}else{du(r,t,t,e);var a=K1(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Z1.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function K1(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function J1(r,t,e,i){r.addEventListener(t,e,i)}function j1(r,t,e,i){r.removeEventListener(t,e,i)}var Dp=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},tA=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(!!n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o1&&i&&i.length>1){var a=zf(i)/zf(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=eA(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function ha(){return[1,0,0,1,0,0]}function wh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function rA(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Ki(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function pu(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function xh(r,t,e){var i=t[0],n=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(e),h=Math.cos(e);return r[0]=i*h+o*u,r[1]=-i*u+o*h,r[2]=n*h+s*u,r[3]=-n*u+h*s,r[4]=h*a+u*l,r[5]=h*l-u*a,r}function iA(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function Th(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*i;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-i*l,r[3]=e*l,r[4]=(i*s-o*n)*l,r[5]=(a*n-e*s)*l,r):null}var nA=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(!!t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r}();const wt=nA;var Ba=Math.min,Na=Math.max,zr=new wt,Gr=new wt,Vr=new wt,Hr=new wt,bn=new wt,wn=new wt,aA=function(){function r(t,e,i,n){i<0&&(t=t+i,i=-i),n<0&&(e=e+n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return r.prototype.union=function(t){var e=Ba(t.x,this.x),i=Ba(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Na(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Na(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,a=ha();return pu(a,a,[-e.x,-e.y]),iA(a,a,[i,n]),pu(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,h=t.y,f=t.y+t.height,v=!(ad&&(d=_,md&&(d=A,g=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}zr.x=Vr.x=e.x,zr.y=Hr.y=e.y,Gr.x=Hr.x=e.x+e.width,Gr.y=Vr.y=e.y+e.height,zr.transform(i),Hr.transform(i),Gr.transform(i),Vr.transform(i),t.x=Ba(zr.x,Gr.x,Vr.x,Hr.x),t.y=Ba(zr.y,Gr.y,Vr.y,Hr.y);var l=Na(zr.x,Gr.x,Vr.x,Hr.x),u=Na(zr.y,Gr.y,Vr.y,Hr.y);t.width=l-t.x,t.height=u-t.y},r}();const dt=aA;var Mp="silent";function oA(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:sA}}function sA(){Dp(this.event)}var lA=function(r){bt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ye),xn=function(){function r(t,e){this.x=t,this.y=e}return r}(),uA=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Xs=new dt(0,0,0,0),Ip=function(r){bt(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new xn(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new lA,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new V1(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M(uA,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,n=e.zrY,a=Pp(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new xn(i,n):this.findHover(i,n),u=l.target,h=this.proxy;h.setCursor&&h.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new xn(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=oA(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new xn(e,i);if(Gf(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,h=new dt(e-u,i-u,l,l),f=a.length-1;f>=0;f--){var v=a[f];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Xs.copy(v.getBoundingRect()),v.transform&&Xs.applyTransform(v.transform),Xs.intersect(h)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,m=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function hA(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1;i.silent&&(n=!0)}var s=i.__hostTarget;i=s||i.parent}return n?Mp:!0}return!1}function Gf(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=hA(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==Mp)){t.target=o;break}}}function Pp(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}const fA=Ip;var Lp=32,Tn=7;function cA(r){for(var t=0;r>=Lp;)t|=r&1,r>>=1;return r+t}function Vf(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n=0;)n++;return n-t}function vA(r,t,e){for(e--;t>>1,n(a,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function $s(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])>0){for(s=i-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);a(r,t[e+h])>0?o=h+1:l=h}return l}function Qs(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);a(r,t[e+h])<0?l=h:o=h+1}return l}function dA(r,t){var e=Tn,i,n,a=0;r.length;var o=[];i=[],n=[];function s(c,d){i[a]=c,n[a]=d,a+=1}function l(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;h(c)}}function u(){for(;a>1;){var c=a-2;c>0&&n[c-1]=Tn||w>=Tn);if(T)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(g=0;g=0;g--)r[S+g]=r[b+g];r[A]=o[_];return}for(var w=e;;){var T=0,D=0,x=!1;do if(t(o[_],r[y])<0){if(r[A--]=r[y--],T++,D=0,--d===0){x=!0;break}}else if(r[A--]=o[_--],D++,T=0,--p===1){x=!0;break}while((T|D)=0;g--)r[S+g]=r[b+g];if(d===0){x=!0;break}}if(r[A--]=o[_--],--p===1){x=!0;break}if(D=p-$s(r[y],o,0,p,p-1,t),D!==0){for(A-=D,_-=D,p-=D,S=A+1,b=_+1,g=0;g=Tn||D>=Tn);if(x)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),p===1){for(A-=d,y-=d,S=A+1,b=y+1,g=d-1;g>=0;g--)r[S+g]=r[b+g];r[A]=o[_]}else{if(p===0)throw new Error;for(b=A-(p-1),g=0;gs&&(l=s),Hf(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var oe=1,Hn=2,Wi=4,Uf=!1;function Zs(){Uf||(Uf=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Wf(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var pA=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Wf}return r.prototype.traverse=function(t,e){for(var i=0;i0&&(h.__clipPaths=[]),isNaN(h.z)&&(Zs(),h.z=0),isNaN(h.z2)&&(Zs(),h.z2=0),isNaN(h.zlevel)&&(Zs(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,e,i);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,e,i);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const gA=pA;var Rp;Rp=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const gu=Rp;var To={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-To.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?To.bounceIn(r*2)*.5:To.bounceOut(r*2-1)*.5+.5}};const Ep=To;var Fa=Math.pow,Lr=Math.sqrt,Go=1e-8,kp=1e-4,Yf=Lr(3),za=1/3,Fe=cn(),me=cn(),Ji=cn();function Ir(r){return r>-Go&&rGo||r<-Go}function Rt(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function Xf(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function Vo(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-n,h=s*s-3*o*l,f=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Ir(h)&&Ir(f))if(Ir(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[c++]=d)}else{var m=f*f-4*h*v;if(Ir(m)){var p=f/h,d=-s/o+p,g=-p/2;d>=0&&d<=1&&(a[c++]=d),g>=0&&g<=1&&(a[c++]=g)}else if(m>0){var y=Lr(m),_=h*s+1.5*o*(-f+y),A=h*s+1.5*o*(-f-y);_<0?_=-Fa(-_,za):_=Fa(_,za),A<0?A=-Fa(-A,za):A=Fa(A,za);var d=(-s-(_+A))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var b=(2*h*s-3*o*f)/(2*Lr(h*h*h)),S=Math.acos(b)/3,w=Lr(h),T=Math.cos(S),d=(-s-2*w*T)/(3*o),g=(-s+w*(T+Yf*Math.sin(S)))/(3*o),D=(-s+w*(T-Yf*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[c++]=d),g>=0&&g<=1&&(a[c++]=g),D>=0&&D<=1&&(a[c++]=D)}}return c}function Bp(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,l=0;if(Ir(o)){if(Op(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var h=a*a-4*o*s;if(Ir(h))n[0]=-a/(2*o);else if(h>0){var f=Lr(h),u=(-a+f)/(2*o),v=(-a-f)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Ho(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,l=(i-e)*n+e,u=(s-o)*n+o,h=(l-s)*n+s,f=(h-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=h,a[6]=l,a[7]=i}function mA(r,t,e,i,n,a,o,s,l,u,h){var f,v=.005,c=1/0,d,m,p,g;Fe[0]=l,Fe[1]=u;for(var y=0;y<1;y+=.05)me[0]=Rt(r,e,n,o,y),me[1]=Rt(t,i,a,s,y),p=qi(Fe,me),p=0&&p=0&&u<=1&&(n[l++]=u)}}else{var h=o*o-4*a*s;if(Ir(h)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(h>0){var f=Lr(h),u=(-o+f)/(2*a),v=(-o-f)/(2*a);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Np(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Uo(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function AA(r,t,e,i,n,a,o,s,l){var u,h=.005,f=1/0;Fe[0]=o,Fe[1]=s;for(var v=0;v<1;v+=.05){me[0]=Vt(r,e,n,v),me[1]=Vt(t,i,a,v);var c=qi(Fe,me);c=0&&c=1?1:Vo(0,i,a,1,l,s)&&Rt(0,n,o,1,s[0])}}}var wA=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||re,this.ondestroy=t.ondestroy||re,this.onrestart=t.onrestart||re,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=rt(t)?t:Ep[t]||Fp(t)},r}();const xA=wA;var zp=function(){function r(t){this.value=t}return r}(),TA=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new zp(t);return this.insertEntry(e),e},r.prototype.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++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),CA=function(){function r(t){this._list=new TA,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new zp(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const Ca=CA;var Qf={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 Rr(r){return r=Math.round(r),r<0?0:r>255?255:r}function mu(r){return r<0?0:r>1?1:r}function qs(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Rr(parseFloat(t)/100*255):Rr(parseInt(t,10))}function qn(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?mu(parseFloat(t)/100):mu(parseFloat(t))}function Ks(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Ga(r,t,e){return r+(t-r)*e}function ce(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function yu(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Gp=new Ca(20),Va=null;function Li(r,t){Va&&yu(Va,t),Va=Gp.put(r,Va||t.slice())}function er(r,t){if(!!r){t=t||[];var e=Gp.get(r);if(e)return yu(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in Qf)return yu(t,Qf[i]),Li(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){ce(t,0,0,0,1);return}return ce(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Li(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){ce(t,0,0,0,1);return}return ce(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Li(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),h=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ce(t,+u[0],+u[1],+u[2],1):ce(t,0,0,0,1);h=qn(u.pop());case"rgb":if(u.length>=3)return ce(t,qs(u[0]),qs(u[1]),qs(u[2]),u.length===3?h:qn(u[3])),Li(r,t),t;ce(t,0,0,0,1);return;case"hsla":if(u.length!==4){ce(t,0,0,0,1);return}return u[3]=qn(u[3]),Zf(u,t),Li(r,t),t;case"hsl":if(u.length!==3){ce(t,0,0,0,1);return}return Zf(u,t),Li(r,t),t;default:return}}ce(t,0,0,0,1)}}function Zf(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=qn(r[1]),n=qn(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ce(t,Rr(Ks(o,a,e+1/3)*255),Rr(Ks(o,a,e)*255),Rr(Ks(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function qf(r,t){var e=er(r);if(e){for(var i=0;i<3;i++)t<0?e[i]=e[i]*(1-t)|0:e[i]=(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return vs(e,e.length===4?"rgba":"rgb")}}function DA(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=er(t[n]),s=er(t[a]),l=i-n,u=vs([Rr(Ga(o[0],s[0],l)),Rr(Ga(o[1],s[1],l)),Rr(Ga(o[2],s[2],l)),mu(Ga(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}function vs(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Wo(r,t){var e=er(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function MA(r){return r.type==="linear"}function IA(r){return r.type==="radial"}(function(){return ot.hasGlobalWindow&&rt(window.btoa)?function(r){return window.btoa(unescape(r))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var _u=Array.prototype.slice;function Ke(r,t,e){return(t-r)*e+r}function Js(r,t,e,i){for(var n=t.length,a=0;ai?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)i.length=o;else for(var l=a;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Jf,l=e;if(ie(e)){var u=EA(e);s=u,(u===1&&!xt(e[0])||u===2&&!xt(e[0][0]))&&(o=!0)}else if(xt(e)&&!zo(e))s=Ua;else if($(e))if(!isNaN(+e))s=Ua;else{var h=er(e);h&&(l=h,s=Un)}else if(fs(e)){var f=z({},l);f.colorStops=j(e.colorStops,function(c){return{offset:c.offset,color:er(c.color)}}),MA(e)?s=Au:IA(e)&&(s=Su),l=f}a===0?this.valType=s:(s!==this.valType||s===Jf)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return i&&(v.easing=i,v.easingFunc=rt(i)?i:Ep[i]||Fp(i)),n.push(v),v},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(m,p){return m.time-p.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=Wa(n),u=jf(n),h=0;h=0&&!(o[h].percent<=e);h--);h=v(h,s-2)}else{for(h=f;he);h++);h=v(h-1,s-2)}d=o[h+1],c=o[h]}if(!!(c&&d)){this._lastFr=h,this._lastFrP=e;var p=d.percent-c.percent,g=p===0?1:v((e-c.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var y=i?this._additiveValue:u?Cn:t[l];if((Wa(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=g<1?c.rawValue:d.rawValue;else if(Wa(a))a===Mo?Js(y,c[n],d[n],g):PA(y,c[n],d[n],g);else if(jf(a)){var _=c[n],A=d[n],b=a===Au;t[l]={type:b?"linear":"radial",x:Ke(_.x,A.x,g),y:Ke(_.y,A.y,g),colorStops:j(_.colorStops,function(w,T){var D=A.colorStops[T];return{offset:Ke(w.offset,D.offset,g),color:Do(Js([],w.color,D.color,g))}}),global:A.global},b?(t[l].x2=Ke(_.x2,A.x2,g),t[l].y2=Ke(_.y2,A.y2,g)):t[l].r=Ke(_.r,A.r,g)}else if(u)Js(y,c[n],d[n],g),i||(t[l]=Do(y));else{var S=Ke(c[n],d[n],g);i?this._additiveValue=S:t[l]=S}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===Ua?t[i]=t[i]+n:e===Un?(er(t[i],Cn),Ha(Cn,Cn,n,1),t[i]=Do(Cn)):e===Mo?Ha(t[i],t[i],n,1):e===Vp&&Kf(t[i],t[i],n,1)},r}(),OA=function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){Ah("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,Mt(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Co(u),n),this._trackKeys.push(s)}l.addKeyframe(t,Co(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();const Ch=OA;function Qi(){return new Date().getTime()}var BA=function(r){bt(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(!!e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=Qi()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(gu(i),!e._paused&&e.update())}gu(i)},t.prototype.start=function(){this._running||(this._time=Qi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Qi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Qi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new Ch(e,i.loop);return this.addAnimator(n),n},t}(Ye);const NA=BA;var FA=300,js=ot.domSupported,tl=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=j(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}}(),tc={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ec=!1;function bu(r){var t=r.pointerType;return t==="pen"||t==="touch"}function zA(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function el(r){r&&(r.zrByTouch=!0)}function GA(r,t){return ve(r.dom,new VA(r,t),!0)}function Hp(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var VA=function(){function r(t,e){this.stopPropagation=re,this.stopImmediatePropagation=re,this.preventDefault=re,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Ie={mousedown:function(r){r=ve(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=ve(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=ve(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=ve(this.dom,r);var t=r.toElement||r.relatedTarget;Hp(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){ec=!0,r=ve(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){ec||(r=ve(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=ve(this.dom,r),el(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ie.mousemove.call(this,r),Ie.mousedown.call(this,r)},touchmove:function(r){r=ve(this.dom,r),el(r),this.handler.processGesture(r,"change"),Ie.mousemove.call(this,r)},touchend:function(r){r=ve(this.dom,r),el(r),this.handler.processGesture(r,"end"),Ie.mouseup.call(this,r),+new Date-+this.__lastTouchMomentnc||r<-nc}var Wr=[],Ri=[],il=ha(),nl=Math.abs,Dh=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Ur(this.rotation)||Ur(this.x)||Ur(this.y)||Ur(this.scaleX-1)||Ur(this.scaleY-1)||Ur(this.skewX)||Ur(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&ic(i);return}i=i||ha(),e?this.getLocalTransform(i):ic(i),t&&(e?Ki(i,t,i):rA(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Wr);var i=Wr[0]<0?-1:1,n=Wr[1]<0?-1:1,a=((Wr[0]-i)*e+i)/Wr[0]||0,o=((Wr[1]-n)*e+n)/Wr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ha(),Th(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(!!t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Ki(Ri,t.invTransform,e),e=Ri);var i=this.originX,n=this.originY;(i||n)&&(il[4]=i,il[5]=n,Ki(Ri,e,il),Ri[4]-=i,Ri[5]-=n,e=Ri),this.setLocalTransform(e)}},r.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)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&Se(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&Se(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&nl(t[0]-1)>1e-10&&nl(t[3]-1)>1e-10?Math.sqrt(nl(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){$A(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,h=t.x,f=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||l){var d=i+s,m=n+l;e[4]=-d*a-v*m*o,e[5]=-m*o-c*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=c*a,e[2]=v*o,u&&xh(e,e,u),e[4]+=i+h,e[5]+=n+f,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),fa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function $A(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function Xo(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,h="left",f="top";if(i instanceof Array)l+=Ai(i[0],e.width),u+=Ai(i[1],e.height),h=null,f=null;else switch(i){case"left":l-=n,u+=s,h="right",f="middle";break;case"right":l+=n+o,u+=s,f="middle";break;case"top":l+=o/2,u-=n,h="center",f="bottom";break;case"bottom":l+=o/2,u+=a+n,h="center";break;case"inside":l+=o/2,u+=s,h="center",f="middle";break;case"insideLeft":l+=n,u+=s,f="middle";break;case"insideRight":l+=o-n,u+=s,h="right",f="middle";break;case"insideTop":l+=o/2,u+=n,h="center";break;case"insideBottom":l+=o/2,u+=a-n,h="center",f="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,h="right";break;case"insideBottomLeft":l+=n,u+=a-n,f="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,h="right",f="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=h,r.verticalAlign=f,r}var al="__zr_normal__",ol=fa.concat(["ignore"]),QA=fn(fa,function(r,t){return r[t]=!0,r},{ignore:!1}),Ei={},ZA=new dt(0,0,0,0),Ph=function(){function r(t){this.id=bp(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;if(a.copyTransform(e),i.position!=null){var h=ZA;i.layoutRect?h.copy(i.layoutRect):h.copy(this.getBoundingRect()),n||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ei,i,h):Xo(Ei,i,h),a.x=Ei.x,a.y=Ei.y,o=Ei.align,s=Ei.verticalAlign;var f=i.origin;if(f&&i.rotation!=null){var v=void 0,c=void 0;f==="center"?(v=h.width*.5,c=h.height*.5):(v=Ai(f[0],h.width),c=Ai(f[1],h.height)),u=!0,a.originX=-a.x+v+(n?0:h.x),a.originY=-a.y+c+(n?0:h.y)}}i.rotation!=null&&(a.rotation=i.rotation);var d=i.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var m=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,_=void 0;m&&this.canBeInsideText()?(g=i.insideFill,y=i.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(g),_=!0)):(g=i.outsideFill,y=i.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(g),_=!0)),g=g||"#000",(g!==p.fill||y!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=g,p.stroke=y,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=oe,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Cu:Tu},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&er(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,vs(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},z(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(K(t))for(var i=t,n=Mt(i),a=0;a0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(al,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===al,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(St(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Ah("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var h=!!(u&&u.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!i&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,v=this._textGuide;return f&&f.useState(t,e,i,h),v&&v.useState(t,e,i,h),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~oe),u}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,d);var m=this._textContent,p=this._textGuide;m&&m.useStates(t,e,v),p&&p.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~oe)}},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=St(n,t),o=St(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o0&&e.during&&a[0].during(function(d,m){e.during(m)});for(var v=0;v0||n.force&&!o.length){var T=void 0,D=void 0,x=void 0;if(s){D={},v&&(T={});for(var A=0;A<_;A++){var g=m[A];D[g]=e[g],v?T[g]=i[g]:e[g]=i[g]}}else if(v){x={};for(var A=0;A<_;A++){var g=m[A];x[g]=Co(e[g]),KA(e,i,g)}}var b=new Ch(e,!1,!1,f?jt(d,function(I){return I.targetName===t}):null);b.targetName=t,n.scope&&(b.scope=n.scope),v&&T&&b.whenWithKeys(0,T,m),x&&b.whenWithKeys(0,x,m),b.whenWithKeys(u==null?500:u,s?D:i,m).delay(h||0),r.addAnimator(b,t),o.push(b)}}const Yp=Ph;var Xp=function(r){bt(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var i=this._children,n=0;n=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=St(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=St(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this.handler.off(t,e)},r.prototype.trigger=function(t,e){this.handler.trigger(t,e)},r.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(r<=n)return o;if(r>=a)return s}else{if(r>=n)return o;if(r<=a)return s}else{if(r===n)return o;if(r===a)return s}return(r-n)/l*u+o}function Qt(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return $(r)?nS(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Lt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Qp),r=(+r).toFixed(t),e?r:+r}function Je(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return aS(r)}function aS(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,n=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function oS(r,t){var e=Math.log,i=Math.LN10,n=Math.floor(e(r[1]-r[0])/i),a=Math.round(e(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function sS(r,t){var e=Math.max(Je(r),Je(t)),i=r+t;return e>Qp?i:Lt(i,e)}function Zp(r){var t=Math.PI*2;return(r%t+t)%t}function $o(r){return r>-lc&&r=10&&t++,t}function qp(r,t){var e=Lh(r),i=Math.pow(10,e),n=r/i,a;return t?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,r=a*i,e>=-20?+r.toFixed(e<0?-e:0):r}function Qo(r){var t=parseFloat(r);return t==r&&(t!==0||!$(r)||r.indexOf("x")<=0)?t:NaN}function hS(r){return!isNaN(Qo(r))}function Kp(){return Math.round(Math.random()*9)}function Jp(r,t){return t===0?r:Jp(t,r%t)}function hc(r,t){return r==null?t:t==null?r:r*t/Jp(r,t)}function te(r){throw new Error(r)}function fc(r,t,e){return(t-r)*e+r}var jp="series\0",fS="\0_ec_\0";function Zt(r){return r instanceof Array?r:r==null?[]:[r]}function cc(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var i=0,n=e.length;i=0||a&&St(a,l)<0)){var u=i.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var kS=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],OS=va(kS),BS=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return OS(this,t,e)},r}(),Du=new Ca(50);function NS(r){if(typeof r=="string"){var t=Du.get(r);return t&&t.image}else return r}function ng(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Du.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!ps(t)&&a.pending.push(o)):(t=Ci.loadImage(r,dc,dc),t.__zrImageSrc=r,Du.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function dc(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=se(e,t);return u>s&&(e="",u=0),s=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function og(r,t){var e=t.containerWidth,i=t.font,n=t.contentWidth;if(!e)return"";var a=se(r,i);if(a<=e)return r;for(var o=0;;o++){if(a<=n||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?zS(r,n,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*n/a):0;r=r.substr(0,s),a=se(r,i)}return r===""&&(r=t.placeholder),r}function zS(r,t,e,i){for(var n=0,a=0,o=r.length;ac&&u){var d=Math.floor(c/s);f=f.slice(0,d)}if(r&&a&&h!=null)for(var m=ag(h,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;ps&&fl(e,r.substring(s,u),t,o),fl(e,l[2],t,o,l[1]),s=hl.lastIndex}sn){b>0?(y.tokens=y.tokens.slice(0,b),p(y,A,_),e.lines=e.lines.slice(0,g+1)):e.lines=e.lines.slice(0,g);break t}var I=w.width,R=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")S.percentWidth=I,h.push(S),S.contentWidth=se(S.text,x);else{if(R){var k=w.backgroundColor,O=k&&k.image;O&&(O=NS(O),ps(O)&&(S.width=Math.max(S.width,O.width*C/O.height)))}var B=d&&i!=null?i-A:null;B!=null&&B0&&d+i.accumWidth>i.width&&(h=t.split(` +`),u=!0),i.accumWidth=d}else{var m=sg(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=m.accumWidth+c,f=m.linesWidths,h=m.lines}}else h=t.split(` +`);for(var p=0;p=33&&t<=383}var YS=fn(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function XS(r){return WS(r)?!!YS[r]:!0}function sg(r,t,e,i,n){for(var a=[],o=[],s="",l="",u=0,h=0,f=0;fe:n+h+c>e){h?(s||l)&&(d?(s||(s=l,l="",u=0,h=u),a.push(s),o.push(h-u),l+=v,u+=c,s="",h=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(h),s=v,h=c)):d?(a.push(l),o.push(u),l=v,u=c):(a.push(v),o.push(c));continue}h+=c,d?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(h)),a.length===1&&(h+=n),{accumWidth:h,lines:a,linesWidths:o}}var Mu="__zr_style_"+Math.round(Math.random()*10),vi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},gs={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};vi[Mu]=!0;var gc=["z","z2","invisible"],$S=["invisible"],QS=function(r){bt(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=Mt(e),n=0;n1e-4){s[0]=r-e,s[1]=t-i,l[0]=r+e,l[1]=t+i;return}if(Ya[0]=pl(n)*e+r,Ya[1]=dl(n)*i+t,Xa[0]=pl(a)*e+r,Xa[1]=dl(a)*i+t,u(s,Ya,Xa),h(l,Ya,Xa),n=n%Xr,n<0&&(n=n+Xr),a=a%Xr,a<0&&(a=a+Xr),n>a&&!o?a+=Xr:nn&&($a[0]=pl(c)*e+r,$a[1]=dl(c)*i+t,u(s,$a,s),h(l,$a,l))}var ct={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},$r=[],Qr=[],ke=[],_r=[],Oe=[],Be=[],gl=Math.min,ml=Math.max,Zr=Math.cos,qr=Math.sin,Ze=Math.abs,Iu=Math.PI,Dr=Iu*2,yl=typeof Float32Array<"u",Dn=[];function _l(r){var t=Math.round(r/Iu*1e8)/1e8;return t%2*Iu}function jS(r,t){var e=_l(r[0]);e<0&&(e+=Dr);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=Dr?n=e+Dr:t&&e-n>=Dr?n=e-Dr:!t&&e>n?n=e+(Dr-_l(e-n)):t&&e0&&(this._ux=Ze(i/Yo/t)||0,this._uy=Ze(i/Yo/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ct.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=Ze(t-this._xi),n=Ze(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(ct.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(ct.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(ct.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),Dn[0]=n,Dn[1]=a,jS(Dn,o),n=Dn[0],a=Dn[1];var s=a-n;return this.addData(ct.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=Zr(a)*i+t,this._yi=qr(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(ct.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(ct.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&yl&&(this.data=new Float32Array(e));for(var i=0;ih.length&&(this._expandData(),h=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){ke[0]=ke[1]=Oe[0]=Oe[1]=Number.MAX_VALUE,_r[0]=_r[1]=Be[0]=Be[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;oi||Ze(_)>n||v===e-1)&&(m=Math.sqrt(y*y+_*_),a=p,o=g);break}case ct.C:{var A=t[v++],b=t[v++],p=t[v++],g=t[v++],S=t[v++],w=t[v++];m=yA(a,o,A,b,p,g,S,w,10),a=S,o=w;break}case ct.Q:{var A=t[v++],b=t[v++],p=t[v++],g=t[v++];m=SA(a,o,A,b,p,g,10),a=p,o=g;break}case ct.A:var T=t[v++],D=t[v++],x=t[v++],C=t[v++],I=t[v++],R=t[v++],k=R+I;v+=1,t[v++],d&&(s=Zr(I)*x+T,l=qr(I)*C+D),m=ml(x,C)*gl(Dr,Math.abs(R)),a=Zr(k)*x+T,o=qr(k)*C+D;break;case ct.R:{s=a=t[v++],l=o=t[v++];var O=t[v++],B=t[v++];m=O*2+B*2;break}case ct.Z:{var y=s-a,_=l-o;m=Math.sqrt(y*y+_*_),a=s,o=l;break}}m>=0&&(u[f++]=m,h+=m)}return this._pathLen=h,h},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,h,f,v,c=e<1,d,m,p=0,g=0,y,_=0,A,b;if(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,m=this._pathLen,y=e*m,!y))return;t:for(var S=0;S0&&(t.lineTo(A,b),_=0),w){case ct.M:s=u=i[S++],l=h=i[S++],t.moveTo(u,h);break;case ct.L:{f=i[S++],v=i[S++];var D=Ze(f-u),x=Ze(v-h);if(D>n||x>a){if(c){var C=d[g++];if(p+C>y){var I=(y-p)/C;t.lineTo(u*(1-I)+f*I,h*(1-I)+v*I);break t}p+=C}t.lineTo(f,v),u=f,h=v,_=0}else{var R=D*D+x*x;R>_&&(A=f,b=v,_=R)}break}case ct.C:{var k=i[S++],O=i[S++],B=i[S++],Q=i[S++],P=i[S++],L=i[S++];if(c){var C=d[g++];if(p+C>y){var I=(y-p)/C;Ho(u,k,B,P,I,$r),Ho(h,O,Q,L,I,Qr),t.bezierCurveTo($r[1],Qr[1],$r[2],Qr[2],$r[3],Qr[3]);break t}p+=C}t.bezierCurveTo(k,O,B,Q,P,L),u=P,h=L;break}case ct.Q:{var k=i[S++],O=i[S++],B=i[S++],Q=i[S++];if(c){var C=d[g++];if(p+C>y){var I=(y-p)/C;Uo(u,k,B,I,$r),Uo(h,O,Q,I,Qr),t.quadraticCurveTo($r[1],Qr[1],$r[2],Qr[2]);break t}p+=C}t.quadraticCurveTo(k,O,B,Q),u=B,h=Q;break}case ct.A:var N=i[S++],F=i[S++],W=i[S++],G=i[S++],Z=i[S++],q=i[S++],Y=i[S++],st=!i[S++],V=W>G?W:G,it=Ze(W-G)>.001,ut=Z+q,X=!1;if(c){var C=d[g++];p+C>y&&(ut=Z+q*(y-p)/C,X=!0),p+=C}if(it&&t.ellipse?t.ellipse(N,F,W,G,Y,Z,ut,st):t.arc(N,F,V,Z,ut,st),X)break t;T&&(s=Zr(Z)*W+N,l=qr(Z)*G+F),u=Zr(ut)*W+N,h=qr(ut)*G+F;break;case ct.R:s=u=i[S],l=h=i[S+1],f=i[S++],v=i[S++];var J=i[S++],Bt=i[S++];if(c){var C=d[g++];if(p+C>y){var Tt=y-p;t.moveTo(f,v),t.lineTo(f+gl(Tt,J),v),Tt-=J,Tt>0&&t.lineTo(f+J,v+gl(Tt,Bt)),Tt-=Bt,Tt>0&&t.lineTo(f+ml(J-Tt,0),v+Bt),Tt-=J,Tt>0&&t.lineTo(f,v+ml(Bt-Tt,0));break t}p+=C}t.rect(f,v,J,Bt);break;case ct.Z:if(c){var C=d[g++];if(p+C>y){var I=(y-p)/C;t.lineTo(u*(1-I)+s*I,h*(1-I)+l*I);break t}p+=C}t.closePath(),u=s,h=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=ct,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const bi=tb;function ki(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>i+s||or+s&&a>e+s||at+f&&h>i+f&&h>a+f&&h>s+f||hr+f&&u>e+f&&u>n+f&&u>o+f||ut+u&&l>i+u&&l>a+u||lr+u&&s>e+u&&s>n+u||se||h+un&&(n+=Mn);var v=Math.atan2(l,s);return v<0&&(v+=Mn),v>=i&&v<=n||v+Mn>=i&&v+Mn<=n}function Kr(r,t,e,i,n,a){if(a>t&&a>i||an?s:0}var Ar=bi.CMD,Jr=Math.PI*2,nb=1e-4;function ab(r,t){return Math.abs(r-t)t&&u>i&&u>a&&u>s||u1&&ob(),c=Rt(t,i,a,s,pe[0]),v>1&&(d=Rt(t,i,a,s,pe[1]))),v===2?pt&&s>i&&s>a||s=0&&u<=1){for(var h=0,f=Vt(t,i,a,u),v=0;ve||s<-e)return 0;var l=Math.sqrt(e*e-s*s);$t[0]=-l,$t[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=Jr-1e-4){i=0,n=Jr;var h=a?1:-1;return o>=$t[0]+r&&o<=$t[1]+r?h:0}if(i>n){var f=i;i=n,n=f}i<0&&(i+=Jr,n+=Jr);for(var v=0,c=0;c<2;c++){var d=$t[c];if(d+r>o){var m=Math.atan2(s,d),h=a?1:-1;m<0&&(m=Jr+m),(m>=i&&m<=n||m+Jr>=i&&m+Jr<=n)&&(m>Math.PI/2&&m1&&(e||(s+=Kr(l,u,h,f,i,n))),p&&(l=a[d],u=a[d+1],h=l,f=u),m){case Ar.M:h=a[d++],f=a[d++],l=h,u=f;break;case Ar.L:if(e){if(ki(l,u,a[d],a[d+1],t,i,n))return!0}else s+=Kr(l,u,a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case Ar.C:if(e){if(eb(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=sb(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case Ar.Q:if(e){if(rb(l,u,a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=lb(l,u,a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case Ar.A:var g=a[d++],y=a[d++],_=a[d++],A=a[d++],b=a[d++],S=a[d++];d+=1;var w=!!(1-a[d++]);v=Math.cos(b)*_+g,c=Math.sin(b)*A+y,p?(h=v,f=c):s+=Kr(l,u,v,c,i,n);var T=(i-g)*A/_+g;if(e){if(ib(g,y,A,b,b+S,w,t,T,n))return!0}else s+=ub(g,y,A,b,b+S,w,T,n);l=Math.cos(b+S)*_+g,u=Math.sin(b+S)*A+y;break;case Ar.R:h=l=a[d++],f=u=a[d++];var D=a[d++],x=a[d++];if(v=h+D,c=f+x,e){if(ki(h,f,v,f,t,i,n)||ki(v,f,v,c,t,i,n)||ki(v,c,h,c,t,i,n)||ki(h,c,h,f,t,i,n))return!0}else s+=Kr(v,f,v,c,i,n),s+=Kr(h,c,h,f,i,n);break;case Ar.Z:if(e){if(ki(l,u,h,f,t,i,n))return!0}else s+=Kr(l,u,h,f,i,n);l=h,u=f;break}}return!e&&!ab(u,f)&&(s+=Kr(l,u,h,f,i,n)||0),s!==0}function hb(r,t,e){return lg(r,0,!1,t,e)}function fb(r,t,e,i){return lg(r,t,!0,e,i)}var ug=_t({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},vi),cb={style:_t({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},gs.style)},Al=fa.concat(["invisible","culling","z","z2","zlevel","parent"]),vb=function(r){bt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Tu:i>.2?XA:Cu}else if(e)return Cu}return Tu},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if($(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Wo(e,0)0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Wi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;u=Math.max(u,h==null?4:h)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),fb(s,l/u,e,i)))return!0}if(this.hasFill())return hb(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Wi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:z(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Wi)},t.prototype.createStyle=function(e){return cs(ug,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=z({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=z({},n.shape),z(u,i.shape)):(u=z({},a?this.shape:n.shape),z(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=z({},this.shape);for(var h={},f=Mt(u),v=0;v0},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return cs(db,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var i=e.text;i!=null?i+="":i="";var n=Mh(i,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Ia);hg.prototype.type="tspan";const Pu=hg;var pb=_t({x:0,y:0},vi),gb={style:_t({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},gs.style)};function mb(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var fg=function(r){bt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return cs(pb,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=mb(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return gb},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new dt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ia);fg.prototype.type="image";const Di=fg;function yb(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,l,u,h;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=h=o:o instanceof Array?o.length===1?s=l=u=h=o[0]:o.length===2?(s=u=o[0],l=h=o[1]):o.length===3?(s=o[0],l=h=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],h=o[3]):s=l=u=h=0;var f;s+l>n&&(f=s+l,s*=n/f,l*=n/f),u+h>n&&(f=u+h,u*=n/f,h*=n/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+h>a&&(f=s+h,s*=a/f,h*=a/f),r.moveTo(e+s,i),r.lineTo(e+n-l,i),l!==0&&r.arc(e+n-l,i+l,l,-Math.PI/2,0),r.lineTo(e+n,i+a-u),u!==0&&r.arc(e+n-u,i+a-u,u,0,Math.PI/2),r.lineTo(e+h,i+a),h!==0&&r.arc(e+h,i+a-h,h,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var Zi=Math.round;function cg(r,t,e){if(!!t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Zi(i*2)===Zi(n*2)&&(r.x1=r.x2=hi(i,s,!0)),Zi(a*2)===Zi(o*2)&&(r.y1=r.y2=hi(a,s,!0))),r}}function vg(r,t,e){if(!!t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=hi(i,s,!0),r.y=hi(n,s,!0),r.width=Math.max(hi(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(hi(n+o,s,!1)-r.y,o===0?0:1)),r}}function hi(r,t,e){if(!t)return r;var i=Zi(r*2);return(i+Zi(t))%2===0?i/2:(i+(e?1:-1))/2}var _b=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),Ab={},dg=function(r){bt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new _b},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=vg(Ab,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?yb(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(At);dg.prototype.type="rect";const kt=dg;var Sc={fill:"#000"},bc=2,Sb={style:_t({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},gs.style)},pg=function(r){bt(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=Sc,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,I=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),R=o.calculatedLineHeight,k=0;k=0&&(k=S[R],k.align==="right");)this._placeToken(k,e,T,g,I,"right",_),D-=k.width,I-=k.width,R--;for(C+=(a-(C-p)-(y-I)-D)/2;x<=R;)k=S[x],this._placeToken(k,e,T,g,C+k.width/2,"center",_),C+=k.width,x++;g+=T}},t.prototype._placeToken=function(e,i,n,a,o,s,l){var u=i.rich[e.styleName]||{};u.text=e.text;var h=e.verticalAlign,f=a+n/2;h==="top"?f=a+e.height/2:h==="bottom"&&(f=a+n-e.height/2);var v=!e.isLineHolder&&Sl(u);v&&this._renderBackground(u,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,f-e.height/2,e.width,e.height);var c=!!u.backgroundColor,d=e.textPadding;d&&(o=Mc(o,s,d),f-=e.height/2-d[0]-e.innerHeight/2);var m=this._getOrCreateChild(Pu),p=m.createStyle();m.useStyle(p);var g=this._defaultStyle,y=!1,_=0,A=Dc("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),b=Cc("stroke"in u?u.stroke:"stroke"in i?i.stroke:!c&&!l&&(!g.autoStroke||y)?(_=bc,g.stroke):null),S=u.textShadowBlur>0||i.textShadowBlur>0;p.text=e.text,p.x=o,p.y=f,S&&(p.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,p.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||_i,p.opacity=wo(u.opacity,i.opacity,1),xc(p,u),b&&(p.lineWidth=wo(u.lineWidth,i.lineWidth,_),p.lineDash=ft(u.lineDash,i.lineDash),p.lineDashOffset=i.lineDashOffset||0,p.stroke=b),A&&(p.fill=A);var w=e.contentWidth,T=e.contentHeight;m.setBoundingRect(new dt(Wn(p.x,w,p.textAlign),Yi(p.y,T,p.textBaseline),w,T))},t.prototype._renderBackground=function(e,i,n,a,o,s){var l=e.backgroundColor,u=e.borderWidth,h=e.borderColor,f=l&&l.image,v=l&&!f,c=e.borderRadius,d=this,m,p;if(v||e.lineHeight||u&&h){m=this._getOrCreateChild(kt),m.useStyle(m.createStyle()),m.style.fill=null;var g=m.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=c,m.dirtyShape()}if(v){var y=m.style;y.fill=l||null,y.fillOpacity=ft(e.fillOpacity,1)}else if(f){p=this._getOrCreateChild(Di),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&h){var y=m.style;y.lineWidth=u,y.stroke=h,y.strokeOpacity=ft(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var A=(m||p).style;A.shadowBlur=e.shadowBlur||0,A.shadowColor=e.shadowColor||"transparent",A.shadowOffsetX=e.shadowOffsetX||0,A.shadowOffsetY=e.shadowOffsetY||0,A.opacity=wo(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return Tb(e)&&(i=[e.fontStyle,e.fontWeight,xb(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&ze(i)||e.textFont||e.font},t}(Ia),bb={left:!0,right:1,center:1},wb={top:1,bottom:1,middle:1},wc=["fontStyle","fontWeight","fontSize","fontFamily"];function xb(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?mh+"px":r+"px"}function xc(r,t){for(var e=0;e=0,a=!1;if(r instanceof At){var o=gg(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Oi(s)||Oi(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=z({},i),u=z({},u),u.fill=s):!Oi(u.fill)&&Oi(s)?(a=!0,i=z({},i),u=z({},u),u.fill=kc(s)):!Oi(u.stroke)&&Oi(l)&&(a||(i=z({},i),u=z({},u)),u.stroke=kc(l)),i.style=u}}if(i&&i.z2==null){a||(i=z({},i));var h=r.z2EmphasisLift;i.z2=r.z2+(h!=null?h:Mb)}return i}function kb(r,t,e){if(e&&e.z2==null){e=z({},e);var i=r.z2SelectLift;e.z2=r.z2+(i!=null?i:Ib)}return e}function Ob(r,t,e){var i=St(r.currentStates,t)>=0,n=r.style.opacity,a=i?null:Rb(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=z({},e),o=z({opacity:i?n:a.opacity*.1},o),e.style=o),e}function bl(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return Eb(this,r,t,e);if(r==="blur")return Ob(this,r,e);if(r==="select")return kb(this,r,e)}return e}function Bb(r){r.stateProxy=bl;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=bl),e&&(e.stateProxy=bl)}function Nc(r,t){!wg(r,t)&&!r.__highByOuter&&ur(r,mg)}function Fc(r,t){!wg(r,t)&&!r.__highByOuter&&ur(r,yg)}function Zo(r,t){r.__highByOuter|=1<<(t||0),ur(r,mg)}function qo(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&ur(r,yg)}function Nb(r){ur(r,Nh)}function Ag(r){ur(r,_g)}function Sg(r){ur(r,Pb)}function bg(r){ur(r,Lb)}function wg(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function xg(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(n,a){var o=Oh(a),s=n==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){_g(u)}),s&&e.push(a)),o.isBlured=!1}),M(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Lu(r,t,e,i){var n=i.getModel();e=e||"coordinateSystem";function a(u,h){for(var f=0;f0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Eu(r,t,e){Tg(r,!0),ur(r,Bb),Wb(r,t,e)}function Ub(r){Tg(r,!1)}function Ko(r,t,e,i){i?Ub(r):Eu(r,t,e)}function Wb(r,t,e){var i=yt(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var Gc=["emphasis","blur","select"],Yb={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ku(r,t,e,i){e=e||"itemStyle";for(var n=0;n1&&(o*=wl(d),s*=wl(d));var m=(n===a?-1:1)*wl((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,p=m*o*c/s,g=m*-s*v/o,y=(r+e)/2+qa(f)*p-Za(f)*g,_=(t+i)/2+Za(f)*p+qa(f)*g,A=Wc([1,0],[(v-p)/o,(c-g)/s]),b=[(v-p)/o,(c-g)/s],S=[(-1*v-p)/o,(-1*c-g)/s],w=Wc(b,S);if(Nu(b,S)<=-1&&(w=In),Nu(b,S)>=1&&(w=0),w<0){var T=Math.round(w/In*1e6)/1e6;w=In*2+T%2*In}h.addData(u,y,_,o,s,A,w,f,a)}var Kb=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Jb=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function jb(r){var t=new bi;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=bi.CMD,l=r.match(Kb);if(!l)return t;for(var u=0;uk*k+O*O&&(T=x,D=C),{cx:T,cy:D,x0:-h,y0:-f,x1:T*(n/b-1),y1:D*(n/b-1)}}function sw(r){var t;if(U(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function lw(r,t){var e,i=Yn(t.r,0),n=Yn(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var h=t.cx,f=t.cy,v=!!t.clockwise,c=Xc(u-l),d=c>xl&&c%xl;if(d>Me&&(c=d),!(i>Me))r.moveTo(h,f);else if(c>xl-Me)r.moveTo(h+i*Ni(l),f+i*jr(l)),r.arc(h,f,i,l,u,!v),n>Me&&(r.moveTo(h+n*Ni(u),f+n*jr(u)),r.arc(h,f,n,u,l,v));else{var m=void 0,p=void 0,g=void 0,y=void 0,_=void 0,A=void 0,b=void 0,S=void 0,w=void 0,T=void 0,D=void 0,x=void 0,C=void 0,I=void 0,R=void 0,k=void 0,O=i*Ni(l),B=i*jr(l),Q=n*Ni(u),P=n*jr(u),L=c>Me;if(L){var N=t.cornerRadius;N&&(e=sw(N),m=e[0],p=e[1],g=e[2],y=e[3]);var F=Xc(i-n)/2;if(_=Ne(F,g),A=Ne(F,y),b=Ne(F,m),S=Ne(F,p),D=w=Yn(_,A),x=T=Yn(b,S),(w>Me||T>Me)&&(C=i*Ni(u),I=i*jr(u),R=n*Ni(l),k=n*jr(l),cMe){var it=Ne(g,D),ut=Ne(y,D),X=Ka(R,k,O,B,i,it,v),J=Ka(C,I,Q,P,i,ut,v);r.moveTo(h+X.cx+X.x0,f+X.cy+X.y0),D0&&r.arc(h+X.cx,f+X.cy,it,zt(X.y0,X.x0),zt(X.y1,X.x1),!v),r.arc(h,f,i,zt(X.cy+X.y1,X.cx+X.x1),zt(J.cy+J.y1,J.cx+J.x1),!v),ut>0&&r.arc(h+J.cx,f+J.cy,ut,zt(J.y1,J.x1),zt(J.y0,J.x0),!v))}else r.moveTo(h+O,f+B),r.arc(h,f,i,l,u,!v);if(!(n>Me)||!L)r.lineTo(h+Q,f+P);else if(x>Me){var it=Ne(m,x),ut=Ne(p,x),X=Ka(Q,P,C,I,n,-ut,v),J=Ka(O,B,R,k,n,-it,v);r.lineTo(h+X.cx+X.x0,f+X.cy+X.y0),x0&&r.arc(h+X.cx,f+X.cy,ut,zt(X.y0,X.x0),zt(X.y1,X.x1),!v),r.arc(h,f,n,zt(X.cy+X.y1,X.cx+X.x1),zt(J.cy+J.y1,J.cx+J.x1),v),it>0&&r.arc(h+J.cx,f+J.cy,it,zt(J.y1,J.x1),zt(J.y0,J.x0),!v))}else r.lineTo(h+Q,f+P),r.arc(h,f,n,u,l,v)}r.closePath()}}}var uw=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Eg=function(r){bt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new uw},t.prototype.buildPath=function(e,i){lw(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(At);Eg.prototype.type="sector";const Pa=Eg;var hw=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),kg=function(r){bt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new hw},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t}(At);kg.prototype.type="ring";const Og=kg;function fw(r,t,e,i){var n=[],a=[],o=[],s=[],l,u,h,f;if(i){h=[1/0,1/0],f=[-1/0,-1/0];for(var v=0,c=r.length;v=2){if(i){var a=fw(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],h=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,f=n.length;sei[1]){if(s=!1,a)return s;var h=Math.abs(ei[0]-ti[1]),f=Math.abs(ti[0]-ei[1]);Math.min(h,f)>n.len()&&(h0){var f=h.duration,v=h.delay,c=h.easing,d={duration:f,delay:v||0,easing:c,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function ue(r,t,e,i,n,a){Vh("update",r,t,e,i,n,a)}function or(r,t,e,i,n,a){Vh("enter",r,t,e,i,n,a)}function ea(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Zc(r){return!r.isGroup}function zw(r){return r.shape!=null}function qg(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(l){Zc(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return zw(o)&&(s.shape=z({},o.shape)),s}var a=i(r);t.traverse(function(o){if(Zc(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),ue(o,l,e,yt(o).dataIndex)}}})}function Gw(r,t){return j(r,function(e){var i=e[0];i=es(i,t.x),i=rs(i,t.x+t.width);var n=e[1];return n=es(n,t.y),n=rs(n,t.y+t.height),[i,n]})}function Vw(r,t){var e=es(r.x,t.x),i=rs(r.x+r.width,t.x+t.width),n=es(r.y,t.y),a=rs(r.y+r.height,t.y+t.height);if(i>=e&&a>=n)return{x:e,y:n,width:i-e,height:a-n}}function Wh(r,t,e){var i=z({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),_t(n,e),new Di(i)):Hh(r.replace("path://",""),i,e,"center")}function Hw(r,t,e,i,n){for(var a=0,o=n[n.length-1];a1)return!1;var p=Tl(c,d,h,f)/v;return!(p<0||p>1)}function Tl(r,t,e,i){return r*i-e*t}function Uw(r){return r<=1e-6&&r>=-1e-6}function Yh(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,n=$(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&M(Mt(l),function(h){rn(s,h)||(s[h]=l[h],s.$vars.push(h))});var u=yt(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:_t({content:i,formatterParams:s},n)}}function qc(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function As(r,t){if(r)if(U(r))for(var e=0;e=0&&s.push(l)}),s}}function tm(r,t){return vt(vt({},r,!0),t,!0)}const ox={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},sx={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var is="ZH",Xh="EN",pa=Xh,Eo={},$h={},em=ot.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(is)>-1?is:pa}():pa;function rm(r,t){r=r.toUpperCase(),$h[r]=new Ut(t),Eo[r]=t}function lx(r){if($(r)){var t=Eo[r.toUpperCase()]||{};return r===is||r===Xh?ht(t):vt(ht(t),ht(Eo[pa]),!1)}else return vt(ht(r),ht(Eo[pa]),!1)}function ux(r){return $h[r]}function hx(){return $h[pa]}rm(Xh,ox);rm(is,sx);var Qh=1e3,Zh=Qh*60,ra=Zh*60,Ae=ra*24,iv=Ae*365,Xn={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},to="{yyyy}-{MM}-{dd}",nv={year:"{yyyy}",month:"{yyyy}-{MM}",day:to,hour:to+" "+Xn.hour,minute:to+" "+Xn.minute,second:to+" "+Xn.second,millisecond:Xn.none},Ml=["year","month","day","hour","minute","second","millisecond"],im=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ri(r,t){return r+="","0000".substr(0,t-r.length)+r}function ji(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function fx(r){return r===ji(r)}function cx(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Cs(r,t,e,i){var n=ar(r),a=n[qh(e)](),o=n[tn(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[Ds(e)](),u=n["get"+(e?"UTC":"")+"Day"](),h=n[ga(e)](),f=(h-1)%12+1,v=n[Ms(e)](),c=n[Is(e)](),d=n[Ps(e)](),m=i instanceof Ut?i:ux(i||em)||hx(),p=m.getModel("time"),g=p.get("month"),y=p.get("monthAbbr"),_=p.get("dayOfWeek"),A=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,ri(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ri(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,A[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ri(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,ri(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,ri(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,ri(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,ri(d,3)).replace(/{S}/g,d+"")}function vx(r,t,e,i,n){var a=null;if($(e))a=e;else if(rt(e))a=e(r.value,t,{level:r.level});else{var o=z({},Xn);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(U(a)){var f=r.level==null?0:r.level>=0?r.level:a.length+r.level;f=Math.min(f,a.length-1),a=a[f]}}return Cs(new Date(r.value),a,n,i)}function nm(r,t){var e=ar(r),i=e[tn(t)]()+1,n=e[Ds(t)](),a=e[ga(t)](),o=e[Ms(t)](),s=e[Is(t)](),l=e[Ps(t)](),u=l===0,h=u&&s===0,f=h&&o===0,v=f&&a===0,c=v&&n===1,d=c&&i===1;return d?"year":c?"month":v?"day":f?"hour":h?"minute":u?"second":"millisecond"}function av(r,t,e){var i=xt(r)?ar(r):r;switch(t=t||nm(r,e),t){case"year":return i[qh(e)]();case"half-year":return i[tn(e)]()>=6?1:0;case"quarter":return Math.floor((i[tn(e)]()+1)/4);case"month":return i[tn(e)]();case"day":return i[Ds(e)]();case"half-day":return i[ga(e)]()/24;case"hour":return i[ga(e)]();case"minute":return i[Ms(e)]();case"second":return i[Is(e)]();case"millisecond":return i[Ps(e)]()}}function qh(r){return r?"getUTCFullYear":"getFullYear"}function tn(r){return r?"getUTCMonth":"getMonth"}function Ds(r){return r?"getUTCDate":"getDate"}function ga(r){return r?"getUTCHours":"getHours"}function Ms(r){return r?"getUTCMinutes":"getMinutes"}function Is(r){return r?"getUTCSeconds":"getSeconds"}function Ps(r){return r?"getUTCMilliseconds":"getMilliseconds"}function dx(r){return r?"setUTCFullYear":"setFullYear"}function am(r){return r?"setUTCMonth":"setMonth"}function om(r){return r?"setUTCDate":"setDate"}function sm(r){return r?"setUTCHours":"setHours"}function lm(r){return r?"setUTCMinutes":"setMinutes"}function um(r){return r?"setUTCSeconds":"setSeconds"}function hm(r){return r?"setUTCMilliseconds":"setMilliseconds"}function fm(r){if(!hS(r))return $(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function cm(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ls=wp;function Gu(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(h){return h&&ze(h)?h:"-"}function a(h){return!!(h!=null&&!isNaN(h)&&isFinite(h))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?ar(r):r;if(isNaN(+l)){if(s)return"-"}else return Cs(l,i,e)}if(t==="ordinal")return lu(r)?n(r):xt(r)&&a(r)?r+"":"-";var u=Qo(r);return a(u)?fm(u):lu(r)?n(r):typeof r=="boolean"?r+"":"-"}var ov=["a","b","c","d","e","f","g"],Il=function(r,t){return"{"+r+(t==null?"":t)+"}"};function vm(r,t,e){U(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a':'';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function xi(r,t){return t=t||"transparent",$(r)?r:K(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function sv(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var ko=M,gx=["left","right","top","bottom","width","height"],eo=[["width","left","right"],["height","top","bottom"]];function Kh(r,t,e,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var h=l.getBoundingRect(),f=t.childAt(u+1),v=f&&f.getBoundingRect(),c,d;if(r==="horizontal"){var m=h.width+(v?-v.x+h.x:0);c=a+m,c>i||l.newline?(a=0,c=m,o+=s+e,s=h.height):s=Math.max(s,h.height)}else{var p=h.height+(v?-v.y+h.y:0);d=o+p,d>n||l.newline?(a+=s+e,o=0,d=p,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=c+e:o=d+e)})}var ia=Kh;Et(Kh,"vertical");Et(Kh,"horizontal");function ma(r,t,e){e=Ls(e||0);var i=t.width,n=t.height,a=Qt(r.left,i),o=Qt(r.top,n),s=Qt(r.right,i),l=Qt(r.bottom,n),u=Qt(r.width,i),h=Qt(r.height,n),f=e[2]+e[0],v=e[1]+e[3],c=r.aspect;switch(isNaN(u)&&(u=i-s-v-a),isNaN(h)&&(h=n-l-f-o),c!=null&&(isNaN(u)&&isNaN(h)&&(c>i/n?u=i*.8:h=n*.8),isNaN(u)&&(u=c*h),isNaN(h)&&(h=u/c)),isNaN(a)&&(a=i-s-u-v),isNaN(o)&&(o=n-l-h-f),r.left||r.right){case"center":a=i/2-u/2-e[3];break;case"right":a=i-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-h/2-e[0];break;case"bottom":o=n-h-f;break}a=a||0,o=o||0,isNaN(u)&&(u=i-v-a-(s||0)),isNaN(h)&&(h=n-f-o-(l||0));var d=new dt(a+e[3],o+e[0],u,h);return d.margin=e,d}function ya(r){var t=r.layoutMode||r.constructor.layoutMode;return K(t)?t:t?{type:t}:null}function nn(r,t,e){var i=e&&e.ignoreSize;!U(i)&&(i=[i,i]);var n=o(eo[0],0),a=o(eo[1],1);u(eo[0],r,n),u(eo[1],r,a);function o(h,f){var v={},c=0,d={},m=0,p=2;if(ko(h,function(_){d[_]=r[_]}),ko(h,function(_){s(t,_)&&(v[_]=d[_]=t[_]),l(v,_)&&c++,l(d,_)&&m++}),i[f])return l(t,h[1])?d[h[2]]=null:l(t,h[2])&&(d[h[1]]=null),d;if(m===p||!c)return d;if(c>=p)return v;for(var g=0;g=0;l--)s=vt(s,n[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var n=e+"Index",a=e+"Id";return Ma(this.ecModel,e,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Ut);ig(vn,Ut);ds(vn);nx(vn);ax(vn,_x);function _x(r){var t=[];return M(vn.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=j(t,function(e){return Ge(e).main}),r!=="dataset"&&St(t,"dataset")<=0&&t.unshift("dataset"),t}const Ct=vn;var dm="";typeof navigator<"u"&&(dm=navigator.platform||"");var Fi="rgba(0, 0, 0, 0.2)";const Ax={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Fi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Fi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Fi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Fi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Fi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Fi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:dm.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var pm=at(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),be="original",ne="arrayRows",Xe="objectRows",hr="keyedColumns",Er="typedArray",gm="unknown",rr="column",dn="row",ae={Must:1,Might:2,Not:3},mm=Ot();function Sx(r){mm(r).datasetMap=at()}function bx(r,t,e){var i={},n=ym(t);if(!n||!r)return i;var a=[],o=[],s=t.ecModel,l=mm(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,h,f;r=r.slice(),M(r,function(m,p){var g=K(m)?m:r[p]={name:m};g.type==="ordinal"&&h==null&&(h=p,f=d(g)),i[g.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});M(r,function(m,p){var g=m.name,y=d(m);if(h==null){var _=v.valueWayDim;c(i[g],_,y),c(o,_,y),v.valueWayDim+=y}else if(h===p)c(i[g],0,y),c(a,0,y);else{var _=v.categoryWayDim;c(i[g],_,y),c(o,_,y),v.categoryWayDim+=y}});function c(m,p,g){for(var y=0;yt)return r[i];return r[e-1]}function Ix(r,t,e,i,n,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var h=o==null||!i?e:Mx(i,o);if(h=h||e,!(!h||!h.length)){var f=h[l];return n&&(u[n]=f),s.paletteIdx=(l+1)%h.length,f}}function Px(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var ro,Pn,uv,hv="\0_ec_inner",Lx=1,Am=function(r){et(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,i,n,a,o,s){a=a||{},this.option=null,this._theme=new Ut(a),this._locale=new Ut(o),this._optionManager=s},t.prototype.setOption=function(e,i,n){var a=vv(i);this._optionManager.setOption(e,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,i){return this._resetOption(e,vv(i))},t.prototype._resetOption=function(e,i){var n=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?uv(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&M(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=at(),u=i&&i.replaceMergeMainTypeMap;Sx(this),M(e,function(f,v){f!=null&&(Ct.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?ht(f):vt(n[v],f,!0))}),u&&u.each(function(f,v){Ct.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Ct.topologicalTravel(s,Ct.getAllClassMainTypes(),h,this);function h(f){var v=Dx(this,f,Zt(e[f])),c=a.get(f),d=c?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",m=vS(c,v,d);AS(m,f,Ct),n[f]=null,a.set(f,null),o.set(f,0);var p=[],g=[],y=0,_;M(m,function(A,b){var S=A.existing,w=A.newOption;if(!w)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var T=f==="series",D=Ct.getClass(f,A.keyInfo.subType,!T);if(!D)return;if(f==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===D)S.name=A.keyInfo.name,S.mergeOption(w,this),S.optionUpdated(w,!1);else{var x=z({componentIndex:b},A.keyInfo);S=new D(w,this,this,x),z(S,x),A.brandNew&&(S.__requireNewView=!0),S.init(w,this,this),S.optionUpdated(null,!0)}}S?(p.push(S.option),g.push(S),y++):(p.push(void 0),g.push(void 0))},this),n[f]=p,a.set(f,g),o.set(f,y),f==="series"&&ro(this)}this._seriesIndices||ro(this)},t.prototype.getOption=function(){var e=ht(this.option);return M(e,function(i,n){if(Ct.hasClass(n)){for(var a=Zt(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!ca(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[n]=a}}),delete e[hv],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,i){var n=this._componentsMap.get(e);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function Hx(r,t){return r.join(",")===t.join(",")}const Ux=Fx;var Ce=M,_a=K,dv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ll(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,i=dv.length;e=0;p--){var g=r[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,c)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&v>=0&&y>0||l==="samesign"&&v<=0&&y<0){v=sS(v,y),m=y;break}}}return i[0]=v,i[1]=m,i})})}var Es=function(){function r(t){this.data=t.data||(t.sourceFormat===hr?{}:[]),this.sourceFormat=t.sourceFormat||gm,this.seriesLayoutBy=t.seriesLayoutBy||rr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;im&&(m=_)}c[0]=d,c[1]=m}},n=function(){return this._data?this._data.length/this._dimSize:0};Sv=(t={},t[ne+"_"+rr]={pure:!0,appendData:a},t[ne+"_"+dn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Xe]={pure:!0,appendData:a},t[hr]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var h=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)h.push(l[f])})}},t[be]={appendData:a},t[Er]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(m=o.interpolatedValue[p])}return m!=null?m+"":""})}},r.prototype.getRawValue=function(t,e){return an(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r}();function Tv(r){var t,e;return K(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function na(r){return new sT(r)}var sT=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,i=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=h(this._modBy),s=this._modDataCount||0,l=h(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function h(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(i)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!i&&(f||c1&&i>0?s:o}};return a;function o(){return t=r?null:ln?-this._resultLT:0},r}(),uT=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Oo(t,e)},r}();function hT(r,t){var e=new uT,i=r.data,n=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==rr&&te(o);var s=[],l={},u=r.dimensionsDefine;if(u)M(u,function(m,p){var g=m.name,y={index:p,name:g,displayName:m.displayName};if(s.push(y),g!=null){var _="";rn(l,g)&&te(_),l[g]=y}});else for(var h=0;h65535?yT:_T}function zi(){return[1/0,-1/0]}function AT(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Mv(r,t,e,i,n){var a=Em[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;up[1]&&(p[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=j(o,function(y){return y.property}),h=0;hg[1]&&(g[1]=p)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&it)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks,a=n[t],o=[];if(!a)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,h=0,f=this.count();h=0&&l<0)&&(s=d,l=c,u=0),c===l&&(o[u++]=h))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a=f&&y<=v||isNaN(y))&&(l[u++]=m),m++}d=!0}else if(a===2){for(var p=c[n[0]],_=c[n[1]],A=t[n[1]][0],b=t[n[1]][1],g=0;g=f&&y<=v||isNaN(y))&&(S>=A&&S<=b||isNaN(S))&&(l[u++]=m),m++}d=!0}}if(!d)if(a===1)for(var g=0;g=f&&y<=v||isNaN(y))&&(l[u++]=w)}else for(var g=0;gt[x][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(g))}return ug[1]&&(g[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),h,f,v,c=new(Rn(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;dh&&(h=f,v=A)}C>0&&Ch-d&&(l=h-d,s.length=l);for(var m=0;mf[1]&&(f[1]=g),v[c++]=y}return a._count=c,a._indices=v,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(!!this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();al&&(l=f)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,a=0;a=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,i,n,a){return Oo(e[a],this._dimensions[a])}kl={arrayRows:t,objectRows:function(e,i,n,a){return Oo(e[i],this._dimensions[a])},keyedColumns:t,original:function(e,i,n,a){var o=e&&(e.value==null?e:e.value);return Oo(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,i,n,a){return e[a]}}}(),r}(),ST=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),i=!!e.length,n,a;if(io(t)){var o=t,s=void 0,l=void 0,u=void 0;if(i){var h=e[0];h.prepareSource(),u=h.getSource(),s=u.data,l=u.sourceFormat,a=[h._getVersionSign()]}else s=o.get("data",!0),l=le(s)?Er:be,a=[];var f=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=ft(f.seriesLayoutBy,v.seriesLayoutBy)||null,d=ft(f.sourceHeader,v.sourceHeader),m=ft(f.dimensions,v.dimensions),p=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||m;n=p?[Vu(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:m},l)]:[]}else{var g=t;if(i){var y=this._applyTransform(e);n=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);n=[Vu(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var a="";t.length!==1&&Iv(a)}var o,s=[],l=[];return M(t,function(u){u.prepareSource();var h=u.getSource(n||0),f="";n!=null&&!h&&Iv(f),s.push(h),l.push(u._getVersionSign())}),i?o=gT(i,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[jx(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return M(r.blocks,function(n){var a=Nm(n);a>=t&&(t=a+ +(i&&(!a||Uu(n)&&!n.noHeader)))}),t}return 0}function xT(r,t,e,i){var n=t.noHeader,a=CT(Nm(t)),o=[],s=t.blocks||[];nr(!s||U(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(rn(u,l)){var h=new lT(u[l],null);s.sort(function(d,m){return h.evaluate(d.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(d,m){var p=t.valueFormatter,g=Bm(d)(p?z(z({},r),{valueFormatter:p}):r,d,m>0?a.html:0,i);g!=null&&o.push(g)});var f=r.renderMode==="richText"?o.join(a.richText):Wu(o.join(""),n?e:a.html);if(n)return f;var v=Gu(t.header,"ordinal",r.useUTC),c=Om(i,r.renderMode).nameStyle;return r.renderMode==="richText"?Fm(r,v,c)+a.richText+f:Wu('
'+ge(v)+"
"+f,e)}function TT(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,h=t.valueFormatter||r.valueFormatter||function(A){return A=U(A)?A:[A],j(A,function(b,S){return Gu(b,U(c)?c[S]:c,u)})};if(!(a&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),v=a?"":Gu(l,"ordinal",u),c=t.valueType,d=o?[]:h(t.value),m=!s||!a,p=!s&&a,g=Om(i,n),y=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":f)+(a?"":Fm(r,v,y))+(o?"":IT(r,d,m,p,_)):Wu((s?"":f)+(a?"":DT(v,!s,y))+(o?"":MT(d,m,p,_)),e)}}function Pv(r,t,e,i,n,a){if(!!r){var o=Bm(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function CT(r){return{html:bT[r],richText:wT[r]}}function Wu(r,t){var e='
',i="margin: "+t+"px 0 0";return'
'+r+e+"
"}function DT(r,t,e){var i=t?"margin-left:2px":"";return''+ge(r)+""}function MT(r,t,e,i){var n=e?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return r=U(r)?r:[r],''+j(r,function(o){return ge(o)}).join("  ")+""}function Fm(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function IT(r,t,e,i,n){var a=[n],o=i?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(U(t)?t.join(" "):t,a)}function PT(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return xi(i)}function zm(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Ol=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Kp()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,i){var n=i==="richText"?this._generateStyleName():null,a=px({color:e,type:t,renderMode:i,markerId:n});return $(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};U(e)?M(e,function(a){return z(i,a)}):z(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r}();function LT(r){var t=r.series,e=r.dataIndex,i=r.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=U(s),u=PT(t,e),h,f,v,c;if(o>1||l&&!o){var d=RT(s,t,e,a,u);h=d.inlineValues,f=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var m=n.getDimensionInfo(a[0]);c=h=an(n,e,a[0]),f=m.type}else c=h=l?s[0]:s;var p=Rh(t),g=p&&t.name||"",y=n.getName(e),_=i?g:y;return Aa("section",{header:g,noHeader:i||!p,sortParam:c,blocks:[Aa("nameValue",{markerType:"item",markerColor:u,name:_,noName:!ze(_),value:h,valueType:f})].concat(v||[])})}function RT(r,t,e,i,n){var a=t.getData(),o=fn(r,function(f,v,c){var d=a.getDimensionInfo(c);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];i.length?M(i,function(f){h(an(a,e,f),f)}):M(r,h);function h(f,v){var c=a.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(Aa("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:f,valueType:c.type})):(s.push(f),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Sr=Ot();function no(r,t){return r.getName(t)||r.getId(t)}var ET="__universalTransitionEnabled",Os=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=na({count:OT,reset:BT}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var a=Sr(this).sourceManager=new ST(this);a.prepareSource();var o=this.getInitialData(e,n);Rv(o,this),this.dataTask.context.data=o,Sr(this).dataBeforeProcessed=o,Lv(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=ya(this),a=n?Rs(e):{},o=this.subType;Ct.hasClass(o)&&(o+="Series"),vt(e,i.getTheme().get(this.subType)),vt(e,this.getDefaultOption()),cc(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&nn(e,a,n)},t.prototype.mergeOption=function(e,i){e=vt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=ya(this);n&&nn(this.option,e,n);var a=Sr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,i);Rv(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Sr(this).dataBeforeProcessed=o,Lv(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!le(e))for(var i=["show"],n=0;nthis.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,n){var a=this.ecModel,o=Jh.prototype.getColorFromPalette.call(this,e,i,n);return o||(o=a.getColorFromPalette(e,i,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var n=this.option.selectedMap;if(!!n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},t.prototype.isSelected=function(e,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[no(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[ET])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){K(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,h=0;h0&&this._innerSelect(e,i)}},t.registerClass=function(e){return Ct.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Ct);We(Os,oT);We(Os,Jh);ig(Os,Ct);function Lv(r){var t=r.name;Rh(r)||(r.name=kT(r)||t)}function kT(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),i=[];return M(e,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function OT(r){return r.model.getRawData().count()}function BT(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),NT}function NT(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Rv(r,t){M(L1(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,Et(FT,t))})}function FT(r,t){var e=Yu(r);return e&&e.setOutputEnd((t||this).count()),t}function Yu(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var i=e.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(r.uid))}return i}}const Ti=Os;var af=function(){function r(){this.group=new Wt,this.uid=Ts("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){},r.prototype.updateLayout=function(t,e,i,n){},r.prototype.updateVisual=function(t,e,i,n){},r.prototype.toggleBlurSeries=function(t,e,i){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();kh(af);ds(af);const sr=af;function of(){var r=Ot();return function(t){var e=r(t),i=t.pipelineContext,n=!!e.large,a=!!e.progressiveRender,o=e.large=!!(i&&i.large),s=e.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var Gm=Ot(),zT=of(),sf=function(){function r(){this.group=new Wt,this.uid=Ts("viewChart"),this.renderTask=na({plan:GT,reset:VT}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.highlight=function(t,e,i,n){var a=t.getData(n&&n.dataType);!a||kv(a,n,"emphasis")},r.prototype.downplay=function(t,e,i,n){var a=t.getData(n&&n.dataType);!a||kv(a,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.eachRendered=function(t){As(this.group,t)},r.markUpdateMethod=function(t,e){Gm(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Ev(r,t,e){r&&Ou(r)&&(t==="emphasis"?Zo:qo)(r,e)}function kv(r,t,e){var i=Si(r,t),n=t&&t.highlightKey!=null?Xb(t.highlightKey):null;i!=null?M(Zt(i),function(a){Ev(r.getItemGraphicEl(a),e,n)}):r.eachItemGraphicEl(function(a){Ev(a,e,n)})}kh(sf);ds(sf);function GT(r){return zT(r.model)}function VT(r){var t=r.model,e=r.ecModel,i=r.api,n=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=n&&Gm(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,i,n),HT[l]}var HT={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const ir=sf;var ns="\0__throttleOriginMethod",Ov="\0__throttleRate",Bv="\0__throttleType";function lf(r,t,e){var i,n=0,a=0,o=null,s,l,u,h;t=t||0;function f(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],d=0;d=0?f():o=setTimeout(f,-s),n=i};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){h=c},v}function Vm(r,t,e,i){var n=r[t];if(!!n){var a=n[ns]||n,o=n[Bv],s=n[Ov];if(s!==e||o!==i){if(e==null||!i)return r[t]=a;n=r[t]=lf(a,e,i==="debounce"),n[ns]=a,n[Bv]=i,n[Ov]=e}return n}}function Xu(r,t){var e=r[t];e&&e[ns]&&(e.clear&&e.clear(),r[t]=e[ns])}var Nv=Ot(),Fv={itemStyle:va(jg,!0),lineStyle:va(Jg,!0)},UT={lineStyle:"stroke",itemStyle:"fill"};function Hm(r,t){var e=r.visualStyleMapper||Fv[t];return e||(console.warn("Unkown style type '"+t+"'."),Fv.itemStyle)}function Um(r,t){var e=r.visualDrawType||UT[t];return e||(console.warn("Unkown style type '"+t+"'."),"fill")}var WT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=Hm(r,i),o=a(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Um(r,i),u=o[l],h=rt(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||h||f){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||rt(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||rt(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&h)return e.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var m=r.getDataParams(d),p=z({},o);p[l]=h(m),c.setItemVisual(d,"style",p)}}}},En=new Ut,YT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=Hm(r,i),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){En.option=l[i];var u=n(En),h=o.ensureUniqueItemVisual(s,"style");z(h,u),En.option.decal&&(o.setItemVisual(s,"decal",En.option.decal),En.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},XT={performRawSeries:!0,overallReset:function(r){var t=at();r.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+i,a=t.get(n);a||(a={},t.set(n,a)),Nv(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),n={},a=e.getData(),o=Nv(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Um(e,s);a.each(function(u){var h=a.getRawIndex(u);n[h]=u}),i.each(function(u){var h=n[u],f=a.getItemVisual(h,"colorFromPalette");if(f){var v=a.ensureUniqueItemVisual(h,"style"),c=i.getName(u)||u+"",d=i.count();v[l]=e.getColorFromPalette(c,o,d)}})}})}},ao=Math.PI;function $T(r,t){t=t||{},_t(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Wt,i=new kt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var n=new qt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new kt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new Gh({shape:{startAngle:-ao/2,endAngle:-ao/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ao*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ao*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),h=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:h}),a.setShape({x:u-l,y:h-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var QT=function(){function r(t,e,i,n){this._stageTaskMap=at(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&a>=i.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=at();t.eachSeries(function(n){var a=n.getProgressive(),o=n.uid;i.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:a&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;M(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";nr(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,e,i),n.overallReset&&this._createOverallStageTask(n,a,e,i)},this)},r.prototype.prepareView=function(t,e,i,n){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},r.prototype._performStageTasks=function(t,e,i,n){n=n||{};var a=!1,o=this;M(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var h=o._stageTaskMap.get(l.uid),f=h.seriesTaskMap,v=h.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(p){s(n,p)&&(p.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,i);var m=o.getPerformArgs(v,n.block);d.each(function(p){p.perform(m)}),v.perform(m)&&(a=!0)}else f&&f.each(function(p,g){s(n,p)&&p.dirty();var y=o.getPerformArgs(p,n.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(p.context.model),o.updatePayload(p,i),p.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.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)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,i,n){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=at(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(h):l?i.eachRawSeriesByType(l,h):u&&u(i,n).each(h);function h(f){var v=f.uid,c=s.set(v,o&&o.get(v)||na({plan:jT,reset:tC,count:rC}));c.context={model:f,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,c)}},r.prototype._createOverallStageTask=function(t,e,i,n){var a=this,o=e.overallTask=e.overallTask||na({reset:ZT});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=at(),u=t.seriesType,h=t.getTargetSeries,f=!0,v=!1,c="";nr(!t.createOnAllSeries,c),u?i.eachRawSeriesByType(u,d):h?h(i,n).each(d):(f=!1,M(i.getSeries(),d));function d(m){var p=m.uid,g=l.set(p,s&&s.get(p)||(v=!0,na({reset:qT,onDirty:JT})));g.context={model:m,overallProgress:f},g.agent=o,g.__block=f,a._pipe(m,g)}v&&o.dirty()},r.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return rt(t)&&(t={overallReset:t,seriesType:iC(t)}),t.uid=Ts("stageHandler"),e&&(t.visualType=e),t},r}();function ZT(r){r.overallReset(r.ecModel,r.api,r.payload)}function qT(r){return r.overallProgress&&KT}function KT(){this.agent.dirty(),this.getDownstream().dirty()}function JT(){this.agent&&this.agent.dirty()}function jT(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function tC(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Zt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?j(t,function(e,i){return Wm(i)}):eC}var eC=Wm(0);function Wm(r){return function(t,e){var i=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var a=t.start;a0&&c===u.length-v.length){var d=u.slice(0,c);d!=="data"&&(e.mainType=d,e[v.toLowerCase()]=l,h=!0)}}s.hasOwnProperty(u)&&(i[u]=l,h=!0),h||(n[u]=l)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},r.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return h(l,o,"mainType")&&h(l,o,"subType")&&h(l,o,"index","componentIndex")&&h(l,o,"name")&&h(l,o,"id")&&h(u,a,"name")&&h(u,a,"dataIndex")&&h(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,a));function h(f,v,c,d){return f[c]==null||v[d||c]===f[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),$u=["symbol","symbolSize","symbolRotate","symbolOffset"],Hv=$u.concat(["symbolKeepAspect"]),sC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<$u.length;o++){var s=$u[o],l=r.get(s);rt(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,e.setVisual(z({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),t.isSeriesFiltered(r))return;var u=Mt(n);function h(f,v){for(var c=r.getRawValue(v),d=r.getDataParams(v),m=0;m=0&&fi(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Zu(r,t,e){for(var i=t.type==="radial"?CC(r,t,e):TC(r,t,e),n=t.colorStops,a=0;a0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:xt(r)?[r]:U(r)?r:null}function qm(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&MC(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=j(e,function(a){return a/n}),i/=n)}return[e,i]}var IC=new bi(!0);function os(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Uv(r){return typeof r=="string"&&r!=="none"}function ss(r){var t=r.fill;return t!=null&&t!=="none"}function Wv(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function Yv(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function qu(r,t,e){var i=ng(t.image,t.__image,e);if(ps(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*R1),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function PC(r,t,e,i){var n,a=os(e),o=ss(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var h=t.path||IC,f=t.__dirty;if(!i){var v=e.fill,c=e.stroke,d=o&&!!v.colorStops,m=a&&!!c.colorStops,p=o&&!!v.image,g=a&&!!c.image,y=void 0,_=void 0,A=void 0,b=void 0,S=void 0;(d||m)&&(S=t.getBoundingRect()),d&&(y=f?Zu(r,v,S):t.__canvasFillGradient,t.__canvasFillGradient=y),m&&(_=f?Zu(r,c,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(A=f||!t.__canvasFillPattern?qu(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=A),g&&(b=f||!t.__canvasStrokePattern?qu(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=A),d?r.fillStyle=y:p&&(A?r.fillStyle=A:o=!1),m?r.strokeStyle=_:g&&(b?r.strokeStyle=b:a=!1)}var w=t.getGlobalScale();h.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,D;r.setLineDash&&e.lineDash&&(n=qm(t),T=n[0],D=n[1]);var x=!0;(u||f&Wi)&&(h.setDPR(r.dpr),l?h.setContext(null):(h.setContext(r),x=!1),h.reset(),t.buildPath(h,t.shape,i),h.toStatic(),t.pathUpdated()),x&&h.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=D),i||(e.strokeFirst?(a&&Yv(r,e),o&&Wv(r,e)):(o&&Wv(r,e),a&&Yv(r,e))),T&&r.setLineDash([])}function LC(r,t,e){var i=t.__image=ng(e.image,t.__image,t,t.onload);if(!(!i||!ps(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var u=e.sx||0,h=e.sy||0;r.drawImage(i,u,h,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,h=e.sy,f=o-u,v=s-h;r.drawImage(i,u,h,f,v,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function RC(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||_i,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=qm(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(os(e)&&r.strokeText(n,e.x,e.y),ss(e)&&r.fillText(n,e.x,e.y)):(ss(e)&&r.fillText(n,e.x,e.y),os(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var Xv=["shadowBlur","shadowOffsetX","shadowOffsetY"],$v=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Km(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){ee(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?vi.opacity:o}(i||t.blend!==e.blend)&&(a||(ee(r,n),a=!0),r.globalCompositeOperation=t.blend||vi.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,i,n){if(!this[Gt]){if(this._disposed){this.id;return}var a,o,s;if(K(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Gt]=!0,!this._model||i){var l=new Ux(this._api),u=this._theme,h=this._model=new Sm;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},ju);var f={seriesTransition:s,optionChanged:!0};if(n)this[Jt]={silent:a,updateParams:f},this[Gt]=!1,this.getZr().wakeUp();else{try{Vi(this),br.update.call(this,null,f)}catch(v){throw this[Jt]=null,this[Gt]=!1,v}this._ssr||this._zr.flush(),this[Jt]=null,this[Gt]=!1,kn.call(this,a),On.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||WC&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!ot.svgSupported){var e=this._zr,i=e.storage.getDisplayList();return M(i,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var i=e.excludeComponents,n=this._model,a=[],o=this;M(i,function(l){n.eachComponent({mainType:l},function(u){var h=o._componentsMap[u.__viewId];h.group.ignore||(a.push(h),h.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return M(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var i=e.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(ld[n]){var l=s,u=s,h=-s,f=-s,v=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();M(oa,function(_,A){if(_.group===n){var b=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ht(e)),S=_.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),h=o(S.right,h),f=o(S.bottom,f),v.push({dom:b,left:S.left,top:S.top})}}),l*=c,u*=c,h*=c,f*=c;var d=h-l,m=f-u,p=Ci.createCanvas(),g=sc(p,{renderer:i?"svg":"canvas"});if(g.resize({width:d,height:m}),i){var y="";return M(v,function(_){var A=_.left-l,b=_.top-u;y+=''+_.dom+""}),g.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new kt({shape:{x:0,y:0,width:d,height:m},style:{fill:e.connectedBackgroundColor}})),M(v,function(_){var A=new Di({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});g.add(A)}),g.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i){return Gl(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return Gl(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var n=this._model,a,o=ul(n,e);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var h=u.coordinateSystem;if(h&&h.containPoint)a=a||!!h.containPoint(i);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(i,u))}},this)},this),!!a},t.prototype.getVisual=function(e,i){var n=this._model,a=ul(n,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?uC(s,l,i):hC(s,i)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;M(aD,function(i){var n=function(a){var o=e.getModel(),s=a.target,l,u=i==="globalout";if(u?l={}:s&&Qn(s,function(d){var m=yt(d);if(m&&m.dataIndex!=null){var p=m.dataModel||o.getSeriesByIndex(m.seriesIndex);return l=p&&p.getDataParams(m.dataIndex,m.dataType)||{},!0}else if(m.eventData)return l=z({},m.eventData),!0},!0),l){var h=l.componentType,f=l.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",f=l.seriesIndex);var v=h&&f!=null&&o.getComponent(h,f),c=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=a,l.type=i,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},e.trigger(i,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(i,n,e)}),M(aa,function(i,n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),M(["selectchanged"],function(i){e._messageCenter.on(i,function(n){this.trigger(i,n)},e)}),fC(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&eg(this.getDom(),ff,"");var i=this,n=i._api,a=i._model;M(i._componentsViews,function(o){o.dispose(a,n)}),M(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete oa[i.id]},t.prototype.resize=function(e){if(!this[Gt]){if(this._disposed){this.id;return}this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=e&&e.silent;this[Jt]&&(a==null&&(a=this[Jt].silent),n=!0,this[Jt]=null),this[Gt]=!0;try{n&&Vi(this),br.update.call(this,{type:"resize",animation:z({duration:0},e&&e.animation)})}catch(o){throw this[Gt]=!1,o}this[Gt]=!1,kn.call(this,a),On.call(this,a)}}},t.prototype.showLoading=function(e,i){if(this._disposed){this.id;return}if(K(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!!th[e]){var n=th[e](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var i=z({},e);return i.type=aa[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(K(i)||(i={silent:!!i}),!!ls[e.type]&&!!this._model){if(this[Gt]){this._pendingActions.push(e);return}var n=i.silent;Hl.call(this,e,n);var a=i.flush;a?this._zr.flush():a!==!1&&ot.browser.weChat&&this._throttledZrFlush(),kn.call(this,n),On.call(this,n)}},t.prototype.updateLabelLayout=function(){Pe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var i=e.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Vi=function(f){var v=f._scheduler;v.restorePipelines(f._model),v.prepareStageTasks(),zl(f,!0),zl(f,!1),v.plan()},zl=function(f,v){for(var c=f._model,d=f._scheduler,m=v?f._componentsViews:f._chartsViews,p=v?f._componentsMap:f._chartsMap,g=f._zr,y=f._api,_=0;_v.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&v.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=f._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,v){var c=f.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function s(f,v){if(!f.preventAutoZ){var c=f.get("z")||0,d=f.get("zlevel")||0;v.eachRendered(function(m){return l(m,c,d,-1/0),!0})}}function l(f,v,c,d){var m=f.getTextContent(),p=f.getTextGuideLine(),g=f.isGroup;if(g)for(var y=f.childrenRef(),_=0;_0?{duration:m,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(g){if(g.states&&g.states.emphasis){if(ea(g))return;if(g instanceof At&&$b(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=p;var _=g.getTextContent(),A=g.getTextGuideLine();_&&(_.stateTransition=p),A&&(A.stateTransition=p)}g.__dirty&&n(g)}})}od=function(f){return new(function(v){et(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var m=d.__ecComponentInfo;if(m!=null)return f._model.getComponent(m.mainType,m.index);d=d.parent}},c.prototype.enterEmphasis=function(d,m){Zo(d,m),he(f)},c.prototype.leaveEmphasis=function(d,m){qo(d,m),he(f)},c.prototype.enterBlur=function(d){Nb(d),he(f)},c.prototype.leaveBlur=function(d){Ag(d),he(f)},c.prototype.enterSelect=function(d){Sg(d),he(f)},c.prototype.leaveSelect=function(d){bg(d),he(f)},c.prototype.getModel=function(){return f.getModel()},c.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},c}(bm))(f)},cy=function(f){function v(c,d){for(var m=0;m=0)){ud.push(e);var a=$m.wrapStageHandler(e,n);a.__prio=t,a.__raw=e,r.push(a)}}function _y(r,t){th[r]=t}function cD(r,t,e){var i=UC("registerMap");i&&i(r,t,e)}var vD=pT;Ii(uf,WT);Ii(Bs,YT);Ii(Bs,XT);Ii(uf,sC);Ii(Bs,lC);Ii(oy,GC);my(xm);yy($C,Kx);_y("default",$T);pn({type:di,event:di,update:di},re);pn({type:Lo,event:Lo,update:Lo},re);pn({type:Jn,event:Jn,update:Jn},re);pn({type:Ro,event:Ro,update:Ro},re);pn({type:jn,event:jn,update:jn},re);gy("light",nC);gy("dark",aC);function Bn(r){return r==null?0:r.length||1}function hd(r){return r}var dD=function(){function r(t,e,i,n,a,o){this._old=t,this._new=e,this._oldKeyGetter=i||hd,this._newKeyGetter=n||hd,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var o=0;o1){var h=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(h,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(h,u),n[l]=null;else if(f===1&&v>1)this._updateOneToMany&&this._updateOneToMany(h,u),n[l]=null;else if(f===1&&v===1)this._update&&this._update(h,u),n[l]=null;else if(f>1&&v>1)this._updateManyToMany&&this._updateManyToMany(h,u),n[l]=null;else if(f>1)for(var c=0;c1)for(var s=0;s30}var Nn=K,wr=j,wD=typeof Int32Array>"u"?Array:Int32Array,xD="e\0\0",fd=-1,TD=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],CD=["_approximateExtent"],cd,fo,Fn,zn,Yl,co,Xl,DD=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,n=!1;Sy(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},h=0;h=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===be;if(l&&!n.pure)for(var u=[],h=t;h0},r.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[e];return a==null&&(a=this.getVisual(e),U(a)?a=a.slice():Nn(a)&&(a=z({},a)),n[e]=a),a},r.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Nn(e)?z(n,e):n[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Nn(t)?z(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?z(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;Db(i,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){M(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:wr(this.dimensions,this._getDimInfo,this),this.hostModel)),Yl(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];!rt(i)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return e.apply(this,[n].concat(Sh(arguments)))})},r.internalField=function(){cd=function(t){var e=t._invertedIndicesMap;M(e,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=e[n]=new wD(o.categories.length);for(var l=0;l1&&(l+="__ec__"+h),n[e]=l}}}(),r}();const MD=DD;function ID(r,t){tf(r)||(r=ef(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],n=at(),a=[],o=LD(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&xy(o),l=i===r.dimensionsDefine,u=l?wy(r):by(i),h=t.encodeDefine;!h&&t.encodeDefaulter&&(h=t.encodeDefaulter(r,o));for(var f=at(h),v=new Rm(o),c=0;c0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function LD(r,t,e,i){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return M(t,function(a){var o;K(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function RD(r,t,e){var i=t.data;if(e||i.hasOwnProperty(r)){for(var n=0;i.hasOwnProperty(r+n);)n++;r+=n}return t.set(r,!0),r}var ED=function(){function r(t){this.coordSysDims=[],this.axisMap=at(),this.categoryAxisMap=at(),this.coordSysName=t}return r}();function kD(r){var t=r.get("coordinateSystem"),e=new ED(t),i=OD[t];if(i)return i(r,e,e.axisMap,e.categoryAxisMap),e}var OD={cartesian2d:function(r,t,e,i){var n=r.getReferringComponents("xAxis",Re).models[0],a=r.getReferringComponents("yAxis",Re).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",a),Hi(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),Hi(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,i){var n=r.getReferringComponents("singleAxis",Re).models[0];t.coordSysDims=["single"],e.set("single",n),Hi(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,i){var n=r.getReferringComponents("polar",Re).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Hi(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),Hi(o)&&(i.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,i){var n=r.ecModel,a=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();M(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),h=o[l];e.set(h,u),Hi(u)&&(i.set(h,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Hi(r){return r.get("type")==="category"}function BD(r,t,e){e=e||{};var i=e.byIndex,n=e.stackedCoordDimension,a,o,s;ND(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,h,f,v;if(M(a,function(y,_){$(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!i&&!u&&y.ordinalMeta&&(u=y),!h&&y.type!=="ordinal"&&y.type!=="time"&&(!n||n===y.coordDim)&&(h=y))}),h&&!i&&!u&&(i=!0),h){f="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=h.coordDim,d=h.type,m=0;M(a,function(y){y.coordDim===c&&m++});var p={name:f,coordDim:c,coordDimIndex:m,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:v,coordDim:v,coordDimIndex:m+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(v,d),g.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(a.push(p),a.push(g))}return{stackedDimension:h&&h.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:v,stackResultDimension:f}}function ND(r){return!Sy(r.schema)}function sn(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function FD(r,t){return sn(r,t)?r.getCalculationInfo("stackResultDimension"):t}function zD(r,t){var e=r.get("coordinateSystem"),i=jh.get(e),n;return t&&t.coordSysDims&&(n=j(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=yD(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function GD(r,t,e){var i,n;return e&&M(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function df(r,t,e){e=e||{};var i=t.getSourceManager(),n,a=!1;r?(a=!0,n=ef(r)):(n=i.getSource(),a=n.sourceFormat===be);var o=kD(t),s=zD(t,o),l=e.useEncodeDefaulter,u=rt(l)?l:l?Et(bx,s,t):null,h={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=ID(n,h),v=GD(f.dimensions,e.createInvertedIndices,o),c=a?null:i.getSharedDataStore(f),d=BD(t,{schema:f,store:c}),m=new MD(f,t);m.setCalculationInfo(d);var p=v!=null&&VD(n)?function(g,y,_,A){return A===v?_:this.defaultDimValueGetter(g,y,_,A)}:null;return m.hasItemOption=!1,m.initData(a?n:c,null,p),m}function VD(r){if(r.sourceFormat===be){var t=HD(r.data||[]);return!U(Da(t))}}function HD(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();ds(Ty);const fr=Ty;var UD=0,WD=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++UD}return r.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&j(i,YD);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!$(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=at(this.categories))},r}();function YD(r){return K(r)&&r.value!=null?r.value:r+""}const eh=WD;function rh(r){return r.type==="interval"||r.type==="log"}function XD(r,t,e,i){var n={},a=r[1]-r[0],o=n.interval=qp(a/t,!0);e!=null&&oi&&(o=n.interval=i);var s=n.intervalPrecision=Cy(o),l=n.niceTickExtent=[Lt(Math.ceil(r[0]/o)*o,s),Lt(Math.floor(r[1]/o)*o,s)];return $D(l,r),n}function $l(r){var t=Math.pow(10,Lh(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Lt(e*t)}function Cy(r){return Je(r)+2}function vd(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function $D(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),vd(r,0,t),vd(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Ns(r,t){return r>=t[0]&&r<=t[1]}function Fs(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function zs(r,t){return r*(t[1]-t[0])+t[0]}var Dy=function(r){et(t,r);function t(e){var i=r.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new eh({})),U(n)&&(n=new eh({categories:j(n,function(a){return K(a)?a.value:a})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return t.prototype.parse=function(e){return e==null?NaN:$(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ns(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Fs(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(zs(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],i=this._extent,n=i[0];n<=i[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(fr);fr.registerClass(Dy);const My=Dy;var oi=Lt,Iy=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Ns(e,this._extent)},t.prototype.normalize=function(e){return Fs(e,this._extent)},t.prototype.scale=function(e){return zs(e,this._extent)},t.prototype.setExtent=function(e,i){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(i)||(n[1]=parseFloat(i))},t.prototype.unionExtent=function(e){var i=this._extent;e[0]i[1]&&(i[1]=e[1]),this.setExtent(i[0],i[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Cy(e)},t.prototype.getTicks=function(e){var i=this._interval,n=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;n[0]l)return[];var h=s.length?s[s.length-1].value:a[1];return n[1]>h&&(e?s.push({value:oi(h+i,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks(!0),n=[],a=this.getExtent(),o=1;oa[0]&&c0&&(a=a===null?s:Math.min(a,s))}e[i]=a}}return e}function Ry(r){var t=qD(r),e=[];return M(r,function(i){var n=i.coordinateSystem,a=n.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],h=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),v=Math.abs(f[1]-f[0]);s=u?h/v*u:h}else{var c=i.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=Qt(i.get("barWidth"),s),m=Qt(i.get("barMaxWidth"),s),p=Qt(i.get("barMinWidth")||(ky(i)?.5:1),s),g=i.get("barGap"),y=i.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:m,barMinWidth:p,barGap:g,barCategoryGap:y,axisKey:gf(a),stackId:pf(i)})}),KD(e)}function KD(r){var t={};M(r,function(i,n){var a=i.axisKey,o=i.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var h=i.barWidth;h&&!l[u].width&&(l[u].width=h,h=Math.min(s.remainedWidth,h),s.remainedWidth-=h);var f=i.barMaxWidth;f&&(l[u].maxWidth=f);var v=i.barMinWidth;v&&(l[u].minWidth=v);var c=i.barGap;c!=null&&(s.gap=c);var d=i.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return M(t,function(i,n){e[n]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var l=Mt(a).length;s=Math.max(35-l*4,15)+"%"}var u=Qt(s,o),h=Qt(i.gap,1),f=i.remainedWidth,v=i.autoWidthCount,c=(f-u)/(v+(v-1)*h);c=Math.max(c,0),M(a,function(g){var y=g.maxWidth,_=g.minWidth;if(g.width){var A=g.width;y&&(A=Math.min(A,y)),_&&(A=Math.max(A,_)),g.width=A,f-=A+h*A,v--}else{var A=c;y&&yA&&(A=_),A!==c&&(g.width=A,f-=A+h*A,v--)}}),c=(f-u)/(v+(v-1)*h),c=Math.max(c,0);var d=0,m;M(a,function(g,y){g.width||(g.width=c),m=g,d+=g.width*(1+h)}),m&&(d-=m.width*h);var p=-d/2;M(a,function(g,y){e[n][y]=e[n][y]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+h)})}),e}function JD(r,t,e){if(r&&t){var i=r[gf(t)];return i!=null&&e!=null?i[pf(e)]:i}}function jD(r,t){var e=Ly(r,t),i=Ry(e);M(e,function(n){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=pf(n),u=i[gf(s)][l],h=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:h,size:f})})}function tM(r){return{seriesType:r,plan:of(),reset:function(t){if(!!Ey(t)){var e=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),h=e.getCalculationInfo("stackResultDimension"),f=sn(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),c=eM(n,a),d=ky(t),m=t.get("barMinHeight")||0,p=h&&e.getDimensionIndex(h),g=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,A){for(var b=_.count,S=d&&je(b*3),w=d&&l&&je(b*3),T=d&&je(b),D=i.master.getRect(),x=v?D.width:D.height,C,I=A.getStore(),R=0;(C=_.next())!=null;){var k=I.get(f?p:o,C),O=I.get(s,C),B=c,Q=void 0;f&&(Q=+k-I.get(o,C));var P=void 0,L=void 0,N=void 0,F=void 0;if(v){var W=i.dataToPoint([k,O]);if(f){var G=i.dataToPoint([Q,O]);B=G[0]}P=B,L=W[1]+y,N=W[0]-B,F=g,Math.abs(N)>>1;r[n][1]n&&(this._approxInterval=n);var s=vo.length,l=Math.min(rM(vo,this._approxInterval,0,s),s-1);this._interval=vo[l][1],this._minLevelUnit=vo[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return xt(e)?e:+ar(e)},t.prototype.contain=function(e){return Ns(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Fs(this.parse(e),this._extent)},t.prototype.scale=function(e){return zs(e,this._extent)},t.type="time",t}(La),vo=[["second",Qh],["minute",Zh],["hour",ra],["quarter-day",ra*6],["half-day",ra*12],["day",Ae*1.2],["half-week",Ae*3.5],["week",Ae*7],["month",Ae*31],["quarter",Ae*95],["half-year",iv/2],["year",iv]];function iM(r,t,e,i){var n=ar(t),a=ar(e),o=function(d){return av(n,d,i)===av(a,d,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},h=function(){return u()&&o("hour")},f=function(){return h()&&o("minute")},v=function(){return f()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return f();case"second":return v();case"millisecond":return c()}}function nM(r,t){return r/=Ae,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function aM(r){var t=30*Ae;return r/=t,r>6?6:r>3?3:r>2?2:1}function oM(r){return r/=ra,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function dd(r,t){return r/=t?Zh:Qh,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function sM(r){return qp(r,!0)}function lM(r,t,e){var i=new Date(r);switch(ji(t)){case"year":case"month":i[am(e)](0);case"day":i[om(e)](1);case"hour":i[sm(e)](0);case"minute":i[lm(e)](0);case"second":i[um(e)](0),i[hm(e)](0)}return i.getTime()}function uM(r,t,e,i){var n=1e4,a=im,o=0;function s(x,C,I,R,k,O,B){for(var Q=new Date(C),P=C,L=Q[R]();P1&&O===0&&I.unshift({value:I[0].value-P})}}for(var O=0;O=i[0]&&y<=i[1]&&f++)}var _=(i[1]-i[0])/t;if(f>_*1.5&&v>_/1.5||(u.push(p),f>_||r===a[c]))break}h=[]}}}for(var A=jt(j(u,function(x){return jt(x,function(C){return C.value>=i[0]&&C.value<=i[1]&&!C.notAdd})}),function(x){return x.length>0}),b=[],S=A.length-1,c=0;c0;)a*=10;var s=[Lt(vM(i[0]/a)*a),Lt(cM(i[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){sa.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=De(e)/De(this.base),Ns(e,this._extent)},t.prototype.normalize=function(e){return e=De(e)/De(this.base),Fs(e,this._extent)},t.prototype.scale=function(e){return e=zs(e,this._extent),po(this.base,e)},t.type="log",t}(fr),By=mf.prototype;By.getMinorTicks=sa.getMinorTicks;By.getLabel=sa.getLabel;function go(r,t){return fM(r,Je(t))}fr.registerClass(mf);const dM=mf;var pM=function(){function r(t,e,i){this._prepareParams(t,e,i)}return r.prototype._prepareParams=function(t,e,i){i[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!h&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,h=!0),{min:s,max:l,minFixed:u,maxFixed:h,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[mM[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var i=gM[t];this[i]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),gM={min:"_determinedMin",max:"_determinedMax"},mM={min:"_dataMin",max:"_dataMax"};function yM(r,t,e){var i=r.rawExtentInfo;return i||(i=new pM(r,t,e),r.rawExtentInfo=i,i)}function mo(r,t){return t==null?null:zo(t)?NaN:r.parse(t)}function Ny(r,t){var e=r.type,i=yM(r,t,r.getExtent()).calculate();r.setBlank(i.isBlank);var n=i.min,a=i.max,o=t.ecModel;if(o&&e==="time"){var s=Ly("bar",o),l=!1;if(M(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=Ry(s),h=_M(n,a,t,u);n=h.min,a=h.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function _M(r,t,e,i){var n=e.axis.getExtent(),a=n[1]-n[0],o=JD(i,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;M(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;M(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=t-r,f=1-(s+l)/a,v=h/f-h;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function gd(r,t){var e=t,i=Ny(r,e),n=i.extent,a=e.get("splitNumber");r instanceof dM&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function AM(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new My({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new hM({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(fr.getClass(t)||La)}}function SM(r){var t=r.scale.getExtent(),e=t[0],i=t[1];return!(e>0&&i>0||e<0&&i<0)}function Ra(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(i){return function(n,a){return r.scale.getFormattedLabel(n,a,i)}}(t):$(t)?function(i){return function(n){var a=r.scale.getLabel(n),o=i.replace("{value}",a!=null?a:"");return o}}(t):rt(t)?function(i){return function(n,a){return e!=null&&(a=n.value-e),i(yf(r,n),a,n.level!=null?{level:n.level}:null)}}(t):function(i){return r.scale.getLabel(i)}}function yf(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function bM(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var i,n,a=e.getExtent();e instanceof My?n=e.count():(i=e.getTicks(),n=i.length);var o=r.getLabelModel(),s=Ra(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var h=0;h=0||(md.push(r),rt(r)&&(r={install:r}),r.install(CM))}var wa=Ot();function DM(r){return r.type==="category"?IM(r):LM(r)}function MM(r,t){return r.type==="category"?PM(r,t):{ticks:j(r.scale.getTicks(),function(e){return e.value})}}function IM(r){var t=r.getLabelModel(),e=zy(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function zy(r,t){var e=Gy(r,"labels"),i=_f(t),n=Vy(e,i);if(n)return n;var a,o;return rt(i)?a=Wy(r,i):(o=i==="auto"?RM(r):i,a=Uy(r,o)),Hy(e,i,{labels:a,labelCategoryInterval:o})}function PM(r,t){var e=Gy(r,"ticks"),i=_f(t),n=Vy(e,i);if(n)return n;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),rt(i))a=Wy(r,i,!0);else if(i==="auto"){var s=zy(r,r.getLabelModel());o=s.labelCategoryInterval,a=j(s.labels,function(l){return l.tickValue})}else o=i,a=Uy(r,o,!0);return Hy(e,i,{ticks:a,tickCategoryInterval:o})}function LM(r){var t=r.scale.getTicks(),e=Ra(r);return{labels:j(t,function(i,n){return{level:i.level,formattedLabel:e(i,n),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function Gy(r,t){return wa(r)[t]||(wa(r)[t]=[])}function Vy(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),h=Math.abs(u*Math.cos(i)),f=Math.abs(u*Math.sin(i)),v=0,c=0;l<=a[1];l+=s){var d=0,m=0,p=Mh(e({value:l}),t.font,"center","top");d=p.width*1.3,m=p.height*1.3,v=Math.max(v,d,7),c=Math.max(c,m,7)}var g=v/h,y=c/f;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(g,y))),A=wa(r.model),b=r.getExtent(),S=A.lastAutoInterval,w=A.lastTickCount;return S!=null&&w!=null&&Math.abs(S-_)<=1&&Math.abs(w-o)<=1&&S>_&&A.axisExtent0===b[0]&&A.axisExtent1===b[1]?_=S:(A.lastTickCount=o,A.lastAutoInterval=_,A.axisExtent0=b[0],A.axisExtent1=b[1]),_}function kM(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Uy(r,t,e){var i=Ra(r),n=r.scale,a=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],h=n.count();u!==0&&l>1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=Fy(r),v=o.get("showMinLabel")||f,c=o.get("showMaxLabel")||f;v&&u!==a[0]&&m(a[0]);for(var d=u;d<=a[1];d+=l)m(d);c&&d-l!==a[1]&&m(a[1]);function m(p){var g={value:p};s.push(e?p:{formattedLabel:i(g),rawLabel:n.getLabel(g),tickValue:p})}return s}function Wy(r,t,e){var i=r.scale,n=Ra(r),a=[];return M(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),a}var yd=[0,1],OM=function(){function r(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return r.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return oS(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},r.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(i=i.slice(),_d(i,n.count())),uc(t,yd,i,e)},r.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(i=i.slice(),_d(i,n.count()));var a=uc(t,i,yd,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=MM(this,e),n=i.ticks,a=j(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return BM(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var i=this.scale.getMinorTicks(e),n=j(i,function(a){return j(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return DM(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);i===0&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},r.prototype.calculateCategoryInterval=function(){return EM(this)},r}();function _d(r,t){var e=r[1]-r[0],i=t,n=e/i/2;r[0]+=n,r[1]-=n}function BM(r,t,e,i){var n=t.length;if(!r.onBand||e||!n)return;var a=r.getExtent(),o,s;if(n===1)t[0].coord=a[0],o=t[1]={coord:a[0]};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;M(t,function(c){c.coord-=u/2});var h=r.scale.getExtent();s=1+h[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s},t.push(o)}var f=a[0]>a[1];v(t[0].coord,a[0])&&(i?t[0].coord=a[0]:t.shift()),i&&v(a[0],t[0].coord)&&t.unshift({coord:a[0]}),v(a[1],o.coord)&&(i?o.coord=a[1]:t.pop()),i&&v(o.coord,a[1])&&t.push({coord:a[1]});function v(c,d){return c=Lt(c),d=Lt(d),f?c>d:c-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Ti);const VM=GM;function Af(r,t){var e=r.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var n=an(r,t,e[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o=0&&i.push(t[a])}return i.join(" ")}var HM=function(r){et(t,r);function t(e,i,n,a){var o=r.call(this)||this;return o.updateData(e,i,n,a),o}return t.prototype._createSymbol=function(e,i,n,a,o){this.removeAll();var s=on(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=UM,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Zo(this.childAt(0))},t.prototype.downplay=function(){qo(this.childAt(0))},t.prototype.setZ=function(e,i){var n=this.childAt(0);n.zlevel=e,n.z=i},t.prototype.setDraggable=function(e,i){var n=this.childAt(0);n.draggable=e,n.cursor=!i&&e?"move":n.cursor},t.prototype.updateData=function(e,i,n,a){this.silent=!1;var o=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,i),u=o!==this._symbolType,h=a&&a.disableAnimation;if(u){var f=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,e,i,l,f)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};h?v.attr(c):ue(v,c,s,i),Xg(v)}if(this._updateCommon(e,i,l,n,a),u){var v=this.childAt(0);if(!h){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,or(v,c,s,i)}}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,n,a,o){var s=this.childAt(0),l=e.hostModel,u,h,f,v,c,d,m,p,g;if(a&&(u=a.emphasisItemStyle,h=a.blurItemStyle,f=a.selectItemStyle,v=a.focus,c=a.blurScope,m=a.labelStatesModels,p=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var y=a&&a.itemModel?a.itemModel:e.getItemModel(i),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),h=y.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),m=ws(y),p=_.getShallow("scale"),g=y.getShallow("cursor")}var A=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(A||0)*Math.PI/180||0);var b=Zm(e.getItemVisual(i,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var S=e.getItemVisual(i,"style"),w=S.fill;if(s instanceof Di){var T=s.style;s.useStyle(z({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},S))}else s.__isEmptyBrush?s.useStyle(z({},S)):s.useStyle(S),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=e.getItemVisual(i,"liftZ"),x=this._z2;D!=null?x==null&&(this._z2=s.z2,s.z2+=D):x!=null&&(s.z2=x,this._z2=null);var C=o&&o.useNameLabel;bs(s,m,{labelFetcher:l,labelDataIndex:i,defaultText:I,inheritColor:w,defaultOpacity:S.opacity});function I(O){return C?e.getName(O):Af(e,O)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=h;var k=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;R.scaleX=this._sizeX*k,R.scaleY=this._sizeY*k,this.setSymbolScale(1),Ko(this,v,c,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,n){var a=this.childAt(0),o=yt(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&ts(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ts(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return xC(e.getItemVisual(i,"symbolSize"))},t}(Wt);function UM(r,t){this.parent.drift(r,t)}const Sf=HM;function Ql(r,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(e))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Ad(r){return r!=null&&!K(r)&&(r={isIgnore:r}),r||{}}function Sd(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:ws(t),cursorStyle:t.get("cursor")}}var WM=function(){function r(t){this.group=new Wt,this._SymbolCtor=t||Sf}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Ad(e);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Sd(t),u={disableAnimation:s},h=e.getSymbolPoint||function(f){return t.getItemLayout(f)};a||i.removeAll(),t.diff(a).add(function(f){var v=h(f);if(Ql(t,v,f,e)){var c=new o(t,f,l,u);c.setPosition(v),t.setItemGraphicEl(f,c),i.add(c)}}).update(function(f,v){var c=a.getItemGraphicEl(v),d=h(f);if(!Ql(t,d,f,e)){i.remove(c);return}var m=t.getItemVisual(f,"symbol")||"circle",p=c&&c.getSymbolType&&c.getSymbolType();if(!c||p&&p!==m)i.remove(c),c=new o(t,f,l,u),c.setPosition(d);else{c.updateData(t,f,l,u);var g={x:d[0],y:d[1]};s?c.attr(g):ue(c,g,n)}i.add(c),t.setItemGraphicEl(f,c)}).remove(function(f){var v=a.getItemGraphicEl(f);v&&v.fadeOut(function(){i.remove(v)},n)}).execute(),this._getSymbolPoint=h,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,n){var a=t._getSymbolPoint(n);i.setPosition(a),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Sd(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=Ad(i);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?e=i[0]:i[1]<0&&(e=i[1]),e}function $y(r,t,e,i){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,i),o[1-a]=n,t.dataToPoint(o)}function $M(r,t){var e=[];return t.diff(r).add(function(i){e.push({cmd:"+",idx:i})}).update(function(i,n){e.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){e.push({cmd:"-",idx:i})}).execute(),e}function QM(r,t,e,i,n,a,o,s){for(var l=$M(r,t),u=[],h=[],f=[],v=[],c=[],d=[],m=[],p=Xy(n,t,o),g=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=n||m<0)break;if(pi(g,y)){if(l){m+=a;continue}break}if(m===e)r[a>0?"moveTo":"lineTo"](g,y),f=g,v=y;else{var _=g-u,A=y-h;if(_*_+A*A<.5){m+=a;continue}if(o>0){for(var b=m+a,S=t[b*2],w=t[b*2+1];S===g&&w===y&&p=i||pi(S,w))c=g,d=y;else{x=S-u,C=w-h;var k=g-u,O=S-g,B=y-h,Q=w-y,P=void 0,L=void 0;if(s==="x"){P=Math.abs(k),L=Math.abs(O);var N=x>0?1:-1;c=g-N*P*o,d=y,I=g+N*L*o,R=y}else if(s==="y"){P=Math.abs(B),L=Math.abs(Q);var F=C>0?1:-1;c=g,d=y-F*P*o,I=g,R=y+F*L*o}else P=Math.sqrt(k*k+B*B),L=Math.sqrt(O*O+Q*Q),D=L/(L+P),c=g-x*o*(1-D),d=y-C*o*(1-D),I=g+x*o*D,R=y+C*o*D,I=xr(I,Tr(S,g)),R=xr(R,Tr(w,y)),I=Tr(I,xr(S,g)),R=Tr(R,xr(w,y)),x=I-g,C=R-y,c=g-x*P/L,d=y-C*P/L,c=xr(c,Tr(u,g)),d=xr(d,Tr(h,y)),c=Tr(c,xr(u,g)),d=Tr(d,xr(h,y)),x=g-c,C=y-d,I=g+x*L/P,R=y+C*L/P}r.bezierCurveTo(f,v,c,d,g,y),f=I,v=R}else r.lineTo(g,y)}u=g,h=y,m+=a}return p}var Qy=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),ZM=function(r){et(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polyline",i}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Qy},t.prototype.buildPath=function(e,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&pi(n[o*2-2],n[o*2-1]);o--);for(;a=0){var A=u?(d-l)*_+l:(c-s)*_+s;return u?[e,A]:[A,e]}s=c,l=d;break;case o.C:c=a[f++],d=a[f++],m=a[f++],p=a[f++],g=a[f++],y=a[f++];var b=u?Vo(s,c,m,g,e,h):Vo(l,d,p,y,e,h);if(b>0)for(var S=0;S=0){var A=u?Rt(l,d,p,y,w):Rt(s,c,m,g,w);return u?[e,A]:[A,e]}}s=g,l=y;break}}},t}(At),qM=function(r){et(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Qy),KM=function(r){et(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polygon",i}return t.prototype.getDefaultShape=function(){return new qM},t.prototype.buildPath=function(e,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&pi(n[s*2-2],n[s*2-1]);s--);for(;ot){a?e.push(o(a,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),a=l}return e}function eI(r,t,e){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&t.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(!!a){var l=t.getAxis(n),u=j(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),h=u.length,f=a.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),f.reverse());var v=tI(u,n==="x"?e.getWidth():e.getHeight()),c=v.length;if(!c&&h)return u[0].coord<0?f[1]?f[1]:u[h-1].color:f[0]?f[0]:u[0].color;var d=10,m=v[0].coord-d,p=v[c-1].coord+d,g=p-m;if(g<.001)return"transparent";M(v,function(_){_.offset=(_.coord-m)/g}),v.push({offset:c?v[c-1].offset:.5,color:f[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:f[0]||"transparent"});var y=new Jo(0,0,0,0,v,!0);return y[n]=m,y[n+"2"]=p,y}}}function rI(r,t,e){var i=r.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=e.getAxesByScale("ordinal")[0];if(!!a&&!(n&&iI(a,t))){var o=t.mapDimension(a.dim),s={};return M(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function iI(r,t){var e=r.getExtent(),i=Math.abs(e[1]-e[0])/r.scale.count();isNaN(i)&&(i=0);for(var n=t.count(),a=Math.max(1,Math.round(n/5)),o=0;oi)return!1;return!0}function nI(r,t){return isNaN(r)||isNaN(t)}function aI(r){for(var t=r.length/2;t>0&&nI(r[t*2-2],r[t*2-1]);t--);return t-1}function Cd(r,t){return[r[t*2],r[t*2+1]]}function oI(r,t,e){for(var i=r.length/2,n=e==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function Ky(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var N=m.getState("emphasis").style;N.lineWidth=+m.style.lineWidth+1}yt(m).seriesIndex=e.seriesIndex,Ko(m,Q,P,L);var F=Td(e.get("smooth")),W=e.get("smoothMonotone");if(m.setShape({smooth:F,smoothMonotone:W,connectNulls:T}),p){var G=l.getCalculationInfo("stackedOnSeries"),Z=0;p.useStyle(_t(h.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),G&&(Z=Td(G.get("smooth"))),p.setShape({smooth:F,stackedOnSmooth:Z,smoothMonotone:W,connectNulls:T}),ku(p,e,"areaStyle"),yt(p).seriesIndex=e.seriesIndex,Ko(p,Q,P,L)}var q=function(Y){a._changePolyState(Y)};l.eachItemGraphicEl(function(Y){Y&&(Y.onHoverStateChange=q)}),this._polyline.onHoverStateChange=q,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=f,this._step=C,this._valueOrigin=A,e.get("triggerLineEvent")&&(this.packEventData(e,m),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,i){yt(i).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,i,n,a){var o=e.getData(),s=Si(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var h=l[s*2],f=l[s*2+1];if(isNaN(h)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,f))return;var v=e.get("zlevel")||0,c=e.get("z")||0;u=new Sf(o,s),u.x=h,u.y=f,u.setZ(v,c);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=c,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ir.prototype.highlight.call(this,e,i,n,a)},t.prototype.downplay=function(e,i,n,a){var o=e.getData(),s=Si(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ir.prototype.downplay.call(this,e,i,n,a)},t.prototype._changePolyState=function(e){var i=this._polygon;Bc(this._polyline,e),i&&Bc(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new ZM({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(e,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new KM({shape:{points:e,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,h=u.get("animationDuration");rt(h)&&(h=h(null));var f=u.get("animationDelay")||0,v=rt(f)?f(null):f;e.eachItemGraphicEl(function(c,d){var m=c;if(m){var p=[c.x,c.y],g=void 0,y=void 0,_=void 0;if(n)if(o){var A=n,b=i.pointToCoord(p);a?(g=A.startAngle,y=A.endAngle,_=-b[1]/180*Math.PI):(g=A.r0,y=A.r,_=b[0])}else{var S=n;a?(g=S.x,y=S.x+S.width,_=c.x):(g=S.y+S.height,y=S.y,_=c.y)}var w=y===g?0:(_-g)/(y-g);l&&(w=1-w);var T=rt(f)?f(d):h*w+v,D=m.getSymbolPath(),x=D.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,i,n){var a=e.getModel("endLabel");if(Ky(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new qt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var h=aI(l);h>=0&&(bs(s,ws(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:h,defaultText:function(f,v,c){return c!=null?Yy(o,c):Af(o,f)},enableTextSetter:!0},sI(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,i,n,a,o,s,l){var u=this._endLabel,h=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=n.getLayout("points"),v=n.hostModel,c=v.get("connectNulls"),d=s.get("precision"),m=s.get("distance")||0,p=l.getBaseAxis(),g=p.isHorizontal(),y=p.inverse,_=i.shape,A=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?m:0)*(y?-1:1),S=(g?0:-m)*(y?-1:1),w=g?"x":"y",T=oI(f,A,w),D=T.range,x=D[1]-D[0],C=void 0;if(x>=1){if(x>1&&!c){var I=Cd(f,D[0]);u.attr({x:I[0]+b,y:I[1]+S}),o&&(C=v.getRawValue(D[0]))}else{var I=h.getPointOn(A,w);I&&u.attr({x:I[0]+b,y:I[1]+S});var R=v.getRawValue(D[0]),k=v.getRawValue(D[1]);o&&(C=TS(n,d,R,k,T.t))}a.lastFrameIndex=D[0]}else{var O=e===1||a.lastFrameIndex>0?D[0]:0,I=Cd(f,O);o&&(C=v.getRawValue(O)),u.attr({x:I[0]+b,y:I[1]+S})}o&&xs(u).setLabelText(C)}},t.prototype._doUpdateAnimation=function(e,i,n,a,o,s,l){var u=this._polyline,h=this._polygon,f=e.hostModel,v=QM(this._data,e,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin),c=v.current,d=v.stackedOnCurrent,m=v.next,p=v.stackedOnNext;if(o&&(c=Cr(v.current,n,o,l),d=Cr(v.stackedOnCurrent,n,o,l),m=Cr(v.next,n,o,l),p=Cr(v.stackedOnNext,n,o,l)),xd(c,m)>3e3||h&&xd(d,p)>3e3){u.stopAnimation(),u.setShape({points:m}),h&&(h.stopAnimation(),h.setShape({points:m,stackedOnPoints:p}));return}u.shape.__points=v.current,u.shape.points=c;var g={shape:{points:m}};v.current!==c&&(g.shape.__points=v.next),u.stopAnimation(),ue(u,g,f),h&&(h.setShape({points:c,stackedOnPoints:d}),h.stopAnimation(),ue(h,{shape:{stackedOnPoints:p}},f),u.shape.points!==h.shape.points&&(h.shape.points=u.shape.points));for(var y=[],_=v.status,A=0;A<_.length;A++){var b=_[A].cmd;if(b==="="){var S=e.getItemGraphicEl(_[A].idx1);S&&y.push({el:S,ptIdx:A})}}u.animators&&u.animators.length&&u.animators[0].during(function(){h&&h.dirtyShape();for(var w=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),h=l.getExtent(),f=i.getDevicePixelRatio(),v=Math.abs(h[1]-h[0])*(f||1),c=Math.round(s/v);if(isFinite(c)&&c>1){a==="lttb"&&t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c));var d=void 0;$(a)?d=fI[a]:rt(a)&&(d=a),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/c,d,cI))}}}}}function vI(r){r.registerChartView(uI),r.registerSeriesModel(VM),r.registerLayout(hI("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Jy("line"))}var jy=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,i){return df(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var i=this.coordinateSystem;if(i&&i.clampData){var n=i.dataToPoint(i.clampData(e)),a=this.getData(),o=a.getLayout("offset"),s=a.getLayout("size"),l=i.getBaseAxis().isHorizontal()?0:1;return n[l]+=o+s/2,n}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Ti);Ti.registerClass(jy);const Dd=jy;var dI=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return df(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>e&&(e=i),e},t.prototype.brushSelector=function(e,i,n){return n.rect(i.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=tm(Dd.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},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Dd);const pI=dI;var gI=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),mI=function(r){et(t,r);function t(e){var i=r.call(this,e)||this;return i.type="sausage",i}return t.prototype.getDefaultShape=function(){return new gI},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,h=i.startAngle,f=i.endAngle,v=i.clockwise,c=Math.PI*2,d=v?f-hMath.PI/2&&hs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(e,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,i,n,a){if(!!this._isOrderChangedWithinSameData(e,i,n)){var o=this._dataSort(e,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,i,n){var a=i.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(e,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var i=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){Fu(a,e,yt(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ir),Id={cartesian2d:function(r,t){var e=t.width<0?-1:1,i=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,a=r.y+r.height,o=ql(t.x,r.x),s=Kl(t.x+t.width,n),l=ql(t.y,r.y),u=Kl(t.y+t.height,a),h=sn?s:o,t.y=f&&l>a?u:l,t.width=h?0:s-o,t.height=f?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),h||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}var n=Kl(t.r,r.r),a=ql(t.r0,r.r0);t.r=n,t.r0=a;var o=n-a<0;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}return o}},Pd={cartesian2d:function(r,t,e,i,n,a,o,s,l){var u=new kt({shape:z({},i),z2:1});if(u.__dataIndex=e,u.name="item",a){var h=u.shape,f=n?"height":"width";h[f]=0}return u},polar:function(r,t,e,i,n,a,o,s,l){var u=!n&&l?Md:Pa,h=new u({shape:i,z2:1});h.name="item";var f=t0(n);if(h.calculateTextPosition=yI(f,{isRoundCap:u===Md}),a){var v=h.shape,c=n?"r":"endAngle",d={};v[c]=n?0:i.startAngle,d[c]=i[c],(s?ue:or)(h,{shape:d},a)}return h}};function bI(r,t){var e=r.get("realtimeSort",!0),i=t.getBaseAxis();if(e&&i.type==="category"&&t.type==="cartesian2d")return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function Ld(r,t,e,i,n,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?ue:or)(e,{shape:l},t,n,null);var h=t?r.baseAxis.model:null;(o?ue:or)(e,{shape:u},h,n)}function Rd(r,t){for(var e=0;e0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(r,t,e){var i=r.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function TI(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function t0(r){return function(t){var e=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+e;default:return i}}}(r)}function kd(r,t,e,i,n,a,o,s){var l=t.getItemVisual(e,"style");s||r.setShape("r",i.get(["itemStyle","borderRadius"])||0),r.useStyle(l);var u=i.getShallow("cursor");u&&r.attr("cursor",u);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",f=ws(i);bs(r,f,{labelFetcher:a,labelDataIndex:e,defaultText:Af(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=r.getTextContent();if(s&&v){var c=i.get(["label","position"]);r.textConfig.inside=c==="middle"?!0:null,_I(r,c==="outside"?h:c,t0(o),i.get(["label","rotate"]))}Zw(v,f,a.getRawValue(e),function(m){return Yy(t,m)});var d=i.getModel(["emphasis"]);Ko(r,d.get("focus"),d.get("blurScope"),d.get("disabled")),ku(r,i),TI(n)&&(r.style.fill="none",r.style.stroke="none",M(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function CI(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,n,a)}var DI=function(){function r(){}return r}(),Od=function(r){et(t,r);function t(e){var i=r.call(this,e)||this;return i.type="largeBar",i}return t.prototype.getDefaultShape=function(){return new DI},t.prototype.buildPath=function(e,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,h=0;h=0?e:null},30,!1);function MI(r,t,e){for(var i=r.baseDimIdx,n=1-i,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,h=0,f=a.length/3;h=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[h]}return-1}function e0(r,t,e){if(bf(e,"cartesian2d")){var i=t,n=e.getArea();return{x:r?i.x:n.x,y:r?n.y:i.y,width:r?i.width:n.width,height:r?n.height:i.height}}else{var n=e.getArea(),a=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:a.r0,r:r?n.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function II(r,t,e){var i=r.type==="polar"?Pa:kt;return new i({shape:e0(t,e,r),silent:!0,z2:0})}const PI=SI;function LI(r){r.registerChartView(PI),r.registerSeriesModel(pI),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Et(jD,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,tM("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Jy("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var RI=function(r){et(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Ct);const EI=RI;var nh=function(r){et(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Re).models[0]},t.type="cartesian2dAxis",t}(Ct);We(nh,TM);var r0={show:!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:"#6E7079",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:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},kI=vt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},r0),wf=vt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},r0),OI=vt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},wf),BI=_t({logBase:10},wf);const NI={category:kI,value:wf,time:OI,log:BI};var FI={value:1,category:1,time:1,log:1};function Fd(r,t,e,i){M(FI,function(n,a){var o=vt(vt({},NI[a],!0),i,!0),s=function(l){et(u,l);function u(){var h=l!==null&&l.apply(this,arguments)||this;return h.type=t+"Axis."+a,h}return u.prototype.mergeDefaultAndTheme=function(h,f){var v=ya(this),c=v?Rs(h):{},d=f.getTheme();vt(h,d.get(a+"Axis")),vt(h,this.getDefaultOption()),h.type=zd(h),v&&nn(h,c,v)},u.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=eh.createByAxisModel(this))},u.prototype.getCategories=function(h){var f=this.option;if(f.type==="category")return h?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",zd)}function zd(r){return r.type||(r.data?"category":"value")}var zI=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return j(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),jt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const GI=zI;var ah=["x","y"];function Gd(r){return r.type==="interval"||r.type==="time"}var VI=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=ah,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!Gd(e)||!Gd(i))){var n=e.getExtent(),a=i.getExtent(),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var h=(s[0]-o[0])/l,f=(s[1]-o[1])/u,v=o[0]-n[0]*h,c=o[1]-a[0]*f,d=this._transform=[h,0,0,f,v,c];this._invTransform=Th([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,i){var n=this.dataToPoint(e),a=this.dataToPoint(i),o=this.getArea(),s=new dt(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,i,n){n=n||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Se(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},t.prototype.clampData=function(e,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(e[0]),u=a.parse(e[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i){var n=[];if(this._invTransform)return Se(n,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(e[0]),i),n[1]=o.coordToData(o.toLocalCoord(e[1]),i),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),a=Math.min(i[0],i[1]),o=Math.max(e[0],e[1])-n,s=Math.max(i[0],i[1])-a;return new dt(n,a,o,s)},t}(GI),HI=function(r){et(t,r);function t(e,i,n,a,o){var s=r.call(this,e,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),e&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(e,i){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(NM);const UI=HI;function oh(r,t,e){e=e||{};var i=r.coordinateSystem,n=t.axis,a={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,h=i.getRect(),f=[h.x,h.x+h.width,h.y,h.y+h.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,d=u==="x"?[f[2]-c,f[3]+c]:[f[0]-c,f[1]+c];if(o){var m=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(m,d[1]),d[0])}a.position=[u==="y"?d[v[l]]:f[0],u==="x"?d[v[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[v[s]]-d[v.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),ua(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-g:g,a.z2=1,a}function Vd(r){return r.get("coordinateSystem")==="cartesian2d"}function Hd(r){var t={xAxisModel:null,yAxisModel:null};return M(t,function(e,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,Re).models[0];t[i]=a}),t}var Jl=Math.log;function WI(r,t,e){var i=La.prototype,n=i.getTicks.call(e),a=i.getTicks.call(e,!0),o=n.length-1,s=i.getInterval.call(e),l=Ny(r,t),u=l.extent,h=l.fixMin,f=l.fixMax;if(r.type==="log"){var v=Jl(r.base);u=[Jl(u[0])/v,Jl(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:h,fixMax:f});var c=i.getExtent.call(r);h&&(u[0]=c[0]),f&&(u[1]=c[1]);var d=i.getInterval.call(r),m=u[0],p=u[1];if(h&&f)d=(p-m)/o;else if(h)for(p=u[0]+d*o;pu[0]&&isFinite(m)&&isFinite(u[0]);)d=$l(d),m=u[1]-d*o;else{var g=r.getTicks().length-1;g>o&&(d=$l(d));var y=d*o;p=Math.ceil(u[1]/d)*d,m=Lt(p-y),m<0&&u[0]>=0?(m=0,p=Lt(y)):p>0&&u[1]<=0&&(p=0,m=-Lt(y))}var _=(n[0].value-a[0].value)/s,A=(n[o].value-a[o].value)/s;i.setExtent.call(r,m+d*_,p+d*A),i.setInterval.call(r,d),(_||A)&&i.setNiceExtent.call(r,m+d,p-d)}var YI=function(){function r(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ah,this._initCartesian(t,e,i),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=Mt(o),u=l.length;if(!!u){for(var h=[],f=u-1;f>=0;f--){var v=+l[f],c=o[v],d=c.model,m=c.scale;rh(m)&&d.get("alignTicks")&&d.get("interval")==null?h.push(c):(gd(m,d),rh(m)&&(s=c))}h.length&&(s||(s=h.pop(),gd(s.scale,s.model)),M(h,function(p){WI(p.scale,p.model,s.scale)}))}}n(i.x),n(i.y);var a={};M(i.x,function(o){Ud(i,"y",o,a)}),M(i.y,function(o){Ud(i,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,i){var n=t.getBoxLayoutParams(),a=!i&&t.get("containLabel"),o=ma(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var h=bM(u);if(h){var f=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[f]-=h[f]+v,u.position==="top"?o.y+=h.height+v:u.position==="left"&&(o.x+=h.width+v)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var h=u.isHorizontal(),f=h?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(f[v],f[1-v]),XI(u,h?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(i!=null)return i[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var i="x"+t+"y"+e;return this._coordsMap[i]}K(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n0?"top":"bottom",a="center"):$o(n-Pr)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),Yd={axisLine:function(r,t,e,i){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var a=t.axis.getExtent(),o=i.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Se(s,s,o),Se(l,l,o));var h=z({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new wi({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});da(f.shape,f.style.lineWidth),f.anid="line",e.add(f);var v=t.get(["axisLine","symbol"]);if(v!=null){var c=t.get(["axisLine","symbolSize"]);$(v)&&(v=[v,v]),($(c)||xt(c))&&(c=[c,c]);var d=Zm(t.get(["axisLine","symbolOffset"])||0,c),m=c[0],p=c[1];M([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(v[y]!=="none"&&v[y]!=null){var _=on(v[y],-m/2,-p/2,m,p,h.stroke,!0),A=g.r+g.offset,b=u?l:s;_.attr({rotation:g.rotate,x:b[0]+A*Math.cos(r.rotation),y:b[1]-A*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,i){var n=qI(e,i,t,r),a=JI(e,i,t,r);if(ZI(t,a,n),KI(e,i,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=FM(j(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));zM(o)}},axisName:function(r,t,e,i){var n=ua(r.axisName,t.get("name"));if(!!n){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),h=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-h*l:a==="end"?u[1]+h*l:(u[0]+u[1])/2,$d(a)?r.labelOffset+o*l:0],v,c=t.get("nameRotate");c!=null&&(c=c*Pr/180);var d;$d(a)?v=gi.innerTextLayout(r.rotation,c!=null?c:r.rotation,o):(v=QI(r.rotation,a,c||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var m=s.getFont(),p=t.get("nameTruncate",!0)||{},g=p.ellipsis,y=ua(r.nameTruncateMaxWidth,p.maxWidth,d),_=new qt({x:f[0],y:f[1],rotation:v.rotation,silent:gi.isLabelSilent(t),style:kr(s,{text:n,font:m,overflow:"truncate",width:y,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(Yh({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var A=gi.makeAxisEventDataBase(t);A.targetType="axisName",A.name=n,yt(_).eventData=A}i.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function QI(r,t,e,i){var n=Zp(e-r),a,o,s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return $o(n-Pr/2)?(o=l?"bottom":"top",a="center"):$o(n-Pr*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",nPr/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function ZI(r,t,e){if(!Fy(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],h=e[1],f=e[e.length-1],v=e[e.length-2];i===!1?(fe(a),fe(u)):Xd(a,o)&&(i?(fe(o),fe(h)):(fe(a),fe(u))),n===!1?(fe(s),fe(f)):Xd(l,s)&&(n?(fe(l),fe(v)):(fe(s),fe(f)))}}function fe(r){r&&(r.ignore=!0)}function Xd(r,t){var e=r&&r.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!e||!i)){var n=wh([]);return xh(n,n,-r.rotation),e.applyTransform(Ki([],n,r.getLocalTransform())),i.applyTransform(Ki([],n,t.getLocalTransform())),e.intersect(i)}}function $d(r){return r==="middle"||r==="center"}function i0(r,t,e,i,n){for(var a=[],o=[],s=[],l=0;l=0||r===t}function n2(r){var t=xf(r);if(!!t){var e=t.axisPointerModel,i=t.axis.scale,n=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=i.parse(o));var s=sh(e);a==null&&(n.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=xf(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(t,e,i,n,a){},r.prototype.createPointerEl=function(t,e,i,n){var a=e.pointer;if(a){var o=ui(t).pointerEl=new Ww[a.type](qd(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,n){if(e.label){var a=ui(t).labelEl=new qt(qd(e.label));t.add(a),Jd(a,n)}},r.prototype.updatePointerEl=function(t,e,i){var n=ui(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,i,n){var a=ui(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{x:e.label.x,y:e.label.y}),Jd(a,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Wh(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Dp(u.event)},onmousedown:eu(this._onHandleDragMove,this,0,0),drift:eu(this._onHandleDragMove,this),ondragend:eu(this._onHandleDragEnd,this)}),i.add(n)),jd(n,e,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");U(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Vm(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Kd(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ru(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(!!i){this._dragging=!0;var n=this.updateHandleTransform(ru(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(ru(n)),ui(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Xu(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},r}();function Kd(r,t,e,i){l0(ui(e).lastProp,i)||(ui(e).lastProp=i,t?ue(e,i,r):(e.stopAnimation(),e.attr(i)))}function l0(r,t){if(K(r)&&K(t)){var e=!0;return M(t,function(i,n){e=e&&l0(r[n],i)}),!!e}else return r===t}function Jd(r,t){r[t.get(["label","show"])?"show":"hide"]()}function ru(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function jd(r,t,e){var i=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=e)})}const g2=p2;function m2(r){var t=r.get("type"),e=r.getModel(t+"Style"),i;return t==="line"?(i=e.getLineStyle(),i.fill=null):t==="shadow"&&(i=e.getAreaStyle(),i.stroke=null),i}function y2(r,t,e,i,n){var a=e.get("value"),o=u0(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Ls(s.get("padding")||0),u=s.getFont(),h=Mh(o,u),f=n.position,v=h.width+l[1]+l[3],c=h.height+l[0]+l[2],d=n.align;d==="right"&&(f[0]-=v),d==="center"&&(f[0]-=v/2);var m=n.verticalAlign;m==="bottom"&&(f[1]-=c),m==="middle"&&(f[1]-=c/2),_2(f,v,c,i);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:kr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function _2(r,t,e,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function u0(r,t,e,i,n){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:yf(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(i,function(l){var u=e.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,f=u&&u.getDataParams(h);f&&s.seriesData.push(f)}),$(o)?a=o.replace("{value}",a):rt(o)&&(a=o(s))}return a}function h0(r,t,e){var i=ha();return xh(i,i,e.rotation),pu(i,i,e.position),Uh([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function A2(r,t,e,i,n,a){var o=n0.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),y2(t,i,n,a,{position:h0(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function S2(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function b2(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var w2=function(r){et(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),h=tp(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var v=m2(a),c=x2[u](s,f,h);c.style=v,e.graphicKey=c.type,e.pointer=c}var d=oh(l.model,n);A2(i,e,d,n,a,o)},t.prototype.getHandleTransform=function(e,i,n){var a=oh(i.axis.grid.model,i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=h0(i.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=tp(s,o).getOtherAxis(o).getGlobalExtent(),h=o.dim==="x"?0:1,f=[e.x,e.y];f[h]+=i[h],f[h]=Math.min(l[1],f[h]),f[h]=Math.max(l[0],f[h]);var v=(u[1]+u[0])/2,c=[v,v];c[h]=f[h];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:c,tooltipOption:d[h]}},t}(g2);function tp(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var x2={line:function(r,t,e){var i=S2([t,e[0]],[t,e[1]],ep(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,t,e){var i=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:b2([t-i/2,e[0]],[i,n],ep(r))}}};function ep(r){return r.dim==="x"?0:1}const T2=w2;var C2=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},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}},t}(Ct);const D2=C2;var tr=Ot(),M2=M;function f0(r,t,e){if(!ot.node){var i=t.getZr();tr(i).records||(tr(i).records={}),I2(i,t);var n=tr(i).records[r]||(tr(i).records[r]={});n.handler=e}}function I2(r,t){if(tr(r).initialized)return;tr(r).initialized=!0,e("click",Et(rp,"click")),e("mousemove",Et(rp,"mousemove")),e("globalout",L2);function e(i,n){r.on(i,function(a){var o=R2(t);M2(tr(r).records,function(s){s&&n(s,a,o.dispatchAction)}),P2(o.pendings,t)})}}function P2(r,t){var e=r.showTip.length,i=r.hideTip.length,n;e?n=r.showTip[e-1]:i&&(n=r.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function L2(r,t,e){r.handler("leave",null,e)}function rp(r,t,e,i){t.handler(r,e,i)}function R2(r){var t={showTip:[],hideTip:[]},e=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=e,r.dispatchAction(i))};return{dispatchAction:e,pendings:t}}function uh(r,t){if(!ot.node){var e=t.getZr(),i=(tr(e).records||{})[r];i&&(tr(e).records[r]=null)}}var E2=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=i.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";f0("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,i){uh("axisPointer",i)},t.prototype.dispose=function(e,i){uh("axisPointer",i)},t.type="axisPointer",t}(sr);const k2=E2;function c0(r,t){var e=[],i=r.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=Si(a,r);if(o==null||o<0||U(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),f=h.dim,v=u.dim,c=f==="x"||f==="radius"?1:0,d=a.mapDimension(v),m=[];m[c]=a.get(d,o),m[1-c]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(m)||[]}else e=l.dataToPoint(a.getValues(j(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:s}}var ip=Ot();function O2(r,t,e){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||Dt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){No(n)&&(n=c0({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=No(n),u=a.axesInfo,h=s.axesInfo,f=i==="leave"||No(n),v={},c={},d={list:[],map:{}},m={showPointer:Et(N2,c),showTooltip:Et(F2,d)};M(s.coordSysMap,function(g,y){var _=l||g.containPoint(n);M(s.coordSysAxesInfo[y],function(A,b){var S=A.axis,w=H2(u,A);if(!f&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=S.pointToData(n)),T!=null&&np(A,T,m,!1,v)}})});var p={};return M(h,function(g,y){var _=g.linkGroup;_&&!c[y]&&M(_.axesInfo,function(A,b){var S=c[b];if(A!==g&&S){var w=S.value;_.mapper&&(w=g.axis.scale.parse(_.mapper(w,ap(A),ap(g)))),p[g.key]=w}})}),M(p,function(g,y){np(h[y],g,m,!0,v)}),z2(c,h,v),G2(d,n,r,o),V2(h,o,e),v}}function np(r,t,e,i,n){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=B2(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&z(n,s[0]),!i&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function B2(r,t){var e=t.axis,i=e.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(l,u){var h=l.getData().mapDimensionsAll(i),f,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(h,r,e);v=c.dataIndices,f=c.nestestValue}else{if(v=l.getData().indicesOfNearest(h[0],r,e.type==="category"?.5:null),!v.length)return;f=l.getData().get(h[0],v[0])}if(!(f==null||!isFinite(f))){var d=r-f,m=Math.abs(d);m<=o&&((m=0&&s<0)&&(o=m,s=d,n=f,a.length=0),M(v,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:n}}function N2(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function F2(r,t,e,i){var n=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=xa(l),h=r.map[u];h||(h=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(h)),h.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function z2(r,t,e){var i=e.axesInfo=[];M(t,function(n,a){var o=n.axisPointerModel.option,s=r[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function G2(r,t,e,i){if(No(t)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function V2(r,t,e){var i=e.getZr(),n="axisPointerLastHighlights",a=ip(i)[n]||{},o=ip(i)[n]={};M(r,function(u,h){var f=u.axisPointerModel.option;f.status==="show"&&M(f.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];M(a,function(u,h){!o[h]&&l.push(u)}),M(o,function(u,h){!a[h]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function H2(r,t){for(var e=0;e<(r||[]).length;e++){var i=r[e];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function ap(r){var t=r.axis.model,e={},i=e.axisDim=r.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function No(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function v0(r){a0.registerAxisPointerClass("CartesianAxisPointer",T2),r.registerComponentModel(D2),r.registerComponentView(k2),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!U(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=jI(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},O2)}function d0(r){lr(d2),lr(v0)}function U2(r,t){var e=Ls(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),r=new kt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),r}var W2=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Ct);const Y2=W2;function p0(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function g0(r){if(!!ot.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var h=u*Math.PI/180,f=o+n,v=f*Math.abs(Math.cos(h))+f*Math.abs(Math.sin(h)),c=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-f)/2)*100)/100;s+=";"+a+":-"+c+"px";var d=t+" solid "+n+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'
'}function J2(r,t){var e="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+e,n="opacity"+i+",visibility"+i;return t||(i=" "+r+"s "+e,n+=ot.transformSupported?","+Tf+i:",left"+i+",top"+i),Q2+":"+n}function op(r,t,e){var i=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!ot.transformSupported)return e?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=ot.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return e?"top:0;left:0;"+Tf+":"+o+";":[["top",0],["left",0],[m0,o]]}function j2(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var n=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+n),M(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function tP(r,t,e){var i=[],n=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),h=r.getModel("textStyle"),f=zm(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+v),t&&n&&i.push(J2(n,e)),a&&i.push("background-color:"+a),M(["width","color","radius"],function(c){var d="border-"+c,m=cm(d),p=r.get(m);p!=null&&i.push(d+":"+p+(c==="color"?"":"px"))}),i.push(j2(h)),f!=null&&i.push("padding:"+Ls(f).join("px ")+"px"),i.join(";")+";"}function sp(r,t,e,i,n){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&W1(r,o,document.body,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var eP=function(){function r(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),o=this._appendToBody=i&&i.appendToBody;sp(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,h=a.painter.getViewportRoot();ve(h,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,i=$2(e,"position"),n=e.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=Z2+tP(t,!this._firstShow,this._longHide)+op(a[0],a[1],!0)+("border-color:"+xi(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if($(a)&&i.get("trigger")==="item"&&!p0(i)&&(s=K2(i,n,a)),$(t))o.innerHTML=t+s;else if(t){o.innerHTML="",U(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,n=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,n,a){if(!(a.from===this.uid||ot.node||!n.getDom())){var o=hp(a,n);this._ticket="";var s=a.dataByCoordSys,l=hP(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var h=aP;h.x=a.x,h.y=a.y,h.update(),yt(h).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:h},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,n,a))return;var f=c0(a,i),v=f.point[0],c=f.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,i,n,a){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(hp(a,n))},t.prototype._manuallyAxisShowTip=function(e,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(!!u){var h=u.getData(),f=Gn([h.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,i){var n=e.target,a=this._tooltipModel;if(!!a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){this._lastDataByCoordSys=null;var s,l;Qn(n,function(u){if(yt(u).dataIndex!=null)return s=u,!0;if(yt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,i):l?this._showComponentItemTooltip(e,l,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var n=e.get("showDelay");i=Dt(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(e,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Gn([i.tooltipOption],a),l=this._renderMode,u=[],h=Aa("section",{blocks:[],noHeader:!0}),f=[],v=new Ol;M(e,function(y){M(y.dataByAxis,function(_){var A=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!A||b==null)){var S=u0(b,A.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=Aa("section",{header:S,noHeader:!ze(S),sortBlocks:!0,blocks:[]});h.blocks.push(w),M(_.seriesDataIndices,function(T){var D=n.getSeriesByIndex(T.seriesIndex),x=T.dataIndexInside,C=D.getDataParams(x);if(!(C.dataIndex<0)){C.axisDim=_.axisDim,C.axisIndex=_.axisIndex,C.axisType=_.axisType,C.axisId=_.axisId,C.axisValue=yf(A.axis,{value:b}),C.axisValueLabel=S,C.marker=v.makeTooltipMarker("item",xi(C.color),l);var I=Tv(D.formatTooltip(x,!0,null)),R=I.frag;if(R){var k=Gn([D],a).get("valueFormatter");w.blocks.push(k?z({valueFormatter:k},R):R)}I.text&&f.push(I.text),u.push(C)}})}})}),h.blocks.reverse(),f.reverse();var c=i.position,d=s.get("order"),m=Pv(h,v,l,d,n.get("useUTC"),s.get("textStyle"));m&&f.unshift(m);var p=l==="richText"?` + +`:"
",g=f.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],c,null,v)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=yt(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,h=o.dataIndex,f=o.dataType,v=u.getData(f),c=this._renderMode,d=e.positionDefault,m=Gn([v.getItemModel(h),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=m.get("trigger");if(!(p!=null&&p!=="item")){var g=u.getDataParams(h,f),y=new Ol;g.marker=y.makeTooltipMarker("item",xi(g.color),c);var _=Tv(u.formatTooltip(h,!1,f)),A=m.get("order"),b=m.get("valueFormatter"),S=_.frag,w=S?Pv(b?z({valueFormatter:b},S):S,y,c,A,a.get("useUTC"),m.get("textStyle")):_.text,T="item_"+u.name+"_"+h;this._showOrMove(m,function(){this._showTooltipContent(m,w,g,T,e.offsetX,e.offsetY,e.position,e.target,y)}),n({type:"showTip",dataIndexInside:h,dataIndex:v.getRawIndex(h),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,n){var a=yt(i),o=a.tooltipConfig,s=o.option||{};if($(s)){var l=s;s={content:l,formatter:l}}var u=[s],h=this._ecModel.getComponent(a.componentMainType,a.componentIndex);h&&u.push(h),u.push({formatter:s.content});var f=e.positionDefault,v=Gn(u,this._tooltipModel,f?{position:f}:null),c=v.get("content"),d=Math.random()+"",m=new Ol;this._showOrMove(v,function(){var p=ht(v.get("formatterParams")||{});this._showTooltipContent(v,c,p,d,e.offsetX,e.offsetY,e.position,i,m)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,n,a,o,s,l,u,h){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var c=i,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),m=d.color;if(v)if($(v)){var p=e.ecModel.get("useUTC"),g=U(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;c=v,y&&(c=Cs(g.axisValue,c,p)),c=vm(c,n,!0)}else if(rt(v)){var _=Dt(function(A,b){A===this._ticket&&(f.setContent(b,h,e,m,l),this._updatePosition(e,l,o,s,f,n,u))},this);this._ticket=a,c=v(n,a,_)}else c=v;f.setContent(c,h,e,m,l),f.show(e,m),this._updatePosition(e,l,o,s,f,n,u)}},t.prototype._getNearestPoint=function(e,i,n,a){if(n==="axis"||U(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!U(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,l){var u=this._api.getWidth(),h=this._api.getHeight();i=i||e.get("position");var f=o.getSize(),v=e.get("align"),c=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),rt(i)&&(i=i([n,a],s,o.el,d,{viewSize:[u,h],contentSize:f.slice()})),U(i))n=Qt(i[0],u),a=Qt(i[1],h);else if(K(i)){var m=i;m.width=f[0],m.height=f[1];var p=ma(m,{width:u,height:h});n=p.x,a=p.y,v=null,c=null}else if($(i)&&l){var g=uP(i,d,f,e.get("borderWidth"));n=g[0],a=g[1]}else{var g=sP(n,a,o,u,h,v?null:20,c?null:20);n=g[0],a=g[1]}if(v&&(n-=fp(v)?f[0]/2:v==="right"?f[0]:0),c&&(a-=fp(c)?f[1]/2:c==="bottom"?f[1]:0),p0(e)){var g=lP(n,a,o,u,h);n=g[0],a=g[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===e.length;return o&&M(n,function(s,l){var u=s.dataByAxis||[],h=e[l]||{},f=h.dataByAxis||[];o=o&&u.length===f.length,o&&M(u,function(v,c){var d=f[c]||{},m=v.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&m.length===p.length,o&&M(m,function(g,y){var _=p[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&M(v.seriesDataIndices,function(g){var y=g.seriesIndex,_=i[y],A=a[y];_&&A&&A.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){ot.node||!i.getDom()||(Xu(this,"_updatePosition"),this._tooltipContent.dispose(),uh("itemTooltip",i))},t.type="tooltip",t}(sr);function Gn(r,t,e){var i=t.ecModel,n;e?(n=new Ut(e,i,i),n=new Ut(t.option,n,i)):n=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Ut&&(o=o.get("tooltip",!0)),$(o)&&(o={formatter:o}),o&&(n=new Ut(o,n,i)))}return n}function hp(r,t){return r.dispatchAction||Dt(t.dispatchAction,t)}function sP(r,t,e,i,n,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>i?r-=l+a:r+=a),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function lP(r,t,e,i,n){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function uP(r,t,e,i){var n=e[0],a=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,h=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+h/2-a/2;break;case"top":s=t.x+u/2-n/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+h+o;break;case"left":s=t.x-n-o,l=t.y+h/2-a/2;break;case"right":s=t.x+u+o,l=t.y+h/2-a/2}return[s,l]}function fp(r){return r==="center"||r==="middle"}function hP(r,t,e){var i=Eh(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=Ma(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!!o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var h=yt(u).tooltipConfig;if(h&&h.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const fP=oP;function _0(r){lr(v0),r.registerComponentModel(Y2),r.registerComponentView(fP),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},re),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},re)}var cP=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={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:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Ct),vP=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=ft(e.get("textBaseline"),e.get("textVerticalAlign")),h=new qt({style:kr(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=h.getBoundingRect(),v=e.get("subtext"),c=new qt({style:kr(s,{text:v,fill:s.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),m=e.get("sublink"),p=e.get("triggerEvent",!0);h.silent=!d&&!p,c.silent=!m&&!p,d&&h.on("click",function(){sv(d,"_"+e.get("target"))}),m&&c.on("click",function(){sv(m,"_"+e.get("subtarget"))}),yt(h).eventData=yt(c).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(h),v&&a.add(c);var g=a.getBoundingRect(),y=e.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=ma(y,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var A={align:l,verticalAlign:u};h.setStyle(A),c.setStyle(A),g=a.getBoundingRect();var b=_.margin,S=e.getItemStyle(["color","opacity"]);S.fill=e.get("backgroundColor");var w=new kt({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:e.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(sr);function A0(r){r.registerComponentModel(cP),r.registerComponentView(vP)}var dP=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},pP=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,n=this.ecModel;i===!0&&(i=e.selector=["all","inverse"]),U(i)&&M(i,function(a,o){$(a)&&(a={type:a}),i[o]=vt(a,dP(n,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={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,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},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}},t}(Ct);const hh=pP;var Ui=Et,fh=M,So=Wt,gP=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new So),this.group.add(this._selectorGroup=new So),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,i,n,l,s,u);var h=e.getBoxLayoutParams(),f={width:n.getWidth(),height:n.getHeight()},v=e.get("padding"),c=ma(h,f,v),d=this.layoutInner(e,o,c,a,l,u),m=ma(_t({width:d.width,height:d.height},h),f,v);this.group.x=m.x-d.x,this.group.y=m.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=U2(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,n,a,o,s,l){var u=this.getContentGroup(),h=at(),f=i.get("selectedMode"),v=[];n.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),fh(i.getData(),function(c,d){var m=c.get("name");if(!this.newlineDisabled&&(m===""||m===` +`)){var p=new So;p.newline=!0,u.add(p);return}var g=n.getSeriesByName(m)[0];if(!h.get(m))if(g){var y=g.getData(),_=y.getVisual("legendLineStyle")||{},A=y.getVisual("legendIcon"),b=y.getVisual("style"),S=this._createItem(g,m,d,c,i,e,_,b,A,f,a);S.on("click",Ui(cp,m,null,a,v)).on("mouseover",Ui(ch,g.name,null,a,v)).on("mouseout",Ui(vh,g.name,null,a,v)),h.set(m,!0)}else n.eachRawSeries(function(w){if(!h.get(m)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(m))return;var D=T.indexOfName(m),x=T.getItemVisual(D,"style"),C=T.getItemVisual(D,"legendIcon"),I=er(x.fill);I&&I[3]===0&&(I[3]=.2,x=z(z({},x),{fill:vs(I,"rgba")}));var R=this._createItem(w,m,d,c,i,e,{},x,C,f,a);R.on("click",Ui(cp,null,m,a,v)).on("mouseover",Ui(ch,null,m,a,v)).on("mouseout",Ui(vh,null,m,a,v)),h.set(m,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},t.prototype._createSelector=function(e,i,n,a,o){var s=this.getSelectorGroup();fh(e,function(u){var h=u.type,f=new qt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:h==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var v=i.getModel("selectorLabel"),c=i.getModel(["emphasis","selectorLabel"]);bs(f,{normal:v,emphasis:c},{defaultText:u.title}),Eu(f)})},t.prototype._createItem=function(e,i,n,a,o,s,l,u,h,f,v){var c=e.visualDrawType,d=o.get("itemWidth"),m=o.get("itemHeight"),p=o.isSelected(i),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");h=_||h||"roundRect";var A=mP(h,a,l,u,c,p,v),b=new So,S=a.getModel("textStyle");if(rt(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:m,icon:h,iconRotate:g,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;b.add(yP({itemWidth:d,itemHeight:m,icon:h,iconRotate:w,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,D=s,x=o.get("formatter"),C=i;$(x)&&x?C=x.replace("{name}",i!=null?i:""):rt(x)&&(C=x(i));var I=a.get("inactiveColor");b.add(new qt({style:kr(S,{text:C,x:T,y:m/2,fill:p?S.getTextColor():I,align:D,verticalAlign:"middle"})}));var R=new kt({shape:b.getBoundingRect(),invisible:!0}),k=a.getModel("tooltip");return k.get("show")&&Yh({el:R,componentModel:o,itemName:i,itemTooltipOption:k.option}),b.add(R),b.eachChild(function(O){O.silent=!0}),R.silent=!f,this.getContentGroup().add(b),Eu(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ia(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var h=l.getBoundingRect(),f=[-h.x,-h.y];if(u.markRedraw(),l.markRedraw(),o){ia("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),m=e.getOrient().index,p=m===0?"width":"height",g=m===0?"height":"width",y=m===0?"y":"x";s==="end"?c[m]+=h[p]+d:f[m]+=v[p]+d,c[1-m]+=h[g]/2-v[g]/2,u.x=c[0],u.y=c[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[p]=h[p]+d+v[p],_[g]=Math.max(h[g],v[g]),_[y]=Math.min(0,v[y]+c[1-m]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(sr);function mP(r,t,e,i,n,a,o){function s(p,g){p.lineWidth==="auto"&&(p.lineWidth=g.lineWidth>0?2:0),fh(p,function(y,_){p[_]==="inherit"&&(p[_]=g[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),h=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?i.decal:Ku(f,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[h]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:e).opacity),s(u,i);var v=t.getModel("lineStyle"),c=v.getLineStyle();if(s(c,e),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),c.stroke==="auto"&&(c.stroke=i.fill),!a){var d=t.get("inactiveBorderWidth"),m=u[h];u.lineWidth=d==="auto"?i.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function yP(r){var t=r.icon||"roundRect",e=on(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function cp(r,t,e,i){vh(r,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),ch(r,t,e,i)}function S0(r){for(var t=r.getZr().storage.getDisplayList(),e,i=0,n=t.length;in[o],p=[-c.x,-c.y];i||(p[a]=h[u]);var g=[0,0],y=[-d.x,-d.y],_=ft(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(m){var A=e.get("pageButtonPosition",!0);A==="end"?y[a]+=n[o]-d[o]:g[a]+=d[o]+_}y[1-a]+=c[s]/2-d[s]/2,h.setPosition(p),f.setPosition(g),v.setPosition(y);var b={x:0,y:0};if(b[o]=m?n[o]:c[o],b[s]=Math.max(c[s],d[s]),b[l]=Math.min(0,d[l]+y[1-a]),f.__rectSize=n[o],m){var S={x:0,y:0};S[o]=Math.max(n[o]-d[o]-_,0),S[s]=b[s],f.setClipPath(new kt({shape:S})),f.__rectSize=S[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&ue(h,{x:w.contentPosition[0],y:w.contentPosition[1]},m?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,i,n){var a=this._getPageInfo(i)[e];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var n=this._controllerGroup;M(["pagePrev","pageNext"],function(h){var f=h+"DataIndex",v=i[f]!=null,c=n.childOfName(h);c&&(c.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var a=n.childOfName("pageText"),o=e.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",$(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=iu[o],l=nu[o],u=this._findTargetItemIndex(i),h=n.children(),f=h[u],v=h.length,c=v?1:0,d={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var m=A(f);d.contentPosition[o]=-m.s;for(var p=u+1,g=m,y=m,_=null;p<=v;++p)_=A(h[p]),(!_&&y.e>g.s+a||_&&!b(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var p=u-1,g=m,y=m,_=null;p>=-1;--p)_=A(h[p]),(!_||!b(y,_.s))&&g.i=w&&S.s<=w+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(i=s)}),i!=null?i:a},t.type="legend.scroll",t}(b0);const xP=wP;function TP(r){r.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;i!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(i)})})}function CP(r){lr(w0),r.registerComponentModel(bP),r.registerComponentView(xP),TP(r)}function DP(r){lr(w0),lr(CP)}function pp(r,t,e){var i=Ci.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r)),i.width=n*e,i.height=a*e,i}var MP=function(r){bt(t,r);function t(e,i,n){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;n=n||Yo,typeof e=="string"?o=pp(e,i,n):K(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(Tp(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=pp("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new dt(0,0,0,0);function h(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new dt(0,0,0,0);_.copy(y),o.push(_)}else{for(var A=!1,b=1/0,S=0,w=0;w=s)}}for(var f=this.__startIndex;f15)break}}k.prevElClipPaths&&g.restore()};if(y)if(y.length===0)T=p.__endIndex;else for(var x=c.dpr,C=0;C0&&t>n[0]){for(l=0;lt);l++);s=i[n[l]]}if(n.splice(l+1,0,t),i[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n0?bo:0),this._needsManuallyCompositing),h.__builtin__||Ah("ZLevel "+u+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==l&&(h.__dirty=!0),h.__startIndex=l,h.incremental?h.__drawIndex=-1:h.__drawIndex=l,e(l),a=h),n.__dirty&oe&&!n.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(f,v){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,M(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?vt(i[t],e,!0):i[t]=e;for(var n=0;n(un("data-v-a16c38e1"),r=r(),hn(),r),OP={class:"chart-container"},BP=kP(()=>E("div",{class:"chart-header"},[E("div",{class:"chart-title"},"\u5145\u7535\u65F6\u957F\u5206\u6790")],-1)),NP={__name:"ChargingDurationChart",setup(r){lr([LI,d0,_0,A0,x0]);const t=nt(null);let e=null;const i=[{month:"7.1",charge:350,discharge:280},{month:"7.2",charge:230,discharge:190},{month:"7.3",charge:400,discharge:320},{month:"7.4",charge:280,discharge:220},{month:"7.5",charge:350,discharge:260},{month:"7.6",charge:450,discharge:380},{month:"7.7",charge:300,discharge:240},{month:"7.8",charge:420,discharge:340},{month:"7.9",charge:250,discharge:180},{month:"7.10",charge:380,discharge:300},{month:"7.11",charge:320,discharge:250},{month:"7.12",charge:400,discharge:320}];function n(){if(!t.value)return;e=py(t.value);const s={grid:{left:"2%",right:"2%",bottom:"10%",top:"5%",containLabel:!0},legend:{data:["\u5145\u7535\u65F6\u957F","\u653E\u7535\u65F6\u957F"],top:"0",itemWidth:10,itemHeight:10,itemGap:10,textStyle:{color:"#96A0B5",fontSize:12}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},backgroundColor:"#343744",borderColor:"#4C4F5F",textStyle:{color:"#fff"}},xAxis:{type:"category",data:i.map(l=>l.month),axisLine:{lineStyle:{color:"#4C4F5F"}},axisLabel:{color:"#96A0B5",fontSize:12},axisTick:{show:!1}},yAxis:{type:"value",axisLine:{show:!1},axisLabel:{color:"#96A0B5",fontSize:12},splitLine:{lineStyle:{color:"#343744",type:"dashed"}},max:500},series:[{name:"\u5145\u7535\u65F6\u957F",type:"bar",barWidth:"20%",data:i.map(l=>l.charge),itemStyle:{color:"#347AE2",borderRadius:[4,4,0,0]}},{name:"\u653E\u7535\u65F6\u957F",type:"bar",barWidth:"20%",data:i.map(l=>l.discharge),itemStyle:{color:"#B8D4FE",borderRadius:[4,4,0,0]}}]};e.setOption(s),window.addEventListener("resize",a)}function a(){e&&e.resize()}en(()=>{ou(()=>{setTimeout(()=>{n(),e&&e.resize()},0)})});const o=nt(null);return en(()=>{ou(()=>{window.ResizeObserver&&t.value&&(o.value=new ResizeObserver(()=>{e?e.resize():n()}),o.value.observe(t.value)),setTimeout(()=>{n()},0)})}),_p(()=>{window.removeEventListener("resize",a),o.value&&t.value&&(o.value.unobserve(t.value),o.value=null),e&&(e.dispose(),e=null)}),(s,l)=>(gt(),mt("div",OP,[BP,E("div",{class:"chart-body",ref_key:"chartRef",ref:t},null,512)]))}},FP=Or(NP,[["__scopeId","data-v-a16c38e1"]]);const zP=r=>(un("data-v-d0b87f83"),r=r(),hn(),r),GP={class:"chart-container"},VP=zP(()=>E("div",{class:"chart-header"},[E("div",{class:"chart-title"},"\u5145\u653E\u7535\u91CF\u5BF9\u6BD4")],-1)),HP={__name:"ChargingComparisonChart",setup(r){lr([vI,d0,_0,A0,DP,x0]);const t=nt(null);let e=null;const i={dates:["7.2","7.3","7.4","7.5","7.6","7.7","7.8","7.9","7.10","7.11","7.12"],chargeData:[45,65,55,80,60,55,70,60,85,65,75],dischargeData:[30,45,35,50,40,30,45,35,60,40,50]};function n(){if(!t.value)return;e=py(t.value);const s=i.chargeData.indexOf(Math.max(...i.chargeData)),l=i.dischargeData.indexOf(Math.max(...i.dischargeData)),u={grid:{left:"2%",right:"2%",bottom:"10%",top:"8%",containLabel:!0},tooltip:{trigger:"axis",backgroundColor:"#343744",borderColor:"#4C4F5F",textStyle:{color:"#fff"}},legend:{data:["\u5145\u7535\u91CF","\u653E\u7535\u91CF"],top:"0",itemWidth:10,itemHeight:10,itemGap:10,textStyle:{color:"#96A0B5",fontSize:12}},xAxis:{type:"category",boundaryGap:!1,data:i.dates,axisLine:{lineStyle:{color:"#4C4F5F"}},axisLabel:{color:"#96A0B5",fontSize:12},axisTick:{show:!1}},yAxis:{type:"value",axisLine:{show:!1},axisLabel:{color:"#96A0B5",fontSize:12},splitLine:{lineStyle:{color:"#343744",type:"dashed"}},min:0,max:100},series:[{name:"\u5145\u7535\u91CF",type:"line",smooth:!0,symbol:"none",symbolSize:8,lineStyle:{width:3,color:"#347AE2"},itemStyle:{color:"#347AE2",borderWidth:2,borderColor:"#fff"},data:i.chargeData.map((h,f)=>f===s?{value:h,symbolSize:10,symbol:"circle",itemStyle:{color:"#347AE2",borderWidth:1,borderColor:"#fff",shadowColor:"#347AE2",shadowBlur:10}}:h),areaStyle:{opacity:.1,color:new Jo(0,0,0,1,[{offset:0,color:"#347AE2"},{offset:1,color:"rgba(52, 122, 226, 0)"}])}},{name:"\u653E\u7535\u91CF",type:"line",smooth:!0,symbol:"none",symbolSize:8,lineStyle:{width:3,color:"#B8D4FE"},itemStyle:{color:"#B8D4FE",borderWidth:1,borderColor:"#fff",shadowColor:"#B8D4FE",shadowBlur:10},data:i.dischargeData.map((h,f)=>f===l?{value:h,symbolSize:10,symbol:"circle",itemStyle:{color:"#B8D4FE",borderWidth:2,borderColor:"#fff"}}:h),areaStyle:{opacity:.1,color:new Jo(0,0,0,1,[{offset:0,color:"#B8D4FE"},{offset:1,color:"rgba(184, 212, 254, 0)"}])}}]};e.setOption(u),window.addEventListener("resize",a)}function a(){e&&e.resize()}const o=nt(null);return en(()=>{ou(()=>{window.ResizeObserver&&t.value&&(o.value=new ResizeObserver(()=>{e?e.resize():n()}),o.value.observe(t.value)),setTimeout(()=>{n(),e&&e.resize()},0)})}),_p(()=>{window.removeEventListener("resize",a),o.value&&t.value&&(o.value.unobserve(t.value),o.value=null),e&&(e.dispose(),e=null)}),(s,l)=>(gt(),mt("div",GP,[VP,E("div",{class:"chart-body",ref_key:"chartRef",ref:t},null,512)]))}},UP=Or(HP,[["__scopeId","data-v-d0b87f83"]]);const Ea=r=>(un("data-v-812ae25e"),r=r(),hn(),r),WP={class:"charging-stats"},YP={class:"stats-container"},XP={class:"stats-cards"},$P={class:"stat-card"},QP=Ea(()=>E("div",{class:"stat-icon"},[E("img",{src:c1,alt:"\u5145\u7535\u6B21\u6570"})],-1)),ZP={class:"stat-content"},qP=Ea(()=>E("div",{class:"stat-title"},"\u5145\u7535\u603B\u6B21\u6570",-1)),KP={class:"stat-value"},JP={class:"stat-card"},jP=Ea(()=>E("div",{class:"stat-icon"},[E("img",{src:v1,alt:"\u7535\u6C60\u5065\u5EB7\u72B6\u6001"})],-1)),tL={class:"stat-content"},eL=Ea(()=>E("div",{class:"stat-title"},"\u7535\u6C60\u5065\u5EB7\u72B6\u6001",-1)),rL={class:"stat-value"},iL={class:"charts-area"},nL={class:"filter-bar"},aL={class:"date-range"},oL=Ea(()=>E("span",{class:"date-label"},"\u5145\u7535\u8BB0\u5F55",-1)),sL={__name:"ChargingStats",setup(r){const t={totalCount:50,health:85},e=nt(null),i=nt(1),n=nt(10),a=[{index:1,carId:"DONGLIHANUN5695",vin:"ANA45332156",chargeStatus:"\u505C\u8F66\u5145\u7535",startTime:"2024-08-17 15:48:30",endTime:"2024-08-17 17:48:30",chargePile:"T3\u70B9\u4F4D",operator:"\u5F20\u4E09"},{index:2,carId:"DONGLIHANUN5695",vin:"ANA45332156",chargeStatus:"\u505C\u8F66\u5145\u7535",startTime:"2024-08-17 15:48:30",endTime:"2024-08-17 17:48:30",chargePile:"T3\u70B9\u4F4D",operator:"\u5F20\u4E09"},{index:3,carId:"DONGLIHANUN5695",vin:"ANA45332156",chargeStatus:"\u505C\u8F66\u5145\u7535",startTime:"2024-08-17 15:48:30",endTime:"2024-08-17 17:48:30",chargePile:"T3\u70B9\u4F4D",operator:"\u5F20\u4E09"}],o=Ve(()=>(e.value,a)),s=Ve(()=>{const f=(i.value-1)*n.value;return o.value.slice(f,f+n.value)});function l(){i.value=1}function u(){e.value=null,i.value=1}function h({page:f,limit:v}){i.value=f,n.value=v}return(f,v)=>{const c=Pt("el-date-picker"),d=Pt("el-button"),m=Pt("el-table-column"),p=Pt("el-table");return gt(),mt("div",WP,[E("div",YP,[E("div",XP,[E("div",$P,[QP,E("div",ZP,[qP,E("div",KP,pt(t.totalCount),1)])]),E("div",JP,[jP,E("div",tL,[eL,E("div",rL,pt(t.health)+"%",1)])])]),E("div",iL,[H(FP),H(UP)])]),E("div",nL,[E("div",aL,[oL,H(c,{modelValue:e.value,"onUpdate:modelValue":v[0]||(v[0]=g=>e.value=g),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F",size:"default",class:"date-picker"},null,8,["modelValue"]),H(d,{type:"primary",class:"filter-btn",onClick:l},{default:lt(()=>[Le("\u641C\u7D22")]),_:1}),H(d,{class:"reset-btn",onClick:u},{default:lt(()=>[Le("\u91CD\u7F6E")]),_:1})])]),H(p,{data:Ft(s),style:{width:"100%"},"header-cell-style":{backgroundColor:"#343744",color:"#96A0B5",fontWeight:"normal"},class:"custom-table"},{default:lt(()=>[H(m,{prop:"index",label:"\u5E8F\u53F7",width:"60",align:"center"}),H(m,{prop:"carId",label:"\u8F66\u8F86\u7F16\u53F7","min-width":"180"}),H(m,{prop:"vin",label:"\u8F66\u8F86\u8BC6\u522B\u7801","min-width":"120"}),H(m,{prop:"chargeStatus",label:"\u5145\u7535\u72B6\u6001",width:"100"}),H(m,{prop:"startTime",label:"\u5F00\u59CB\u65F6\u95F4","min-width":"160"}),H(m,{prop:"endTime",label:"\u7ED3\u675F\u65F6\u95F4","min-width":"160"}),H(m,{prop:"chargePile",label:"\u5145\u7535\u6869",width:"100"}),H(m,{prop:"operator",label:"\u5145\u7535\u64CD\u4F5C\u5458",width:"120"})]),_:1},8,["data"]),dh(H(gh,{total:Ft(o).length,page:i.value,"onUpdate:page":v[1]||(v[1]=g=>i.value=g),limit:n.value,"onUpdate:limit":v[2]||(v[2]=g=>n.value=g),onPagination:h},null,8,["total","page","limit"]),[[ph,Ft(o).length>0]])])}}},lL=Or(sL,[["__scopeId","data-v-812ae25e"]]);const uL={class:"video-monitoring"},hL={class:"video-monitoring-content"},fL={key:0,class:"one-view"},cL=["src"],vL={key:1,class:"two-view"},dL=["src"],pL={key:2,class:"six-view"},gL=["src"],mL={__name:"VideoMonitoring",props:{layoutType:{type:String,default:"6"},vehicle:{type:Object,default:()=>({})}},setup(r){const t=r,e=nt(Array.from({length:20}).map((s,l)=>({id:l+1,img:`https://picsum.photos/seed/${l+1}/400/220`}))),i=nt(1),n=nt(6),a=Ve(()=>{const s=(i.value-1)*n.value;return e.value.slice(s,s+n.value)});function o({page:s,limit:l}){i.value=s,n.value=l}return(s,l)=>(gt(),mt("div",uL,[E("div",hL,[t.layoutType==="1"?(gt(),mt("div",fL,[Ft(a)[0]?(gt(),mt("img",{key:0,src:Ft(a)[0].img,class:"video-img"},null,8,cL)):la("",!0)])):t.layoutType==="2"?(gt(),mt("div",vL,[(gt(!0),mt(mi,null,yi(Ft(a).slice(0,2),u=>(gt(),mt("img",{key:u.id,src:u.img,class:"video-img"},null,8,dL))),128))])):(gt(),mt("div",pL,[(gt(!0),mt(mi,null,yi(Ft(a).slice(0,6),u=>(gt(),mt("img",{key:u.id,src:u.img,class:"video-img"},null,8,gL))),128))]))]),dh(H(gh,{total:e.value.length,page:i.value,"onUpdate:page":l[0]||(l[0]=u=>i.value=u),limit:n.value,"onUpdate:limit":l[1]||(l[1]=u=>n.value=u),onPagination:o},null,8,["total","page","limit"]),[[ph,e.value.length>0]])]))}},yL=Or(mL,[["__scopeId","data-v-d78e640f"]]),_L="/airport/assets/car.df33b16b.png",AL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAYAAABG1c6oAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFPSURBVHgB1VTRUcMwDFW4DpANmg1gg4QJygZlg3YEmIAyQcsEHBMkTFA2IEyQbBDei+WecO0G+Gp190456UmWZDki5y5ZaBiGIYe6k2npgSbLst4aryLEGpgz9wSulZsWVHcDvMovBdwtY6xtFnDobHxyqEUi1wtabaE/gFL1KGHLC+PcAm0Cvot3LSLZwl51AdQneDUwtzFHFcKxMdUdWk8IeZV+94h98o6ZJruH6jCXtdo5lwr2KpGwELc2gphbJgTW+N7YFn7Mgi1NIDfcwm+HveXOJsRpX/I3GQ84Wmw9rQOWqUiOaHCSh77YS+FsduJWIiUNOeGzsyce1uA/YtfMz/ANeICxhX7mySThO9X2+FK05ZW4W2/oGFvW696J261Cg/jNm28D0FYqp1Ae23+USOncvU9gxRegVcba2xvO6V+dBixjySKcUi5OvgHyc/+bbxXYmwAAAABJRU5ErkJggg==",SL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAYAAABG1c6oAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFkSURBVHgBnVWBccMgDMS9DMAGZYN6g7oTJBs4G2QEZ4O0E7gb+DoB1wniDWgnSDegkv1ciCMIie4UQLxeWEikUhnx3msaGlIN0w/pWFXVn7pHiKghtX4WhznrCTaetyVEOnLsSJ8FjCE9IFDP6xSZAeiYBF3jB/gYCRDItLpDCP955UeLvRQJp4hVJ0iZsIud/DLJkX0pw5IYl3ia7PSz5dMJUQMhR2+hA2wHAW9JdwqgLkNoc7Zob8dcTzQ3pKMqk01m75e0Xqm5C3KVX+NEjKth+xBwE8cKi5JSMRg31Hpfwv50MP7kMYosCffuG43vWDcJ3IviXkcypSRfXADa0sFmBLydSg9ArqEmRwjbVrpl1OE5kJ8fAhcXLAK1pOuF8xr2GOsuSg/OR/94LztpI7w2zpe9NuGpS+NB2iMffSL5jNkj77boi5B8C+LgaKNb5vmr5FvdIOboXF8GJu6G79x/yj8kbSZWvqff8AAAAABJRU5ErkJggg==",bL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAYAAABG1c6oAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAECSURBVHgB1VTREYIwDA0sICN0A3ECHYENOCeADXQDRlA3cAN1AkYQJpANMA9SL3ogWPzh3b1rTcPzJQ0QzQ51XUfMHdOQA3wlZJg5b5fMknmgKWCxu3bF+xROyQXi7tIRz5kB/QBf7YuOc8QW5CBYMUN9wM72iHueV5ILULItDyt6Sg7QJZ+ZCf0L1pVyiVlMaQpkVDL1G7cc0xSwwNGKiOtcLsieG+n3A/HBsVIioYplEktkjVRFb7l9okY/qGLo67ond9Cp+Sz3S+5r5Py+JB7ogrlq85vbj/v+WPKrZqURkIfwoUCvrswbtW8XvkxoyxYGRgsq4UBENhKC6Mm6mweer333pfR8GGwAAAAASUVORK5CYII=",wL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAYAAABG1c6oAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEHSURBVHgBrZSBEYIwDEVbJ+gGMgIj4ASygW7ACLIBOgFuwAi6AWyATgAbYHL3OauW0IL/7l+1aR4hBJT6s/TcgWEYDC0RmddGa92rpSJYTu6GT+VqiSjxDFiKKnnvSG7JRSgsQjWxI5Yglihf0eETuRbiNTlzxTZqWv1MzIQAn+R47J1D3IqH8hWDppqPh9VO5WoBylVU+HvFmqC6Hc1jEwQENKIlA4R1J19WDfcIFvrpDeGBvn29KR32DiGgyAIV5D15yz3F7xLwFi0RYbFVhZm5aIWzsXTIOSoCuECOcQVLab4EaP1ThPUx8G/2OzfBrRt7M11SnZXPwL29YSab6weU3vt1egG3wzmt7zGikAAAAABJRU5ErkJggg==",xL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAYAAABG1c6oAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEHSURBVHgB5ZPREYIwEEQvjv9aQkrQCtQO7EDtwBK0AzoAOtAKHCoAK4AOsAPcg4sGRgkiP447s1wYNi8JSYj+ToofRVEsURaObAaflVK3ViBgW1QfTuC2sJY6b4UCGMM+OYTMFM7hjSuYOkP1bFO1vmP6XB58kvYSDgAl/IawLzBB50jaEcNsaB9gTYAcbejXQAs6RfMwouF05ceQwFKPJcuU+QjwoXXeCCvPNWwCZ1Qdh0wCB3TYveDwNy1X1Zd3HngPB2akWA5obEaWG9FFWvpcDGOEpc1lds0lrtUb4duqkee2J6xyBC2zSk0lh2RlqdTczFZZAU3PTQk7bsoanlC1iRn9hO6rGuiP8LNdUQAAAABJRU5ErkJggg==";const $e=r=>(un("data-v-aa7c6b3c"),r=r(),hn(),r),TL={class:"vehicle-detail-content"},CL={class:"detail-header"},DL={class:"back-button"},ML={class:"vehicle-image"},IL=["src"],PL={class:"vehicle-info-panel"},LL={class:"info-top-row"},RL=["src"],EL={class:"info-bottom-row"},kL={class:"info-title"},OL={class:"info-status-row"},BL={class:"status-item"},NL=$e(()=>E("span",{class:"status-label"},"\u4F5C\u4E1A\u72B6\u6001\uFF1A",-1)),FL=$e(()=>E("span",{class:"dot status-signal"},null,-1)),zL={class:"status-value status-task"},GL=$e(()=>E("span",{class:"status-sep"},"|",-1)),VL={class:"status-item"},HL=$e(()=>E("span",{class:"dot status-signal"},null,-1)),UL=$e(()=>E("span",{class:"status-label"},"\u8F66\u8F86\u72B6\u6001\uFF1A",-1)),WL={class:"status-value status-online"},YL=D0('|\u4FE1\u53F7\u826F\u597D|\u7535\u91CF\u5145\u8DB3',4),XL={class:"info-cards-row"},$L={class:"card-icon"},QL=["src"],ZL={class:"card-content"},qL={class:"card-title"},KL={class:"card-value"},JL={class:"detail-tabs"},jL={key:0,class:"split-btns"},tR=$e(()=>E("span",{class:"custom-tabs-label"},[E("img",{src:E0,alt:"\u7535\u6C60\u6982\u51B5"}),E("span",null,"\u7535\u6C60\u6982\u51B5")],-1)),eR=$e(()=>E("span",{class:"custom-tabs-label"},[E("img",{src:k0,alt:"\u6545\u969C\u62A5\u8B66"}),E("span",null,"\u6545\u969C\u62A5\u8B66")],-1)),rR=$e(()=>E("span",{class:"custom-tabs-label"},[E("img",{src:O0,alt:"\u8F68\u8FF9\u56DE\u653E"}),E("span",null,"\u8F68\u8FF9\u56DE\u653E")],-1)),iR=$e(()=>E("span",{class:"custom-tabs-label"},[E("img",{src:B0,alt:"\u5145\u653E\u7535\u7EDF\u8BA1"}),E("span",null,"\u5145\u653E\u7535\u7EDF\u8BA1")],-1)),nR=$e(()=>E("span",{class:"custom-tabs-label"},[E("img",{src:N0,alt:"\u89C6\u9891\u76D1\u63A7"}),E("span",null,"\u89C6\u9891\u76D1\u63A7")],-1)),aR={__name:"detail",props:{vehicle:{type:Object,required:!0}},setup(r){var c,d,m,p,g,y,_;const t=r,e=nt("battery"),i=nt("6"),n=nt({}),a=nt([]),o=nt(((c=t.vehicle)==null?void 0:c.routeStatus)||"\u5F85\u547D\u4E2D"),s=nt(((d=t.vehicle)==null?void 0:d.status)||"\u5728\u7EBF"),l=nt(!1),u=nt(null);async function h(A){var b,S,w,T,D,x;if(!!A&&!l.value&&u.value!==A){l.value=!0;try{const C=await ln({url:`/api/vehicle-manager/vehicles/${encodeURIComponent(A)}`,method:"get"}),I=C&&C.data!==void 0?C.data:C||{};n.value=I,o.value=((b=I==null?void 0:I.order)==null?void 0:b.jobStageTag)||((S=t.vehicle)==null?void 0:S.routeStatus)||o.value,s.value=((w=I==null?void 0:I.loginStatus)==null?void 0:w.login)==="login"?"\u5728\u7EBF":((T=t.vehicle)==null?void 0:T.status)||s.value,u.value=A}catch{n.value=n.value||{},o.value=((D=t.vehicle)==null?void 0:D.routeStatus)||o.value,s.value=((x=t.vehicle)==null?void 0:x.status)||s.value}l.value=!1}}async function f(A){if(!A){a.value=[];return}try{const b=await M0(A),S=b&&b.data!==void 0?b.data:b||{};let w=[];const T=[S==null?void 0:S.data,S==null?void 0:S.rows,S==null?void 0:S.list,S==null?void 0:S.tasks,S];for(const x of T)if(Array.isArray(x)){w=x;break}(!w||w.length===0)&&Array.isArray(S==null?void 0:S.waypoints)&&(w=[{id:A,vehicleId:A,waypoints:S.waypoints,timestamp:S.timestamp}]);const D=(w||[]).map((x,C)=>{var Q,P,L,N,F,W,G,Z,q,Y,st;const R=(Array.isArray(x==null?void 0:x.points)?x.points:Array.isArray(x==null?void 0:x.waypoints)?x.waypoints:Array.isArray((Q=x==null?void 0:x.path)==null?void 0:Q.points)?x.path.points:[]).map(V=>{var Bt,Tt,we,xe,cr,vr,dr,tt,Te,Br,Nr,Fr,pr,gr,Nt,Qe,mr;const it=(xe=(Tt=(Bt=V==null?void 0:V.timestamp)!=null?Bt:V==null?void 0:V.time)!=null?Tt:V==null?void 0:V.ts)!=null?xe:(we=x==null?void 0:x.timestamp)!=null?we:Date.now(),ut=(tt=(dr=(vr=(cr=V==null?void 0:V.longitude)!=null?cr:V==null?void 0:V.lng)!=null?vr:V==null?void 0:V.lon)!=null?dr:V==null?void 0:V.y)!=null?tt:0,X=(Nr=(Br=(Te=V==null?void 0:V.latitude)!=null?Te:V==null?void 0:V.lat)!=null?Br:V==null?void 0:V.x)!=null?Nr:0,J=Number((pr=(Fr=V==null?void 0:V.speed)!=null?Fr:V==null?void 0:V.v)!=null?pr:0)||0;return{timestamp:typeof it=="string"?it:new Date(it).toISOString(),longitude:Number(ut)||0,latitude:Number(X)||0,speed:J,vehicleId:(gr=x==null?void 0:x.vehicleId)!=null?gr:A,licensePlate:(mr=(Qe=x==null?void 0:x.licensePlate)!=null?Qe:(Nt=t.vehicle)==null?void 0:Nt.licensePlate)!=null?mr:""}}),k=R[0],O=R[R.length-1]||k,B=R.length>0?(R.reduce((V,it)=>V+(it.speed||0),0)/R.length).toFixed(2):"0";return{id:(L=(P=x==null?void 0:x.vehicleId)!=null?P:A)==null?void 0:L.toString(),no:(W=(F=(N=x==null?void 0:x.missionId)!=null?N:x==null?void 0:x.id)!=null?F:A)==null?void 0:W.toString(),name:(Z=(G=x==null?void 0:x.name)!=null?G:x==null?void 0:x.missionType)!=null?Z:"\u4EFB\u52A1",time:k&&O?`${k.timestamp}--${O.timestamp}`:"",start:k?`\u7ECF\u5EA6${k.longitude},\u7EAC\u5EA6${k.latitude}`:"",end:O?`\u7ECF\u5EA6${O.longitude},\u7EAC\u5EA6${O.latitude}`:"",speed:`${B}km/h`,licensePlate:(st=(Y=x==null?void 0:x.licensePlate)!=null?Y:(q=t.vehicle)==null?void 0:q.licensePlate)!=null?st:"",points:R}});a.value=D}catch{a.value=[]}}en(()=>{var A,b,S,w;o.value=((A=t.vehicle)==null?void 0:A.routeStatus)||o.value,s.value=((b=t.vehicle)==null?void 0:b.status)||s.value,h((S=t.vehicle)==null?void 0:S.carId),f((w=t.vehicle)==null?void 0:w.carId)}),mp(()=>{var A;return(A=t.vehicle)==null?void 0:A.carId},A=>{h(A),f(A)});const v=[{name:"\u9A71\u52A8\u8F66",value:((m=t.vehicle)==null?void 0:m.type)||"--",icon:AL},{name:"\u6BD4\u4E9A\u8FEA",value:((p=t.vehicle)==null?void 0:p.brand)||"--",icon:SL},{name:"\u7269\u6D41\u5EFA\u7B51\u516C\u53F8",value:((g=t.vehicle)==null?void 0:g.organization)||"--",icon:xL},{name:"\u5F20\u4E09",value:((y=t.vehicle)==null?void 0:y.batteryLevel)||"--",icon:wL},{name:((_=t.vehicle)==null?void 0:_.contactPhone)||"--",value:"\u8D1F\u8D23\u4EBA\u7535\u8BDD",icon:bL}];return(A,b)=>{var C;const S=Pt("el-icon"),w=Pt("el-button"),T=Pt("el-tooltip"),D=Pt("el-tab-pane"),x=Pt("el-tabs");return gt(),mt("div",TL,[E("div",CL,[E("div",DL,[H(w,{type:"primary",plain:"",class:"btn custom-back-btn",size:"small",onClick:b[0]||(b[0]=I=>A.$emit("close"))},{default:lt(()=>[H(S,{class:"back-icon"},{default:lt(()=>[H(Ft(C0))]),_:1}),Le(" \u8FD4\u56DE\u5217\u8868 ")]),_:1})]),E("div",ML,[E("img",{src:Ft(_L),alt:"\u8F66\u8F86\u56FE\u7247"},null,8,IL)]),E("div",PL,[E("div",LL,[E("img",{src:Ft(I0),class:"car-icon"},null,8,RL)]),E("div",EL,[E("div",kL,pt(((C=r.vehicle)==null?void 0:C.carId)||"--"),1),E("div",OL,[E("span",BL,[NL,FL,E("span",zL,pt(o.value),1)]),GL,E("span",VL,[HL,UL,E("span",WL,pt(s.value),1)]),YL]),E("div",XL,[(gt(),mt(mi,null,yi(v,I=>E("div",{class:"info-card",key:I.name},[E("div",$L,[E("img",{src:I.icon},null,8,QL)]),E("div",ZL,[E("div",qL,pt(I.name),1),E("div",KL,pt(I.value),1)])])),64))])])])]),E("div",JL,[e.value==="video"?(gt(),mt("div",jL,[H(T,{content:"\u5355\u753B\u9762",placement:"top"},{default:lt(()=>[E("img",{src:P0,alt:"\u5355\u753B\u9762",onClick:b[1]||(b[1]=Vs(I=>i.value="1",["stop"]))})]),_:1}),H(T,{content:"\u53CC\u753B\u9762",placement:"top"},{default:lt(()=>[E("img",{src:L0,alt:"\u53CC\u753B\u9762",onClick:b[2]||(b[2]=Vs(I=>i.value="2",["stop"]))})]),_:1}),H(T,{content:"\u516D\u753B\u9762",placement:"top"},{default:lt(()=>[E("img",{src:R0,alt:"\u516D\u753B\u9762",onClick:b[3]||(b[3]=Vs(I=>i.value="6",["stop"]))})]),_:1})])):la("",!0),H(x,{modelValue:e.value,"onUpdate:modelValue":b[4]||(b[4]=I=>e.value=I),class:"demo-tabs",onTabClick:A.handleClick},{default:lt(()=>[H(D,{label:"\u7535\u6C60\u6982\u51B5",name:"battery"},{label:lt(()=>[tR]),default:lt(()=>[H(J0,{vehicle:r.vehicle},null,8,["vehicle"])]),_:1}),H(D,{label:"\u6545\u969C\u62A5\u8B66",name:"fault"},{label:lt(()=>[eR]),default:lt(()=>[H(n_,{vehicle:r.vehicle,detail:n.value},null,8,["vehicle","detail"])]),_:1}),H(D,{label:"\u8F68\u8FF9\u56DE\u653E",name:"track"},{label:lt(()=>[rR]),default:lt(()=>[H(f1,{vehicle:r.vehicle,detail:n.value,tasks:a.value},null,8,["vehicle","detail","tasks"])]),_:1}),H(D,{label:"\u5145\u653E\u7535\u7EDF\u8BA1",name:"charging"},{label:lt(()=>[iR]),default:lt(()=>[H(lL,{vehicle:r.vehicle},null,8,["vehicle"])]),_:1}),H(D,{label:"\u89C6\u9891\u76D1\u63A7",name:"video"},{label:lt(()=>[nR]),default:lt(()=>[H(yL,{vehicle:r.vehicle,"layout-type":i.value},null,8,["vehicle","layout-type"])]),_:1})]),_:1},8,["modelValue","onTabClick"])])])}}},oR=Or(aR,[["__scopeId","data-v-aa7c6b3c"]]),uR=Object.freeze(Object.defineProperty({__proto__:null,default:oR},Symbol.toStringTag,{value:"Module"}));export{oR as V,I0 as c,uR as d}; diff --git a/airport/assets/detail.dbd9843f.js.gz b/airport/assets/detail.dbd9843f.js.gz new file mode 100644 index 0000000..7d9079b Binary files /dev/null and b/airport/assets/detail.dbd9843f.js.gz differ diff --git a/airport/assets/dict.e03b117d.svg b/airport/assets/dict.e03b117d.svg new file mode 100644 index 0000000..4849377 --- /dev/null +++ b/airport/assets/dict.e03b117d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/dict.f9e4196e.js b/airport/assets/dict.f9e4196e.js new file mode 100644 index 0000000..cd64ec3 --- /dev/null +++ b/airport/assets/dict.f9e4196e.js @@ -0,0 +1 @@ +const t="/airport/assets/dict.e03b117d.svg";export{t as default}; diff --git a/airport/assets/documentation.92323cc6.svg b/airport/assets/documentation.92323cc6.svg new file mode 100644 index 0000000..7043122 --- /dev/null +++ b/airport/assets/documentation.92323cc6.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/documentation.a5f1c591.js b/airport/assets/documentation.a5f1c591.js new file mode 100644 index 0000000..a027fb8 --- /dev/null +++ b/airport/assets/documentation.a5f1c591.js @@ -0,0 +1 @@ +const t="/airport/assets/documentation.92323cc6.svg";export{t as default}; diff --git a/airport/assets/download.98fa3b20.svg b/airport/assets/download.98fa3b20.svg new file mode 100644 index 0000000..c896951 --- /dev/null +++ b/airport/assets/download.98fa3b20.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/download.b06fbc7a.js b/airport/assets/download.b06fbc7a.js new file mode 100644 index 0000000..b9e1449 --- /dev/null +++ b/airport/assets/download.b06fbc7a.js @@ -0,0 +1 @@ +const a="/airport/assets/download.98fa3b20.svg";export{a as default}; diff --git a/airport/assets/drag.855f09b1.js b/airport/assets/drag.855f09b1.js new file mode 100644 index 0000000..6aae867 --- /dev/null +++ b/airport/assets/drag.855f09b1.js @@ -0,0 +1 @@ +const a="/airport/assets/drag.f4e33e85.svg";export{a as default}; diff --git a/airport/assets/drag.f4e33e85.svg b/airport/assets/drag.f4e33e85.svg new file mode 100644 index 0000000..4185d3c --- /dev/null +++ b/airport/assets/drag.f4e33e85.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/druid.57ab4984.svg b/airport/assets/druid.57ab4984.svg new file mode 100644 index 0000000..a2b4b4e --- /dev/null +++ b/airport/assets/druid.57ab4984.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/druid.59e3bde2.js b/airport/assets/druid.59e3bde2.js new file mode 100644 index 0000000..b8587fd --- /dev/null +++ b/airport/assets/druid.59e3bde2.js @@ -0,0 +1 @@ +const s="/airport/assets/druid.57ab4984.svg";export{s as default}; diff --git a/airport/assets/edit.6138f7bd.js b/airport/assets/edit.6138f7bd.js new file mode 100644 index 0000000..686c2d4 --- /dev/null +++ b/airport/assets/edit.6138f7bd.js @@ -0,0 +1 @@ +const t="/airport/assets/edit.88acfa6c.svg";export{t as default}; diff --git a/airport/assets/edit.88acfa6c.svg b/airport/assets/edit.88acfa6c.svg new file mode 100644 index 0000000..d26101f --- /dev/null +++ b/airport/assets/edit.88acfa6c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/editTable.5e12baca.js b/airport/assets/editTable.5e12baca.js new file mode 100644 index 0000000..c4c5a54 --- /dev/null +++ b/airport/assets/editTable.5e12baca.js @@ -0,0 +1 @@ +import{Y as D,u as q,r as p,d,o as g,k as x,w as o,e,f as r,a9 as P,c as R,H as G,I as O,l as h,x as E,m as N,s as S}from"./index.79832097.js";import{g as H,u as Q}from"./gen.8e7bfccd.js";import{o as K}from"./type.09636148.js";import M from"./basicInfoForm.9dffecf9.js";import W from"./genInfoForm.5918a3f6.js";import"./menu.d7f9bfd6.js";const z={style:{float:"left"}},J={style:{float:"right",color:"#8492a6","font-size":"13px"}},Y={style:{"text-align":"center","margin-left":"-100px","margin-top":"10px"}},A=D({name:"GenEdit"}),ne=Object.assign(A,{setup(X){const v=q(),{proxy:c}=S(),V=p("columnInfo"),C=p(document.documentElement.scrollHeight-245+"px"),y=p([]),w=p([]),U=p([]),i=p({});function k(){const m=c.$refs.basicInfo.$refs.basicInfoForm,n=c.$refs.genInfo.$refs.genInfoForm;Promise.all([m,n].map($)).then(b=>{if(b.every(s=>!!s)){const s=Object.assign({},i.value);s.columns=w.value,s.params={treeCode:i.value.treeCode,treeName:i.value.treeName,treeParentCode:i.value.treeParentCode,parentMenuId:i.value.parentMenuId},Q(s).then(a=>{c.$modal.msgSuccess(a.msg),a.code===200&&T()})}else c.$modal.msgError("\u8868\u5355\u6821\u9A8C\u672A\u901A\u8FC7\uFF0C\u8BF7\u91CD\u65B0\u68C0\u67E5\u63D0\u4EA4\u5185\u5BB9")})}function $(m){return new Promise(n=>{m.validate(b=>{n(b)})})}function T(){const m={path:"/tool/gen",query:{t:Date.now(),pageNum:v.query.pageNum}};c.$tab.closeOpenPage(m)}return(()=>{const m=v.params&&v.params.tableId;m&&(H(m).then(n=>{w.value=n.data.rows,i.value=n.data.info,y.value=n.data.tables}),K().then(n=>{U.value=n.data}))})(),(m,n)=>{const b=d("el-tab-pane"),u=d("el-table-column"),s=d("el-input"),a=d("el-option"),_=d("el-select"),f=d("el-checkbox"),B=d("el-table"),F=d("el-tabs"),I=d("el-button"),L=d("el-form"),j=d("el-card");return g(),x(j,null,{default:o(()=>[e(F,{modelValue:r(V),"onUpdate:modelValue":n[0]||(n[0]=l=>P(V)?V.value=l:null)},{default:o(()=>[e(b,{label:"\u57FA\u672C\u4FE1\u606F",name:"basic"},{default:o(()=>[e(r(M),{ref:"basicInfo",info:r(i)},null,8,["info"])]),_:1}),e(b,{label:"\u5B57\u6BB5\u4FE1\u606F",name:"columnInfo"},{default:o(()=>[e(B,{ref:"dragTable",data:r(w),"row-key":"columnId","max-height":r(C)},{default:o(()=>[e(u,{label:"\u5E8F\u53F7",type:"index","min-width":"5%"}),e(u,{label:"\u5B57\u6BB5\u5217\u540D",prop:"columnName","min-width":"10%","show-overflow-tooltip":!0}),e(u,{label:"\u5B57\u6BB5\u63CF\u8FF0","min-width":"10%"},{default:o(l=>[e(s,{modelValue:l.row.columnComment,"onUpdate:modelValue":t=>l.row.columnComment=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"\u7269\u7406\u7C7B\u578B",prop:"columnType","min-width":"10%","show-overflow-tooltip":!0}),e(u,{label:"Java\u7C7B\u578B","min-width":"11%"},{default:o(l=>[e(_,{modelValue:l.row.javaType,"onUpdate:modelValue":t=>l.row.javaType=t},{default:o(()=>[e(a,{label:"Long",value:"Long"}),e(a,{label:"String",value:"String"}),e(a,{label:"Integer",value:"Integer"}),e(a,{label:"Double",value:"Double"}),e(a,{label:"BigDecimal",value:"BigDecimal"}),e(a,{label:"Date",value:"Date"}),e(a,{label:"Boolean",value:"Boolean"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"java\u5C5E\u6027","min-width":"10%"},{default:o(l=>[e(s,{modelValue:l.row.javaField,"onUpdate:modelValue":t=>l.row.javaField=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"\u63D2\u5165","min-width":"5%"},{default:o(l=>[e(f,{"true-label":"1","false-label":"0",modelValue:l.row.isInsert,"onUpdate:modelValue":t=>l.row.isInsert=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"\u7F16\u8F91","min-width":"5%"},{default:o(l=>[e(f,{"true-label":"1","false-label":"0",modelValue:l.row.isEdit,"onUpdate:modelValue":t=>l.row.isEdit=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"\u5217\u8868","min-width":"5%"},{default:o(l=>[e(f,{"true-label":"1","false-label":"0",modelValue:l.row.isList,"onUpdate:modelValue":t=>l.row.isList=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"\u67E5\u8BE2","min-width":"5%"},{default:o(l=>[e(f,{"true-label":"1","false-label":"0",modelValue:l.row.isQuery,"onUpdate:modelValue":t=>l.row.isQuery=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"\u67E5\u8BE2\u65B9\u5F0F","min-width":"10%"},{default:o(l=>[e(_,{modelValue:l.row.queryType,"onUpdate:modelValue":t=>l.row.queryType=t},{default:o(()=>[e(a,{label:"=",value:"EQ"}),e(a,{label:"!=",value:"NE"}),e(a,{label:">",value:"GT"}),e(a,{label:">=",value:"GTE"}),e(a,{label:"<",value:"LT"}),e(a,{label:"<=",value:"LTE"}),e(a,{label:"LIKE",value:"LIKE"}),e(a,{label:"BETWEEN",value:"BETWEEN"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"\u5FC5\u586B","min-width":"5%"},{default:o(l=>[e(f,{"true-label":"1","false-label":"0",modelValue:l.row.isRequired,"onUpdate:modelValue":t=>l.row.isRequired=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"\u663E\u793A\u7C7B\u578B","min-width":"12%"},{default:o(l=>[e(_,{modelValue:l.row.htmlType,"onUpdate:modelValue":t=>l.row.htmlType=t},{default:o(()=>[e(a,{label:"\u6587\u672C\u6846",value:"input"}),e(a,{label:"\u6587\u672C\u57DF",value:"textarea"}),e(a,{label:"\u4E0B\u62C9\u6846",value:"select"}),e(a,{label:"\u5355\u9009\u6846",value:"radio"}),e(a,{label:"\u590D\u9009\u6846",value:"checkbox"}),e(a,{label:"\u65E5\u671F\u63A7\u4EF6",value:"datetime"}),e(a,{label:"\u56FE\u7247\u4E0A\u4F20",value:"imageUpload"}),e(a,{label:"\u6587\u4EF6\u4E0A\u4F20",value:"fileUpload"}),e(a,{label:"\u5BCC\u6587\u672C\u63A7\u4EF6",value:"editor"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"\u5B57\u5178\u7C7B\u578B","min-width":"12%"},{default:o(l=>[e(_,{modelValue:l.row.dictType,"onUpdate:modelValue":t=>l.row.dictType=t,clearable:"",filterable:"",placeholder:"\u8BF7\u9009\u62E9"},{default:o(()=>[(g(!0),R(G,null,O(r(U),t=>(g(),x(a,{key:t.dictType,label:t.dictName,value:t.dictType},{default:o(()=>[h("span",z,E(t.dictName),1),h("span",J,E(t.dictType),1)]),_:2},1032,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["data","max-height"])]),_:1}),e(b,{label:"\u751F\u6210\u4FE1\u606F",name:"genInfo"},{default:o(()=>[e(r(W),{ref:"genInfo",info:r(i),tables:r(y)},null,8,["info","tables"])]),_:1})]),_:1},8,["modelValue"]),e(L,{"label-width":"100px"},{default:o(()=>[h("div",Y,[e(I,{type:"primary",onClick:n[1]||(n[1]=l=>k())},{default:o(()=>[N("\u63D0\u4EA4")]),_:1}),e(I,{onClick:n[2]||(n[2]=l=>T())},{default:o(()=>[N("\u8FD4\u56DE")]),_:1})])]),_:1})]),_:1})}}});export{ne as default}; diff --git a/airport/assets/editTable.5e12baca.js.gz b/airport/assets/editTable.5e12baca.js.gz new file mode 100644 index 0000000..c81084c Binary files /dev/null and b/airport/assets/editTable.5e12baca.js.gz differ diff --git a/airport/assets/education.4308b70c.svg b/airport/assets/education.4308b70c.svg new file mode 100644 index 0000000..7bfb01d --- /dev/null +++ b/airport/assets/education.4308b70c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/education.9cdfc09c.js b/airport/assets/education.9cdfc09c.js new file mode 100644 index 0000000..7b95e46 --- /dev/null +++ b/airport/assets/education.9cdfc09c.js @@ -0,0 +1 @@ +const t="/airport/assets/education.4308b70c.svg";export{t as default}; diff --git a/airport/assets/email.29d2e375.svg b/airport/assets/email.29d2e375.svg new file mode 100644 index 0000000..74d25e2 --- /dev/null +++ b/airport/assets/email.29d2e375.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/email.6177a1b7.js b/airport/assets/email.6177a1b7.js new file mode 100644 index 0000000..185abc1 --- /dev/null +++ b/airport/assets/email.6177a1b7.js @@ -0,0 +1 @@ +const a="/airport/assets/email.29d2e375.svg";export{a as default}; diff --git a/airport/assets/example.20668f6a.svg b/airport/assets/example.20668f6a.svg new file mode 100644 index 0000000..46f42b5 --- /dev/null +++ b/airport/assets/example.20668f6a.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/example.28eb468e.js b/airport/assets/example.28eb468e.js new file mode 100644 index 0000000..3a198cc --- /dev/null +++ b/airport/assets/example.28eb468e.js @@ -0,0 +1 @@ +const a="/airport/assets/example.20668f6a.svg";export{a as default}; diff --git a/airport/assets/excel.9680a7a3.js b/airport/assets/excel.9680a7a3.js new file mode 100644 index 0000000..3c2126a --- /dev/null +++ b/airport/assets/excel.9680a7a3.js @@ -0,0 +1 @@ +const e="/airport/assets/excel.b8970c32.svg";export{e as default}; diff --git a/airport/assets/excel.b8970c32.svg b/airport/assets/excel.b8970c32.svg new file mode 100644 index 0000000..74d97b8 --- /dev/null +++ b/airport/assets/excel.b8970c32.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/exit-fullscreen.7693107c.js b/airport/assets/exit-fullscreen.7693107c.js new file mode 100644 index 0000000..72a6955 --- /dev/null +++ b/airport/assets/exit-fullscreen.7693107c.js @@ -0,0 +1 @@ +const e="/airport/assets/exit-fullscreen.edd6f137.svg";export{e as default}; diff --git a/airport/assets/exit-fullscreen.edd6f137.svg b/airport/assets/exit-fullscreen.edd6f137.svg new file mode 100644 index 0000000..485c128 --- /dev/null +++ b/airport/assets/exit-fullscreen.edd6f137.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/eye-open.26399dbb.svg b/airport/assets/eye-open.26399dbb.svg new file mode 100644 index 0000000..88dcc98 --- /dev/null +++ b/airport/assets/eye-open.26399dbb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/eye-open.2742c814.js b/airport/assets/eye-open.2742c814.js new file mode 100644 index 0000000..a2c1c3a --- /dev/null +++ b/airport/assets/eye-open.2742c814.js @@ -0,0 +1 @@ +const e="/airport/assets/eye-open.26399dbb.svg";export{e as default}; diff --git a/airport/assets/eye.0577dd93.svg b/airport/assets/eye.0577dd93.svg new file mode 100644 index 0000000..16ed2d8 --- /dev/null +++ b/airport/assets/eye.0577dd93.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/eye.7efea8d7.js b/airport/assets/eye.7efea8d7.js new file mode 100644 index 0000000..51e66b5 --- /dev/null +++ b/airport/assets/eye.7efea8d7.js @@ -0,0 +1 @@ +const e="/airport/assets/eye.0577dd93.svg";export{e as default}; diff --git a/airport/assets/fault_car.d14b763b.png b/airport/assets/fault_car.d14b763b.png new file mode 100644 index 0000000..89b9f2e Binary files /dev/null and b/airport/assets/fault_car.d14b763b.png differ diff --git a/airport/assets/form.c28e12cd.svg b/airport/assets/form.c28e12cd.svg new file mode 100644 index 0000000..dcbaa18 --- /dev/null +++ b/airport/assets/form.c28e12cd.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/form.fe6029ff.js b/airport/assets/form.fe6029ff.js new file mode 100644 index 0000000..ff497ed --- /dev/null +++ b/airport/assets/form.fe6029ff.js @@ -0,0 +1 @@ +const s="/airport/assets/form.c28e12cd.svg";export{s as default}; diff --git a/airport/assets/fullscreen.181ef4f1.js b/airport/assets/fullscreen.181ef4f1.js new file mode 100644 index 0000000..4294356 --- /dev/null +++ b/airport/assets/fullscreen.181ef4f1.js @@ -0,0 +1 @@ +const e="/airport/assets/fullscreen.fdad759e.svg";export{e as default}; diff --git a/airport/assets/fullscreen.fdad759e.svg b/airport/assets/fullscreen.fdad759e.svg new file mode 100644 index 0000000..0e86b6f --- /dev/null +++ b/airport/assets/fullscreen.fdad759e.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/gen.8e7bfccd.js b/airport/assets/gen.8e7bfccd.js new file mode 100644 index 0000000..7794323 --- /dev/null +++ b/airport/assets/gen.8e7bfccd.js @@ -0,0 +1 @@ +import{L as t}from"./index.79832097.js";function n(e){return t({url:"/tool/gen/list",method:"get",params:e})}function r(e){return t({url:"/tool/gen/db/list",method:"get",params:e})}function l(e){return t({url:"/tool/gen/"+e,method:"get"})}function u(e){return t({url:"/tool/gen",method:"put",data:e})}function a(e){return t({url:"/tool/gen/importTable",method:"post",params:e})}function s(e){return t({url:"/tool/gen/preview/"+e,method:"get"})}function i(e){return t({url:"/tool/gen/"+e,method:"delete"})}function g(e){return t({url:"/tool/gen/genCode/"+e,method:"get"})}function d(e){return t({url:"/tool/gen/synchDb/"+e,method:"get"})}export{n as a,g as b,i as d,l as g,a as i,r as l,s as p,d as s,u}; diff --git a/airport/assets/genInfoForm.5918a3f6.js b/airport/assets/genInfoForm.5918a3f6.js new file mode 100644 index 0000000..43bfcb6 --- /dev/null +++ b/airport/assets/genInfoForm.5918a3f6.js @@ -0,0 +1 @@ +import{r as T,D as J,d as u,o as d,k as V,w as l,e,m as o,f as w,j as U,c as N,H as y,J as L,I as v,T as W,l as I,s as $}from"./index.79832097.js";import{l as G}from"./menu.d7f9bfd6.js";const K=I("i",{class:"el-icon-arrow-down el-icon--right"},null,-1),Q=I("h4",{class:"form-header"},"\u5176\u4ED6\u4FE1\u606F",-1),R=I("h4",{class:"form-header"},"\u5173\u8054\u4FE1\u606F",-1),Z={__name:"genInfoForm",props:{info:{type:Object,default:null},tables:{type:Array,default:null}},setup(t){const g=t,q=T([]),F=T([]),{proxy:P}=$(),M=T({tplCategory:[{required:!0,message:"\u8BF7\u9009\u62E9\u751F\u6210\u6A21\u677F",trigger:"blur"}],packageName:[{required:!0,message:"\u8BF7\u8F93\u5165\u751F\u6210\u5305\u8DEF\u5F84",trigger:"blur"}],moduleName:[{required:!0,message:"\u8BF7\u8F93\u5165\u751F\u6210\u6A21\u5757\u540D",trigger:"blur"}],businessName:[{required:!0,message:"\u8BF7\u8F93\u5165\u751F\u6210\u4E1A\u52A1\u540D",trigger:"blur"}],functionName:[{required:!0,message:"\u8BF7\u8F93\u5165\u751F\u6210\u529F\u80FD\u540D",trigger:"blur"}]});function j(c){g.info.subTableFkName=""}function B(c){c!=="sub"&&(g.info.subTableName="",g.info.subTableFkName="")}function S(c){for(var a in g.tables){const b=g.tables[a].tableName;if(c===b){q.value=g.tables[a].columns;break}}}function h(){G().then(c=>{F.value=P.handleTree(c.data,"menuId")})}return J(()=>g.info.subTableName,c=>{S(c)}),h(),(c,a)=>{const b=u("el-option"),_=u("el-select"),m=u("el-form-item"),f=u("el-col"),r=u("question-filled"),i=u("el-icon"),s=u("el-tooltip"),C=u("el-input"),z=u("tree-select"),x=u("el-radio"),D=u("el-button"),O=u("el-dropdown-item"),A=u("el-dropdown-menu"),E=u("el-dropdown"),k=u("el-row"),H=u("el-form");return d(),V(H,{ref:"genInfoForm",model:t.info,rules:w(M),"label-width":"150px"},{default:l(()=>[e(k,null,{default:l(()=>[e(f,{span:12},{default:l(()=>[e(m,{prop:"tplCategory"},{label:l(()=>[o("\u751F\u6210\u6A21\u677F")]),default:l(()=>[e(_,{modelValue:t.info.tplCategory,"onUpdate:modelValue":a[0]||(a[0]=n=>t.info.tplCategory=n),onChange:B},{default:l(()=>[e(b,{label:"\u5355\u8868\uFF08\u589E\u5220\u6539\u67E5\uFF09",value:"crud"}),e(b,{label:"\u6811\u8868\uFF08\u589E\u5220\u6539\u67E5\uFF09",value:"tree"}),e(b,{label:"\u4E3B\u5B50\u8868\uFF08\u589E\u5220\u6539\u67E5\uFF09",value:"sub"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(m,{prop:"packageName"},{label:l(()=>[o(" \u751F\u6210\u5305\u8DEF\u5F84 "),e(s,{content:"\u751F\u6210\u5728\u54EA\u4E2Ajava\u5305\u4E0B\uFF0C\u4F8B\u5982 com.ruoyi.system",placement:"top"},{default:l(()=>[e(i,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(C,{modelValue:t.info.packageName,"onUpdate:modelValue":a[1]||(a[1]=n=>t.info.packageName=n)},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(m,{prop:"moduleName"},{label:l(()=>[o(" \u751F\u6210\u6A21\u5757\u540D "),e(s,{content:"\u53EF\u7406\u89E3\u4E3A\u5B50\u7CFB\u7EDF\u540D\uFF0C\u4F8B\u5982 system",placement:"top"},{default:l(()=>[e(i,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(C,{modelValue:t.info.moduleName,"onUpdate:modelValue":a[2]||(a[2]=n=>t.info.moduleName=n)},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(m,{prop:"businessName"},{label:l(()=>[o(" \u751F\u6210\u4E1A\u52A1\u540D "),e(s,{content:"\u53EF\u7406\u89E3\u4E3A\u529F\u80FD\u82F1\u6587\u540D\uFF0C\u4F8B\u5982 user",placement:"top"},{default:l(()=>[e(i,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(C,{modelValue:t.info.businessName,"onUpdate:modelValue":a[3]||(a[3]=n=>t.info.businessName=n)},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(m,{prop:"functionName"},{label:l(()=>[o(" \u751F\u6210\u529F\u80FD\u540D "),e(s,{content:"\u7528\u4F5C\u7C7B\u63CF\u8FF0\uFF0C\u4F8B\u5982 \u7528\u6237",placement:"top"},{default:l(()=>[e(i,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(C,{modelValue:t.info.functionName,"onUpdate:modelValue":a[4]||(a[4]=n=>t.info.functionName=n)},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(m,null,{label:l(()=>[o(" \u4E0A\u7EA7\u83DC\u5355 "),e(s,{content:"\u5206\u914D\u5230\u6307\u5B9A\u83DC\u5355\u4E0B\uFF0C\u4F8B\u5982 \u7CFB\u7EDF\u7BA1\u7406",placement:"top"},{default:l(()=>[e(i,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(z,{value:t.info.parentMenuId,"onUpdate:value":a[5]||(a[5]=n=>t.info.parentMenuId=n),options:w(F),objMap:{value:"menuId",label:"menuName",children:"children"},placeholder:"\u8BF7\u9009\u62E9\u7CFB\u7EDF\u83DC\u5355"},null,8,["value","options"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(m,{prop:"genType"},{label:l(()=>[o(" \u751F\u6210\u4EE3\u7801\u65B9\u5F0F "),e(s,{content:"\u9ED8\u8BA4\u4E3Azip\u538B\u7F29\u5305\u4E0B\u8F7D\uFF0C\u4E5F\u53EF\u4EE5\u81EA\u5B9A\u4E49\u751F\u6210\u8DEF\u5F84",placement:"top"},{default:l(()=>[e(i,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(x,{modelValue:t.info.genType,"onUpdate:modelValue":a[6]||(a[6]=n=>t.info.genType=n),label:"0"},{default:l(()=>[o("zip\u538B\u7F29\u5305")]),_:1},8,["modelValue"]),e(x,{modelValue:t.info.genType,"onUpdate:modelValue":a[7]||(a[7]=n=>t.info.genType=n),label:"1"},{default:l(()=>[o("\u81EA\u5B9A\u4E49\u8DEF\u5F84")]),_:1},8,["modelValue"])]),_:1})]),_:1}),t.info.genType=="1"?(d(),V(f,{key:0,span:24},{default:l(()=>[e(m,{prop:"genPath"},{label:l(()=>[o(" \u81EA\u5B9A\u4E49\u8DEF\u5F84 "),e(s,{content:"\u586B\u5199\u78C1\u76D8\u7EDD\u5BF9\u8DEF\u5F84\uFF0C\u82E5\u4E0D\u586B\u5199\uFF0C\u5219\u751F\u6210\u5230\u5F53\u524DWeb\u9879\u76EE\u4E0B",placement:"top"},{default:l(()=>[e(i,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(C,{modelValue:t.info.genPath,"onUpdate:modelValue":a[9]||(a[9]=n=>t.info.genPath=n)},{append:l(()=>[e(E,null,{dropdown:l(()=>[e(A,null,{default:l(()=>[e(O,{onClick:a[8]||(a[8]=n=>t.info.genPath="/")},{default:l(()=>[o("\u6062\u590D\u9ED8\u8BA4\u7684\u751F\u6210\u57FA\u7840\u8DEF\u5F84")]),_:1})]),_:1})]),default:l(()=>[e(D,{type:"primary"},{default:l(()=>[o(" \u6700\u8FD1\u8DEF\u5F84\u5FEB\u901F\u9009\u62E9 "),K]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})):U("",!0)]),_:1}),t.info.tplCategory=="tree"?(d(),N(y,{key:0},[Q,L(e(k,null,{default:l(()=>[e(f,{span:12},{default:l(()=>[e(m,null,{label:l(()=>[o(" \u6811\u7F16\u7801\u5B57\u6BB5 "),e(s,{content:"\u6811\u663E\u793A\u7684\u7F16\u7801\u5B57\u6BB5\u540D\uFF0C \u5982\uFF1Adept_id",placement:"top"},{default:l(()=>[e(i,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(_,{modelValue:t.info.treeCode,"onUpdate:modelValue":a[10]||(a[10]=n=>t.info.treeCode=n),placeholder:"\u8BF7\u9009\u62E9"},{default:l(()=>[(d(!0),N(y,null,v(t.info.columns,(n,p)=>(d(),V(b,{key:p,label:n.columnName+"\uFF1A"+n.columnComment,value:n.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(m,null,{label:l(()=>[o(" \u6811\u7236\u7F16\u7801\u5B57\u6BB5 "),e(s,{content:"\u6811\u663E\u793A\u7684\u7236\u7F16\u7801\u5B57\u6BB5\u540D\uFF0C \u5982\uFF1Aparent_Id",placement:"top"},{default:l(()=>[e(i,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(_,{modelValue:t.info.treeParentCode,"onUpdate:modelValue":a[11]||(a[11]=n=>t.info.treeParentCode=n),placeholder:"\u8BF7\u9009\u62E9"},{default:l(()=>[(d(!0),N(y,null,v(t.info.columns,(n,p)=>(d(),V(b,{key:p,label:n.columnName+"\uFF1A"+n.columnComment,value:n.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(m,null,{label:l(()=>[o(" \u6811\u540D\u79F0\u5B57\u6BB5 "),e(s,{content:"\u6811\u8282\u70B9\u7684\u663E\u793A\u540D\u79F0\u5B57\u6BB5\u540D\uFF0C \u5982\uFF1Adept_name",placement:"top"},{default:l(()=>[e(i,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(_,{modelValue:t.info.treeName,"onUpdate:modelValue":a[12]||(a[12]=n=>t.info.treeName=n),placeholder:"\u8BF7\u9009\u62E9"},{default:l(()=>[(d(!0),N(y,null,v(t.info.columns,(n,p)=>(d(),V(b,{key:p,label:n.columnName+"\uFF1A"+n.columnComment,value:n.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1},512),[[W,t.info.tplCategory=="tree"]])],64)):U("",!0),t.info.tplCategory=="sub"?(d(),N(y,{key:1},[R,e(k,null,{default:l(()=>[e(f,{span:12},{default:l(()=>[e(m,null,{label:l(()=>[o(" \u5173\u8054\u5B50\u8868\u7684\u8868\u540D "),e(s,{content:"\u5173\u8054\u5B50\u8868\u7684\u8868\u540D\uFF0C \u5982\uFF1Asys_user",placement:"top"},{default:l(()=>[e(i,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(_,{modelValue:t.info.subTableName,"onUpdate:modelValue":a[13]||(a[13]=n=>t.info.subTableName=n),placeholder:"\u8BF7\u9009\u62E9",onChange:j},{default:l(()=>[(d(!0),N(y,null,v(t.tables,(n,p)=>(d(),V(b,{key:p,label:n.tableName+"\uFF1A"+n.tableComment,value:n.tableName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(m,null,{label:l(()=>[o(" \u5B50\u8868\u5173\u8054\u7684\u5916\u952E\u540D "),e(s,{content:"\u5B50\u8868\u5173\u8054\u7684\u5916\u952E\u540D\uFF0C \u5982\uFF1Auser_id",placement:"top"},{default:l(()=>[e(i,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(_,{modelValue:t.info.subTableFkName,"onUpdate:modelValue":a[14]||(a[14]=n=>t.info.subTableFkName=n),placeholder:"\u8BF7\u9009\u62E9"},{default:l(()=>[(d(!0),N(y,null,v(w(q),(n,p)=>(d(),V(b,{key:p,label:n.columnName+"\uFF1A"+n.columnComment,value:n.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64)):U("",!0)]),_:1},8,["model","rules"])}}};export{Z as default}; diff --git a/airport/assets/genInfoForm.5918a3f6.js.gz b/airport/assets/genInfoForm.5918a3f6.js.gz new file mode 100644 index 0000000..d442478 Binary files /dev/null and b/airport/assets/genInfoForm.5918a3f6.js.gz differ diff --git a/airport/assets/github.559c5791.svg b/airport/assets/github.559c5791.svg new file mode 100644 index 0000000..db0a0d4 --- /dev/null +++ b/airport/assets/github.559c5791.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/github.f0d66958.js b/airport/assets/github.f0d66958.js new file mode 100644 index 0000000..a2952c5 --- /dev/null +++ b/airport/assets/github.f0d66958.js @@ -0,0 +1 @@ +const t="/airport/assets/github.559c5791.svg";export{t as default}; diff --git a/airport/assets/green.08121006.svg b/airport/assets/green.08121006.svg new file mode 100644 index 0000000..6b0461e --- /dev/null +++ b/airport/assets/green.08121006.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/guide.40474b41.js b/airport/assets/guide.40474b41.js new file mode 100644 index 0000000..9150ec0 --- /dev/null +++ b/airport/assets/guide.40474b41.js @@ -0,0 +1 @@ +const e="/airport/assets/guide.441e177e.svg";export{e as default}; diff --git a/airport/assets/guide.441e177e.svg b/airport/assets/guide.441e177e.svg new file mode 100644 index 0000000..b271001 --- /dev/null +++ b/airport/assets/guide.441e177e.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/icon.26344985.svg b/airport/assets/icon.26344985.svg new file mode 100644 index 0000000..82be8ee --- /dev/null +++ b/airport/assets/icon.26344985.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/icon.2d1c0100.js b/airport/assets/icon.2d1c0100.js new file mode 100644 index 0000000..61c6d31 --- /dev/null +++ b/airport/assets/icon.2d1c0100.js @@ -0,0 +1 @@ +const s="/airport/assets/icon.26344985.svg";export{s as default}; diff --git a/airport/assets/importTable.64af47b1.js b/airport/assets/importTable.64af47b1.js new file mode 100644 index 0000000..97b350d --- /dev/null +++ b/airport/assets/importTable.64af47b1.js @@ -0,0 +1 @@ +import{r as c,a6 as z,d as m,o as B,k as D,w as l,l as I,e,m as f,f as o,i as C,J as L,T as P,a9 as Q,s as j}from"./index.79832097.js";import{l as E,i as F}from"./gen.8e7bfccd.js";const J={class:"dialog-footer"},M={__name:"importTable",emits:["ok"],setup(A,{expose:N,emit:h}){const b=c(0),r=c(!1),v=c([]),w=c([]),{proxy:s}=j(),a=z({pageNum:1,pageSize:10,tableName:void 0,tableComment:void 0});function V(){_(),r.value=!0}function k(n){s.$refs.table.toggleRowSelection(n)}function S(n){v.value=n.map(t=>t.tableName)}function _(){E(a).then(n=>{w.value=n.rows,b.value=n.total})}function p(){a.pageNum=1,_()}function T(){s.resetForm("queryRef"),p()}function x(){const n=v.value.join(",");if(n==""){s.$modal.msgError("\u8BF7\u9009\u62E9\u8981\u5BFC\u5165\u7684\u8868");return}F({tables:n}).then(t=>{s.$modal.msgSuccess(t.msg),t.code===200&&(r.value=!1,h("ok"))})}return N({show:V}),(n,t)=>{const y=m("el-input"),g=m("el-form-item"),d=m("el-button"),R=m("el-form"),u=m("el-table-column"),K=m("el-table"),U=m("pagination"),$=m("el-row"),q=m("el-dialog");return B(),D(q,{title:"\u5BFC\u5165\u8868",modelValue:o(r),"onUpdate:modelValue":t[5]||(t[5]=i=>Q(r)?r.value=i:null),width:"800px",top:"5vh","append-to-body":""},{footer:l(()=>[I("div",J,[e(d,{type:"primary",onClick:x},{default:l(()=>[f("\u786E \u5B9A")]),_:1}),e(d,{onClick:t[4]||(t[4]=i=>r.value=!1)},{default:l(()=>[f("\u53D6 \u6D88")]),_:1})])]),default:l(()=>[e(R,{model:o(a),ref:"queryRef",inline:!0},{default:l(()=>[e(g,{label:"\u8868\u540D\u79F0",prop:"tableName"},{default:l(()=>[e(y,{modelValue:o(a).tableName,"onUpdate:modelValue":t[0]||(t[0]=i=>o(a).tableName=i),placeholder:"\u8BF7\u8F93\u5165\u8868\u540D\u79F0",clearable:"",onKeyup:C(p,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(g,{label:"\u8868\u63CF\u8FF0",prop:"tableComment"},{default:l(()=>[e(y,{modelValue:o(a).tableComment,"onUpdate:modelValue":t[1]||(t[1]=i=>o(a).tableComment=i),placeholder:"\u8BF7\u8F93\u5165\u8868\u63CF\u8FF0",clearable:"",onKeyup:C(p,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(g,null,{default:l(()=>[e(d,{type:"primary",icon:"Search",onClick:p},{default:l(()=>[f("\u641C\u7D22")]),_:1}),e(d,{icon:"Refresh",onClick:T},{default:l(()=>[f("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),e($,null,{default:l(()=>[e(K,{onRowClick:k,ref:"table",data:o(w),onSelectionChange:S,height:"260px"},{default:l(()=>[e(u,{type:"selection",width:"55"}),e(u,{prop:"tableName",label:"\u8868\u540D\u79F0","show-overflow-tooltip":!0}),e(u,{prop:"tableComment",label:"\u8868\u63CF\u8FF0","show-overflow-tooltip":!0}),e(u,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4"}),e(u,{prop:"updateTime",label:"\u66F4\u65B0\u65F6\u95F4"})]),_:1},8,["data"]),L(e(U,{total:o(b),page:o(a).pageNum,"onUpdate:page":t[2]||(t[2]=i=>o(a).pageNum=i),limit:o(a).pageSize,"onUpdate:limit":t[3]||(t[3]=i=>o(a).pageSize=i),onPagination:_},null,8,["total","page","limit"]),[[P,o(b)>0]])]),_:1})]),_:1},8,["modelValue"])}}};export{M as default}; diff --git a/airport/assets/importTable.64af47b1.js.gz b/airport/assets/importTable.64af47b1.js.gz new file mode 100644 index 0000000..4a6a168 Binary files /dev/null and b/airport/assets/importTable.64af47b1.js.gz differ diff --git a/airport/assets/index.0e982fc9.js b/airport/assets/index.0e982fc9.js new file mode 100644 index 0000000..e221a68 --- /dev/null +++ b/airport/assets/index.0e982fc9.js @@ -0,0 +1 @@ +import{L as H,_ as W,Y as X,r as f,a6 as Z,ae as ee,d as c,a8 as L,o as g,c as x,l as _,e,f as a,i as te,w as t,J as S,k as N,T as ae,a9 as le,s as oe,m as u,x as s,G as se,j as T,p as ne,q as ue}from"./index.79832097.js";function ie(b){return H({url:"/monitor/operlog/list",method:"get",params:b})}const P=b=>(ne("data-v-8b526927"),b=b(),ue(),b),re={class:"app-container"},de={class:"operlog-container"},pe={class:"search-area"},ce={class:"search-buttons"},_e={class:"dict-text"},fe={key:0,class:"status-dot"},me={class:"status-text"},ge={key:0,class:"status-item status-success"},be=P(()=>_("span",{class:"status-dot"},null,-1)),ve=P(()=>_("span",{class:"status-text"},"\u6210\u529F",-1)),he=[be,ve],ye={key:1},we={class:"dialog-footer"},xe=X({name:"SystemOperlogIndex"}),ke=Object.assign(xe,{setup(b){const{proxy:v}=oe(),{sys_oper_type:R,sys_common_status:z}=v.useDict("sys_oper_type","sys_common_status"),V=f([]),h=f(!1),k=f(!0);f(!0),f(!0);const C=f(0);f("");const I=f([]),B=f({prop:"operTime",order:"descending"}),U=Z({form:{},queryParams:{pageNum:1,pageSize:8,title:void 0,operName:void 0,businessType:void 0,status:void 0}}),{queryParams:i,form:o}=ee(U);function y(){k.value=!0,ie(v.addDateRange(i.value,I.value)).then(n=>{V.value=n.rows,C.value=n.total,k.value=!1})}function q(n,r){return v.selectDictLabel(R.value,n.businessType)}function j(n,r){return v.selectDictLabel(z.value,n.status)}function D(){i.value.pageNum=1,y()}function F(){I.value=[],v.resetForm("queryRef"),i.value.pageNum=1,y()}function K(n){i.value.orderByColumn=n.prop,i.value.isAsc=n.order,y()}function M(n){h.value=!0,o.value=n}return y(),(n,r)=>{const $=c("el-input"),w=c("el-button"),d=c("el-table-column"),O=c("el-table"),Q=c("pagination"),p=c("el-form-item"),m=c("el-col"),A=c("el-row"),E=c("el-form"),G=c("el-dialog"),J=L("hasPermi"),Y=L("loading");return g(),x("div",re,[_("div",de,[_("div",pe,[e($,{modelValue:a(i).title,"onUpdate:modelValue":r[0]||(r[0]=l=>a(i).title=l),placeholder:"\u8BF7\u8F93\u5165\u7CFB\u7EDF\u6A21\u5757",clearable:"","prefix-icon":"Search",class:"search-input",onKeyup:te(D,["enter"])},null,8,["modelValue","onKeyup"]),_("div",ce,[e(w,{type:"primary",class:"search-btn",onClick:D},{default:t(()=>[u("\u641C\u7D22")]),_:1}),e(w,{class:"reset-btn",onClick:F},{default:t(()=>[u("\u91CD\u7F6E")]),_:1})])]),S((g(),N(O,{data:a(V),style:{width:"100%"},class:"custom-table","default-sort":a(B),onSortChange:K},{default:t(()=>[e(d,{label:"\u5E8F\u53F7",width:"60",align:"left"},{default:t(l=>[u(s((a(i).pageNum-1)*a(i).pageSize+l.$index+1),1)]),_:1}),e(d,{label:"\u64CD\u4F5C",align:"left",width:"120"},{default:t(l=>[S((g(),N(w,{link:"",text:"",onClick:Ce=>M(l.row)},{default:t(()=>[u("\u8BE6\u7EC6")]),_:2},1032,["onClick"])),[[J,["monitor:operlog:query"]]])]),_:1}),e(d,{label:"\u65E5\u5FD7\u7F16\u53F7",align:"left",prop:"operId"}),e(d,{label:"\u7CFB\u7EDF\u6A21\u5757",align:"left",prop:"title"}),e(d,{label:"\u64CD\u4F5C\u7C7B\u578B",align:"left",prop:"businessType"},{default:t(l=>[_("span",_e,s(q(l.row)),1)]),_:1}),e(d,{label:"\u8BF7\u6C42\u65B9\u5F0F",align:"left",prop:"requestMethod"}),e(d,{label:"\u64CD\u4F5C\u4EBA\u5458",align:"left",prop:"operName"}),e(d,{label:"\u4E3B\u673A",align:"left",prop:"operIp",width:"130","show-overflow-tooltip":!0}),e(d,{label:"\u64CD\u4F5C\u72B6\u6001",align:"left",prop:"status"},{default:t(l=>[_("div",{class:se(["status-item",{"status-success":l.row.status===0}])},[l.row.status===0?(g(),x("span",fe)):T("",!0),_("span",me,s(j(l.row)),1)],2)]),_:1}),e(d,{label:"\u64CD\u4F5C\u65E5\u671F",align:"left",prop:"operTime",width:"180"},{default:t(l=>[_("span",null,s(n.parseTime(l.row.operTime)),1)]),_:1})]),_:1},8,["data","default-sort"])),[[Y,a(k)]]),S(e(Q,{total:a(C),page:a(i).pageNum,"onUpdate:page":r[1]||(r[1]=l=>a(i).pageNum=l),limit:a(i).pageSize,"onUpdate:limit":r[2]||(r[2]=l=>a(i).pageSize=l),onPagination:y},null,8,["total","page","limit"]),[[ae,a(C)>0]])]),e(G,{title:"\u64CD\u4F5C\u65E5\u5FD7\u8BE6\u7EC6",modelValue:a(h),"onUpdate:modelValue":r[4]||(r[4]=l=>le(h)?h.value=l:null),width:"700px","append-to-body":""},{footer:t(()=>[_("div",we,[e(w,{class:"export-btn",onClick:r[3]||(r[3]=l=>h.value=!1)},{default:t(()=>[u("\u5173 \u95ED")]),_:1})])]),default:t(()=>[e(E,{model:a(o),"label-width":"100px"},{default:t(()=>[e(A,null,{default:t(()=>[e(m,{span:12},{default:t(()=>[e(p,{label:"\u64CD\u4F5C\u6A21\u5757\uFF1A"},{default:t(()=>[u(s(a(o).title)+" / "+s(q(a(o))),1)]),_:1}),e(p,{label:"\u767B\u5F55\u4FE1\u606F\uFF1A"},{default:t(()=>[u(s(a(o).operName)+" / "+s(a(o).operIp)+" / "+s(a(o).operLocation),1)]),_:1})]),_:1}),e(m,{span:12},{default:t(()=>[e(p,{label:"\u8BF7\u6C42\u5730\u5740\uFF1A"},{default:t(()=>[u(s(a(o).operUrl),1)]),_:1}),e(p,{label:"\u8BF7\u6C42\u65B9\u5F0F\uFF1A"},{default:t(()=>[u(s(a(o).requestMethod),1)]),_:1})]),_:1}),e(m,{span:24},{default:t(()=>[e(p,{label:"\u64CD\u4F5C\u65B9\u6CD5\uFF1A"},{default:t(()=>[u(s(a(o).method),1)]),_:1})]),_:1}),e(m,{span:24},{default:t(()=>[e(p,{label:"\u8BF7\u6C42\u53C2\u6570\uFF1A"},{default:t(()=>[u(s(a(o).operParam),1)]),_:1})]),_:1}),e(m,{span:24},{default:t(()=>[e(p,{label:"\u8FD4\u56DE\u53C2\u6570\uFF1A"},{default:t(()=>[u(s(a(o).jsonResult),1)]),_:1})]),_:1}),e(m,{span:12},{default:t(()=>[e(p,{label:"\u64CD\u4F5C\u72B6\u6001\uFF1A"},{default:t(()=>[a(o).status===0?(g(),x("div",ge,he)):a(o).status===1?(g(),x("div",ye,"\u5931\u8D25")):T("",!0)]),_:1})]),_:1}),e(m,{span:12},{default:t(()=>[e(p,{label:"\u64CD\u4F5C\u65F6\u95F4\uFF1A"},{default:t(()=>[u(s(n.parseTime(a(o).operTime)),1)]),_:1})]),_:1}),e(m,{span:24},{default:t(()=>[a(o).status===1?(g(),N(p,{key:0,label:"\u5F02\u5E38\u4FE1\u606F\uFF1A"},{default:t(()=>[u(s(a(o).errorMsg),1)]),_:1})):T("",!0)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),Ne=W(ke,[["__scopeId","data-v-8b526927"]]);export{Ne as default}; diff --git a/airport/assets/index.0e982fc9.js.gz b/airport/assets/index.0e982fc9.js.gz new file mode 100644 index 0000000..5fa1263 Binary files /dev/null and b/airport/assets/index.0e982fc9.js.gz differ diff --git a/airport/assets/index.12f28407.js b/airport/assets/index.12f28407.js new file mode 100644 index 0000000..377b166 --- /dev/null +++ b/airport/assets/index.12f28407.js @@ -0,0 +1 @@ +import{L as C,_ as fe,Y as ge,r as f,a6 as ve,ae as ye,d as n,a8 as L,o as d,c as $,J as g,T as z,f as l,e,w as o,i as Q,H as j,I as A,k as v,m as p,a9 as H,l as J,x as O,s as be}from"./index.79832097.js";function he(i){return C({url:"/system/post/list",method:"get",params:i})}function Ve(i){return C({url:"/system/post/"+i,method:"get"})}function we(i){return C({url:"/system/post",method:"post",data:i})}function Ce(i){return C({url:"/system/post",method:"put",data:i})}function ke(i){return C({url:"/system/post/"+i,method:"delete"})}const xe={class:"app-container"},Se={class:"dialog-footer"},Ne=ge({name:"Post"}),Ue=Object.assign(Ne,{setup(i){const{proxy:c}=be(),{sys_normal_disable:N}=c.useDict("sys_normal_disable"),q=f([]),y=f(!1),U=f(!0),k=f(!0),P=f([]),T=f(!0),K=f(!0),I=f(0),D=f(""),Y=ve({form:{},queryParams:{pageNum:1,pageSize:10,postCode:void 0,postName:void 0,status:void 0},rules:{postName:[{required:!0,message:"\u5C97\u4F4D\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],postCode:[{required:!0,message:"\u5C97\u4F4D\u7F16\u7801\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],postSort:[{required:!0,message:"\u5C97\u4F4D\u987A\u5E8F\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}}),{queryParams:u,form:s,rules:G}=ye(Y);function h(){U.value=!0,he(u.value).then(r=>{q.value=r.rows,I.value=r.total,U.value=!1})}function M(){y.value=!1,R()}function R(){s.value={postId:void 0,postCode:void 0,postName:void 0,postSort:0,status:"0",remark:void 0},c.resetForm("postRef")}function x(){u.value.pageNum=1,h()}function W(){c.resetForm("queryRef"),x()}function X(r){P.value=r.map(a=>a.postId),T.value=r.length!=1,K.value=!r.length}function Z(){R(),y.value=!0,D.value="\u6DFB\u52A0\u5C97\u4F4D"}function B(r){R();const a=r.postId||P.value;Ve(a).then(V=>{s.value=V.data,y.value=!0,D.value="\u4FEE\u6539\u5C97\u4F4D"})}function ee(){c.$refs.postRef.validate(r=>{r&&(s.value.postId!=null?Ce(s.value).then(a=>{c.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),y.value=!1,h()}):we(s.value).then(a=>{c.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),y.value=!1,h()}))})}function E(r){const a=r.postId||P.value;c.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u5C97\u4F4D\u7F16\u53F7\u4E3A"'+a+'"\u7684\u6570\u636E\u9879\uFF1F').then(function(){return ke(a)}).then(()=>{h(),c.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function te(){c.download("system/post/export",{...u.value},`post_${new Date().getTime()}.xlsx`)}return h(),(r,a)=>{const V=n("el-input"),_=n("el-form-item"),le=n("el-option"),oe=n("el-select"),m=n("el-button"),F=n("el-form"),S=n("el-col"),ae=n("right-toolbar"),ne=n("el-row"),b=n("el-table-column"),se=n("dict-tag"),ue=n("el-table"),re=n("pagination"),de=n("el-input-number"),pe=n("el-radio"),ie=n("el-radio-group"),me=n("el-dialog"),w=L("hasPermi"),ce=L("loading");return d(),$("div",xe,[g(e(F,{model:l(u),ref:"queryRef",inline:!0},{default:o(()=>[e(_,{label:"\u5C97\u4F4D\u7F16\u7801",prop:"postCode"},{default:o(()=>[e(V,{modelValue:l(u).postCode,"onUpdate:modelValue":a[0]||(a[0]=t=>l(u).postCode=t),placeholder:"\u8BF7\u8F93\u5165\u5C97\u4F4D\u7F16\u7801",clearable:"",style:{width:"200px"},onKeyup:Q(x,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(_,{label:"\u5C97\u4F4D\u540D\u79F0",prop:"postName"},{default:o(()=>[e(V,{modelValue:l(u).postName,"onUpdate:modelValue":a[1]||(a[1]=t=>l(u).postName=t),placeholder:"\u8BF7\u8F93\u5165\u5C97\u4F4D\u540D\u79F0",clearable:"",style:{width:"200px"},onKeyup:Q(x,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(_,{label:"\u72B6\u6001",prop:"status"},{default:o(()=>[e(oe,{modelValue:l(u).status,"onUpdate:modelValue":a[2]||(a[2]=t=>l(u).status=t),placeholder:"\u5C97\u4F4D\u72B6\u6001",clearable:"",style:{width:"200px"}},{default:o(()=>[(d(!0),$(j,null,A(l(N),t=>(d(),v(le,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(_,null,{default:o(()=>[e(m,{type:"primary",icon:"Search",onClick:x},{default:o(()=>[p("\u641C\u7D22")]),_:1}),e(m,{icon:"Refresh",onClick:W},{default:o(()=>[p("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[z,l(k)]]),e(ne,{gutter:10,class:"mb8"},{default:o(()=>[e(S,{span:1.5},{default:o(()=>[g((d(),v(m,{type:"primary",plain:"",icon:"Plus",onClick:Z},{default:o(()=>[p("\u65B0\u589E")]),_:1})),[[w,["system:post:add"]]])]),_:1},8,["span"]),e(S,{span:1.5},{default:o(()=>[g((d(),v(m,{type:"success",plain:"",icon:"Edit",disabled:l(T),onClick:B},{default:o(()=>[p("\u4FEE\u6539")]),_:1},8,["disabled"])),[[w,["system:post:edit"]]])]),_:1},8,["span"]),e(S,{span:1.5},{default:o(()=>[g((d(),v(m,{type:"danger",plain:"",icon:"Delete",disabled:l(K),onClick:E},{default:o(()=>[p("\u5220\u9664")]),_:1},8,["disabled"])),[[w,["system:post:remove"]]])]),_:1},8,["span"]),e(S,{span:1.5},{default:o(()=>[g((d(),v(m,{type:"warning",plain:"",icon:"Download",onClick:te},{default:o(()=>[p("\u5BFC\u51FA")]),_:1})),[[w,["system:post:export"]]])]),_:1},8,["span"]),e(ae,{showSearch:l(k),"onUpdate:showSearch":a[3]||(a[3]=t=>H(k)?k.value=t:null),onQueryTable:h},null,8,["showSearch"])]),_:1}),g((d(),v(ue,{data:l(q),onSelectionChange:X},{default:o(()=>[e(b,{type:"selection",width:"55",align:"center"}),e(b,{label:"\u5C97\u4F4D\u7F16\u53F7",align:"center",prop:"postId"}),e(b,{label:"\u5C97\u4F4D\u7F16\u7801",align:"center",prop:"postCode"}),e(b,{label:"\u5C97\u4F4D\u540D\u79F0",align:"center",prop:"postName"}),e(b,{label:"\u5C97\u4F4D\u6392\u5E8F",align:"center",prop:"postSort"}),e(b,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:o(t=>[e(se,{options:l(N),value:t.row.status},null,8,["options","value"])]),_:1}),e(b,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180"},{default:o(t=>[J("span",null,O(r.parseTime(t.row.createTime)),1)]),_:1}),e(b,{label:"\u64CD\u4F5C",width:"180",align:"center","class-name":"small-padding fixed-width"},{default:o(t=>[g((d(),v(m,{link:"",type:"primary",icon:"Edit",onClick:_e=>B(t.row)},{default:o(()=>[p("\u4FEE\u6539")]),_:2},1032,["onClick"])),[[w,["system:post:edit"]]]),g((d(),v(m,{link:"",type:"primary",icon:"Delete",onClick:_e=>E(t.row)},{default:o(()=>[p("\u5220\u9664")]),_:2},1032,["onClick"])),[[w,["system:post:remove"]]])]),_:1})]),_:1},8,["data"])),[[ce,l(U)]]),g(e(re,{total:l(I),page:l(u).pageNum,"onUpdate:page":a[4]||(a[4]=t=>l(u).pageNum=t),limit:l(u).pageSize,"onUpdate:limit":a[5]||(a[5]=t=>l(u).pageSize=t),onPagination:h},null,8,["total","page","limit"]),[[z,l(I)>0]]),e(me,{title:l(D),modelValue:l(y),"onUpdate:modelValue":a[11]||(a[11]=t=>H(y)?y.value=t:null),width:"500px","append-to-body":""},{footer:o(()=>[J("div",Se,[e(m,{type:"primary",onClick:ee},{default:o(()=>[p("\u786E \u5B9A")]),_:1}),e(m,{onClick:M},{default:o(()=>[p("\u53D6 \u6D88")]),_:1})])]),default:o(()=>[e(F,{ref:"postRef",model:l(s),rules:l(G),"label-width":"80px"},{default:o(()=>[e(_,{label:"\u5C97\u4F4D\u540D\u79F0",prop:"postName"},{default:o(()=>[e(V,{modelValue:l(s).postName,"onUpdate:modelValue":a[6]||(a[6]=t=>l(s).postName=t),placeholder:"\u8BF7\u8F93\u5165\u5C97\u4F4D\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u5C97\u4F4D\u7F16\u7801",prop:"postCode"},{default:o(()=>[e(V,{modelValue:l(s).postCode,"onUpdate:modelValue":a[7]||(a[7]=t=>l(s).postCode=t),placeholder:"\u8BF7\u8F93\u5165\u7F16\u7801\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u5C97\u4F4D\u987A\u5E8F",prop:"postSort"},{default:o(()=>[e(de,{modelValue:l(s).postSort,"onUpdate:modelValue":a[8]||(a[8]=t=>l(s).postSort=t),"controls-position":"right",min:0},null,8,["modelValue"])]),_:1}),e(_,{label:"\u5C97\u4F4D\u72B6\u6001",prop:"status"},{default:o(()=>[e(ie,{modelValue:l(s).status,"onUpdate:modelValue":a[9]||(a[9]=t=>l(s).status=t)},{default:o(()=>[(d(!0),$(j,null,A(l(N),t=>(d(),v(pe,{key:t.value,label:t.value},{default:o(()=>[p(O(t.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(_,{label:"\u5907\u6CE8",prop:"remark"},{default:o(()=>[e(V,{modelValue:l(s).remark,"onUpdate:modelValue":a[10]||(a[10]=t=>l(s).remark=t),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}}),Ie=fe(Ue,[["__scopeId","data-v-27579c90"]]);export{Ie as default}; diff --git a/airport/assets/index.12f28407.js.gz b/airport/assets/index.12f28407.js.gz new file mode 100644 index 0000000..8cfff04 Binary files /dev/null and b/airport/assets/index.12f28407.js.gz differ diff --git a/airport/assets/index.174524c0.js b/airport/assets/index.174524c0.js new file mode 100644 index 0000000..046f882 --- /dev/null +++ b/airport/assets/index.174524c0.js @@ -0,0 +1 @@ +import{L as k,_ as _e,Y as fe,r as m,a6 as ye,ae as ge,d as a,a8 as O,o as d,c as S,J as b,T as Y,f as n,e,w as l,i as G,H as $,I as q,k as _,m as c,a9 as M,l as W,x as X,s as ve}from"./index.79832097.js";function be(r){return k({url:"/system/notice/list",method:"get",params:r})}function he(r){return k({url:"/system/notice/"+r,method:"get"})}function we(r){return k({url:"/system/notice",method:"post",data:r})}function Ve(r){return k({url:"/system/notice",method:"put",data:r})}function Te(r){return k({url:"/system/notice/"+r,method:"delete"})}const ke={class:"app-container"},Ce={class:"dialog-footer"},xe=fe({name:"Notice"}),Se=Object.assign(xe,{setup(r){const{proxy:f}=ve(),{sys_notice_status:P,sys_notice_type:N}=f.useDict("sys_notice_status","sys_notice_type"),K=m([]),y=m(!1),U=m(!0),C=m(!0),I=m([]),F=m(!0),L=m(!0),B=m(0),R=m(""),Z=ye({form:{},queryParams:{pageNum:1,pageSize:10,noticeTitle:void 0,createBy:void 0,status:void 0},rules:{noticeTitle:[{required:!0,message:"\u516C\u544A\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],noticeType:[{required:!0,message:"\u516C\u544A\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}]}}),{queryParams:s,form:i,rules:ee}=ge(Z);function h(){U.value=!0,be(s.value).then(u=>{K.value=u.rows,B.value=u.total,U.value=!1})}function te(){y.value=!1,D()}function D(){i.value={noticeId:void 0,noticeTitle:void 0,noticeType:void 0,noticeContent:void 0,status:"0"},f.resetForm("noticeRef")}function x(){s.value.pageNum=1,h()}function le(){f.resetForm("queryRef"),x()}function ne(u){I.value=u.map(o=>o.noticeId),F.value=u.length!=1,L.value=!u.length}function oe(){D(),y.value=!0,R.value="\u6DFB\u52A0\u516C\u544A"}function z(u){D();const o=u.noticeId||I.value;he(o).then(V=>{i.value=V.data,y.value=!0,R.value="\u4FEE\u6539\u516C\u544A"})}function ae(){f.$refs.noticeRef.validate(u=>{u&&(i.value.noticeId!=null?Ve(i.value).then(o=>{f.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),y.value=!1,h()}):we(i.value).then(o=>{f.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),y.value=!1,h()}))})}function E(u){const o=u.noticeId||I.value;f.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u516C\u544A\u7F16\u53F7\u4E3A"'+o+'"\u7684\u6570\u636E\u9879\uFF1F').then(function(){return Te(o)}).then(()=>{h(),f.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}return h(),(u,o)=>{const V=a("el-input"),g=a("el-form-item"),Q=a("el-option"),j=a("el-select"),p=a("el-button"),A=a("el-form"),w=a("el-col"),ie=a("right-toolbar"),H=a("el-row"),v=a("el-table-column"),J=a("dict-tag"),ue=a("el-table"),se=a("pagination"),de=a("el-radio"),re=a("el-radio-group"),ce=a("el-dialog"),T=O("hasPermi"),pe=O("loading");return d(),S("div",ke,[b(e(A,{model:n(s),ref:"queryRef",inline:!0},{default:l(()=>[e(g,{label:"\u516C\u544A\u6807\u9898",prop:"noticeTitle"},{default:l(()=>[e(V,{modelValue:n(s).noticeTitle,"onUpdate:modelValue":o[0]||(o[0]=t=>n(s).noticeTitle=t),placeholder:"\u8BF7\u8F93\u5165\u516C\u544A\u6807\u9898",clearable:"",style:{width:"200px"},onKeyup:G(x,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(g,{label:"\u64CD\u4F5C\u4EBA\u5458",prop:"createBy"},{default:l(()=>[e(V,{modelValue:n(s).createBy,"onUpdate:modelValue":o[1]||(o[1]=t=>n(s).createBy=t),placeholder:"\u8BF7\u8F93\u5165\u64CD\u4F5C\u4EBA\u5458",clearable:"",style:{width:"200px"},onKeyup:G(x,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(g,{label:"\u7C7B\u578B",prop:"noticeType"},{default:l(()=>[e(j,{modelValue:n(s).noticeType,"onUpdate:modelValue":o[2]||(o[2]=t=>n(s).noticeType=t),placeholder:"\u516C\u544A\u7C7B\u578B",clearable:"",style:{width:"200px"}},{default:l(()=>[(d(!0),S($,null,q(n(N),t=>(d(),_(Q,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(g,null,{default:l(()=>[e(p,{type:"primary",icon:"Search",onClick:x},{default:l(()=>[c("\u641C\u7D22")]),_:1}),e(p,{icon:"Refresh",onClick:le},{default:l(()=>[c("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[Y,n(C)]]),e(H,{gutter:10,class:"mb8"},{default:l(()=>[e(w,{span:1.5},{default:l(()=>[b((d(),_(p,{type:"primary",plain:"",icon:"Plus",onClick:oe},{default:l(()=>[c("\u65B0\u589E")]),_:1})),[[T,["system:notice:add"]]])]),_:1},8,["span"]),e(w,{span:1.5},{default:l(()=>[b((d(),_(p,{type:"success",plain:"",icon:"Edit",disabled:n(F),onClick:z},{default:l(()=>[c("\u4FEE\u6539")]),_:1},8,["disabled"])),[[T,["system:notice:edit"]]])]),_:1},8,["span"]),e(w,{span:1.5},{default:l(()=>[b((d(),_(p,{type:"danger",plain:"",icon:"Delete",disabled:n(L),onClick:E},{default:l(()=>[c("\u5220\u9664")]),_:1},8,["disabled"])),[[T,["system:notice:remove"]]])]),_:1},8,["span"]),e(ie,{showSearch:n(C),"onUpdate:showSearch":o[3]||(o[3]=t=>M(C)?C.value=t:null),onQueryTable:h},null,8,["showSearch"])]),_:1}),b((d(),_(ue,{data:n(K),onSelectionChange:ne},{default:l(()=>[e(v,{type:"selection",width:"55",align:"center"}),e(v,{label:"\u5E8F\u53F7",align:"center",prop:"noticeId",width:"100"}),e(v,{label:"\u516C\u544A\u6807\u9898",align:"center",prop:"noticeTitle","show-overflow-tooltip":!0}),e(v,{label:"\u516C\u544A\u7C7B\u578B",align:"center",prop:"noticeType",width:"100"},{default:l(t=>[e(J,{options:n(N),value:t.row.noticeType},null,8,["options","value"])]),_:1}),e(v,{label:"\u72B6\u6001",align:"center",prop:"status",width:"100"},{default:l(t=>[e(J,{options:n(P),value:t.row.status},null,8,["options","value"])]),_:1}),e(v,{label:"\u521B\u5EFA\u8005",align:"center",prop:"createBy",width:"100"}),e(v,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"100"},{default:l(t=>[W("span",null,X(u.parseTime(t.row.createTime,"{y}-{m}-{d}")),1)]),_:1}),e(v,{label:"\u64CD\u4F5C",align:"center","class-name":"small-padding fixed-width"},{default:l(t=>[b((d(),_(p,{link:"",type:"primary",icon:"Edit",onClick:me=>z(t.row)},{default:l(()=>[c("\u4FEE\u6539")]),_:2},1032,["onClick"])),[[T,["system:notice:edit"]]]),b((d(),_(p,{link:"",type:"primary",icon:"Delete",onClick:me=>E(t.row)},{default:l(()=>[c("\u5220\u9664")]),_:2},1032,["onClick"])),[[T,["system:notice:remove"]]])]),_:1})]),_:1},8,["data"])),[[pe,n(U)]]),b(e(se,{total:n(B),page:n(s).pageNum,"onUpdate:page":o[4]||(o[4]=t=>n(s).pageNum=t),limit:n(s).pageSize,"onUpdate:limit":o[5]||(o[5]=t=>n(s).pageSize=t),onPagination:h},null,8,["total","page","limit"]),[[Y,n(B)>0]]),e(ce,{title:n(R),modelValue:n(y),"onUpdate:modelValue":o[10]||(o[10]=t=>M(y)?y.value=t:null),width:"780px","append-to-body":""},{footer:l(()=>[W("div",Ce,[e(p,{type:"primary",onClick:ae},{default:l(()=>[c("\u786E \u5B9A")]),_:1}),e(p,{onClick:te},{default:l(()=>[c("\u53D6 \u6D88")]),_:1})])]),default:l(()=>[e(A,{ref:"noticeRef",model:n(i),rules:n(ee),"label-width":"80px"},{default:l(()=>[e(H,null,{default:l(()=>[e(w,{span:12},{default:l(()=>[e(g,{label:"\u516C\u544A\u6807\u9898",prop:"noticeTitle"},{default:l(()=>[e(V,{modelValue:n(i).noticeTitle,"onUpdate:modelValue":o[6]||(o[6]=t=>n(i).noticeTitle=t),placeholder:"\u8BF7\u8F93\u5165\u516C\u544A\u6807\u9898"},null,8,["modelValue"])]),_:1})]),_:1}),e(w,{span:12},{default:l(()=>[e(g,{label:"\u516C\u544A\u7C7B\u578B",prop:"noticeType"},{default:l(()=>[e(j,{modelValue:n(i).noticeType,"onUpdate:modelValue":o[7]||(o[7]=t=>n(i).noticeType=t),placeholder:"\u8BF7\u9009\u62E9"},{default:l(()=>[(d(!0),S($,null,q(n(N),t=>(d(),_(Q,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(w,{span:24},{default:l(()=>[e(g,{label:"\u72B6\u6001"},{default:l(()=>[e(re,{modelValue:n(i).status,"onUpdate:modelValue":o[8]||(o[8]=t=>n(i).status=t)},{default:l(()=>[(d(!0),S($,null,q(n(P),t=>(d(),_(de,{key:t.value,label:t.value},{default:l(()=>[c(X(t.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(w,{span:24},{default:l(()=>[e(g,{label:"\u5185\u5BB9"},{default:l(()=>[e(V,{rows:6,type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9",modelValue:n(i).noticeContent,"onUpdate:modelValue":o[9]||(o[9]=t=>n(i).noticeContent=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}}),Ue=_e(Se,[["__scopeId","data-v-dedfa38a"]]);export{Ue as default}; diff --git a/airport/assets/index.174524c0.js.gz b/airport/assets/index.174524c0.js.gz new file mode 100644 index 0000000..d74d87c Binary files /dev/null and b/airport/assets/index.174524c0.js.gz differ diff --git a/airport/assets/index.2407f1a6.css b/airport/assets/index.2407f1a6.css new file mode 100644 index 0000000..451b777 --- /dev/null +++ b/airport/assets/index.2407f1a6.css @@ -0,0 +1 @@ +.vehicle-table[data-v-10ac5811]{width:100%;background-color:transparent;display:flex;flex-direction:column;height:100%}.search-area[data-v-10ac5811]{display:flex;align-items:center;margin-bottom:20px}.search-area .search-input[data-v-10ac5811]{width:250px;margin-right:10px}.search-area .search-select[data-v-10ac5811]{width:150px;margin-right:10px}.search-area .search-buttons[data-v-10ac5811]{margin-right:20px;display:flex;gap:10px}.search-area .action-buttons[data-v-10ac5811]{margin-left:auto;display:flex;gap:10px}.search-area .action-buttons .view-switcher[data-v-10ac5811]{display:flex;background-color:#343744;border-radius:8px;overflow:hidden}.search-area .action-buttons .view-switcher .view-btn[data-v-10ac5811]{display:flex;justify-content:center;align-items:center;width:36px;height:36px;cursor:pointer;transition:all .3s}.search-area .action-buttons .view-switcher .view-btn[data-v-10ac5811]:hover{background-color:#2b3b5a}.search-area .action-buttons .view-switcher .view-btn.active[data-v-10ac5811]{background-color:#409eff}.search-area .action-buttons .view-switcher .view-btn.active svg[data-v-10ac5811]{color:#fff}.search-area .action-buttons .view-switcher .view-btn svg[data-v-10ac5811]{font-size:18px;color:#96a0b5}.table-container[data-v-10ac5811]{height:32rem;max-height:32rem}.table-container.full-height[data-v-10ac5811]{height:calc(100% - 50px)}.pagination-container[data-v-10ac5811]{display:flex;justify-content:flex-end;padding:15px 0;position:relative;z-index:10}[data-v-10ac5811] .el-input__wrapper:hover{box-shadow:none!important}[data-v-10ac5811] .el-select{border:none!important;width:150px!important;--el-border-color-hover: #343744 !important;--el-border-color: #343744 !important}[data-v-10ac5811] .el-select__wrapper.is-focused{box-shadow:none!important}[data-v-10ac5811] .el-select__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;font-size:15px;border:none!important}[data-v-10ac5811] .el-input__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;border:none!important;box-shadow:none!important}[data-v-10ac5811] .el-select__placeholder{color:#96a0b5!important}[data-v-10ac5811] .el-button{background:#343744;border-color:transparent;border-radius:8px;height:36px}[data-v-10ac5811] .el-button.el-button--primary{background-color:#409eff}[data-v-10ac5811] .el-button:hover,[data-v-10ac5811] .el-button:focus{background:#2B3B5A;border-color:transparent}[data-v-10ac5811] .el-button.el-button--primary:hover,[data-v-10ac5811] .el-button.el-button--primary:focus{background-color:#337ecc}.custom-table[data-v-10ac5811]{background-color:transparent!important;color:#fff;margin-bottom:20px;border-radius:4px;overflow:hidden}.custom-table[data-v-10ac5811] .el-loading-mask{background-color:#292c38b3!important}.custom-table[data-v-10ac5811] .el-table__empty-block{background-color:#292c38!important}.custom-table[data-v-10ac5811] .el-table__empty-text{color:#96a0b5!important}.custom-table[data-v-10ac5811] .el-table,.custom-table[data-v-10ac5811] .el-table__body{background-color:transparent!important}.custom-table[data-v-10ac5811] .el-table__inner-wrapper:before{display:none}.custom-table[data-v-10ac5811] .el-table__header{border-top-left-radius:4px;border-top-right-radius:4px;overflow:hidden}.custom-table[data-v-10ac5811] .el-table__header-wrapper th{background-color:#343744!important;color:#96a0b5!important;font-weight:400;border-bottom:none}.custom-table[data-v-10ac5811] .el-table__header-wrapper tr th.el-table__cell:first-child,.custom-table[data-v-10ac5811] .el-table__header-wrapper tr th.el-table__cell:first-child .cell{border-top-left-radius:6px}.custom-table[data-v-10ac5811] .el-table__header-wrapper tr th.el-table__cell:last-child{border-top-right-radius:4px}.custom-table[data-v-10ac5811] .el-table__header-wrapper tr th.el-table__cell:last-child .cell{border-top-right-radius:4px}.custom-table[data-v-10ac5811] .el-table__header-wrapper .el-table__header th.el-table__cell{background-color:#343744!important;color:#96a0b5}.custom-table[data-v-10ac5811] .el-table__header-wrapper tr{background-color:#343744!important}.custom-table[data-v-10ac5811] .el-table__body-wrapper td{height:68px!important;background-color:transparent;color:#fff;border-bottom:1px solid #4C4F5F}.custom-table[data-v-10ac5811] .el-table__body tr:hover>td{background:#2B3B5A!important}.custom-table[data-v-10ac5811] .el-button--link{border:none;background:transparent;color:#347ae2;padding:0;margin:0 5px}.custom-table[data-v-10ac5811] .el-button.is-text{background-color:transparent!important;border-color:transparent;color:#347ae2}.custom-table[data-v-10ac5811] .el-button.is-text:hover,.custom-table[data-v-10ac5811] .el-button.is-text:focus,.custom-table[data-v-10ac5811] .el-button.is-text:active{background-color:transparent!important;color:#347ae2}.custom-table[data-v-10ac5811] .el-button.el-button--primary.is-text,.custom-table[data-v-10ac5811] .el-button.el-button--primary.is-text:hover,.custom-table[data-v-10ac5811] .el-table__body tr:hover .el-button--link.is-text{background-color:transparent!important;color:#347ae2}[data-v-10ac5811] .el-table{--el-table-bg-color: transparent !important;--el-table-tr-bg-color: transparent !important;--el-table-border-color: #4C4F5F !important;--el-table-header-bg-color: #343744 !important;--el-table-row-hover-bg-color: #2B3B5A !important}[data-v-10ac5811] .el-table:before{display:none}.table-container[data-v-10ac5811]::-webkit-scrollbar{width:6px}.table-container[data-v-10ac5811]::-webkit-scrollbar-thumb{background-color:#4c4f5f;border-radius:6px}.table-container[data-v-10ac5811]::-webkit-scrollbar-track{background-color:#292c38}@media (max-width: 1200px){.search-area[data-v-10ac5811]{flex-wrap:wrap;gap:10px}.search-area .search-input[data-v-10ac5811]{width:100%;max-width:250px;margin-right:0}.search-area .search-select[data-v-10ac5811],.search-area .search-buttons[data-v-10ac5811]{margin-right:0}.search-area .action-buttons[data-v-10ac5811]{margin-left:0;margin-top:10px}}@media (max-width: 768px){.search-area[data-v-10ac5811]{flex-direction:column;align-items:flex-start}.search-area .search-input[data-v-10ac5811],.search-area .search-select[data-v-10ac5811]{width:100%;max-width:none}.search-area .search-buttons[data-v-10ac5811],.search-area .action-buttons[data-v-10ac5811]{width:100%;margin-top:10px}}.vehicle-cards[data-v-6e701db6]{width:100%;display:flex;flex-direction:column;height:100%}.cards-container[data-v-6e701db6]{height:calc(var(--card-row-height) * 2 + 15px);max-height:calc(100% - 50px);overflow-y:auto;padding:10px 0}.cards-grid[data-v-6e701db6]{width:100%;display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:var(--card-row-height);gap:15px}.vehicle-card[data-v-6e701db6]{background-color:#343744;color:#fff;border-radius:8px;overflow:hidden;width:100%;height:100%;box-shadow:0 2px 12px #0000001a;position:relative;cursor:pointer;transition:all .3s ease}.vehicle-card[data-v-6e701db6]:hover{transform:translateY(-2px);box-shadow:0 4px 20px #0003;background-color:#3a3f4d}.vehicle-card[data-v-6e701db6]:active{transform:translateY(0);box-shadow:0 2px 12px #0000001a}.vehicle-card.task-status[data-v-6e701db6]{border-top:4px solid #5690e7}.vehicle-card.idle-status[data-v-6e701db6]{border-top:4px solid #c3c3c3}.vehicle-card.waiting-status[data-v-6e701db6]{border-top:4px solid #ff312f}.card-content[data-v-6e701db6]{padding:15px}.card-row[data-v-6e701db6]{display:flex;align-items:center;margin-bottom:12px}.card-row[data-v-6e701db6]:last-child{margin-bottom:0}.card-row.card-header[data-v-6e701db6]{justify-content:space-between;margin-bottom:15px}.card-row.card-header .left-content[data-v-6e701db6]{display:flex;align-items:center;gap:8px}.card-row.card-header .left-content .car-icon[data-v-6e701db6]{width:24px;height:24px}.card-row.card-header .left-content .vehicle-info[data-v-6e701db6]{display:flex;flex-direction:column}.card-row.card-header .left-content .vehicle-info .vehicle-id[data-v-6e701db6]{font-size:16px;font-weight:700}.card-row.card-header .left-content .vehicle-info .vehicle-type[data-v-6e701db6]{font-size:12px;color:#96a0b5}.card-row.card-header .status-tag[data-v-6e701db6]{padding:2px 8px;border-radius:4px;font-size:12px}.card-row.card-header .status-tag.task[data-v-6e701db6]{background-color:#5690e7;color:#fff}.card-row.card-header .status-tag.idle[data-v-6e701db6]{background-color:#c3c3c3;color:#fff}.card-row.card-header .status-tag.waiting[data-v-6e701db6]{background-color:#ff312f;color:#fff}.card-row.battery-info[data-v-6e701db6]{display:flex;align-items:center;gap:8px}.card-row.battery-info .info-item[data-v-6e701db6]{display:flex;align-items:center}.card-row.battery-info .info-item .battery-container[data-v-6e701db6]{display:flex;align-items:center;background-color:#00ff8433;border-radius:4px;padding:4px 8px}.card-row.battery-info .info-item .battery-container .battery-icon[data-v-6e701db6]{display:flex;align-items:center}.card-row.battery-info .info-item .battery-container .lightning-icon[data-v-6e701db6]{font-size:12px;margin:0 4px;color:#00ff84}.card-row.battery-info .info-item .battery-container .percentage[data-v-6e701db6]{font-size:12px;font-weight:700;color:#00ff84}.card-row.battery-info .info-item i.el-icon[data-v-6e701db6]{font-size:18px;color:#67c23a}.card-row.battery-info .info-item i.el-icon.voltage-icon[data-v-6e701db6],.card-row.battery-info .info-item i.el-icon.current-icon[data-v-6e701db6]{color:#409eff}.card-row.battery-info .divider[data-v-6e701db6]{color:#5e6778}.card-row.location-info[data-v-6e701db6]{color:#96a0b5;font-size:14px}.card-row.location-info i.location-icon[data-v-6e701db6]{color:#409eff;margin-right:4px;font-size:18px}.card-row.contact-info[data-v-6e701db6],.card-row.company-info[data-v-6e701db6]{display:flex;justify-content:space-between}.card-row.contact-info .left-content[data-v-6e701db6],.card-row.contact-info .right-content[data-v-6e701db6],.card-row.company-info .left-content[data-v-6e701db6],.card-row.company-info .right-content[data-v-6e701db6]{display:flex;align-items:center;gap:4px;color:#96a0b5;font-size:14px}.card-row.contact-info .left-content i[data-v-6e701db6],.card-row.contact-info .right-content i[data-v-6e701db6],.card-row.company-info .left-content i[data-v-6e701db6],.card-row.company-info .right-content i[data-v-6e701db6]{color:#409eff;font-size:18px}.card-row.update-time[data-v-6e701db6]{font-size:12px;color:#5e6778}.card-row.update-time .update-label[data-v-6e701db6]{margin-right:4px}.bottom-stats[data-v-6e701db6]{display:flex;align-items:center;justify-content:space-between;height:50px;padding:0 5px;border-top:1px solid #4C4F5F}.bottom-stats .status-counters[data-v-6e701db6]{display:flex;align-items:center;gap:10px}.bottom-stats .status-counters .status-counter[data-v-6e701db6]{display:flex;align-items:center}.bottom-stats .status-counters .status-counter .counter-label[data-v-6e701db6]{color:#96a0b5;margin-right:5px}.bottom-stats .status-counters .status-counter.online .counter-value[data-v-6e701db6]{color:#67c23a}.bottom-stats .status-counters .status-counter.offline .counter-value[data-v-6e701db6]{color:#909399}.bottom-stats .status-counters .status-counter.fault .counter-value[data-v-6e701db6]{color:#f56c6c}.bottom-stats .pagination-wrapper[data-v-6e701db6]{margin-left:auto}[data-v-6e701db6] .el-button.is-text{color:#347ae2}[data-v-6e701db6] .el-pagination{margin-top:0;justify-content:flex-end}.cards-container[data-v-6e701db6]::-webkit-scrollbar{width:6px}.cards-container[data-v-6e701db6]::-webkit-scrollbar-thumb{background-color:#4c4f5f;border-radius:6px}.cards-container[data-v-6e701db6]::-webkit-scrollbar-track{background-color:#292c38}@media (max-width: 1600px){.cards-grid[data-v-6e701db6]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1200px){.cards-grid[data-v-6e701db6]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.cards-grid[data-v-6e701db6]{grid-template-columns:1fr}.bottom-stats[data-v-6e701db6]{height:auto;flex-direction:column;gap:15px;align-items:flex-start}.bottom-stats .status-counters[data-v-6e701db6]{width:100%;justify-content:space-between}.bottom-stats .pagination-wrapper[data-v-6e701db6]{width:100%;display:flex;justify-content:flex-end}}.monitor_container[data-v-db1c64a9]{display:flex;flex-direction:column;gap:20px;min-height:100%}.stats-section[data-v-db1c64a9]{margin-bottom:20px}.app-container[data-v-db1c64a9]{padding:20px;background-color:#292c38;color:#fff;border-radius:10px;display:flex;flex-direction:column;overflow:hidden;min-height:calc(100vh - 250px)}.content-area[data-v-db1c64a9]{flex:1;display:flex;flex-direction:column;overflow:hidden;height:calc(100% - 70px);min-height:500px}.detail-view[data-v-db1c64a9]{height:calc(100vh - 100px);overflow:hidden;animation:fadeIn-db1c64a9 .3s ease}.search-area[data-v-db1c64a9]{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding-bottom:15px;margin-bottom:15px;border-bottom:1px solid #343744}.search-area .search-input[data-v-db1c64a9]{width:250px}.search-area .search-select[data-v-db1c64a9]{width:150px}.search-area .status-selector[data-v-db1c64a9]{background-color:#343744;border-radius:8px;padding:10px;margin-right:20px}.search-area .status-selector .status-label[data-v-db1c64a9]{color:#96a0b5;font-size:14px;margin-bottom:8px}.search-area .status-selector .status-options[data-v-db1c64a9]{display:flex;flex-direction:column;gap:10px}.search-area .status-selector .status-options .status-option[data-v-db1c64a9]{display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:4px;cursor:pointer}.search-area .status-selector .status-options .status-option[data-v-db1c64a9]:hover,.search-area .status-selector .status-options .status-option.active[data-v-db1c64a9]{background-color:#2b3b5a}.search-area .status-selector .status-options .status-option.active .status-icon[data-v-db1c64a9]{background-color:#409eff}.search-area .status-selector .status-options .status-option.active .status-text[data-v-db1c64a9]{color:#fff}.search-area .status-selector .status-options .status-option .status-icon[data-v-db1c64a9]{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;background-color:#292c38}.search-area .status-selector .status-options .status-option .status-icon img[data-v-db1c64a9]{width:20px;height:20px;object-fit:contain}.search-area .status-selector .status-options .status-option .status-icon.selected[data-v-db1c64a9]{background-color:#409eff}.search-area .status-selector .status-options .status-option .status-text[data-v-db1c64a9]{color:#96a0b5;font-size:14px}.search-area .search-buttons[data-v-db1c64a9]{display:flex;gap:10px}.search-area .action-buttons[data-v-db1c64a9]{margin-left:auto;display:flex;gap:10px}.search-area .action-buttons .view-switcher[data-v-db1c64a9]{display:flex;background-color:#343744;border-radius:8px;overflow:hidden}.search-area .action-buttons .view-switcher .view-btn[data-v-db1c64a9]{display:flex;justify-content:center;align-items:center;width:36px;height:36px;cursor:pointer;transition:all .3s}.search-area .action-buttons .view-switcher .view-btn img[data-v-db1c64a9]{width:20px;height:20px;object-fit:contain}.search-area .action-buttons .view-switcher .view-btn[data-v-db1c64a9]:hover{background-color:#2b3b5a}.search-area .action-buttons .view-switcher .view-btn.active[data-v-db1c64a9]{background-color:#409eff}[data-v-db1c64a9] .el-input__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;border:none!important;box-shadow:none!important}[data-v-db1c64a9] .el-select__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;font-size:15px;border:none!important}[data-v-db1c64a9] .el-button{background:#343744;border-color:transparent;border-radius:8px;height:36px}[data-v-db1c64a9] .el-button.el-button--primary{background-color:#409eff}[data-v-db1c64a9] .el-button:hover,[data-v-db1c64a9] .el-button:focus{background:#2B3B5A;border-color:transparent}[data-v-db1c64a9] .el-button.el-button--primary:hover,[data-v-db1c64a9] .el-button.el-button--primary:focus{background-color:#337ecc}.fade-enter-active[data-v-db1c64a9],.fade-leave-active[data-v-db1c64a9]{transition:opacity .3s ease}.fade-enter-from[data-v-db1c64a9],.fade-leave-to[data-v-db1c64a9]{opacity:0}@keyframes fadeIn-db1c64a9{0%{opacity:0}to{opacity:1}}@media (max-width: 768px){.detail-view[data-v-db1c64a9]{min-height:calc(100vh - 80px)}.search-area[data-v-db1c64a9]{flex-direction:column;align-items:flex-start}.search-area .search-input[data-v-db1c64a9],.search-area .search-select[data-v-db1c64a9]{width:100%}.search-area .action-buttons[data-v-db1c64a9]{margin-left:0;margin-top:10px;width:100%;justify-content:flex-end}} diff --git a/airport/assets/index.2407f1a6.css.gz b/airport/assets/index.2407f1a6.css.gz new file mode 100644 index 0000000..c4db9d0 Binary files /dev/null and b/airport/assets/index.2407f1a6.css.gz differ diff --git a/airport/assets/index.284ab8f5.js b/airport/assets/index.284ab8f5.js new file mode 100644 index 0000000..ba5029e --- /dev/null +++ b/airport/assets/index.284ab8f5.js @@ -0,0 +1 @@ +import{_ as pe,Y as ce,u as me,r as c,a6 as _e,ae as fe,V as be,d as i,a8 as D,o as f,c as B,J as r,T as F,f as n,e,w as a,i as j,a9 as G,m as g,k as v,l as L,x as Q,H as ge,I as ve,s as he,ao as ye}from"./index.79832097.js";import{a as we,b as Ce,s as Ne,p as ke,d as xe}from"./gen.8e7bfccd.js";import Ve from"./importTable.64af47b1.js";const Se={class:"app-container"},$e=ce({name:"Gen"}),Te=Object.assign($e,{setup(De){const I=me(),{proxy:u}=he(),R=c([]),V=c(!0),N=c(!0),S=c([]),q=c(!0),U=c(!0),$=c(0),P=c([]),h=c([]),z=c(""),M=_e({queryParams:{pageNum:1,pageSize:10,tableName:void 0,tableComment:void 0},preview:{open:!1,title:"\u4EE3\u7801\u9884\u89C8",data:{},activeName:"domain.java"}}),{queryParams:s,preview:m}=fe(M);be(()=>{const o=I.query.t;o!=null&&o!=z.value&&(z.value=o,s.value.pageNum=Number(I.query.pageNum),h.value=[],u.resetForm("queryForm"),y())});function y(){V.value=!0,we(u.addDateRange(s.value,h.value)).then(o=>{R.value=o.rows,$.value=o.total,V.value=!1})}function w(){s.value.pageNum=1,y()}function O(o){const t=o.tableName||P.value;if(t==""){u.$modal.msgError("\u8BF7\u9009\u62E9\u8981\u751F\u6210\u7684\u6570\u636E");return}o.genType==="1"?Ce(o.tableName).then(T=>{u.$modal.msgSuccess("\u6210\u529F\u751F\u6210\u5230\u81EA\u5B9A\u4E49\u8DEF\u5F84\uFF1A"+o.genPath)}):u.$download.zip("/tool/gen/batchGenCode?tables="+t,"ruoyi.zip")}function A(o){const t=o.tableName;u.$modal.confirm('\u786E\u8BA4\u8981\u5F3A\u5236\u540C\u6B65"'+t+'"\u8868\u7ED3\u6784\u5417\uFF1F').then(function(){return Ne(t)}).then(()=>{u.$modal.msgSuccess("\u540C\u6B65\u6210\u529F")}).catch(()=>{})}function H(){u.$refs.importRef.show()}function J(){h.value=[],u.resetForm("queryRef"),w()}function W(o){ke(o.tableId).then(t=>{m.value.data=t.data,m.value.open=!0,m.value.activeName="domain.java"})}function X(){u.$modal.msgSuccess("\u590D\u5236\u6210\u529F")}function Z(o){S.value=o.map(t=>t.tableId),P.value=o.map(t=>t.tableName),q.value=o.length!=1,U.value=!o.length}function E(o){const t=o.tableId||S.value[0];ye.push({path:"/tool/gen-edit/index/"+t,query:{pageNum:s.value.pageNum}})}function K(o){const t=o.tableId||S.value;u.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u8868\u7F16\u53F7\u4E3A"'+t+'"\u7684\u6570\u636E\u9879\uFF1F').then(function(){return xe(t)}).then(()=>{y(),u.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}return y(),(o,t)=>{const T=i("el-input"),k=i("el-form-item"),ee=i("el-date-picker"),d=i("el-button"),te=i("el-form"),x=i("el-col"),ae=i("right-toolbar"),le=i("el-row"),b=i("el-table-column"),C=i("el-tooltip"),ne=i("el-table"),oe=i("pagination"),ie=i("el-link"),se=i("el-tab-pane"),re=i("el-tabs"),ue=i("el-dialog"),_=D("hasPermi"),de=D("loading"),Y=D("copyText");return f(),B("div",Se,[r(e(te,{model:n(s),ref:"queryRef",inline:!0},{default:a(()=>[e(k,{label:"\u8868\u540D\u79F0",prop:"tableName"},{default:a(()=>[e(T,{modelValue:n(s).tableName,"onUpdate:modelValue":t[0]||(t[0]=l=>n(s).tableName=l),placeholder:"\u8BF7\u8F93\u5165\u8868\u540D\u79F0",clearable:"",style:{width:"200px"},onKeyup:j(w,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(k,{label:"\u8868\u63CF\u8FF0",prop:"tableComment"},{default:a(()=>[e(T,{modelValue:n(s).tableComment,"onUpdate:modelValue":t[1]||(t[1]=l=>n(s).tableComment=l),placeholder:"\u8BF7\u8F93\u5165\u8868\u63CF\u8FF0",clearable:"",style:{width:"200px"},onKeyup:j(w,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(k,{label:"\u521B\u5EFA\u65F6\u95F4",style:{width:"308px"}},{default:a(()=>[e(ee,{modelValue:n(h),"onUpdate:modelValue":t[2]||(t[2]=l=>G(h)?h.value=l:null),"value-format":"YYYY-MM-DD",type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(k,null,{default:a(()=>[e(d,{type:"primary",icon:"Search",onClick:w},{default:a(()=>[g("\u641C\u7D22")]),_:1}),e(d,{icon:"Refresh",onClick:J},{default:a(()=>[g("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[F,n(N)]]),e(le,{gutter:10,class:"mb8"},{default:a(()=>[e(x,{span:1.5},{default:a(()=>[r((f(),v(d,{type:"primary",plain:"",icon:"Download",onClick:O},{default:a(()=>[g("\u751F\u6210")]),_:1})),[[_,["tool:gen:code"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:a(()=>[r((f(),v(d,{type:"info",plain:"",icon:"Upload",onClick:H},{default:a(()=>[g("\u5BFC\u5165")]),_:1})),[[_,["tool:gen:import"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:a(()=>[r((f(),v(d,{type:"success",plain:"",icon:"Edit",disabled:n(q),onClick:E},{default:a(()=>[g("\u4FEE\u6539")]),_:1},8,["disabled"])),[[_,["tool:gen:edit"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:a(()=>[r((f(),v(d,{type:"danger",plain:"",icon:"Delete",disabled:n(U),onClick:K},{default:a(()=>[g("\u5220\u9664")]),_:1},8,["disabled"])),[[_,["tool:gen:remove"]]])]),_:1},8,["span"]),e(ae,{showSearch:n(N),"onUpdate:showSearch":t[3]||(t[3]=l=>G(N)?N.value=l:null),onQueryTable:y},null,8,["showSearch"])]),_:1}),r((f(),v(ne,{data:n(R),onSelectionChange:Z},{default:a(()=>[e(b,{type:"selection",align:"center",width:"55"}),e(b,{label:"\u5E8F\u53F7",type:"index",width:"50",align:"center"},{default:a(l=>[L("span",null,Q((n(s).pageNum-1)*n(s).pageSize+l.$index+1),1)]),_:1}),e(b,{label:"\u8868\u540D\u79F0",align:"center",prop:"tableName","show-overflow-tooltip":!0}),e(b,{label:"\u8868\u63CF\u8FF0",align:"center",prop:"tableComment","show-overflow-tooltip":!0}),e(b,{label:"\u5B9E\u4F53",align:"center",prop:"className","show-overflow-tooltip":!0}),e(b,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"160"}),e(b,{label:"\u66F4\u65B0\u65F6\u95F4",align:"center",prop:"updateTime",width:"160"}),e(b,{label:"\u64CD\u4F5C",align:"center",width:"330","class-name":"small-padding fixed-width"},{default:a(l=>[e(C,{content:"\u9884\u89C8",placement:"top"},{default:a(()=>[r(e(d,{link:"",type:"primary",icon:"View",onClick:p=>W(l.row)},null,8,["onClick"]),[[_,["tool:gen:preview"]]])]),_:2},1024),e(C,{content:"\u7F16\u8F91",placement:"top"},{default:a(()=>[r(e(d,{link:"",type:"primary",icon:"Edit",onClick:p=>E(l.row)},null,8,["onClick"]),[[_,["tool:gen:edit"]]])]),_:2},1024),e(C,{content:"\u5220\u9664",placement:"top"},{default:a(()=>[r(e(d,{link:"",type:"primary",icon:"Delete",onClick:p=>K(l.row)},null,8,["onClick"]),[[_,["tool:gen:remove"]]])]),_:2},1024),e(C,{content:"\u540C\u6B65",placement:"top"},{default:a(()=>[r(e(d,{link:"",type:"primary",icon:"Refresh",onClick:p=>A(l.row)},null,8,["onClick"]),[[_,["tool:gen:edit"]]])]),_:2},1024),e(C,{content:"\u751F\u6210\u4EE3\u7801",placement:"top"},{default:a(()=>[r(e(d,{link:"",type:"primary",icon:"Download",onClick:p=>O(l.row)},null,8,["onClick"]),[[_,["tool:gen:code"]]])]),_:2},1024)]),_:1})]),_:1},8,["data"])),[[de,n(V)]]),r(e(oe,{total:n($),page:n(s).pageNum,"onUpdate:page":t[4]||(t[4]=l=>n(s).pageNum=l),limit:n(s).pageSize,"onUpdate:limit":t[5]||(t[5]=l=>n(s).pageSize=l),onPagination:y},null,8,["total","page","limit"]),[[F,n($)>0]]),e(ue,{title:n(m).title,modelValue:n(m).open,"onUpdate:modelValue":t[7]||(t[7]=l=>n(m).open=l),width:"80%",top:"5vh","append-to-body":"",class:"scrollbar"},{default:a(()=>[e(re,{modelValue:n(m).activeName,"onUpdate:modelValue":t[6]||(t[6]=l=>n(m).activeName=l)},{default:a(()=>[(f(!0),B(ge,null,ve(n(m).data,(l,p)=>(f(),v(se,{label:p.substring(p.lastIndexOf("/")+1,p.indexOf(".vm")),name:p.substring(p.lastIndexOf("/")+1,p.indexOf(".vm")),key:l},{default:a(()=>[r((f(),v(ie,{underline:!1,icon:"DocumentCopy",style:{float:"right"}},{default:a(()=>[g("\xA0\u590D\u5236")]),_:2},1024)),[[Y,l],[Y,X,"callback"]]),L("pre",null,Q(l),1)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["title","modelValue"]),e(n(Ve),{ref:"importRef",onOk:w},null,512)])}}}),Ue=pe(Te,[["__scopeId","data-v-849a2489"]]);export{Ue as default}; diff --git a/airport/assets/index.284ab8f5.js.gz b/airport/assets/index.284ab8f5.js.gz new file mode 100644 index 0000000..6407eaa Binary files /dev/null and b/airport/assets/index.284ab8f5.js.gz differ diff --git a/airport/assets/index.2a94735f.css b/airport/assets/index.2a94735f.css new file mode 100644 index 0000000..b2297a4 --- /dev/null +++ b/airport/assets/index.2a94735f.css @@ -0,0 +1 @@ +.home[data-v-46c6bd0f]{font-family:open sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px;color:#676a6c;overflow-x:hidden}.home blockquote[data-v-46c6bd0f]{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}.home hr[data-v-46c6bd0f]{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.home .col-item[data-v-46c6bd0f]{margin-bottom:20px}.home ul[data-v-46c6bd0f]{padding:0;margin:0}.home ul[data-v-46c6bd0f]{list-style-type:none}.home h4[data-v-46c6bd0f]{margin-top:0}.home h2[data-v-46c6bd0f]{margin-top:10px;font-size:26px;font-weight:100}.home p[data-v-46c6bd0f]{margin-top:10px}.home p b[data-v-46c6bd0f]{font-weight:700}.home .update-log ol[data-v-46c6bd0f]{display:block;list-style-type:decimal;margin-block-start:1em;margin-block-end:1em;margin-inline-start:0;margin-inline-end:0;padding-inline-start:40px} diff --git a/airport/assets/index.31b828b2.js b/airport/assets/index.31b828b2.js new file mode 100644 index 0000000..2341215 --- /dev/null +++ b/airport/assets/index.31b828b2.js @@ -0,0 +1 @@ +import{L as P,_ as ke,Y as Pe,r as _,v as j,a6 as R,a7 as Q,C as Ie,d as u,a8 as Se,o as U,c as $,l as i,e,i as Ne,w as a,H as Y,I as W,k as A,m as d,J as X,x as B,f as x,al as Te,T as $e,a1 as Ae,n as Be,aa as Fe,ab as Le,ac as Z,p as ze,q as De,s as Ee}from"./index.79832097.js";/* empty css */import{l as Re}from"./vehicle_type.be7b2e4d.js";function qe(r){return P({url:"/system/vehicle_info/list",method:"get",params:r})}function Me(r){return P({url:"/system/vehicle_info/"+r,method:"get"})}function Ge(r){return P({url:"/system/vehicle_info",method:"post",data:r})}function Oe(r){return P({url:"/system/vehicle_info",method:"put",data:r})}function He(r){return P({url:"/system/vehicle_info/"+r,method:"delete"})}const F=r=>(ze("data-v-6645c0b2"),r=r(),De(),r),Je={class:"app-container"},Ke={class:"park-container"},je={class:"search-area"},Qe={class:"search-buttons"},Ye={class:"action-buttons"},We={class:"table-container"},Xe=["src"],Ze={class:"avatar-uploader-box"},el={key:0,class:"avatar-preview"},ll=["src"],tl=["onClick"],al={class:"avatar-upload-placeholder"},ol={class:"avatar-count"},nl={class:"dialog-footer"},il=F(()=>i("div",{class:"import-title"},"\u9009\u62E9\u9700\u8981\u5BFC\u5165\u7684\u8F66\u8F86\u6587\u4EF6",-1)),sl={class:"upload-content"},dl=F(()=>i("div",{class:"upload-text"},"\u62D6\u62FD\u6587\u4EF6\u5230\u8FD9\u91CC\uFF0C\u6216",-1)),ul={class:"upload-link"},rl=F(()=>i("span",{class:"click-upload"},"\u70B9\u6B64\u6DFB\u52A0",-1)),cl={class:"import-footer"},pl={class:"footer-left"},fl={class:"footer-right"},ml=F(()=>i("span",{class:"file-format"},"\u4EC5\u5141\u8BB8\u5BFC\u5165xls\u3001xlsx\u683C\u5F0F\u6587\u4EF6\u3002",-1)),vl={class:"dialog-footer"},_l=Pe({name:"VehiclePark"}),gl=Object.assign(_l,{setup(r){var O,H;const{proxy:c}=Ee(),b=_([]),I=_(!0),L=_([]),ee=_(!0),q=_(!0),S=_(0),C=_([]),z=_({});_([{title:"\u5728\u7EBF",count:45,icon:"el-icon-success",color:"#67c23a",trend:"+30%",trendUp:!0},{title:"\u4EFB\u52A1\u4E2D",count:28,icon:"el-icon-loading",color:"#409eff",trend:"+20%",trendUp:!0},{title:"\u6545\u969C",count:5,icon:"el-icon-warning",color:"#f56c6c",trend:"-10%",trendUp:!1},{title:"\u79BB\u7EBF",count:12,icon:"el-icon-error",color:"#e6a23c",trend:"-5%",trendUp:!1}]),j(()=>({online:b.value.filter(n=>n.status==="\u5728\u7EBF").length,inTask:b.value.filter(n=>n.routeStatus==="\u4EFB\u52A1\u4E2D").length,error:b.value.filter(n=>n.status==="\u6545\u969C").length,offline:b.value.filter(n=>n.status==="\u79BB\u7EBF").length}));const p=_({pageNum:1,pageSize:7,licensePlate:void 0,typeCode:void 0}),le=j(()=>{const n=p.value.pageSize||7;return b.value.length>n?520:void 0}),g=R({visible:!1,title:""}),k=R({visible:!1}),o=_({vehicleId:void 0,licensePlate:"",typeCode:"",brand:"",owningUnit:"",contactPerson:"",phoneNumber:"",imageUrl:""}),te={licensePlate:[{required:!0,message:"\u8F66\u724C\u53F7\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],typeCode:[{required:!0,message:"\u8F66\u8F86\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}],brand:[{required:!0,message:"\u8F66\u8F86\u54C1\u724C\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],owningUnit:[{required:!0,message:"\u6240\u5C5E\u5355\u4F4D\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],contactPerson:[{required:!0,message:"\u8054\u7CFB\u4EBA\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],phoneNumber:[{required:!0,message:"\u7535\u8BDD\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]},ae=((O=window.APP_CONFIG)==null?void 0:O.VITE_BASE_URL)+"/common/upload",oe={Authorization:"Bearer "+Q()},h=R({isUploading:!1,updateSupport:0,title:"",open:!1,url:((H=window.APP_CONFIG)==null?void 0:H.VITE_BASE_URL)+"/system/vehicle_info/importData",headers:{Authorization:"Bearer "+Q()}});function w(){I.value=!0,qe(p.value).then(n=>{I.value=!1,b.value=n.rows||[],S.value=n.total||0}).catch(()=>{I.value=!1,b.value=[],S.value=0})}function D(){p.value.pageNum=1,w()}function ne(){p.value={pageNum:1,pageSize:10,licensePlate:void 0,typeCode:void 0},D()}function ie(n){L.value=n.map(l=>l.vehicleId),ee.value=n.length!=1,q.value=!n.length}function se(){G(),E(),g.visible=!0,g.title="\u6DFB\u52A0\u8F66\u8F86"}function de(n){G();const l=n.vehicleId||L.value[0];Me(l).then(s=>{if(o.value=s.data||{},C.value.length||E(),o.value.typeId&&!o.value.typeCode){const f=C.value.find(N=>N.typeId===o.value.typeId);o.value.typeCode=f?f.typeCode:o.value.typeCode}g.visible=!0,g.title="\u4FEE\u6539\u8F66\u8F86"})}function ue(){c.$refs.vehicleFormRef.validate(n=>{n&&(o.value.vehicleId!=null?Oe({vehicleId:o.value.vehicleId,licensePlate:o.value.licensePlate,typeCode:o.value.typeCode,brand:o.value.brand,owningUnit:o.value.owningUnit,contactPerson:o.value.contactPerson,phoneNumber:o.value.phoneNumber,imageUrl:o.value.imageUrl}).then(l=>{c.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),g.visible=!1,w()}):Ge({licensePlate:o.value.licensePlate,typeCode:o.value.typeCode,brand:o.value.brand,owningUnit:o.value.owningUnit,contactPerson:o.value.contactPerson,phoneNumber:o.value.phoneNumber,imageUrl:o.value.imageUrl}).then(l=>{c.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),g.visible=!1,w()}))})}function M(n){const l=n.vehicleId||L.value;c.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u8F66\u8F86\u7F16\u53F7\u4E3A"'+l+'"\u7684\u6570\u636E\u9879\uFF1F').then(function(){return He(l)}).then(()=>{w(),c.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function re(){k.visible=!0,h.title="\u8F66\u8F86\u5BFC\u5165"}function ce(n,l,s){h.isUploading=!0}function pe(n,l,s){h.isUploading=!1,c.$refs.uploadRef.clearFiles(),c.$alert("
"+n.msg+"
","\u5BFC\u5165\u7ED3\u679C",{dangerouslyUseHTMLString:!0}),k.visible=!1,w()}function fe(){c.$refs.uploadRef.submit()}function me(){c.download("system/vehicle_info/export",{...p.value,pageNum:void 0,pageSize:void 0},`\u8F66\u8F86\u6570\u636E_${new Date().getTime()}.xlsx`)}function ve(n,l){o.value.imageUrl=n.url}function _e(n){const l=n.type==="image/jpeg"||n.type==="image/png",s=n.size/1024/1024<2;return l||c.$message.error("\u4E0A\u4F20\u56FE\u7247\u53EA\u80FD\u662F JPG/PNG \u683C\u5F0F!"),s||c.$message.error("\u4E0A\u4F20\u56FE\u7247\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 2MB!"),l&&s}function G(){o.value={vehicleId:void 0,licensePlate:"",typeId:"",brand:"",owningUnit:"",contactPerson:"",phoneNumber:"",imageUrl:""},c.resetForm("vehicleFormRef")}function ge(){c.download("system/vehicle_info/importTemplate",{},`\u8F66\u8F86\u6570\u636E\u6A21\u677F_${new Date().getTime()}.xlsx`)}function he(){o.value.imageUrl=""}function E(){Re().then(n=>{const l=Array.isArray(n.rows)?n.rows:Array.isArray(n.data)?n.data:Array.isArray(n)?n:[];let s=l.filter(f=>f.pathLevel===2||f.level===2);s.length||(s=l),C.value=s,z.value={},s.forEach(f=>{z.value[f.typeId]=f.displayNameCn})}).catch(()=>{C.value=[],z.value={}})}return Ie(()=>{w(),E()}),(n,l)=>{const s=u("el-input"),f=u("el-option"),N=u("el-select"),m=u("el-button"),v=u("el-table-column"),be=u("el-table"),y=u("el-form-item"),V=u("el-col"),ye=u("el-row"),T=u("el-icon"),J=u("el-upload"),Ue=u("el-form"),K=u("el-dialog"),we=u("el-checkbox"),Ce=u("el-link"),Ve=Se("loading");return U(),$("div",Je,[i("div",Ke,[i("div",je,[e(s,{modelValue:p.value.licensePlate,"onUpdate:modelValue":l[0]||(l[0]=t=>p.value.licensePlate=t),placeholder:"\u8BF7\u8F93\u5165\u8F66\u724C\u53F7\u67E5\u8BE2",clearable:"","prefix-icon":"Search",class:"search-input",onKeyup:Ne(D,["enter"])},null,8,["modelValue","onKeyup"]),e(N,{modelValue:p.value.typeCode,"onUpdate:modelValue":l[1]||(l[1]=t=>p.value.typeCode=t),placeholder:"\u8F66\u8F86\u7C7B\u578B",clearable:"",class:"search-select"},{default:a(()=>[e(f,{label:"\u5168\u90E8",value:""}),(U(!0),$(Y,null,W(C.value,t=>(U(),A(f,{key:t.typeId,label:t.displayNameCn,value:t.typeCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i("div",Qe,[e(m,{type:"primary",class:"search-btn",onClick:D},{default:a(()=>[d("\u641C\u7D22")]),_:1}),e(m,{class:"reset-btn",onClick:ne},{default:a(()=>[d("\u91CD\u7F6E")]),_:1})]),i("div",Ye,[e(m,{class:"search-btn",type:"primary",onClick:se},{default:a(()=>[d("\u65B0\u589E")]),_:1}),e(m,{class:"reset-btn",onClick:re},{default:a(()=>[d("\u5BFC\u5165")]),_:1}),e(m,{class:"reset-btn",onClick:me},{default:a(()=>[d("\u5BFC\u51FA")]),_:1}),e(m,{class:"export-btn",onClick:M,disabled:q.value},{default:a(()=>[d("\u5220\u9664")]),_:1},8,["disabled"])])]),i("div",We,[X((U(),A(be,{data:b.value,onSelectionChange:ie,style:{width:"100%"},class:"custom-table","header-cell-style":{backgroundColor:"#343744",color:"#fff"},"bg-color":"#292C38","max-height":x(le)},{default:a(()=>[e(v,{type:"selection",width:"50",align:"left"}),e(v,{label:"\u5E8F\u53F7",width:"60",align:"left"},{default:a(t=>[d(B(t.$index+1),1)]),_:1}),e(v,{label:"\u8F66\u724C\u53F7",prop:"licensePlate",align:"left"}),e(v,{label:"\u8F66\u8F86\u7C7B\u578B",align:"left"},{default:a(t=>[d(B(t.row.typeDisplayName||"\u672A\u77E5\u7C7B\u578B"),1)]),_:1}),e(v,{label:"\u54C1\u724C",prop:"brand",align:"left"}),e(v,{label:"\u8F66\u8F86\u56FE\u7247",align:"left"},{default:a(t=>[i("img",{src:t.row.imageUrl,class:"vehicle-image"},null,8,Xe)]),_:1}),e(v,{label:"\u6240\u5C5E\u5355\u4F4D",prop:"owningUnit",align:"left"}),e(v,{label:"\u8D1F\u8D23\u4EBA",prop:"contactPerson",align:"left"}),e(v,{label:"\u8D1F\u8D23\u4EBA\u7535\u8BDD",prop:"phoneNumber",align:"left"}),e(v,{label:"\u521B\u5EFA\u4EBA",prop:"createBy",align:"left"}),e(v,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",align:"left",width:"160"},{default:a(t=>[i("span",null,B(x(Te)(t.row.createTime)),1)]),_:1}),e(v,{label:"\u64CD\u4F5C",width:"120",align:"left"},{default:a(t=>[e(m,{link:"",text:"",onClick:xe=>de(t.row)},{default:a(()=>[d("\u7F16\u8F91")]),_:2},1032,["onClick"]),e(m,{link:"",text:"",type:"danger",onClick:xe=>M(t.row)},{default:a(()=>[d("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","max-height"])),[[Ve,I.value]]),X(e(Ae,{total:S.value,page:p.value.pageNum,"onUpdate:page":l[2]||(l[2]=t=>p.value.pageNum=t),limit:p.value.pageSize,"onUpdate:limit":l[3]||(l[3]=t=>p.value.pageSize=t),onPagination:w},null,8,["total","page","limit"]),[[$e,S.value>0]])])]),e(K,{modelValue:g.visible,"onUpdate:modelValue":l[12]||(l[12]=t=>g.visible=t),title:g.title,width:"600px","append-to-body":"",class:"vehicle-dialog"},{footer:a(()=>[i("div",nl,[e(m,{class:"export-btn",onClick:l[11]||(l[11]=t=>g.visible=!1)},{default:a(()=>[d("\u53D6 \u6D88")]),_:1}),e(m,{class:"search-btn",type:"primary",onClick:ue},{default:a(()=>[d("\u786E \u5B9A")]),_:1})])]),default:a(()=>[e(Ue,{ref:"vehicleFormRef",model:o.value,rules:te,"label-width":"100px"},{default:a(()=>[e(ye,null,{default:a(()=>[e(V,{span:24},{default:a(()=>[e(y,{label:"\u8F66\u724C\u53F7",prop:"licensePlate"},{default:a(()=>[e(s,{modelValue:o.value.licensePlate,"onUpdate:modelValue":l[4]||(l[4]=t=>o.value.licensePlate=t),placeholder:"\u8BF7\u8F93\u5165\u8F66\u724C\u53F7"},null,8,["modelValue"])]),_:1})]),_:1}),e(V,{span:24},{default:a(()=>[e(y,{label:"\u8F66\u8F86\u7C7B\u578B",prop:"typeCode"},{default:a(()=>[e(N,{modelValue:o.value.typeCode,"onUpdate:modelValue":l[5]||(l[5]=t=>o.value.typeCode=t),placeholder:"\u8BF7\u9009\u62E9\u8F66\u8F86\u7C7B\u578B",style:{width:"100%"}},{default:a(()=>[(U(!0),$(Y,null,W(C.value,t=>(U(),A(f,{key:t.typeId,label:t.displayNameCn,value:t.typeCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(V,{span:24},{default:a(()=>[e(y,{label:"\u8F66\u8F86\u54C1\u724C",prop:"brand"},{default:a(()=>[e(s,{modelValue:o.value.brand,"onUpdate:modelValue":l[6]||(l[6]=t=>o.value.brand=t),placeholder:"\u8BF7\u8F93\u5165\u8F66\u8F86\u54C1\u724C"},null,8,["modelValue"])]),_:1})]),_:1}),e(V,{span:24},{default:a(()=>[e(y,{label:"\u6240\u5C5E\u5355\u4F4D",prop:"owningUnit"},{default:a(()=>[e(s,{modelValue:o.value.owningUnit,"onUpdate:modelValue":l[7]||(l[7]=t=>o.value.owningUnit=t),placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5355\u4F4D"},null,8,["modelValue"])]),_:1})]),_:1}),e(V,{span:24},{default:a(()=>[e(y,{label:"\u8054\u7CFB\u4EBA",prop:"contactPerson"},{default:a(()=>[e(s,{modelValue:o.value.contactPerson,"onUpdate:modelValue":l[8]||(l[8]=t=>o.value.contactPerson=t),placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA"},null,8,["modelValue"])]),_:1})]),_:1}),e(V,{span:24},{default:a(()=>[e(y,{label:"\u7535\u8BDD",prop:"phoneNumber"},{default:a(()=>[e(s,{modelValue:o.value.phoneNumber,"onUpdate:modelValue":l[9]||(l[9]=t=>o.value.phoneNumber=t),placeholder:"\u8BF7\u8F93\u5165\u7535\u8BDD"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(y,{label:"\u521B\u5EFA\u4EBA",prop:"createBy"},{default:a(()=>[e(s,{modelValue:o.value.createBy,"onUpdate:modelValue":l[10]||(l[10]=t=>o.value.createBy=t),placeholder:"\u8BF7\u8F93\u5165\u521B\u5EFA\u4EBA"},null,8,["modelValue"])]),_:1}),e(y,{label:"\u8F66\u8F86\u56FE\u7247",prop:"imageUrl"},{default:a(()=>[i("div",Ze,[o.value.imageUrl?(U(),$("div",el,[i("img",{src:o.value.imageUrl,class:"avatar"},null,8,ll),i("div",{class:"avatar-replace",onClick:Be(he,["stop"])},[e(T,null,{default:a(()=>[e(x(Fe))]),_:1})],8,tl)])):(U(),A(J,{key:1,class:"avatar-uploader",action:ae,headers:oe,"show-file-list":!1,"on-success":ve,"before-upload":_e},{default:a(()=>[i("div",al,[e(T,{class:"avatar-uploader-icon"},{default:a(()=>[e(x(Le))]),_:1})])]),_:1})),i("div",ol,B(o.value.imageUrl?"1/1":"0/1"),1)])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),e(K,{modelValue:k.visible,"onUpdate:modelValue":l[15]||(l[15]=t=>k.visible=t),title:"\u5BFC\u5165\u8F66\u8F86\u4FE1\u606F",width:"500px","append-to-body":"",class:"import-dialog"},{footer:a(()=>[i("div",vl,[e(m,{class:"reset-btn",onClick:l[14]||(l[14]=t=>k.visible=!1)},{default:a(()=>[d("\u53D6 \u6D88")]),_:1}),e(m,{class:"search-btn",type:"primary",onClick:fe},{default:a(()=>[d("\u786E \u5B9A")]),_:1})])]),default:a(()=>[il,e(J,{ref:"uploadRef",limit:1,accept:".xlsx, .xls",headers:h.headers,action:h.url+"?updateSupport="+h.updateSupport,disabled:h.isUploading,"on-progress":ce,"on-success":pe,"auto-upload":!1,drag:"",class:"import-upload"},{default:a(()=>[i("div",sl,[e(T,{class:"upload-icon"},{default:a(()=>[e(x(Z))]),_:1}),dl,i("div",ul,[e(T,{class:"upload-icon-small",style:{color:"#347AE2"}},{default:a(()=>[e(x(Z))]),_:1}),rl])])]),_:1},8,["headers","action","disabled"]),i("div",cl,[i("div",pl,[e(we,{modelValue:h.updateSupport,"onUpdate:modelValue":l[13]||(l[13]=t=>h.updateSupport=t)},{default:a(()=>[d("\u662F\u5426\u66F4\u65B0\u5DF2\u7ECF\u5B58\u5728\u7684\u8F66\u8F86\u6570\u636E")]),_:1},8,["modelValue"])]),i("div",fl,[ml,e(Ce,{type:"primary",underline:!1,class:"download-link",onClick:ge},{default:a(()=>[d("\u4E0B\u8F7D\u6A21\u677F")]),_:1})])])]),_:1},8,["modelValue"])])}}}),Ul=ke(gl,[["__scopeId","data-v-6645c0b2"]]);export{Ul as default}; diff --git a/airport/assets/index.31b828b2.js.gz b/airport/assets/index.31b828b2.js.gz new file mode 100644 index 0000000..ffec229 Binary files /dev/null and b/airport/assets/index.31b828b2.js.gz differ diff --git a/airport/assets/index.40292c56.js b/airport/assets/index.40292c56.js new file mode 100644 index 0000000..58c09ea --- /dev/null +++ b/airport/assets/index.40292c56.js @@ -0,0 +1 @@ +import{o as s,c,u as n,a as u}from"./index.79832097.js";const i={__name:"index",setup(p){const e=n(),t=u(),{params:o,query:a}=e,{path:r}=o;return t.replace({path:"/"+r,query:a}),(_,m)=>(s(),c("div"))}};export{i as default}; diff --git a/airport/assets/index.46f01612.js b/airport/assets/index.46f01612.js new file mode 100644 index 0000000..d3b824d --- /dev/null +++ b/airport/assets/index.46f01612.js @@ -0,0 +1,1110 @@ +import{a as tB,c as FZ,m as xPe,w as Ttt,g as nv,i as P8,T as DA,s as SPe,D as wPe,l as Ks,O as FR,b as Ctt,C as QN,R as Att,u as Lf,d as BO,r as Mtt,B as oz,e as Tp,f as Jg,h as hc,j as Rx,k as bPe,E as zo,n as _1,o as GO,p as Itt,P as EPe,q as Ltt,V as one,t as TPe,v as bv,x as sne,y as uM,z as Ptt,A as lne,F as Bg,G as sA,H as zO,I as pp,J as une,K as Ott,L as BZ,M as Rtt,N as GZ,Q as CPe,S as zZ,U as UZ,W as VZ,X as sz,Y as Dtt,Z as Ntt,_ as ktt,$ as Ftt,a0 as APe,a1 as Tde,a2 as O8,a3 as d1,a4 as $Z,a5 as Cde,a6 as R8,a7 as Btt,a8 as Gtt,a9 as hne,aa as lz,ab as D8,ac as ztt,ad as Utt,ae as N8,af as LF,ag as Vtt,ah as e3,ai as MPe,aj as $tt,ak as Wtt,al as Htt,am as jtt,an as Xtt,ao as t3,ap as Ytt,aq as cne,ar as qtt,as as WZ,at as fne,au as IPe,av as Ztt,aw as Ktt,ax as Jtt,ay as Qtt,az as ert,aA as trt,aB as sp,aC as Hx,aD as E1,aE as Qb,aF as rB,aG as Ade,aH as rrt,aI as nrt,aJ as irt,aK as art,aL as ort,aM as HZ,aN as srt,aO as lrt,aP as urt,aQ as hrt,aR as jZ,aS as Mde,aT as OW,aU as dne,aV as crt,aW as frt,aX as lA,aY as Ide,aZ as LPe,a_ as drt,a$ as NC,b0 as Lde,b1 as vrt,b2 as prt,b3 as grt,b4 as yrt,b5 as mrt,b6 as PF,b7 as OF,b8 as PPe,b9 as _rt,ba as xrt,bb as Srt,bc as $b,bd as T1,be as jx,bf as C1,bg as OPe,bh as uz,bi as wrt,bj as RW,bk as RF,bl as Pde,bm as Ode,bn as brt,bo as Ert,bp as Rde,bq as Trt,br as Crt}from"./VehicleMovementControlRefactored.96e4a3ca.js";import{z as at,A as Nd,B as Art,_ as rf,r as un,v as El,C as P0,D as Af,F as i_,o as qr,c as hn,l as fe,G as hl,f as Qo,H as Dp,I as Np,J as lu,K as kC,x as mn,j as Bs,p as kd,q as Fd,L as PS,M as qg,i as RPe,N as Dde,n as BR,y as vne,O as Sp,m as a_,P as Nde,e as dd,Q as XZ,k as uA,R as Mrt,d as DW,w as kde,S as Irt,T as DPe,U as Lrt,V as Prt}from"./index.79832097.js";import{l as Ort}from"./vehicle_type.be7b2e4d.js";import{g as Rrt,a as Drt}from"./manager.4e506c5f.js";import{l as Nrt}from"./intersection.55727948.js";function krt(n,e){for(var t=0;tr[i]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}const pne=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return F0},get Circle(){return qHt},get Ellipse(){return KHt},get Image(){return QHt},get Line(){return tjt},get Marker(){return ijt},get Path(){return Ise},get Polygon(){return djt},get Polyline(){return pjt},get Rect(){return _jt},get Text(){return Sjt}},Symbol.toStringTag,{value:"Module"})),gne=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return lg},get Circle(){return Ajt},get Dom(){return Ijt},get Ellipse(){return Pjt},get Image(){return Rjt},get Line(){return Njt},get Marker(){return Fjt},get Path(){return Gjt},get Polygon(){return Ujt},get Polyline(){return $jt},get Rect(){return jjt},get Text(){return Kjt}},Symbol.toStringTag,{value:"Module"})),Frt="/airport/assets/light.32436962.svg",Brt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC8AAAAvCAYAAABzJ5OsAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA3qSURBVHgBzVl7jF1FGZ+Zc9+v3W63u2wftqXFPkKhsdgC4VFQNETFfywkEokSIMESY2KoGv7AYvGdAAkIIaK89A9qU/1DUKi2JVoeTQEtu33T1z7a7d3u69573jP+vjnn3Hu2++hWGuK0s+fMOXNmft/3/eb7vpnL2UUoZ5QqVivsFq7YEm6w1VKyJqbYHMbxVzHOOevBtYcJ1oXuu4Vg++bleA/7mIWzj1FODqs10mDrlWRrJumiYnPU7+nG4Gyb8r2t85uT29j/WC4IvFJK9z804K5Op5LrJWOrwzH0C3XOgLo/hz2ia2xS1bjvTTL27TklfiD2+OKDf3tgoDTLaF6vOP/GuJeQhIk4rKmmVOOeKV++5M8QTy7lfJRNs0wXPP93d21OOpd6DhSeTSSGNvXXSkk0haIrdfR9yZTn8Jaddy6eYZ9KQeWsL3epaX/uxY981+eJZFLWv2MiHCWQHgbqdZTzrZWtuWmth2mB/+BkbY6RNZ5jSnQ0yBFeuf6nmMR/qbgQXF1+8NYrhvdXWUJI/b2nuCpeNkN1Lvlzp/7ACCmkrRWbCG3JZZ9pVe65eu7MHnYeM04KnvhKGt5+aGBOqZB/lgveMearCYb1PJcX33pwwZzKeyURro96MYTqLN7Wz1d/55QB7XP9nk+IhtaBaY/ed+281l42hQBishcArl5540gpm8s+4zHV5krpU3XAC9cP7uvPUGu2I0eGBvnSYmfTOOCEwFd8den1dsd1JapypfJdxRrj4N7xlB7b8WV7Ill45tW3DxXZFAqeFDxpvmNJ+z2+Ym2er2RQpfQk88O2vrr1575ceOjBRSM99sTKgAJHT1iquPuHCyzbI5DSw4eeghA0Bt1DiGhsx5Ptxdkd97LIvSo1bfBi64fHl3qcf83B4KjSgTtwtKboqoKKexfvK6alyse7UvN4d97gk9NUgNEril0zqsMD3HY9qccGUi+Yw3fDK+ZSdA+Lr3vtw75VIU4+JfjQj1MVhULLJq2JyKw+aYjAMg9Xeia1qfHMhyBrK48urQ247HxltNdSVx7dsMz2QB9om+jj0Fg+VWpr63r6irlELvfNEJM6V/tjwBPP161bJ7Z82Hc96DLLIVp4UgXASQhNGUX3RBXH86Rtu7K6f0cxVxlMJeJaR54gR04yOdqt76OCyMovMU7nhnsOp0zbUo6mDIBLX4/vh3T0gzkRvPmK3+/+aBX5Y3aO9kVM67q9efNmLpLpWzQn/YCTuMVYTAMmrUMjxHVy6b7lOmpd7tfLvZoXVwNTtX5WuP8QK9zbxVT11Jh5q2WX3Wr+6ApaPzQ2zeH5TM+nLYrq6Lm01WW+qelOwqbjyySa15T52StvzJaCryFTOpI8gB6ItI82tAFlOKQVvK9Ztsrs39xmnqqNNaF0WfqaHzCeyDKeLrH0jZvwrLGQE0KxzMhI0jy4s1Stmiy0rF78BNom7dfnIvrwFet/8mTTww8/zOPUEQ3GaKlEU3vHYlBF0sdeXSuBBvxAI9C9L224POLoV1q3LsHL8a7Rq2JUQSPjfrwHsqseu6P47Aqfc88OLawr5vXrFkCs9oN1d+XaL1yzc+dOwWPqT0SUIU4tXrxYJLL5y2kwLRXCfoAkAKeorXTUFK5ts0X7H19cdWsTRhvlVBpNdzQQJFbAfeb2jYpU38uzK8vu6EmkM5iT+kg9D0bgwA9cCNOEIpVYuGPHDt0hxKtEqHY94OHDhw0lkvOJy05gQqW5J1m4WEn7Slm2TVqRN3a8P59NEJA0ULuRXym3xiaKNRiE3z7n1WWkXduhwBU4BbIoPJFeU9rqmJeJzHJS9tq1a0n7wQKNOLR8+XJyCQbM2BK6LJgLi5MGCtylJLdo00Tg1VUHH1o5eqw6qVNXzkhM8wR+fEghcSrHTbWw67ElAC+D6B24T0/zXeNQnnafMkuDjI6ORu48oA01urq6uAbP2Ezink7AQ8l4bJF4tiPs0UGxauaJtmofm7gQz63hhiBulU1aQMkvzv/Pgr221YU8U1Hew8L59CV0v5wbLYTPNE0e0qYeuXRgouox7pHUbiNUay8QVFgBOvnS8KY1w702m6ooO655c9J+NPHI8Zq6/sQjn4FFldZ8OB+5Z1BHRngIPJRcX7R1/tA4hULBcHTw0b4W4TqqiIIAXa1Uea17f+7Tqf7mBJ960yErvY376mltjcmKgcX52bbuS6zRsrAsR0U+3obmnHripgi8mDt3rlY2aT+ueV6pVLhlWgO6M0VWLxQkSsi48O9OPXWtOeCef7vmO8z6xwZm/3MTk+XO83av9Fjqrsqj15H2vXqagLk9X2MwTatMGLu7u7UWeBhyY9tJxk3PqXlBkuSRtGHE803LYuzoruY2NZxD8nX+TQw0Q1GW2YMsdK9TFkob5qTONnnlIxnTtnViRhgcneMoHx5uIJ/Pa2XD4+hcR7sANPQAeMmGz5w+QhyLKvHOBQFp5W+45KUbnBFvWptko+1ylv3y8yx9869Ycunt0xIAiZ36bu7xm/UeQafIlOMw7XlGBsu91ape+Bz+XvfX4KMGvSz3dPcBKGWLfrBwiDquzB7b3sqGaoaY1tYR8olEo5kusukcDJBFi7VKmh1/d4aLDYvO62m9YRWf3N95rDE4a4APH+j61gtPHKAV7upKaYAjTdtR9xmbr/FMf5obds78U+8z66/3M2v795n7wW/GZJZTFbvis687L6+x4fMsEBebK8rr1dF3t1N2N8Z8ichnhuBl/4G95vBA+USuuWUuxWgk74ZnmapZ1HLqAk5VeKoAAfboUXm2ZdrfYf/OL81WSlathrwu7yewea+UTx3Y+5fNgxFGFqQIXMSAq2KxSLtuv3Pbll2aNpDeReSzbZO7LOFdCPhQhCld5ETFhxfsttJVLFCkIY6ywfyP3n2zU78KgAeBk3Kb6BRswYIFyjAoO+D+nt89cWJkoL/HgdsCbRTclPpp3w27ks1JFT/5utgFaZjKt6f5z4due9OGd3Np7mp1eNdTjxwKwdcF0H4+DFLq2LFj/tDQkI/w6zmO4x1+fetu2nRQ6os2e8+/9PTGzqt2VY20HQhwkSv4YibSzv3vXL+tx2+C5i0drN559pevEx5g9GbNmuXHND/Gc9CKSqPmUQuoxc8/+sKNTfMXrrAGy6naQH/WHipnHLNmIAU04H1FeGoUnD7JRtYbeEV6QOeUYRKiH+EZjojrR1awOl5Tby6MhDRSaT9VKLmZ5plWtqXNqp06sXf7jx/YkclkBi3LojSVfKUTaT/uAuI5Dvm5xOChrpGOa25ahACXcmqWgBnh9D2hZIBO5/eUvxEAgfQbV1hT4oAJbV1Jo5SUU19fCd2fDtZ0f7RxS/gFnQP6IpWSIpV2jGzexehDe55+ZIe0zREhRBXrEfgtN6SOirTNJhEgaY0M8PLBff1tK6+eiy9SBJpO5OgMQ0FTQhi4T3o8mdST60r3gu4TkhsJn6owUqhGvc0FniUSPkvgW3zDkikCjppzjFyB2DLS+eJjb4x2Hz0L4BWANgHeqdX0RlnGwdYL9ohi48aNqebm5gz4n0+lUiXwrdS8eHn7irs33ISA1aRsy/Ac04AT4DpnjTYjgoe7LBFRhhNNMHm49Yk4FZ9Vb8IQ5g29sTUyGXBRjex7/ok3q71HTnmeN4ROw01NTRXwvYbNkquCc0g1DjwL8gZj3759aUiZRZQrQGoKj8XmRctnLbv3oeu4kcz7rk0kEYjisLgRbQ21SjQLfK5TvvC8U42xq6oLh9MebPVJaOoMKyrXqXX99hf/snoOlwF8OJ1Oj9q2zq011xXtM84555+INjjvZynkOnkMUqDTBwiSz7d1FBfe/sDS0pKVC7WvIqDhDwdR6hI5ASSwihuKpJATbhVZtMAFHTGzoa73j53449P7q2f6qslksor5RjD9aDabrZXLZdo8eKyRCYwHH50Ms2At0KLNoOaggTwEyOE+iz7pmavWNi+863srRTqTJQQ416bdsnYbgRXCA/w4VbRY4eEQa5xum2d6hk5ve+VQ97Y/nUHTBXATVKvRIoXbJo0T8LqHOVfT40ooBIFPgm9p8D6HgbJYAwSeagIWMeZ99Z7ZM9bc1J6dd1kr930OEjR2qlIFv5Ro18LqoOkZeSnv9Mnh3tf+cKTv71sGEli8GM/F+DbmrSFYVkFb5ODMAo1dJI4+myCzmyp2i9ACRCHy/xlYQIOHMGloKAXT0ntRWnJlrrRsVSGzaMWM9CWfKhj5QjaRLaXryrAqFmK9V+s9MlTpOVLp/9uWfm+gxwVoHPV5RAcNHOOauVwOaU2N9o32qlWr3D179nhskpR0qh8XopMobYGwZiNBwmsqFFALERsPnjLBAlxjfg2MKlGAtOkBtItpbCrgOLKBKmnchcadyTQ+HfCRp9AeCAMlWlpaUmfPnk1hEaVBowh8ClZIRFZgjTgRja8giIIgGjj6SvQlUKRtF9qmwEOA7bBS2wuFi4S+MPAxISILxGmkvVGsJsKqBQBARGM3Pna02OoaD0G62PQ72Ds7URun1D4Oe6Pka6yrvVDw5xTBGumDFgSTJzH5GPBYGwIsGLfRIeCwGiV/bkwArWVY14N1JTvHHV6Uosb66kgAog65UApkzaVSiXYdrahtqO1UwWO6tiG803N639za2lrEEUa0fpLQtqGUulBFfiwh6kkctKYFIUAhqDxrZKdU8x0dHTnsGTJxwJSOsEZg/ORK7JxcTx4CEQSKKmusg0i4+IL+ZMH+P5b/AnzHa8MtdL8IAAAAAElFTkSuQmCC",Grt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC8AAAAvCAYAAABzJ5OsAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA5kSURBVHgBzVl7jF3FeZ+Z87rnvvbuy/au19gGmxQHG5p1gLqN5TRN1aZS06ZCaUKqUqnqH7WqVDVR/iARcksjpCZCVO4/FbQlFZFih9KWBkhNwE54BMgSCGDs2F4be71r73v3Ps9jZvL75p6ze3fx7l4SlGTs2fOcM7/v+37fY+Zy9j60Ca0L1Qr7ONfsA9xityjFOphmGxnHX8045+wSjpeYYCfw+itCsLc3Zfkl9nM2zn6OdnFO36ostl8rdusKr+iWORbO6cTi7Gkt48c2l5yn2c/Y3hN4rbV5//RUdIvnOvsVY7ck3zAP9LIPmvc57JEeWybVi+ejDmN/vbHIT7Xcfv/B/2BqqthrlfZrzv/sXQ8hCROtsFabUr/rnpbqP2WnOPRrnJdZm61d8Pz1kdpGL+s+BAr3E4mhTTNaa4VLoenY/CDOmeKLE7ReCzNkYZx5lmJQZKDRUId/cXNPti1/aAv8axdrGy3feohp0bdIjuTIzT/gW0YawZrWaHmfyGMmTSmkkvfShmvF1Vi9UfnL2wa6L7E1zLgieOIrafjZ01Mbi/ncv3LB+5aMSj4bS8mFJbQMAz52/OlC/9EnezaMvON31GuWjiMhMr6cQD+3dXsl+uTtk+sHb61hqFZaC6vFD1rRkB/Ug/Jf7dnUM8pWEWBVzR8+erbjmh19jwD4hmVCaaW0YQCBzh/8wrU3vTPc0Wg0WEMqY4h3z8RZxraZ5zjs1cE9E/FdX74gleSWsJovc0ES0ad183U+Nnn+4h2fuG17eSUBVtX8cxerfyeE+HTLXUPYWMXcsR0V/+/h3r2HH946W60243kbwYLG24LrfDbLn7jr4InCzl+v0kgrEZmn0+MUGvrmR67J349rGKqZMNoBL/7rjfMf6Cz1/tvie4agWhEVbEv33fflbVtee6W7FsdNt3uPTULFnb7PX/6Tz51r/PFnrmjJWvhPDi6gEMUb85W/+f0b+4Z00+RLJhJLtNKM49RFPt91b6yUpB5Rl6B1bAwdbfjHL1038OpLXfUoujpwpFA1NcXU8DDT1aqhzPJmYa7Zep0NHvn61vh/vtkdyFhHUqpIKhUrFmNOFWsWi2z2zgQT4WcrgifJbr/9dvHom2MfkZr1hlKrKFaagJMAIS7UE4/2bHlzqAcT8ZXMpkZHWf7QIdY5Ps68O+9ken7+qu+R4PNBwD525OvbK+eG7XojQLhH3sW8kubEBTxo5yOvDA9SPGbLmMJbtM6SF8Rjp6b/3hJiT1qY0OMoioygn9r/6b3T0Ka1ClV4sciKR49CCmWsMLN1KxPr1q34fgyl5Ysd6olD33heoDhCgNBN92nOD729/kfXdx/ADclanFcsE4Tfd/hovxL81hBmCxWCCZTdIO0jq1z7Dwc+SM65GnDjaiL5bHpcwydsUEhVK1bj0UfWNcJIweKgK1lb45zow3fu/8qhjnvuuYe3UicFzxMNi471fduIHTRYEec1cT1SjUaobh690M2T+mbFRpqamFiUBX7BwpCt1RpSsk8+83/baC7DfUVdxwBv/O6mfb/7G8ePHxe8JeTYTcU0KbNt2zZh+7kbAww2UiHtQwAuQZnqC892NsDPtho5aQoeY7SUaw4h/mei0C5fuWxl1/dJ206gcaEMUVx767Fjx0zeTvDqJsZEmDNnzlhaOJsl0QVOE8NzSAv1MNRbjz+5MVCKtdUIfPouzrkQbQ2rQ1D57JO9AbiK+WEDJinAUQRiIrMDr9j79u0TacgUKYd27Nhh4WAhhnQRYDIVWaARhQoaV9dNXC6yNuM5adrQhVoZCdKy2hpHGPvP/aSjHgYanYWGPuAOhU2lfMJbLpfTcL7I+RMnTnADnrHuEDyPUGoZvkPser2u++LIYe020jpiuDmdnmbc89oaRqoZmJ/JBkGgF/ILhWh0xa0uwgcsC05rJ1KYxEQ9ZjzWSd2iYsnDMBAhaKOj0Gq7+IemKTnxUokpxHrmuu2OZH4cWY2goZntaicjlGXZpihJrG5ByanTatGScnk+n7coNFF4NBKDdUEY6RoKLuV4cdsIUHxRhqWmrlyBiuy2hhGiccsOAZ4FkYk6GlGnaQHdLCAGBgaMskn7adYyvVKp8Ea9MWVeNplVqQAeE0aRHnG9Omu3ATyDwNQou/I2wZMWx4pdFVJYFEealJj2er0xSRhHRkbSNYHJqC3LScbrcVgjrhPnKMYis2qywIud6yeXF0YrNdHdzWp3383UyAgLHnyQsTY574JuJzZtu4IyhBRnNG6cFXgQNKZyuZxRNiJOkzY0CBdmMB6yuYkrZ2PKbMpQxwykL/zoxg9fyDpOe7SnRAVHnbnuOsYLBdZulPLhG5f6N88iylARqOM4BnUYZVs1PzM5Wm3mD45431QS/Ukv6OHkpZExM7iZ2ZBmmaLSYK7QVeWOQ4XSmiCIKs7evazjpZeY6O1FDFw7SeENfdp2q4EWKCY55kSuYVyG0B0inrx48q3z6efTMaLlhukvPvzAKQJsqGM+APycxwFc5l96rznpiLWpIzo7We7++5m9axcrPP44U2Njaw1hOdfl/3zTbw0hQ1AtE9OcslkWyximO/fys5dZsipemKel0KETNX7qjfrc1OQFKMvUFpIJ+LzAwZbfuWH3sJfL6QiaWRXJ8qS0RoZFGNPDfmHuTK5UwViyE6zOQV0oEJyZvTJ26o1vH5lJMbJmicBFWvJSLxQKtFqRbz396AtEHSoTFJkRH8RyOaao86c79z7Tk/WFXGVhTLG9fu+9TL3zDit/9rNM9PSsApyr7nyef37w48/BV1BU2ZGGoiQH2ShZci2HX/7eW6xZDqsEa7O2SXfBtmzZAoxUHXA59O8PXICDjEQ4lwIC2G6k0bnjRZOWG9y9eecPSljCSXZ1ClFyCr/1LTYH3qvTp1dMUqjjVXcuKz51828/hazKuJsNhZuJlWVHSggESy5r5ercsfu/dDoBvyCAifNJ+NPnz5+Xs7OzEuk3RkaNf/Kdx15RpkSA5oUTM9eLhOeTVuLv5krTX9yy6/murM+jZTw0jaiI8Cj6+69KGd1EAeA58Ye7PvrkGGon4fshxkRQVCgtJw5RzMLZ5AsPfvUpYyD03t5e2aJ51krOtESgjGKPvvZisGH33ozXua6X9jlQXWBhGXKQEPaU/Cxy2De6+s/eUZ26xpHSjpsmXDMUgQq6AKuN+fm537v+tmfKoKKVLYROrhDa+Y7QyuZjy/Njbtlq4vTrJ14+dPBtDKME2ajVakEiSLNWWAZ+iQDTJ9+cHdj7B1uZY9vwHUrVGi4MASJGwtSigP9H16azJ11/ak9U7+6xLUdRRcm50YxOPkbnHpw47/ts0s1UP7Pxhuce6h44R7a3crnAzhUiJ9fRgACx5WdD1DUyatTLL3zl88dkvVKFsuqdnZ3YFmpErGUpyJeBJ9BE0Cw6sgvLr9+1p2fwrvt+B5ooqFrVDirzdjg75QWVWVfWKm4cNCwVh4IWLRnkgZ1z06UPzU/19jXmi9sdxzohdXjZ88vPldaPny92zQVhaAkscmwvI62MH9l+PvKKpdApdkReoSu0Mhmk17j6wwe+ePTy0PNUIFXQy6BMfWJiYonml5gZa0Rx8OBBt1QqZcD/nOd5eThSrnvn7q7dB762D/m4IGs1OyzPOkF51o2q866s1xwVBhAgFuicNlVRz2ILEGEERjBHlIXYvIKHCbiMI4Xtos7zY+HnYqdQDN08wGcLsQ3KIL6Uh7524Pj8ydenUZpQSq0AT7Wnp6eOxVLUun+zJCBjjWhKhZmZGY5sC4+Rpkyuj4/KmZNvjPd8+GMbGNWpAv9pUwhLNM0pjArkFAvZl44o+HANpMgNOLcAVliKwQkFKlOKJpaXDa1cR0A8F/lSYOXyEYcwWLGWX/2nL3x/+q0fzsGShufEd+LL9PR0rJtb0kv2+dlVeE8LDxe1Thb1RY60j2s/P7Alu+1zB3YUt994bVSvW6pRs2W97EQ4YoVuySiwGOp+ZHRkNmAX6VaxjYBlYT3hStvzQZcsuO3HTh4cz+RiLFbk7Ns/Hh5++KtvVy6fryUOWsX8Vd/3a5OTk610uTr4dGc4sQjxP5PwP+u6bhbPM+he9+6Pdm6+428/BD/IaVBGhqGQAQQIIUAQYNUeWQgrzQkETQY72RDA9aTwPADPwwoZhagiw5nL0+PP/PfJi/9/mLYcokTbtaQTbYLkvmLLEuNVQ1siBIF3Ojo6vLm5OT8RwncchwRwYBFn0yf+vL80+Jt9bt+WdQoaB3iBUhB7fRH4Lhd+UKCfdCzHJepoC1rmcFY1OTo78tThMxPff3wC2o2RX8IEaAqchGiAxhEKR8muktFXi8sisQBRiAryDBzYB3AfSczD1gTdsyCE1Xn9zTn/+g8WMptu6PR6NhQRRbI8W/SQgM1vUbpSwf5HHDbGLs5UR8/NTz//7StyetyEPSiJjkjmHIEorGezWYrnRJtgcHAwGhoaitnPsMWd7kTZiQDU/VSQ5OjCEjaFawgBZtjpysykVdzDCtA2CweqzXFOxzTF0zEGHQ1wauB4HYGCNB5B4+FKGm8HPE88m1YuFj5kd3V1ufB6F2b2YGYDPhUAYc3C0cKRkxAJ8FQAAm2cDe/Q6oxARQQc2k55HrBFfseJcAbKewbfIkRqgVYamWjU0u2k03MBgIKEaPlM6mwLGk9ARlj0h1g7h+k1dqnlkSNH0uKLr7b0fE8/ZSYCiBagDiZ3MPkS8PANARa8a6FDwGE1Kv6iFgGMlmHdGNZVbFk4fF+aXrrBmgpA1ElLiVKxWKSNISreaT97PXXwmI7rsFag+/S8hGxZwBZG6j8OtG3ptTZw32chFoo4aM0IQoASULmk55Oe6+vry2LNkGkFTOUIW0yMv7jWsnw0kydABIGizhb9IBXOUOqXAvZXsf0UJdYANhEG1sEAAAAASUVORK5CYII=",zrt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC8AAAAvCAYAAABzJ5OsAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA8ZSURBVHgBzVkJjF1XeT7n3HvfPmtmbM94TWzHjpckJjSJmzoxiFCBCpXVRoiklQC1tE2kCkFVqTQiRqURlYJQWtRC2qiiNAnFTYCACeBEHlvEhJhxQryQ8TJxPJvtWd+85b67nHP6/efe++bOeGycpVWPdXzfvWf7/v98/3LOcPYulHGtW2pVdjfXbAO32K1KsTam2XLG8b9mnHM2gucIE+wEuh8Wgv16ZYGPsHdYOHsHZaisb1MWe0ArdttluujUGs3f9MPi7Hktw++ubneeZ2+zvCXwWmvT/9RkcGs24zygGLs1nsM06AUTmv4c+5E8U4vqud+jDmP3L2/lA6nP7z74lyYnW7ut9gc05398SSMkYSIN60pL6ku+aam+JTvE1zZyXmFXWa4WPP/VcH15tpB5HBTuJRJDm2a01gqvQtMzmhC/meJzC6TfhRnSHGfaEgyKNmjU1/4nb+4qXJU9XBX4V4fqy6289TjTomeOHPGTm3/At4A0gkW7kepP5DGLJhRScb+k4F1xNeY2qn9y+4prRthv2MbLgie+kob3n5pc3loqPsYF75k3Sl9hRs0uIXa8TdHcAM9j+7lkbPQYdb3Kp397ZdfoFVa6sua/s+9M26pNPU8A+DJ6z1ePF3pO/u1aKxjPsHe5yEy3P7b+78+4pc11A4zzsYmzQ/d9+Pb1ZAP6LYEnzf9sqPZZIcTHdPx+/Wu7bnSCiYzVdj3jdovpp9xRpupj5rco9DCR723OcaW2cLI/AuC0mDZZPskCp8s/ddP3fgVlwSSwOUr9145Vpa/SVFjfBIx0sdniRXz32JsbOtq7/xCopQxDoVSoCbjddQtrueOxSFtYcPalz4Q0T37jn7Hchk/PaRJtlRej93SbDiqsfuwRxiZJoF4zF4Gf7fs4Y+WTGTfwlbAEHJcFC9D3PHds7OCHtvT0x9rXlwWf8JzAl0qdXwqVkgoaAHjme415YvvnfgAQX2EsqFwCPGkjoAuBk0AkGO0eASfNmx2Id7Jed1k2l5PCigxbFAqfwOcji2k/beum8z333COePja2Q2rW7UutvDDQrheoWt1tSt048ySrvbLbgClu++I84JdrU/XRJvDMqo/MA24ECyP3XndruuH72gtDFYQKwZtvfeLw4C3kj9kCmouU1s37nj17uHCydwfQeSil8vGj4XnKdeumQzjRz1xolRZu3fkUgPxeczL39W8s2rYQeHHb7nnAaRy1UalW66zeaDBaP8DOo6piW9t9hO1KnKcW/uXv7OtVgt+GsYpcdxhK5gWeqLnunMQprialfvQR5g0+dUlbApwMdyG9EuCNgcfmdq7R0E6+JLkTKscW4Inxu1sfePhrbV3e+PTu3bt1IkSi+SbX25b2rMN2KeyYJM5T9aAG3w/UYsCJHrVXHloUeGK0vwk47UKyEx4W90JfByHWxNq+jDDctPOD2w8cOCB4Sv0iTZl169YJO1/c4oEuAVUon560C34YRp3I5aWAEzj/3A+NAbbufPJtAY/4XzLffUCFrrCq1rQ+VpW+YpJl7Gv7+voM75ME0Y7VbgaePn3a0sJZLdE5pA7IPwIaLDUnTbBUaErTgXhc2PK5pvbS3qaw9a9Y9rqPXxE4CZ6UAE6CFOZB27aUGrmeMvmPyG0ivDt37qRkKjTgE/ezadMm68SJE5bkvFOT3NGOcHCeh/ggmbYWA55de68BnhQCTt6GCoFS/qwBe2EmUpByR9BnL6mMOb23sJlf9+F3H3MqVVbACjFdza4j1wHQKEHC7udp4yuVirFN+pYYLAdw+mBJxq6B1qVJwFECrYUfQghMGgEfQ0C59xIfntZoUog6VL/xU8H2vpYPrFwuiFo64x5HTaWFG7P1wpfv40wuxUIUWgx4JVnMCs4tGmS5rssThduxFFSJTyJkULTSJnNlYAq2kKKDhB1ZidapLKTDQuC0I1ZrRIfvP/x37P2fefBn3eu3lCMkscZAX9IrJWm//PbXN75w9LmNwRIpfVBUSKxuKWXhXElnyTipI3YkRqttPnfC4aVSyfIppgI8QgLyC1AmhAAhuE+aiAsFn4X+nYCTtyGqBGN9zCvdwl4bZOzgwYOmjygUPeyi2T0CQtHHeIsodcaS0fwIjjBSbXw8uKKlIHzNdFusWLGCDw8PG+2nNc+r1SpvuI1J4TgdoJo5PvvIjwJMgUnNwpTbpIEv9O+H9z/J+vYJtu8rf82srtUX21avH0e3zUQ70mhT8dGBBubIjS+Pogo4D4OFiySlK9pyBhmoQQbBFI0i4NFwzgl8OuvmbujXs7bdaigiFZFPwNsg0smmwSaF/Du5SQJevW43++S9f86mqvXaki13v3HzX37obMuyVVXIzocOPb85NG4vtiUVORBq4ya3h/tQEQ5FPyWX8DoSFqmikxrXnudNFotFUavVODwOh9uMDBYvDC8Mjaw8fuFM5/I1S8zuKtAFewplwPHqJm3IWKu/+JxJaxONv/ryAKsw58KOL/zrC0YToENIB6yIKNAo6ABrwsnPnJjIEdM5DBODOYIWM+C1ZUsf3s1ICAnAXzNmdnpiFMDN1ITVsID+S16ocWJkeKy0bKWMwGthgkWguU/kZ5fPDKvVfkNlH9o12alOjnqRzGQzHlEhTmxFdJhVkePQRO+INnBsQnNKypRCIk5GjcFs6PXjZxPdJUq0Ux9M/fk3Hx1YuW27WRJ60vDzAvtIzIsMKk6gFgamaBJtQBobBJbmMZbGwSJDChfC6JlF8drQXRNvVAyK1jH0InkwSJCjR2b8xsv7z6emM0XEqUEigLo4cNQtT06cM1kl9hSTyThwNDuSf1+YGcrygHFoxjBRK8NvFExmKCPVU9SkUE/vnslYFfoMFpEOUEw0B4cmeIxHf+2buZSeuTA2cHTvnukEY6Qbze04NTBab2lpAUUCefz5pw/dtOtTf0Cf4ToZTRAQOVl0bFs0T4HHUY0lmcrQYPHs01+/q3FxeJldbKn27Nz1EvWpnh8uEnCyvrA244w899T2pE/X7Xe/EtbrDnMot4GVKOOulUUSWVwPvnzwOMkVAzdCEtfs5PS0Zs0aPTMzg0NTKPv//dFz19750eFcR2evJF8vzRYYDabzkCZw+Pjt+Pztfuea1//lwY+13vDe19bd/6VnR370xNahvf/xAer35n//84fT44prtwxsuv/hZ8f3P3P9+Ree2UnfluzQ7JSxMdhXlpMZKFmrVfq++uCpGHxTAGKMiIOUPnv2rCTwCL+h7/vhyR/vOUwBIyDKUNCIwZPBJoVcZRJVl27/Invme99nO+68i2XX3DDiYVxx3ZZhavv5L16eV02fFWtHaDcLG7eZC6YffV6y+wDenKBgApQa09qH/u2RH5OJUO3u7pYpzc8zWBVLRh2DX37rH4c7tm4/1nHtuq10oiIu+tzxMuWT2fK+5IQU3QwQlbyhZ039yIYxdug/j9zhT5xvqQ8c2bjrjmLzIJ6U9605zw7tqb1XNuoZ9/Tx6z5wY2SHVV6axS4jNSAL03Jy4NXjp/Y+eZHwEK7x8fFE86akA086xyGh7OmBY+Xe3/ngdWBSNnTr4kLnb53czI6tyYRTWR1U50Yq3whCdUmxwrqLXtaZGlx16+pa4RN3es22pK5ojftMos/K2ZY/uhO6sx3vcfYXP3hz2vZ5JhtKP6i89A+f3S/dag2cdTs6OnDIagSxgnUCOA2eQFPWXkAlV9Laufk9S2/+08//rnQbHY2Zizm/Us4Ebs2BI0b2IwUFTC6Esixbi2w+tPLFwMnkQu7YcLXIrvxA6DCwTLJnWQqpB642bG1ZjsI9N1xLiBkQeOFCLYzLtLT73M6Ujz7+8E9mTrxyARQmLVVAGRea92JmRAejFHj90EMPGaNob28nCb1MJtOYOn5k+sg/feFA0KhXFLdCLRC3qFpUrQChFKYhVIgnbXnoB3Tm5b7nMa/hszDw8bvBfN9lfqPG/XqV+zgP+56rfTpo+x6jU1oIV0SXBV4F4e7Rvzk4ffxIGcB9wkF42trajNZTrn0ebRjOiCZVmJ6e5pRDOI4j4H2sxvQ4mx08Md16w3uWaWHbFPXNnQpCObY7ZHgK25H05Da+0YURp+BMAZUuv+KIRCFJoE0g8IgoxFBqRqkXdzISyVf1xDcfebE+dGYS61ZzuVwdzzrxZWpqKtRRojPvnp8twnuH6INcp4jBLXC7bfD/bfnO7s6e9+/a1LJ6wxoZBqBMdJaMIqmljUA26ANKIFnUgMcV/ZK4cSN6CJwyARr00QSe6GMWRf5SPnn03OhPnnrdLU/NQGllrDeN5Sv5fL4+MTGRpsvi4FM3ZlbM/xxqCfQpoa0NlZ7FlvVbO5f//qe2OrlC3gwUtiKgNLsgAcBfkzzimxFMUjJJOjZIAdqKAODZuDhaHn/xh2fGDx+g1LkO4FVgmLUsqwq3TXxvsMjbKLbgum/Ri9ZYCALvtLa25qCFIiYqYeIigaddwY44ve/76LK2bXd151au7zLgkmTMJIlRZmkyF0pekm+0KAzVuzA0e+GnT78xcfiFyWw2K5HyNjC/C8ErqFUorI6I38CNRoDEUbJFboqvdMUt4h0wAszOzhawSB40IE+UgWbyEIBsQrSvu7FYWL+1kFu7paOwbEWJ50o5u9SeNX+Jwl9NVHXGU74XukOD5drI6crUwb3jcnY80Sb4xIkWPkDXQRUX/K739PQ0ent7g/7+/pC9jSvu5CbK7AABLhQK+Xq9nsXvLLRElCK3aqGvRULYts3T8+IbwzeW+o0s1aTWpmIOExABukECQCEueTg4jACOw7+cxq8GPI8tm04uFiayOzs7M9BKBkaUBY2yMfgMQNiglhXvVhLokvl1DNoYG/oqSv4INIAG8Ia0A8RrL64mmrIoGBkobxl8SohkB5o0imsmVe24GgHIxQJgeu7E2OalIFRx6PdxdvaTd9xSS1z2JskXT7vGtwx+QRFsLn0wgmBxB4vPAw/bEDDARPs6VSV2jZK/ICWA0TJ2N8TuKrbIHxHecdHz/wCWCEDUSVKJdhg2XQx1odIZeClVGCA9l8Bz0Hdqb+/q6mrBFUY+Hu9A25Ze7A9s73ZJLdJM4qA1IwgBikEV41qKaxHeo4AzQy4NGOlIYiP/+8AXCMFSQvAYiCBQVNmcHSTCpQ36/xbs/8fyP6oaQOYVoYvQAAAAAElFTkSuQmCC",Urt="/airport/assets/count4.577debcf.png";var Vrt=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),$rt=function(n){Vrt(e,n);function e(t){var r=n.call(this)||this;return r.map_=t,r}return e.prototype.dispatchRenderEvent=function(t,r){tB()},e.prototype.calculateMatrices2D=function(t){var r=t.viewState,i=t.coordinateToPixelTransform,a=t.pixelToCoordinateTransform;FZ(i,t.size[0]/2,t.size[1]/2,1/r.resolution,-1/r.resolution,-r.rotation,-r.center[0],-r.center[1]),xPe(a,i)},e.prototype.forEachFeatureAtCoordinate=function(t,r,i,a,o,s,l,u){var h,c=r.viewState;function f(k,D,G,V){return o.call(s,D,k?G:null,V)}var d=c.projection,v=Ttt(t.slice(),d),p=[[0,0]];if(d.canWrapX()&&a){var g=d.getExtent(),m=nv(g);p.push([-m,0],[m,0])}for(var y=r.layerStatesArray,_=y.length,x=[],S=[],w=0;w=0;--b){var E=y[b],T=E.layer;if(T.hasRenderer()&&P8(E,c)&&l.call(u,T)){var C=T.getRenderer(),A=T.getSource();if(C&&A){var M=A.getWrapX()?v:t,I=f.bind(null,E.managed);S[0]=M[0]+p[w][0],S[1]=M[1]+p[w][1],h=C.forEachFeatureAtCoordinate(S,r,i,I,x)}if(h)return h}}if(x.length!==0){var R=1/x.length;return x.forEach(function(k,D){return k.distanceSq+=D*R}),x.sort(function(k,D){return k.distanceSq-D.distanceSq}),x.some(function(k){return h=k.callback(k.feature,k.layer,k.geometry)}),h}},e.prototype.forEachLayerAtPixel=function(t,r,i,a,o){return tB()},e.prototype.hasFeatureAtCoordinate=function(t,r,i,a,o,s){var l=this.forEachFeatureAtCoordinate(t,r,i,a,DA,this,o,s);return l!==void 0},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){tB()},e.prototype.scheduleExpireIconCache=function(t){SPe.canExpireCache()&&t.postRenderFunctions.push(Wrt)},e}(wPe);function Wrt(n,e){SPe.expire()}const Hrt=$rt;var jrt=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Xrt=function(n){jrt(e,n);function e(t){var r=n.call(this,t)||this;r.fontChangeListenerKey_=Ks(Ctt,FR.PROPERTYCHANGE,t.redrawText.bind(t)),r.element_=document.createElement("div");var i=r.element_.style;i.position="absolute",i.width="100%",i.height="100%",i.zIndex="0",r.element_.className=QN+" ol-layers";var a=t.getViewport();return a.insertBefore(r.element_,a.firstChild||null),r.children_=[],r.renderedVisible_=!0,r}return e.prototype.dispatchRenderEvent=function(t,r){var i=this.getMap();if(i.hasListener(t)){var a=new Att(t,void 0,r);i.dispatchEvent(a)}},e.prototype.disposeInternal=function(){Lf(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),n.prototype.disposeInternal.call(this)},e.prototype.renderFrame=function(t){if(!t){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(t),this.dispatchRenderEvent(BO.PRECOMPOSE,t);var r=t.layerStatesArray.sort(function(d,v){return d.zIndex-v.zIndex}),i=t.viewState;this.children_.length=0;for(var a=[],o=null,s=0,l=r.length;s=0;--s)a[s].renderDeclutter(t);Mtt(this.element_,this.children_),this.dispatchRenderEvent(BO.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)},e.prototype.forEachLayerAtPixel=function(t,r,i,a,o){for(var s=r.viewState,l=r.layerStatesArray,u=l.length,h=u-1;h>=0;--h){var c=l[h],f=c.layer;if(f.hasRenderer()&&P8(c,s)&&o(f)){var d=f.getRenderer(),v=d.getDataAtPixel(t,r,i);if(v){var p=a(f,v);if(p)return p}}}},e}(Hrt);const NPe=Xrt;var kPe=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Dx=function(n){kPe(e,n);function e(t,r){var i=n.call(this,t)||this;return i.layer=r,i}return e}(oz),NW={LAYERS:"layers"},Yrt=function(n){kPe(e,n);function e(t){var r=this,i=t||{},a=Tp({},i);delete a.layers;var o=i.layers;return r=n.call(this,a)||this,r.on,r.once,r.un,r.layersListenerKeys_=[],r.listenerKeys_={},r.addChangeListener(NW.LAYERS,r.handleLayersChanged_),o?Array.isArray(o)?o=new Jg(o.slice(),{unique:!0}):hc(typeof o.getArray=="function",43):o=new Jg(void 0,{unique:!0}),r.setLayers(o),r}return e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(Lf),this.layersListenerKeys_.length=0;var t=this.getLayers();this.layersListenerKeys_.push(Ks(t,Rx.ADD,this.handleLayersAdd_,this),Ks(t,Rx.REMOVE,this.handleLayersRemove_,this));for(var r in this.listenerKeys_)this.listenerKeys_[r].forEach(Lf);bPe(this.listenerKeys_);for(var i=t.getArray(),a=0,o=i.length;athis.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Lf(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(zo.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Lf(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Lf),this.dragListenerKeys_.length=0,this.element_=null,n.prototype.disposeInternal.call(this)},e}(TPe);const tnt=ent,Zu={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"};var k8=1/0,rnt=function(){function n(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return n.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,bPe(this.queuedElements_)},n.prototype.dequeue=function(){var e=this.elements_,t=this.priorities_,r=e[0];e.length==1?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));var i=this.keyFunction_(r);return delete this.queuedElements_[i],r},n.prototype.enqueue=function(e){hc(!(this.keyFunction_(e)in this.queuedElements_),31);var t=this.priorityFunction_(e);return t!=k8?(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1},n.prototype.getCount=function(){return this.elements_.length},n.prototype.getLeftChildIndex_=function(e){return e*2+1},n.prototype.getRightChildIndex_=function(e){return e*2+2},n.prototype.getParentIndex_=function(e){return e-1>>1},n.prototype.heapify_=function(){var e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)},n.prototype.isEmpty=function(){return this.elements_.length===0},n.prototype.isKeyQueued=function(e){return e in this.queuedElements_},n.prototype.isQueued=function(e){return this.isKeyQueued(this.keyFunction_(e))},n.prototype.siftUp_=function(e){for(var t=this.elements_,r=this.priorities_,i=t.length,a=t[e],o=r[e],s=e;e>1;){var l=this.getLeftChildIndex_(e),u=this.getRightChildIndex_(e),h=ue;){var s=this.getParentIndex_(t);if(i[s]>o)r[t]=r[s],i[t]=i[s],t=s;else break}r[t]=a,i[t]=o},n.prototype.reprioritize=function(){var e=this.priorityFunction_,t=this.elements_,r=this.priorities_,i=0,a=t.length,o,s,l;for(s=0;s0;)o=this.dequeue()[0],s=o.getKey(),a=o.getState(),a===Hi.IDLE&&!(s in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[s]=!0,++this.tilesLoading_,++i,o.load())},e}(nnt);const ont=ant;function snt(n,e,t,r,i){if(!n||!(t in n.wantedTiles)||!n.wantedTiles[t][e.getKey()])return k8;var a=n.viewState.center,o=r[0]-a[0],s=r[1]-a[1];return 65536*Math.log(i)+Math.sqrt(o*o+s*s)/i}const Jd={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var FPe=256;function Fde(n,e,t){return function(r,i,a,o,s){if(!!r){if(!i&&!e)return r;var l=e?0:a[0]*i,u=e?0:a[1]*i,h=s?s[0]:0,c=s?s[1]:0,f=n[0]+l/2+h,d=n[2]-l/2+h,v=n[1]+u/2+c,p=n[3]-u/2+c;f>d&&(f=(d+f)/2,d=f),v>p&&(v=(p+v)/2,p=v);var g=bv(r[0],f,d),m=bv(r[1],v,p);if(o&&t&&i){var y=30*i;g+=-y*Math.log(1+Math.max(0,f-r[0])/y)+y*Math.log(1+Math.max(0,r[0]-d)/y),m+=-y*Math.log(1+Math.max(0,v-r[1])/y)+y*Math.log(1+Math.max(0,r[1]-p)/y)}return[g,m]}}}function lnt(n){return n}function yne(n,e,t,r){var i=nv(e)/t[0],a=uM(e)/t[1];return r?Math.min(n,Math.max(i,a)):Math.min(n,Math.min(i,a))}function mne(n,e,t){var r=Math.min(n,e),i=50;return r*=Math.log(1+i*Math.max(0,n/e-1))/i+1,t&&(r=Math.max(r,t),r/=Math.log(1+i*Math.max(0,t/n-1))/i+1),bv(r,t/2,e*2)}function unt(n,e,t,r){return function(i,a,o,s){if(i!==void 0){var l=n[0],u=n[n.length-1],h=t?yne(l,t,o,r):l;if(s){var c=e!==void 0?e:!0;return c?mne(i,h,u):bv(i,u,h)}var f=Math.min(h,i),d=Math.floor(sne(n,f,a));return n[d]>h&&d1&&typeof arguments[r-1]=="function"&&(i=arguments[r-1],--r);for(var a=0;a0},e.prototype.getInteracting=function(){return this.hints_[pp.INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(pp.ANIMATING,-this.hints_[pp.ANIMATING]);for(var t,r=0,i=this.animations_.length;r=0;--i){for(var a=this.animations_[i],o=!0,s=0,l=a.length;s0?h/u.duration:1;c>=1?(u.complete=!0,c=1):o=!1;var f=u.easing(c);if(u.sourceCenter){var d=u.sourceCenter[0],v=u.sourceCenter[1],p=u.targetCenter[0],g=u.targetCenter[1];this.nextCenter_=u.targetCenter;var m=d+f*(p-d),y=v+f*(g-v);this.targetCenter_=[m,y]}if(u.sourceResolution&&u.targetResolution){var _=f===1?u.targetResolution:u.sourceResolution+f*(u.targetResolution-u.sourceResolution);if(u.anchor){var x=this.getViewportSize_(this.getRotation()),S=this.constraints_.resolution(_,0,x,!0);this.targetCenter_=this.calculateCenterZoom(S,u.anchor)}this.nextResolution_=u.targetResolution,this.targetResolution_=_,this.applyTargetState_(!0)}if(u.sourceRotation!==void 0&&u.targetRotation!==void 0){var w=f===1?zO(u.targetRotation+Math.PI,2*Math.PI)-Math.PI:u.sourceRotation+f*(u.targetRotation-u.sourceRotation);if(u.anchor){var b=this.constraints_.rotation(w,!0);this.targetCenter_=this.calculateCenterRotate(b,u.anchor)}this.nextRotation_=u.targetRotation,this.targetRotation_=w}if(this.applyTargetState_(!0),r=!0,!u.complete)break}}if(o){this.animations_[i]=null,this.setHint(pp.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var E=a[0].callback;E&&DF(E,!0)}}this.animations_=this.animations_.filter(Boolean),r&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,r){var i,a=this.getCenterInternal();return a!==void 0&&(i=[a[0]-r[0],a[1]-r[1]],une(i,t-this.getRotation()),Ott(i,r)),i},e.prototype.calculateCenterZoom=function(t,r){var i,a=this.getCenterInternal(),o=this.getResolution();if(a!==void 0&&o!==void 0){var s=r[0]-t*(r[0]-a[0])/o,l=r[1]-t*(r[1]-a[1])/o;i=[s,l]}return i},e.prototype.getViewportSize_=function(t){var r=this.viewportSize_;if(t){var i=r[0],a=r[1];return[Math.abs(i*Math.cos(t))+Math.abs(a*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(a*Math.cos(t))]}else return r},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t&&BZ(t,this.getProjection())},e.prototype.getCenterInternal=function(){return this.get(Jd.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},e.prototype.getHints=function(t){return t!==void 0?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var r=this.calculateExtentInternal(t);return Rtt(r,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var r=t||this.getViewportSizeMinusPadding_(),i=this.getCenterInternal();hc(i,1);var a=this.getResolution();hc(a!==void 0,2);var o=this.getRotation();return hc(o!==void 0,3),GZ(i,a,o,r)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(Jd.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,r){return this.getResolutionForExtentInternal(sA(t,this.getProjection()),r)},e.prototype.getResolutionForExtentInternal=function(t,r){var i=r||this.getViewportSizeMinusPadding_(),a=nv(t)/i[0],o=uM(t)/i[1];return Math.max(a,o)},e.prototype.getResolutionForValueFunction=function(t){var r=t||2,i=this.getConstrainedResolution(this.maxResolution_),a=this.minResolution_,o=Math.log(i/a)/Math.log(r);return function(s){var l=i/Math.pow(r,s*o);return l}},e.prototype.getRotation=function(){return this.get(Jd.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var r=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),a=this.minResolution_,o=Math.log(i/a)/r;return function(s){var l=Math.log(i/s)/r/o;return l}},e.prototype.getViewportSizeMinusPadding_=function(t){var r=this.getViewportSize_(t),i=this.padding_;return i&&(r=[r[0]-i[1]-i[3],r[1]-i[0]-i[2]]),r},e.prototype.getState=function(){var t=this.getProjection(),r=this.getResolution(),i=this.getRotation(),a=this.getCenterInternal(),o=this.padding_;if(o){var s=this.getViewportSizeMinusPadding_();a=FW(a,this.getViewportSize_(),[s[0]/2+o[3],s[1]/2+o[0]],r,i)}return{center:a.slice(0),projection:t!==void 0?t:null,resolution:r,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,r=this.getResolution();return r!==void 0&&(t=this.getZoomForResolution(r)),t},e.prototype.getZoomForResolution=function(t){var r=this.minZoom_||0,i,a;if(this.resolutions_){var o=sne(this.resolutions_,t,1);r=o,i=this.resolutions_[o],o==this.resolutions_.length-1?a=2:a=i/this.resolutions_[o+1]}else i=this.maxResolution_,a=this.zoomFactor_;return r+Math.log(i/t)/Math.log(a)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var r=bv(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[r]/this.resolutions_[r+1];return this.resolutions_[r]/Math.pow(i,bv(t-r,0,1))}else return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,r){var i;if(hc(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function",24),Array.isArray(t)){hc(!CPe(t),25);var a=sA(t,this.getProjection());i=zZ(a)}else if(t.getType()==="Circle"){var a=sA(t.getExtent(),this.getProjection());i=zZ(a),i.rotate(this.getRotation(),UZ(a))}else{var o=Ftt();o?i=t.clone().transform(o,this.getProjection()):i=t}this.fitInternal(i,r)},e.prototype.rotatedExtentForGeometry=function(t){for(var r=this.getRotation(),i=Math.cos(r),a=Math.sin(-r),o=t.getFlatCoordinates(),s=t.getStride(),l=1/0,u=1/0,h=-1/0,c=-1/0,f=0,d=o.length;f=0;u--){var h=l[u];if(!(h.getMap()!==this||!h.getActive()||!this.getTargetElement())){var c=h.handleEvent(t);if(!c||t.propagationStopped)break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,r=this.tileQueue_;if(!r.isEmpty()){var i=this.maxTilesLoading_,a=i;if(t){var o=t.viewHints;if(o[pp.ANIMATING]||o[pp.INTERACTING]){var s=Date.now()-t.time>8;i=s?0:8,a=s?0:2}}r.getTilesLoading()0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!ztt(r,this.renderedAttributions_)){Utt(this.ulElement_);for(var a=0,o=r.length;a0&&i%(2*Math.PI)!==0?r.animate({rotation:0,duration:this.duration_,easing:SI}):r.setRotation(0))}},e.prototype.render=function(t){var r=t.frameState;if(!!r){var i=r.viewState.rotation;if(i!=this.rotation_){var a="rotate("+i+"rad)";if(this.autoHide_){var o=this.element.classList.contains(LF);!o&&i===0?this.element.classList.add(LF):o&&i!==0&&this.element.classList.remove(LF)}this.label_.style.transform=a}this.rotation_=i}},e}(cz);const Pnt=Lnt;var Ont=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Rnt=function(n){Ont(e,n);function e(t){var r=this,i=t||{};r=n.call(this,{element:document.createElement("div"),target:i.target})||this;var a=i.className!==void 0?i.className:"ol-zoom",o=i.delta!==void 0?i.delta:1,s=i.zoomInClassName!==void 0?i.zoomInClassName:a+"-in",l=i.zoomOutClassName!==void 0?i.zoomOutClassName:a+"-out",u=i.zoomInLabel!==void 0?i.zoomInLabel:"+",h=i.zoomOutLabel!==void 0?i.zoomOutLabel:"\u2013",c=i.zoomInTipLabel!==void 0?i.zoomInTipLabel:"Zoom in",f=i.zoomOutTipLabel!==void 0?i.zoomOutTipLabel:"Zoom out",d=document.createElement("button");d.className=s,d.setAttribute("type","button"),d.title=c,d.appendChild(typeof u=="string"?document.createTextNode(u):u),d.addEventListener(zo.CLICK,r.handleClick_.bind(r,o),!1);var v=document.createElement("button");v.className=l,v.setAttribute("type","button"),v.title=f,v.appendChild(typeof h=="string"?document.createTextNode(h):h),v.addEventListener(zo.CLICK,r.handleClick_.bind(r,-o),!1);var p=a+" "+QN+" "+lz,g=r.element;return g.className=p,g.appendChild(d),g.appendChild(v),r.duration_=i.duration!==void 0?i.duration:250,r}return e.prototype.handleClick_=function(t,r){r.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var r=this.getMap(),i=r.getView();if(!!i){var a=i.getZoom();if(a!==void 0){var o=i.getConstrainedZoom(a+t);this.duration_>0?(i.getAnimating()&&i.cancelAnimations(),i.animate({zoom:o,duration:this.duration_,easing:SI})):i.setZoom(o)}}},e}(cz);const Dnt=Rnt;var VPe=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),BW=.75,NF=.1,Nnt=function(n){VPe(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createRenderer=function(){return new NPe(this)},e}(UPe),knt=function(n){VPe(e,n);function e(t){var r=this,i=t||{};r=n.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this,r.boundHandleRotationChanged_=r.handleRotationChanged_.bind(r),r.collapsed_=i.collapsed!==void 0?i.collapsed:!0,r.collapsible_=i.collapsible!==void 0?i.collapsible:!0,r.collapsible_||(r.collapsed_=!1),r.rotateWithView_=i.rotateWithView!==void 0?i.rotateWithView:!1,r.viewExtent_=void 0;var a=i.className!==void 0?i.className:"ol-overviewmap",o=i.tipLabel!==void 0?i.tipLabel:"Overview map",s=i.collapseLabel!==void 0?i.collapseLabel:"\u2039";typeof s=="string"?(r.collapseLabel_=document.createElement("span"),r.collapseLabel_.textContent=s):r.collapseLabel_=s;var l=i.label!==void 0?i.label:"\u203A";typeof l=="string"?(r.label_=document.createElement("span"),r.label_.textContent=l):r.label_=l;var u=r.collapsible_&&!r.collapsed_?r.collapseLabel_:r.label_,h=document.createElement("button");h.setAttribute("type","button"),h.title=o,h.appendChild(u),h.addEventListener(zo.CLICK,r.handleClick_.bind(r),!1),r.ovmapDiv_=document.createElement("div"),r.ovmapDiv_.className="ol-overviewmap-map",r.view_=i.view,r.ovmap_=new Nnt({view:i.view});var c=r.ovmap_;i.layers&&i.layers.forEach(function(S){c.addLayer(S)});var f=document.createElement("div");f.className="ol-overviewmap-box",f.style.boxSizing="border-box",r.boxOverlay_=new Vtt({position:[0,0],positioning:"center-center",element:f}),r.ovmap_.addOverlay(r.boxOverlay_);var d=a+" "+QN+" "+lz+(r.collapsed_&&r.collapsible_?" "+D8:"")+(r.collapsible_?"":" ol-uncollapsible"),v=r.element;v.className=d,v.appendChild(r.ovmapDiv_),v.appendChild(h);var p=r,g=r.boxOverlay_,m=r.boxOverlay_.getElement(),y=function(S){return{clientX:S.clientX,clientY:S.clientY}},_=function(S){var w=y(S),b=c.getEventCoordinateInternal(w);g.setPosition(b)},x=function(S){var w=c.getEventCoordinateInternal(S);p.getMap().getView().setCenterInternal(w),window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",x)};return m.addEventListener("mousedown",function(){window.addEventListener("mousemove",_),window.addEventListener("mouseup",x)}),r}return e.prototype.setMap=function(t){var r=this.getMap();if(t!==r){if(r){var i=r.getView();i&&this.unbindView_(i),this.ovmap_.setTarget(null)}if(n.prototype.setMap.call(this,t),t){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(Ks(t,FR.PROPERTYCHANGE,this.handleMapPropertyChange_,this));var a=t.getView();a&&(this.bindView_(a),a.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}},e.prototype.handleMapPropertyChange_=function(t){if(t.key===Zu.VIEW){var r=t.oldValue;r&&this.unbindView_(r);var i=this.getMap().getView();this.bindView_(i)}else!this.ovmap_.isRendered()&&(t.key===Zu.TARGET||t.key===Zu.SIZE)&&this.ovmap_.updateSize()},e.prototype.bindView_=function(t){if(!this.view_){var r=new Ay({projection:t.getProjection()});this.ovmap_.setView(r)}t.addChangeListener(Jd.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_()},e.prototype.unbindView_=function(t){t.removeChangeListener(Jd.ROTATION,this.boundHandleRotationChanged_)},e.prototype.handleRotationChanged_=function(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())},e.prototype.validateExtent_=function(){var t=this.getMap(),r=this.ovmap_;if(!(!t.isRendered()||!r.isRendered())){var i=t.getSize(),a=t.getView(),o=a.calculateExtentInternal(i);if(!(this.viewExtent_&&R8(o,this.viewExtent_))){this.viewExtent_=o;var s=r.getSize(),l=r.getView(),u=l.calculateExtentInternal(s),h=r.getPixelFromCoordinateInternal(e3(o)),c=r.getPixelFromCoordinateInternal(MPe(o)),f=Math.abs(h[0]-c[0]),d=Math.abs(h[1]-c[1]),v=s[0],p=s[1];fv*BW||d>p*BW?this.resetExtent_():$tt(u,o)||this.recenter_()}}},e.prototype.resetExtent_=function(){var t=this.getMap(),r=this.ovmap_,i=t.getSize(),a=t.getView(),o=a.calculateExtentInternal(i),s=r.getView(),l=Math.log(BW/NF)/Math.LN2,u=1/(Math.pow(2,l/2)*NF);Wtt(o,u),s.fitInternal(zZ(o))},e.prototype.recenter_=function(){var t=this.getMap(),r=this.ovmap_,i=t.getView(),a=r.getView();a.setCenterInternal(i.getCenterInternal())},e.prototype.updateBox_=function(){var t=this.getMap(),r=this.ovmap_;if(!(!t.isRendered()||!r.isRendered())){var i=t.getSize(),a=t.getView(),o=r.getView(),s=this.rotateWithView_?0:-a.getRotation(),l=this.boxOverlay_,u=this.boxOverlay_.getElement(),h=a.getCenterInternal(),c=a.getResolution(),f=o.getResolution(),d=i[0]*c/f,v=i[1]*c/f;if(l.setPosition(h),u){u.style.width=d+"px",u.style.height=v+"px";var p="rotate("+s+"rad)";u.style.transform=p}}},e.prototype.updateBoxAfterOvmapIsRendered_=function(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=Htt(this.ovmap_,d1.POSTRENDER,function(t){delete this.ovmapPostrenderKey_,this.updateBox_()},this))},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle(D8),this.collapsed_?N8(this.collapseLabel_,this.label_):N8(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var t=this.ovmap_;if(!this.collapsed_){if(t.isRendered()){this.viewExtent_=void 0,t.render();return}t.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){!this.collapsible_||this.collapsed_===t||this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.setRotateWithView=function(t){this.rotateWithView_!==t&&(this.rotateWithView_=t,this.getMap().getView().getRotation()!==0&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))},e.prototype.getOverviewMap=function(){return this.ovmap_},e.prototype.render=function(t){this.validateExtent_(),this.updateBox_()},e}(cz);const Fnt=knt;function Bnt(n){var e=n||{},t=new Jg,r=e.zoom!==void 0?e.zoom:!0;r&&t.push(new Dnt(e.zoomOptions));var i=e.rotate!==void 0?e.rotate:!0;i&&t.push(new Pnt(e.rotateOptions));var a=e.attribution!==void 0?e.attribution:!0;return a&&t.push(new Mnt(e.attributionOptions)),t}const qZ={ACTIVE:"active"};var Gnt=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),znt=function(n){Gnt(e,n);function e(t){var r=n.call(this)||this;return r.on,r.once,r.un,t&&t.handleEvent&&(r.handleEvent=t.handleEvent),r.map_=null,r.setActive(!0),r}return e.prototype.getActive=function(){return this.get(qZ.ACTIVE)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(qZ.ACTIVE,t)},e.prototype.setMap=function(t){this.map_=t},e}(sz);function Unt(n,e,t){var r=n.getCenterInternal();if(r){var i=[r[0]+e[0],r[1]+e[1]];n.animateInternal({duration:t!==void 0?t:250,easing:vnt,center:n.getConstrainedCenter(i)})}}function xne(n,e,t,r){var i=n.getZoom();if(i!==void 0){var a=n.getConstrainedZoom(i+e),o=n.getResolutionForZoom(a);n.getAnimating()&&n.cancelAnimations(),n.animate({resolution:o,anchor:t,duration:r!==void 0?r:250,easing:SI})}}const r3=znt;var Vnt=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),$nt=function(n){Vnt(e,n);function e(t){var r=n.call(this)||this,i=t||{};return r.delta_=i.delta?i.delta:1,r.duration_=i.duration!==void 0?i.duration:250,r}return e.prototype.handleEvent=function(t){var r=!1;if(t.type==Xo.DBLCLICK){var i=t.originalEvent,a=t.map,o=t.coordinate,s=i.shiftKey?-this.delta_:this.delta_,l=a.getView();xne(l,s,o,this.duration_),i.preventDefault(),r=!0}return!r},e}(r3);const Wnt=$nt;var Hnt=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),jnt=function(n){Hnt(e,n);function e(t){var r=this,i=t||{};return r=n.call(this,i)||this,i.handleDownEvent&&(r.handleDownEvent=i.handleDownEvent),i.handleDragEvent&&(r.handleDragEvent=i.handleDragEvent),i.handleMoveEvent&&(r.handleMoveEvent=i.handleMoveEvent),i.handleUpEvent&&(r.handleUpEvent=i.handleUpEvent),i.stopDown&&(r.stopDown=i.stopDown),r.handlingDownUpSequence=!1,r.targetPointers=[],r}return e.prototype.getPointerCount=function(){return this.targetPointers.length},e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var r=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==Xo.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==Xo.POINTERUP){var i=this.handleUpEvent(t);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(t.type==Xo.POINTERDOWN){var a=this.handleDownEvent(t);this.handlingDownUpSequence=a,r=this.stopDown(a)}else t.type==Xo.POINTERMOVE&&this.handleMoveEvent(t);return!r},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){t.activePointers&&(this.targetPointers=t.activePointers)},e}(r3);function Sne(n){for(var e=n.length,t=0,r=0,i=0;i0&&this.condition_(t)){var r=t.map,i=r.getView();return this.lastCentroid=null,i.getAnimating()&&i.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}else return!1},e}(wI);const Jnt=Knt;var Qnt=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),eit=function(n){Qnt(e,n);function e(t){var r=this,i=t||{};return r=n.call(this,{stopDown:t3})||this,r.condition_=i.condition?i.condition:Xnt,r.lastAngle_=void 0,r.duration_=i.duration!==void 0?i.duration:250,r}return e.prototype.handleDragEvent=function(t){if(!!GW(t)){var r=t.map,i=r.getView();if(i.getConstraints().rotation!==_ne){var a=r.getSize(),o=t.pixel,s=Math.atan2(a[1]/2-o[1],o[0]-a[0]/2);if(this.lastAngle_!==void 0){var l=s-this.lastAngle_;i.adjustRotationInternal(-l)}this.lastAngle_=s}}},e.prototype.handleUpEvent=function(t){if(!GW(t))return!0;var r=t.map,i=r.getView();return i.endInteraction(this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!GW(t))return!1;if(HPe(t)&&this.condition_(t)){var r=t.map;return r.getView().beginInteraction(),this.lastAngle_=void 0,!0}else return!1},e}(wI);const tit=eit;var rit=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),nit=function(n){rit(e,n);function e(t){var r=n.call(this)||this;return r.geometry_=null,r.element_=document.createElement("div"),r.element_.style.position="absolute",r.element_.style.pointerEvents="auto",r.element_.className="ol-box "+t,r.map_=null,r.startPixel_=null,r.endPixel_=null,r}return e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,r=this.endPixel_,i="px",a=this.element_.style;a.left=Math.min(t[0],r[0])+i,a.top=Math.min(t[1],r[1])+i,a.width=Math.abs(r[0]-t[0])+i,a.height=Math.abs(r[1]-t[1])+i},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var r=this.element_.style;r.left="inherit",r.top="inherit",r.width="inherit",r.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,r){this.startPixel_=t,this.endPixel_=r,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,r=this.endPixel_,i=[t,[t[0],r[1]],r,[r[0],t[1]]],a=i.map(this.map_.getCoordinateFromPixelInternal,this.map_);a[4]=a[0].slice(),this.geometry_?this.geometry_.setCoordinates([a]):this.geometry_=new cne([a])},e.prototype.getGeometry=function(){return this.geometry_},e}(wPe);const iit=nit;var YPe=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),kF={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},zW=function(n){YPe(e,n);function e(t,r,i){var a=n.call(this,t)||this;return a.coordinate=r,a.mapBrowserEvent=i,a}return e}(oz),ait=function(n){YPe(e,n);function e(t){var r=n.call(this)||this;r.on,r.once,r.un;var i=t||{};return r.box_=new iit(i.className||"ol-dragbox"),r.minArea_=i.minArea!==void 0?i.minArea:64,i.onBoxEnd&&(r.onBoxEnd=i.onBoxEnd),r.startPixel_=null,r.condition_=i.condition?i.condition:HPe,r.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:r.defaultBoxEndCondition,r}return e.prototype.defaultBoxEndCondition=function(t,r,i){var a=i[0]-r[0],o=i[1]-r[1];return a*a+o*o>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new zW(kF.BOXDRAG,t.coordinate,t))},e.prototype.handleUpEvent=function(t){this.box_.setMap(null);var r=this.boxEndCondition_(t,this.startPixel_,t.pixel);return r&&this.onBoxEnd(t),this.dispatchEvent(new zW(r?kF.BOXEND:kF.BOXCANCEL,t.coordinate,t)),!1},e.prototype.handleDownEvent=function(t){return this.condition_(t)?(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new zW(kF.BOXSTART,t.coordinate,t)),!0):!1},e.prototype.onBoxEnd=function(t){},e}(wI);const oit=ait;var sit=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),lit=function(n){sit(e,n);function e(t){var r=this,i=t||{},a=i.condition?i.condition:jPe;return r=n.call(this,{condition:a,className:i.className||"ol-dragzoom",minArea:i.minArea})||this,r.duration_=i.duration!==void 0?i.duration:200,r.out_=i.out!==void 0?i.out:!1,r}return e.prototype.onBoxEnd=function(t){var r=this.getMap(),i=r.getView(),a=this.getGeometry();if(this.out_){var o=i.rotatedExtentForGeometry(a),s=i.getResolutionForExtentInternal(o),l=i.getResolution()/s;a=a.clone(),a.scale(l*l)}i.fitInternal(a,{duration:this.duration_,easing:SI})},e}(oit);const uit=lit,$w={LEFT:37,UP:38,RIGHT:39,DOWN:40};var hit=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),cit=function(n){hit(e,n);function e(t){var r=n.call(this)||this,i=t||{};return r.defaultCondition_=function(a){return wne(a)&&XPe(a)},r.condition_=i.condition!==void 0?i.condition:r.defaultCondition_,r.duration_=i.duration!==void 0?i.duration:100,r.pixelDelta_=i.pixelDelta!==void 0?i.pixelDelta:128,r}return e.prototype.handleEvent=function(t){var r=!1;if(t.type==zo.KEYDOWN){var i=t.originalEvent,a=i.keyCode;if(this.condition_(t)&&(a==$w.DOWN||a==$w.LEFT||a==$w.RIGHT||a==$w.UP)){var o=t.map,s=o.getView(),l=s.getResolution()*this.pixelDelta_,u=0,h=0;a==$w.DOWN?h=-l:a==$w.LEFT?u=-l:a==$w.RIGHT?u=l:h=l;var c=[u,h];une(c,s.getRotation()),Unt(s,c,this.duration_),i.preventDefault(),r=!0}}return!r},e}(r3);const fit=cit;var dit=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),vit=function(n){dit(e,n);function e(t){var r=n.call(this)||this,i=t||{};return r.condition_=i.condition?i.condition:XPe,r.delta_=i.delta?i.delta:1,r.duration_=i.duration!==void 0?i.duration:100,r}return e.prototype.handleEvent=function(t){var r=!1;if(t.type==zo.KEYDOWN||t.type==zo.KEYPRESS){var i=t.originalEvent,a=i.charCode;if(this.condition_(t)&&(a=="+".charCodeAt(0)||a=="-".charCodeAt(0))){var o=t.map,s=a=="+".charCodeAt(0)?this.delta_:-this.delta_,l=o.getView();xne(l,s,void 0,this.duration_),i.preventDefault(),r=!0}}return!r},e}(r3);const pit=vit;var git=function(){function n(e,t,r){this.decay_=e,this.minVelocity_=t,this.delay_=r,this.points_=[],this.angle_=0,this.initialVelocity_=0}return n.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},n.prototype.update=function(e,t){this.points_.push(e,t,Date.now())},n.prototype.end=function(){if(this.points_.length<6)return!1;var e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]0&&this.points_[r+2]>e;)r-=3;var i=this.points_[t+2]-this.points_[r+2];if(i<1e3/60)return!1;var a=this.points_[t]-this.points_[r],o=this.points_[t+1]-this.points_[r+1];return this.angle_=Math.atan2(o,a),this.initialVelocity_=Math.sqrt(a*a+o*o)/i,this.initialVelocity_>this.minVelocity_},n.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},n.prototype.getAngle=function(){return this.angle_},n}();const yit=git;var mit=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),UW={TRACKPAD:"trackpad",WHEEL:"wheel"},_it=function(n){mit(e,n);function e(t){var r=this,i=t||{};r=n.call(this,i)||this,r.totalDelta_=0,r.lastDelta_=0,r.maxDelta_=i.maxDelta!==void 0?i.maxDelta:1,r.duration_=i.duration!==void 0?i.duration:250,r.timeout_=i.timeout!==void 0?i.timeout:80,r.useAnchor_=i.useAnchor!==void 0?i.useAnchor:!0,r.constrainResolution_=i.constrainResolution!==void 0?i.constrainResolution:!1;var a=i.condition?i.condition:WPe;return r.condition_=i.onFocusOnly?ZZ($Pe,a):a,r.lastAnchor_=null,r.startTime_=void 0,r.timeoutId_,r.mode_=void 0,r.trackpadEventGap_=400,r.trackpadTimeoutId_,r.deltaPerZoom_=300,r}return e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap();if(!!t){var r=t.getView();r.endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var r=t.type;if(r!==zo.WHEEL)return!0;var i=t.map,a=t.originalEvent;a.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate);var o;if(t.type==zo.WHEEL&&(o=a.deltaY,qtt&&a.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(o/=APe),a.deltaMode===WheelEvent.DOM_DELTA_LINE&&(o*=40)),o===0)return!1;this.lastDelta_=o;var s=Date.now();this.startTime_===void 0&&(this.startTime_=s),(!this.mode_||s-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(o)<4?UW.TRACKPAD:UW.WHEEL);var l=i.getView();if(this.mode_===UW.TRACKPAD&&!(l.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(l.getAnimating()&&l.cancelAnimations(),l.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),l.adjustZoom(-o/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=s,!1;this.totalDelta_+=o;var u=Math.max(this.timeout_-(s-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),u),!1},e.prototype.handleWheelZoom_=function(t){var r=t.getView();r.getAnimating()&&r.cancelAnimations();var i=-bv(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(r.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),xne(r,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(r3);const qPe=_it;var xit=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Sit=function(n){xit(e,n);function e(t){var r=this,i=t||{},a=i;return a.stopDown||(a.stopDown=t3),r=n.call(this,a)||this,r.anchor_=null,r.lastAngle_=void 0,r.rotating_=!1,r.rotationDelta_=0,r.threshold_=i.threshold!==void 0?i.threshold:.3,r.duration_=i.duration!==void 0?i.duration:250,r}return e.prototype.handleDragEvent=function(t){var r=0,i=this.targetPointers[0],a=this.targetPointers[1],o=Math.atan2(a.clientY-i.clientY,a.clientX-i.clientX);if(this.lastAngle_!==void 0){var s=o-this.lastAngle_;this.rotationDelta_+=s,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),r=s}this.lastAngle_=o;var l=t.map,u=l.getView();if(u.getConstraints().rotation!==_ne){var h=l.getViewport().getBoundingClientRect(),c=Sne(this.targetPointers);c[0]-=h.left,c[1]-=h.top,this.anchor_=l.getCoordinateFromPixelInternal(c),this.rotating_&&(l.render(),u.adjustRotationInternal(r,this.anchor_))}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var r=t.map,i=r.getView();return i.endInteraction(this.duration_),!1}else return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var r=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||r.getView().beginInteraction(),!0}else return!1},e}(wI);const wit=Sit;var bit=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Eit=function(n){bit(e,n);function e(t){var r=this,i=t||{},a=i;return a.stopDown||(a.stopDown=t3),r=n.call(this,a)||this,r.anchor_=null,r.duration_=i.duration!==void 0?i.duration:400,r.lastDistance_=void 0,r.lastScaleDelta_=1,r}return e.prototype.handleDragEvent=function(t){var r=1,i=this.targetPointers[0],a=this.targetPointers[1],o=i.clientX-a.clientX,s=i.clientY-a.clientY,l=Math.sqrt(o*o+s*s);this.lastDistance_!==void 0&&(r=this.lastDistance_/l),this.lastDistance_=l;var u=t.map,h=u.getView();r!=1&&(this.lastScaleDelta_=r);var c=u.getViewport().getBoundingClientRect(),f=Sne(this.targetPointers);f[0]-=c.left,f[1]-=c.top,this.anchor_=u.getCoordinateFromPixelInternal(f),u.render(),h.adjustResolutionInternal(r,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var r=t.map,i=r.getView(),a=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,a),!1}else return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var r=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||r.getView().beginInteraction(),!0}else return!1},e}(wI);const Tit=Eit;var Cit=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ZPe=function(n){Cit(e,n);function e(t,r,i){var a=n.call(this)||this;if(i!==void 0&&r===void 0)a.setFlatCoordinates(i,t);else{var o=r||0;a.setCenterAndRadius(t,o,i)}return a}return e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,r,i,a){var o=this.flatCoordinates,s=t-o[0],l=r-o[1],u=s*s+l*l;if(u=i[0]||t[1]<=i[1]&&t[3]>=i[1]?!0:IPe(t,this.intersectsCoordinate.bind(this))}return!1},e.prototype.setCenter=function(t){var r=this.stride,i=this.flatCoordinates[r]-this.flatCoordinates[0],a=t.slice();a[r]=a[0]+i;for(var o=1;o=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,r=!0):this.lastDragTime_=void 0,this.shouldHandle_&&this.downTimeout_!==void 0&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&t.type===Xo.POINTERDRAG&&this.sketchFeature_!==null?(this.addToDrawing_(t.coordinate),i=!1):this.freehand_&&t.type===Xo.POINTERDOWN?i=!1:r&&this.getPointerCount()<2?(i=t.type===Xo.POINTERMOVE,i&&this.freehand_?(this.handlePointerMove_(t),this.shouldHandle_&&t.originalEvent.preventDefault()):(t.originalEvent.pointerType==="mouse"||t.type===Xo.POINTERDRAG&&this.downTimeout_===void 0)&&this.handlePointerMove_(t)):t.type===Xo.DBLCLICK&&(i=!1),n.prototype.handleEvent.call(this,t)&&i},e.prototype.handleDownEvent=function(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(function(){this.handlePointerMove_(new v1(Xo.POINTERMOVE,t.map,t.originalEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)},e.prototype.handleUpEvent=function(t){var r=!0;if(this.getPointerCount()===0)if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t),this.shouldHandle_){var i=!this.finishCoordinate_;i&&this.startDrawing_(t.coordinate),!i&&this.freehand_?this.finishDrawing():!this.freehand_&&(!i||this.mode_===xo.POINT)&&(this.atFinish_(t.pixel)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t.coordinate)),r=!1}else this.freehand_&&this.abortDrawing();return!r&&this.stopClick_&&t.preventDefault(),r},e.prototype.handlePointerMove_=function(t){if(this.pointerType_=t.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var r=this.downPx_,i=t.pixel,a=r[0]-i[0],o=r[1]-i[1],s=a*a+o*o;if(this.shouldHandle_=this.freehand_?s>this.squaredClickTolerance_:s<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(t.coordinate):this.createOrUpdateSketchPoint_(t.coordinate.slice())},e.prototype.atFinish_=function(t){var r=!1;if(this.sketchFeature_){var i=!1,a=[this.finishCoordinate_],o=this.mode_;if(o===xo.POINT)r=!0;else if(o===xo.CIRCLE)r=this.sketchCoords_.length===2;else if(o===xo.LINE_STRING)i=this.sketchCoords_.length>this.minPoints_;else if(o===xo.POLYGON){var s=this.sketchCoords_;i=s[0].length>this.minPoints_,a=[s[0][0],s[0][s[0].length-2]]}if(i)for(var l=this.getMap(),u=0,h=a.length;u=this.maxPoints_&&(this.freehand_?o.pop():a=!0),o.push(t.slice()),this.geometryFunction_(o,r,i)):s===xo.POLYGON&&(o=this.sketchCoords_[0],o.length>=this.maxPoints_&&(this.freehand_?o.pop():a=!0),o.push(t.slice()),a&&(this.finishCoordinate_=o[0]),this.geometryFunction_(this.sketchCoords_,r,i)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),a&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(!!this.sketchFeature_){var t=this.sketchFeature_.getGeometry(),r=this.getMap().getView().getProjection(),i,a=this.mode_;if(a===xo.LINE_STRING||a===xo.CIRCLE){if(i=this.sketchCoords_,i.splice(-2,1),i.length>=2){this.finishCoordinate_=i[i.length-2].slice();var o=this.finishCoordinate_.slice();i[i.length-1]=o,this.createOrUpdateSketchPoint_(o)}this.geometryFunction_(i,t,r),t.getType()==="Polygon"&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(a===xo.POLYGON){i=this.sketchCoords_[0],i.splice(-2,1);var s=this.sketchLine_.getGeometry();if(i.length>=2){var o=i[i.length-2].slice();i[i.length-1]=o,this.createOrUpdateSketchPoint_(o)}s.setCoordinates(i),this.geometryFunction_(this.sketchCoords_,t,r)}i.length===1&&this.abortDrawing(),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(!!t){var r=this.sketchCoords_,i=t.getGeometry(),a=this.getMap().getView().getProjection();this.mode_===xo.LINE_STRING?(r.pop(),this.geometryFunction_(r,i,a)):this.mode_===xo.POLYGON&&(r[0].pop(),this.geometryFunction_(r,i,a),r=i.getCoordinates()),this.type_==="MultiPoint"?t.setGeometry(new rrt([r])):this.type_==="MultiLineString"?t.setGeometry(new nrt([r])):this.type_==="MultiPolygon"&&t.setGeometry(new irt([r])),this.dispatchEvent(new BF(FF.DRAWEND,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},e.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),t},e.prototype.abortDrawing=function(){var t=this.abortDrawing_();t&&this.dispatchEvent(new BF(FF.DRAWABORT,t))},e.prototype.appendCoordinates=function(t){var r=this.mode_,i=!this.sketchFeature_;i&&this.startDrawing_(t[0]);var a;if(r===xo.LINE_STRING||r===xo.CIRCLE)a=this.sketchCoords_;else if(r===xo.POLYGON)a=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[];else return;i&&a.shift(),a.pop();for(var o=0;ot)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){tB()},e.prototype.getAlpha=function(t,r){if(!this.transition_)return 1;var i=this.transitionStarts_[t];if(!i)i=r,this.transitionStarts_[t]=i;else if(i===-1)return 1;var a=r-i+1e3/60;return a>=this.transition_?1:BPe(a/this.transition_)},e.prototype.inTransition=function(t){return this.transition_?this.transitionStarts_[t]!==-1:!1},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(TPe);const QPe=Bit;var Git=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),zit=function(n){Git(e,n);function e(t,r,i,a,o,s){var l=n.call(this,t,r,s)||this;return l.crossOrigin_=a,l.src_=i,l.key=i,l.image_=new Image,a!==null&&(l.image_.crossOrigin=a),l.unlisten_=null,l.tileLoadFunction_=o,l}return e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=Hi.LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){this.state=Hi.ERROR,this.unlistenImage_(),this.image_=Uit(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=Hi.LOADED:this.state=Hi.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==Hi.ERROR&&(this.state=Hi.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==Hi.IDLE&&(this.state=Hi.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=ort(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(QPe);function Uit(){var n=HZ(1,1);return n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1),n.canvas}const Vit=zit;var $it=.5,Wit=10,Ude=.25,Hit=function(){function n(e,t,r,i,a,o){this.sourceProj_=e,this.targetProj_=t;var s={},l=srt(this.targetProj_,this.sourceProj_);this.transformInv_=function(_){var x=_[0]+"/"+_[1];return s[x]||(s[x]=l(_)),s[x]},this.maxSourceExtent_=i,this.errorThresholdSquared_=a*a,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&nv(i)==nv(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?nv(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?nv(this.targetProj_.getExtent()):null;var u=e3(r),h=lrt(r),c=MPe(r),f=urt(r),d=this.transformInv_(u),v=this.transformInv_(h),p=this.transformInv_(c),g=this.transformInv_(f),m=Wit+(o?Math.max(0,Math.ceil(hrt(jZ(r)/(o*o*256*256)))):0);if(this.addQuad_(u,h,c,f,d,v,p,g,m),this.wrapsXInSource_){var y=1/0;this.triangles_.forEach(function(_,x,S){y=Math.min(y,_.source[0][0],_.source[1][0],_.source[2][0])}),this.triangles_.forEach(function(_){if(Math.max(_.source[0][0],_.source[1][0],_.source[2][0])-y>this.sourceWorldWidth_/2){var x=[[_.source[0][0],_.source[0][1]],[_.source[1][0],_.source[1][1]],[_.source[2][0],_.source[2][1]]];x[0][0]-y>this.sourceWorldWidth_/2&&(x[0][0]-=this.sourceWorldWidth_),x[1][0]-y>this.sourceWorldWidth_/2&&(x[1][0]-=this.sourceWorldWidth_),x[2][0]-y>this.sourceWorldWidth_/2&&(x[2][0]-=this.sourceWorldWidth_);var S=Math.min(x[0][0],x[1][0],x[2][0]),w=Math.max(x[0][0],x[1][0],x[2][0]);w-S.5&&c<1,v=!1;if(u>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var p=Mde([e,t,r,i]),g=nv(p)/this.targetWorldWidth_;v=g>Ude||v}!d&&this.sourceProj_.isGlobal()&&c&&(v=c>Ude||v)}if(!(!v&&this.maxSourceExtent_&&isFinite(h[0])&&isFinite(h[1])&&isFinite(h[2])&&isFinite(h[3])&&!fne(h,this.maxSourceExtent_))){var m=0;if(!v&&(!isFinite(a[0])||!isFinite(a[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(s[0])||!isFinite(s[1])||!isFinite(l[0])||!isFinite(l[1]))){if(u>0)v=!0;else if(m=(!isFinite(a[0])||!isFinite(a[1])?8:0)+(!isFinite(o[0])||!isFinite(o[1])?4:0)+(!isFinite(s[0])||!isFinite(s[1])?2:0)+(!isFinite(l[0])||!isFinite(l[1])?1:0),m!=1&&m!=2&&m!=4&&m!=8)return}if(u>0){if(!v){var y=[(e[0]+r[0])/2,(e[1]+r[1])/2],_=this.transformInv_(y),x=void 0;if(d){var S=(zO(a[0],f)+zO(s[0],f))/2;x=S-zO(_[0],f)}else x=(a[0]+s[0])/2-_[0];var w=(a[1]+s[1])/2-_[1],b=x*x+w*w;v=b>this.errorThresholdSquared_}if(v){if(Math.abs(e[0]-r[0])<=Math.abs(e[1]-r[1])){var E=[(t[0]+r[0])/2,(t[1]+r[1])/2],T=this.transformInv_(E),C=[(i[0]+e[0])/2,(i[1]+e[1])/2],A=this.transformInv_(C);this.addQuad_(e,t,E,C,a,o,T,A,u-1),this.addQuad_(C,E,r,i,A,T,s,l,u-1)}else{var M=[(e[0]+t[0])/2,(e[1]+t[1])/2],I=this.transformInv_(M),R=[(r[0]+i[0])/2,(r[1]+i[1])/2],k=this.transformInv_(R);this.addQuad_(e,M,R,i,a,I,k,l,u-1),this.addQuad_(M,t,r,R,I,o,s,k,u-1)}return}}if(d){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}(m&11)==0&&this.addTriangle_(e,r,i,a,s,l),(m&14)==0&&this.addTriangle_(e,r,t,a,s,o),m&&((m&13)==0&&this.addTriangle_(t,i,e,o,l,a),(m&7)==0&&this.addTriangle_(t,i,r,o,l,s))}},n.prototype.calculateSourceExtent=function(){var e=dne();return this.triangles_.forEach(function(t,r,i){var a=t.source;OW(e,a[0]),OW(e,a[1]),OW(e,a[2])}),e},n.prototype.getTriangles=function(){return this.triangles_},n}();const jit=Hit;var KZ={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},Xit={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0},VW,eOe=[];function Vde(n,e,t,r,i){n.beginPath(),n.moveTo(0,0),n.lineTo(e,t),n.lineTo(r,i),n.closePath(),n.save(),n.clip(),n.fillRect(0,0,Math.max(e,r)+1,Math.max(t,i)),n.restore()}function $W(n,e){return Math.abs(n[e*4]-210)>2||Math.abs(n[e*4+3]-.75*255)>2}function Yit(){if(VW===void 0){var n=document.createElement("canvas").getContext("2d");n.globalCompositeOperation="lighter",n.fillStyle="rgba(210, 0, 0, 0.75)",Vde(n,4,5,4,0),Vde(n,4,5,0,5);var e=n.getImageData(0,0,3,3).data;VW=$W(e,0)||$W(e,4)||$W(e,8)}return VW}function $de(n,e,t,r){var i=lA(t,e,n),a=Ide(e,r,t),o=e.getMetersPerUnit();o!==void 0&&(a*=o);var s=n.getMetersPerUnit();s!==void 0&&(a/=s);var l=n.getExtent();if(!l||LPe(l,i)){var u=Ide(n,a,i)/a;isFinite(u)&&u>0&&(a/=u)}return a}function qit(n,e,t,r){var i=UZ(t),a=$de(n,e,i,r);return(!isFinite(a)||a<=0)&&IPe(t,function(o){return a=$de(n,e,o,r),isFinite(a)&&a>0}),a}function Zit(n,e,t,r,i,a,o,s,l,u,h,c){var f=HZ(Math.round(t*n),Math.round(t*e),eOe);if(c||Tp(f,KZ),l.length===0)return f.canvas;f.scale(t,t);function d(x){return Math.round(x*t)/t}f.globalCompositeOperation="lighter";var v=dne();l.forEach(function(x,S,w){crt(v,x.extent)});var p=nv(v),g=uM(v),m=HZ(Math.round(t*p/r),Math.round(t*g/r));c||Tp(m,KZ);var y=t/r;l.forEach(function(x,S,w){var b=x.extent[0]-v[0],E=-(x.extent[3]-v[3]),T=nv(x.extent),C=uM(x.extent);x.image.width>0&&x.image.height>0&&m.drawImage(x.image,u,u,x.image.width-2*u,x.image.height-2*u,b*y,E*y,T*y,C*y)});var _=e3(o);return s.getTriangles().forEach(function(x,S,w){var b=x.source,E=x.target,T=b[0][0],C=b[0][1],A=b[1][0],M=b[1][1],I=b[2][0],R=b[2][1],k=d((E[0][0]-_[0])/a),D=d(-(E[0][1]-_[1])/a),G=d((E[1][0]-_[0])/a),V=d(-(E[1][1]-_[1])/a),z=d((E[2][0]-_[0])/a),j=d(-(E[2][1]-_[1])/a),Z=T,Y=C;T=0,C=0,A-=Z,M-=Y,I-=Z,R-=Y;var le=[[A,M,0,0,G-k],[I,R,0,0,z-k],[0,0,A,M,V-D],[0,0,I,R,j-D]],H=frt(le);if(!!H){if(f.save(),f.beginPath(),Yit()||!c){f.moveTo(G,V);for(var Q=4,ie=k-G,oe=D-V,se=0;sethis.maxX&&(this.maxX=e.maxX),e.minYthis.maxY&&(this.maxY=e.maxY)},n.prototype.getHeight=function(){return this.maxY-this.minY+1},n.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},n.prototype.getWidth=function(){return this.maxX-this.minX+1},n.prototype.intersects=function(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY},n}();function GT(n,e,t,r,i){return i!==void 0?(i.minX=n,i.maxX=e,i.minY=t,i.maxY=r,i):new tOe(n,e,t,r)}const rOe=tOe;var eat=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),tat=function(n){eat(e,n);function e(t){var r=n.call(this,t)||this;return r.extentChanged=!0,r.renderedExtent_=null,r.renderedPixelRatio,r.renderedProjection=null,r.renderedRevision,r.renderedTiles=[],r.newTiles_=!1,r.tmpExtent=dne(),r.tmpTileRange_=new rOe(0,0,0,0),r}return e.prototype.isDrawableTile=function(t){var r=this.getLayer(),i=t.getState(),a=r.getUseInterimTilesOnError();return i==Hi.LOADED||i==Hi.EMPTY||i==Hi.ERROR&&!a},e.prototype.getTile=function(t,r,i,a){var o=a.pixelRatio,s=a.viewState.projection,l=this.getLayer(),u=l.getSource(),h=u.getTile(t,r,i,o,s);return h.getState()==Hi.ERROR&&(l.getUseInterimTilesOnError()?l.getPreload()>0&&(this.newTiles_=!0):h.setState(Hi.LOADED)),this.isDrawableTile(h)||(h=h.getInterimTile()),h},e.prototype.getData=function(t){var r=this.frameState;if(!r)return null;var i=this.getLayer(),a=O8(r.pixelToCoordinateTransform,t.slice()),o=i.getExtent();if(o&&!LPe(o,a))return null;for(var s=r.pixelRatio,l=r.viewState.projection,u=r.viewState,h=i.getRenderSource(),c=h.getTileGridForProjection(u.projection),f=h.getTilePixelRatio(r.pixelRatio),d=c.getZForResolution(u.resolution);d>=c.getMinZoom();--d){var v=c.getTileCoordForCoordAndZ(a,d),p=h.getTile(d,v[1],v[2],s,l);if(!(p instanceof Vit||p instanceof Qit))return null;if(p.getState()===Hi.LOADED){var g=c.getOrigin(d),m=NC(c.getTileSize(d)),y=c.getResolution(d),_=Math.floor(f*((a[0]-g[0])/y-v[1]*m[0])),x=Math.floor(f*((g[1]-a[1])/y-v[2]*m[1])),S=Math.round(f*h.getGutterForProjection(u.projection));return this.getImageData(p.getImage(),_+S,x+S)}}return null},e.prototype.loadedTileCallback=function(t,r,i){return this.isDrawableTile(i)?n.prototype.loadedTileCallback.call(this,t,r,i):!1},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,r){var i=t.layerStatesArray[t.layerIndex],a=t.viewState,o=a.projection,s=a.resolution,l=a.center,u=a.rotation,h=t.pixelRatio,c=this.getLayer(),f=c.getSource(),d=f.getRevision(),v=f.getTileGridForProjection(o),p=v.getZForResolution(s,f.zDirection),g=v.getResolution(p),m=t.extent,y=t.viewState.resolution,_=f.getTilePixelRatio(h),x=Math.round(nv(m)/y*h),S=Math.round(uM(m)/y*h),w=i.extent&&sA(i.extent);w&&(m=GO(m,sA(i.extent)));var b=g*x/2/_,E=g*S/2/_,T=[l[0]-b,l[1]-E,l[0]+b,l[1]+E],C=v.getTileRangeForExtentAndZ(m,p),A={};A[p]={};var M=this.createLoadedTileFinder(f,o,A),I=this.tmpExtent,R=this.tmpTileRange_;this.newTiles_=!1;for(var k=u?Lde(a.center,y,u,t.size):void 0,D=C.minX;D<=C.maxX;++D)for(var G=C.minY;G<=C.maxY;++G)if(!(u&&!v.tileCoordIntersectsViewport([p,D,G],k))){var V=this.getTile(p,D,G,t);if(this.isDrawableTile(V)){var z=_1(this);if(V.getState()==Hi.LOADED){A[p][V.tileCoord.toString()]=V;var j=V.inTransition(z);j&&i.opacity!==1&&(V.endTransition(z),j=!1),!this.newTiles_&&(j||this.renderedTiles.indexOf(V)===-1)&&(this.newTiles_=!0)}if(V.getAlpha(z,t.time)===1)continue}var Z=v.getTileCoordChildTileRange(V.tileCoord,R,I),Y=!1;Z&&(Y=M(p+1,Z)),Y||v.forEachTileCoordParentTileRange(V.tileCoord,M,R,I)}var le=g/s*h/_;FZ(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/h,1/h,u,-x/2,-S/2);var H=vrt(this.pixelTransform);this.useContainer(r,H,this.getBackground(t));var Q=this.context,ie=Q.canvas;xPe(this.inversePixelTransform,this.pixelTransform),FZ(this.tempTransform,x/2,S/2,le,le,0,-x/2,-S/2),ie.width!=x||ie.height!=S?(ie.width=x,ie.height=S):this.containerReused||Q.clearRect(0,0,x,S),w&&this.clipUnrotated(Q,t,w),f.getInterpolate()||Tp(Q,KZ),this.preRender(Q,t),this.renderedTiles.length=0;var oe=Object.keys(A).map(Number);oe.sort(prt);var se,me,Ce;i.opacity===1&&(!this.containerReused||f.getOpaque(t.viewState.projection))?oe=oe.reverse():(se=[],me=[]);for(var Le=oe.length-1;Le>=0;--Le){var re=oe[Le],yt=f.getTilePixelSize(re,h,o),je=v.getResolution(re),st=je/g,Nt=yt[0]*st*le,Zt=yt[1]*st*le,qe=v.getTileCoordForCoordAndZ(e3(T),re),ur=v.getTileCoordExtent(qe),Dt=O8(this.tempTransform,[_*(ur[0]-T[0])/g,_*(T[3]-ur[3])/g]),ft=_*f.getGutterForProjection(o),Oe=A[re];for(var J in Oe){var V=Oe[J],We=V.tileCoord,Tt=qe[1]-We[1],Qe=Math.round(Dt[0]-(Tt-1)*Nt),zt=qe[2]-We[2],mt=Math.round(Dt[1]-(zt-1)*Zt),D=Math.round(Dt[0]-Tt*Nt),G=Math.round(Dt[1]-zt*Zt),wt=Qe-D,pt=mt-G,ar=p===re,j=ar&&V.getAlpha(_1(this),t.time)!==1,kt=!1;if(!j)if(se){Ce=[D,G,D+wt,G,D+wt,G+pt,D,G+pt];for(var Dr=0,Sr=se.length;Dr=this.minZoom;){if(this.zoomFactor_===2?(o=Math.floor(o/2),s=Math.floor(s/2),a=GT(o,o,s,s,r)):a=this.getTileRangeForExtentAndZ(l,u,r),t(u,a))return!0;--u}return!1},n.prototype.getExtent=function(){return this.extent_},n.prototype.getMaxZoom=function(){return this.maxZoom},n.prototype.getMinZoom=function(){return this.minZoom},n.prototype.getOrigin=function(e){return this.origin_?this.origin_:this.origins_[e]},n.prototype.getResolution=function(e){return this.resolutions_[e]},n.prototype.getResolutions=function(){return this.resolutions_},n.prototype.getTileCoordChildTileRange=function(e,t,r){if(e[0]this.maxZoom||t"u"?"undefined":o};return n.replace(id.tokenRegEx,r)},tokenRegEx:/\$\{([\w.]+?)\}/g,numberRegEx:/^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/,isNumeric:function(n){return id.numberRegEx.test(n)},numericIf:function(n){return id.isNumeric(n)?parseFloat(n):n}},B8={decimalSeparator:".",thousandsSeparator:",",limitSigDigs:function(n,e){var t=0;return e>0&&(t=parseFloat(n.toPrecision(e))),t},format:function(n,e,t,r){e=typeof e<"u"?e:0,t=typeof t<"u"?t:B8.thousandsSeparator,r=typeof r<"u"?r:B8.decimalSeparator,e!=null&&(n=parseFloat(n.toFixed(e)));var i=n.toString().split(".");i.length===1&&e==null&&(e=0);var a=i[0];if(t)for(var o=/(-?[0-9]+)([0-9]{3})/;o.test(a);)a=a.replace(o,"$1"+t+"$2");var s;if(e==0)s=a;else{var l=i.length>1?i[1]:"0";e!=null&&(l=l+new Array(e-l.length+1).join("0")),s=a+r+l}return s}};Number.prototype.limitSigDigs||(Number.prototype.limitSigDigs=function(n){return B8.limitSigDigs(this,n)});var UR={bind:function(n,e){var t=Array.prototype.slice.apply(arguments,[2]);return function(){var r=t.concat(Array.prototype.slice.apply(arguments,[0]));return n.apply(e,r)}},bindAsEventListener:function(n,e){return function(t){return n.call(e,t||window.event)}},False:function(){return!1},True:function(){return!0},Void:function(){}},zat={filter:function(n,e,t){var r=[];if(Array.prototype.filter)r=n.filter(e,t);else{var i=n.length;if(typeof e!="function")throw new TypeError;for(var a=0;a-1||i.indexOf("trident")>-1&&i.indexOf("rv")>-1?(n="msie",r=i.match(/msie ([\d.]+)/)||i.match(/rv:([\d.]+)/)):i.indexOf("chrome")>-1?(n="chrome",r=i.match(/chrome\/([\d.]+)/)):i.indexOf("firefox")>-1?(n="firefox",r=i.match(/firefox\/([\d.]+)/)):i.indexOf("opera")>-1?(n="opera",r=i.match(/version\/([\d.]+)/)):i.indexOf("safari")>-1&&(n="safari",r=i.match(/version\/([\d.]+)/)),e=r?r[1]:"",i.indexOf("ipad")>-1||i.indexOf("ipod")>-1||i.indexOf("iphone")>-1?t="apple":i.indexOf("android")>-1&&(r=i.match(/version\/([\d.]+)/),e=r?r[1]:"",t="android"),{name:n,version:e,device:t}}(),Uat=function(){var n=!0,e=Ane;return document.createElement("canvas").getContext?(e.name==="firefox"&&parseFloat(e.version)<5&&(n=!1),e.name==="safari"&&parseFloat(e.version)<4&&(n=!1),e.name==="opera"&&parseFloat(e.version)<10&&(n=!1),e.name==="msie"&&parseFloat(e.version)<9&&(n=!1)):n=!1,n}(),Vat=function(){var n=navigator.userAgent.toLowerCase();return n.indexOf("webkit")===-1&&n.indexOf("gecko")!==-1}(),eE=96,W={assign(n){for(var e=0;e=0;t--)n[t]===e&&n.splice(t,1);return n},indexOf:function(n,e){if(n==null)return-1;if(typeof n.indexOf=="function")return n.indexOf(e);for(var t=0,r=n.length;t=0&&parseFloat(s)<1?(n.style.filter="alpha(opacity="+s*100+")",n.style.opacity=s):parseFloat(s)===1&&(n.style.filter="",n.style.opacity="")},applyDefaults:function(n,e){n=n||{};var t=typeof window.Event=="function"&&e instanceof window.Event;for(var r in e)(n[r]===void 0||!t&&e.hasOwnProperty&&e.hasOwnProperty(r)&&!n.hasOwnProperty(r))&&(n[r]=e[r]);return!t&&e&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&!n.hasOwnProperty("toString")&&(n.toString=e.toString),n},getParameterString:function(n){var e=[];for(var t in n){var r=n[t];if(r!=null&&typeof r!="function"){var i;Array.isArray(r)||r.toString()==="[object Object]"?i=encodeURIComponent(JSON.stringify(r)):i=encodeURIComponent(r),e.push(encodeURIComponent(t)+"="+i)}}return e.join("&")},urlAppend:function(n,e){var t=n;if(e){e.indexOf("?")===0&&(e=e.substring(1));var r=(n+" ").split(/[?&]/);t+=r.pop()===" "?e:r.length?"&"+e:"?"+e}return t},urlPathAppend:function(n,e){let t=n;if(!e)return t;e.indexOf("/")===0&&(e=e.substring(1));const r=n.split("?");return r[0].indexOf("/",r[0].length-1)<0&&(r[0]+="/"),t=`${r[0]}${e}${r.length>1?`?${r[1]}`:""}`,t},DEFAULT_PRECISION:14,toFloat:function(n,e){return e==null&&(e=W.DEFAULT_PRECISION),typeof n!="number"&&(n=parseFloat(n)),e===0?n:parseFloat(n.toPrecision(e))},rad:function(n){return n*Math.PI/180},getParameters:function(n){n=n==null?window.location.href:n;var e="";if(id.contains(n,"?")){var t=n.indexOf("?")+1,r=id.contains(n,"#")?n.indexOf("#"):n.length;e=n.substring(t,r)}for(var i={},a=e.split(/[&;]/),o=0,s=a.length;o1?1/n:n;return e},getResolutionFromScale:function(n,e){var t;if(n){e==null&&(e="degrees");var r=W.normalizeScale(n);t=1/(r*Ii[e]*eE)}return t},getScaleFromResolution:function(n,e){e==null&&(e="degrees");var t=n*Ii[e]*eE;return t},getBrowser:function(){return Ane},isSupportCanvas:Uat,supportCanvas:function(){return W.isSupportCanvas},isInTheSameDomain:function(n){if(!n)return!0;var e=n.indexOf("//"),t=document.location.toString(),r=t.indexOf("//");if(e===-1)return!0;var i,a=i=n.substring(0,e),o=t.substring(r+2);r=o.indexOf("/");var s=o.indexOf(":"),l=o.substring(0,r),u=document.location.protocol;if(s!==-1||(l+=":"+(u.toLowerCase()==="http:"?80:443)),u.toLowerCase()!==a.toLowerCase())return!1;a=n.substring(e+2);var h=a.indexOf(":");e=a.indexOf("/");var c=a.substring(0,e),f;h!==-1?f=a.substring(0,h):(f=a.substring(0,e),c+=":"+(i.toLowerCase()==="http:"?80:443));var d=document.domain;return f===d&&c===l},calculateDpi:function(n,e,t,r,i){if(!(!n||!e||!t)){var a=1e4,o=n.getWidth(),s=n.getHeight(),l=e.w,u=e.h;i=i||6378137,r=r||"degrees";var h;if(r.toLowerCase()==="degree"||r.toLowerCase()==="degrees"||r.toLowerCase()==="dd"){let c=o/l,f=s/u,d=c>f?c:f;h=.0254*a/d/t/(Math.PI*2*i/360)/a}else{let c=o/l;h=.0254*a/c/t/a}return h}},toJSON:function(n){var e=n;if(e==null)return null;switch(e.constructor){case String:return e='"'+e.replace(/(["\\])/g,"\\$1")+'"',e=e.replace(/\n/g,"\\n"),e=e.replace(/\r/g,"\\r"),e=e.replace("<","<"),e=e.replace(">",">"),e=e.replace(/%/g,"%25"),e=e.replace(/&/g,"%26"),e;case Array:for(var t="",r=0,i=e.length;r0?"{"+o.join(",")+"}":"{}"}return e.toString()}},getResolutionFromScaleDpi:function(n,e,t,r){var i=null,a=1e4;return r=r||6378137,t=t||"",n>0&&e>0?(n=W.normalizeScale(n),t.toLowerCase()==="degree"||t.toLowerCase()==="degrees"||t.toLowerCase()==="dd"?(i=.0254*a/e/n/(Math.PI*2*r/360)/a,i):(i=.0254*a/e/n/a,i)):-1},getScaleFromResolutionDpi:function(n,e,t,r){var i=null,a=1e4;return r=r||6378137,t=t||"",n>0&&e>0?t.toLowerCase()==="degree"||t.toLowerCase()==="degrees"||t.toLowerCase()==="dd"?(i=.0254*a/e/n/(Math.PI*2*r/360)/a,i):(i=.0254*a/e/n/a,i):-1},transformResult:function(n){return n.responseText&&typeof n.responseText=="string"&&(n=JSON.parse(n.responseText)),n},copyAttributes:function(n,e){if(n=n||{},e)for(var t in e){var r=e[t];r!==void 0&&t!=="CLASS_NAME"&&typeof r!="function"&&(n[t]=r)}return n},copyAttributesWithClip:function(n,e,t){if(n=n||{},e)for(var r in e){var i=!1;if(t&&t.length){for(var a=0,o=t.length;a=0&&o<=1&&a<=1&&o>=0?i=new rg.Point(n.x+a*(e.x-n.x),n.y+a*(e.y-n.y)):i="No Intersection";else if(s==0&&l==0){var h=Math.max(n.y,e.y),c=Math.min(n.y,e.y),f=Math.max(n.x,e.x),d=Math.min(n.x,e.x);(t.y>=c&&t.y<=h||r.y>=c&&r.y<=h)&&t.x>=d&&t.x<=f||r.x>=d&&r.x<=f?i="Coincident":i="Parallel"}else i="Parallel";return i},getTextBounds:function(n,e,t){document.body.appendChild(t),t.style.width="auto",t.style.height="auto",n.fontSize&&(t.style.fontSize=n.fontSize),n.fontFamily&&(t.style.fontFamily=n.fontFamily),n.fontWeight&&(t.style.fontWeight=n.fontWeight),t.style.position="relative",t.style.visibility="hidden",t.style.display="inline-block",t.innerHTML=e;var r=t.clientWidth,i=t.clientHeight;return document.body.removeChild(t),{textWidth:r,textHeight:i}},convertPath:function(n,e){return e?n.replace(/\{([\w-\.]+)\}/g,(t,r)=>{var i;return e.hasOwnProperty(r)?i=$at(e[r]):i=t,encodeURIComponent(i)}):n}},Ii={inches:1,ft:12,mi:63360,m:39.3701,km:39370.1,dd:4374754,yd:36};Ii.in=Ii.inches;Ii.degrees=Ii.dd;Ii.nmi=1852*Ii.m;const Fn=.0254000508001016;W.extend(Ii,{Inch:Ii.inches,Meter:1/Fn,Foot:.3048006096012192/Fn,IFoot:.3048/Fn,ClarkeFoot:.3047972651151/Fn,SearsFoot:.30479947153867626/Fn,GoldCoastFoot:.3047997101815088/Fn,IInch:.0254/Fn,MicroInch:254e-7/Fn,Mil:254e-10/Fn,Centimeter:.01/Fn,Kilometer:1e3/Fn,Yard:.9144018288036576/Fn,SearsYard:.914398414616029/Fn,IndianYard:.9143985307444408/Fn,IndianYd37:.91439523/Fn,IndianYd62:.9143988/Fn,IndianYd75:.9143985/Fn,IndianFoot:.30479951/Fn,IndianFt37:.30479841/Fn,IndianFt62:.3047996/Fn,IndianFt75:.3047995/Fn,Mile:1609.3472186944373/Fn,IYard:.9144/Fn,IMile:1609.344/Fn,NautM:1852/Fn,"Lat-66":110943.31648893273/Fn,"Lat-83":110946.25736872235/Fn,Decimeter:.1/Fn,Millimeter:.001/Fn,Dekameter:10/Fn,Decameter:10/Fn,Hectometer:100/Fn,GermanMeter:1.0000135965/Fn,CaGrid:.999738/Fn,ClarkeChain:20.1166194976/Fn,GunterChain:20.11684023368047/Fn,BenoitChain:20.116782494375872/Fn,SearsChain:20.11676512155/Fn,ClarkeLink:.201166194976/Fn,GunterLink:.2011684023368047/Fn,BenoitLink:.20116782494375873/Fn,SearsLink:.2011676512155/Fn,Rod:5.02921005842012/Fn,IntnlChain:20.1168/Fn,IntnlLink:.201168/Fn,Perch:5.02921005842012/Fn,Pole:5.02921005842012/Fn,Furlong:201.1684023368046/Fn,Rood:3.778266898/Fn,CapeFoot:.3047972615/Fn,Brealey:375/Fn,ModAmFt:.304812252984506/Fn,Fathom:1.8288/Fn,"NautM-UK":1853.184/Fn,"50kilometers":5e4/Fn,"150kilometers":15e4/Fn});W.extend(Ii,{mm:Ii.Meter/1e3,cm:Ii.Meter/100,dm:Ii.Meter*100,km:Ii.Meter*1e3,kmi:Ii.nmi,fath:Ii.Fathom,ch:Ii.IntnlChain,link:Ii.IntnlLink,"us-in":Ii.inches,"us-ft":Ii.Foot,"us-yd":Ii.Yard,"us-ch":Ii.GunterChain,"us-mi":Ii.Mile,"ind-yd":Ii.IndianYd37,"ind-ft":Ii.IndianFt37,"ind-ch":20.11669506/Fn});Ii.degree=Ii.dd;Ii.meter=Ii.m;Ii.foot=Ii.ft;Ii.inch=Ii.inches;Ii.mile=Ii.mi;Ii.kilometer=Ii.km;Ii.yard=Ii.yd;function $at(n){return n==null||n==null?"":n instanceof Date?n.toJSON():Wat(n)?JSON.stringify(n):n.toString()}function Wat(n){if(typeof n!="string"&&typeof n!="object")return!1;try{const e=n.toString();return e==="[object Object]"||e==="[object Array]"}catch{return!1}}class vd{constructor(e,t){W.isArray(e)&&(t=e[1],e=e[0]),this.lon=e?W.toFloat(e):0,this.lat=t?W.toFloat(t):0,this.CLASS_NAME="SuperMap.LonLat"}toString(){return"lon="+this.lon+",lat="+this.lat}toShortString(){return this.lon+","+this.lat}clone(){return new vd(this.lon,this.lat)}add(e,t){if(e==null||t==null)throw new TypeError("LonLat.add cannot receive null values");return new vd(this.lon+W.toFloat(e),this.lat+W.toFloat(t))}equals(e){var t=!1;return e!=null&&(t=this.lon===e.lon&&this.lat===e.lat||isNaN(this.lon)&&isNaN(this.lat)&&isNaN(e.lon)&&isNaN(e.lat)),t}wrapDateLine(e){var t=this.clone();if(e){for(;t.lone.right;)t.lon-=e.getWidth()}return t}destroy(){this.lon=null,this.lat=null}static fromString(e){var t=e.split(",");return new vd(t[0],t[1])}static fromArray(e){var t=W.isArray(e),r=t&&e[0],i=t&&e[1];return new vd(r,i)}}class po{constructor(e,t,r,i){W.isArray(e)&&(i=e[3],r=e[2],t=e[1],e=e[0]),this.left=e!=null?W.toFloat(e):this.left,this.bottom=t!=null?W.toFloat(t):this.bottom,this.right=r!=null?W.toFloat(r):this.right,this.top=i!=null?W.toFloat(i):this.top,this.centerLonLat=null,this.CLASS_NAME="SuperMap.Bounds"}clone(){return new po(this.left,this.bottom,this.right,this.top)}equals(e){var t=!1;return e!=null&&(t=this.left===e.left&&this.right===e.right&&this.top===e.top&&this.bottom===e.bottom),t}toString(){return[this.left,this.bottom,this.right,this.top].join(",")}toArray(e){return e===!0?[this.bottom,this.left,this.top,this.right]:[this.left,this.bottom,this.right,this.top]}toBBOX(e,t){e==null&&(e=6);var r=Math.pow(10,e),i=Math.round(this.left*r)/r,a=Math.round(this.bottom*r)/r,o=Math.round(this.right*r)/r,s=Math.round(this.top*r)/r;return t===!0?a+","+i+","+s+","+o:i+","+a+","+o+","+s}getWidth(){return this.right-this.left}getHeight(){return this.top-this.bottom}getSize(){return new a3(this.getWidth(),this.getHeight())}getCenterPixel(){return new WE((this.left+this.right)/2,(this.bottom+this.top)/2)}getCenterLonLat(){return this.centerLonLat||(this.centerLonLat=new vd((this.left+this.right)/2,(this.bottom+this.top)/2)),this.centerLonLat}scale(e,t){e=e||1,t==null&&(t=this.getCenterLonLat());var r,i;t.CLASS_NAME==="SuperMap.LonLat"?(r=t.lon,i=t.lat):(r=t.x,i=t.y);var a=(this.left-r)*e+r,o=(this.bottom-i)*e+i,s=(this.right-r)*e+r,l=(this.top-i)*e+i;return new po(a,o,s,l)}add(e,t){if(e==null||t==null)throw new TypeError("Bounds.add cannot receive null values");return new po(this.left+e,this.bottom+t,this.right+e,this.top+t)}extend(e){var t=null;if(e){switch(e.CLASS_NAME){case"SuperMap.LonLat":t=new po(e.lon,e.lat,e.lon,e.lat);break;case"SuperMap.Geometry.Point":t=new po(e.x,e.y,e.x,e.y);break;case"SuperMap.Bounds":t=e;break}t&&(this.centerLonLat=null,(this.left==null||t.leftthis.right)&&(this.right=t.right),(this.top==null||t.top>this.top)&&(this.top=t.top))}}containsLonLat(e,t){typeof t=="boolean"&&(t={inclusive:t}),t=t||{};var r=this.contains(e.lon,e.lat,t.inclusive),i=t.worldBounds;if(i&&!r){var a=i.getWidth(),o=(i.left+i.right)/2,s=Math.round((e.lon-o)/a);r=this.containsLonLat({lon:e.lon-s*a,lat:e.lat},{inclusive:t.inclusive})}return r}containsPixel(e,t){return this.contains(e.x,e.y,t)}contains(e,t,r){if(r==null&&(r=!0),e==null||t==null)return!1;var i=!1;return r?i=e>=this.left&&e<=this.right&&t>=this.bottom&&t<=this.top:i=e>this.left&&ethis.bottom&&t=r.bottom&&e.bottom<=r.top||r.bottom>=e.bottom&&r.bottom<=e.top,s=e.top>=r.bottom&&e.top<=r.top||r.top>e.bottom&&r.top=r.left&&e.left<=r.right||r.left>=e.left&&r.left<=e.right,u=e.right>=r.left&&e.right<=r.right||r.right>=e.left&&r.right<=e.right;i=(o||s)&&(l||u)}if(t.worldBounds&&!i){var h=t.worldBounds,c=h.getWidth(),f=!h.containsBounds(r),d=!h.containsBounds(e);f&&!d?(e=e.add(-c,0),i=r.intersectsBounds(e,{inclusive:t.inclusive})):d&&!f&&(r=r.add(-c,0),i=e.intersectsBounds(r,{inclusive:t.inclusive}))}return i}containsBounds(e,t,r){t==null&&(t=!1),r==null&&(r=!0);var i=this.contains(e.left,e.bottom,r),a=this.contains(e.right,e.bottom,r),o=this.contains(e.left,e.top,r),s=this.contains(e.right,e.top,r);return t?i||a||o||s:i&&a&&o&&s}determineQuadrant(e){var t="",r=this.getCenterLonLat();return t+=e.lat=e.right&&a.right>e.right;)a=a.add(-o,0);var s=a.left+r;se.left&&a.right-i>e.right&&(a=a.add(-o,0))}return a}toServerJSONObject(){var e={rightTop:{x:this.right,y:this.top},leftBottom:{x:this.left,y:this.bottom},left:this.left,right:this.right,top:this.top,bottom:this.bottom};return e}destroy(){this.left=null,this.right=null,this.top=null,this.bottom=null,this.centerLonLat=null}static fromString(e,t){var r=e.split(",");return po.fromArray(r,t)}static fromArray(e,t){return t===!0?new po(e[1],e[0],e[3],e[2]):new po(e[0],e[1],e[2],e[3])}static fromSize(e){return new po(0,e.h,e.w,0)}static oppositeQuadrant(e){var t="";return t+=e.charAt(0)==="t"?"b":"t",t+=e.charAt(1)==="l"?"r":"l",t}}class O0 extends rg{constructor(e){super(),this.components=[],this.componentTypes=null,e!=null&&this.addComponents(e),this.CLASS_NAME="SuperMap.Geometry.Collection",this.geometryType="Collection"}destroy(){this.components.length=0,this.components=null,super.destroy()}clone(){for(var e=new O0,t=0,r=this.components.length;t-1)){if(t!=null&&t=0;--r)t=this.removeComponent(e[r])||t;return t}removeComponent(e){return W.removeItem(this.components,e),this.clearBounds(),!0}getArea(){for(var e=0,t=0,r=this.components.length;t2;return t&&super.removeComponent.apply(this,arguments),t}getSortedSegments(){for(var e=this.components.length-1,t=new Array(e),r,i,a=0;a=1?1:x,x=x<=-1?-1:x,c=Math.acos(x)*180/Math.PI,a.x==r.x?c=t.x>r.x&&i.x>r.x||t.xv*t.x+p&&i.y>v*i.x+p||t.yr.y?i.xr.x&&(l=!1):a.xv*i.x+p&&(l=!1):a.x>r.x?i.y>r.y&&(l=!1):i.y=0?Math.atan(S)*180/Math.PI:Math.abs(Math.atan(S)*180/Math.PI)+90,b=Math.abs(t.y);r.y==b&&b==a.y&&r.x=0?S>=0?h=h+u:h=180-(h-90)+u:S>0?h=h-180+u:h=90-h+u:E>=0?S>=0?h=h-u:h=180-(h-90)-u:S>=0?h=h-180-u:h=90-h-u,h=h*Math.PI/180;var C=t.x+o*Math.cos(h),A=t.y+o*Math.sin(h);d.push(new Ki(C,A))}d.push(a)}return d}static createLineEPS(e){var t=[],r=e.length;if(r<2)return e;for(var i=0;i1&&(r=parseFloat(r)*d),i.labelAlign&&i.labelAlign!=="cm")switch(i.labelAlign){case"lt":h.x+=t/2,h.y+=r/2;break;case"lm":h.x+=t/2;break;case"lb":h.x+=t/2,h.y-=r/2;break;case"ct":h.y+=r/2;break;case"cb":h.y-=r/2;break;case"rt":h.x-=t/2,h.y+=r/2;break;case"rm":h.x-=t/2;break;case"rb":h.x-=t/2,h.y-=r/2;break}return this.bsInfo.h=r,this.bsInfo.w=t,o=h.x-parseFloat(t)/2,s=h.y+parseFloat(r)/2,u=h.x+parseFloat(t)/2,l=h.y-parseFloat(r)/2,a=new po(o,s,u,l),a}getLabelPxBoundsByText(e,t){var r,i,a,o,s,l=this.getLabelPxSize(t),u=W.cloneObject(e);if(t.labelAlign&&t.labelAlign!=="cm")switch(t.labelAlign){case"lt":u.x+=l.w/2,u.y+=l.h/2;break;case"lm":u.x+=l.w/2;break;case"lb":u.x+=l.w/2,u.y-=l.h/2;break;case"ct":u.y+=l.h/2;break;case"cb":u.y-=l.h/2;break;case"rt":u.x-=l.w/2,u.y+=l.h/2;break;case"rm":u.x-=l.w/2;break;case"rb":u.x-=l.w/2,u.y-=l.h/2;break}return this.bsInfo.h=l.h,this.bsInfo.w=l.w,i=u.x-l.w/2,a=u.y+l.h/2,t.fontStyle&&t.fontStyle==="italic"?s=u.x+l.w/2+parseInt(parseFloat(t.fontSize)/2):s=u.x+l.w/2,o=u.y-l.h/2,r=new po(i,a,s,o),r}getLabelPxSize(e){var t,r,i=1,a=.2,o=parseFloat(e.strokeWidth);t=e.label||this.text,e.fontSize?r=parseFloat(e.fontSize):r=parseFloat("12px");var s,l,u=t.split(` +`),h=u.length;h>1?l=r*h+h+o+a*r:l=r+o+a*r+1,s=0,this.labelWTmp&&s255?r++:i++;return t.cnC=r,t.enC=i,t.textC=e.length,t}}class tv extends Vl{constructor(e){super(e),this.componentTypes=["SuperMap.Geometry.Point"],this.CLASS_NAME="SuperMap.Geometry.LinearRing",this.geometryType="LinearRing"}addComponent(e,t){var r=!1,i=this.components.pop();(t!=null||!e.equals(i))&&(r=super.addComponent.apply(this,arguments));var a=this.components[0];return super.addComponent.apply(this,[a]),r}removeComponent(e){var t=this.components&&this.components.length>3;if(t){this.components.pop(),super.removeComponent.apply(this,arguments);var r=this.components[0];super.addComponent.apply(this,[r])}return t}getArea(){var e=0;if(this.components&&this.components.length>2){for(var t=0,r=0,i=this.components.length;r0){e+=Math.abs(this.components[0].getArea());for(var t=1,r=this.components.length;t1},isLeftClick:function(n){return n.which&&n.which===1||n.button&&n.button===1},isRightClick:function(n){return n.which&&n.which===3||n.button&&n.button===2},stop:function(n,e){e||(n.preventDefault?n.preventDefault():n.returnValue=!1),n.stopPropagation?n.stopPropagation():n.cancelBubble=!0},findElement:function(n,e){for(var t=Ul.element(n);t.parentNode&&(!t.tagName||t.tagName.toUpperCase()!=e.toUpperCase());)t=t.parentNode;return t},observe:function(n,e,t,r){var i=W.getElement(n);if(r=r||!1,e==="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||i.attachEvent)&&(e="keydown"),this.observers||(this.observers={}),!i._eventCacheID){var a="eventCacheID_";i.id&&(a=i.id+"_"+a),i._eventCacheID=W.createUniqueID(a)}var o=i._eventCacheID;this.observers[o]||(this.observers[o]=[]),this.observers[o].push({element:i,name:e,observer:t,useCapture:r}),i.addEventListener?e==="mousewheel"?i.addEventListener(e,t,{useCapture:r,passive:!1}):i.addEventListener(e,t,r):i.attachEvent&&i.attachEvent("on"+e,t)},stopObservingElement:function(n){var e=W.getElement(n),t=e._eventCacheID;this._removeElementObservers(Ul.observers[t])},_removeElementObservers:function(n){if(n)for(var e=n.length-1;e>=0;e--){var t=n[e],r=new Array(t.element,t.name,t.observer,t.useCapture);Ul.stopObserving.apply(this,r)}},stopObserving:function(n,e,t,r){r=r||!1;var i=W.getElement(n),a=i._eventCacheID;e==="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||i.detachEvent)&&(e="keydown");var o=!1,s=Ul.observers[a];if(s)for(var l=0;!o&&l0){e+='"points":[';for(var r=0,i=this.components.length;r0)for(var o=0,s=0,l=[];o0){if(i===1)return new Ki(r[0].x,r[0].y);var a=[];for(let o=0;o0)if(i===1){let a=[];for(let o=0;o0)if(u===1){for(i=0,o=[];i=0;m--)if(v[g]=-1,c[m].containsBounds(c[g])){f[g]=f[m]*-1,f[g]<0&&(v[g]=m);break}for(let g=0;g0?o.push(h[g]):(o[v[g]].components=o[v[g]].components.concat(h[g].components),o.push(""))}else{o=new Array;for(let g=0;g0&&o.length>0&&(o[o.length-1].components=o[o.length-1].components.concat(l),l=[]),o.push(h[g])),g==a-1){var p=o.length;if(p)o[p-1].components=o[p-1].components.concat(l);else for(let m=0,y=l.length;m=0;_--)if(g[y]=-1,d[_].containsBounds(d[y])){v[y]=v[_]*-1,v[y]<0&&(g[y]=_);break}for(let y=0;y0?o.push(f[y]):(o[g[y]].components=o[g[y]].components.concat(f[y].components),o.push(""))}else{o=new Array;for(let y=0;y0&&o.length>0&&(o[o.length-1].components=o[o.length-1].components.concat(h),h=[]),o.push(f[y])),y==a-1){var m=o.length;if(m)o[m-1].components=o[m-1].components.concat(h);else for(let _=0,x=h.length;_e[o]){var s=e[o];e[o]=e[a],e[a]=s;var l=t[o];if(t[o]=t[a],t[a]=l,r&&r.length>0){var u=r[o];r[o]=r[a],r[a]=u}if(i&&i.length>0){var h=i[o];i[o]=i[a],i[a]=h}}}}class jat extends Vo{constructor(e){super(e),this.CLASS_NAME="SuperMap.Geometry3D",this.position=null,this.rotationX=null,this.rotationY=null,this.rotationZ=null,this.scaleX=null,this.scaleY=null,this.scaleZ=null,W.extend(this,e)}destroy(){this.position=null,this.rotationX=null,this.rotationY=null,this.rotationZ=null,this.scaleX=null,this.scaleY=null,this.scaleZ=null}}const bg={UNKNOWN:"Unknown",INSERT:"Insert",UPDATE:"Update",DELETE:"Delete"};class sc extends LOe{constructor(e,t,r){super(null,null,t),this.fid=null,this.geometry=e||null,this.attributes={},t&&(this.attributes=W.extend(this.attributes,t)),this.bounds=null,this.state=null,this.style=r||null,this.url=null,this.lonlat=null,this.CLASS_NAME="SuperMap.Feature.Vector",sc.style={default:{fillColor:"#ee9900",fillOpacity:.4,hoverFillColor:"white",hoverFillOpacity:.8,strokeColor:"#ee9900",strokeOpacity:1,strokeWidth:1,strokeLinecap:"round",strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"inherit",fontColor:"#000000",labelAlign:"cm",labelOutlineColor:"white",labelOutlineWidth:3},select:{fillColor:"blue",fillOpacity:.4,hoverFillColor:"white",hoverFillOpacity:.8,strokeColor:"blue",strokeOpacity:1,strokeWidth:2,strokeLinecap:"round",strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"pointer",fontColor:"#000000",labelAlign:"cm",labelOutlineColor:"white",labelOutlineWidth:3},temporary:{fillColor:"#66cccc",fillOpacity:.2,hoverFillColor:"white",hoverFillOpacity:.8,strokeColor:"#66cccc",strokeOpacity:1,strokeLinecap:"round",strokeWidth:2,strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"default",fontColor:"#000000",labelAlign:"cm",labelOutlineColor:"white",labelOutlineWidth:3},delete:{display:"none"}}}destroy(){this.layer&&(this.layer.removeFeatures(this),this.layer=null),this.geometry=null,super.destroy()}clone(){return new sc(this.geometry?this.geometry.clone():null,this.attributes,this.style)}toState(e){if(e===bg.UPDATE)switch(this.state){case bg.UNKNOWN:case bg.DELETE:this.state=e;break}else if(e===bg.INSERT)switch(this.state){case bg.UNKNOWN:break;default:this.state=e;break}else if(e===bg.DELETE)switch(this.state){case bg.INSERT:break;case bg.DELETE:break;case bg.UNKNOWN:case bg.UPDATE:this.state=e;break}else e===bg.UNKNOWN&&(this.state=e)}}class Ine{constructor(e){this.data=null,this.keepData=!1,W.extend(this,e),this.options=e,this.CLASS_NAME="SuperMap.Format"}destroy(){}read(e){}write(e){}}class gz extends Ine{constructor(e){super(e),this.indent=" ",this.space=" ",this.newline=` +`,this.level=0,this.pretty=!1,this.nativeJSON=function(){return!!(window.JSON&&typeof JSON.parse=="function"&&typeof JSON.stringify=="function")}(),this.CLASS_NAME="SuperMap.Format.JSON",this.serialize={object:function(t){if(t==null)return"null";if(t.constructor===Date)return this.serialize.date.apply(this,[t]);if(t.constructor===Array)return this.serialize.array.apply(this,[t]);var r=["{"];this.level+=1;var i,a,o,s=!1;for(i in t)t.hasOwnProperty(i)&&(a=this.write.apply(this,[i,this.pretty]),o=this.write.apply(this,[t[i],this.pretty]),a!=null&&o!=null&&(s&&r.push(","),r.push(this.writeNewline(),this.writeIndent(),a,":",this.writeSpace(),o),s=!0));return this.level-=1,r.push(this.writeNewline(),this.writeIndent(),"}"),r.join("")},array:function(t){var r,i=["["];this.level+=1;for(var a=0,o=t.length;a0&&i.push(","),i.push(this.writeNewline(),this.writeIndent(),r));return this.level-=1,i.push(this.writeNewline(),this.writeIndent(),"]"),i.join("")},string:function(t){var r={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return/["\\\x00-\x1f]/.test(t)?'"'+t.replace(/([\x00-\x1f\\"])/g,function(i,a){var o=r[a];return o||(o=a.charCodeAt(),"\\u00"+Math.floor(o/16).toString(16)+(o%16).toString(16))})+'"':'"'+t+'"'},number:function(t){return isFinite(t)?String(t):"null"},boolean:function(t){return String(t)},date:function(t){function r(i){return i<10?"0"+i:i}return'"'+t.getFullYear()+"-"+r(t.getMonth()+1)+"-"+r(t.getDate())+"T"+r(t.getHours())+":"+r(t.getMinutes())+":"+r(t.getSeconds())+'"'}}}read(e,t){var r;if(this.nativeJSON)try{r=JSON.parse(e,t)}catch{return{data:e}}return this.keepData&&(this.data=r),r}write(e,t){this.pretty=!!t;var r=null,i=typeof e;if(this.serialize[i])try{r=!this.pretty&&this.nativeJSON?JSON.stringify(e):this.serialize[i].apply(this,[e])}catch{}return r}writeIndent(){var e=[];if(this.pretty)for(var t=0;tthis._toiSevrerFeature(a)):this._toiSevrerFeature(i)}toGeoJSON(e){var t={type:null};if(W.isArray(e)){t.type="FeatureCollection";var r=e.length;t.features=new Array(r);for(var i=0;i-1||(t[i]=e[i]);function a(o,s){if(!!(o.hasOwnProperty("fieldNames")&&o.hasOwnProperty("fieldValues"))){var l=o.fieldNames,u=o.fieldValues;for(var h in l)s[l[h]]=u[h]}}return t}}class Xat extends Ine{constructor(e){super(e),this.regExes={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/},this.CLASS_NAME="SuperMap.Format.WKT",this.extract={point:function(t){return t.x+" "+t.y},multipoint(t){for(var r=[],i=0,a=t.components.length;i0&&a.push(","),r=t[o].geometry,a.push(this.extractGeometry(r));return i&&a.push(")"),a.join("")}extractGeometry(e){var t=e.CLASS_NAME.split(".")[2].toLowerCase();if(!this.extract[t])return null;var r=t==="collection"?"GEOMETRYCOLLECTION":t.toUpperCase(),i=r+"("+this.extract[t].apply(this,[e])+")";return i}}var Yat="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF4AAAAdCAYAAAAjHtusAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozYWZlOGIwMi01MWE3LTRiZjYtYWVkYS05MGQ2ZTQ4YjZiMmUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ODg0NkFBQUE3RjEzMTFFNzhFRjJFQkY4RjcxQjc1NjIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODg0NkFBQTk3RjEzMTFFNzhFRjJFQkY4RjcxQjc1NjIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4MWI3NzdhNC1lZmEyLTQ1MzUtOGQzNi03MmRjNDkyODMzN2UiIHN0UmVmOmRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDpjYTYzODVjMi1jNDQ1LTExN2EtYTc0ZC1lM2I5MzJlMGE4Y2QiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5q1HM0AAAF/ElEQVR42tSabYhUVRjHZ7W01C1uaCRW4F3oi9SXCUnwQ9gsGUFvOEtQH1bLu5VS9sbYh5KicjYt29qiGQwVg2xWWKgocob91AvC+CWsoJqB3qHMSdTMpZyeU/+Df07n3pk7997Z6cBv99z7nHvOvf/z/pxJNZvNVI/jCKXmv6EquAmVkxPSlvtp2GItr0/96fFQForChJAWDiVYTkMYMu4XBFcYjLOwWS3sNwmn8NGzZ0h4Flv/zwIdchAnh/slCGmmKUNIBzYPaXOUr0vPuEjD71JAPh7l61embzinhV3V8nnCGmGT8LwlzSL8/yUh4Tfjo9T/CgnCIYNKycA2Qq21AcHU/VHE80Idoo3Qs0W6p0UtUnkZvEMDeVcCyqxEafF7hL8Qf0oYsIj+lfC9cH1CwhchWAGCtZO+AooQOkdC1Km1VtCb63StW73uFSzgKFUkNwBbmZGGmqowhvg8ZNpH9oXChcIcYRdeNomgxLkaH+S1SGubAxyIpFv+Zp+0DYjrAS00j/dem2VGEl6FJ4Qa4quEu8j2hTCJ+GJhe4JjfQMf6JCYPPbysMPxBlp0BUKOogEF9Rg9/heNvNKYfM0KsZUZaYxX4STGrzJa+zbhPeFH2DcK10KItcI+pI0rVElwXl1ULaKnIJhDw0oRQpTQc1zcbwRU8ATy4DR6yMlTzwkqMziEWHvubJ4Nk4ZtHdnqwvwY17xq3Z4FjrG+z2Kdrdf2ZSGD+xlLPh6t1R0jP9fI22ZzKI92yvQl7EbmBxI4S7Y+vIAOL87QZqsc5uNnssxZIcfYjXT9snCR7jjobidp+FkxA2v+Cq1QervMDmp4P7Xs3YZtE9kOC3P/By6JGaETl8ElwueYTNTDq4UDsKnd7YfCNbT239LF1udS72xYJt1UWxNfN4IIP4bWuTpEja01JtMFZFsm/AHbtHBlDE6yasA4moYTrUbvdBTXHqUrAH4uSadbyzF+vbBM2IsNkS3MNa5305JxqfA02T4TnkX8XOH1mPw8ruVejpxbI9hZD2Cz1U7LdrrUvjP/WfZinNZhr6V27hP+FPZh9aLvLxVO4DllX0G2OcKnlO/DCblxaz6uXBtmi+8mBaP3/SP8IuEIiTRoPPQm2TaEmEyXo0JU+F0YiPFD0hhOsiE/vqeEVwyTgF8L51OilcIZ2I4Ll5NttvAJPfukUeB2sk0ZPSbKIUUJpCII7+DasWy08uhNNazT0wGHI7mAtB7KqMKm38HhDdAUibTVKGicbB8YAqrJ9DRsp43JdB4qUof1HQrPE6XTQWu3Ce/inVzjXhXpMiTwUYugNVQ+p80jrUsV5EH0POKeuXO9QjhFq5GryNYvfEMCDhsftYVsB9ETtG0V9ZjfhCURhbcJFpfwVZ9jvhxsLHwTYtp2svlWQw3vXL8UnqHVSIG8l8ex+tHhBXgjddgqHEZ8ufAA2aaEnYgrF/KrPXrEmMUqZ9THLW06xhoBaVueQpkug+ewOUphE3Qv2Q5gGamXYa+QbVq4O+DQ5FHyZqrjxNt7UHh9uuRa0F7HjCF8o9PCTOGnscM7g2u1Hl9C9oeEnxC/1ajZg8JLiM9Hj9GHJseMShwL2DO0G5yEWn3Zh1QUods5CPkIoqlwAZxhXMsb6HrcEPBxchhdJ6wj29vCW4hfLOzo8J3rltYX50nXQAATSf/K4DEaGlTLvplsk/QCpoD60EQ7gLYZc8H9wq+I3yncEOEcNhuz6HWf3XEiwU/4Y8YEqVp2P10rt+8REvBGw026i4aDcbL9jF8r8Blmf4fCOzhViiscskygXRdehf3CO4hfigmTBXyQrl8TFtD1IzQX3CbcQrY3hPcRv4z8OmHPXwchVNln2MmE7BX6VwIFi/he6uxvb6JM3m0fdqvx/ATidxg2JeC7VDErAw5NzGfvwRJVheEIQ8Mg/pdwIM+UOmi9Q8ivCsrIy0tF+wVbEcLrd3Pb2XisEb4Tdlhsi4WP4RBbaLGrHfC3PrvMIezy9rTpGm5lz9LOMG15xvFxD/j5gjzjjDbMOzk+9zzt3v5bgAEAibzFeFHVgYkAAAAASUVORK5CYII=";class POe{constructor(e){var t=this;e=e||{},this.speed=e.speed&&e.speed>=0?e.speed:1,this.frequency=e.speed&&e.frequency>=0?e.frequency:1e3,this.startTime=e.startTime&&e.startTime!=null?e.startTime:0,this.endTime=e.endTime&&e.endTime!=null&&e.endTime>=t.startTime?e.endTime:+new Date,this.repeat=e.repeat!==void 0?e.repeat:!0,this.reverse=e.reverse!==void 0?e.reverse:!1,this.currentTime=null,this.oldTime=null,this.running=!1,this.EVENT_TYPES=["start","pause","stop"],t.events=new y0(this,null,this.EVENT_TYPES),t.speed=Number(t.speed),t.frequency=Number(t.frequency),t.startTime=Number(t.startTime),t.endTime=Number(t.endTime),t.startTime=Date.parse(new Date(t.startTime)),t.endTime=Date.parse(new Date(t.endTime)),t.currentTime=t.startTime,this.CLASS_NAME="SuperMap.TimeControlBase"}updateOptions(e){var t=this;e=e||{},e.speed&&e.speed>=0&&(t.speed=e.speed,t.speed=Number(t.speed)),e.speed&&e.frequency>=0&&(t.frequency=e.frequency,t.frequency=Number(t.frequency)),e.startTime&&e.startTime!=null&&(t.startTime=e.startTime,t.startTime=Date.parse(new Date(t.startTime))),e.endTime&&e.endTime!=null&&e.endTime>=t.startTime&&(t.endTime=e.endTime,t.endTime=Date.parse(new Date(t.endTime))),e.repeat!=null&&(t.repeat=e.repeat),e.reverse!=null&&(t.reverse=e.reverse)}start(){var e=this;e.running||(e.running=!0,e.tick(),e.events.triggerEvent("start",e.currentTime))}pause(){var e=this;e.running=!1,e.events.triggerEvent("pause",e.currentTime)}stop(){var e=this;e.currentTime=e.startTime,e.running&&(e.running=!1),e.events.triggerEvent("stop",e.currentTime)}toggle(){var e=this;e.running?e.pause():e.start()}setSpeed(e){var t=this;return e>=0?(t.speed=e,!0):!1}getSpeed(){return this.speed}setFrequency(e){var t=this;return e>=0?(t.frequency=e,!0):!1}getFrequency(){return this.frequency}setStartTime(e){var t=this;return e=Date.parse(new Date(e)),e>t.endTime?!1:(t.startTime=e,t.currentTime=t.endTime&&(t.currentTime=t.startTime,t.tick()),!0)}getEndTime(){return this.endTime}setCurrentTime(e){var t=this;return t.currentTime=Date.parse(new Date(t.currentTime)),e>=t.startTime&&e<=t.endTime?(t.currentTime=e,t.startTime=t.currentTime,t.tick(),!0):!1}getCurrentTime(){return this.currentTime}setRepeat(e){this.repeat=e}getRepeat(){return this.repeat}setReverse(e){this.reverse=e}getReverse(){return this.reverse}getRunning(){return this.running}destroy(){var e=this;e.speed=null,e.frequency=null,e.startTime=null,e.endTime=null,e.currentTime=null,e.repeat=null,e.running=!1,e.reverse=null}tick(){}}class qat extends POe{constructor(e,t){super(t);var r=this;r.callback=e,Function.prototype.bind||(Function.prototype.bind=function(i){if(typeof this!="function")throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var a=Array.prototype.slice.call(arguments,1),o=this,s=function(){},l=function(){return o.apply(this instanceof s&&i?this:i,a.concat(Array.prototype.slice.call(arguments)))};return s.prototype=this.prototype,l.prototype=new s,l}),r.update=r.update.bind(r),r.oldTime=r.currentTime,r.CLASS_NAME="SuperMap.TimeFlowControl"}updateOptions(e){e=e||{},super.updateOptions(e)}start(){var e=this;e.running||(e.running=!0,e.reverse?e.currentTime===e.startTime&&(e.oldTime=e.endTime,e.currentTime=e.oldTime):e.oldTime===e.endTime&&(e.currentTime=e.startTime,e.oldTime=e.currentTime),e.tick())}stop(){super.stop();var e=this;e.oldTime=e.currentTime,e.running&&(e.running=!1),e.intervalId&&window.clearTimeout(e.intervalId)}destroy(){super.destroy();var e=this;e.oldTime=null,e.callback=null}tick(){var e=this;e.intervalId&&window.clearInterval(e.intervalId),e.intervalId=null,e.update(),e.intervalId=window.setInterval(e.update,e.frequency)}update(){var e=this;if(!!e.running)if(e.callback&&e.callback(e.currentTime),e.reverse){if(e.currentTime===e.startTime){if(!e.repeat)return e.running=!1,null;e.oldTime=e.endTime,e.currentTime=e.oldTime}else e.currentTime=e.oldTime,e.oldTime-=e.speed;e.oldTime<=e.startTime&&(e.oldTime=e.startTime)}else{if(e.currentTime===e.endTime){if(!e.repeat)return e.running=!1,e.stop(),null;e.stop(),e.currentTime=e.startTime,e.oldTime=e.currentTime,e.start()}else e.oldTime=e.currentTime,e.currentTime+=e.speed;e.currentTime>=e.endTime&&(e.currentTime=e.endTime)}}}(function(n,e){(function(t,r){r()})(at,function(){function t(g){var m=this.constructor;return this.then(function(y){return m.resolve(g()).then(function(){return y})},function(y){return m.resolve(g()).then(function(){return m.reject(y)})})}function r(g){var m=this;return new m(function(y,_){if(!(g&&typeof g.length<"u"))return _(new TypeError(typeof g+" "+g+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var x=Array.prototype.slice.call(g);if(x.length===0)return y([]);var S=x.length;function w(E,T){if(T&&(typeof T=="object"||typeof T=="function")){var C=T.then;if(typeof C=="function"){C.call(T,function(A){w(E,A)},function(A){x[E]={status:"rejected",reason:A},--S===0&&y(x)});return}}x[E]={status:"fulfilled",value:T},--S===0&&y(x)}for(var b=0;b-1?_:y}function d(y,_){_=_||{};var x=_.body;if(d.prototype.isPrototypeOf(y)){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,_.headers||(this.headers=new i(y.headers)),this.method=y.method,this.mode=y.mode,x||(x=y._bodyInit,y.bodyUsed=!0)}else this.url=y;if(this.credentials=_.credentials||this.credentials||"omit",(_.headers||!this.headers)&&(this.headers=new i(_.headers)),this.method=f(_.method||this.method||"GET"),this.mode=_.mode||this.mode||null,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&x)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(x,_)}d.prototype.clone=function(){return new d(this)};function v(y){var _=new FormData;return y.trim().split("&").forEach(function(x){if(x){var S=x.split("="),w=S.shift().replace(/\+/g," "),b=S.join("=").replace(/\+/g," ");_.append(decodeURIComponent(w),decodeURIComponent(b))}}),_}function p(y){var _=new i,x=y.getAllResponseHeaders().trim().split(` +`);return x.forEach(function(S){var w=S.trim().split(":"),b=w.shift().trim(),E=w.join(":").trim();_.append(b,E)}),_}h.call(d.prototype);function g(y,_){_||(_={}),this._initBody(y,_),this.type="default",this.status=_.status,this.ok=this.status>=200&&this.status<300,this.statusText=_.statusText,this.headers=_.headers instanceof i?_.headers:new i(_.headers),this.url=_.url||""}h.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},g.error=function(){var y=new g(null,{status:0,statusText:""});return y.type="error",y};var m=[301,302,303,307,308];g.redirect=function(y,_){if(m.indexOf(_)===-1)throw new RangeError("Invalid status code");return new g(null,{status:_,headers:{location:y}})},e.Headers=i,e.Request=d,e.Response=g,e.fetch=function(y,_){return new Promise(function(x,S){var w;d.prototype.isPrototypeOf(y)&&!_?w=y:w=new d(y,_);var b=new XMLHttpRequest;function E(){if("responseURL"in b)return b.responseURL;if(/^X-Request-URL:/m.test(b.getAllResponseHeaders()))return b.getResponseHeader("X-Request-URL")}var T=!1;function C(){if(b.readyState===4){var A=b.status===1223?204:b.status;if(A<100||A>599){if(T)return;T=!0,S(new TypeError("Network request failed"));return}var M={status:A,statusText:b.statusText,headers:p(b),url:E()},I="response"in b?b.response:b.responseText;T||(T=!0,x(new g(I,M)))}}b.onreadystatechange=C,b.onload=C,b.onerror=function(){T||(T=!0,S(new TypeError("Network request failed")))},b.open(w.method,w.url,!0);try{w.credentials==="include"&&("withCredentials"in b?b.withCredentials=!0:console&&console.warn&&console.warn("withCredentials is not supported, you can ignore this warning"))}catch(A){console&&console.warn&&console.warn("set withCredentials error:"+A)}"responseType"in b&&u.blob&&(b.responseType="blob"),w.headers.forEach(function(A,M){b.setRequestHeader(M,A)}),b.send(typeof w._bodyInit>"u"?null:w._bodyInit)})},e.fetch.polyfill=!0,n.exports&&(n.exports=e.fetch)})(typeof self<"u"?self:at)})(Zat);var QZ={exports:{}};(function(n,e){(function(t,r){r(e,n)})(at,function(t,r){var i={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function a(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(u){try{delete window[u]}catch{window[u]=void 0}}function s(u){var h=document.getElementById(u);h&&document.getElementsByTagName("head")[0].removeChild(h)}function l(u){var h=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=u,f=h.timeout||i.timeout,d=h.jsonpCallback||i.jsonpCallback,v=void 0;return new Promise(function(p,g){var m=h.jsonpCallbackFunction||a(),y=d+"_"+m;window[m]=function(x){p({ok:!0,json:function(){return Promise.resolve(x)}}),v&&clearTimeout(v),s(y),o(m)},c+=c.indexOf("?")===-1?"?":"&";var _=document.createElement("script");_.setAttribute("src",""+c+d+"="+m),h.charset&&_.setAttribute("charset",h.charset),_.id=y,document.getElementsByTagName("head")[0].appendChild(_),v=setTimeout(function(){g(new Error("JSONP request to "+u+" timed out")),o(m),s(y),window[m]=function(){o(m)}},f),_.onerror=function(){g(new Error("JSONP request to "+u+" failed")),o(m),s(y),v&&clearTimeout(v)}})}r.exports=l})})(QZ,QZ.exports);const OOe=QZ.exports;let jde=window.fetch;var zF={limitLength:1500,queryKeys:[],queryValues:[],supermap_callbacks:{},addQueryStrings:function(n){var e=this;for(var t in n){e.queryKeys.push(t),typeof n[t]!="string"&&(n[t]=W.toJSON(n[t]));var r=encodeURIComponent(n[t]);e.queryValues.push(r)}},issue:function(n){for(var e=this,t=e.getUid(),r=n.url,i=[],a=r,o=0,s=e.queryKeys?e.queryKeys.length:0,l=0;l=e.limitLength){if(o==0)return!1;i.push(a),a=r,o=0,l--}else if(a.length+e.queryKeys[l].length+2+e.queryValues[l].length>e.limitLength)for(var u=e.queryValues[l];u.length>0;){var h=e.limitLength-a.length-e.queryKeys[l].length-2;a.indexOf("?")>-1?a+="&":a+="?";var c=u.substring(0,h);c.substring(h-1,h)==="%"?(h-=1,c=u.substring(0,h)):c.substring(h-2,h-1)==="%"&&(h-=2,c=u.substring(0,h)),a+=e.queryKeys[l]+"="+c,u=u.substring(h),c.length>0&&(i.push(a),a=r,o=0)}else o++,a.indexOf("?")>-1?a+="&":a+="?",a+=e.queryKeys[l]+"="+e.queryValues[l];return i.push(a),e.send(i,"SuperMapJSONPCallbacks_"+t,n&&n.proxy)},getUid:function(){var n=new Date().getTime(),e=Math.floor(Math.random()*1e17);return n*1e3+e},send:function(n,e,t){var r=n.length;if(r>0)return new Promise(i=>{for(var a=new Date().getTime(),o=0;o-1?s+="&":s+="?",s+="sectionCount="+r,s+="§ionIndex="+o,s+="&jsonpUserID="+a,t&&(s=decodeURIComponent(s),s=t+encodeURIComponent(s)),OOe(s,{jsonpCallbackFunction:e,timeout:3e4}).then(l=>{i(l.json())})}})},GET:function(n){var e=this;return e.queryKeys.length=0,e.queryValues.length=0,e.addQueryStrings(n.params),e.issue(n)},POST:function(n){var e=this;return e.queryKeys.length=0,e.queryValues.length=0,e.addQueryStrings({requestEntity:n.data}),e.issue(n)},PUT:function(n){var e=this;return e.queryKeys.length=0,e.queryValues.length=0,e.addQueryStrings({requestEntity:n.data}),e.issue(n)},DELETE:function(n){var e=this;return e.queryKeys.length=0,e.queryValues.length=0,e.addQueryStrings({requestEntity:n.data}),e.issue(n)}},eK,ROe,Kat=function(n){eK=n},DOe=function(){return eK!=null?eK:window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest},Jat=function(n){return ROe=n},tK=function(){return ROe||45e3},li={commit:function(n,e,t,r){switch(n=n&&n.toUpperCase(),n){case"GET":return this.get(e,t,r);case"POST":return this.post(e,t,r);case"PUT":return this.put(e,t,r);case"DELETE":return this.delete(e,t,r);default:return this.get(e,t,r)}},supportDirectRequest:function(n,e){return W.isInTheSameDomain(n)?!0:e.crossOrigin!=null?e.crossOrigin:DOe()||e.proxy},get:function(n,e,t){t=t||{};var r="GET";if(n=W.urlAppend(n,this._getParameterString(e||{})),n=this._processUrl(n,t),!this.supportDirectRequest(n,t)){n=n.replace(".json",".jsonp");var i={url:n,data:e};return zF.GET(i)}return this.urlIsLong(n)?this._postSimulatie(r,n.substring(0,n.indexOf("?")),e,t):this._fetch(n,e,t,r)},delete:function(n,e,t){t=t||{};var r="DELETE";if(n=W.urlAppend(n,this._getParameterString(e||{})),n=this._processUrl(n,t),!this.supportDirectRequest(n,t)){n=n.replace(".json",".jsonp");var i={url:n+="&_method=DELETE",data:e};return zF.DELETE(i)}return this.urlIsLong(n)?this._postSimulatie(r,n.substring(0,n.indexOf("?")),e,t):this._fetch(n,e,t,r)},post:function(n,e,t){if(t=t||{},n=this._processUrl(n,t),!this.supportDirectRequest(n,t)){n=n.replace(".json",".jsonp");var r={url:W.urlAppend(n,"_method=POST"),data:e};return zF.POST(r)}return this._fetch(n,e,t,"POST")},put:function(n,e,t){if(t=t||{},n=this._processUrl(n,t),!this.supportDirectRequest(n,t)){n=n.replace(".json",".jsonp");var r={url:n+="&_method=PUT",data:e};return zF.PUT(r)}return this._fetch(n,e,t,"PUT")},urlIsLong:function(n){for(var e=0,t=null,r=0,i=n.length;r-1?"&":"?";return e+=i+"_method="+n,typeof t!="string"&&(t=JSON.stringify(t)),this.post(e,t,r)},_processUrl:function(n,e){if(this._isMVTRequest(n))return n;if(n.indexOf(".json")===-1&&!e.withoutFormatSuffix)if(n.indexOf("?")<0)n+=".json";else{var t=n.split("?");t.length===2&&(n=t[0]+".json?"+t[1])}return e&&e.proxy&&(typeof e.proxy=="function"?n=e.proxy(n):(n=decodeURIComponent(n),n=e.proxy+encodeURIComponent(n))),n},_fetch:function(n,e,t,r){return t=t||{},t.headers=t.headers||{},!t.headers["Content-Type"]&&!FormData.prototype.isPrototypeOf(e)&&(t.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8"),t.timeout?this._timeout(t.timeout,jde(n,{method:r,headers:t.headers,body:r==="PUT"||r==="POST"?e:void 0,credentials:this._getWithCredentials(t),mode:"cors",timeout:tK()}).then(function(i){return i})):jde(n,{method:r,body:r==="PUT"||r==="POST"?e:void 0,headers:t.headers,credentials:this._getWithCredentials(t),mode:"cors",timeout:tK()}).then(function(i){return i})},_getWithCredentials:function(n){return n.withCredentials===!0?"include":n.withCredentials===!1?"omit":"same-origin"},_fetchJsonp:function(n,e){return e=e||{},OOe(n,{method:"GET",timeout:e.timeout}).then(function(t){return t})},_timeout:function(n,e){return new Promise(function(t,r){setTimeout(function(){r(new Error("timeout"))},n),e.then(t,r)})},_getParameterString:function(n){var e=[];for(var t in n){var r=n[t];if(r!=null&&typeof r!="function"){var i;Array.isArray(r)||r.toString()==="[object Object]"?i=encodeURIComponent(JSON.stringify(r)):i=encodeURIComponent(r),e.push(encodeURIComponent(t)+"="+i)}}return e.join("&")},_isMVTRequest:function(n){return n.indexOf(".mvt")>-1||n.indexOf(".pbf")>-1}};class xs{static generateToken(e,t){var r=this.servers[e];if(!!r)return li.post(r.tokenServiceUrl,JSON.stringify(t.toJSON())).then(function(i){return i.text()})}static registerServers(e){this.servers=this.servers||{},W.isArray(e)||(e=[e]);for(var t=0;ti)}getErrMsgPromise(e){return new Promise(t=>{t(e)})}uploadDataRequest(e,t){var r=this.iportalUrl+"/web/mycontent/datas/"+e+"/upload.json";return this.request("POST",r,t)}addData(e,t){if(!(e instanceof UOe))return this.getErrMsgPromise("params is not instanceof iPortalAddDataParam !");var r=this.iportalUrl+"/web/mycontent/datas.json",i={fileName:e.fileName,tags:e.tags,type:e.type},a=e.type.toLowerCase(),o;if(a==="excel"||a==="csv"){if(!(e.dataMetaInfo instanceof iK))return this.getErrMsgPromise("params.dataMetaInfo is not instanceof iPortalDataMetaInfoParam !");o={xField:e.dataMetaInfo.xField,yField:e.dataMetaInfo.yField},a==="csv"&&(o.fileEncoding=e.dataMetaInfo.fileEncoding),i.coordType="WGS84",i.dataMetaInfo=o}else if(a==="hdfs"||a==="hbase"){if(!(e.dataMetaInfo instanceof iK))return this.getErrMsgPromise("params.dataMetaInfo is not instanceof iPortalDataMetaInfoParam !");if(!(e.dataMetaInfo.dataStoreInfo instanceof VOe))return this.getErrMsgPromise("params.dataMetaInfo.dataStoreInfo is not instanceof iPortalDataStoreInfoParam !");var s={type:e.dataMetaInfo.dataStoreInfo.type};switch(a){case"hdfs":s.url=e.dataMetaInfo.dataStoreInfo.url,o={url:e.dataMetaInfo.url,dataStoreInfo:s};break;case"hbase":if(!(e.dataMetaInfo.dataStoreInfo.connectionInfo instanceof $Oe))return this.getErrMsgPromise("params.dataMetaInfo.dataStoreInfo.connectionInfo is not instanceof iPortalDataConnectionInfoParam !");s.connectionInfo={dataBase:e.dataMetaInfo.dataStoreInfo.connectionInfo.dataBase,server:e.dataMetaInfo.dataStoreInfo.connectionInfo.server,engineType:"HBASE"},s.datastoreType="SPATIAL",o={dataStoreInfo:s};break}i.dataMetaInfo=o}return this.request("POST",r,JSON.stringify(i)).then(l=>a==="hdfs"||a==="hbase"?l:l.childID?this.uploadDataRequest(l.childID,t):l.customResult)}publishOrUnpublish(e,t){if(!e.dataId||!e.serviceType)return this.getErrMsgPromise("option.dataID and option.serviceType are Required!");var r=e.dataId,i=e.dataServiceId,a=e.serviceType,o=this.iportalUrl+"/web/mycontent/datas/"+r+"/publishstatus.json?serviceType="+a;return i&&(o+="&dataServiceId="+i),this.request("PUT",o,JSON.stringify(t)).then(s=>t?(i||(i=s.customResult),i):s)}getDataPublishedStatus(e,t){var r=this.iportalUrl+"/web/mycontent/datas/"+e+"/publishstatus.json?dataServiceId="+t+"&forPublish=true";return this.request("GET",r)}unPublishDataService(e){return this.publishOrUnpublish(e,!1)}publishDataService(e){return this.publishOrUnpublish(e,!0)}}class ra{constructor(e,t){let r=this;this.EVENT_TYPES=["processCompleted","processFailed"],this.events=null,this.eventListeners=null,this.url=null,this.urls=null,this.proxy=null,this.index=null,this.length=null,this.totalTimes=null,this.POLLING_TIMES=3,this.isInTheSameDomain=null,this.withCredentials=!1,W.isArray(e)?(r.urls=e,r.length=e.length,r.totalTimes=r.length,r.length===1?r.url=e[0]:(r.index=parseInt(Math.random()*r.length),r.url=e[r.index])):(r.totalTimes=1,r.url=e),W.isArray(e)&&!r.isServiceSupportPolling()&&(r.url=e[0],r.totalTimes=1),t=t||{},this.crossOrigin=t.crossOrigin,this.headers=t.headers,W.extend(this,t),r.isInTheSameDomain=W.isInTheSameDomain(r.url),r.events=new y0(r,null,r.EVENT_TYPES,!0),r.eventListeners instanceof Object&&r.events.on(r.eventListeners),this.CLASS_NAME="SuperMap.CommonServiceBase"}destroy(){let e=this;W.isArray(e.urls)&&(e.urls=null,e.index=null,e.length=null,e.totalTimes=null),e.url=null,e.isInTheSameDomain=null,e.EVENT_TYPES=null,e.events&&(e.events.destroy(),e.events=null),e.eventListeners&&(e.eventListeners=null)}request(e){let t=e.scope.format;if(typeof e.success=="string"&&(e.scope.format=e.success,t=e.success,e.success=null,e.failure=null),t&&!this.supportDataFormat(t))throw new Error(`${this.CLASS_NAME} is not surport ${t} format!`);let r=this;return e.url=e.url||r.url,this._returnContent(e)&&!e.url.includes("returnContent=true")&&(e.url=W.urlAppend(e.url,"returnContent=true")),e.proxy=e.proxy||r.proxy,e.withCredentials=e.withCredentials!=null?e.withCredentials:r.withCredentials,e.crossOrigin=e.crossOrigin!=null?e.crossOrigin:r.crossOrigin,e.headers=e.headers||r.headers,e.isInTheSameDomain=r.isInTheSameDomain,e.withoutFormatSuffix=e.scope.withoutFormatSuffix||!1,e.url=xs.appendCredential(e.url),r.calculatePollingTimes(),e.scope=r,r.totalTimes>0?(r.totalTimes--,r.ajaxPolling(e)):r._commit(e)}ajaxPolling(e){let t=this,r=e.url,i=/^http:\/\/([a-z]{9}|(\d+\.){3}\d+):\d{0,4}/;return t.index=parseInt(Math.random()*t.length),t.url=t.urls[t.index],r=r.replace(i,i.exec(t.url)[0]),e.url=r,e.isInTheSameDomain=W.isInTheSameDomain(r),t._commit(e)}calculatePollingTimes(){let e=this;e.times?e.totalTimes>e.POLLING_TIMES?e.times>e.POLLING_TIMES?e.totalTimes=e.POLLING_TIMES:e.totalTimes=e.times:e.timese.POLLING_TIMES&&(e.totalTimes=e.POLLING_TIMES),e.totalTimes--}isServiceSupportPolling(){let e=this;return!(e.CLASS_NAME==="SuperMap.REST.ThemeService"||e.CLASS_NAME==="SuperMap.REST.EditFeaturesService")}transformResult(e,t){return e=W.transformResult(e),{result:e,options:t}}transformErrorResult(e,t){return e=W.transformResult(e),{error:e.error||e,options:t}}serviceProcessCompleted(e,t){e=this.transformResult(e).result,this.events.triggerEvent("processCompleted",{result:e,options:t})}serviceProcessFailed(e,t){e=this.transformErrorResult(e).error;let r=e.error||e;this.events.triggerEvent("processFailed",{error:r,options:t})}_returnContent(e){return e.scope.format===Ni.FGB?!1:!!e.scope.returnContent}supportDataFormat(e){return this.dataFormat().includes(e)}dataFormat(){return[Ni.GEOJSON,Ni.ISERVER]}_commit(e){if(e.method==="POST"||e.method==="PUT"||e.method==="PATCH")if(e.params&&(e.url=W.urlAppend(e.url,W.getParameterString(e.params||{}))),typeof e.data=="object")try{e.params=W.toJSON(e.data)}catch{console.log("\u4E0D\u662Fjson\u5BF9\u8C61")}else e.params=e.data;return li.commit(e.method,e.url,e.params,{headers:e.headers,withoutFormatSuffix:e.withoutFormatSuffix,withCredentials:e.withCredentials,crossOrigin:e.crossOrigin,timeout:e.async?0:null,proxy:e.proxy}).then(function(t){return t.text?t.text():t.json?t.json():t}).then(function(t){let r=t;return typeof t=="string"&&(r=new gz().read(t)),(!r||r.error||r.code>=300&&r.code!==304)&&(r&&r.error?r={error:r.error}:r={error:r}),r&&e.scope.format===Ni.FGB&&(r.newResourceLocation=r.newResourceLocation.replace(".json","")+".fgb"),r}).catch(function(t){return{error:t}}).then(t=>{let r={object:this};if(t.error){const o="processFailed";if(this.events&&this.events.listeners[o]&&this.events.listeners[o].length){var i=e.failure&&(e.scope?UR.bind(e.failure,e.scope):e.failure);i?i(t,e):this.serviceProcessFailed(t,e)}else r={...r,...this.transformErrorResult(t,e)},r.type=o,e.failure&&e.failure(r)}else{const o="processCompleted";if(this.events&&this.events.listeners[o]&&this.events.listeners[o].length){var a=e.success&&(e.scope?UR.bind(e.success,e.scope):e.success);a?a(t,e):this.serviceProcessCompleted(t,e)}else t.succeed=t.succeed==null?!0:t.succeed,r={...r,...this.transformResult(t,e)},r.type=o,e.success&&e.success(r)}return r})}}class WOe{constructor(e){e.filters&&typeof e.filters=="string"&&(e.filters=e.filters.split(",")),this.address=null,this.fromIndex=null,this.toIndex=null,this.filters=null,this.prjCoordSys=null,this.maxReturn=null,W.extend(this,e)}destroy(){this.address=null,this.fromIndex=null,this.toIndex=null,this.filters=null,this.prjCoordSys=null,this.maxReturn=null}}class HOe{constructor(e){e.filters&&(e.filters=e.filters.split(",")),this.x=null,this.y=null,this.fromIndex=null,this.toIndex=null,this.filters=null,this.prjCoordSys=null,this.maxReturn=null,this.geoDecodingRadius=null,W.extend(this,e)}destroy(){this.x=null,this.y=null,this.fromIndex=null,this.toIndex=null,this.filters=null,this.prjCoordSys=null,this.maxReturn=null,this.geoDecodingRadius=null}}class jOe extends ra{constructor(e,t){super(e,t),this.options=t||{},this.CLASS_NAME="SuperMap.AddressMatchService"}destroy(){super.destroy()}code(e,t,r){if(t instanceof WOe)return this.processAsync(e,t,r)}decode(e,t,r){if(t instanceof HOe)return this.processAsync(e,t,r)}processAsync(e,t,r){return this.request({method:"GET",url:e,params:t,scope:this,success:r,failure:r})}transformResult(e,t){return e.succeed&&delete e.succeed,{result:e,options:t}}}class Lne{constructor(e){this.aggName=null,this.aggFieldName=null,this.CLASS_NAME="SuperMap.AggregationParameter",W.extend(this,e)}destroy(){var e=this;e.aggName=null,e.aggFieldName=null,e.aggType=null}}class XOe extends Lne{constructor(e){super(),this.subAggs=null,this.aggType=null,this.CLASS_NAME="SuperMap.BucketAggParameter",W.extend(this,e)}destroy(){var e=this;e.subAggs&&(e.subAggs=null)}}class not extends Lne{constructor(e){super(),this.aggType=COe.AVG,W.extend(this,e),this.CLASS_NAME="SuperMap.MetricsAggParameter"}destroy(){super.destroy();var e=this;e.aggType=null}}class nB{constructor(e){this.dataset=null,this.targetDatasourceName=null,this.totalGridName=null,this.diffuseDatasetGridName=null,this.durationDatasetGridName=null,this.directDatasetGridName=null,this.latitude=null,this.timeMode="MULTIDAYS",this.dayStart=null,this.dayEnd=null,this.hourStart=null,this.hourEnd=null,this.transmittance=null,this.hourInterval=null,this.dayInterval=null,this.deleteExistResultDataset=!1,W.extend(this,e),this.CLASS_NAME="SuperMap.AreaSolarRadiationParameters"}destroy(){var e=this;e.dataset=null,e.zFactor=1,e.averageCurvatureName=null,e.profileCurvatureName=null,e.planCurvatureName=null,e.deleteExistResultDataset=!0}static toObject(e,t){var r={};for(var i in e)if(i!=="dataset"){var a=i==="latitude"||i==="timeMode"||i==="dayStart",o=i==="dayEnd"||i==="hourStart"||i==="hourEnd",s=i==="transmittance"||i==="hourInterval"||i==="dayInterval";a||o||s?r[i]=e[i]:t[i]=e[i]}t.parameter=r}}class Hu extends ra{constructor(e,t){super(e,t),this.format=t&&t.format||Ni.GEOJSON,this.CLASS_NAME="SuperMap.SpatialAnalystBase"}destroy(){super.destroy(),this.format=null}transformResult(e,t){var r=this,i;if(e=W.transformResult(e),e&&r.format===Ni.GEOJSON&&typeof r.toGeoJSONResult=="function")if(W.isArray(e)){for(var a=0;a0)for(var t in e.items)e.items[t].destroy(),e.items[t]=null;e.items=null}e.numericPrecision=null,e.rangeMode=null,e.rangeCount=null,e.colorGradientType=null}}class KOe{constructor(e){if(this.datasetName="",this.bounds="",this.distance="",this.distanceField="",this.distanceUnit=zR.METER,this.dissolveField="",this.output=null,this.mappingParameters=null,!e)return this;W.extend(this,e),this.CLASS_NAME="SuperMap.BuffersAnalystJobsParameter"}destroy(){this.datasetName=null,this.bounds=null,this.distance=null,this.distanceField=null,this.distanceUnit=null,this.dissolveField=null,this.output instanceof Cm&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof Am&&(this.mappingParameters.destroy(),this.mappingParameters=null)}static toObject(e,t){for(var r in e){if(r==="datasetName"){t.input=t.input||{},t.input[r]=e[r];continue}if(r==="output"){t.output=t.output||{},t.output=e[r];continue}t.analyst=t.analyst||{},r==="bounds"&&e[r]?t.analyst[r]=e[r].toBBOX():t.analyst[r]=e[r],r==="mappingParameters"&&(t.analyst[r]=t.analyst[r]||{},t.analyst.mappingParameters=e[r])}}}class Mm extends ra{constructor(e,t){t=t||{},super(e,t),this.CLASS_NAME="SuperMap.ProcessingServiceBase"}destroy(){super.destroy()}getJobs(e,t){var r=this;return li.get(xs.appendCredential(e),null,{proxy:r.proxy}).then(function(i){return i.json()}).then(function(i){const a={result:i,object:r,type:"processCompleted"};return t(a),a}).catch(function(i){const a={error:i,object:r,type:"processFailed"};return t(a),a})}addJob(e,t,r,i,a,o){var s=this,l=null;t&&t instanceof r&&(l=new Object,r.toObject(t,l));let u=Object.assign({"Content-Type":"application/x-www-form-urlencoded"},s.headers||{});var h={proxy:s.proxy,headers:u,withCredentials:s.withCredentials,crossOrigin:s.crossOrigin,isInTheSameDomain:s.isInTheSameDomain};return li.post(xs.appendCredential(e),JSON.stringify(l),h).then(function(c){return c.json()}).then(function(c){return c.succeed?s.transformResult(c,i,a,o):(c=s.transformErrorResult(c),c.options=s,c.type="processFailed",a(c),c)}).catch(function(c){return c=s.transformErrorResult({error:c}),c.options=s,c.type="processFailed",a(c),c})}transformResult(e,t,r,i){e=W.transformResult(e),t=t||1e3;var a=this;if(e)return new Promise(o=>{var s=setInterval(function(){li.get(xs.appendCredential(e.newResourceLocation),{_t:new Date().getTime()}).then(function(l){return l.json()}).then(function(l){if(o({object:a,id:l.id,state:l.state}),i({id:l.id,state:l.state,object:a}),l.state.runState==="LOST"||l.state.runState==="KILLED"||l.state.runState==="FAILED"){clearInterval(s);const u={error:l.state.errorMsg,state:l.state.runState,object:a,type:"processFailed"};o(u),r(u)}if(l.state.runState==="FINISHED"&&l.setting.serviceInfo){clearInterval(s);const u={result:l,object:a,type:"processCompleted"};o(u),r(u)}}).catch(function(l){clearInterval(s);const u={error:l,object:a,type:"processFailed"};o(u),r(u)})},t)})}}class iB extends Mm{constructor(e,t){super(e,t),this.url=W.urlPathAppend(this.url,"spatialanalyst/buffers"),this.CLASS_NAME="SuperMap.BuffersAnalystJobsService"}destroy(){super.destroy()}getBuffersJobs(e){return super.getJobs(this.url,e)}getBuffersJob(e,t){return super.getJobs(W.urlPathAppend(this.url,e),t)}addBuffersJob(e,t,r,i){return super.addJob(this.url,e,KOe,t,r,i)}}class JOe{constructor(e){var t=this;this.sourceNodeIDs=null,this.edgeID=null,this.nodeID=null,this.isUncertainDirectionValid=!1,W.extend(t,e),this.CLASS_NAME="SuperMap.BurstPipelineAnalystParameters"}destroy(){var e=this;e.sourceNodeIDs=null,e.edgeID=null,e.nodeID=null,e.isUncertainDirectionValid=null}}class Bd extends ra{constructor(e,t){super(e,t),this.format=Ni.GEOJSON,this.CLASS_NAME="SuperMap.NetworkAnalystServiceBase"}destroy(){super.destroy(),this.format=null}transformResult(e,t){var r=this,i;return e=W.transformResult(e),e&&r.format===Ni.GEOJSON&&typeof r.toGeoJSONResult=="function"&&(i=r.toGeoJSONResult(e)),i||(i=e),{result:i,options:t}}toGeoJSONResult(e){return null}}class QOe extends Bd{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.BurstPipelineAnalystService"}destroy(){super.destroy()}processAsync(e,t){if(!(e instanceof JOe))return null;var r=this,i;if(r.url=W.urlPathAppend(r.url,"burstAnalyse"),i={sourceNodeIDs:e.sourceNodeIDs,isUncertainDirectionValid:e.isUncertainDirectionValid},e.edgeID!==null&&e.nodeID!==null)throw new Error("edgeID and nodeID cannot be null at the same time.");if(e.edgeID===null&&e.nodeID===null)throw new Error("edgeID and nodeID cannot be null at the same time.");return e.edgeID!==null?i.edgeID=e.edgeID:i.nodeID=e.nodeID,r.request({method:"GET",params:i,scope:r,success:t,failure:t})}}class eRe extends ra{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.ChartFeatureInfoSpecsService"}destroy(){super.destroy(),W.reset(this)}processAsync(e){var t=this,r="GET";return t.isTempLayers||W.urlPathAppend(t.url,"chartFeatureInfoSpecs"),t.request({method:r,params:null,scope:t,success:e,failure:e})}}class tRe{constructor(e){this.isQueryPoint=null,this.isQueryLine=null,this.isQueryRegion=null,this.attributeFilter=null,this.chartFeatureInfoSpecCode=null,W.extend(this,e),this.CLASS_NAME="SuperMap.ChartQueryFilterParameter"}destroy(){var e=this;e.isQueryPoint=null,e.isQueryLine=null,e.isQueryRegion=null,e.attributeFilter=null,e.chartFeatureInfoSpecCode=null}toJson(){var e="";return e+='"isQueryPoint":'+this.isQueryPoint+",",e+='"isQueryLine":'+this.isQueryLine+",",e+='"isQueryRegion":'+this.isQueryRegion+",",this.attributeFilter&&(e+='"attributeFilter": "'+this.attributeFilter+'",'),e+='"chartFeatureInfoSpecCode":'+this.chartFeatureInfoSpecCode,e="{"+e+"}",e}}class rRe{constructor(e){this.queryMode=null,this.bounds=null,this.chartLayerNames=null,this.chartQueryFilterParameters=null,this.returnContent=!0,this.startRecord=0,this.expectCount=null,W.extend(this,e),this.CLASS_NAME="SuperMap.ChartQueryParameters"}destroy(){var e=this;e.queryMode=null,e.bounds=null,e.chartLayerNames=null,e.chartQueryFilterParameters=null,e.returnContent=!0,e.startRecord=0,e.expectCount=null}getVariablesJson(){var e="";if(e+='"queryMode":"'+this.queryMode+'",',this.chartLayerNames&&this.chartLayerNames.length){for(var t=[],r=this.chartLayerNames.length,i=0;i0&&(r+=","),r+='{"x":'+t[a].x+',"y":'+t[a].y+"}";else if(e===!0)for(let a=0;a0&&(r+=","),r+=t[a];return r+="]",r}}class lRe extends ra{constructor(e,t){t=t||{},t.EVENT_TYPES=["broadcastSocketConnected","broadcastSocketClosed","broadcastSocketError","broadcastFailed","broadcastSucceeded","subscribeSocketConnected","subscribeSocketClosed","subscribeSocketError","messageSucceeded","setFilterParamSucceeded"],super(e,t),this.geometry=null,this.prjCoordSys=null,this.excludeField=null,W.extend(this,t),this.CLASS_NAME="SuperMap.DataFlowService"}initBroadcast(){var e=this;return this.broadcastWebSocket=this._connect(W.urlPathAppend(e.url,"broadcast")),this.broadcastWebSocket.onopen=function(t){e.broadcastWebSocket.isOpen=!0,t.eventType="broadcastSocketConnected",e.events.triggerEvent("broadcastSocketConnected",t)},this.broadcastWebSocket.onclose=function(t){e.broadcastWebSocket&&(e.broadcastWebSocket.isOpen=!1),t.eventType="broadcastSocketClosed",e.events.triggerEvent("broadcastSocketClosed",t)},this.broadcastWebSocket.onerror=function(t){t.eventType="broadcastSocketError",e.events.triggerEvent("broadcastSocketError",t)},this}broadcast(e){if(!this.broadcastWebSocket||!this.broadcastWebSocket.isOpen){this.events.triggerEvent("broadcastFailed");return}this.broadcastWebSocket.send(JSON.stringify(e)),this.events.triggerEvent("broadcastSucceeded")}initSubscribe(){var e=this;return this.subscribeWebSocket=this._connect(W.urlPathAppend(e.url,"subscribe")),this.subscribeWebSocket.onopen=function(t){e.subscribeWebSocket.send(e._getFilterParams()),t.eventType="subscribeSocketConnected",e.events.triggerEvent("subscribeSocketConnected",t)},this.subscribeWebSocket.onclose=function(t){t.eventType="subscribeWebSocketClosed",e.events.triggerEvent("subscribeWebSocketClosed",t)},this.subscribeWebSocket.onerror=function(t){t.eventType="subscribeSocketError",e.events.triggerEvent("subscribeSocketError",t)},this.subscribeWebSocket.onmessage=function(t){e._onMessage(t)},this}setExcludeField(e){return this.excludeField=e,this.subscribeWebSocket.send(this._getFilterParams()),this}setGeometry(e){return this.geometry=e,this.subscribeWebSocket.send(this._getFilterParams()),this}unSubscribe(){!this.subscribeWebSocket||(this.subscribeWebSocket.close(),this.subscribeWebSocket=null)}unBroadcast(){!this.broadcastWebSocket||(this.broadcastWebSocket.close(),this.broadcastWebSocket=null)}destroy(){ra.prototype.destroy.apply(this,arguments);var e=this;e.geometry=null,e.prjCoordSys=null,e.excludeField=null,this.unBroadcast(),this.unSubscribe()}_getFilterParams(){var e={filterParam:{prjCoordSys:this.prjCoordSys,excludeField:this.excludeField,geometry:this.geometry}};return W.toJSON(e)}_onMessage(e){if(e.data&&e.data.indexOf("filterParam")>=0){var t=JSON.parse(e.data);e.filterParam=t,e.eventType="setFilterParamSucceeded",this.events.triggerEvent("setFilterParamSucceeded",e);return}var r=JSON.parse(e.data);e.featureResult=r,e.eventType="messageSucceeded",this.events.triggerEvent("messageSucceeded",e)}_connect(e){if(e=xs.appendCredential(e),"WebSocket"in window)return new WebSocket(e);if("MozWebSocket"in window){var t=window.MozWebSocket;return new t(e)}else return console.log("no WebSocket"),null}}class uRe{constructor(e){e=e||{},this.bounds=null,this.dataSourceName=null,this.description=null,this.encodeType=null,this.isReadOnly=null,this.name=null,this.prjCoordSys=null,this.tableName=null,this.type=null,W.extend(this,e);var t=this.bounds;t&&(this.bounds=new po(t.leftBottom.x,t.leftBottom.y,t.rightTop.x,t.rightTop.y)),this.CLASS_NAME="SuperMap.DatasetInfo"}destroy(){W.reset(this)}toServerJSONObject(){var e={};return e=W.copyAttributes(e,this),e.bounds&&e.bounds.toServerJSONObject&&(e.bounds=e.bounds.toServerJSONObject()),e}}class Rne{constructor(e){this.operation=fOe.UNION,e&&W.extend(this,e),this.CLASS_NAME="SuperMap.OverlayAnalystParameters"}destroy(){var e=this;e.operation=null}}class sK extends Rne{constructor(e){super(e),this.operateDataset=null,this.operateDatasetFields=[],this.operateDatasetFilter=new Pf,this.operateRegions=[],this.sourceDataset=null,this.sourceDatasetFields=[],this.sourceDatasetFilter=new Pf,this.tolerance=0,this.resultSetting=new mz,W.extend(this,e),this.CLASS_NAME="SuperMap.DatasetOverlayAnalystParameters"}destroy(){super.destroy();var e=this;if(e.operateDataset=null,e.operateDatasetFields=null,e.operateDatasetFilter&&(e.operateDatasetFilter.destroy(),e.operateDatasetFilter=null),e.operateRegions){for(var t=0,r=e.operateRegions,i=r.length;t0&&(r+=","),r+='{"x":'+t[a].x+',"y":'+t[a].y+"}";else if(e===!0)for(let a=0;a0&&(r+=","),r+=t[a];return r+="]",r}toGeoJSONResult(e){if(!e||!e.facilityPathList)return e;var t=new uh;return e.facilityPathList.map(function(r){return r.route&&(r.route=t.toGeoJSON(r.route)),r.pathGuideItems&&(r.pathGuideItems=t.toGeoJSON(r.pathGuideItems)),r.edgeFeatures&&(r.edgeFeatures=t.toGeoJSON(r.edgeFeatures)),r.nodeFeatures&&(r.nodeFeatures=t.toGeoJSON(r.nodeFeatures)),r}),e}}class LRe{constructor(e){this.expectedSupplyCenterCount=null,this.isFromCenter=!1,this.supplyCenters=null,this.turnWeightField=null,this.weightName=null,W.extend(this,e),this.CLASS_NAME="SuperMap.FindLocationParameters"}destroy(){var e=this;if(e.expectedSupplyCenterCount=null,e.isFromCenter=null,e.turnWeightField=null,e.weightName=null,e.supplyCenters){for(var t=0,r=e.supplyCenters,i=r.length;t0&&(t+=","),t+=W.toJSON(e[i]);return t+="]",t}toGeoJSONResult(e){if(!e)return null;var t=new uh;return e.demandResults&&(e.demandResults=t.toGeoJSON(e.demandResults)),e.supplyResults&&(e.supplyResults=t.toGeoJSON(e.supplyResults)),e}}class ORe{constructor(e){this.centers=null,this.hasLeastTotalCost=!1,this.isAnalyzeById=!1,this.nodes=null,this.parameter=new $2,W.extend(this,e),this.CLASS_NAME="SuperMap.FindMTSPPathsParameters"}destroy(){var e=this;e.centers=null,e.hasLeastTotalCost=null,e.isAnalyzeById=null,e.nodes=null,e.maxWeight=null,e.parameter&&(e.parameter.destroy(),e.parameter=null)}}class RRe extends Bd{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.FindMTSPPathsService"}destroy(){super.destroy()}processAsync(e,t){if(e instanceof ORe){var r=this,i,a=r.getJson(e.isAnalyzeById,e.centers),o=r.getJson(e.isAnalyzeById,e.nodes);return r.url=W.urlPathAppend(r.url,"mtsppath"),i={centers:a,nodes:o,parameter:W.toJSON(e.parameter),hasLeastTotalCost:e.hasLeastTotalCost},r.request({method:"GET",params:i,scope:r,success:t,failure:t})}}getJson(e,t){var r="[",i=t?t.length:0;if(e===!1)for(let a=0;a0&&(r+=","),r+='{"x":'+t[a].x+',"y":'+t[a].y+"}";else if(e===!0)for(let a=0;a0&&(r+=","),r+=t[a];return r+="]",r}toGeoJSONResult(e){if(!e||!e.pathList)return null;var t=new uh;return e.pathList.map(function(r){return r.route&&(r.route=t.toGeoJSON(r.route)),r.pathGuideItems&&(r.pathGuideItems=t.toGeoJSON(r.pathGuideItems)),r.edgeFeatures&&(r.edgeFeatures=t.toGeoJSON(r.edgeFeatures)),r.nodeFeatures&&(r.nodeFeatures=t.toGeoJSON(r.nodeFeatures)),r}),e}}class DRe{constructor(e){this.isAnalyzeById=!1,this.hasLeastEdgeCount=null,this.nodes=null,this.parameter=new $2,W.extend(this,e),this.CLASS_NAME="SuperMap.FindPathParameters"}destroy(){var e=this;e.isAnalyzeById=null,e.hasLeastEdgeCount=null,e.nodes=null,e.parameter&&(e.parameter.destroy(),e.parameter=null)}}class NRe extends Bd{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.FindPathService"}destroy(){super.destroy()}processAsync(e,t){if(e instanceof DRe){var r=this,i;return r.url=W.urlPathAppend(r.url,"path"),i={hasLeastEdgeCount:e.hasLeastEdgeCount,parameter:W.toJSON(e.parameter),nodes:r.getJson(e.isAnalyzeById,e.nodes)},r.request({method:"GET",params:i,scope:r,success:t,failure:t})}}getJson(e,t){var r="[",i=t?t.length:0;if(e===!1)for(let a=0;a0&&(r+=","),r+='{"x":'+t[a].x+',"y":'+t[a].y+"}";else if(e===!0)for(let a=0;a0&&(r+=","),r+=t[a];return r+="]",r}toGeoJSONResult(e){if(!e||!e.pathList||e.pathList.length<1)return null;var t=new uh;return e.pathList.forEach(function(r){r.route&&(r.route=t.toGeoJSON(r.route)),r.pathGuideItems&&(r.pathGuideItems=t.toGeoJSON(r.pathGuideItems)),r.edgeFeatures&&(r.edgeFeatures=t.toGeoJSON(r.edgeFeatures)),r.nodeFeatures&&(r.nodeFeatures=t.toGeoJSON(r.nodeFeatures))}),e}}class kRe{constructor(e){this.isAnalyzeById=!1,this.isCenterMutuallyExclusive=!1,this.centers=null,this.isFromCenter=!1,this.weights=null,this.parameter=new $2,W.extend(this,e),this.CLASS_NAME="SuperMap.FindServiceAreasParameters"}destroy(){var e=this;e.isAnalyzeById=null,e.isCenterMutuallyExclusive=null,e.centers=null,e.isFromCenter=null,e.weights=null,e.parameter&&(e.parameter.destroy(),e.parameter=null)}}class FRe extends Bd{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.FindServiceAreasService"}destroy(){super.destroy()}processAsync(e,t){if(e instanceof kRe){var r=this,i;return r.url=W.urlPathAppend(r.url,"servicearea"),i={isFromCenter:e.isFromCenter,isCenterMutuallyExclusive:e.isCenterMutuallyExclusive,parameter:W.toJSON(e.parameter),centers:r.getJson(e.isAnalyzeById,e.centers),weights:r.getJson(!0,e.weights)},r.request({method:"GET",params:i,scope:r,success:t,failure:t})}}getJson(e,t){var r="[",i=t?t.length:0;if(e===!1)for(let a=0;a0&&(r+=","),r+='{"x":'+t[a].x+',"y":'+t[a].y+"}";else if(e===!0)for(let a=0;a0&&(r+=","),r+=t[a];return r+="]",r}toGeoJSONResult(e){if(!e||!e.serviceAreaList)return e;var t=new uh;return e.serviceAreaList.map(function(r){return r.serviceRegion&&(r.serviceRegion=t.toGeoJSON(r.serviceRegion)),r.edgeFeatures&&(r.edgeFeatures=t.toGeoJSON(r.edgeFeatures)),r.nodeFeatures&&(r.nodeFeatures=t.toGeoJSON(r.nodeFeatures)),r.routes&&(r.routes=t.toGeoJSON(r.routes)),r}),e}}class BRe{constructor(e){this.endNodeAssigned=!1,this.isAnalyzeById=!1,this.nodes=null,this.parameter=new $2,W.extend(this,e),this.CLASS_NAME="SuperMap.FindTSPPathsParameters"}destroy(){var e=this;e.endNodeAssigned=null,e.isAnalyzeById=null,e.nodes=null,e.parameter&&(e.parameter.destroy(),e.parameter=null)}}class GRe extends Bd{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.FindTSPPathsService"}destroy(){super.destroy()}processAsync(e,t){if(e instanceof BRe){var r=this,i;return r.url=W.urlPathAppend(r.url,"tsppath"),i={parameter:W.toJSON(e.parameter),endNodeAssigned:e.endNodeAssigned,nodes:r.getNodesJson(e)},r.request({method:"GET",params:i,scope:r,success:t,failure:t})}}getNodesJson(e){var t="",r,i,a,o;if(e.isAnalyzeById===!1){for(r="[",i=0,o=e.nodes,a=o.length;i0&&(r+=","),r+='{"x":'+o[i].x+',"y":'+o[i].y+"}";r+="]",t+=r}else if(e.isAnalyzeById===!0){let s="[",l=e.nodes,u=l.length;for(let h=0;h0&&(s+=","),s+=l[h];s+="]",t+=s}return t}toGeoJSONResult(e){if(!e||!e.tspPathList)return null;var t=new uh;return e.tspPathList.forEach(function(r){r.route&&(r.route=t.toGeoJSON(r.route)),r.pathGuideItems&&(r.pathGuideItems=t.toGeoJSON(r.pathGuideItems)),r.edgeFeatures&&(r.edgeFeatures=t.toGeoJSON(r.edgeFeatures)),r.nodeFeatures&&(r.nodeFeatures=t.toGeoJSON(r.nodeFeatures))}),e}}class zRe{constructor(e){this.routeTable=null,this.routeIDField=null,this.attributeFilter=null,this.eventTable=null,this.eventRouteIDField=null,this.measureField=null,this.measureStartField=null,this.measureEndField=null,this.measureOffsetField=null,this.errorInfoField=null,this.retainedFields=null,this.dataReturnOption=null,e&&W.extend(this,e),this.CLASS_NAME="SuperMap.GenerateSpatialDataParameters"}destroy(){var e=this;e.routeTable&&(e.routeTable=null),e.routeIDField=null,e.attributeFilter=null,e.eventTable=null,e.eventRouteIDField=null,e.measureField=null,e.measureStartField=null,e.measureEndField=null,e.measureOffsetField=null,e.errorInfoField=null,e.dataReturnOption&&(e.dataReturnOption.destroy(),e.dataReturnOption=null)}}class URe extends Hu{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.GenerateSpatialDataService"}destroy(){super.destroy()}processAsync(e,t){if(e instanceof zRe){var r=this,i;return i=r.getJsonParameters(e),r.request({method:"POST",data:i,scope:r,success:t,failure:t})}}getJsonParameters(e){var t="",r="datasets/"+e.routeTable+"/linearreferencing/generatespatialdata",i=this;return i.url=W.urlPathAppend(i.url,r),i.url=W.urlAppend(i.url,"returnContent=true"),t=W.toJSON(e),t}}class aot extends XOe{constructor(e){super(),this.precision=5,W.extend(this,e),this.aggType=TOe.GEOHASH_GRID,this.CLASS_NAME="SuperMap.GeoHashGridAggParameter"}destroy(){super.destroy(),this.aggType=null,this.precision=null}static toJsonParameters(e){var t={aggName:e.aggName,aggFieldName:e.aggFieldName,aggType:e.aggType,precision:e.precision};return W.toJson(t)}}class V8 extends Rne{constructor(e){super(e),e&&e.operateGeometry&&(this.operateGeometry=e.operateGeometry),e&&e.sourceGeometry&&(this.sourceGeometry=e.sourceGeometry),e&&e.operateGeometries&&(this.operateGeometries=e.operateGeometries),e&&e.sourceGeometries&&(this.sourceGeometries=e.sourceGeometries),e&&W.extend(this,e),this.CLASS_NAME="SuperMap.GeometryOverlayAnalystParameters"}destroy(){super.destroy();var e=this;e.sourceGeometry&&(e.sourceGeometry.destroy(),e.sourceGeometry=null),e.sourceGeometries&&(e.sourceGeometries.destroy(),e.sourceGeometries=null),e.sourceGeometry&&(e.sourceGeometry.destroy(),e.sourceGeometry=null),e.operateGeometries&&(e.operateGeometries.destroy(),e.operateGeometries=null)}static toObject(e,t){for(var r in e)if(r==="sourceGeometry")t.sourceGeometry=Vo.fromGeometry(e.sourceGeometry);else if(r==="sourceGeometries"){for(var i=[],a=0;a=0;t--)e.points[t].destroy();e.points=null}}static toObject(e,t){for(var r in e)r==="clipRegion"?t.clipRegion=Vo.fromGeometry(e.clipRegion):t[r]=e[r]}}class $Re extends ra{constructor(e,t){t=t||{},super(e,t),this.CLASS_NAME="SuperMap.GeoprocessingService",this.headers={},this.crossOrigin=!0}getTools(e){return this._processAsync({url:`${this.url}/list`,callback:e})}getTool(e,t){return this._processAsync({url:`${this.url}/${e}`,callback:t})}execute(e,t,r,i){t=t||null,r=r||null;const a={parameter:t,environment:r};return this._processAsync({url:`${this.url}/${e}/execute`,executeParamter:a,callback:i})}submitJob(e,t,r,i){t=t||null,r=r||null;const a=JSON.stringify({parameter:t,environments:r});return this._processAsync({url:`${this.url}/${e}/jobs`,method:"POST",callback:i,params:a})}waitForJobCompletion(e,t,r,i){const a=this,o=setInterval(function(){const s=function(l){const u=l.result.state.runState;l.options.statusCallback&&l.options.statusCallback(u),["FINISHED","FAILED","CANCELED"].indexOf(u)!==-1&&(clearInterval(o),i(l))};a._processAsync({url:`${a.url}/${t}/jobs/${e}`,callback:s})},r.interval)}getJobInfo(e,t,r){return this._processAsync({url:`${this.url}/${e}/jobs/${t}`,callback:r})}cancelJob(e,t,r){return this._processAsync({url:`${this.url}/${e}/jobs/${t}/cancel`,callback:r})}getJobs(e,t){let r=`${this.url}/jobs`;e&&typeof e=="string"?r=`${this.url}/${e}/jobs`:t=e,this._processAsync({url:r,callback:t})}getResults(e,t,r,i){let a=`${this.url}/${e}/jobs/${t}/results`;return r&&(typeof r=="string"?a=`${a}/${r}`:i=r),this._processAsync({url:a,callback:i})}_processAsync({url:e,method:t,callback:r,paramter:i}){return this.request({url:e,method:t||"GET",params:i,headers:{"Content-type":"application/json"},scope:this,success:r,failure:r})}}class WRe{constructor(e){this.dataset=null,this.sourceFilter=null,this.referenceFilter=null,this.spatialRelationType=null,this.isBorderInside=null,this.returnFeature=null,this.returnGeoRelatedOnly=null,this.startRecord=0,this.expectCount=500,e&&W.extend(this,e),this.CLASS_NAME="SuperMap.GeoRelationAnalystParameters"}destroy(){var e=this;e.sourceFilter&&e.sourceFilter.destroy(),e.sourceFilter=null,e.referenceFilter&&e.referenceFilter.destroy(),e.referenceFilter=null,e.dataset=null,e.spatialRelationType=null,e.isBorderInside=null,e.returnFeature=null,e.returnGeoRelatedOnly=null,e.startRecord=null,e.expectCount=null}}class HRe extends Hu{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.GeoRelationAnalystService"}destroy(){super.destroy()}processAsync(e,t){if(e instanceof WRe){var r=this;r.url=W.urlPathAppend(r.url,"datasets/"+e.dataset+"/georelation");var i=W.toJSON(e);return r.url=W.urlAppend(r.url,"returnContent=true"),r.request({method:"POST",data:i,scope:r,success:t,failure:t})}}}class jRe extends ra{constructor(e,t){super(e,t),t&&(this.datasource=null,this.dataset=null,t&&W.extend(this,t),this.CLASS_NAME="SuperMap.DatasetService")}destroy(){super.destroy();var e=this;e.datasource=null,e.dataset=null}getDatasetsService(e,t){const r=W.urlPathAppend(this.url,`datasources/name/${e}/datasets`);return this.processAsync(r,"GET",t)}getDatasetService(e,t,r){const i=W.urlPathAppend(this.url,`datasources/name/${e}/datasets/name/${t}`);return this.processAsync(i,"GET",r)}setDatasetService(e,t){if(!e)return;const r=W.urlPathAppend(this.url,`datasources/name/${e.datasourceName}/datasets/name/${e.datasetName}`);return delete e.datasourceName,this.processAsync(r,"PUT",t,e)}deleteDatasetService(e,t,r){const i=W.urlPathAppend(this.url,`datasources/name/${e}/datasets/name/${t}`);return this.processAsync(i,"DELETE",r)}processAsync(e,t,r,i){var a=this;let o={url:e,method:t,scope:a,success:r,failure:r};return i&&(o.data=W.toJSON(i)),a.request(o)}}class EI{constructor(e){this.datasetNames=null,this.targetEpsgCode=null,this.targetPrj=null,this.returnContent=!0,this.fromIndex=0,this.toIndex=19,this.returnCountOnly=!1,this.maxFeatures=null,this.hasGeometry=!0,this.aggregations=null,W.extend(this,e),this.CLASS_NAME="SuperMap.GetFeaturesParametersBase"}destroy(){var e=this;e.datasetNames=null,e.returnContent=null,e.fromIndex=null,e.toIndex=null,e.hasGeometry=null,e.maxFeatures=null,e.targetEpsgCode=null,e.targetPrj=null,e.aggregation&&(e.aggregation=null)}}class xE extends EI{constructor(e){super(e),this.getFeatureMode=xE.getFeatureMode.BOUNDS,this.bounds=null,this.fields=null,this.attributeFilter=null,this.spatialQueryMode=n3.CONTAIN,W.extend(this,e),this.CLASS_NAME="SuperMap.GetFeaturesByBoundsParameters"}destroy(){super.destroy();var e=this;if(e.bounds&&(e.bounds.destroy(),e.bounds=null),e.fields){for(;e.fields.length>0;)e.fields.pop();e.fields=null}e.attributeFilter=null,e.spatialQueryMode=null,e.getFeatureMode=null}static toJsonParameters(e){var t,r,i;return r={leftBottom:{x:e.bounds.left,y:e.bounds.bottom},rightTop:{x:e.bounds.right,y:e.bounds.top}},i={datasetNames:e.datasetNames,getFeatureMode:xE.getFeatureMode.BOUNDS,bounds:r,spatialQueryMode:e.spatialQueryMode},e.fields&&(t=new Pf,t.name=e.datasetNames,t.fields=e.fields,i.queryParameter=t),e.attributeFilter&&(i.attributeFilter=e.attributeFilter,i.getFeatureMode=xE.getFeatureMode.BOUNDS_ATTRIBUTEFILTER),e.maxFeatures&&!isNaN(e.maxFeatures)&&(i.maxFeatures=e.maxFeatures),typeof e.hasGeometry=="boolean"&&(i.hasGeometry=e.hasGeometry),e.targetEpsgCode&&(i.targetEpsgCode=e.targetEpsgCode),!e.targetEpsgCode&&e.targetPrj&&(i.targetPrj=e.targetPrj),e.aggregations&&(i.aggregations=e.aggregations),W.toJSON(i)}}xE.getFeatureMode={BOUNDS:"BOUNDS",BOUNDS_ATTRIBUTEFILTER:"BOUNDS_ATTRIBUTEFILTER"};class TI extends ra{constructor(e,t){super(e,t),t=t||{},this.returnContent=!0,this.fromIndex=0,this.toIndex=19,this.hasGeometry=!0,this.maxFeatures=null,this.format=Ni.GEOJSON,W.extend(this,t),this.url=W.urlPathAppend(this.url,"featureResults"),this.CLASS_NAME="SuperMap.GetFeaturesServiceBase"}destroy(){super.destroy();var e=this;e.returnContent=null,e.fromIndex=null,e.toIndex=null,e.maxFeatures=null,e.format=null,e.hasGeometry=null}processAsync(e,t){if(!!e){var r=this,i=null,a=!0;r.returnContent=e.returnContent,r.fromIndex=e.fromIndex,r.toIndex=e.toIndex,r.maxFeatures=e.maxFeatures,r.hasGeometry=e.hasGeometry,r.returnContent&&(a=!1);var o=r.fromIndex!=null&&r.toIndex!=null&&!isNaN(r.fromIndex)&&!isNaN(r.toIndex);return o&&r.fromIndex>=0&&r.toIndex>=0&&!a&&(r.url=W.urlAppend(r.url,`fromIndex=${r.fromIndex}&toIndex=${r.toIndex}`)),e.returnCountOnly&&(r.url=W.urlAppend(r.url,"&returnCountOnly="+e.returnContent)),i=r.getJsonParameters(e),r.request({method:"POST",data:i,scope:r,success:t,failure:t})}}transformResult(e,t){var r=this;if(e=W.transformResult(e),r.format===Ni.GEOJSON&&e.features){var i=new uh;e.features=i.toGeoJSON(e.features)}return{result:e,options:t}}dataFormat(){return[Ni.GEOJSON,Ni.ISERVER,Ni.FGB]}}class XRe extends TI{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.GetFeaturesByBoundsService"}destroy(){super.destroy()}getJsonParameters(e){return xE.toJsonParameters(e)}}class fK extends EI{constructor(e){super(e),this.bufferDistance=null,this.attributeFilter=null,this.geometry=null,this.fields=null,W.extend(this,e),this.CLASS_NAME="SuperMap.GetFeaturesByBufferParameters"}destroy(){super.destroy();var e=this;if(e.bufferDistance=null,e.attributeFilter=null,e.fields){for(;e.fields.length>0;)e.fields.pop();e.fields=null}e.geometry&&(e.geometry.destroy(),e.geometry=null)}static toJsonParameters(e){var t,r,i;return i=Vo.fromGeometry(e.geometry),r={datasetNames:e.datasetNames,getFeatureMode:"BUFFER",bufferDistance:e.bufferDistance,geometry:i},e.fields&&(t=new Pf,t.name=e.datasetNames,t.fields=e.fields,r.queryParameter=t),e.attributeFilter&&(r.attributeFilter=e.attributeFilter,r.getFeatureMode="BUFFER_ATTRIBUTEFILTER"),e.maxFeatures&&!isNaN(e.maxFeatures)&&(r.maxFeatures=e.maxFeatures),typeof e.hasGeometry=="boolean"&&(r.hasGeometry=e.hasGeometry),e.targetEpsgCode&&(r.targetEpsgCode=e.targetEpsgCode),!e.targetEpsgCode&&e.targetPrj&&(r.targetPrj=e.targetPrj),W.toJSON(r)}}class YRe extends TI{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.GetFeaturesByBufferService"}destroy(){super.destroy()}getJsonParameters(e){if(e instanceof fK)return fK.toJsonParameters(e)}}class qRe extends EI{constructor(e){super(e),this.getFeatureMode="SPATIAL",this.geometry=null,this.fields=null,this.attributeFilter=null,this.spatialQueryMode=n3.CONTAIN,W.extend(this,e),this.CLASS_NAME="SuperMap.GetFeaturesByGeometryParameters"}destroy(){super.destroy();var e=this;if(e.geometry&&(e.geometry.destroy(),e.geometry=null),e.fields){for(;e.fields.length>0;)e.fields.pop();e.fields=null}e.attributeFilter=null,e.spatialQueryMode=null,e.getFeatureMode=null}static toJsonParameters(e){var t,r,i;return r=Vo.fromGeometry(e.geometry),i={datasetNames:e.datasetNames,getFeatureMode:"SPATIAL",geometry:r,spatialQueryMode:e.spatialQueryMode},e.fields&&(t=new Pf,t.name=e.datasetNames,t.fields=e.fields,i.queryParameter=t),e.attributeFilter&&(i.attributeFilter=e.attributeFilter,i.getFeatureMode="SPATIAL_ATTRIBUTEFILTER"),e.maxFeatures&&!isNaN(e.maxFeatures)&&(i.maxFeatures=e.maxFeatures),typeof e.hasGeometry=="boolean"&&(i.hasGeometry=e.hasGeometry),e.targetEpsgCode&&(i.targetEpsgCode=e.targetEpsgCode),!e.targetEpsgCode&&e.targetPrj&&(i.targetPrj=e.targetPrj),e.aggregations&&(i.aggregations=e.aggregations),W.toJSON(i)}}class ZRe extends TI{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.GetFeaturesByGeometryService"}destroy(){super.destroy()}getJsonParameters(e){return qRe.toJsonParameters(e)}}class KRe extends EI{constructor(e){super(e),this.getFeatureMode="ID",this.IDs=null,this.fields=null,W.extend(this,e),this.CLASS_NAME="SuperMap.GetFeaturesByIDsParameters"}destroy(){super.destroy();var e=this;if(e.IDs=null,e.getFeatureMode=null,e.fields){for(;e.fields.length>0;)e.fields.pop();e.fields=null}}static toJsonParameters(e){var t,r;return t={datasetNames:e.datasetNames,getFeatureMode:"ID",ids:e.IDs},e.fields&&(r=new Pf,r.name=e.datasetNames,r.fields=e.fields,t.queryParameter=r),e.targetEpsgCode&&(t.targetEpsgCode=e.targetEpsgCode),typeof e.hasGeometry=="boolean"&&(t.hasGeometry=e.hasGeometry),!e.targetEpsgCode&&e.targetPrj&&(t.targetPrj=e.targetPrj),e.aggregations&&(t.aggregations=e.aggregations),W.toJSON(t)}}class JRe extends TI{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.GetFeaturesByIDsService"}destroy(){super.destroy()}getJsonParameters(e){return KRe.toJsonParameters(e)}}class VR extends EI{constructor(e){super(e),this.getFeatureMode="SQL",this.queryParameter=null,W.extend(this,e),this.CLASS_NAME="SuperMap.GetFeaturesBySQLParameters"}destroy(){super.destroy();var e=this;e.getFeatureMode=null,e.queryParameter&&(e.queryParameter.destroy(),e.queryParameter=null)}static toJsonParameters(e){var t={datasetNames:e.datasetNames,getFeatureMode:"SQL",queryParameter:e.queryParameter};return e.maxFeatures&&!isNaN(e.maxFeatures)&&(t.maxFeatures=e.maxFeatures),typeof e.hasGeometry=="boolean"&&(t.hasGeometry=e.hasGeometry),e.aggregations&&(t.aggregations=e.aggregations),e.targetEpsgCode&&(t.targetEpsgCode=e.targetEpsgCode),!e.targetEpsgCode&&e.targetPrj&&(t.targetPrj=e.targetPrj),e.aggregations&&(t.aggregations=e.aggregations),W.toJSON(t)}}class W8 extends TI{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.GetFeaturesBySQLService"}destroy(){super.destroy()}getJsonParameters(e){return VR.toJsonParameters(e)}}class QRe extends ra{constructor(e,t){super(e,t),this.datasource=null,this.dataset=null,t&&W.extend(this,t),this.CLASS_NAME="SuperMap.GetFieldsService"}destroy(){super.destroy();var e=this;e.datasource=null,e.dataset=null}processAsync(e){var t=this;return t.url=W.urlPathAppend(t.url,`datasources/${t.datasource}/datasets/${t.dataset}/fields`),t.request({method:"GET",data:null,scope:t,success:e,failure:e})}}class eDe{constructor(e){this.datasetName=null,this.dataSourceName=null,this.X=null,this.Y=null,W.extend(this,e),this.CLASS_NAME="SuperMap.GetGridCellInfosParameters"}destroy(){var e=this;e.datasetName=null,e.dataSourceName=null,e.X=null,e.Y=null}}class tDe extends ra{constructor(e,t){super(e,t),this.datasetName=null,this.dataSourceName=null,this.datasetType=null,this.X=null,this.Y=null,t&&W.extend(this,t),this.CLASS_NAME="SuperMap.GetGridCellInfosService"}destroy(){super.destroy();var e=this;e.X=null,e.Y=null,e.datasetName=null,e.dataSourceName=null,e.datasetType=null}processAsync(e,t){if(e instanceof eDe){W.extend(this,e);var r=this;return r.url=W.urlPathAppend(r.url,`datasources/${r.dataSourceName}/datasets/${r.datasetName}`),r.request({method:"GET",data:null,scope:r,success({result:i}){t&&r.getDatasetInfoCompleted(i,t)},failure:t}).then(({result:i})=>r.getDatasetInfoCompleted(i))}}getDatasetInfoCompleted(e,t){var r=this;return e=W.transformResult(e),r.datasetType=e.datasetInfo.type,r.queryGridInfos(t)}queryGridInfos(e){var t=this,r=W.urlPathAppend(t.url,t.datasetType=="GRID"?"gridValue":"imageValue");return t.X!=null&&t.Y!=null&&(r=W.urlAppend(r,`x=${t.X}&y=${t.Y}`)),t.request({url:r,method:"GET",data:null,scope:t,success:e,failure:e})}}class R_{constructor(e,t){if(!e)return this;this.memoryData=null,this.type=e,t&&W.extend(this,t),this.CLASS_NAME="SuperMap.Theme"}destroy(){var e=this;e.memoryData&&(e.memoryData.destroy(),e.memoryData=null),e.type=null}toServerJSONObject(){}}class md{constructor(e){this.align=sOe.BASELINECENTER,this.backColor=new Js(255,255,255),this.foreColor=new Js(0,0,0),this.backOpaque=!1,this.sizeFixed=!0,this.fontHeight=6,this.fontWidth=0,this.fontWeight=400,this.fontName="Times New Roman",this.bold=!1,this.italic=!1,this.italicAngle=0,this.shadow=!1,this.strikeout=!1,this.outline=!1,this.opaqueRate=0,this.underline=!1,this.rotation=0,e&&W.extend(this,e),this.CLASS_NAME="SuperMap.ServerTextStyle"}destroy(){var e=this;e.align=null,e.backColor&&(e.backColor.destroy(),e.backColor=null),e.foreColor&&(e.foreColor.destroy(),e.foreColor=null),e.backOpaque=null,e.sizeFixed=null,e.fontHeight=null,e.fontWidth=null,e.fontWeight=null,e.fontName=null,e.bold=null,e.italic=null,e.italicAngle=null,e.shadow=null,e.strikeout=null,e.outline=null,e.opaqueRate=null,e.underline=null,e.rotation=null}static fromObj(e){var t=new md(e);return W.copy(t,e),t.backColor=Js.fromJson(e.backColor),t.foreColor=Js.fromJson(e.foreColor),t}}class xz{constructor(e){this.caption=null,this.end=0,this.start=0,this.visible=!0,this.style=new md,e&&W.extend(this,e),this.CLASS_NAME="SuperMap.ThemeLabelItem"}destroy(){var e=this;e.caption=null,e.end=null,e.start=null,e.style&&(e.style.destroy(),e.style=null),e.visible=null}static fromObj(e){if(!!e){var t=new xz;return W.copy(t,e),t}}}class o3{constructor(e){this.caption=null,this.style=new gs,this.unique=null,this.visible=!0,e&&W.extend(this,e),this.CLASS_NAME="SuperMap.ThemeUniqueItem"}destroy(){var e=this;e.caption=null,e.unique=null,e.style&&(e.style.destroy(),e.style=null),e.visible=null}toServerJSONObject(){var e={};return e=W.copyAttributes(e,this),e.style&&e.style.toServerJSONObject&&(e.style=e.style.toServerJSONObject()),e}static fromObj(e){var t=new o3;return W.copy(t,e),t.style=gs.fromJson(e.style),t}}class o_{constructor(e){this.offsetFixed=!1,this.offsetX="0.0",this.offsetY="0.0",e&&W.extend(this,e),this.CLASS_NAME="SuperMap.ThemeOffset"}destroy(){var e=this;e.offsetFixed=null,e.offsetX=null,e.offsetY=null}static fromObj(e){if(!!e){var t=new o_;return W.copy(t,e),t}}}class Sz{constructor(e){this.defaultStyle=null,this.separator=null,this.separatorEnabled=!1,this.splitIndexes=null,this.styles=new md,e&&W.extend(this,e),this.CLASS_NAME="SuperMap.LabelMixedTextStyle"}destroy(){var e=this;if(e.defaultStyle&&(e.defaultStyle.destroy(),e.defaultStyle=null),e.separator=null,e.separatorEnabled=null,e.splitIndexes&&(e.splitIndexes=null),e.styles){for(var t=0,r=e.styles,i=r.length;t0)for(var t in e.items)e.items[t].destroy(),e.items[t]=null;e.items=null}e.defaultStyle&&(e.defaultStyle.destroy(),e.defaultStyle=null)}toServerJSONObject(){var e={};if(e=W.copyAttributes(e,this),e.defaultStyle&&e.defaultStyle.toServerJSONObject&&(e.defaultStyle=e.defaultStyle.toServerJSONObject()),e.items){for(var t=[],r=e.items.length,i=0;i0)for(var t in e.items)e.items[t].destroy(),e.items[t]=null;e.items=null}e.rangeExpression=null,e.rangeMode=null,e.rangeParameter=null,e.colorGradientType=null}static fromObj(e){if(!!e){var t=new Mz;W.copy(t,e);var r=e.items,i=r?r.length:0;t.items=[];for(var a=0;a0,a=i?e[0].subLayers.layers:null,o=a?a.length:0,r.handleLayers(o,a),{result:e[0],options:t}}handleLayers(e,t){var r=this,i;if(e)for(var a=0;a0)r.handleLayers(t[a].subLayers.layers.length,t[a].subLayers.layers);else{var o=t[a].ugcLayerType;switch(o){case"THEME":i=new iDe,i.fromJson(t[a]),t[a]=i;break;case"GRID":i=new aDe,i.fromJson(t[a]),t[a]=i;break;case"IMAGE":i=new oDe,i.fromJson(t[a]),t[a]=i;break;case"VECTOR":i=new sDe,i.fromJson(t[a]),t[a]=i;break}}}}class Dy{constructor(e){!e||(this.bounds=null,this.searchRadius=0,this.zValueFieldName=null,this.zValueScale=1,this.resolution=null,this.filterQueryParameter=null,this.outputDatasetName=null,this.outputDatasourceName=null,this.pixelFormat=null,this.dataset=null,this.inputPoints=null,this.InterpolationAnalystType="dataset",this.clipParam=null,W.extend(this,e),this.CLASS_NAME="SuperMap.InterpolationAnalystParameters")}destroy(){var e=this;e.bounds=null,e.searchRadius=null,e.zValueFieldName=null,e.zValueScale=null,e.resolution=null,e.filterQueryParameter=null,e.outputDatasetName=null,e.pixelFormat=null}static toObject(e,t){for(var r in e)if(r==="inputPoints"&&e.InterpolationAnalystType==="geometry"){for(var i=[],a=0;a=200&&e.code<300||e.code==0||e.code===304,i=e.code&&r;return!e.code||i?{result:e,options:t}:{error:e,options:t}}}class vK{constructor(e){!e||(this.dataset=null,this.extractRegion=null,this.expression=null,this.isZip=!1,this.ignoreNoValue=!1,this.targetDatasource=null,this.resultGridName=null,this.deleteExistResultDataset=!1,W.extend(this,e),this.CLASS_NAME="SuperMap.MathExpressionAnalysisParameters")}destroy(){var e=this;e.dataset=null,e.bounds=null,e.expression=null,e.isZip=!0,e.ignoreNoValue=!0,e.targetDatasource=null,e.resultGridName=null,e.deleteExistResultDataset=null}static toObject(e,t){for(var r in e)if(r!=="dataset"&&(t[r]=e[r]),r==="extractRegion"&&e[r]){for(var i=e[r].components[0].components,a={},o=[],s="REGION",l=i.length,u=0;u(l.fieldNames=o[a].fieldCaptions,l)),r.format===Ni.GEOJSON&&(o[a].features=i.toGeoJSON(o[a].features)));return{result:e,options:t}}dataFormat(){return[Ni.GEOJSON,Ni.ISERVER,Ni.FGB]}getQueryParameters(e){return new OS({customParams:e.customParams,expectCount:e.expectCount,networkType:e.networkType,queryOption:e.queryOption,queryParams:e.queryParams,startRecord:e.startRecord,prjCoordSys:e.prjCoordSys,holdTime:e.holdTime})}}class SDe extends Lz{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.QueryByBoundsService"}destroy(){super.destroy()}getJsonParameters(e){if(!(e instanceof xDe))return null;var t=this,r="",i=null,a=e.bounds;return i=t.getQueryParameters(e),r+="'queryMode':'BoundsQuery','queryParameters':",r+=W.toJSON(i),r+=",'bounds': {'rightTop':{'y':"+a.top+",'x':"+a.right+"},'leftBottom':{'y':"+a.bottom+",'x':"+a.left+"}}",r="{"+r+"}",r}}class wDe extends OS{constructor(e){e=e||{},super(e),this.geometry=null,this.isNearest=null,this.returnContent=!0,W.extend(this,e),this.CLASS_NAME="SuperMap.QueryByDistanceParameters"}destroy(){super.destroy();var e=this;e.returnContent=null,e.distance=null,e.isNearest=null,e.geometry&&(e.geometry.destroy(),e.geometry=null)}}class bDe extends Lz{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.QueryByDistanceService"}destroy(){super.destroy()}getJsonParameters(e){if(e instanceof wDe){var t=this,r="",i=t.getQueryParameters(e),a=Vo.fromGeometry(e.geometry);return r+=e.isNearest?"'queryMode':'FindNearest','queryParameters':":"'queryMode':'DistanceQuery','queryParameters':",r+=W.toJSON(i),r+=",'geometry':"+W.toJSON(a)+",'distance':"+e.distance,r="{"+r+"}",r}}}class EDe extends OS{constructor(e){e=e||{},super(e),this.returnContent=!0,this.geometry=null,this.spatialQueryMode=n3.INTERSECT,W.extend(this,e),this.CLASS_NAME="SuperMap.QueryByGeometryParameters"}destroy(){super.destroy();var e=this;e.returnContent=null,e.geometry=null,e.spatialQueryMode=null}}class TDe extends Lz{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.QueryByGeometryService"}destroy(){super.destroy()}getJsonParameters(e){if(e instanceof EDe){var t=this,r="",i=null,a=e.geometry,o=Vo.fromGeometry(a);return i=t.getQueryParameters(e),r+="'queryMode':'SpatialQuery','queryParameters':",r+=W.toJSON(i)+",'geometry':"+W.toJSON(o)+",'spatialQueryMode':"+W.toJSON(e.spatialQueryMode),r="{"+r+"}",r}}}class ZR extends OS{constructor(e){e=e||{},super(e),this.returnContent=!0,W.extend(this,e),this.CLASS_NAME="SuperMap.QueryBySQLParameters"}destroy(){super.destroy();var e=this;e.returnContent=null}}class H8 extends Lz{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.QueryBySQLService"}destroy(){super.destroy()}getJsonParameters(e){if(e instanceof ZR){var t=this,r="",i=null;return i=t.getQueryParameters(e),r+="'queryMode':'SqlQuery','queryParameters':",r+=W.toJSON(i),r="{"+r+"}",r}}}class CDe{constructor(e){this.referenceDatasetName=null,this.referenceFilterQueryParameter=null,this.createResultDataset=null,this.resultDatasetName=null,this.resultDatasourceName=null,this.minDistance=null,this.maxDistance=null,e&&W.extend(this,e),this.CLASS_NAME="SuperMap.MinDistanceAnalystParameters"}destroy(){var e=this;e.referenceDatasetName=null,e.dataset=null,e.referenceFilterQueryParameter=null,e.createResultDataset=null,e.resultDatasetName=null,e.resultDatasourceName=null,e.minDistance=null,e.maxDistance=null}}class ADe extends CDe{constructor(e){super(e),this.dataset=null,this.inputFilterQueryParameter=null,e&&W.extend(this,e),this.CLASS_NAME="SuperMap.DatasetMinDistanceAnalystParameters"}destroy(){super.destroy();var e=this;this.dataset=null,e.inputFilterQueryParameter=null}}class pK extends CDe{constructor(e){super(e),this.inputGeometries=null,e&&W.extend(this,e),this.CLASS_NAME="SuperMap.GeometryMinDistanceAnalystParameters"}destroy(){super.destroy();var e=this;e.inputGeometries=null}static toObject(e,t){for(var r in e)if(r==="inputGeometries"&&e.inputGeometries){for(var i=[],a=0;a0&&(a+='"subLayers":'+e.toJSON()),a+=',"visible":'+!0+",",a+='"name":"'+this.getMapName(this.mapUrl)+'"',a+="}]",r.request({method:"PUT",data:a,scope:r,success:t,failure:t})}}createTempLayerComplete(e,t){var r=this;return t.result=W.transformResult(t.result),t.result.succeed&&(r.lastparams.resourceID=t.result.newResourceID),r.processAsync(r.lastparams,e)}getMapName(e){var t=e;t.charAt(t.length-1)==="/"&&(t=t.substr(0,t.length-1));var r=t.lastIndexOf("/"),i=t.substring(r+1,t.length);return i}transformResult(e,t){var r=this;return e=W.transformResult(e),e!=null&&r.lastparams!=null&&r.lastparams.resourceID!=null&&(e.newResourceID=r.lastparams.resourceID),{result:e,options:t}}}class YDe{constructor(e){!e||(this.datasetName="",this.datasetQuery="",this.geometryQuery="",this.mode=n3.CONTAIN,this.output=null,this.mappingParameters=null,W.extend(this,e),this.CLASS_NAME="SuperMap.SingleObjectQueryJobsParameter")}destroy(){this.datasetName=null,this.datasetQuery=null,this.geometryQuery=null,this.mode=null,this.output instanceof Cm&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof Am&&(this.mappingParameters.destroy(),this.mappingParameters=null)}static toObject(e,t){for(var r in e){if(r==="datasetName"){t.input=t.input||{},t.input[r]=e[r];continue}if(r==="output"){t.output=t.output||{},t.output=e[r];continue}t.analyst=t.analyst||{},t.analyst[r]=e[r],r==="mappingParameters"&&(t.analyst[r]=t.analyst[r]||{},t.analyst.mappingParameters=e[r])}}}class sB extends Mm{constructor(e,t){super(e,t),this.url=W.urlPathAppend(this.url,"spatialanalyst/query"),this.CLASS_NAME="SuperMap.SingleObjectQueryJobsService"}destroy(){super.destroy()}getQueryJobs(e){return super.getJobs(this.url,e)}getQueryJob(e,t){return super.getJobs(W.urlPathAppend(this.url,e),t)}addQueryJob(e,t,r,i){return super.addJob(this.url,e,YDe,t,r,i)}}class qDe{constructor(e){e=e||{},this.keyWord=null,this.returnPosition=!1,W.extend(this,e),this.CLASS_NAME="SuperMap.StopQueryParameters"}destroy(){W.reset(this)}}class ZDe extends ra{constructor(e,t){super(e,t),t=t||{},W.extend(this,t),this.CLASS_NAME="SuperMap.StopQueryService"}destroy(){super.destroy(),W.reset(this)}processAsync(e,t){if(e instanceof qDe){var r=this;return r.url=W.urlPathAppend(r.url,"stops/keyword/"+e.keyWord),r.request({method:"GET",params:{returnPosition:e.returnPosition},scope:r,success:t,failure:t})}}}class KDe{constructor(e){!e||(this.datasetName="",this.groupField="",this.attributeField="",this.statisticModes="",this.output=null,this.mappingParameters=null,W.extend(this,e),this.CLASS_NAME="SuperMap.SummaryAttributesJobsParameter")}destroy(){this.datasetName=null,this.groupField=null,this.attributeField=null,this.statisticModes=null,this.output instanceof Cm&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof Am&&(this.mappingParameters.destroy(),this.mappingParameters=null)}static toObject(e,t){for(var r in e){if(r==="datasetName"){t.input=t.input||{},t.input[r]=e[r];continue}if(r==="output"){t.output=t.output||{},t.output=e[r];continue}t.analyst=t.analyst||{},t.analyst[r]=e[r],r==="mappingParameters"&&(t.analyst[r]=t.analyst[r]||{},t.analyst.mappingParameters=e[r])}}}class lB extends Mm{constructor(e,t){super(e,t),this.url=W.urlPathAppend(this.url,"spatialanalyst/summaryattributes"),this.CLASS_NAME="SuperMap.SummaryAttributesJobsService"}destroy(){super.destroy()}getSummaryAttributesJobs(e){return super.getJobs(this.url,e)}getSummaryAttributesJob(e,t){return super.getJobs(W.urlPathAppend(this.url,e),t)}addSummaryAttributesJob(e,t,r,i){return super.addJob(this.url,e,KDe,t,r,i)}}class JDe{constructor(e){!e||(this.datasetName="",this.regionDataset="",this.query="",this.resolution=100,this.meshType=0,this.statisticModes=bOe.AVERAGE,this.fields="",this.type=Ene.SUMMARYMESH,this.output=null,this.mappingParameters=null,W.extend(this,e),this.CLASS_NAME="SuperMap.SummaryMeshJobParameter")}destroy(){this.datasetName=null,this.query=null,this.resolution=null,this.statisticModes=null,this.meshType=null,this.fields=null,this.regionDataset=null,this.type=null,this.output instanceof Cm&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof Am&&(this.mappingParameters.destroy(),this.mappingParameters=null)}static toObject(e,t){for(var r in e){if(r==="datasetName"){t.input=t.input||{},t.input[r]=e[r];continue}if(r==="type"){t.type=e[r];continue}if(r==="output"){t.output=t.output||{},t.output=e[r];continue}(e.type==="SUMMARYMESH"&&r!=="regionDataset"||e.type==="SUMMARYREGION"&&!i(["meshType","resolution","query"],r))&&(t.analyst=t.analyst||{},r==="query"&&e[r]?t.analyst[r]=e[r].toBBOX():t.analyst[r]=e[r],r==="mappingParameters"&&(t.analyst[r]=t.analyst[r]||{},t.analyst.mappingParameters=e[r]))}function i(a,o){for(var s=a.length;s--;)if(a[s]===o)return!0;return!1}}}class uB extends Mm{constructor(e,t){super(e,t),this.url=W.urlPathAppend(this.url,"spatialanalyst/aggregatepoints"),this.CLASS_NAME="SuperMap.SummaryMeshJobsService"}destroy(){super.destroy()}getSummaryMeshJobs(e){return super.getJobs(this.url,e)}getSummaryMeshJob(e,t){return super.getJobs(W.urlPathAppend(this.url,e),t)}addSummaryMeshJob(e,t,r,i){return super.addJob(this.url,e,JDe,t,r,i)}}class QDe{constructor(e){!e||(this.datasetName="",this.regionDataset="",this.sumShape=!0,this.query="",this.standardSummaryFields=!1,this.standardFields="",this.standardStatisticModes="",this.weightedSummaryFields=!1,this.weightedFields="",this.weightedStatisticModes="",this.meshType=0,this.resolution=100,this.meshSizeUnit=zR.METER,this.type=Ene.SUMMARYMESH,this.output=null,this.mappingParameters=null,W.extend(this,e),this.CLASS_NAME="SuperMap.SummaryRegionJobParameter")}destroy(){this.datasetName=null,this.sumShape=null,this.regionDataset=null,this.query=null,this.standardSummaryFields=null,this.standardFields=null,this.standardStatisticModes=null,this.weightedSummaryFields=null,this.weightedFields=null,this.weightedStatisticModes=null,this.meshType=null,this.resolution=null,this.meshSizeUnit=null,this.type=null,this.output instanceof Cm&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof Am&&(this.mappingParameters.destroy(),this.mappingParameters=null)}static toObject(e,t){for(var r in e){if(r==="datasetName"){t.input=t.input||{},t.input[r]=e[r];continue}if(r==="type"){t.type=e[r];continue}if(r==="type"){t.type=e[r];continue}if(r==="output"){t.output=t.output||{},t.output=e[r];continue}(e.type==="SUMMARYREGION"||e.type==="SUMMARYMESH"&&r!=="regionDataset")&&(t.analyst=t.analyst||{},r==="query"&&e[r]?t.analyst[r]=e[r].toBBOX():t.analyst[r]=e[r],r==="mappingParameters"&&(t.analyst[r]=t.analyst[r]||{},t.analyst.mappingParameters=e[r]))}}}class hB extends Mm{constructor(e,t){super(e,t),this.url=W.urlPathAppend(this.url,"spatialanalyst/summaryregion"),this.CLASS_NAME="SuperMap.SummaryRegionJobsService"}destroy(){super.destroy()}getSummaryRegionJobs(e){return super.getJobs(this.url,e)}getSummaryRegionJob(e,t){return super.getJobs(W.urlPathAppend(this.url,e),t)}addSummaryRegionJob(e,t,r,i){return super.addJob(this.url,e,QDe,t,r,i)}}class kne{constructor(e){this.maxWeight=null,this.nodeID=null,this.resourceValue=null,this.type=null,e&&W.extend(this,e),this.CLASS_NAME="SuperMap.SupplyCenter"}destroy(){var e=this;e.maxWeight=null,e.nodeID=null,e.resourceValue=null,e.type=null}static fromJson(e){if(!!e)return new kne({maxWeight:e.maxWeight,nodeID:e.nodeID,resourceValue:e.resourceValue,type:e.type})}}class got{constructor(e){this.bounds=null,this.boundsType=AOe.MAX,this.cellSize=null,this.cellSizeType=MOe.UNION,W.extend(this,e),this.CLASS_NAME="SuperMap.terrainAnalystSetting"}destroy(){var e=this;e.bounds=null,e.boundsType=null,e.cellSize=null,e.cellSizeType=null}}class eNe extends Hu{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.SurfaceAnalystService"}destroy(){super.destroy()}processAsync(e,t){if(e instanceof _z){var r=this,i;return i=r.getJsonParameters(e),r.request({method:"POST",data:i,scope:r,success:t,failure:t})}}getJsonParameters(e){var t="",r={},i=this;if(e instanceof lK)i.url=W.urlPathAppend(i.url,"datasets/"+e.dataset+"/"+e.surfaceAnalystMethod.toLowerCase()),lK.toObject(e,r),t=W.toJSON(r);else if(e instanceof VRe)i.url=W.urlPathAppend(i.url,"geometry/"+e.surfaceAnalystMethod.toLowerCase()),t=W.toJSON(e);else return;return this.returnContent=!0,t}dataFormat(){return[Ni.GEOJSON,Ni.ISERVER,Ni.FGB]}}class _K{constructor(e){!e||(this.dataset=null,this.zFactor=1,this.averageCurvatureName=null,this.profileCurvatureName="",this.planCurvatureName="",this.deleteExistResultDataset=!1,W.extend(this,e),this.CLASS_NAME="SuperMap.TerrainCurvatureCalculationParameters")}destroy(){var e=this;e.dataset=null,e.zFactor=1,e.averageCurvatureName=null,e.profileCurvatureName=null,e.planCurvatureName=null,e.deleteExistResultDataset=!0}static toObject(e,t){for(var r in e)r!=="dataset"&&(t[r]=e[r])}}class tNe extends Hu{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.TerrainCurvatureCalculationService"}destroy(){super.destroy()}processAsync(e,t){var r=this,i={};e instanceof _K&&(r.url=W.urlPathAppend(r.url,"datasets/"+e.dataset+"/terraincalculation/curvature")),_K.toObject(e,i);var a=W.toJSON(i);return r.url=W.urlAppend(r.url,"returnContent=true"),r.request({method:"POST",data:a,scope:r,success:t,failure:t})}}class Fne{constructor(e){this.flowEnabled=!1,this.leaderLineDisplayed=!1,this.leaderLineStyle=new gs,e&&W.extend(this,e),this.CLASS_NAME="SuperMap.ThemeFlow"}destroy(){var e=this;e.flowEnabled=null,e.leaderLineDisplayed=null,e.leaderLineStyle&&(e.leaderLineStyle.destroy(),e.leaderLineStyle=null)}static fromObj(e){if(!!e){var t=new Fne;return W.copy(t,e),t.leaderLineStyle=gs.fromJson(e.leaderLineStyle),t}}}class Pz{constructor(e){this.caption=null,this.color=new Js,this.end=0,this.start=0,this.visible=!0,e&&W.extend(this,e),this.CLASS_NAME="SuperMap.ThemeGridRangeItem"}destroy(){var e=this;e.caption=null,e.end=null,e.start=null,e.color&&(e.color.destroy(),e.color=null),e.visible=null}toServerJSONObject(){var e={};return e=W.copyAttributes(e,this),e.color&&e.color.toServerJSONObject&&(e.color=e.color.toServerJSONObject()),e}static fromObj(e){if(!!e){var t=new Pz;return W.copy(t,e),t.color=Js.fromJson(e.color),t}}}class Bne extends R_{constructor(e){super("GRIDRANGE",e),this.items=null,this.rangeMode=dz.EQUALINTERVAL,this.rangeParameter=0,this.colorGradientType=i3.YELLOW_RED,this.reverseColor=!1,e&&W.extend(this,e),this.CLASS_NAME="SuperMap.ThemeGridRange"}destroy(){super.destroy();var e=this;if(e.items){if(e.items.length>0)for(var t in e.items)e.items[t].destroy(),e.items[t]=null;e.items=null}e.reverseColor=null,e.rangeMode=null,e.rangeParameter=null,e.colorGradientType=null}static fromObj(e){if(!!e){var t=new Bne;W.copy(t,e);var r=e.items,i=r?r.length:0;t.items=[];for(var a=0;a0)for(var t in e.items)e.items[t].destroy(),e.items[t]=null;e.items=null}e.defaultcolor&&(e.defaultcolor.destroy(),e.defaultcolor=null)}toServerJSONObject(){var e={};if(e=W.copyAttributes(e,this),e.defaultcolor&&e.defaultcolor.toServerJSONObject&&(e.defaultcolor=e.defaultcolor.toServerJSONObject()),e.items){for(var t=[],r=e.items.length,i=0;i0&&(e=e.substring(0,e.length-1)),"{"+e+"}"}else return null}}class rNe{constructor(e){this.datasetNames=null,this.dataSourceNames=null,this.joinItems=null,this.themes=null,this.displayFilters=null,this.displayOrderBys=null,this.fieldValuesDisplayFilter=null,e&&W.extend(this,e),this.CLASS_NAME="SuperMap.ThemeParameters"}destroy(){var e=this;if(e.datasetNames=null,e.dataSourceNames=null,e.joinItems){for(let t=0,r=e.joinItems,i=r.length;t0&&(i.length===1?t+=`'displayFilter':"`+i[0]+'",':t+=`'displayFilter':"`+i[s]+'",'),a=e.displayOrderBy,a&&a.length>0&&(a.length===1?t+="'displayOrderBy':'"+a[0]+"',":t+="'displayOrderBy':'"+a[s]+"',"),o=e.fieldValuesDisplayFilter,o&&(t+="'fieldValuesDisplayFilter':"+W.toJSON(o)+","),e.joinItems&&e.joinItems.length>0&&e.joinItems[s]&&(t+="'joinItems':["+W.toJSON(e.joinItems[s])+"],"),e.datasetNames&&e.dataSourceNames){var u=e.datasetNames[s]?s:e.datasetNames.length-1,h=e.dataSourceNames[s]?s:e.dataSourceNames.length-1;t+="'datasetInfo': {'name': '"+e.datasetNames[u]+"','dataSourceName': '"+e.dataSourceNames[h]+"'}},"}else t+="},"}e.themes&&e.themes.length>0&&(t=t.substring(0,t.length-1)),t+="]},";var c=this.url.split("/"),f=c[c.length-2];return t+="'name': '"+f+"'}]",t}}class iNe extends Hu{constructor(e,t){super(e,t),this.mode=null,t&&W.extend(this,t),this.CLASS_NAME="SuperMap.ThiessenAnalystService"}destroy(){super.destroy(),this.mode=null}processAsync(e,t){var r={},i=this;e instanceof uK?(i.mode="datasets",i.url=W.urlPathAppend(i.url,"datasets/"+e.dataset+"/thiessenpolygon"),uK.toObject(e,r)):e instanceof $8&&(i.mode="geometry",i.url=W.urlPathAppend(i.url,"geometry/thiessenpolygon"),$8.toObject(e,r));var a=W.toJSON(r);return this.returnContent=!0,i.request({method:"POST",data:a,scope:i,success:t,failure:t})}dataFormat(){return[Ni.GEOJSON,Ni.ISERVER,Ni.FGB]}}class aNe extends Hu{constructor(e,t){super(e,t),t&&W.extend(this,t),this.CLASS_NAME="SuperMap.GeometryBatchAnalystService"}processAsync(e,t){var r=this;r.url=W.urlPathAppend(r.url,"geometry/batchanalyst"),r.url=W.urlAppend(r.url,"returnContent=true&ignoreAnalystParam=true");var i=r._processParams(e),a=W.toJSON(i);return r.request({method:"POST",data:a,scope:r,success:t,failure:t})}_processParams(e){var t=this;if(!!W.isArray(e)){var r=[];return e.map(function(i){return r.push(t._toJSON(i)),i}),r}}_toJSON(e){var t={};if(e.analystName==="buffer")t.analystName="buffer",t.param={},z8.toObject(e.param,t.param);else if(e.analystName==="overlay")t.analystName="overlay",t.param={},V8.toObject(e.param,t.param);else if(e.analystName==="interpolationDensity")t.analystName="interpolationDensity",t.param={},Dy.toObject(e.param,t.param);else if(e.analystName==="interpolationidw")t.analystName="interpolationidw",t.param={},Dy.toObject(e.param,t.param);else if(e.analystName==="interpolationRBF")t.analystName="interpolationRBF",t.param={},Dy.toObject(e.param,t.param);else if(e.analystName==="interpolationKriging")t.analystName="interpolationKriging",t.param={},Dy.toObject(e.param,t.param);else if(e.analystName==="thiessenpolygon")t.analystName="thiessenpolygon",t.param={},$8.toObject(e.param,t.param);else return e;return t}destroy(){super.destroy()}}class oNe extends ra{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.TilesetsService"}destroy(){super.destroy()}processAsync(e){if(!!this.url){var t=this;return t.url=W.urlPathAppend(t.url,"tilesets"),t.request({method:"GET",scope:t,success:e,failure:e})}}}class sNe{constructor(e){!e||(this.datasetName="",this.datasetTopology="",this.tolerance="",this.rule=EOe.REGIONNOOVERLAP,this.output=null,this.mappingParameters=null,W.extend(this,e),this.CLASS_NAME="SuperMap.TopologyValidatorJobsParameter")}destroy(){this.datasetName=null,this.datasetTopology=null,this.tolerance=null,this.rule=null,this.output instanceof Cm&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof Am&&(this.mappingParameters.destroy(),this.mappingParameters=null)}static toObject(e,t){for(var r in e){if(r==="datasetName"){t.input=t.input||{},t.input[r]=e[r];continue}if(r==="output"){t.output=t.output||{},t.output=e[r];continue}t.analyst=t.analyst||{},t.analyst[r]=e[r],r==="mappingParameters"&&(t.analyst[r]=t.analyst[r]||{},t.analyst.mappingParameters=e[r])}}}class cB extends Mm{constructor(e,t){super(e,t),this.url=W.urlPathAppend(this.url,"spatialanalyst/topologyvalidator"),this.CLASS_NAME="SuperMap.TopologyValidatorJobsService"}destroy(){super.destroy()}getTopologyValidatorJobs(e){return super.getJobs(this.url,e)}getTopologyValidatorJob(e,t){return super.getJobs(W.urlPathAppend(this.url,e),t)}addTopologyValidatorJob(e,t,r,i){return super.addJob(this.url,e,sNe,t,r,i)}}class Une{constructor(e){e=e||{},this.lineID=null,this.lineName=null,this.lineAliasName=null,this.startStopIndex=null,this.startStopName=null,this.startStopAliasName=null,this.endStopIndex=null,this.endStopName=null,this.endStopAliasName=null,W.extend(this,e),this.CLASS_NAME="SuperMap.TransferLine"}destroy(){W.reset(this)}static fromJson(e){if(!!e)return new Une({lineID:e.lineID,lineName:e.lineName,lineAliasName:e.lineAliasName,startStopIndex:e.startStopIndex,startStopName:e.startStopName,startStopAliasName:e.startStopAliasName,endStopIndex:e.endStopIndex,endStopName:e.endStopName,endStopAliasName:e.endStopAliasName})}}class lNe{constructor(e){e=e||{},this.transferLines=null,this.points=null,W.extend(this,e),this.CLASS_NAME="SuperMap.TransferPathParameters"}destroy(){W.reset(this)}static toJson(e){if(e)return W.toJSON(e)}}class uNe extends ra{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.TransferPathService"}destroy(){super.destroy()}processAsync(e,t){if(e instanceof lNe){var r=this,i="GET",a;return r.url=W.urlPathAppend(r.url,"path"),a={points:W.toJSON(e.points),transferLines:W.toJSON(e.transferLines)},r.request({method:i,params:a,scope:r,success:t,failure:t})}}}class hNe{constructor(e){e=e||{},this.solutionCount=6,this.transferPreference=mOe.NONE,this.transferTactic=yOe.LESS_TIME,this.walkingRatio=null,this.points=!1,this.evadeLines=null,this.evadeStops=null,this.priorLines=null,this.priorStops=null,this.travelTime=null,W.extend(this,e),this.CLASS_NAME="SuperMap.TransferSolutionParameters"}destroy(){W.reset(this)}static toJson(e){if(e)return W.toJSON(e)}}class cNe extends ra{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.TransferSolutionService"}destroy(){super.destroy()}processAsync(e,t){if(e instanceof hNe){var r=this,i="GET",a;return r.url=W.urlPathAppend(r.url,"solutions"),a={points:W.toJSON(e.points),walkingRatio:e.walkingRatio,transferTactic:e.transferTactic,solutionCount:e.solutionCount,transferPreference:e.transferPreference},e.evadeLines&&(a.evadeLines=W.toJSON(e.evadeLines)),e.evadeStops&&(a.evadeStops=W.toJSON(e.evadeStops)),e.priorLines&&(a.priorLines=W.toJSON(e.priorLines)),e.priorStops&&(a.priorStops=W.toJSON(e.priorStops)),e.travelTime&&(a.travelTime=e.travelTime),r.request({method:i,params:a,scope:r,success:t,failure:t})}}}class fNe{constructor(e){!e||(this.edgeId="",this.fromNodeId="",this.toNodeId="",this.weightField="",this.edgeWeight="",W.extend(this,e),this.CLASS_NAME="SuperMap.UpdateEdgeWeightParameters")}destroy(){this.edgeId=null,this.fromNodeId=null,this.toNodeId=null,this.weightField=null,this.edgeWeight=null}}class xK{constructor(e){!e||(this.datasourceName=null,this.datasetName=null,this.datasetType=null,e&&W.extend(this,e),this.CLASS_NAME="SuperMap.CreateDatasetParameters")}destroy(){var e=this;e.datasourceName=null,e.datasetName=null,e.datasetType=null}}class dNe extends Bd{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.UpdateEdgeWeightService"}destroy(){super.destroy()}processAsync(e,t){if(e instanceof fNe){var r=this,i=r.parse(e);r.url=W.urlPathAppend(r.url,i);var a=e.edgeWeight?e.edgeWeight:null;return r.request({method:"PUT",scope:r,data:a,success:t,failure:t})}}parse(e){if(!!e){var t="";for(var r in e)if(!(e[r]===""||e[r]==="edgeWeight"))switch(r){case"edgeId":t+="/edgeweight/"+e[r];break;case"fromNodeId":t+="/fromnode/"+e[r];break;case"toNodeId":t+="/tonode/"+e[r];break;case"weightField":t+="/weightfield/"+e[r];break}return t}}}class vNe{constructor(e){!e||(this.nodeId="",this.fromEdgeId="",this.toEdgeId="",this.weightField="",this.turnNodeWeight="",W.extend(this,e),this.CLASS_NAME="SuperMap.UpdateTurnNodeWeightParameters")}destroy(){this.nodeId=null,this.fromEdgeId=null,this.toEdgeId=null,this.weightField=null,this.turnNodeWeight=null}}class pNe extends Bd{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.UpdateTurnNodeWeightService"}destroy(){super.destroy()}processAsync(e,t){if(e instanceof vNe){var r=this,i=r.parse(e);r.url=W.urlPathAppend(r.url,i);var a=e.turnNodeWeight?e.turnNodeWeight:null;return r.request({method:"PUT",scope:r,data:a,success:t,failure:t})}}parse(e){if(!!e){var t="";for(var r in e)if(!(e[r]===""||e[r]==="turnNodeWeight"))switch(r){case"nodeId":t+="/turnnodeweight/"+e[r];break;case"fromEdgeId":t+="/fromedge/"+e[r];break;case"toEdgeId":t+="/toedge/"+e[r];break;case"weightField":t+="/weightfield/"+e[r];break}return t}}}class SK{constructor(e){!e||(this.datasourceName=null,this.datasetName=null,this.isFileCache=null,this.description=null,this.prjCoordSys=null,this.charset=null,this.palette=null,this.noValue=null,e&&W.extend(this,e),this.CLASS_NAME="SuperMap.UpdateDatasetParameters")}destroy(){var e=this;e.datasourceName=null,e.datasetName=null,e.isFileCache=null,e.prjCoordSys=null,e.charset=null,e.palette=null,e.noValue=null}}class gNe{constructor(e){e=e||{},this.datasetName="",this.datasetVectorClip="",this.geometryClip="",this.mode=SOe.CLIP,this.output=null,this.mappingParameters=null,W.extend(this,e),this.CLASS_NAME="SuperMap.VectorClipJobsParameter"}destroy(){this.datasetName=null,this.datasetVectorClip=null,this.geometryClip=null,this.mode=null,this.output instanceof Cm&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof Am&&(this.mappingParameters.destroy(),this.mappingParameters=null)}static toObject(e,t){for(var r in e){if(r==="datasetName"){t.input=t.input||{},t.input[r]=e[r];continue}if(r==="output"){t.output=t.output||{},t.output=e[r];continue}t.analyst=t.analyst||{},t.analyst[r]=e[r],r==="mappingParameters"&&(t.analyst[r]=t.analyst[r]||{},t.analyst.mappingParameters=e[r])}}}class fB extends Mm{constructor(e,t){super(e,t),this.url=W.urlPathAppend(this.url,"spatialanalyst/vectorclip"),this.CLASS_NAME="SuperMap.VectorClipJobsService"}destroy(){super.destroy()}getVectorClipJobs(e){return super.getJobs(this.url,e)}getVectorClipJob(e,t){return super.getJobs(W.urlPathAppend(this.url,e),t)}addVectorClipJob(e,t,r,i){return super.addJob(this.url,e,gNe,t,r,i)}}class Vne{constructor(e){e=e||{},this.type=null,W.extend(this,e),this.CLASS_NAME="SuperMap.RasterFunctionParameter"}destroy(){this.type=null}}class mot extends Vne{constructor(e){super(e),this.redIndex=0,this.nirIndex=1,this.colorMap="0:ffffe5ff;0.1:f7fcb9ff;0.2:d9f0a3ff;0.3:addd8eff;0.4:78c679ff;0.5:41ab5dff;0.6:238443ff;0.7:006837ff;1:004529ff",this.type=Tne.NDVI,W.extend(this,e),this.CLASS_NAME="SuperMap.NDVIParameter"}destroy(){super.destroy(),this.redIndex=null,this.nirIndex=null,this.colorMap=null}toJSON(){return{redIndex:this.redIndex,nirIndex:this.nirIndex,colorMap:this.colorMap,type:this.type}}}class _ot extends Vne{constructor(e){super(e),this.altitude=45,this.azimuth=315,this.zFactor=1,this.type=Tne.HILLSHADE,W.extend(this,e),this.CLASS_NAME="SuperMap.HillshadeParameter"}destroy(){super.destroy(),this.altitude=null,this.azimuth=null,this.zFactor=null}toJSON(){return{altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,type:this.type}}}class yNe{constructor(e){this.name=null,this.picAsUrl=null,this.picAsBase64=null,this.CLASS_NAME="SuperMap.WebPrintingJobCustomItems",W.extend(this,e)}destroy(){var e=this;e.name=null,e.picAsUrl=null,e.picAsBase64=null}toJSON(){var e={name:this.name};return this.title&&(e.title=this.title),this.picAsUrl?e.picAsUrl=this.picAsUrl:this.picAsBase64&&(e.picAsBase64=this.picAsBase64.replace(/^data:.+;base64,/,"")),W.toJSON(e)}}class mNe{constructor(e){this.picAsUrl=null,this.picAsBase64=null,this.CLASS_NAME="SuperMap.WebPrintingJobImage",W.extend(this,e)}destroy(){this.picAsUrl=null,this.picAsBase64=null}toJSON(){var e={};return this.picAsUrl&&(e.picAsUrl=this.picAsUrl),this.picAsBase64&&(e.picAsBase64=this.picAsBase64.replace(/^data:.+;base64,/,"")),W.toJSON(e)}}class $ne{constructor(e){this.name=null,this.layerType=null,this.url=null,this.CLASS_NAME="SuperMap.WebPrintingJobLayers",W.extend(this,e)}destroy(){this.name=null,this.layerType=null,this.url=null}}class _Ne{constructor(e){this.title=null,this.picAsUrl=null,this.picAsBase64=null,this.layers=null,this.customItems=null,this.CLASS_NAME="SuperMap.WebPrintingJobLegendOptions",W.extend(this,e)}destroy(){this.title=null,this.picAsUrl=null,this.picAsBase64=null,this.layers instanceof $ne&&(this.layers.destroy(),this.layers=null),this.customItems instanceof yNe&&(this.customItems.destroy(),this.customItems=null)}toJSON(){var e={title:this.title||""};return this.picAsUrl?e.picAsUrl=this.picAsUrl:this.picAsBase64?e.picAsBase64=this.picAsBase64.replace(/^data:.+;base64,/,""):this.customItems&&(e.customItems=this.customItems),W.toJSON(e)}}class xNe{constructor(e){this.center=null,this.scale=null,this.layerNames=null,this.image=null,this.layers=null,this.CLASS_NAME="SuperMap.WebPrintingJobLittleMapOptions",W.extend(this,e)}destroy(){this.center=null,this.scale=null,this.layerNames=null,this.image instanceof mNe&&(this.image.destroy(),this.image=null),this.layers instanceof $ne&&(this.layers.destroy(),this.layers=null)}toJSON(){var e={scale:this.scale,center:this.center};return this.layerNames?e.layerNames=this.layerNames:this.layers&&(e.layers=this.layers),this.image&&(e.image=this.image),W.toJSON(e)}}class SNe{constructor(e){this.picAsUrl=null,this.picAsBase64=null,this.CLASS_NAME="SuperMap.WebPrintingJobNorthArrowOptions",W.extend(this,e)}destroy(){this.picAsUrl=null,this.picAsBase64=null}toJSON(){var e={};return this.picAsUrl?e.picAsUrl=this.picAsUrl:this.picAsBase64&&(e.picAsBase64=this.picAsBase64.replace(/^data:.+;base64,/,"")),W.toJSON(e)}}class wNe{constructor(e){this.scaleText=null,this.orientation=null,this.type=null,this.intervals=null,this.unit=null,this.CLASS_NAME="SuperMap.WebPrintingJobScaleBarOptions",W.extend(this,e)}destroy(){this.scaleText=null,this.orientation=null,this.type=null,this.intervals=null,this.unit=null}toJSON(){var e={scaleText:this.scaleText||"",type:this.type||"BAR",intervals:this.intervals||"",unit:this.unit||"METER"};return this.orientation&&(e.orientation=this.orientation),W.toJSON(e)}}class bNe{constructor(e){this.type=null,this.url=null,this.token=null,this.value=null,this.CLASS_NAME="SuperMap.WebPrintingJobContent",W.extend(this,e)}destroy(){this.type="WEBMAP",this.url=null,this.token=null,this.value=null}toJSON(){var e={type:this.type};return this.token&&(e.token=this.token),this.url?e.url=this.url:this.value&&(e.value=this.value),W.toJSON(e)}}class ENe{constructor(e){this.templateName=null,this.title=null,this.subTitle=null,this.author=null,this.copyright=null,this.scaleBarOptions=null,this.northArrowOptions=null,this.littleMapOptions=null,this.legendOptions=null,this.CLASS_NAME="SuperMap.WebPrintingJobLayoutOptions",W.extend(this,e)}destroy(){this.templateName=null,this.title=null,this.subTitle=null,this.author=null,this.copyright=null,this.scaleBarOptions instanceof wNe&&(this.scaleBarOptions.destroy(),this.scaleBarOptions=null),this.northArrowOptions instanceof SNe&&(this.northArrowOptions.destroy(),this.northArrowOptions=null),this.littleMapOptions instanceof xNe&&(this.littleMapOptions.destroy(),this.littleMapOptions=null),this.legendOptions instanceof _Ne&&(this.legendOptions.destroy(),this.legendOptions=null)}toJSON(){var e={templateName:this.templateName,title:this.title,subTitle:this.subTitle,author:this.author,copyright:this.copyright};return this.scaleBarOptions&&(e.scaleBarOptions=this.scaleBarOptions),this.northArrowOptions&&(e.northArrowOptions=this.northArrowOptions),this.littleMapOptions&&(e.littleMapOptions=this.littleMapOptions),this.legendOptions&&(e.legendOptions=this.legendOptions),W.toJSON(e)}}class TNe{constructor(e){this.format=null,this.dpi=96,this.scale=null,this.rotation=null,this.center=null,this.CLASS_NAME="SuperMap.WebPrintingJobExportOptions",W.extend(this,e)}destroy(){this.format=null,this.dpi=null,this.scale=null,this.rotation=null,this.center=null,this.outputSize=null}toJSON(){var e={format:this.format||"PDF",dpi:this.dpi,scale:this.scale,center:this.center};return this.rotation&&(e.rotation=this.rotation),this.outputSize&&(e.outputSize=this.outputSize),W.toJSON(e)}}class xot{constructor(e){!e||(this.content=null,this.layoutOptions=null,this.exportOptions=null,W.extend(this,e),this.CLASS_NAME="SuperMap.WebPrintingJobParameters")}destroy(){this.content instanceof bNe&&(this.content.destroy(),this.content=null),this.layoutOptions instanceof ENe&&(this.layoutOptions.destroy(),this.layoutOptions=null),this.exportOptions instanceof TNe&&(this.exportOptions.destroy(),this.exportOptions=null)}}class CNe extends ra{constructor(e,t){super(e,t),t&&W.extend(this,t),this.CLASS_NAME="SuperMap.WebPrintingService",this.url}destroy(){super.destroy()}createWebPrintingJob(e,t){if(!!e)return e.layoutOptions&&e.layoutOptions.legendOptions&&(!e.layoutOptions.legendOptions.title&&(e.layoutOptions.legendOptions.title=""),e.layoutOptions.legendOptions.picAsBase64=e.layoutOptions.legendOptions.picAsBase64&&e.layoutOptions.legendOptions.picAsBase64.replace(/^data:.+;base64,/,""),e.layoutOptions.legendOptions.customItems&&e.layoutOptions.legendOptions.customItems.hasOwnProperty("picAsBase64")&&(e.layoutOptions.legendOptions.customItems.picAsBase64=e.layoutOptions.legendOptions.customItems.picAsBase64.replace(/^data:.+;base64,/,""))),this.processAsync("jobs","POST",t,e)}getPrintingJob(e,t){var r=this;r.processAsync(`jobs/${e}`,"GET",function(i){r.rollingProcess(i,r._processUrl(`jobs/${e}`),t)})}getPrintingJobResult(e,t){return this.processAsync(`jobs/${e}/result`,"GET",t)}getLayoutTemplates(e){return this.processAsync("layouts","GET",e)}rollingProcess(e,t,r){var i=this;!e||(this.id&&clearInterval(this.id),this.id=setInterval(function(){i.request({url:t,method:"GET",scope:i,success:r,failure:r})},1e3))}processAsync(e,t,r,i){var a=this;let o={url:a._processUrl(e),method:t,scope:a,success:r,failure:r};return i&&(o.data=W.toJSON(i)),a.request(o)}transformResult(e,t){return e=W.transformResult(e),(e.status==="FINISHED"||e.status==="ERROR")&&clearInterval(this.id),{result:e,options:t}}_processUrl(e){return e?W.urlPathAppend(this.url,e):this.url}}class ANe extends ra{constructor(e,t){super(e,t),this.options=t||{},t&&W.extend(this,t),this.CLASS_NAME="SuperMap.ImageCollectionService"}destroy(){super.destroy()}getLegend(e,t){var r=this,i={collectionId:r.options.collectionId};typeof e=="function"&&(t=e,e=null);var a=W.convertPath("/collections/{collectionId}/legend",i),o=W.urlPathAppend(r.url,a);return this._processAsync({url:o,method:"GET",params:e,callback:t})}getStatistics(e){var t=this,r={collectionId:t.options.collectionId},i=W.convertPath("/collections/{collectionId}/statistics",r),a=W.urlPathAppend(t.url,i);return this._processAsync({url:a,method:"GET",callback:e})}getTileInfo(e){var t=this,r={collectionId:t.options.collectionId},i=W.convertPath("/collections/{collectionId}/tileInfo",r),a=W.urlPathAppend(t.url,i);return this._processAsync({url:a,method:"GET",callback:e})}deleteItemByID(e,t){var r=this,i={collectionId:r.options.collectionId,featureId:e},a=W.convertPath("/collections/{collectionId}/items/{featureId}",i),o=W.urlPathAppend(r.url,a);return this._processAsync({url:o,method:"DELETE",callback:t})}getItemByID(e,t){var r=this,i={collectionId:r.options.collectionId,featureId:e},a=W.convertPath("/collections/{collectionId}/items/{featureId}",i),o=W.urlPathAppend(r.url,a);return this._processAsync({url:o,method:"GET",callback:t})}_processAsync({url:e,method:t,callback:r,params:i}){return this.request({method:t||"GET",url:e,params:i,scope:this,success:r,failure:r})}}class MNe extends ra{constructor(e,t){super(e,t),this.options=t||{},t&&W.extend(this,t),this.CLASS_NAME="SuperMap.ImageService"}destroy(){super.destroy()}getCollections(e){var t=this,r=W.convertPath("/collections"),i=W.urlPathAppend(t.url,r);return this._processAsync({url:i,mehtod:"GET",callback:e})}getCollectionByID(e,t){var r={collectionId:e},i=this,a=W.convertPath("/collections/{collectionId}",r),o=W.urlPathAppend(i.url,a);return this._processAsync({url:o,mehtod:"GET",callback:t})}search(e,t){var r={...e||{}},i=this,a=W.convertPath("/search"),o=W.urlPathAppend(i.url,a);return this._processAsync({url:o,method:"POST",data:r,callback:t})}_processAsync({url:e,method:t,callback:r,data:i}){return this.request({method:t||"GET",url:e,data:i,scope:this,success:r,failure:r})}}class KR{constructor(e){this.include=void 0,this.exclude=void 0,this.CLASS_NAME="SuperMap.FieldsFilter",W.extend(this,e)}destroy(){var e=this;e.include=void 0,e.exclude=void 0}static constructFromObject(e,t){return e&&(t=t||new KR,e.hasOwnProperty("include")&&(t.include=e.include),e.hasOwnProperty("exclude")&&(t.exclude=e.exclude)),t}}class jE{constructor(e){this.field=void 0,this.direction=jE.Direction.ASC,this.CLASS_NAME="SuperMap.Sortby",W.extend(this,e)}destroy(){var e=this;e.field=void 0,e.direction="ASC"}static constructFromObject(e,t){return e&&(t=t||new jE,e.hasOwnProperty("field")&&(t.field=e.field),e.hasOwnProperty("direction")&&(t.direction=e.direction)),t}}jE.Direction={ASC:"ASC",DESC:"DESC"};class Wne{constructor(e){this.bbox=void 0,this.collections=void 0,this.ids=void 0,this.limit=void 0,this.fields=void 0,this.query=void 0,this.sortby=void 0,this.CLASS_NAME="SuperMap.ImageSearchParameter",W.extend(this,e)}destroy(){var e=this;e.bbox=void 0,e.collections=void 0,e.ids=void 0,e.limit=void 0,e.fields=void 0,e.query=void 0,e.sortby=void 0}static constructFromObject(e,t){return e&&(t=t||new Wne,e.hasOwnProperty("bbox")&&(t.bbox=e.bbox),e.hasOwnProperty("collections")&&(t.collections=e.collections),e.hasOwnProperty("ids")&&(t.ids=e.ids),e.hasOwnProperty("limit")&&(t.limit=e.limit),e.hasOwnProperty("fields")&&(t.fields=KR.constructFromObject&&KR.constructFromObject(e.fields,{})||e.fields),e.hasOwnProperty("query")&&(t.query=e.query),e.hasOwnProperty("sortby")&&(t.sortby=e.sortby,e.sortby&&(t.sortby=e.sortby.map(r=>jE.constructFromObject&&jE.constructFromObject(r,{})||r)))),t}}class hM{constructor(e){this.stretchType=void 0,this.stdevCoefficient=void 0,this.gaussianCoefficient=void 0,this.useMedianValue=void 0,this.minPercent=void 0,this.maxPercent=void 0,this.CLASS_NAME="SuperMap.ImageStretchOption",W.extend(this,e)}destroy(){var e=this;e.stretchType=void 0,e.stdevCoefficient=void 0,e.gaussianCoefficient=void 0,e.useMedianValue=void 0,e.minPercent=void 0,e.maxPercent=void 0}static constructFromObject(e,t){return e&&(t=t||new hM,e.hasOwnProperty("stretchType")&&(t.stretchType=e.stretchType),e.hasOwnProperty("stdevCoefficient")&&(t.stdevCoefficient=e.stdevCoefficient),e.hasOwnProperty("gaussianCoefficient")&&(t.gaussianCoefficient=e.gaussianCoefficient),e.hasOwnProperty("useMedianValue")&&(t.useMedianValue=e.useMedianValue),e.hasOwnProperty("minPercent")&&(t.minPercent=e.minPercent),e.hasOwnProperty("maxPercent")&&(t.maxPercent=e.maxPercent)),t}}hM.StretchType={NONE:"NONE",GAUSSIAN:"GAUSSIAN",PERCENTCLIP:"PERCENTCLIP",MINIMUMMAXIMUM:"MINIMUMMAXIMUM",STANDARDDEVIATION:"STANDARDDEVIATION"};class h3{constructor(e){this.displayMode=void 0,this.displayBands=void 0,this.stretchOption=void 0,this.interpolationMode=void 0,this.colorScheme=void 0,this.colorTable=void 0,this.brightness=void 0,this.contrast=void 0,this.noData=void 0,this.noDataColor=void 0,this.noDataTransparent=void 0,this.backgroundValue=void 0,this.backgroundColor=void 0,this.backgroundTransparent=void 0,this.gridFunctions=void 0,this.CLASS_NAME="SuperMap.ImageRenderingRule",W.extend(this,e)}destroy(){var e=this;e.displayMode=void 0,e.displayBands=void 0,e.stretchOption=void 0,e.interpolationMode=void 0,e.colorScheme=void 0,e.colorTable=void 0,e.brightness=void 0,e.contrast=void 0,e.noData=void 0,e.noDataColor=void 0,e.noDataTransparent=void 0,e.backgroundValue=void 0,e.backgroundColor=void 0,e.backgroundTransparent=void 0,e.gridFuncOptions=void 0}static constructFromObject(e,t){return e&&(t=t||new h3,e.hasOwnProperty("displayMode")&&(t.displayMode=e.displayMode),e.hasOwnProperty("displayBands")&&(t.displayBands=e.displayBands),e.hasOwnProperty("stretchOption")&&(t.stretchOption=hM.constructFromObject&&hM.constructFromObject(e.stretchOption,{})||e.stretchOption),e.hasOwnProperty("interpolationMode")&&(t.interpolationMode=e.interpolationMode),e.hasOwnProperty("colorScheme")&&(t.colorScheme=e.colorScheme),e.hasOwnProperty("colorTable")&&(t.colorTable=e.colorTable),e.hasOwnProperty("brightness")&&(t.brightness=e.brightness),e.hasOwnProperty("contrast")&&(t.contrast=e.contrast),e.hasOwnProperty("noData")&&(t.noData=e.noData),e.hasOwnProperty("noDataColor")&&(t.noDataColor=e.noDataColor),e.hasOwnProperty("backgroundValue")&&(t.backgroundValue=e.backgroundValue),e.hasOwnProperty("noDataTransparent")&&(t.noDataTransparent=e.noDataTransparent),e.hasOwnProperty("backgroundColor")&&(t.backgroundColor=e.backgroundColor),e.hasOwnProperty("backgroundTransparent")&&(t.backgroundTransparent=e.backgroundTransparent),e.hasOwnProperty("gridFunctions")&&(t.gridFunctions=e.gridFunctions)),t}}h3.DisplayMode={COMPOSITE:"COMPOSITE",STRETCHED:"Stretched"};h3.InterpolationMode={NEARESTNEIGHBOR:"NEARESTNEIGHBOR",HIGHQUALITYBILINEAR:"HIGHQUALITYBILINEAR",DEFAULT:"DEFAULT"};class Hne{constructor(e){this.girdFuncName="GFHillShade",this.Azimuth=315,this.Altitude=45,this.ZFactor=1,this.CLASS_NAME="SuperMap.ImageGFHillShade",W.extend(this,e)}destroy(){var e=this;e.girdFuncName="GFHillShade",e.Azimuth=315,e.Altitude=45,e.ZFactor=1}static constructFromObject(e,t){return e&&(t=t||new Hne,e.hasOwnProperty("girdFuncName")&&(t.girdFuncName=e.girdFuncName),e.hasOwnProperty("Azimuth")&&(t.Azimuth=e.Azimuth),e.hasOwnProperty("Altitude")&&(t.Altitude=e.Altitude),e.hasOwnProperty("ZFactor")&&(t.ZFactor=e.ZFactor)),t}}class jne{constructor(e){this.girdFuncName="GFAspect",this.Azimuth=void 0,this.CLASS_NAME="SuperMap.ImageGFAspect",W.extend(this,e)}destroy(){var e=this;e.girdFuncName="GFAspect",e.Azimuth=void 0}static constructFromObject(e,t){return e&&(t=t||new jne,e.hasOwnProperty("girdFuncName")&&(t.girdFuncName=e.girdFuncName),e.hasOwnProperty("Azimuth")&&(t.Azimuth=e.Azimuth)),t}}class Xne{constructor(e){this.girdFuncName="GFOrtho",this.CLASS_NAME="SuperMap.ImageGFOrtho",W.extend(this,e)}destroy(){var e=this;e.girdFuncName="GFOrtho"}static constructFromObject(e,t){return e&&(t=t||new Xne,e.hasOwnProperty("girdFuncName")&&(t.girdFuncName=e.girdFuncName)),t}}class Yne{constructor(e){this.girdFuncName="GFSlope",this.Altitude=45,this.ZFactor=1,this.CLASS_NAME="SuperMap.ImageGFSlope",W.extend(this,e)}destroy(){var e=this;e.girdFuncName="GFSlope",e.Altitude=45,e.ZFactor=1}static constructFromObject(e,t){return e&&(t=t||new Yne,e.hasOwnProperty("girdFuncName")&&(t.girdFuncName=e.girdFuncName),e.hasOwnProperty("Altitude")&&(t.Altitude=e.Altitude),e.hasOwnProperty("ZFactor")&&(t.ZFactor=e.ZFactor)),t}}class Sot extends ra{constructor(e,t){super(e,t),this.options=t||{},this.CLASS_NAME="SuperMap.KnowledgeGraphService"}destroy(){super.destroy()}query(e,t){const r="cypherQuery",i=W.urlAppend(this.url+"/query.json",`${r}=${encodeURI(e)}`);this.processAsync({url:i,method:"GET",callback:t})}getGraphMaps(e){const t=this.url+"/graphmaps.json";this.processAsync({url:t,method:"GET",callback:e})}getGraphMap(e,t){const r=this.url+`/graphmaps/${e}.json`;this.processAsync({url:r,method:"GET",callback:t})}async getGraphMapData(e){let t=[];const r=await this._getGraphMapData(e);if(!r)return;const i=r.dataContent.queries&&r.dataContent.queries.query||[];let a=[];typeof i=="string"?a=[i]:a=i;const o=this._getGraphMapExpandQuery(r);o.length&&a.push(...o);for(let s=0;s{t.push(`match p=(n)-[]-(m) where id(n)=${i} return p;`)}),t}processAsync({url:e,params:t,method:r,callback:i}){const a={method:r,url:e,scope:this,success:i,failure:i};return t&&(a.params=t),this.request(a)}_getGraphMapData(e){return new Promise((t,r)=>{this.getGraphMap(e,i=>{i.type==="processFailed"?r(i.error):i.result.data===""?r("\u65E0\u6570\u636E"):t(i.result.graphMap)})})}_queryDataBySql(e){return new Promise((t,r)=>{this.query(e,i=>{i.type==="processFailed"?r(i.error):t(i.result)})})}}var wot={DOES_NOT_INVOLVE:"DOES_NOT_INVOLVE",PUBLISH_FAILED:"PUBLISH_FAILED",PUBLISHED:"PUBLISHED",PUBLISHING:"PUBLISHING",UNPUBLISHED:"UNPUBLISHED",UNPUBLISHED_FAILED:"UNPUBLISHED_FAILED"},bot={FILENAME:"FILENAME",ID:"ID",LASTMODIFIEDTIME:"LASTMODIFIEDTIME",NICKNAME:"NICKNAME",SERVICESTATUS:"SERVICESTATUS",SIZE:"SIZE",STATUS:"STATUS",TYPE:"TYPE",UPDATETIME:"UPDATETIME",USERNAME:"USERNAME"},Eot={LINKPAGE:"LINKPAGE",MAPTITLE:"MAPTITLE",NICKNAME:"NICKNAME",RESTITLE:"RESTITLE",USERNAME:"USERNAME"};class INe{constructor(e){e=e||{},W.extend(this,e),this.CLASS_NAME="SuperMap.OnlineServiceBase"}request(e,t,r,i={}){return t=xs.appendCredential(t),i.crossOrigin=this.options.crossOrigin,i.headers=this.options.headers,li.commit(e,t,r,i).then(function(a){return a.json()})}}class LNe extends INe{constructor(e,t){super(e),t=t||{},this.MD5=null,this.type=null,this.userName=null,this.fileName=null,this.size=null,this.serviceStatus=null,this.serviceId=null,this.id=null,this.lastModfiedTime=null,this.status=null,this.storageId=null,this.publishInfo=null,this.authorizeSetting=null,this.nickname=null,this.tags=[],this.description=null,this.dataItemServices=null,this.coordType=null,this.dataCheckResult=null,this.dataMetaInfo=null,this.thumbnail=null,W.extend(this,t),this.id&&(this.serviceUrl=e+"/"+this.id),this.CLASS_NAME="SuperMap.OnlineData"}load(){if(!!this.serviceUrl){var e=this;return e.request("GET",this.serviceUrl).then(function(t){W.extend(e,t)})}}getPublishedServices(){return this.dataItemServices}getAuthorizeSetting(){return this.authorizeSetting}}class Tot{constructor(){this.rootUrl="https://www.supermapol.com",this.webUrl=this.rootUrl+"/web";var e=this.webUrl+"/mycontent";this.mDatasUrl=e+"/datas",this.CLASS_NAME="SuperMap.Online"}load(){return li.get(this.rootUrl).then(function(e){return e})}login(){xs.loginOnline(this.rootUrl,!0)}queryDatas(e){var t=this,r=t.mDatasUrl;return e&&(e=e.toJSON()),li.get(r,e).then(function(i){if(!(!i||!i.content||i.content.length<1)){for(var a=[],o=i.content,s=o.length,l=0;lc&&(t.outOfGeoFence&&t.outOfGeoFence(e),t.events.triggerEvent("outOfGeoFence",{data:e})),r})}_distance(e,t,r,i){return Math.sqrt((e-r)*(e-r)+(t-i)*(t-i))}_getMeterPerMapUnit(e){let t=6378137,r;return e==="meter"?r=1:e==="degree"&&(r=Math.PI*2*t/360),r}}class Pp{constructor(){this.BUILTIN_OBJECT={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},this._ctx=null,this._canvas=null,this._pixelCtx=null,this._width=null,this._height=null,this._offsetX=0,this._offsetY=0,this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Util"}clone(e){var t=this.BUILTIN_OBJECT;if(typeof e=="object"&&e!==null){var r=e;if(e instanceof Array){r=[];for(var i=0,a=e.length;ia&&(a=e+s+u,r.width=a,h=!0),t+l>o&&(o=t+l+u,r.height=o,h=!0),e<-s&&(s=Math.ceil(-e/u)*u,a+=s,r.width=a,h=!0),t<-l&&(l=Math.ceil(-t/u)*u,o+=l,r.height=o,h=!0),h&&i.translate(s,l)}getPixelOffset(){return{x:this._offsetX,y:this._offsetY}}indexOf(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r1)for(var a=0,o=i-1;a1?Math.ceil(i):i}),t.indexOf("hex")>-1)return"#"+((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1);if(t.indexOf("hs")>-1){var r=this.map(e.slice(1,3),function(i){return i+"%"});e[1]=r[0],e[2]=r[1]}return t.indexOf("a")>-1?(e.length===3&&e.push(1),e[3]=this.adjust(e[3],[0,1]),t+"("+e.slice(0,4).join(",")+")"):t+"("+e.slice(0,3).join(",")+")"}}toArray(e){e=this.trim(e),e.indexOf("rgba")<0&&(e=this.toRGBA(e));var t=[],r=0;return e.replace(/[\d.]+/g,function(i){r<3?i=i|0:i=+i,t[r++]=i}),t}convert(e,t){if(!this.isCalculableColor(e))return e;var r=this.getData(e),i=r[3];return typeof i>"u"&&(i=1),e.indexOf("hsb")>-1?r=this._HSV_2_RGB(r):e.indexOf("hsl")>-1&&(r=this._HSL_2_RGB(r)),t.indexOf("hsb")>-1||t.indexOf("hsv")>-1?r=this._RGB_2_HSB(r):t.indexOf("hsl")>-1&&(r=this._RGB_2_HSL(r)),r[3]=i,this.toColor(r,t)}toRGBA(e){return this.convert(e,"rgba")}toRGB(e){return this.convert(e,"rgb")}toHex(e){return this.convert(e,"hex")}toHSVA(e){return this.convert(e,"hsva")}toHSV(e){return this.convert(e,"hsv")}toHSBA(e){return this.convert(e,"hsba")}toHSB(e){return this.convert(e,"hsb")}toHSLA(e){return this.convert(e,"hsla")}toHSL(e){return this.convert(e,"hsl")}toName(e){for(var t in this._nameColors)if(this.toHex(this._nameColors[t])===this.toHex(e))return t;return null}trim(e){return String(e).replace(/\s+/g,"")}normalize(e){if(this._nameColors[e]&&(e=this._nameColors[e]),e=this.trim(e),e=e.replace(/hsv/i,"hsb"),/^#[\da-f]{3}$/i.test(e)){e=parseInt(e.slice(1),16);var t=(e&3840)<<8,r=(e&240)<<4,i=e&15;e="#"+((1<<24)+(t<<4)+t+(r<<4)+r+(i<<4)+i).toString(16).slice(1)}return e}lift(e,t){if(!this.isCalculableColor(e))return e;var r=t>0?1:-1;typeof t>"u"&&(t=0),t=Math.abs(t)>1?1:Math.abs(t),e=this.toRGB(e);for(var i=this.getData(e),a=0;a<3;a++)r===1?i[a]=i[a]*(1-t)|0:i[a]=(255-i[a])*t+i[a]|0;return"rgb("+i.join(",")+")"}reverse(e){if(!this.isCalculableColor(e))return e;var t=this.getData(this.toRGBA(e));return t=this.map(t,function(r){return 255-r}),this.toColor(t,"rgb")}mix(e,t,r){if(!this.isCalculableColor(e)||!this.isCalculableColor(t))return e;typeof r>"u"&&(r=.5),r=1-this.adjust(r,[0,1]);for(var i=r*2-1,a=this.getData(this.toRGBA(e)),o=this.getData(this.toRGBA(t)),s=a[3]-o[3],l=((i*s===-1?i:(i+s)/(1+i*s))+1)/2,u=1-l,h=[],c=0;c<3;c++)h[c]=a[c]*l+o[c]*u;var f=a[3]*r+o[3]*(1-r);return f=Math.max(0,Math.min(1,f)),a[3]===1&&o[3]===1?this.toColor(h,"rgb"):(h[3]=f,this.toColor(h,"rgba"))}random(){return"#"+Math.random().toString(16).slice(2,8)}getData(e){e=this.normalize(e);var t=e.match(this.colorRegExp);if(t===null)throw new Error("The color format error");var r,i,a=[],o;if(t[2])r=t[2].replace("#","").split(""),o=[r[0]+r[1],r[2]+r[3],r[4]+r[5]],a=this.map(o,function(f){return SE.prototype.adjust.call(this,parseInt(f,16),[0,255])});else if(t[4]){var s=t[4].split(",");i=s[3],o=s.slice(0,3),a=this.map(o,function(f){return f=Math.floor(f.indexOf("%")>0?parseInt(f,0)*2.55:f),SE.prototype.adjust.call(this,f,[0,255])}),typeof i<"u"&&a.push(this.adjust(parseFloat(i),[0,1]))}else if(t[5]||t[6]){var l=(t[5]||t[6]).split(","),u=parseInt(l[0],0)/360,h=l[1],c=l[2];i=l[3],a=this.map([h,c],function(f){return SE.prototype.adjust.call(this,parseFloat(f)/100,[0,1])}),a.unshift(u),typeof i<"u"&&a.push(this.adjust(parseFloat(i),[0,1]))}return a}alpha(e,t){if(!this.isCalculableColor(e))return e;t===null&&(t=1);var r=this.getData(this.toRGBA(e));return r[3]=this.adjust(Number(t).toFixed(4),[0,1]),this.toColor(r,"rgba")}map(e,t){if(typeof t!="function")throw new TypeError;for(var r=e?e.length:0,i=0;i=t[1]&&(e=t[1]),e}isCalculableColor(e){return e instanceof Array||typeof e=="string"}_HSV_2_RGB(e){var t=e[0],r=e[1],i=e[2],a,o,s;if(r===0)a=i*255,o=i*255,s=i*255;else{var l=t*6;l===6&&(l=0);var u=l|0,h=i*(1-r),c=i*(1-r*(l-u)),f=i*(1-r*(1-(l-u))),d=0,v=0,p=0;u===0?(d=i,v=f,p=h):u===1?(d=c,v=i,p=h):u===2?(d=h,v=i,p=f):u===3?(d=h,v=c,p=i):u===4?(d=f,v=h,p=i):(d=i,v=h,p=c),a=d*255,o=v*255,s=p*255}return[a,o,s]}_HSL_2_RGB(e){var t=e[0],r=e[1],i=e[2],a,o,s;if(r===0)a=i*255,o=i*255,s=i*255;else{var l;i<.5?l=i*(1+r):l=i+r-r*i;var u=2*i-l;a=255*this._HUE_2_RGB(u,l,t+1/3),o=255*this._HUE_2_RGB(u,l,t),s=255*this._HUE_2_RGB(u,l,t-1/3)}return[a,o,s]}_HUE_2_RGB(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),6*r<1?e+(t-e)*6*r:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}_RGB_2_HSB(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,a=Math.min(t,r,i),o=Math.max(t,r,i),s=o-a,l=o,u,h;if(s===0)u=0,h=0;else{h=s/o;var c=((o-t)/6+s/2)/s,f=((o-r)/6+s/2)/s,d=((o-i)/6+s/2)/s;t===o?u=d-f:r===o?u=1/3+c-d:i===o&&(u=2/3+f-c),u<0&&(u+=1),u>1&&(u-=1)}return u=u*360,h=h*100,l=l*100,[u,h,l]}_RGB_2_HSL(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,a=Math.min(t,r,i),o=Math.max(t,r,i),s=o-a,l=(o+a)/2,u,h;if(s===0)u=0,h=0;else{l<.5?h=s/(o+a):h=s/(2-o-a);var c=((o-t)/6+s/2)/s,f=((o-r)/6+s/2)/s,d=((o-i)/6+s/2)/s;t===o?u=d-f:r===o?u=1/3+c-d:i===o&&(u=2/3+f-c),u<0&&(u+=1),u>1&&(u-=1)}return u=u*360,h=h*100,l=l*100,[u,h,l]}}var Ym=new SE;class dB{static createCanvas(e,t){var r=document.createElement("canvas");return r.height=e,r.width=t,r.getContext("2d")}static getLinearGradient(e,t,r,i,a){this._ctx||(this._ctx=this.getContext());for(var o=this._ctx.createLinearGradient(e,t,r,i),s=a.length,l=1/(s-1),u=0,h=0;h=t)if(r==="RANGE")for(o=0;o=0?this.getSqrtInterval(e,r):!1;if(t==="logarithm")return this.getMin(e)>0?this.getGeometricProgression(e,r):!1}static getSum(e){return this.getInstance(e).sum()}static getMax(e){return this.getInstance(e).max()}static getMin(e){return this.getInstance(e).min()}static getMean(e){return this.getInstance(e).mean()}static getMedian(e){return this.getInstance(e).median()}static getTimes(e){return e.length}static getEqInterval(e,t){return this.getInstance(e).getClassEqInterval(t)}static getJenks(e,t){return this.getInstance(e).getClassJenks(t)}static getSqrtInterval(e,t){return e=e.map(function(i){return Math.sqrt(i)}),this.getInstance(e).getClassEqInterval(t).map(function(i){return i*i})}static getGeometricProgression(e,t){return this.getInstance(e).getClassGeometricProgression(t)}}var pB=function(n){var e=6378137,t;if(n===Wl.METER)t=1;else if(n===Wl.DEGREE)t=Math.PI*2*e/360;else if(n===Wl.KILOMETER)t=.001;else if(n===Wl.INCH)t=1/.025399999918;else if(n===Wl.FOOT)t=.3048;else return t;return t};function Pot(n,e,t,r,i=22){var a=[];if(n&&n.length>0)for(let o=0;oMath.abs(n-e[i])&&(r=Math.abs(n-e[i]),t=i);return t}function Rot(n,e,t){const r=39.37007874015748,i=pB(t);return 1/(n*e*r*i)}function Dot(n,e){return n[0]<=e[2]&&n[2]>=e[0]&&n[1]<=e[3]&&n[3]>=e[1]}function Not(n,e){const t=[];return Dot(n,e)&&(n[0]>e[0]?t[0]=n[0]:t[0]=e[0],n[1]>e[1]?t[1]=n[1]:t[1]=e[1],n[2]-1&&n%1==0&&n-1&&n%1==0&&n<=PNe}function NNe(n){var e=typeof n;return!!n&&(e=="object"||e=="function")}function xst(n){return!!n&&typeof n=="object"}function Sst(n){return RNe(n)?lst(n):cst(n)}var wst=fst(Sst),bst=wst;class Pt{constructor(e){this.env=null,this.parser=null,this.ruleSet=null,this.cartoStr="",this.shaders=null,typeof e=="string"&&(this.cartoStr=e,this.env={frames:[],errors:[],error:function(t){this.errors.push(t)}},this.parser=this.getParser(this.env),this.parse(e),this.shaders=this.toShaders())}getParser(e){var t,r,i,a,o,s,l,u,h,c=this;function f(){a=l[i],o=r,u=r}function d(){l[i]=a,r=o,u=r}function v(){r>u&&(l[i]=l[i].slice(r-u),u=r)}function p(y){var _,x,S,w;if(y instanceof Function)return y.call(h.parsers);if(typeof y=="string")_=t.charAt(r)===y?y:null,x=1,v();else if(v(),_=y.exec(l[i]),_)x=_[0].length;else return null;if(_){var b=r+=x;for(w=r+l[i].length-x;r=0&&_.charAt(w)!==` +`;w--)y.column++;return new Error([y.filename,y.line,y.column,y.message].join(";"))}return this.env=e=e||{},this.env.filename=this.env.filename||null,this.env.inputs=this.env.inputs||{},h={parse:function(y){var _,x=null;if(r=i=u=s=0,l=[],t=y.replace(/\r\n/g,` +`),e.filename&&(c.env.inputs[e.filename]=t),l=function(w){for(var b=0,E=/(?:@\{[\w-]+\}|[^"'`\{\}\/\(\)\\])+/g,T=/\/\*(?:[^*]|\*+[^\/*])*\*+\/|\/\/.*/g,C=/"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'|`((?:[^`]|\\.)*)`/g,A=0,M,I=w[0],R,k=0,D,G;k0?"missing closing `}`":"missing opening `{`"}),w.map(function(V){return V.join("")})}([[]]),x)throw m(x);var S=function(w,b){var E=w.specificity,T=b.specificity;return E[0]!=T[0]?T[0]-E[0]:E[1]!=T[1]?T[1]-E[1]:E[2]!=T[2]?T[2]-E[2]:T[3]-E[3]};return _=new Pt.Tree.Ruleset([],p(this.parsers.primary)),_.root=!0,_.toList=function(){return function(w){w.error=function(E){w.errors||(w.errors=new Error("")),w.errors.message?w.errors.message+=` +`+m(E).message:w.errors.message=m(E).message},w.frames=w.frames||[];var b=this.flatten([],[],w);return b.sort(S),b}}(),_},parsers:{primary:function(){for(var y,_=[];(y=p(this.rule)||p(this.ruleset)||p(this.comment))||p(/^[\s\n]+/)||(y=p(this.invalid));)y&&_.push(y);return _},invalid:function(){var y=p(/^[^;\n]*[;\n]/);if(y)return new Pt.Tree.Invalid(y,o)},comment:function(){var y;if(t.charAt(r)==="/"){if(t.charAt(r+1)==="/")return new Pt.Tree.Comment(p(/^\/\/.*/),!0);if(y=p(/^\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/))return new Pt.Tree.Comment(y)}},entities:{quoted:function(){if(!(t.charAt(r)!=='"'&&t.charAt(r)!=="'")){var y=p(/^"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'/);if(y)return new Pt.Tree.Quoted(y[1]||y[2])}},field:function(){var y="[",_="]";if(!!p(y)){var x=p(/(^[^\]]+)/);if(!!p(_)&&x)return new Pt.Tree.Field(x[1])}},comparison:function(){var y=p(/^=~|=|!=|<=|>=|<|>/);if(y)return y},keyword:function(){var y=p(/^[A-Za-z\u4e00-\u9fa5-]+[A-Za-z-0-9\u4e00-\u9fa5_]*/);if(y)return new Pt.Tree.Keyword(y)},call:function(){var y,_;if(!!(y=/^([\w\-]+|%)\(/.exec(l[i]))){if(y=y[1],y==="url")return null;r+=y.length;var x="(",S=")";if(p(x),_=p(this.entities.arguments),!!p(S)&&y)return new Pt.Tree.Call(y,_,r)}},arguments:function(){for(var y=[],_;_=p(this.expression);){y.push(_);var x=",";if(!p(x))break}return y},literal:function(){return p(this.entities.dimension)||p(this.entities.keywordcolor)||p(this.entities.hexcolor)||p(this.entities.quoted)},url:function(){var y;if(!(t.charAt(r)!=="u"||!p(/^url\(/))){y=p(this.entities.quoted)||p(this.entities.variable)||p(/^[\-\w%@_match\/.&=:;#+?~]+/)||"";var _=")";return p(_)?new Pt.Tree.URL(typeof y.value<"u"||y instanceof Pt.Tree.Variable?y:new Pt.Tree.Quoted(y)):new Pt.Tree.Invalid(y,o,"Missing closing ) in URL.")}},variable:function(){var y,_=r;if(t.charAt(r)==="@"&&(y=p(/^@[\w-]+/)))return new Pt.Tree.Variable(y,_,e.filename)},hexcolor:function(){var y;if(t.charAt(r)==="#"&&(y=p(/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})/)))return new Pt.Tree.Color(y[1])},keywordcolor:function(){var y=l[i].match(/^[a-z]+/);if(y&&y[0]in Pt.Tree.Reference.data.colors)return new Pt.Tree.Color(Pt.Tree.Reference.data.colors[p(/^[a-z]+/)])},dimension:function(){var y=t.charCodeAt(r);if(!(y>57||y<45||y===47)){var _=p(/^(-?\d*\.?\d+(?:[eE][-+]?\d+)?)(\%|\w+)?/);if(_)return new Pt.Tree.Dimension(_[1],_[2],o)}}},variable:function(){var y;if(t.charAt(r)==="@"&&(y=p(/^(@[\w-]+)\s*:/)))return y[1]},entity:function(){var y=p(this.entities.call)||p(this.entities.literal),_=p(this.entities.field)||p(this.entities.variable),x=p(this.entities.url)||p(this.entities.keyword);return y||_||x},end:function(){var y=";";return p(y)||g("}")},element:function(){var y=p(/^(?:[.#][\w\u4e00-\u9fa5\-]+|\*|Map)/);if(y)return new Pt.Tree.Element(y)},attachment:function(){var y=p(/^::([\w\-]+(?:\/[\w\-]+)*)/);if(y)return y[1]},selector:function(){for(var y,_,x,S=[],w,b=new Pt.Tree.Filterset,E,T=[],C=0,A=0;(x=p(this.element))||(E=p(this.zoom))||(w=p(this.filter))||(y=p(this.attachment));){if(C++,x)S.push(x);else if(E)T.push(E),A++;else if(w){var M=b.add(w);if(M)throw m({message:M,index:r-1});A++}else{if(_)throw m({message:"Encountered second attachment name.",index:r-1});_=y}var I=t.charAt(r);if(I==="{"||I==="}"||I===";"||I===",")break}if(C)return new Pt.Tree.Selector(b,T,S,_,A,o)},filter:function(){f();var y,_,x,S="[",w="]";if(!!p(S)&&(y=p(/^[a-zA-Z0-9\-_]+/)||p(this.entities.quoted)||p(this.entities.variable)||p(this.entities.keyword)||p(this.entities.field))&&(y instanceof Pt.Tree.Quoted&&(y=new Pt.Tree.Field(y.toString())),(_=p(this.entities.comparison))&&(x=p(this.entities.quoted)||p(this.entities.variable)||p(this.entities.dimension)||p(this.entities.keyword)||p(this.entities.field)))){if(!p(w))throw m({message:"Missing closing ] of filter.",index:o-1});return y.is||(y=new Pt.Tree.Field(y)),new Pt.Tree.Filter(y,_,x,o,e.filename)}},zoom:function(){f();var y,_,x="]";if(p(/^\[\s*zoom/g)&&(y=p(this.entities.comparison))&&(_=p(this.entities.variable)||p(this.entities.dimension))&&p(x))return new Pt.Tree.Zoom(y,_,o);d()},block:function(){var y,_="{",x="}";if(p(_)&&(y=p(this.primary))&&p(x))return y},ruleset:function(){var y=[],_,x,S=",";for(f();_=p(this.selector);){for(y.push(_);p(this.comment););if(!p(S))break;for(;p(this.comment););}if(_)for(;p(this.comment););if(y.length>0&&(x=p(this.block))){if(y.length===1&&y[0].elements.length&&y[0].elements[0].value==="Map"){var w=new Pt.Tree.Ruleset(y,x);return w.isMap=!0,w}return new Pt.Tree.Ruleset(y,x)}else d()},rule:function(){var y,_,x=t.charAt(r);if(f(),!(x==="."||x==="#")&&(y=p(this.variable)||p(this.property))){if(_=p(this.value),_&&p(this.end))return new Pt.Tree.Rule(y,_,o,e.filename);s=r,d()}},font:function(){for(var y=[],_=[],x,S=",";x=p(this.entity);)_.push(x);if(y.push(new Pt.Tree.Expression(_)),p(S))for(;(x=p(this.expression))&&(y.push(x),!!p(S)););return new Pt.Tree.Value(y)},value:function(){for(var y,_=[],x=",";(y=p(this.expression))&&(_.push(y),!!p(x)););if(_.length>1)return new Pt.Tree.Value(_.map(function(S){return S.value[0]}));if(_.length===1)return new Pt.Tree.Value(_)},sub:function(){var y,_="(",x=")";if(p(_)&&(y=p(this.expression))&&p(x))return y},multiplication:function(){var y,_,x,S,w="/";if(y=p(this.operand)){for(;(x=p(w)||p("*")||p("%"))&&(_=p(this.operand));)S=new Pt.Tree.Operation(x,[S||y,_],o);return S||y}},addition:function(){var y,_,x,S,w="+";if(y=p(this.multiplication)){for(;(x=p(/^[-+]\s+/)||t.charAt(r-1)!=" "&&(p(w)||p("-")))&&(_=p(this.multiplication));)S=new Pt.Tree.Operation(x,[S||y,_],o);return S||y}},operand:function(){return p(this.sub)||p(this.entity)},expression:function(){for(var y,_=[];y=p(this.addition)||p(this.entity);)_.push(y);if(_.length>0)return new Pt.Tree.Expression(_)},property:function(){var y=p(/^(([a-z][-a-z_0-9]*\/)?\*?-?[-a-z_0-9]+)\s*:/);if(y)return y[1]}}},h}parse(e){var t=this.parser,r=this.ruleSet=t.parse(e);return r}toShaders(){if(this.ruleSet){var e=this.ruleSet;if(e){var t=e.toList(this.env);t.reverse();var r={},i=[];this._toShaders(r,i,t);for(var a=[],o={},s=0,l=t.length;s=0){if(!y.featureFilter){var w=S+x.length,b=_.indexOf(")",w+1),E="featureId&&(featureId"+_.substring(w,b)+")",T=function(C){return!!E};Object.defineProperty(y,"featureFilter",{configurable:!0,enumerable:!1,value:T})}return{property:v,getValue:Function("attributes","zoom","seftFilter","var _value = null; var isExcute=typeof seftFilter=='function'?sefgFilter():seftFilter;if(isExcute){"+_+";} return _value; ")}}else return{property:v,getValue:Function("attributes","zoom","var _value = null;"+_+"; return _value; ")}}(c[v],f);Object.defineProperty(f,"attachment",{configurable:!0,enumerable:!1,value:h}),Object.defineProperty(f,"elements",{configurable:!0,enumerable:!1,value:u.elements}),a.push(f),o[i[s]]=!0}Object.defineProperty(f,"zoom",{configurable:!0,enumerable:!1,value:u.zoom})}return a}}return null}_toShaders(e,t,r){for(let i=0,a=r.length;i= minzoom - 1e-6 and scale < maxzoom + 1e-6"},maxzoom:{"default-value":"1.79769e+308",type:"float","default-meaning":"The layer will be visible at the maximum possible scale",doc:"The maximum scale denominator that this layer will be visible at. The default is the numeric limit of the C++ double type, which may vary slightly by system, but is likely a massive number like 1.79769e+308 and ensures that this layer will always be visible unless the value is reduced. A layer's visibility is determined by whether its status is true and if the Map scale >= minzoom - 1e-6 and scale < maxzoom + 1e-6"},queryable:{"default-value":!1,type:"boolean","default-meaning":"The layer will not be available for the direct querying of data values",doc:"This property was added for GetFeatureInfo/WMS compatibility and is rarely used. It is off by default meaning that in a WMS context the layer will not be able to be queried unless the property is explicitly set to true"},"clear-label-cache":{"default-value":!1,type:"boolean","default-meaning":"The renderer's collision detector cache (used for avoiding duplicate labels and overlapping markers) will not be cleared immediately before processing this layer",doc:"This property, by default off, can be enabled to allow a user to clear the collision detector cache before a given layer is processed. This may be desirable to ensure that a given layers data shows up on the map even if it normally would not because of collisions with previously rendered labels or markers"},"group-by":{"default-value":"",type:"string","default-meaning":"No special layer grouping will be used during rendering",doc:"https://github.com/mapnik/mapnik/wiki/Grouped-rendering"},"buffer-size":{"default-value":"0",type:"float","default-meaning":"No buffer will be used",doc:"Extra tolerance around the Layer extent (in pixels) used to when querying and (potentially) clipping the layer data during rendering"},"maximum-extent":{"default-value":"none",type:"bbox","default-meaning":"No clipping extent will be used",doc:"An extent to be used to limit the bounds used to query this specific layer data during rendering. Should be minx, miny, maxx, maxy in the coordinates of the Layer."}},symbolizers:{"*":{"image-filters":{css:"image-filters","default-value":"none","default-meaning":"no filters",type:"functions",functions:[["agg-stack-blur",2],["emboss",0],["blur",0],["gray",0],["sobel",0],["edge-detect",0],["x-gradient",0],["y-gradient",0],["invert",0],["sharpen",0]],doc:"A list of image filters."},"comp-op":{css:"comp-op","default-value":"src-over","default-meaning":"add the current layer on top of other layers",doc:"Composite operation. This defines how this layer should behave relative to layers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]},opacity:{css:"opacity",type:"float",doc:"An alpha value for the style (which means an alpha applied to all features in separate buffer and then composited back to main buffer)","default-value":1,"default-meaning":"no separate buffer will be used and no alpha will be applied to the style after rendering"}},map:{"background-color":{css:"background-color","default-value":"none","default-meaning":"transparent",type:"color",doc:"Map Background color"},"background-image":{css:"background-image",type:"uri","default-value":"","default-meaning":"transparent",doc:"An image that is repeated below all features on a map as a background.",description:"Map Background image"},srs:{css:"srs",type:"string","default-value":"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs","default-meaning":"The proj4 literal of EPSG:4326 is assumed to be the Map's spatial reference and all data from layers within this map will be plotted using this coordinate system. If any layers do not declare an srs value then they will be assumed to be in the same srs as the Map and not transformations will be needed to plot them in the Map's coordinate space",doc:"Map spatial reference (proj4 string)"},"buffer-size":{css:"buffer-size","default-value":"0",type:"float","default-meaning":"No buffer will be used",doc:'Extra tolerance around the map (in pixels) used to ensure labels crossing tile boundaries are equally rendered in each tile (e.g. cut in each tile). Not intended to be used in combination with "avoid-edges".'},"maximum-extent":{css:"","default-value":"none",type:"bbox","default-meaning":"No clipping extent will be used",doc:"An extent to be used to limit the bounds used to query all layers during rendering. Should be minx, miny, maxx, maxy in the coordinates of the Map."},base:{css:"base","default-value":"","default-meaning":"This base path defaults to an empty string meaning that any relative paths to files referenced in styles or layers will be interpreted relative to the application process.",type:"string",doc:"Any relative paths used to reference files will be understood as relative to this directory path if the map is loaded from an in memory object rather than from the filesystem. If the map is loaded from the filesystem and this option is not provided it will be set to the directory of the stylesheet."},"paths-from-xml":{css:"","default-value":!0,"default-meaning":"Paths read from XML will be interpreted from the location of the XML",type:"boolean",doc:"value to control whether paths in the XML will be interpreted from the location of the XML or from the working directory of the program that calls load_map()"},"minimum-version":{css:"","default-value":"none","default-meaning":"Mapnik version will not be detected and no error will be thrown about compatibility",type:"string",doc:"The minumum Mapnik version (e.g. 0.7.2) needed to use certain functionality in the stylesheet"},"font-directory":{css:"font-directory",type:"uri","default-value":"none","default-meaning":"No map-specific fonts will be registered",doc:"Path to a directory which holds fonts which should be registered when the Map is loaded (in addition to any fonts that may be automatically registered)."}},polygon:{fill:{css:"polygon-fill",type:"color","default-value":"rgba(128,128,128,1)","default-meaning":"gray and fully opaque (alpha = 1), same as rgb(128,128,128)",doc:"Fill color to assign to a polygon"},"fill-opacity":{css:"polygon-opacity",type:"float",doc:"The opacity of the polygon","default-value":1,"default-meaning":"opaque"},gamma:{css:"polygon-gamma",type:"float","default-value":1,"default-meaning":"fully antialiased",range:"0-1",doc:"Level of antialiasing of polygon edges"},"gamma-method":{css:"polygon-gamma-method",type:["power","linear","none","threshold","multiply"],"default-value":"power","default-meaning":"pow(x,gamma) is used to calculate pixel gamma, which produces slightly smoother line and polygon antialiasing than the 'linear' method, while other methods are usually only used to disable AA",doc:"An Antigrain Geometry specific rendering hint to control the quality of antialiasing. Under the hood in Mapnik this method is used in combination with the 'gamma' value (which defaults to 1). The methods are in the AGG source at https://github.com/mapnik/mapnik/blob/master/deps/agg/include/agg_gamma_functions.h"},clip:{css:"polygon-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},smooth:{css:"polygon-smooth",type:"float","default-value":0,"default-meaning":"no smoothing",range:"0-1",doc:"Smooths out geometry angles. 0 is no smoothing, 1 is fully smoothed. Values greater than 1 will produce wild, looping geometries."},"geometry-transform":{css:"polygon-geometry-transform",type:"functions","default-value":"none","default-meaning":"geometry will not be transformed",doc:"Allows transformation functions to be applied to the geometry.",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]]},"comp-op":{css:"polygon-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},line:{stroke:{css:"line-color","default-value":"rgba(0,0,0,1)",type:"color","default-meaning":"black and fully opaque (alpha = 1), same as rgb(0,0,0)",doc:"The color of a drawn line"},"stroke-width":{css:"line-width","default-value":1,type:"float",doc:"The width of a line in pixels"},"stroke-opacity":{css:"line-opacity","default-value":1,type:"float","default-meaning":"opaque",doc:"The opacity of a line"},"stroke-linejoin":{css:"line-join","default-value":"miter",type:["miter","round","bevel"],doc:"The behavior of lines when joining"},"stroke-linecap":{css:"line-cap","default-value":"butt",type:["butt","round","square"],doc:"The display of line endings"},"stroke-gamma":{css:"line-gamma",type:"float","default-value":1,"default-meaning":"fully antialiased",range:"0-1",doc:"Level of antialiasing of stroke line"},"stroke-gamma-method":{css:"line-gamma-method",type:["power","linear","none","threshold","multiply"],"default-value":"power","default-meaning":"pow(x,gamma) is used to calculate pixel gamma, which produces slightly smoother line and polygon antialiasing than the 'linear' method, while other methods are usually only used to disable AA",doc:"An Antigrain Geometry specific rendering hint to control the quality of antialiasing. Under the hood in Mapnik this method is used in combination with the 'gamma' value (which defaults to 1). The methods are in the AGG source at https://github.com/mapnik/mapnik/blob/master/deps/agg/include/agg_gamma_functions.h"},"stroke-dasharray":{css:"line-dasharray",type:"numbers",doc:"A pair of length values [a,b], where (a) is the dash length and (b) is the gap length respectively. More than two values are supported for more complex patterns.","default-value":"none","default-meaning":"solid line"},"stroke-dashoffset":{css:"line-dash-offset",type:"numbers",doc:"valid parameter but not currently used in renderers (only exists for experimental svg support in Mapnik which is not yet enabled)","default-value":"none","default-meaning":"solid line"},"stroke-miterlimit":{css:"line-miterlimit",type:"float",doc:"The limit on the ratio of the miter length to the stroke-width. Used to automatically convert miter joins to bevel joins for sharp angles to avoid the miter extending beyond the thickness of the stroking path. Normally will not need to be set, but a larger value can sometimes help avoid jaggy artifacts.","default-value":4,"default-meaning":"Will auto-convert miters to bevel line joins when theta is less than 29 degrees as per the SVG spec: 'miterLength / stroke-width = 1 / sin ( theta / 2 )'"},clip:{css:"line-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},smooth:{css:"line-smooth",type:"float","default-value":0,"default-meaning":"no smoothing",range:"0-1",doc:"Smooths out geometry angles. 0 is no smoothing, 1 is fully smoothed. Values greater than 1 will produce wild, looping geometries."},offset:{css:"line-offset",type:"float","default-value":0,"default-meaning":"no offset",doc:"Offsets a line a number of pixels parallel to its actual path. Postive values move the line left, negative values move it right (relative to the directionality of the line)."},rasterizer:{css:"line-rasterizer",type:["full","fast"],"default-value":"full",doc:"Exposes an alternate AGG rendering method that sacrifices some accuracy for speed."},"geometry-transform":{css:"line-geometry-transform",type:"functions","default-value":"none","default-meaning":"geometry will not be transformed",doc:"Allows transformation functions to be applied to the geometry.",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]]},"comp-op":{css:"line-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},markers:{file:{css:"marker-file",doc:"An SVG file that this marker shows at each placement. If no file is given, the marker will show an ellipse.","default-value":"","default-meaning":"An ellipse or circle, if width equals height",type:"uri"},opacity:{css:"marker-opacity",doc:"The overall opacity of the marker, if set, overrides both the opacity of both the fill and stroke","default-value":1,"default-meaning":"The stroke-opacity and fill-opacity will be used",type:"float"},"fill-opacity":{css:"marker-fill-opacity",doc:"The fill opacity of the marker","default-value":1,"default-meaning":"opaque",type:"float"},stroke:{css:"marker-line-color",doc:"The color of the stroke around a marker shape.","default-value":"black",type:"color"},"stroke-width":{css:"marker-line-width",doc:"The width of the stroke around a marker shape, in pixels. This is positioned on the boundary, so high values can cover the area itself.",type:"float"},"stroke-opacity":{css:"marker-line-opacity","default-value":1,"default-meaning":"opaque",doc:"The opacity of a line",type:"float"},placement:{css:"marker-placement",type:["point","line","interior"],"default-value":"point","default-meaning":"Place markers at the center point (centroid) of the geometry",doc:"Attempt to place markers on a point, in the center of a polygon, or if markers-placement:line, then multiple times along a line. 'interior' placement can be used to ensure that points placed on polygons are forced to be inside the polygon interior"},"multi-policy":{css:"marker-multi-policy",type:["each","whole","largest"],"default-value":"each","default-meaning":"If a feature contains multiple geometries and the placement type is either point or interior then a marker will be rendered for each",doc:"A special setting to allow the user to control rendering behavior for 'multi-geometries' (when a feature contains multiple geometries). This setting does not apply to markers placed along lines. The 'each' policy is default and means all geometries will get a marker. The 'whole' policy means that the aggregate centroid between all geometries will be used. The 'largest' policy means that only the largest (by bounding box areas) feature will get a rendered marker (this is how text labeling behaves by default)."},"marker-type":{css:"marker-type",type:["arrow","ellipse"],"default-value":"ellipse",doc:"The default marker-type. If a SVG file is not given as the marker-file parameter, the renderer provides either an arrow or an ellipse (a circle if height is equal to width)"},width:{css:"marker-width","default-value":10,doc:"The width of the marker, if using one of the default types.",type:"expression"},height:{css:"marker-height","default-value":10,doc:"The height of the marker, if using one of the default types.",type:"expression"},fill:{css:"marker-fill","default-value":"blue",doc:"The color of the area of the marker.",type:"color"},"allow-overlap":{css:"marker-allow-overlap",type:"boolean","default-value":!1,doc:"Control whether overlapping markers are shown or hidden.","default-meaning":"Do not allow makers to overlap with each other - overlapping markers will not be shown."},"ignore-placement":{css:"marker-ignore-placement",type:"boolean","default-value":!1,"default-meaning":"do not store the bbox of this geometry in the collision detector cache",doc:"value to control whether the placement of the feature will prevent the placement of other features"},spacing:{css:"marker-spacing",doc:"Space between repeated labels","default-value":100,type:"float"},"max-error":{css:"marker-max-error",type:"float","default-value":.2,doc:"The maximum difference between actual marker placement and the marker-spacing parameter. Setting a high value can allow the renderer to try to resolve placement conflicts with other symbolizers."},transform:{css:"marker-transform",type:"functions",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]],"default-value":"","default-meaning":"No transformation",doc:"SVG transformation definition"},clip:{css:"marker-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},smooth:{css:"marker-smooth",type:"float","default-value":0,"default-meaning":"no smoothing",range:"0-1",doc:"Smooths out geometry angles. 0 is no smoothing, 1 is fully smoothed. Values greater than 1 will produce wild, looping geometries."},"geometry-transform":{css:"marker-geometry-transform",type:"functions","default-value":"none","default-meaning":"geometry will not be transformed",doc:"Allows transformation functions to be applied to the geometry.",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]]},"comp-op":{css:"marker-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},shield:{name:{css:"shield-name",type:"expression",serialization:"content",doc:'Value to use for a shield"s text label. Data columns are specified using brackets like [column_name]'},file:{css:"shield-file",required:!0,type:"uri","default-value":"none",doc:"Image file to render behind the shield text"},"face-name":{css:"shield-face-name",type:"string",validate:"font",doc:"Font name and style to use for the shield text","default-value":"",required:!0},"unlock-image":{css:"shield-unlock-image",type:"boolean",doc:"This parameter should be set to true if you are trying to position text beside rather than on top of the shield image","default-value":!1,"default-meaning":"text alignment relative to the shield image uses the center of the image as the anchor for text positioning."},size:{css:"shield-size",type:"float",doc:"The size of the shield text in pixels"},fill:{css:"shield-fill",type:"color",doc:"The color of the shield text"},placement:{css:"shield-placement",type:["point","line","vertex","interior"],"default-value":"point",doc:"How this shield should be placed. Point placement attempts to place it on top of points, line places along lines multiple times per feature, vertex places on the vertexes of polygons, and interior attempts to place inside of polygons."},"avoid-edges":{css:"shield-avoid-edges",doc:"Tell positioning algorithm to avoid labeling near intersection edges.",type:"boolean","default-value":!1},"allow-overlap":{css:"shield-allow-overlap",type:"boolean","default-value":!1,doc:"Control whether overlapping shields are shown or hidden.","default-meaning":"Do not allow shields to overlap with other map elements already placed."},"minimum-distance":{css:"shield-min-distance",type:"float","default-value":0,doc:"Minimum distance to the next shield symbol, not necessarily the same shield."},spacing:{css:"shield-spacing",type:"float","default-value":0,doc:"The spacing between repeated occurrences of the same shield on a line"},"minimum-padding":{css:"shield-min-padding","default-value":0,doc:"Determines the minimum amount of padding that a shield gets relative to other shields",type:"float"},"wrap-width":{css:"shield-wrap-width",type:"unsigned","default-value":0,doc:"Length of a chunk of text in characters before wrapping text"},"wrap-before":{css:"shield-wrap-before",type:"boolean","default-value":!1,doc:"Wrap text before wrap-width is reached. If false, wrapped lines will be a bit longer than wrap-width."},"wrap-character":{css:"shield-wrap-character",type:"string","default-value":" ",doc:"Use this character instead of a space to wrap long names."},"halo-fill":{css:"shield-halo-fill",type:"color","default-value":"#FFFFFF","default-meaning":"white",doc:"Specifies the color of the halo around the text."},"halo-radius":{css:"shield-halo-radius",doc:"Specify the radius of the halo in pixels","default-value":0,"default-meaning":"no halo",type:"float"},"character-spacing":{css:"shield-character-spacing",type:"unsigned","default-value":0,doc:"Horizontal spacing between characters (in pixels). Currently works for point placement only, not line placement."},"line-spacing":{css:"shield-line-spacing",doc:"Vertical spacing between lines of multiline labels (in pixels)",type:"unsigned"},dx:{css:"shield-text-dx",type:"float",doc:"Displace text within shield by fixed amount, in pixels, +/- along the X axis. A positive value will shift the text right","default-value":0},dy:{css:"shield-text-dy",type:"float",doc:"Displace text within shield by fixed amount, in pixels, +/- along the Y axis. A positive value will shift the text down","default-value":0},"shield-dx":{css:"shield-dx",type:"float",doc:"Displace shield by fixed amount, in pixels, +/- along the X axis. A positive value will shift the text right","default-value":0},"shield-dy":{css:"shield-dy",type:"float",doc:"Displace shield by fixed amount, in pixels, +/- along the Y axis. A positive value will shift the text down","default-value":0},opacity:{css:"shield-opacity",type:"float",doc:"(Default 1.0) - opacity of the image used for the shield","default-value":1},"text-opacity":{css:"shield-text-opacity",type:"float",doc:"(Default 1.0) - opacity of the text placed on top of the shield","default-value":1},"horizontal-alignment":{css:"shield-horizontal-alignment",type:["left","middle","right","auto"],doc:"The shield's horizontal alignment from its centerpoint","default-value":"auto"},"vertical-alignment":{css:"shield-vertical-alignment",type:["top","middle","bottom","auto"],doc:"The shield's vertical alignment from its centerpoint","default-value":"middle"},"text-transform":{css:"shield-text-transform",type:["none","uppercase","lowercase","capitalize"],doc:"Transform the case of the characters","default-value":"none"},"justify-alignment":{css:"shield-justify-alignment",type:["left","center","right","auto"],doc:"Define how text in a shield's label is justified","default-value":"auto"},clip:{css:"shield-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},"comp-op":{css:"shield-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},"line-pattern":{file:{css:"line-pattern-file",type:"uri","default-value":"none",required:!0,doc:"An image file to be repeated and warped along a line"},clip:{css:"line-pattern-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},smooth:{css:"line-pattern-smooth",type:"float","default-value":0,"default-meaning":"no smoothing",range:"0-1",doc:"Smooths out geometry angles. 0 is no smoothing, 1 is fully smoothed. Values greater than 1 will produce wild, looping geometries."},"geometry-transform":{css:"line-pattern-geometry-transform",type:"functions","default-value":"none","default-meaning":"geometry will not be transformed",doc:"Allows transformation functions to be applied to the geometry.",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]]},"comp-op":{css:"line-pattern-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},"polygon-pattern":{file:{css:"polygon-pattern-file",type:"uri","default-value":"none",required:!0,doc:"Image to use as a repeated pattern fill within a polygon"},alignment:{css:"polygon-pattern-alignment",type:["local","global"],"default-value":"local",doc:"Specify whether to align pattern fills to the layer or to the map."},gamma:{css:"polygon-pattern-gamma",type:"float","default-value":1,"default-meaning":"fully antialiased",range:"0-1",doc:"Level of antialiasing of polygon pattern edges"},opacity:{css:"polygon-pattern-opacity",type:"float",doc:"(Default 1.0) - Apply an opacity level to the image used for the pattern","default-value":1,"default-meaning":"The image is rendered without modifications"},clip:{css:"polygon-pattern-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},smooth:{css:"polygon-pattern-smooth",type:"float","default-value":0,"default-meaning":"no smoothing",range:"0-1",doc:"Smooths out geometry angles. 0 is no smoothing, 1 is fully smoothed. Values greater than 1 will produce wild, looping geometries."},"geometry-transform":{css:"polygon-pattern-geometry-transform",type:"functions","default-value":"none","default-meaning":"geometry will not be transformed",doc:"Allows transformation functions to be applied to the geometry.",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]]},"comp-op":{css:"polygon-pattern-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},raster:{opacity:{css:"raster-opacity","default-value":1,"default-meaning":"opaque",type:"float",doc:"The opacity of the raster symbolizer on top of other symbolizers."},"filter-factor":{css:"raster-filter-factor","default-value":-1,"default-meaning":"Allow the datasource to choose appropriate downscaling.",type:"float",doc:"This is used by the Raster or Gdal datasources to pre-downscale images using overviews. Higher numbers can sometimes cause much better scaled image output, at the cost of speed."},scaling:{css:"raster-scaling",type:["near","fast","bilinear","bilinear8","bicubic","spline16","spline36","hanning","hamming","hermite","kaiser","quadric","catrom","gaussian","bessel","mitchell","sinc","lanczos","blackman"],"default-value":"near",doc:"The scaling algorithm used to making different resolution versions of this raster layer. Bilinear is a good compromise between speed and accuracy, while lanczos gives the highest quality."},"mesh-size":{css:"raster-mesh-size","default-value":16,"default-meaning":"Reprojection mesh will be 1/16 of the resolution of the source image",type:"unsigned",doc:"A reduced resolution mesh is used for raster reprojection, and the total image size is divided by the mesh-size to determine the quality of that mesh. Values for mesh-size larger than the default will result in faster reprojection but might lead to distortion."},"comp-op":{css:"raster-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},point:{file:{css:"point-file",type:"uri",required:!1,"default-value":"none",doc:"Image file to represent a point"},"allow-overlap":{css:"point-allow-overlap",type:"boolean","default-value":!1,doc:"Control whether overlapping points are shown or hidden.","default-meaning":"Do not allow points to overlap with each other - overlapping markers will not be shown."},"ignore-placement":{css:"point-ignore-placement",type:"boolean","default-value":!1,"default-meaning":"do not store the bbox of this geometry in the collision detector cache",doc:"value to control whether the placement of the feature will prevent the placement of other features"},opacity:{css:"point-opacity",type:"float","default-value":1,"default-meaning":"Fully opaque",doc:"A value from 0 to 1 to control the opacity of the point"},placement:{css:"point-placement",type:["centroid","interior"],doc:"How this point should be placed. Centroid calculates the geometric center of a polygon, which can be outside of it, while interior always places inside of a polygon.","default-value":"centroid"},transform:{css:"point-transform",type:"functions",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]],"default-value":"","default-meaning":"No transformation",doc:"SVG transformation definition"},"comp-op":{css:"point-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},text:{name:{css:"text-name",type:"expression",required:!0,"default-value":"",serialization:"content",doc:"Value to use for a text label. Data columns are specified using brackets like [column_name]"},"face-name":{css:"text-face-name",type:"string",validate:"font",doc:"Font name and style to render a label in",required:!0},size:{css:"text-size",type:"float","default-value":10,doc:"Text size in pixels"},"text-ratio":{css:"text-ratio",doc:"Define the amount of text (of the total) present on successive lines when wrapping occurs","default-value":0,type:"unsigned"},"wrap-width":{css:"text-wrap-width",doc:"Length of a chunk of text in characters before wrapping text","default-value":0,type:"unsigned"},"wrap-before":{css:"text-wrap-before",type:"boolean","default-value":!1,doc:"Wrap text before wrap-width is reached. If false, wrapped lines will be a bit longer than wrap-width."},"wrap-character":{css:"text-wrap-character",type:"string","default-value":" ",doc:"Use this character instead of a space to wrap long text."},spacing:{css:"text-spacing",type:"unsigned",doc:"Distance between repeated text labels on a line (aka. label-spacing)"},"character-spacing":{css:"text-character-spacing",type:"float","default-value":0,doc:"Horizontal spacing adjustment between characters in pixels"},"line-spacing":{css:"text-line-spacing","default-value":0,type:"unsigned",doc:"Vertical spacing adjustment between lines in pixels"},"label-position-tolerance":{css:"text-label-position-tolerance","default-value":0,type:"unsigned",doc:"Allows the label to be displaced from its ideal position by a number of pixels (only works with placement:line)"},"max-char-angle-delta":{css:"text-max-char-angle-delta",type:"float","default-value":"22.5",doc:"The maximum angle change, in degrees, allowed between adjacent characters in a label. This value internally is converted to radians to the default is 22.5*math.pi/180.0. The higher the value the fewer labels will be placed around around sharp corners."},fill:{css:"text-fill",doc:"Specifies the color for the text","default-value":"#000000",type:"color"},opacity:{css:"text-opacity",doc:"A number from 0 to 1 specifying the opacity for the text","default-value":1,"default-meaning":"Fully opaque",type:"float"},"halo-fill":{css:"text-halo-fill",type:"color","default-value":"#FFFFFF","default-meaning":"white",doc:"Specifies the color of the halo around the text."},"halo-radius":{css:"text-halo-radius",doc:"Specify the radius of the halo in pixels","default-value":0,"default-meaning":"no halo",type:"float"},dx:{css:"text-dx",type:"float",doc:"Displace text by fixed amount, in pixels, +/- along the X axis. A positive value will shift the text right","default-value":0},dy:{css:"text-dy",type:"float",doc:"Displace text by fixed amount, in pixels, +/- along the Y axis. A positive value will shift the text down","default-value":0},"vertical-alignment":{css:"text-vertical-alignment",type:["top","middle","bottom","auto"],doc:"Position of label relative to point position.","default-value":"auto","default-meaning":'Default affected by value of dy; "bottom" for dy>0, "top" for dy<0.'},"avoid-edges":{css:"text-avoid-edges",doc:"Tell positioning algorithm to avoid labeling near intersection edges.","default-value":!1,type:"boolean"},"minimum-distance":{css:"text-min-distance",doc:"Minimum permitted distance to the next text symbolizer.",type:"float"},"minimum-padding":{css:"text-min-padding",doc:"Determines the minimum amount of padding that a text symbolizer gets relative to other text",type:"float"},"minimum-path-length":{css:"text-min-path-length",type:"float","default-value":0,"default-meaning":"place labels on all paths",doc:"Place labels only on paths longer than this value."},"allow-overlap":{css:"text-allow-overlap",type:"boolean","default-value":!1,doc:"Control whether overlapping text is shown or hidden.","default-meaning":"Do not allow text to overlap with other text - overlapping markers will not be shown."},orientation:{css:"text-orientation",type:"expression",doc:"Rotate the text."},placement:{css:"text-placement",type:["point","line","vertex","interior"],"default-value":"point",doc:"Control the style of placement of a point versus the geometry it is attached to."},"placement-type":{css:"text-placement-type",doc:'Re-position and/or re-size text to avoid overlaps. "simple" for basic algorithm (using text-placements string,) "dummy" to turn this feature off.',type:["dummy","simple"],"default-value":"dummy"},placements:{css:"text-placements",type:"string","default-value":"",doc:'If "placement-type" is set to "simple", use this "POSITIONS,[SIZES]" string. An example is `text-placements: "E,NE,SE,W,NW,SW";` '},"text-transform":{css:"text-transform",type:["none","uppercase","lowercase","capitalize"],doc:"Transform the case of the characters","default-value":"none"},"horizontal-alignment":{css:"text-horizontal-alignment",type:["left","middle","right","auto"],doc:"The text's horizontal alignment from its centerpoint","default-value":"auto"},"justify-alignment":{css:"text-align",type:["left","right","center","auto"],doc:"Define how text is justified","default-value":"auto","default-meaning":"Auto alignment means that text will be centered by default except when using the `placement-type` parameter - in that case either right or left justification will be used automatically depending on where the text could be fit given the `text-placements` directives"},clip:{css:"text-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},"comp-op":{css:"text-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},building:{fill:{css:"building-fill","default-value":"#FFFFFF",doc:"The color of the buildings walls.",type:"color"},"fill-opacity":{css:"building-fill-opacity",type:"float",doc:"The opacity of the building as a whole, including all walls.","default-value":1},height:{css:"building-height",doc:"The height of the building in pixels.",type:"expression","default-value":"0"}}},colors:{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],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],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],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],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],transparent:[0,0,0,0]},filter:{value:["true","false","null","point","linestring","polygon","collection"]}};Pt.mapnik_reference={version:{latest:Kde,"2.1.1":Kde}};Pt.Tree={};Pt.Tree.operate=function(n,e,t){switch(n){case"+":return e+t;case"-":return e-t;case"*":return e*t;case"%":return e%t;case"/":return e/t}};Pt.Tree.functions={rgb:function(n,e,t){return this.rgba(n,e,t,1)},rgba:function(n,e,t,r){var i=this,a=[n,e,t].map(function(o){return i.number(o)});return r=i.number(r),a.some(isNaN)||isNaN(r)?null:new Pt.Tree.Color(a,r)},stop:function(n){var e,t;return arguments.length>1&&(e=arguments[1]),arguments.length>2&&(t=arguments[2]),{is:"tag",val:n,color:e,mode:t,toString(r){return` + "}}},hsl:function(n,e,t){return this.hsla(n,e,t,1)},hsla:function(n,e,t,r){if(n=this.number(n)%360/360,e=this.number(e),t=this.number(t),r=this.number(r),[n,e,t,r].some(isNaN))return null;var i=t<=.5?t*(e+1):t+e-t*e,a=t*2-i;return this.rgba(o(n+1/3)*255,o(n)*255,o(n-1/3)*255,r);function o(s){return s=s<0?s+1:s>1?s-1:s,s*6<1?a+(i-a)*s*6:s*2<1?i:s*3<2?a+(i-a)*(2/3-s)*6:a}},hue:function(n){return"toHSL"in n?new Pt.Tree.Dimension(Math.round(n.toHSL().h)):null},saturation:function(n){return"toHSL"in n?new Pt.Tree.Dimension(Math.round(n.toHSL().s*100),"%"):null},lightness:function(n){return"toHSL"in n?new Pt.Tree.Dimension(Math.round(n.toHSL().l*100),"%"):null},alpha:function(n){return"toHSL"in n?new Pt.Tree.Dimension(n.toHSL().a):null},saturate:function(n,e){if(!("toHSL"in n))return null;var t=n.toHSL();return t.s+=e.value/100,t.s=this.clamp(t.s),this.hsla_simple(t)},desaturate:function(n,e){if(!("toHSL"in n))return null;var t=n.toHSL();return t.s-=e.value/100,t.s=this.clamp(t.s),this.hsla_simple(t)},lighten:function(n,e){if(!("toHSL"in n))return null;var t=n.toHSL();return t.l+=e.value/100,t.l=this.clamp(t.l),this.hsla_simple(t)},darken:function(n,e){if(!("toHSL"in n))return null;var t=n.toHSL();return t.l-=e.value/100,t.l=this.clamp(t.l),this.hsla_simple(t)},fadein:function(n,e){if(!("toHSL"in n))return null;var t=n.toHSL();return t.a+=e.value/100,t.a=this.clamp(t.a),this.hsla_simple(t)},fadeout:function(n,e){if(!("toHSL"in n))return null;var t=n.toHSL();return t.a-=e.value/100,t.a=this.clamp(t.a),this.hsla_simple(t)},spin:function(n,e){if(!("toHSL"in n))return null;var t=n.toHSL(),r=(t.h+e.value)%360;return t.h=r<0?360+r:r,this.hsla_simple(t)},replace:function(n,e,t){return n.is==="field"?n.toString+".replace("+e.toString()+", "+t.toString()+")":n.replace(e,t)},mix:function(n,e,t){var r=t.value/100,i=r*2-1,a=n.toHSL().a-e.toHSL().a,o=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,s=1-o,l=[n.rgb[0]*o+e.rgb[0]*s,n.rgb[1]*o+e.rgb[1]*s,n.rgb[2]*o+e.rgb[2]*s],u=n.alpha*r+e.alpha*(1-r);return new Pt.Tree.Color(l,u)},greyscale:function(n){return this.desaturate(n,new Pt.Tree.Dimension(100))},"%":function(n){for(var e=Array.prototype.slice.call(arguments,1),t=n.value,r=0;r.5?h/(2-a-o):h/(a+o),a){case e:s=(t-r)/h+(t"}ev(){return this}};Pt.Tree.Definition=class{constructor(e,t){this.elements=e.elements,this.rules=t,this.ruleIndex={};for(var r=0;r=0){if(!e.ppi)return e.error({message:"ppi is not set, so metric units can't be used",index:this.index}),{is:"undefined",value:"undefined"};this.value=this.value/this.densities[this.unit]*e.ppi,this.unit="px"}return this}toColor(){return new Pt.Tree.Color([this.value,this.value,this.value])}round(){return this.value=Math.round(this.value),this}toString(){return this.value.toString()}operate(e,t,r){return this.unit==="%"&&r.unit!=="%"?(e.error({message:"If two operands differ, the first must not be %",index:this.index}),{is:"undefined",value:"undefined"}):this.unit!=="%"&&r.unit==="%"?t==="*"||t==="/"||t==="%"?(e.error({message:"Percent values can only be added or subtracted from other values",index:this.index}),{is:"undefined",value:"undefined"}):new Pt.Tree.Dimension(Pt.Tree.operate(t,this.value,this.value*r.value*.01),this.unit):new Pt.Tree.Dimension(Pt.Tree.operate(t,this.value,r.value),this.unit||r.unit)}};Pt.Tree.Element=class{constructor(e){this.value=e.trim(),this.value[0]==="#"&&(this.type="id",this.clean=this.value.replace(/^#/,"")),this.value[0]==="."&&(this.type="class",this.clean=this.value.replace(/^\./,"")),this.value.indexOf("*")!==-1&&(this.type="wildcard")}specificity(){return[this.type==="id"?1:0,this.type==="class"?1:0]}toString(){return this.value}};Pt.Tree.Expression=class{constructor(e){this.is="expression",this.value=e}ev(e){return this.value.length>1?new Pt.Tree.Expression(this.value.map(function(t){return t.ev(e)})):this.value[0].ev(e)}toString(e){return this.value.map(function(t){return t.toString(e)}).join(" ")}};Pt.Tree.Field=class{constructor(e){this.is="field",this.value=e||""}toString(){return'["'+this.value.toUpperCase()+'"]'}ev(){return this}};Pt.Tree.Filter=class{constructor(e,t,r,i,a){this.ops={"<":[" < ","numeric"],">":[" > ","numeric"],"=":[" = ","both"],"!=":[" != ","both"],"<=":[" <= ","numeric"],">=":[" >= ","numeric"],"=~":[".match(","string",")"]},this.key=e,this.op=t,this.val=r,this.index=i,this.filename=a,this.id=this.key+this.op+this.val}ev(e){return this.key=this.key.ev(e),this.val=this.val.ev(e),this}toString(){return"["+this.id+"]"}};Pt.Tree.Filterset=class{constructor(){this.filters={}}toJS(e){function t(a){var o=a.op;o==="="&&(o="==");var s=a.val;a._val!==void 0&&(s=a._val.toString(!0)),a.key&&a.key.value==="scale"?s=+s:(typeof s=="string"||typeof s=="object")&&(s="'"+s+"'");var l="attributes";return l+"&&"+l+a.key+"&&"+l+a.key+" "+o+s}var r=[];for(var i in this.filters)r.push(t(this.filters[i]));return r.join(" && ")}toString(){var e=[];for(var t in this.filters)e.push(this.filters[t].id);return e.sort().join(" ")}ev(e){for(var t in this.filters)this.filters[t].ev(e);return this}clone(){var e=new Pt.Tree.Filterset;for(var t in this.filters)e.filters[t]=this.filters[t];return e}cloneWith(e){var t=[];for(var r in e.filters){var i=this.addable(e.filters[r]);if(i===!1)return!1;i===!0&&t.push(e.filters[r])}if(!t.length)return null;var a=new Pt.Tree.Filterset;for(r in this.filters)a.filters[r]=this.filters[r];for(;r=t.shift();)a.add(r);return a}addable(e){var t=e.key.toString(),r=e.val.toString();switch(r.match(/^[0-9]+(\.[0-9]*)?_match/)&&(r=parseFloat(r)),e.op){case"=":return this.filters[t+"="]!==void 0?this.filters[t+"="].val.toString()!=r?!1:null:!(this.filters[t+"!="+r]!==void 0||this.filters[t+">"]!==void 0&&this.filters[t+">"].val>=r||this.filters[t+"<"]!==void 0&&this.filters[t+"<"].val<=r||this.filters[t+">="]!==void 0&&this.filters[t+">="].val>r||this.filters[t+"<="]!==void 0&&this.filters[t+"<="].val"]!==void 0&&this.filters[t+">"].val>=r||this.filters[t+"<"]!==void 0&&this.filters[t+"<"].val<=r||this.filters[t+">="]!==void 0&&this.filters[t+">="].val>r||this.filters[t+"<="]!==void 0&&this.filters[t+"<="].val":return t+"="in this.filters?this.filters[t+"="].val<=r?!1:null:this.filters[t+"<"]!==void 0&&this.filters[t+"<"].val<=r||this.filters[t+"<="]!==void 0&&this.filters[t+"<="].val<=r?!1:this.filters[t+">"]!==void 0&&this.filters[t+">"].val>=r||this.filters[t+">="]!==void 0&&this.filters[t+">="].val>r?null:!0;case">=":return this.filters[t+"="]!==void 0?this.filters[t+"="].val"]!==void 0&&this.filters[t+">"].val>=r||this.filters[t+">="]!==void 0&&this.filters[t+">="].val>=r?null:!0;case"<":return this.filters[t+"="]!==void 0?this.filters[t+"="].val>=r?!1:null:this.filters[t+">"]!==void 0&&this.filters[t+">"].val>=r||this.filters[t+">="]!==void 0&&this.filters[t+">="].val>=r?!1:this.filters[t+"<"]!==void 0&&this.filters[t+"<"].val<=r||this.filters[t+"<="]!==void 0&&this.filters[t+"<="].valr?!1:null:this.filters[t+">"]!==void 0&&this.filters[t+">"].val>=r||this.filters[t+">="]!==void 0&&this.filters[t+">="].val>r?!1:this.filters[t+"<"]!==void 0&&this.filters[t+"<"].val<=r||this.filters[t+"<="]!==void 0&&this.filters[t+"<="].val<=r?null:!0}}conflict(e){var t=e.key.toString(),r=e.val.toString();return isNaN(parseFloat(r))||(r=parseFloat(r)),e.op==="="&&this.filters[t+"="]!==void 0&&r!=this.filters[t+"="].val.toString()||e.op==="!="&&this.filters[t+"="]!==void 0&&r==this.filters[t+"="].val.toString()||e.op==="="&&this.filters[t+"!="]!==void 0&&r===this.filters[t+"!="].val.toString()?e.toString()+" added to "+this.toString()+" produces an invalid filter":!1}add(e,t){var r=e.key.toString(),i=e.op,a=this.conflict(e),o;if(a)return a;if(i==="="){for(var s in this.filters)this.filters[s].key===r&&delete this.filters[s];this.filters[r+"="]=e}else if(i==="!=")this.filters[r+"!="+e.val]=e;else if(i==="=~")this.filters[r+"=~"+e.val]=e;else if(i===">"){for(var l in this.filters)this.filters[l].key===r&&this.filters[l].val<=e.val&&delete this.filters[l];this.filters[r+">"]=e}else if(i===">="){for(var u in this.filters)o=+this.filters[u].val.toString(),this.filters[u].key===r&&o",this.filters[r+">"]=e):this.filters[r+">="]=e}else if(i==="<"){for(var h in this.filters)o=+this.filters[h].val.toString(),this.filters[h].key===r&&o>=e.val&&delete this.filters[h];this.filters[r+"<"]=e}else if(i==="<="){for(var c in this.filters)o=+this.filters[c].val.toString(),this.filters[c].key===r&&o>e.val&&delete this.filters[c];this.filters[r+"!="+e.val]!==void 0?(delete this.filters[r+"!="+e.val],e.op="<",this.filters[r+"<"]=e):this.filters[r+"<="]=e}}};Pt.Tree.Fontset=class{constructor(e,t){this.fonts=t,this.name="fontset-"+e.effects.length}};Pt.Tree.Invalid=class{constructor(e,t,r){this.is="invalid",this.chunk=e,this.index=t,this.type="syntax",this.message=r||"Invalid code: "+this.chunk}ev(e){return e.error({chunk:this.chunk,index:this.index,type:"syntax",message:this.message||"Invalid code: "+this.chunk}),{is:"undefined"}}};Pt.Tree.Keyword=class{ev(){return this}constructor(e){this.value=e;var t={transparent:"color",true:"boolean",false:"boolean"};this.is=t[e]?t[e]:"keyword"}toString(){return this.value}};Pt.Tree.Literal=class{constructor(e){this.value=e||"",this.is="field"}toString(){return this.value}ev(){return this}};Pt.Tree.Operation=class{constructor(e,t,r){this.is="operation",this.op=e.trim(),this.operands=t,this.index=r}ev(e){var t=this.operands[0].ev(e),r=this.operands[1].ev(e),i;return t.is==="undefined"||r.is==="undefined"?{is:"undefined",value:"undefined"}:(t instanceof Pt.Tree.Dimension&&r instanceof Pt.Tree.Color&&(this.op==="*"||this.op==="+"?(i=r,r=t,t=i):e.error({name:"OperationError",message:"Can't substract or divide a color from a number",index:this.index})),t instanceof Pt.Tree.Quoted&&r instanceof Pt.Tree.Quoted&&this.op!=="+"?(e.error({message:"Can't subtract, divide, or multiply strings.",index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"}):t instanceof Pt.Tree.Field||r instanceof Pt.Tree.Field||t instanceof Pt.Tree.Literal||r instanceof Pt.Tree.Literal?t.is==="color"||r.is==="color"?(e.error({message:"Can't subtract, divide, or multiply colors in expressions.",index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"}):new Pt.Tree.Literal(t.ev(e).toString(!0)+this.op+r.ev(e).toString(!0)):t.operate===void 0?(e.error({message:"Cannot do math with type "+t.is+".",index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"}):t.operate(e,this.op,r))}};Pt.Tree.Quoted=class{constructor(e){this.is="string",this.value=e||""}toString(e){var t=this.value.replace(/&/g,"&"),r=t.replace(/\'/g,"\\'").replace(/\"/g,""").replace(//g,">");return e===!0?"'"+r+"'":t}ev(){return this}operate(e,t,r){return new Pt.Tree.Quoted(Pt.Tree.operate(t,this.toString(),r.toString(this.contains_field)))}};Pt.Tree.Reference={_validateValue:{font:function(n,e){return n.validation_data&&n.validation_data.fonts?n.validation_data.fonts.indexOf(e)!=-1:!0}},setData:function(n){this.data=n,this.selector_cache=e(n),this.mapnikFunctions=t(n),this.required_cache=r(n);function e(i){var a={};for(var o in i.symbolizers)for(var s in i.symbolizers[o])i.symbolizers[o][s].hasOwnProperty("css")&&(a[i.symbolizers[o][s].css]=[i.symbolizers[o][s],o,s]);return a}function t(i){var a={};for(var o in i.symbolizers)for(var s in i.symbolizers[o])if(i.symbolizers[o][s].type==="functions")for(var l=0;l1?Array.prototype.push.apply(r,o.find(new Pt.Tree.Selector(null,null,e.elements.slice(1)),t)):r.push(o);break}}}),this._lookups[a]=r)}evZooms(e){for(var t=0;tPt.Tree.Zoom.maxZoom||t<0)&&e.error({message:"Only zoom levels between 0 and "+Pt.Tree.Zoom.maxZoom+" supported.",index:this.index}),this.op){case"=":return this.zoom="zoom && zoom === "+t,this;case">":this.zoom="zoom && zoom > "+t;break;case">=":this.zoom="zoom && zoom >= "+t;break;case"<":this.zoom="zoom && zoom < "+t;break;case"<=":this.zoom="zoom && zoom <= "+t;break}return this}toString(){for(var e="",t=0;t<=Pt.Tree.Zoom.maxZoom;t++)e+=this.zoom&1<3&&(t=Array.prototype.slice.call(t,1));for(var i=this._handlers[e],a=i.length,o=0;o4&&(t=Array.prototype.slice.call(t,1,t.length-1));for(var i=t[t.length-1],a=this._handlers[e],o=a.length,s=0;s"u"?Array:Float32Array,this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Vector"}create(e,t){var r=this.ArrayCtor,i=new r(2);return i[0]=e||0,i[1]=t||0,i}copy(e,t){return e[0]=t[0],e[1]=t[1],e}set(e,t,r){return e[0]=t,e[1]=r,e}add(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}scaleAndAdd(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e}sub(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}len(e){return Math.sqrt(this.lenSquare(e))}lenSquare(e){return e[0]*e[0]+e[1]*e[1]}mul(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}div(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}dot(e,t){return e[0]*t[0]+e[1]*t[1]}scale(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}normalize(e,t){var r=this.len(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}distance(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}distanceSquare(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}negate(e,t){return e[0]=-t[0],e[1]=-t[1],e}lerp(e,t,r,i){return e[0]=t[0]+i*(r[0]-t[0]),e[1]=t[1]+i*(r[1]-t[1]),e}applyTransform(e,t,r){var i=t[0],a=t[1];return e[0]=r[0]*i+r[2]*a+r[4],e[1]=r[1]*i+r[3]*a+r[5],e}min(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}max(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}length(e){return this.len(e)}lengthSquare(e){return this.lenSquare(e)}dist(e,t){return this.distance(e,t)}distSquare(e,t){return this.distanceSquare(e,t)}}class j8{constructor(){this.vector=new Zne,this.EPSILON=1e-4,this.THREE_SQRT=Math.sqrt(3),this.ONE_THIRD=1/3,this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Curve"}isAroundZero(e){return e>-this.EPSILON&&ethis.EPSILON||e<-this.EPSILON}cubicAt(e,t,r,i,a){var o=1-a;return o*o*(o*e+3*a*t)+a*a*(a*i+3*o*r)}cubicDerivativeAt(e,t,r,i,a){var o=1-a;return 3*(((t-e)*o+2*(r-t)*a)*o+(i-r)*a*a)}cubicRootAt(e,t,r,i,a,o){var s=i+3*(t-r)-e,l=3*(r-t*2+e),u=3*(t-e),h=e-a,c=l*l-3*s*u,f=l*u-9*s*h,d=u*u-3*l*h,v=0;if(this.isAroundZero(c)&&this.isAroundZero(f))if(this.isAroundZero(l))o[0]=0;else{let S=-u/l;S>=0&&S<=1&&(o[v++]=S)}else{var p=f*f-4*c*d;if(this.isAroundZero(p)){var g=f/c;let S=-l/s+g,w=-g/2;S>=0&&S<=1&&(o[v++]=S),w>=0&&w<=1&&(o[v++]=w)}else if(p>0){let S=Math.sqrt(p),w=c*l+1.5*s*(-f+S),b=c*l+1.5*s*(-f-S);w<0?w=-Math.pow(-w,this.ONE_THIRD):w=Math.pow(w,this.ONE_THIRD),b<0?b=-Math.pow(-b,this.ONE_THIRD):b=Math.pow(b,this.ONE_THIRD);let E=(-l-(w+b))/(3*s);E>=0&&E<=1&&(o[v++]=E)}else{var m=(2*c*l-3*s*f)/(2*Math.sqrt(c*c*c)),y=Math.acos(m)/3,_=Math.sqrt(c),x=Math.cos(y);let S=(-l-2*_*x)/(3*s),w=(-l+_*(x+this.THREE_SQRT*Math.sin(y)))/(3*s),b=(-l+_*(x-this.THREE_SQRT*Math.sin(y)))/(3*s);S>=0&&S<=1&&(o[v++]=S),w>=0&&w<=1&&(o[v++]=w),b>=0&&b<=1&&(o[v++]=b)}}return v}cubicExtrema(e,t,r,i,a){var o=6*r-12*t+6*e,s=9*t+3*i-3*e-9*r,l=3*t-3*e,u=0;if(this.isAroundZero(s)){if(this.isNotAroundZero(o)){let c=-l/o;c>=0&&c<=1&&(a[u++]=c)}}else{var h=o*o-4*s*l;if(this.isAroundZero(h))a[0]=-o/(2*s);else if(h>0){let c=Math.sqrt(h),f=(-o+c)/(2*s),d=(-o-c)/(2*s);f>=0&&f<=1&&(a[u++]=f),d>=0&&d<=1&&(a[u++]=d)}}return u}cubicSubdivide(e,t,r,i,a,o){var s=(t-e)*a+e,l=(r-t)*a+t,u=(i-r)*a+r,h=(l-s)*a+s,c=(u-l)*a+l,f=(c-h)*a+h;o[0]=e,o[1]=s,o[2]=h,o[3]=f,o[4]=f,o[5]=c,o[6]=u,o[7]=i}cubicProjectPoint(e,t,r,i,a,o,s,l,u,h,c){var f=this.vector.create(),d=this.vector.create(),v=this.vector.create(),p,g=.005,m=1/0;f[0]=u,f[1]=h;for(let y=0;y<1;y+=.05){d[0]=this.cubicAt(e,r,a,s,y),d[1]=this.cubicAt(t,i,o,l,y);let _=this.vector.distSquare(f,d);_=0&&S=0&&h<=1&&(a[u++]=h)}}else{var c=s*s-4*o*l;if(this.isAroundZero(c)){let f=-s/(2*o);f>=0&&f<=1&&(a[u++]=f)}else if(c>0){let f=Math.sqrt(c),d=(-s+f)/(2*o),v=(-s-f)/(2*o);d>=0&&d<=1&&(a[u++]=d),v>=0&&v<=1&&(a[u++]=v)}}return u}quadraticExtremum(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}quadraticProjectPoint(e,t,r,i,a,o,s,l,u){var h=this.vector.create(),c=this.vector.create(),f=this.vector.create(),d,v=.005,p=1/0;h[0]=s,h[1]=l;for(let g=0;g<1;g+=.05){c[0]=this.quadraticAt(e,r,a,g),c[1]=this.quadraticAt(t,i,o,g);let m=this.vector.distSquare(h,c);m=0&&_"u"?this.isInsideQuadraticStroke(t.xStart,t.yStart,t.cpX1,t.cpY1,t.xEnd,t.yEnd,t.lineWidth,r,i):this.isInsideCubicStroke(t.xStart,t.yStart,t.cpX1,t.cpY1,t.cpX2,t.cpY2,t.xEnd,t.yEnd,t.lineWidth,r,i);case"line":return this.isInsideLine(t.xStart,t.yStart,t.xEnd,t.yEnd,t.lineWidth,r,i);case"broken-line":return this.isInsideBrokenLine(t.pointList,t.lineWidth,r,i);case"smicbroken-line":{let p=r,g=i;return e.refOriginalPosition&&(p=r-e.refOriginalPosition[0],g=i-e.refOriginalPosition[1]),this.isInsideBrokenLine(t.pointList,t.lineWidth,p,g)}case"ring":return this.isInsideRing(t.x,t.y,t.r0,t.r,r,i);case"smicring":{let p=t.x,g=t.y;return e.refOriginalPosition&&(p=t.x+e.refOriginalPosition[0],g=t.y+e.refOriginalPosition[1]),this.isInsideRing(p,g,t.r0,t.r,r,i)}case"circle":return this.isInsideCircle(t.x,t.y,t.r,r,i);case"smicpoint":{let p=r,g=i;return e.refOriginalPosition&&(p=r-e.refOriginalPosition[0],g=i-e.refOriginalPosition[1]),this.isInsideCircle(t.x,t.y,t.r,p,g)}case"sector":{let p=t.startAngle*Math.PI/180,g=t.endAngle*Math.PI/180;return t.clockWise||(p=-p,g=-g),this.isInsideSector(t.x,t.y,t.r0,t.r,p,g,!t.clockWise,r,i)}case"smicsector":{let p=t.startAngle*Math.PI/180,g=t.endAngle*Math.PI/180;t.clockWise||(p=-p,g=-g);let m=t.x,y=t.y;return e.refOriginalPosition&&(m=t.x+e.refOriginalPosition[0],y=t.y+e.refOriginalPosition[1]),this.isInsideSector(m,y,t.r0,t.r,p,g,!t.clockWise,r,i)}case"path":return this.isInsidePath(t.pathArray,Math.max(t.lineWidth,5),t.brushType,r,i);case"polygon":case"star":case"smicstar":case"isogon":case"smicisogon":return this.isInsidePolygon(t.pointList,r,i);case"smicpolygon":{let p=r,g=i;if(e.refOriginalPosition&&(p=r-e.refOriginalPosition[0],g=i-e.refOriginalPosition[1]),e.holePolygonPointLists&&e.holePolygonPointLists.length>0){for(var o=this.isInsidePolygon(t.pointList,p,g),s=e.holePolygonPointLists,l=!1,u=0,h=s.length;ut+l&&s>i+l||se+l&&o>r+l||ot+f&&c>i+f&&c>o+f&&c>l+f||ce+f&&h>r+f&&h>a+f&&h>s+f||ht+h&&u>i+h&&u>o+h||ue+h&&l>r+h&&l>a+h||lr||f+c=h)return!0;if(o){var d=i;i=this.normalizeRadian(a),a=this.normalizeRadian(d)}else i=this.normalizeRadian(i),a=this.normalizeRadian(a);i>a&&(a+=h);var v=Math.atan2(u,l);return v<0&&(v+=h),v>=i&&v<=a||v+h>=i&&v+h<=a}isInsideBrokenLine(e,t,r,i){for(var a=Math.max(t,10),o=0,s=e.length-1;or*r}isInsideRect(e,t,r,i,a,o){return a>=e&&a<=e+r&&o>=t&&o<=t+i}isInsideCircle(e,t,r,i,a){return(i-e)*(i-e)+(a-t)*(a-t)t&&o>i||oa?s:0}swapExtrema(){var e=this.extrema[0];this.extrema[0]=this.extrema[1],this.extrema[1]=e}windingCubic(e,t,r,i,a,o,s,l,u,h){var c=this.curve,f=this.roots,d=this.extrema;if(h>t&&h>i&&h>o&&h>l||h1&&this.swapExtrema(),m=c.cubicAt(t,i,o,l,d[0]),g>1&&(y=c.cubicAt(t,i,o,l,d[1]))),g==2?xt&&l>i&&l>o||l=0&&f<=1){var d=0,v=u.quadraticAt(t,i,o,f);for(let p=0;ps||(h[p]s?0:or||l<-r)return 0;let c=Math.sqrt(r*r-l*l);if(u[0]=-c,u[1]=c,Math.abs(i-a)>=h){i=0,a=h;var f=o?1:-1;return s>=u[0]+e&&s<=u[1]+e?f:0}if(o){let p=i;i=this.normalizeRadian(a),a=this.normalizeRadian(p)}else i=this.normalizeRadian(i),a=this.normalizeRadian(a);i>a&&(a+=h);var d=0;for(let p=0;p<2;p++){var v=u[p];if(v+e>s){let g=Math.atan2(l,v),m=o?1:-1;g<0&&(g=h+g),(g>=i&&g<=a||g+h>=i&&g+h<=a)&&(g>Math.PI/2&&g0&&(v&&(o+=this.windingLine(s,l,u,h,i,a)),o!==0))return!0;u=m[m.length-2],h=m[m.length-1],c=!1,f&&g.command!=="A"&&(f=!1,s=u,l=h)}switch(g.command){case"M":s=m[0],l=m[1];break;case"L":if(d&&this.isInsideLine(s,l,m[0],m[1],t,i,a))return!0;v&&(o+=this.windingLine(s,l,m[0],m[1],i,a)),s=m[0],l=m[1];break;case"C":if(d&&this.isInsideCubicStroke(s,l,m[0],m[1],m[2],m[3],m[4],m[5],t,i,a))return!0;v&&(o+=this.windingCubic(s,l,m[0],m[1],m[2],m[3],m[4],m[5],i,a)),s=m[4],l=m[5];break;case"Q":if(d&&this.isInsideQuadraticStroke(s,l,m[0],m[1],m[2],m[3],t,i,a))return!0;v&&(o+=this.windingQuadratic(s,l,m[0],m[1],m[2],m[3],i,a)),s=m[2],l=m[3];break;case"A":var y=m[0],_=m[1],x=m[2],S=m[3],w=m[4],b=m[5],E=Math.cos(w)*x+y,T=Math.sin(w)*S+_;f?(f=!1,u=E,h=T):o+=this.windingLine(s,l,E,T);var C=(i-y)*S/x+y;if(d&&this.isInsideArcStroke(y,_,S,w,w+b,1-m[7],t,C,a))return!0;v&&(o+=this.windingArc(y,_,S,w,w+b,1-m[7],C,a)),s=Math.cos(w+b)*x+y,l=Math.sin(w+b)*S+_;break;case"z":if(d&&this.isInsideLine(s,l,u,h,t,i,a))return!0;c=!0;break}}return v&&(o+=this.windingLine(s,l,u,h,i,a)),o!==0}getTextWidth(e,t){var r=e+":"+t;if(this._textWidthCache[r])return this._textWidthCache[r];this._ctx=this._ctx||this.util.getContext(),this._ctx.save(),t&&(this._ctx.font=t),e=(e+"").split(` +`);for(var i=0,a=0,o=e.length;athis.TEXT_CACHE_MAX&&(this._textWidthCacheCounter=0,this._textWidthCache={}),i}getTextHeight(e,t){var r=e+":"+t;if(this._textHeightCache[r])return this._textHeightCache[r];this._ctx=this._ctx||this.util.getContext(),this._ctx.save(),t&&(this._ctx.font=t),e=(e+"").split(` +`);var i=(this._ctx.measureText("ZH").width+2)*e.length;return this._ctx.restore(),this._textHeightCache[r]=i,++this._textHeightCacheCounter>this.TEXT_CACHE_MAX&&(this._textHeightCacheCounter=0,this._textHeightCache={}),i}}class Cst{constructor(){arguments.length===3&&this.computeBoundingBox(arguments),this.CLASS_NAME="SuperMap.LevelRenderer.Tool.ComputeBoundingBox"}computeBoundingBox(e,t,r){if(e.length!==0){for(var i=e[0][0],a=e[0][0],o=e[0][1],s=e[0][1],l=1;la&&(a=u[0]),u[1]s&&(s=u[1])}t[0]=i,t[1]=o,r[0]=a,r[1]=s}}cubeBezier(e,t,r,i,a,o){var s=new j8,l=[];s.cubicExtrema(e[0],t[0],r[0],i[0],l);for(let v=0;va&&!o?a+=Math.PI*2:ii&&(f[0]=Math.cos(v)*r+e,f[1]=Math.sin(v)*r+t,u.min(s,f,s),u.max(l,f,l))}}class Ast{constructor(){this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Env";var e=this;function t(r){var i=e.os={},a=e.browser={},o=r.match(/Web[kK]it[\/]{0,1}([\d.]+)/),s=r.match(/(Android);?[\s\/]+([\d.]+)?/),l=r.match(/(iPad).*OS\s([\d_]+)/),u=r.match(/(iPod)(.*OS\s([\d_]+))?/),h=!l&&r.match(/(iPhone\sOS)\s([\d_]+)/),c=r.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),f=c&&r.match(/TouchPad/),d=r.match(/Kindle\/([\d.]+)/),v=r.match(/Silk\/([\d._]+)/),p=r.match(/(BlackBerry).*Version\/([\d.]+)/),g=r.match(/(BB10).*Version\/([\d.]+)/),m=r.match(/(RIM\sTablet\sOS)\s([\d.]+)/),y=r.match(/PlayBook/),_=r.match(/Chrome\/([\d.]+)/)||r.match(/CriOS\/([\d.]+)/),x=r.match(/Firefox\/([\d.]+)/),S=r.match(/MSIE ([\d.]+)/),w=o&&r.match(/Mobile\//)&&!_,b=r.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!_;return(a.webkit=!!o)&&(a.version=o[1]),s&&(i.android=!0,i.version=s[2]),h&&!u&&(i.ios=i.iphone=!0,i.version=h[2].replace(/_/g,".")),l&&(i.ios=i.ipad=!0,i.version=l[2].replace(/_/g,".")),u&&(i.ios=i.ipod=!0,i.version=u[3]?u[3].replace(/_/g,"."):null),c&&(i.webos=!0,i.version=c[2]),f&&(i.touchpad=!0),p&&(i.blackberry=!0,i.version=p[2]),g&&(i.bb10=!0,i.version=g[2]),m&&(i.rimtabletos=!0,i.version=m[2]),y&&(a.playbook=!0),d&&(i.kindle=!0,i.version=d[1]),v&&(a.silk=!0,a.version=v[1]),!v&&i.android&&r.match(/Kindle Fire/)&&(a.silk=!0),_&&(a.chrome=!0,a.version=_[1]),x&&(a.firefox=!0,a.version=x[1]),S&&(a.ie=!0,a.version=S[1]),w&&(r.match(/Safari/)||!!i.ios)&&(a.safari=!0),b&&(a.webview=!0),S&&(a.ie=!0,a.version=S[1]),i.tablet=!!(l||y||s&&!r.match(/Mobile/)||x&&r.match(/Tablet/)||S&&!r.match(/Phone/)&&r.match(/Touch/)),i.phone=!!(!i.tablet&&!i.ipod&&(s||h||c||p||g||_&&r.match(/Android/)||_&&r.match(/CriOS\/([\d.]+)/)||x&&r.match(/Mobile/)||S&&r.match(/Touch/))),{browser:a,os:i,canvasSupported:!!document.createElement("canvas").getContext}}return t(navigator.userAgent)}destory(){return!0}}class Mst{constructor(){this.stop=typeof window.addEventListener=="function"?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0},this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Event"}getX(e){return typeof e.zrenderX<"u"&&e.zrenderX||typeof e.offsetX<"u"&&e.offsetX||typeof e.layerX<"u"&&e.layerX||typeof e.clientX<"u"&&e.clientX}getY(e){return typeof e.zrenderY<"u"&&e.zrenderY||typeof e.offsetY<"u"&&e.offsetY||typeof e.layerY<"u"&&e.layerY||typeof e.clientY<"u"&&e.clientY}getDelta(e){return typeof e.zrenderDelta<"u"&&e.zrenderDelta||typeof e.wheelDelta<"u"&&e.wheelDelta||typeof e.detail<"u"&&-e.detail}}class Ist{constructor(){this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Http"}get(e,t,r){if(typeof e=="object"){var i=e;e=i.url,t=i.onsuccess,r=i.onerror}var a=window.XMLHttpRequest?new XMLHttpRequest:new window.ActiveXObject("Microsoft.XMLHTTP");a.open("GET",e,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status>=200&&a.status<300||a.status===304?t&&t(a.responseText):r&&r(),a.onreadystatechange=new Function,a=null)},a.send(null)}}class ds{}ds.EVENT={RESIZE:"resize",CLICK:"click",DBLCLICK:"dblclick",MOUSEWHEEL:"mousewheel",MOUSEMOVE:"mousemove",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",GLOBALOUT:"globalout",DRAGSTART:"dragstart",DRAGEND:"dragend",DRAGENTER:"dragenter",DRAGOVER:"dragover",DRAGLEAVE:"dragleave",DROP:"drop",touchClickDelay:300};ds.catchBrushException=!1;ds.debugMode=0;class Lst{constructor(){return this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Log",function(){if(+ds.debugMode!=0){if(+ds.debugMode==1)for(let e in arguments)throw new Error(arguments[e]);else if(+ds.debugMode>1)for(let e in arguments)console.log(arguments[e])}}}destory(){return!0}}class Pst{constructor(){this._radians=window.Math.PI/180,this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Math"}sin(e,t){return window.Math.sin(t?e*this._radians:e)}cos(e,t){return window.Math.cos(t?e*this._radians:e)}degreeToRadian(e){return e*this._radians}radianToDegree(e){return e/this._radians}}class Ost{constructor(){this.ArrayCtor=typeof Float32Array>"u"?Array:Float32Array,this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Matrix"}create(){var e=this.ArrayCtor,t=new e(6);return this.identity(t),t}identity(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}copy(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}mul(e,t,r){return e[0]=t[0]*r[0]+t[2]*r[1],e[1]=t[1]*r[0]+t[3]*r[1],e[2]=t[0]*r[2]+t[2]*r[3],e[3]=t[1]*r[2]+t[3]*r[3],e[4]=t[0]*r[4]+t[2]*r[5]+t[4],e[5]=t[1]*r[4]+t[3]*r[5]+t[5],e}translate(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}rotate(e,t,r){var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],h=Math.sin(r),c=Math.cos(r);return e[0]=i*c+s*h,e[1]=-i*h+s*c,e[2]=a*c+l*h,e[3]=-a*h+c*l,e[4]=c*o+h*u,e[5]=c*u-h*o,e}scale(e,t,r){var i=r[0],a=r[1];return e[0]=t[0]*i,e[1]=t[1]*a,e[2]=t[2]*i,e[3]=t[3]*a,e[4]=t[4]*i,e[5]=t[5]*a,e}invert(e,t){var r=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=r*s-o*i;return u?(u=1/u,e[0]=s*u,e[1]=-o*u,e[2]=-i*u,e[3]=r*u,e[4]=(i*l-s*a)*u,e[5]=(o*a-r*l)*u,e):null}mulVector(e,t,r){var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5];return e[0]=r[0]*i+r[1]*a+o,e[1]=r[0]*s+r[1]*l+u,e}}class cr{static SUtil_smoothBezier(e,t,r,i,a){(!a||a.length!==2)&&(a=[0,0]);var o=a,s=[],l=[],u=[],h=[],c=!!i,f,d;if(c){f=[1/0,1/0],d=[-1/0,-1/0];let p=e.length;for(let g=0;go-2?o-1:d+1][0]+a[0],e[d>o-2?o-1:d+1][1]+a[1]],y=[e[d>o-3?o-1:d+2][0]+a[0],e[d>o-3?o-1:d+2][1]+a[1]]);let _=v*v,x=v*_;s.push([h(p[0],g[0],m[0],y[0],v,_,x),h(p[1],g[1],m[1],y[1],v,_,x)])}return s;function h(c,f,d,v,p,g,m){var y=(d-c)*.5,_=(v-f)*.5;return(2*(f-d)+y+_)*m+(-3*(f-d)-2*y-_)*g+y*p+f}}static SUtil_dashedLineTo(e,t,r,i,a,o,s){var l=[5,5];if(o=typeof o!="number"?5:o,e.setLineDash){l[0]=o,l[1]=o,s&&s instanceof Array?e.setLineDash(s):e.setLineDash(l),e.moveTo(t,r),e.lineTo(i,a);return}var u=i-t,h=a-r,c=Math.floor(Math.sqrt(u*u+h*h)/o);u=u/c,h=h/c;for(var f=!0,d=0;d-o&&ar||t<-r}}updateTransform(){if(this.updateNeedTransform(),this.parent?this.needTransform=this.needLocalTransform||this.parent.needTransform:this.needTransform=this.needLocalTransform,!this.needTransform)return;var e=[0,0],t=this.transform||cr.Util_matrix.create();if(cr.Util_matrix.identity(t),this.needLocalTransform){if(r(this.scale[0])||r(this.scale[1])){e[0]=-this.scale[2]||0,e[1]=-this.scale[3]||0;let i=r(e[0])||r(e[1]);i&&cr.Util_matrix.translate(t,t,e),cr.Util_matrix.scale(t,t,this.scale),i&&(e[0]=-e[0],e[1]=-e[1],cr.Util_matrix.translate(t,t,e))}if(this.rotation instanceof Array){if(this.rotation[0]!==0){e[0]=-this.rotation[1]||0,e[1]=-this.rotation[2]||0;let i=r(e[0])||r(e[1]);i&&cr.Util_matrix.translate(t,t,e),cr.Util_matrix.rotate(t,t,this.rotation[0]),i&&(e[0]=-e[0],e[1]=-e[1],cr.Util_matrix.translate(t,t,e))}}else+this.rotation!=0&&cr.Util_matrix.rotate(t,t,this.rotation);(r(this.position[0])||r(this.position[1]))&&cr.Util_matrix.translate(t,t,this.position)}this.transform=t,this.parent&&this.parent.needTransform&&(this.needLocalTransform?cr.Util_matrix.mul(this.transform,this.parent.transform,this.transform):cr.Util_matrix.copy(this.transform,this.parent.transform));function r(i){var a=5e-5;return i>a||i<-a}}setTransform(e){if(this.needTransform){var t=this.transform;e.transform(t[0],t[1],t[2],t[3],t[4],t[5])}}decomposeTransform(){if(!this.transform)return;var e=this.transform,t=e[0]*e[0]+e[1]*e[1],r=this.position,i=this.scale,a=this.rotation;s(t-1)&&(t=Math.sqrt(t));var o=e[2]*e[2]+e[3]*e[3];s(o-1)&&(o=Math.sqrt(o)),r[0]=e[4],r[1]=e[5],i[0]=t,i[1]=o,i[2]=i[3]=0,a[0]=Math.atan2(-e[1]/o,e[0]/t),a[1]=a[2]=0;function s(l){var u=5e-5;return l>u||l<-u}}}class m0 extends Cne(JR,X8){constructor(e){super(e),e=e||{},this.id=null,this.style={},this.highlightStyle=null,this.parent=null,this.__dirty=!0,this.__clipShapes=[],this.invisible=!1,this.ignore=!1,this.zlevel=0,this.draggable=!1,this.clickable=!1,this.hoverable=!0,this.z=0,this.refOriginalPosition=[0,0],this.refDataID=null,this.isHoverByRefDataID=!1,this.refDataHoverGroup=null,this.dataInfo=null,W.extend(this,e),this.id=this.id||W.createUniqueID("smShape_"),this.CLASS_NAME="SuperMap.LevelRenderer.Shape",this.getTansform=function(){var t=[];return function(r,i){var a=[r,i];return this.needTransform&&this.transform&&(cr.Util_matrix.invert(t,this.transform),cr.Util_matrix.mulVector(a,t,[r,i,1]),r==a[0]&&i==a[1]&&this.updateNeedTransform()),a}}()}destroy(){this.id=null,this.style=null,this.highlightStyle=null,this.parent=null,this.__dirty=null,this.__clipShapes=null,this.invisible=null,this.ignore=null,this.zlevel=null,this.draggable=null,this.clickable=null,this.hoverable=null,this.z=null,this.refOriginalPosition=null,this.refDataID=null,this.refDataHoverGroup=null,this.isHoverByRefDataID=null,this.dataInfo=null,super.destroy()}brush(e,t){var r=this.beforeBrush(e,t);switch(e.beginPath(),this.buildPath(e,r),r.brushType){case"both":this.setCtxGlobalAlpha(e,"fill",r),e.fill(),r.lineWidth>0&&(this.setCtxGlobalAlpha(e,"stroke",r),e.stroke()),this.setCtxGlobalAlpha(e,"reset",r);break;case"stroke":this.setCtxGlobalAlpha(e,"stroke",r),r.lineWidth>0&&e.stroke(),this.setCtxGlobalAlpha(e,"reset",r);break;default:this.setCtxGlobalAlpha(e,"fill",r),e.fill(),this.setCtxGlobalAlpha(e,"reset",r);break}this.drawText(e,r,this.style),this.afterBrush(e)}beforeBrush(e,t){var r=this.style;return this.brushTypeOnly&&(r.brushType=this.brushTypeOnly),t&&(r=this.getHighlightStyle(r,this.highlightStyle||{},this.brushTypeOnly)),this.brushTypeOnly=="stroke"&&(r.strokeColor=r.strokeColor||r.color),e.save(),this.doClip(e),this.setContext(e,r),this.setTransform(e),r}afterBrush(e){e.restore()}setContext(e,t){for(var r=[["color","fillStyle"],["strokeColor","strokeStyle"],["opacity","globalAlpha"],["lineCap","lineCap"],["lineJoin","lineJoin"],["miterLimit","miterLimit"],["lineWidth","lineWidth"],["shadowBlur","shadowBlur"],["shadowColor","shadowColor"],["shadowOffsetX","shadowOffsetX"],["shadowOffsetY","shadowOffsetY"]],i=0,a=r.length;i=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height?cr.Util_area.isInside(this,this.style,e,t):!1}drawText(e,t,r){if(!(typeof t.text>"u"||t.text===!1)){var i=t.textColor||t.color||t.strokeColor;e.fillStyle=i;var a=10,o,s,l,u,h=t.textPosition||this.textPosition||"top",c=[];switch(!this.refOriginalPosition||this.refOriginalPosition.length!==2?c=[0,0]:c=this.refOriginalPosition,h){case"inside":case"top":case"bottom":case"left":case"right":if(this.getRect){var f=(r||t).__rect||this.getRect(r||t);switch(h){case"inside":l=f.x+f.width/2,u=f.y+f.height/2,o="center",s="middle",t.brushType!="stroke"&&i==t.color&&(e.fillStyle="#fff");break;case"left":l=f.x-a,u=f.y+f.height/2,o="end",s="middle";break;case"right":l=f.x+f.width+a,u=f.y+f.height/2,o="start",s="middle";break;case"top":l=f.x+f.width/2,u=f.y-a,o="center",s="bottom";break;case"bottom":l=f.x+f.width/2,u=f.y+f.height+a,o="center",s="top";break}}break;case"start":case"end":var d=0,v=0,p=0,g=0;if(typeof t.pointList<"u"){var m=t.pointList;if(m.length<2)return;var y=m.length;switch(h){case"start":d=m[0][0]+c[0],v=m[1][0]+c[0],p=m[0][1]+c[1],g=m[1][1]+c[1];break;case"end":d=m[y-2][0]+c[0],v=m[y-1][0]+c[0],p=m[y-2][1]+c[1],g=m[y-1][1]+c[1];break}}else d=t.xStart+c[0]||0,v=t.xEnd+c[0]||0,p=t.yStart+c[1]||0,g=t.yEnd+c[1]||0;switch(h){case"start":o=d"u"?typeof r.opacity>"u"?1:r.opacity:r.fillOpacity:t==="stroke"?e.globalAlpha=typeof r.strokeOpacity>"u"?typeof r.opacity>"u"?1:r.opacity:r.strokeOpacity:e.globalAlpha=typeof r.opacity>"u"?1:r.opacity}static _fillText(e,t,r,i,a,o,s){a&&(e.font=a),e.textAlign=o,e.textBaseline=s;var l=m0._getTextRect(t,r,i,a,o,s);t=(t+"").split(` +`);var u=cr.Util_area.getTextHeight("ZH",a);switch(s){case"top":i=l.y;break;case"bottom":i=l.y+u;break;default:i=l.y+u/2}for(var h=0,c=t.length;h"u"||i.text===!1)){e.save(),this.doClip(e),this.setContext(e,i),this.setTransform(e),i.textFont&&(e.font=i.textFont),e.textAlign=i.textAlign||"start",e.textBaseline=i.textBaseline||"middle";var a=(i.text+"").split(` +`),o=cr.Util_area.getTextHeight("ZH",i.textFont),s=this.getRectNoRotation(i),l=i.x+r[0],u;i.textBaseline=="top"?u=s.y:i.textBaseline=="bottom"?u=s.y+o:u=s.y+o/2;for(var h=i.x+r[0],c=i.y+r[1],f=0,d=a.length;fi&&(i=u[0]),u[1]a&&(a=u[1]))}return e.__rect={x:t,y:r,width:i-t,height:a-r},e.__rect}getRectNoRotation(e){(!this.refOriginalPosition||this.refOriginalPosition.length!==2)&&(this.refOriginalPosition=[0,0]);var t=this.refOriginalPosition,r=cr.Util_area.getTextHeight("ZH",e.textFont),i=cr.Util_area.getTextWidth(e.text,e.textFont),a=cr.Util_area.getTextHeight(e.text,e.textFont),o=e.x+t[0];e.textAlign=="end"||e.textAlign=="right"?o-=i:e.textAlign=="center"&&(o-=i/2);var s;e.textBaseline=="top"?s=e.y+t[1]:e.textBaseline=="bottom"?s=e.y+t[1]-a:s=e.y+t[1]-a/2;var l=!1,u;if(e.maxWidth){var h=parseInt(e.maxWidth);h-1&&(l===!0?i+=r/3*(i/u):i+=r/3)}var d={x:o,y:s,width:i,height:a};return d}getTextBackground(e,t){(!this.refOriginalPosition||this.refOriginalPosition.length!==2)&&(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition;if(!t&&e.__textBackground)return e.__textBackground;var i=this.getRectNoRotation(e),a=e.x+r[0],o=e.y+r[1],s=[];if(e.textRotation&&e.textRotation!==0){let l=e.textRotation,u=this.getRotatedLocation(i.x,i.y,a,o,l),h=this.getRotatedLocation(i.x+i.width,i.y,a,o,l),c=this.getRotatedLocation(i.x+i.width,i.y+i.height,a,o,l),f=this.getRotatedLocation(i.x,i.y+i.height,a,o,l);s.push(u),s.push(h),s.push(c),s.push(f)}else{let l=[i.x,i.y],u=[i.x+i.width,i.y],h=[i.x+i.width,i.y+i.height],c=[i.x,i.y+i.height];s.push(l),s.push(u),s.push(h),s.push(c)}return e.__textBackground=s,e.__textBackground}getRotatedLocation(e,t,r,i,a){var o=new Array,s,l;return t=-t,i=-i,a=-a,s=(e-r)*Math.cos(a/180*Math.PI)-(t-i)*Math.sin(a/180*Math.PI)+r,l=(e-r)*Math.sin(a/180*Math.PI)+(t-i)*Math.cos(a/180*Math.PI)+i,o[0]=s,o[1]=-l,o}}class Rst extends m0{constructor(e){super(e),this.type="smiccircle",(!this.refOriginalPosition||this.refOriginalPosition.length!==2)&&(this.refOriginalPosition=[0,0]),this.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicCircle"}destroy(){this.type=null,super.destroy()}buildPath(e,t){(!this.refOriginalPosition||this.refOriginalPosition.length!==2)&&(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition,i=t.x+r[0],a=t.y+r[1];return e.moveTo(i+t.r,a),e.arc(i,a,t.r,0,Math.PI*2,!0),!0}getRect(e){if(e.__rect)return e.__rect;(!this.refOriginalPosition||this.refOriginalPosition.length!==2)&&(this.refOriginalPosition=[0,0]);var t=this.refOriginalPosition,r=e.x+t[0],i=e.y+t[1],a=e.r,o;return e.brushType=="stroke"||e.brushType=="fill"?o=e.lineWidth||1:o=0,e.__rect={x:Math.round(r-a-o/2),y:Math.round(i-a-o/2),width:a*2+o,height:a*2+o},e.__rect}}class Kne extends m0{constructor(e){super(e),this.type="smicpolygon",this.holePolygonPointLists=null,(!this.refOriginalPosition||this.refOriginalPosition.length!==2)&&(this.refOriginalPosition=[0,0]),this.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicPolygon"}destroy(){this.type=null,this.holePolygonPointLists=null,super.destroy()}brush(e,t){(!this.refOriginalPosition||this.refOriginalPosition.length!==2)&&(this.refOriginalPosition=[0,0]);var r=this.style;t&&(r=this.getHighlightStyle(r,this.highlightStyle||{})),e.save(),this.setContext(e,r),this.setTransform(e);var i=!1;(r.brushType=="fill"||r.brushType=="both"||typeof r.brushType>"u")&&(e.beginPath(),r.lineType=="dashed"||r.lineType=="dotted"||r.lineType=="dot"||r.lineType=="dash"||r.lineType=="dashdot"||r.lineType=="longdash"||r.lineType=="longdashdot"?this.buildPath(e,{lineType:"solid",lineWidth:r.lineWidth,pointList:r.pointList}):(this.buildPath(e,r),i=!0),e.closePath(),this.setCtxGlobalAlpha(e,"fill",r),e.fill(),this.setCtxGlobalAlpha(e,"reset",r)),r.lineWidth>0&&(r.brushType=="stroke"||r.brushType=="both")&&(i||(e.beginPath(),this.buildPath(e,r)),this.setCtxGlobalAlpha(e,"stroke",r),e.stroke(),this.setCtxGlobalAlpha(e,"reset",r)),this.drawText(e,r,this.style);var a=W.cloneObject(r);if(a.pointList&&this.holePolygonPointLists&&this.holePolygonPointLists.length>0)for(var o=this.holePolygonPointLists,s=o.length,l=0;l"u")&&(e.beginPath(),a.lineType=="dashed"||a.lineType=="dotted"||a.lineType=="dot"||a.lineType=="dash"||a.lineType=="dashdot"||a.lineType=="longdash"||a.lineType=="longdashdot"?this.buildPath(e,{lineType:"solid",lineWidth:a.lineWidth,pointList:a.pointList}):(this.buildPath(e,a),i=!0),e.closePath(),this.setCtxGlobalAlpha(e,"fill",a),e.fill(),this.setCtxGlobalAlpha(e,"reset",a)),a.lineWidth>0&&(a.brushType=="stroke"||a.brushType=="both")?(i||(e.beginPath(),this.buildPath(e,a)),e.globalCompositeOperation="source-over",this.setCtxGlobalAlpha(e,"stroke",a),e.stroke(),this.setCtxGlobalAlpha(e,"reset",a)):e.globalCompositeOperation="source-over"}e.restore()}buildPath(e,t){t.showShadow&&(e.shadowBlur=t.shadowBlur,e.shadowColor=t.shadowColor,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY),(!this.refOriginalPosition||this.refOriginalPosition.length!==2)&&(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition,i=t.pointList;if(!(i.length<2)){if(t.smooth&&t.smooth!=="spline"){var a=cr.SUtil_smoothBezier(i,t.smooth,!0,t.smoothConstraint,r);e.moveTo(i[0][0]+r[0],i[0][1]+r[1]);for(var o,s,l,u=i.length,h=0;ha&&(a=l[u][0]+r[0]),l[u][1]+r[1]s&&(s=l[u][1]+r[1]);var c;return e.brushType=="stroke"||e.brushType=="fill"?c=e.lineWidth||1:c=0,e.__rect={x:Math.round(i-c/2),y:Math.round(o-c/2),width:a-i+c,height:s-o+c},e.__rect}}class BNe extends m0{constructor(e){super(e),this.brushTypeOnly="stroke",this.textPosition="end",this.type="smicbroken-line",(!this.refOriginalPosition||this.refOriginalPosition.length!==2)&&(this.refOriginalPosition=[0,0]),this.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicBrokenLine"}destroy(){this.brushTypeOnly=null,this.textPosition=null,this.type=null,super.destroy()}buildPath(e,t){(!this.refOriginalPosition||this.refOriginalPosition.length!==2)&&(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition,i=t.pointList;if(!(i.length<2)){var a=Math.min(t.pointList.length,Math.round(t.pointListLength||t.pointList.length));if(t.smooth&&t.smooth!=="spline"){var o=cr.SUtil_smoothBezier(i,t.smooth,!1,t.smoothConstraint,r);e.moveTo(i[0][0]+r[0],i[0][1]+r[1]);var s,l,u;for(let c=0;co&&(d=u+h,u*=o/d,h*=o/d),c+f>o&&(d=c+f,c*=o/d,f*=o/d),h+c>s&&(d=h+c,h*=s/d,c*=s/d),u+f>s&&(d=u+f,u*=s/d,f*=s/d),e.moveTo(i+u,a),e.lineTo(i+o-h,a),h!==0&&e.quadraticCurveTo(i+o,a,i+o,a+h),e.lineTo(i+o,a+s-c),c!==0&&e.quadraticCurveTo(i+o,a+s,i+o-c,a+s),e.lineTo(i+f,a+s),f!==0&&e.quadraticCurveTo(i,a+s,i,a+s-f),e.lineTo(i,a+u),u!==0&&e.quadraticCurveTo(i,a,i+u,a)}buildPath(e,t){(!this.refOriginalPosition||this.refOriginalPosition.length!==2)&&(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition;t.radius?this._buildRadiusPath(e,t):(e.moveTo(t.x+r[0],t.y+r[1]),e.lineTo(t.x+r[0]+t.width,t.y+r[1]),e.lineTo(t.x+r[0]+t.width,t.y+r[1]+t.height),e.lineTo(t.x+r[0],t.y+r[1]+t.height),e.lineTo(t.x+r[0],t.y+r[1])),e.closePath()}getRect(e){(!this.refOriginalPosition||this.refOriginalPosition.length!==2)&&(this.refOriginalPosition=[0,0]);var t=this.refOriginalPosition;if(e.__rect)return e.__rect;var r;return e.brushType=="stroke"||e.brushType=="fill"?r=e.lineWidth||1:r=0,e.__rect={x:Math.round(e.x+t[0]-r/2),y:Math.round(e.y+t[1]-r/2),width:e.width+r,height:e.height+r},e.__rect}}class Dst extends m0{constructor(e){super(e),this.type="smicsector",(!this.refOriginalPosition||this.refOriginalPosition.length!==2)&&(this.refOriginalPosition=[0,0]),this.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicSector"}destroy(){this.type=null,super.destroy()}buildPath(e,t){(!this.refOriginalPosition||this.refOriginalPosition.length!==2)&&(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition,i=t.x+r[0],a=t.y+r[1],o=t.r0||0,s=t.r,l=t.startAngle,u=t.endAngle,h=t.clockWise||!1;l=cr.Util_math.degreeToRadian(l),u=cr.Util_math.degreeToRadian(u),h||(l=-l,u=-u);var c=cr.Util_math.cos(l),f=cr.Util_math.sin(l);e.moveTo(c*o+i,f*o+a),e.lineTo(c*s+i,f*s+a),e.arc(i,a,s,l,u,!h),e.lineTo(cr.Util_math.cos(u)*o+i,cr.Util_math.sin(u)*o+a),o!==0&&e.arc(i,a,o,u,l,h),e.closePath()}getRect(e){if(e.__rect)return e.__rect;(!this.refOriginalPosition||this.refOriginalPosition.length!==2)&&(this.refOriginalPosition=[0,0]);var t=this.refOriginalPosition,r=cr.Util_vector.create(),i=cr.Util_vector.create(),a=cr.Util_vector.create(),o=cr.Util_vector.create(),s=e.x+t[0],l=e.y+t[1],u=e.r0||0,h=e.r,c=cr.Util_math.degreeToRadian(e.startAngle),f=cr.Util_math.degreeToRadian(e.endAngle),d=e.clockWise;return d||(c=-c,f=-f),u>1?cr.Util_computeBoundingBox.arc(s,l,u,c,f,!d,r,a):(r[0]=a[0]=s,r[1]=a[1]=l),cr.Util_computeBoundingBox.arc(s,l,h,c,f,!d,i,o),cr.Util_vector.min(r,r,i),cr.Util_vector.max(a,a,o),e.__rect={x:r[0],y:r[1],width:a[0]-r[0],height:a[1]-r[1]},e.__rect}}class Vn{constructor(e){this.shapeParameters=e,this.CLASS_NAME="SuperMap.Feature.ShapeFactory"}destroy(){this.shapeParameters=null}createShape(e){if(e&&(this.shapeParameters=e),!this.shapeParameters)return null;var t=this.shapeParameters;if(t instanceof kz){let r=new Object;r.x=t.x,r.y=t.y,r.r=t.r,r=W.copyAttributesWithClip(r,t.style,["x","y"]);let i=new LK;return i.style=Vn.transformStyle(r),i.highlightStyle=Vn.transformStyle(t.highlightStyle),W.copyAttributesWithClip(i,t,["x","y","style","highlightStyle"]),i}else if(t instanceof UO){if(!t.pointList)return null;let r=new Object;r.pointList=t.pointList,r=W.copyAttributesWithClip(r,t.style,["pointList"]);let i=new BNe;return i.style=Vn.transformStyle(r),i.highlightStyle=Vn.transformStyle(t.highlightStyle),W.copyAttributesWithClip(i,t,["pointList","style","highlightStyle"]),i}else if(t instanceof I1){if(!t.pointList)return null;let r=new Object;r.pointList=t.pointList,r=W.copyAttributesWithClip(r,t.style,["pointList"]);let i=new Kne;return i.style=Vn.transformStyle(r),i.highlightStyle=Vn.transformStyle(t.highlightStyle),W.copyAttributesWithClip(i,t,["pointList","style","highlightStyle"]),i}else if(t instanceof IK){if(!t.x&&!t.y&!t.width&!t.height)return null;let r=new Object;r.x=t.x,r.y=t.y,r.width=t.width,r.height=t.height,r=W.copyAttributesWithClip(r,t.style,["x","y","width","height"]);let i=new GNe;return i.style=Vn.transformStyle(r),i.highlightStyle=Vn.transformStyle(t.highlightStyle),W.copyAttributesWithClip(i,t,["x","y","width","height","style","highlightStyle"]),i}else if(t instanceof Fz){let r=new Object;r.x=t.x,r.y=t.y,r.r=t.r,r.startAngle=t.startAngle,r.endAngle=t.endAngle,t.r0&&(r.r0=t.r0),t.clockWise&&(r.clockWise=t.clockWise),r=W.copyAttributesWithClip(r,t.style,["x","y","r","startAngle","endAngle","r0","endAngle"]);let i=new Dst;return i.style=Vn.transformStyle(r),i.highlightStyle=Vn.transformStyle(t.highlightStyle),W.copyAttributesWithClip(i,t,["x","y","r","startAngle","endAngle","r0","endAngle","style","highlightStyle"]),i}else if(t instanceof Ib){let r=new Object;r.x=t.x,r.y=t.y,r.text=t.text,r=W.copyAttributesWithClip(r,t.style,["x","y","text"]);let i=new FNe;return i.style=Vn.transformStyle(r),i.highlightStyle=Vn.transformStyle(t.highlightStyle),W.copyAttributesWithClip(i,t,["x","y","text","style","highlightStyle"]),i}else if(t instanceof kNe){let r=new Object;r.x=t.x,r.y=t.y,t.image&&(r.image=t.image),t.width&&(r.width=t.width),t.height&&(r.height=t.height),t.sx&&(r.sx=t.sx),t.sy&&(r.sy=t.sy),t.sWidth&&(r.sWidth=t.sWidth),t.sHeight&&(r.sHeight=t.sHeight),r=W.copyAttributesWithClip(r,t.style,["x","y","image","width","height","sx","sy","sWidth","sHeight"]);let i=new My;return i.style=Vn.transformStyle(r),i.highlightStyle=Vn.transformStyle(t.highlightStyle),W.copyAttributesWithClip(i,t,["x","y","image","width","height","style","highlightStyle"]),i}else if(t instanceof qne){let r=new Object;r.x=t.x,r.r=t.r,r.y=t.y,r=W.copyAttributesWithClip(r,t.style,["x","y","r"]);let i=new Rst;return i.style=Vn.transformStyle(r),i.highlightStyle=Vn.transformStyle(t.highlightStyle),W.copyAttributesWithClip(i,t,["x","y","r","style","highlightStyle","lineWidth","text","textPosition"]),i}return null}static transformStyle(e){var t={},r=["normal","normal","normal","12","arial,sans-serif"],i=[!0,!1];for(var a in e)switch(a){case"fill":i[0]=e[a];break;case"fillColor":t.color=e[a];break;case"stroke":i[1]=e[a];break;case"strokeWidth":t.lineWidth=e[a];break;case"strokeLinecap":t.lineCap=e[a];break;case"strokeLineJoin":t.lineJoin=e[a];break;case"strokeDashstyle":t.lineType=e[a];break;case"pointRadius":t.r=e[a];break;case"label":t.text=e[a];break;case"labelRect":t.labelRect=e[a];break;case"fontColor":t.textColor=e[a];break;case"fontStyle":r[0]=e[a];break;case"fontVariant":r[1]=e[a];break;case"fontWeight":r[2]=e[a];break;case"fontSize":var o="";e[a]&&e[a].toString().indexOf("px")<0&&(o="px"),r[3]=e[a]+o;break;case"fontFamily":r[4]=e[a];break;case"fontOpacity":t.opacity=e[a];break;case"labelPosition":t.textPosition=e[a];break;case"labelAlign":t.textAlign=e[a];break;case"labelBaseline":t.textBaseline=e[a];break;case"labelRotation":t.textRotation=e[a];break;default:t[a]=e[a];break}return t.textFont=r.join(" "),i[0]===!0&&i[1]===!1?t.brushType="fill":i[0]===!1&&i[1]===!0?t.brushType="stroke":i[0]===!0&&i[1]===!0?t.brushType="both":t.brushType="fill",t.lineWidth==null&&(t.lineWidth=1),t}static Background(e,t,r){var i=r||{},a=new IK(t[0],t[3],Math.abs(t[2]-t[0]),Math.abs(t[3]-t[1]));return a.style={fillColor:"#f3f3f3"},i.backgroundStyle&&W.copyAttributesWithClip(a.style,i.backgroundStyle),i.backgroundRadius&&(a.style.radius=i.backgroundRadius),a.clickable=!1,a.hoverable=!1,e.createShape(a)}static GraphAxis(e,t,r,i){var a=t,o=r||{},s=[],l=[],u=o.useXReferenceLine?o.useXReferenceLine:!1,h=o.axisYTick&&!isNaN(o.axisYTick)?o.axisYTick:0,c=[],f=[],d=[];if(h==0){if(d.push([a[0],a[3]-5]),d.push([a[0],a[1]]),o.axis3DParameter&&!isNaN(o.axis3DParameter)&&o.axis3DParameter>=15){let D=parseInt(o.axis3DParameter),G=[a[0]-D,a[1]+D];o.axisUseArrow?(f.push([G[0]+1.5,G[1]-7.5]),f.push([G[0]-1,G[1]+1]),f.push([G[0]+7.5,G[1]-1.5]),d.push([G[0],G[1]])):d.push([G[0],G[1]]),d.push([a[0],a[1]])}d.push([a[2]+5,a[1]])}else{var v=Math.abs(a[1]-a[3])/h,p=a[3];d.push([a[0],p-5]);for(var g=0;g=15){let D=parseInt(o.axis3DParameter),G=[a[0]-D,a[1]+D];o.axisUseArrow?(f.push([G[0]+1.5,G[1]-7.5]),f.push([G[0]-1,G[1]+1]),f.push([G[0]+7.5,G[1]-1.5]),d.push([G[0],G[1]])):d.push([G[0],G[1]]),d.push([a[0],a[1]])}d.push([a[2]+5,a[1]])}if(o.axisUseArrow){var y=[[a[2]+5,a[1]+4],[a[2]+13,a[1]],[a[2]+5,a[1]-4]],_=[[a[0]-4,a[3]-5],[a[0],a[3]-13],[a[0]+4,a[3]-5]],x=new I1(y);x.style={fillColor:"#008acd"},W.copyAttributesWithClip(x.style,o.axisStyle),l.push(e.createShape(x));var S=new I1(_);if(S.style={fillColor:"#008acd"},W.copyAttributesWithClip(S.style,o.axisStyle),l.push(e.createShape(S)),o.axis3DParameter&&!isNaN(o.axis3DParameter)&&o.axis3DParameter>=15){var w=new I1(f);w.style={fillColor:"#008acd"},W.copyAttributesWithClip(w.style,o.axisStyle),l.push(e.createShape(w))}}c=d;var b=new UO(c);b.style={strokeLinecap:"butt",strokeLineJoin:"round",strokeColor:"#008acd",strokeWidth:1},o.axisStyle&&W.copyAttributesWithClip(b.style,o.axisStyle),b.clickable=!1,b.hoverable=!1;var E=[e.createShape(b)],T=[];if(o.axisYLabels&&o.axisYLabels.length&&o.axisYLabels.length>0){var C=o.axisYLabels;let D=C.length;var A=[0,0];if(o.axisYLabelsOffset&&o.axisYLabelsOffset.length&&(A=o.axisYLabelsOffset),D==1){let G=new Ib(a[0]-5+A[0],a[3]+A[1],C[0]);G.style={labelAlign:"right"},o.axisYLabelsStyle&&W.copyAttributesWithClip(G.style,o.axisYLabelsStyle),G.clickable=!1,G.hoverable=!1,T.push(e.createShape(G))}else for(var M=a[3],I=Math.abs(a[1]-a[3])/(D-1),R=0;R0){let D=o.axisXLabels,G=D.length,V=[0,0];if(o.axisXLabelsOffset&&o.axisXLabelsOffset.length&&(V=o.axisXLabelsOffset),i&&i.xPositions&&i.xPositions.length&&i.xPositions.length==G){let z=i.xPositions;for(let j=0;j=0&&r[a]&&W.copyAttributesWithClip(s,r[a]),i&&i.length&&typeof o<"u"){for(var l=i,u=l.length,h=parseFloat(o),c=0;c=c[2]||c[1]<=c[3]?!1:(this.DVBOrigonPoint=[c[0],c[3]],this.DVBWidth=Math.abs(c[2]-c[0]),this.DVBHeight=Math.abs(c[1]-c[3]),this.DVBCenterPoint=[this.DVBOrigonPoint[0]+this.DVBWidth/2,this.DVBOrigonPoint[1]+this.DVBHeight/2],this.origonPointOffset=[this.DVBOrigonPoint[0]-l[0],this.DVBOrigonPoint[1]-l[1]],e)}resetLocation(e){e&&(this.lonlat=e);var t=this.getLocalXY(this.lonlat);t[0]+=this.XOffset,t[1]+=this.YOffset,this.location=t;var r=this.width,i=this.height,a=this.location;return this.chartBounds=new po(a[0]-r/2,a[1]+i/2,a[0]+r/2,a[1]-i/2),this.resetLinearGradient(),a}resetLinearGradient(){}shapesConvertToRelativeCoordinate(){for(var e=this.shapes,t=this.location,r=0,i=e.length;r=0?r.push(parseFloat(i[o].toString()).toFixed(t)):r.push(parseFloat(i[o].toString()))}catch{throw new Error("not a number")}return r.length===e.length?r:!1};class Nst extends mw{constructor(e,t,r,i,a){super(e,t,r,i,a),this.CLASS_NAME="SuperMap.Feature.Theme.Bar"}destroy(){super.destroy()}assembleShapes(){var e=[["#00FF00","#00CD00"],["#00CCFF","#5E87A2"],["#00FF66","#669985"],["#CCFF00","#94A25E"],["#FF9900","#A2945E"]],t={showShadow:!0,shadowBlur:8,shadowColor:"rgba(100,100,100,0.8)",shadowOffsetX:2,shadowOffsetY:2},r=this.setting;if(r.barLinearGradient||(r.barLinearGradient=e),r.dataViewBoxParameter||(typeof r.useAxis>"u"||r.useAxis?r.dataViewBoxParameter=[45,15,15,15]:r.dataViewBoxParameter=[5,5,5,5]),!!this.initBaseParameter()){var i=this.DVBCodomain;this.DVBUnitValue=(i[1]-i[0])/this.DVBHeight;var a=this.dataViewBox,o=this.dataValues;if(!(o.length<1)){for(let p=0,g=o.length;pi[1])return;var s=this.calculateXShapeInfo();if(!!s){var l=s.xPositions,u=s.width;(typeof r.useBackground>"u"||r.useBackground)&&this.shapes.push(Vn.Background(this.shapeFactory,this.chartBox,r)),(typeof r.useAxis>"u"||r.useAxis)&&(this.shapes=this.shapes.concat(Vn.GraphAxis(this.shapeFactory,a,r,s)));for(var h=0;h"u"||r.showShadow){if(r.barShadowStyle){var v=r.barShadowStyle;v.shadowBlur&&(t.shadowBlur=v.shadowBlur),v.shadowColor&&(t.shadowColor=v.shadowColor),v.shadowOffsetX&&(t.shadowOffsetX=v.shadowOffsetX),v.shadowOffsetY&&(t.shadowOffsetY=v.shadowOffsetY)}d.style={},W.copyAttributesWithClip(d.style,t)}d.refDataID=this.data.id,d.dataInfo={field:this.fields[h],value:o[h]},typeof r.barHoverAble<"u"&&(d.hoverable=r.barHoverAble),typeof r.barClickAble<"u"&&(d.clickable=r.barClickAble),this.shapes.push(this.shapeFactory.createShape(d))}this.shapesConvertToRelativeCoordinate()}}}}calculateXShapeInfo(){var e=this.dataViewBox,t=this.setting,r=this.dataValues.length;if(r<1)return null;var i,a=[],o=0,s=this.DVBWidth;if(t.xShapeBlank&&t.xShapeBlank.length&&t.xShapeBlank.length==3){i=t.xShapeBlank;var l=s-(i[0]+i[2]+(r-1)*i[1]);if(l<=r)return null;o=l/r}else o=s/(2*r+1),i=[o,o,o];for(var u=0,h=0;h=t.length&&(r=r%t.length);var u=t[r][0],h=t[r][1],c=new SE,f=c.getLinearGradient(s,0,l,0,[[0,u],[1,h]]);a.style.color=f}}}}class kst extends mw{constructor(e,t,r,i,a){super(e,t,r,i,a),this.CLASS_NAME="SuperMap.Feature.Theme.Bar3D"}destroy(){super.destroy()}assembleShapes(){var e=this.setting;if(e.dataViewBoxParameter||(typeof e.useAxis>"u"||e.useAxis?e.dataViewBoxParameter=[45,25,20,20]:e.dataViewBoxParameter=[5,5,5,5]),e.axisUseArrow=typeof e.axisUseArrow<"u"?e.axisUseArrow:!0,e.axisXLabelsOffset=typeof e.axisXLabelsOffset<"u"?e.axisXLabelsOffset:[-10,10],!!this.initBaseParameter()){var t=this.DVBCodomain;this.DVBUnitValue=(t[1]-t[0])/this.DVBHeight;var r=this.dataViewBox,i=this.dataValues;if(!(i.length<1)){for(let y=0,_=i.length;y<_;y++)if(i[y]t[1])return;var a=this.calculateXShapeInfo();if(!!a){var o=a.xPositions,s=a.width;(typeof e.useBackground>"u"||e.useBackground)&&this.shapes.push(Vn.Background(this.shapeFactory,this.chartBox,e)),(!e.axis3DParameter||isNaN(e.axis3DParameter)||e.axis3DParameter<15)&&(e.axis3DParameter=20),(typeof e.useAxis>"u"||e.useAxis)&&(this.shapes=this.shapes.concat(Vn.GraphAxis(this.shapeFactory,r,e,a)));var l=e.bar3DParameter&&!isNaN(e.bar3DParameter)?e.bar3DParameter:10;for(let y=0;y=u[2]||u[1]<=u[3]?!1:(this.DVBOrigonPoint=[u[0],u[3]],this.DVBWidth=Math.abs(u[2]-u[0]),this.DVBHeight=Math.abs(u[1]-u[3]),this.DVBCenterPoint=[this.DVBOrigonPoint[0]+this.DVBWidth/2,this.DVBOrigonPoint[1]+this.DVBHeight/2],this.origonPointOffset=[this.DVBOrigonPoint[0]-o[0],this.DVBOrigonPoint[1]-o[1]],e)}}class Fst extends zNe{constructor(e,t,r,i,a){super(e,t,r,i,a),this.CLASS_NAME="SuperMap.Feature.Theme.Circle"}destroy(){super.destroy()}assembleShapes(){var e="#ff9277";if(!this.setting)return!1;var t=this.setting;if(!t.codomain)return!1;var r=typeof t.decimalNumber<"u"&&!isNaN(t.decimalNumber)?t.decimalNumber:-1,i=am.getDataValues(this.data,this.fields,r);this.dataValues=i||[];var a=this.dataValues;t.maxR||(t.maxR=100),t.minR||(t.minR=0);var o=this.DVBCodomain;o&&o[1]-o[0]>0?this.DVBUnitValue=t.maxR/(o[1]-o[0]):this.DVBUnitValue=t.maxR;var s=this.DVBUnitValue,l=a[0]*s+t.minR;if(this.width=2*l,this.height=2*l,!!this.initBaseParameter()&&!(o&&(a[0]o[1]))){var u=this.DVBCenterPoint,h=new qne(u[0],u[1],l);h.style=Vn.ShapeStyleTool(null,t.circleStyle,null,null,0),typeof t.fillColor<"u"?h.style.fillColor=t.fillColor:h.style.fillColor=e,h.highlightStyle=Vn.ShapeStyleTool(null,t.circleHoverStyle),typeof t.circleHoverAble<"u"&&(h.hoverable=t.circleHoverAble),typeof t.circleClickAble<"u"&&(h.clickable=t.circleClickAble),h.refDataID=this.data.id,h.dataInfo={field:this.fields[0],r:l,value:a[0]},this.shapes.push(this.shapeFactory.createShape(h)),this.shapesConvertToRelativeCoordinate()}}}class Bst extends mw{constructor(e,t,r,i,a,o){super(e,t,r,i,a,o),this.CLASS_NAME="SuperMap.Feature.Theme.Line"}destroy(){super.destroy()}assembleShapes(){var e=this.setting;if(e.dataViewBoxParameter||(typeof e.useAxis>"u"||e.useAxis?e.dataViewBoxParameter=[45,15,15,15]:e.dataViewBoxParameter=[5,5,5,5]),!!this.initBaseParameter()){var t=this.dataViewBox,r=this.DVBCodomain;this.DVBUnitValue=(r[1]-r[0])/this.DVBHeight;var i=this.DVBUnitValue,a=this.dataValues;if(!(a.length<1)){var o=this.calculateXShapeInfo();if(!!o){var s=o.xPositions;(typeof e.useBackground>"u"||e.useBackground)&&this.shapes.push(Vn.Background(this.shapeFactory,this.chartBox,e)),this.shapes=this.shapes.concat(Vn.GraphAxis(this.shapeFactory,t,e,o));for(var l,u,h=[],c=[],f=0,d=a.length;fr[1])return null;l=s[f],u=t[1]-(a[f]-r[0])/i;var v=new kz(l,u);v.style=Vn.ShapeStyleTool({fillColor:"#ee9900"},e.pointStyle,e.pointStyleByFields,e.pointStyleByCodomain,f,a[f]),v.highlightStyle=Vn.ShapeStyleTool(null,e.pointHoverStyle),typeof e.pointHoverAble<"u"&&(v.hoverable=e.pointHoverAble),typeof e.pointClickAble<"u"&&(v.clickable=e.pointClickAble),v.refDataID=this.data.id,v.dataInfo={field:this.fields[f],value:a[f]},c.push(this.shapeFactory.createShape(v));var p=[l,u];h.push(p)}var g=new UO(h);g.style=Vn.ShapeStyleTool({strokeColor:"#ee9900"},e.lineStyle),g.clickable=!1,g.hoverable=!1;var m=this.shapeFactory.createShape(g);this.shapes.push(m),this.shapes=this.shapes.concat(c),this.shapesConvertToRelativeCoordinate()}}}}calculateXShapeInfo(){var e=this.dataViewBox,t=this.setting,r=this.dataValues.length;if(r<1)return null;var i,a=[],o=0,s=this.DVBWidth,l=0;if(t.xShapeBlank&&t.xShapeBlank.length&&t.xShapeBlank.length==2){i=t.xShapeBlank;var u=s-(i[0]+i[1]);if(u<=r)return null;l=u/(r-1)}else l=s/(r+1),i=[l,l,l];for(var h=0,c=0;ci[1])return;var a=0;for(let g=0;g=360&&(u=359.9999999);var v=new Fz(s[0],s[1],c,l,u);if(typeof e.sectorStyleByFields>"u"){var p=f%t.length;v.style=Vn.ShapeStyleTool(null,e.sectorStyle,t,null,p)}else v.style=Vn.ShapeStyleTool(null,e.sectorStyle,e.sectorStyleByFields,e.sectorStyleByCodomain,f,r[f]);v.highlightStyle=Vn.ShapeStyleTool(null,e.sectorHoverStyle),typeof e.sectorHoverAble<"u"&&(v.hoverable=e.sectorHoverAble),typeof e.sectorClickAble<"u"&&(v.clickable=e.sectorClickAble),v.refDataID=this.data.id,v.dataInfo={field:this.fields[f],value:r[f]},this.shapes.push(this.shapeFactory.createShape(v)),l=u}this.shapesConvertToRelativeCoordinate()}}}}class zst extends mw{constructor(e,t,r,i,a,o){super(e,t,r,i,a,o),this.CLASS_NAME="SuperMap.Feature.Theme.Point"}destroy(){super.destroy()}assembleShapes(){var e=this.setting;if(e.dataViewBoxParameter||(typeof e.useAxis>"u"||e.useAxis?e.dataViewBoxParameter=[45,15,15,15]:e.dataViewBoxParameter=[5,5,5,5]),!!this.initBaseParameter()){var t=this.dataViewBox,r=this.DVBCodomain;this.DVBUnitValue=(r[1]-r[0])/this.DVBHeight;var i=this.DVBUnitValue,a=this.dataValues,o=this.calculateXShapeInfo();if(!!o){var s=o.xPositions;(typeof e.useBackground>"u"||e.useBackground)&&this.shapes.push(Vn.Background(this.shapeFactory,this.chartBox,e)),this.shapes=this.shapes.concat(Vn.GraphAxis(this.shapeFactory,t,e,o));for(var l,u,h=0,c=a.length;hr[1])return null;l=s[h],u=t[1]-(a[h]-r[0])/i;var f=new kz(l,u);f.style=Vn.ShapeStyleTool({fillColor:"#ee9900"},e.pointStyle,e.pointStyleByFields,e.pointStyleByCodomain,h,a[h]),f.highlightStyle=Vn.ShapeStyleTool(null,e.pointHoverStyle),typeof e.pointHoverAble<"u"&&(f.hoverable=e.pointHoverAble),typeof e.pointClickAble<"u"&&(f.clickable=e.pointClickAble),f.refDataID=this.data.id,f.dataInfo={field:this.fields[h],value:a[h]},this.shapes.push(this.shapeFactory.createShape(f))}this.shapesConvertToRelativeCoordinate()}}}calculateXShapeInfo(){var e=this.dataViewBox,t=this.setting,r=this.dataValues.length;if(r<1)return null;var i,a=[],o=0,s=this.DVBWidth,l=0;if(t.xShapeBlank&&t.xShapeBlank.length&&t.xShapeBlank.length==2){i=t.xShapeBlank;var u=s-(i[0]+i[1]);if(u<=r)return null;l=u/(r-1)}else l=s/(r+1),i=[l,l,l];for(var h=0,c=0;ci[1])return;var a=0;for(let y=0;y=0&&t.innerRingRadius"u"){var m=v%e.length;g.style=Vn.ShapeStyleTool(null,t.sectorStyle,e,null,m)}else g.style=Vn.ShapeStyleTool(null,t.sectorStyle,t.sectorStyleByFields,t.sectorStyleByCodomain,v,r[v]);g.highlightStyle=Vn.ShapeStyleTool(null,t.sectorHoverStyle),typeof t.sectorHoverAble<"u"&&(g.hoverable=t.sectorHoverAble),typeof t.sectorClickAble<"u"&&(g.clickable=t.sectorClickAble),g.refDataID=this.data.id,g.dataInfo={field:this.fields[v],value:r[v]},this.shapes.push(this.shapeFactory.createShape(g)),l=u}this.shapesConvertToRelativeCoordinate()}}}}class f3 extends am{constructor(e,t,r,i,a){if(super(e,t),!!e.geometry&&e.geometry instanceof rg){this.dataBounds=e.geometry.getBounds(),this.nodesClipPixel=2,this.isHoverAble=!0,this.isMultiHover=!0,this.isClickAble=!0,this.highlightStyle=null,this.shapeOptions={},this.style=r||{},this.CLASS_NAME="SuperMap.Feature.Theme.Vector",this.style=r||{},i&&W.copyAttributesWithClip(this,i,["shapeOptions","dataBounds"]),a&&W.copyAttributesWithClip(this.shapeOptions,a);var o=e.geometry;this.lonlat=this.dataBounds.getCenterLonLat(),this.location=this.getLocalXY(this.lonlat),o instanceof tv?this.lineToTF(o):o instanceof Vl?this.lineToTF(o):o instanceof Mne||(o instanceof HE?this.multiPointToTF(o):o instanceof _E?this.multiLineStringToTF(o):o instanceof A1?this.multiPolygonToTF(o):o instanceof _p?this.polygonToTF(o):o instanceof O0||(o instanceof Ki?this.pointToTF(o):o instanceof IOe?this.rectangleToTF(o):o instanceof O_&&this.geoTextToTF(o)))}}destroy(){this.style=null,this.dataBounds=null,this.nodesClipPixel=null,this.isHoverAble=null,this.isMultiHover=null,this.isClickAble=null,this.highlightStyle=null,this.shapeOptions=null,super.destroy()}lineToTF(e){for(var t=e.components,r=[],i=[],a=this.location,o=[],s=this.nodesClipPixel,l=0;l0){var h=o[o.length-1];if(Math.abs(h[0]-i[0])<=s&&Math.abs(h[1]-i[1])<=s)continue}o.push(i)}if(o.length<2)return null;var c=new Object;c=W.copyAttributesWithClip(c,this.style,["pointList"]),c.pointList=o;var f=new BNe({style:c,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(f.highlightStyle=this.highlightStyle),f.refOriginalPosition=this.location,f.refDataID=this.data.id,f.isHoverByRefDataID=this.isMultiHover,this.shapeOptions&&W.copyAttributesWithClip(f,this.shapeOptions),this.shapes.push(f)}multiPointToTF(e){for(var t=e.components,r=[],i=[],a=this.location,o=[],s=this.nodesClipPixel,l=0;l0){var h=o[o.length-1];if(Math.abs(h[0]-i[0])<=s&&Math.abs(h[1]-i[1])<=s)continue}o.push(i);var c=new Object;c.r=6,c=W.copyAttributesWithClip(c,this.style),c.x=i[0],c.y=i[1];var f=new LK({style:c,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(f.highlightStyle=this.highlightStyle),f.refOriginalPosition=a,f.refDataID=this.data.id,f.isHoverByRefDataID=this.isMultiHover,this.shapeOptions&&W.copyAttributesWithClip(f,this.shapeOptions),this.shapes.push(f)}}multiLineStringToTF(e){for(var t=e.components,r=0;r0){var d=o[o.length-1];if(Math.abs(d[0]-i[0])<=u&&Math.abs(d[1]-i[1])<=u)continue}o.push(i)}}else{s=[];for(var v=0;v0){var p=s[s.length-1];if(Math.abs(p[0]-i[0])<=u&&Math.abs(p[1]-i[1])<=u)continue}s.push(i)}}s.length<2||l.push(s)}if(!(o.length<2)){var g={};g=W.copyAttributesWithClip(g,this.style,["pointList"]),g.pointList=o;var m=new Kne({style:g,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(m.highlightStyle=this.highlightStyle),m.refOriginalPosition=this.location,m.refDataID=this.data.id,m.isHoverByRefDataID=this.isMultiHover,l.length>0&&(m.holePolygonPointLists=l),this.shapeOptions&&W.copyAttributesWithClip(m,this.shapeOptions),this.shapes.push(m)}}rectangleToTF(e){var t=this.location,r=new vd(e.x,e.y),i=this.layer.map.getResolution(),a=this.getLocalXY(r),o=new Object;o.r=6,o=W.copyAttributesWithClip(o,this.style),o.x=a[0]-t[0],o.y=a[1]-t[1]-2*e.width/i,o.width=e.width/i,o.height=e.height/i;var s=new GNe({style:o,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(s.highlightStyle=this.highlightStyle),s.refOriginalPosition=t,s.refDataID=this.data.id,s.isHoverByRefDataID=this.isMultiHover,this.shapeOptions&&W.copyAttributesWithClip(s,this.shapeOptions),this.shapes.push(s)}geoTextToTF(e){var t=this.location,r=this.getLocalXY(e),i=new Object;i.r=6,i=W.copyAttributesWithClip(i,this.style,["x","y","text"]),i.x=r[0]-t[0],i.y=r[1]-t[1],i.text=e.text;var a=new FNe({style:i,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(a.highlightStyle=this.highlightStyle),a.refOriginalPosition=t,a.refDataID=this.data.id,a.isHoverByRefDataID=this.isMultiHover,this.shapeOptions&&W.copyAttributesWithClip(a,this.shapeOptions),this.shapes.push(a)}updateAndAddShapes(){var e=this.getLocalXY(this.lonlat);this.location=e;for(var t=this.layer.renderer,r=0,i=this.shapes.length;r0}addRoot(e){e instanceof Xx&&e.addChildrenToStorage(this),this.addToMap(e),this._roots.push(e)}delRoot(e){if(typeof e>"u"){for(var t=0;t=0&&(this.delFromMap(a.id),this._roots.splice(o,1),a instanceof Xx&&a.delChildrenFromStorage(this))}addToMap(e){return e instanceof Xx&&(e._storage=this),e.modSelf(),this._elements[e.id]=e,this}get(e){return this._elements[e]}delFromMap(e){var t=this._elements[e];return t&&(delete this._elements[e],t instanceof Xx&&(t._storage=null)),this}dispose(){this._elements=null,this._roots=null,this._hoverElements=null}static shapeCompareFunc(e,t){return e.zlevel==t.zlevel?e.z==t.z?e.__renderidx-t.__renderidx:e.z-t.z:e.zlevel-t.zlevel}}class va{constructor(e,t){this.root=e,this.storage=t,this._domRoot=null,this._layers={},this._zlevelList=[],this._layerConfig={},this._bgDom=null,this.shapeToImage=null,va.devicePixelRatio=Math.max(window.devicePixelRatio||1,1),this.CLASS_NAME="SuperMap.LevelRenderer.Painter",this.root.innerHTML="",this._width=this._getWidth(),this._height=this._getHeight();var r=document.createElement("div");this._domRoot=r,r.style.position="relative",r.style.overflow="hidden",r.style.width=this._width+"px",r.style.height=this._height+"px",this.root.appendChild(r),this.shapeToImage=this._createShapeToImageProcessor(),this._bgDom=va.createDom(W.createUniqueID("SuperMap.Theme_background_"),"div",this),r.appendChild(this._bgDom),this._bgDom.onselectstart=o,this._bgDom.style["-webkit-user-select"]="none",this._bgDom.style["user-select"]="none",this._bgDom.style["-webkit-touch-callout"]="none";var i=new Jde(W.createUniqueID("_highLightLayer_"),this);this._layers.hover=i,r.appendChild(i.dom),i.initContext(),i.dom.onselectstart=o,i.dom.style["-webkit-user-select"]="none",i.dom.style["user-select"]="none",i.dom.style["-webkit-touch-callout"]="none";var a=this;this.updatePainter=function(s,l){a.refreshShapes(s,l)};function o(){return!1}}destroy(){this.dispose(),this._zlevelList=null,this._layerConfig=null,this._bgDom=null,this.shapeToImage=null}render(e){return this.refresh(e,!0),this}refresh(e,t){var r=this.storage.getShapeList(!0);return this._paintList(r,t),typeof e=="function"&&e(),this}_paintList(e,t){typeof t>"u"&&(t=!1),this._updateLayerStatus(e);var r,i,a;for(var o in this._layers)o!=="hover"&&(this._layers[o].unusedCount++,this._layers[o].updateTransform());for(var s=[],l=0,u=e.length;l0&&e>this._zlevelList[0]){for(a=0;ae);a++);i=this._layers[this._zlevelList[a]]}this._zlevelList.splice(a+1,0,e),t=new Jde(W.createUniqueID("_levelLayer_"+e),this);var o=i?i.dom:this._bgDom;o.nextSibling?o.parentNode.insertBefore(t.dom,o.nextSibling):o.parentNode.appendChild(t.dom),t.initContext(),this._layers[e]=t,this._layerConfig[e]&&new Pp().merge(t,this._layerConfig[e],!0),t.updateTransform()}return t}getLayers(){return this._layers}_updateLayerStatus(e){var t=this._layers,r={};for(let s in t)s!=="hover"&&(r[s]=t[s].elCount,t[s].elCount=0);for(let s=0;s0?1.1:1/1.1,f=this.painter.getLayers(),d=!1;for(var v in f)if(v!=="hover"){var p=f[v],g=p.position;if(p.zoomable){p.__zoom=p.__zoom||1;var m=p.__zoom;m*=c,m=Math.max(Math.min(p.maxZoom,m),p.minZoom),c=m/p.__zoom,p.__zoom=m,g[0]-=(this._mouseX-g[0])*(c-1),g[1]-=(this._mouseY-g[1])*(c-1),p.scale[0]*=c,p.scale[1]*=c,p.dirty=!0,d=!0}}d&&this.painter.refresh(),this._dispatchAgency(this._lastHover,ds.EVENT.MOUSEWHEEL,u),this._mousemoveHandler(u)},mousemove:function(u){this._clickThreshold++,u=this._zrenderEventFixed(u),this._lastX=this._mouseX,this._lastY=this._mouseY,this._mouseX=cr.Util_event.getX(u),this._mouseY=cr.Util_event.getY(u);var h=this._mouseX-this._lastX,c=this._mouseY-this._lastY;this._processDragStart(u),this._hasfound=0,this._event=u,this._iterateAndFindHover(),this._hasfound||((!this._draggingTarget||this._lastHover&&this._lastHover!=this._draggingTarget)&&(this._processOutShape(u),this._processDragLeave(u)),this._lastHover=null,this.storage.delHover(),this.painter.clearHover());var f="";if(this._draggingTarget)this.storage.drift(this._draggingTarget.id,h,c),this._draggingTarget.modSelf(),this.storage.addHover(this._draggingTarget);else if(this._isMouseDown){var d=this.painter.getLayers(),v=!1;for(var p in d)if(p!=="hover"){var g=d[p];g.panable&&(f="move",g.position[0]+=h,g.position[1]+=c,v=!0,g.dirty=!0)}v&&this.painter.refresh()}this._draggingTarget||this._hasfound&&this._lastHover.draggable?f="move":this._hasfound&&this._lastHover.clickable&&(f="pointer"),this.root.style.cursor=f,this._dispatchAgency(this._lastHover,ds.EVENT.MOUSEMOVE,u),(this._draggingTarget||this._hasfound||this.storage.hasHoverShape())&&this.painter.refreshHover()},mouseout:function(u){u=this._zrenderEventFixed(u);var h=u.toElement||u.relatedTarget;if(h!=this.root)for(;h&&h.nodeType!=9;){if(h==this.root){this._mousemoveHandler(u);return}h=h.parentNode}u.zrenderX=this._lastX,u.zrenderY=this._lastY,this.root.style.cursor="",this._isMouseDown=0,this._processOutShape(u),this._processDrop(u),this._processDragEnd(u),this.painter.refreshHover(),this.dispatch(ds.EVENT.GLOBALOUT,u)},mousedown:function(u){if(this._clickThreshold=0,this._lastDownButton==2){this._lastDownButton=u.button,this._mouseDownTarget=null;return}this._lastMouseDownMoment=new Date,u=this._zrenderEventFixed(u),this._isMouseDown=1,this._mouseDownTarget=this._lastHover,this._dispatchAgency(this._lastHover,ds.EVENT.MOUSEDOWN,u),this._lastDownButton=u.button},mouseup:function(u){u=this._zrenderEventFixed(u),this.root.style.cursor="",this._isMouseDown=0,this._mouseDownTarget=null,this._dispatchAgency(this._lastHover,ds.EVENT.MOUSEUP,u),this._processDrop(u),this._processDragEnd(u)},touchstart:function(u){u=this._zrenderEventFixed(u,!0),this._lastTouchMoment=new Date,this._mobildFindFixed(u),this._mousedownHandler(u)},touchmove:function(u){u=this._zrenderEventFixed(u,!0),this._mousemoveHandler(u),this._isDragging&&cr.Util_event.stop(u)},touchend:function(u){u=this._zrenderEventFixed(u,!0),this._mouseupHandler(u);var h=new Date;h-this._lastTouchMoment=0;o--){var s=t[o];if(r!==s.zlevel&&(i=this.painter.getLayer(s.zlevel,i),a[0]=this._mouseX,a[1]=this._mouseY,i.needTransform&&(cr.Util_matrix.invert(e,i.transform),cr.Util_vector.applyTransform(a,a,e))),this._findHover(s,a[0],a[1]))break}}_mobildFindFixed(e){var t=[{x:10},{x:-20},{x:10,y:10},{y:-20}];this._lastHover=null,this._mouseX=e.zrenderX,this._mouseY=e.zrenderY,this._event=e,this._iterateAndFindHover();for(var r=0;!this._lastHover&&r"u"?!1:e.loop,this.gap=e.gap||0,this.easing=e.easing||"Linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart,this.CLASS_NAME="SuperMap.LevelRenderer.Animation.Clip"}destroy(){}step(e){var t=new $st,r=(e-this._startTime)/this._life;if(!(r<0)){r=Math.min(r,1);var i=typeof this.easing=="string"?t[this.easing]:this.easing,a=typeof i=="function"?i(r):r;return this.fire("frame",a),r==1?this.loop?(this.restart(),"restart"):(this._needsRemove=!0,"destroy"):null}}restart(){var e=new Date().getTime(),t=(e-this._startTime)%this._life;this._startTime=new Date().getTime()-t+this.gap}fire(e,t){for(var r=0,i=this._targetPool.length;r=0&&this._clips.splice(t,1)}_update(){var e=new Date().getTime(),t=e-this._time,r=this._clips,i=r.length,a=[],o=[];for(let u=0;u=0&&!(y[E]<=V);E--);E=Math.min(E,f-2)}else{for(E=S;EV);E++);E=Math.min(E-1,f-2)}S=E,w=V;var z=y[E+1]-y[E];if(z!==0){if(T=(V-y[E])/z,o)if(A=_[E],C=_[E===0?E:E-1],M=_[E>f-2?f-1:E+1],I=_[E>f-3?f-1:E+2],v)Mh._catmullRomInterpolateArray(C,A,M,I,T,T*T,T*T*T,i(G,c),g);else{let j;p?j=Mh.rgba2String(R):j=Mh._catmullRomInterpolate(C,A,M,I,T,T*T,T*T*T),r(G,c,j)}else if(v)Mh._interpolateArray(_[E],_[E+1],T,i(G,c),g);else{let j;p?(Mh._interpolateArray(_[E],_[E+1],T,R,1),j=Mh.rgba2String(R)):j=Mh._interpolateNumber(_[E],_[E+1],T),r(G,c,j)}for(E=0;E"u"&&(e.__aniCount=0),e.__aniCount===0&&u.push(e),e.__aniCount++,this.animation.animate(i,{loop:r}).done(function(){if(e.__aniCount--,e.__aniCount===0){var h=new Pp().indexOf(u,e);u.splice(h,1)}})}else cr.Util_log("Element not existed")}clearAnimation(){this.animation.clear()}getWidth(){return this.painter.getWidth()}getHeight(){return this.painter.getHeight()}toDataURL(e,t,r){return this.painter.toDataURL(e,t,r)}shapeToImage(e,t,r){var i=W.createUniqueID("SuperMap.LevelRenderer.ToImage_");return this.painter.shapeToImage(i,e,t,r)}on(e,t){return this.handler.on(e,t),this}un(e,t){return this.handler.un(e,t),this}trigger(e,t){return this.handler.trigger(e,t),this.handler.dispatch(e,t),this}clear(){return this.storage.delRoot(),this.painter.clear(),this}dispose(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=null,this.animatingElements=null,this.storage=null,this.painter=null,this.handler=null}updateHoverShapes(e){return this.painter.updateHoverLayer(e),this}getAllShapes(){return this.storage._shapeList}clearAll(){return this.clear(),this.painter.clearHover(),this}getHoverOne(){return this.handler.getLastHoverOne()}static getFrameCallback(e){return function(){var t=e.animatingElements;if(t instanceof Array){for(var r=0,i=t.length;r"u"&&typeof self<"u"?Lb.worker=!0:typeof navigator>"u"?(Lb.node=!0,Lb.svgSupported=!0):Yst(navigator.userAgent,Lb);function Yst(n,e){var t=e.browser,r=n.match(/Firefox\/([\d.]+)/),i=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),a=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n);r&&(t.firefox=!0,t.version=r[1]),i&&(t.ie=!0,t.version=i[1]),a&&(t.edge=!0,t.version=a[1],t.newEdge=+a[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const sa=Lb;var Qne=12,VNe="sans-serif",RS=Qne+"px "+VNe,qst=20,Zst=100,Kst="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Jst(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function Slt(n,e,t){for(var r=t?"invTrans":"trans",i=e[r],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var h=n[u].getBoundingClientRect(),c=2*u,f=h.left,d=h.top;o.push(f,d),l=l&&a&&f===a[c]&&d===a[c+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[r]=t?rve(s,o):rve(o,s))}function qNe(n){return n.nodeName.toUpperCase()==="CANVAS"}var wlt=/([&<>"'])/g,blt={"&":"&","<":"<",">":">",'"':""","'":"'"};function ad(n){return n==null?"":(n+"").replace(wlt,function(e,t){return blt[t]})}var Elt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,jW=[],Tlt=sa.browser.firefox&&+sa.browser.version.split(".")[0]<39;function BK(n,e,t,r){return t=t||{},r?ive(n,e,t):Tlt&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):ive(n,e,t),t}function ive(n,e,t){if(sa.domSupported&&n.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(qNe(n)){var a=n.getBoundingClientRect();t.zrX=r-a.left,t.zrY=i-a.top;return}else if(FK(jW,n,r,i)){t.zrX=jW[0],t.zrY=jW[1];return}}t.zrX=t.zrY=0}function oie(n){return n||window.event}function lp(n,e,t){if(e=oie(e),e.zrX!=null)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&BK(n,o,e,t)}else{BK(n,e,e,t);var a=Clt(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Elt.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Clt(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var i=Math.abs(r!==0?r:t),a=r>0?-1:r<0?1:t>0?-1:1;return 3*i*a}function GK(n,e,t,r){n.addEventListener(e,t,r)}function Alt(n,e,t,r){n.removeEventListener(e,t,r)}var l_=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function ave(n){return n.which===2||n.which===3}var Mlt=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var i=e.touches;if(!!i){for(var a={points:[],touches:[],target:t,event:e},o=0,s=i.length;o1&&r&&r.length>1){var a=ove(r)/ove(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=Ilt(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}};function Up(){return[1,0,0,1,0,0]}function Uz(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function sie(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function $1(n,e,t){var r=e[0]*t[0]+e[2]*t[1],i=e[1]*t[0]+e[3]*t[1],a=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=r,n[1]=i,n[2]=a,n[3]=o,n[4]=s,n[5]=l,n}function sm(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function j2(n,e,t){var r=e[0],i=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),h=Math.cos(t);return n[0]=r*h+o*u,n[1]=-r*u+o*h,n[2]=i*h+s*u,n[3]=-i*u+h*s,n[4]=h*a+u*l,n[5]=h*l-u*a,n}function lie(n,e,t){var r=t[0],i=t[1];return n[0]=e[0]*r,n[1]=e[1]*i,n[2]=e[2]*r,n[3]=e[3]*i,n[4]=e[4]*r,n[5]=e[5]*i,n}function II(n,e){var t=e[0],r=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*r;return l?(l=1/l,n[0]=o*l,n[1]=-a*l,n[2]=-r*l,n[3]=t*l,n[4]=(r*s-o*i)*l,n[5]=(a*i-t*s)*l,n):null}function Llt(n){var e=Up();return sie(e,n),e}var Plt=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(!!e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,r){e.x=t,e.y=r},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},n.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},n.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},n.scaleAndAdd=function(e,t,r,i){e.x=t.x+r.x*i,e.y=t.y+r.y*i},n.lerp=function(e,t,r,i){var a=1-i;e.x=a*t.x+i*r.x,e.y=a*t.y+i*r.y},n}();const qn=Plt;var $F=Math.min,WF=Math.max,Ww=new qn,Hw=new qn,jw=new qn,Xw=new qn,UL=new qn,VL=new qn,Olt=function(){function n(e,t,r,i){r<0&&(e=e+r,r=-r),i<0&&(t=t+i,i=-i),this.x=e,this.y=t,this.width=r,this.height=i}return n.prototype.union=function(e){var t=$F(e.x,this.x),r=$F(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=WF(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=WF(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,i=e.height/t.height,a=Up();return sm(a,a,[-t.x,-t.y]),lie(a,a,[r,i]),sm(a,a,[e.x,e.y]),a},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var r=this,i=r.x,a=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,f=!(av&&(v=_,pv&&(v=x,m=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];e.x=t.x*i+o,e.y=t.y*a+s,e.width=t.width*i,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ww.x=jw.x=t.x,Ww.y=Xw.y=t.y,Hw.x=Xw.x=t.x+t.width,Hw.y=jw.y=t.y+t.height,Ww.transform(r),Xw.transform(r),Hw.transform(r),jw.transform(r),e.x=$F(Ww.x,Hw.x,jw.x,Xw.x),e.y=$F(Ww.y,Hw.y,jw.y,Xw.y);var l=WF(Ww.x,Hw.x,jw.x,Xw.x),u=WF(Ww.y,Hw.y,jw.y,Xw.y);e.width=l-e.x,e.height=u-e.y},n}();const ai=Olt;var ZNe="silent";function Rlt(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Dlt}}function Dlt(){l_(this.event)}var Nlt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ng),$L=function(){function n(e,t){this.x=e,this.y=t}return n}(),klt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],YW=new ai(0,0,0,0),KNe=function(n){$e(e,n);function e(t,r,i,a,o){var s=n.call(this)||this;return s._hovered=new $L(0,0),s.storage=t,s.painter=r,s.painterRoot=a,s._pointerSize=o,i=i||new Nlt,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new glt(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(te(klt,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,i=t.zrY,a=JNe(this,r,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new $L(r,i):this.findHover(r,i),u=l.target,h=this.proxy;h.setCursor&&h.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new $L(0,0)},e.prototype.dispatch=function(t,r){var i=this[t];i&&i.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,i){t=t||{};var a=t.target;if(!(a&&a.silent)){for(var o="on"+r,s=Rlt(r,t,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(r,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,i){var a=this.storage.getDisplayList(),o=new $L(t,r);if(sve(a,o,t,r,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,h=new ai(t-u,r-u,l,l),c=a.length-1;c>=0;c--){var f=a[c];f!==i&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(YW.copy(f.getBoundingRect()),f.transform&&YW.applyTransform(f.transform),YW.intersect(h)&&s.push(f))}if(s.length)for(var d=4,v=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,n,e)}});function Flt(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(e,t))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return i?ZNe:!0}return!1}function sve(n,e,t,r,i){for(var a=n.length-1;a>=0;a--){var o=n[a],s=void 0;if(o!==i&&!o.ignore&&(s=Flt(o,t,r))&&(!e.topTarget&&(e.topTarget=o),s!==ZNe)){e.target=o;break}}}function JNe(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}const Blt=KNe;var QNe=32,WL=7;function Glt(n){for(var e=0;n>=QNe;)e|=n&1,n>>=1;return n+e}function lve(n,e,t,r){var i=e+1;if(i===t)return 1;if(r(n[i++],n[e])<0){for(;i=0;)i++;return i-e}function zlt(n,e,t){for(t--;e>>1,i(a,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=a}}function qW(n,e,t,r,i,a){var o=0,s=0,l=1;if(a(n,e[t+i])>0){for(s=r-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(n,e[t+h])>0?o=h+1:l=h}return l}function ZW(n,e,t,r,i,a){var o=0,s=0,l=1;if(a(n,e[t+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=r-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(n,e[t+h])<0?l=h:o=h+1}return l}function Ult(n,e){var t=WL,r,i,a=0;n.length;var o=[];r=[],i=[];function s(d,v){r[a]=d,i[a]=v,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]i[d+1])break;h(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]=WL||b>=WL);if(E)break;S<0&&(S=0),S+=2}if(t=S,t<1&&(t=1),v===1){for(m=0;m=0;m--)n[w+m]=n[S+m];n[x]=o[_];return}for(var b=t;;){var E=0,T=0,C=!1;do if(e(o[_],n[y])<0){if(n[x--]=n[y--],E++,T=0,--v===0){C=!0;break}}else if(n[x--]=o[_--],T++,E=0,--g===1){C=!0;break}while((E|T)=0;m--)n[w+m]=n[S+m];if(v===0){C=!0;break}}if(n[x--]=o[_--],--g===1){C=!0;break}if(T=g-qW(n[y],o,0,g,g-1,e),T!==0){for(x-=T,_-=T,g-=T,w=x+1,S=_+1,m=0;m=WL||T>=WL);if(C)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),g===1){for(x-=v,y-=v,w=x+1,S=y+1,m=v-1;m>=0;m--)n[w+m]=n[S+m];n[x]=o[_]}else{if(g===0)throw new Error;for(S=x-(g-1),m=0;ms&&(l=s),uve(n,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),i-=a,t+=a}while(i!==0);o.forceMergeRuns()}}var ov=1,KP=2,BC=4,hve=!1;function KW(){hve||(hve=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function cve(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var Vlt=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=cve}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(h.__clipPaths=[]),isNaN(h.z)&&(KW(),h.z=0),isNaN(h.z2)&&(KW(),h.z2=0),isNaN(h.zlevel)&&(KW(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,r);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t=0&&this._roots.splice(i,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const $lt=Vlt;var e3e;e3e=sa.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const zK=e3e;var xB={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)))},elasticOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/r)+1)},elasticInOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-xB.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?xB.bounceIn(n*2)*.5:xB.bounceOut(n*2-1)*.5+.5}};const t3e=xB;var HF=Math.pow,yS=Math.sqrt,K8=1e-8,r3e=1e-4,fve=yS(3),jF=1/3,Iy=H2(),wp=H2(),NA=H2();function Qx(n){return n>-K8&&nK8||n<-K8}function Qu(n,e,t,r,i){var a=1-i;return a*a*(a*n+3*i*e)+i*i*(i*r+3*a*t)}function dve(n,e,t,r,i){var a=1-i;return 3*(((e-n)*a+2*(t-e)*i)*a+(r-t)*i*i)}function J8(n,e,t,r,i,a){var o=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-i,h=s*s-3*o*l,c=s*l-9*o*u,f=l*l-3*s*u,d=0;if(Qx(h)&&Qx(c))if(Qx(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[d++]=v)}else{var p=c*c-4*h*f;if(Qx(p)){var g=c/h,v=-s/o+g,m=-g/2;v>=0&&v<=1&&(a[d++]=v),m>=0&&m<=1&&(a[d++]=m)}else if(p>0){var y=yS(p),_=h*s+1.5*o*(-c+y),x=h*s+1.5*o*(-c-y);_<0?_=-HF(-_,jF):_=HF(_,jF),x<0?x=-HF(-x,jF):x=HF(x,jF);var v=(-s-(_+x))/(3*o);v>=0&&v<=1&&(a[d++]=v)}else{var S=(2*h*s-3*o*c)/(2*yS(h*h*h)),w=Math.acos(S)/3,b=yS(h),E=Math.cos(w),v=(-s-2*b*E)/(3*o),m=(-s+b*(E+fve*Math.sin(w)))/(3*o),T=(-s+b*(E-fve*Math.sin(w)))/(3*o);v>=0&&v<=1&&(a[d++]=v),m>=0&&m<=1&&(a[d++]=m),T>=0&&T<=1&&(a[d++]=T)}}return d}function i3e(n,e,t,r,i){var a=6*t-12*e+6*n,o=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(Qx(o)){if(n3e(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var h=a*a-4*o*s;if(Qx(h))i[0]=-a/(2*o);else if(h>0){var c=yS(h),u=(-a+c)/(2*o),f=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function DS(n,e,t,r,i,a){var o=(e-n)*i+n,s=(t-e)*i+e,l=(r-t)*i+t,u=(s-o)*i+o,h=(l-s)*i+s,c=(h-u)*i+u;a[0]=n,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=h,a[6]=l,a[7]=r}function a3e(n,e,t,r,i,a,o,s,l,u,h){var c,f=.005,d=1/0,v,p,g,m;Iy[0]=l,Iy[1]=u;for(var y=0;y<1;y+=.05)wp[0]=Qu(n,t,i,o,y),wp[1]=Qu(e,r,a,s,y),g=wE(Iy,wp),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var h=o*o-4*a*s;if(Qx(h)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(h>0){var c=yS(h),u=(-o+c)/(2*a),f=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function o3e(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function tD(n,e,t,r,i){var a=(e-n)*r+n,o=(t-e)*r+e,s=(o-a)*r+a;i[0]=n,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=t}function s3e(n,e,t,r,i,a,o,s,l){var u,h=.005,c=1/0;Iy[0]=o,Iy[1]=s;for(var f=0;f<1;f+=.05){wp[0]=Ph(n,t,i,f),wp[1]=Ph(e,r,a,f);var d=wE(Iy,wp);d=0&&d=1?1:J8(0,r,a,1,l,s)&&Qu(0,i,o,1,s[0])}}}var Ylt=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Hl,this.ondestroy=e.ondestroy||Hl,this.onrestart=e.onrestart||Hl,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,i=e-this._startTime-this._pausedTime,a=i/r;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=rn(e)?e:t3e[e]||uie(e)},n}();const qlt=Ylt;var l3e=function(){function n(e){this.value=e}return n}(),Zlt=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new l3e(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),Klt=function(){function n(e){this._list=new Zlt,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,i=this._map,a=null;if(i[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new l3e(t),s.key=e,r.insertEntry(s),i[e]=s}return a},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const d3=Klt;var vve={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 l0(n){return n=Math.round(n),n<0?0:n>255?255:n}function Jlt(n){return n=Math.round(n),n<0?0:n>360?360:n}function rD(n){return n<0?0:n>1?1:n}function JW(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?l0(parseFloat(e)/100*255):l0(parseInt(e,10))}function bE(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?rD(parseFloat(e)/100):rD(parseFloat(e))}function QW(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function eS(n,e,t){return n+(e-n)*t}function tp(n,e,t,r,i){return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n}function VK(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var u3e=new d3(20),XF=null;function UT(n,e){XF&&VK(XF,e),XF=u3e.put(n,XF||e.slice())}function gv(n,e){if(!!n){e=e||[];var t=u3e.get(n);if(t)return VK(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in vve)return VK(e,vve[r]),UT(n,e),e;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){tp(e,0,0,0,1);return}return tp(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),UT(n,e),e}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){tp(e,0,0,0,1);return}return tp(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),UT(n,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===i){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),h=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?tp(e,+u[0],+u[1],+u[2],1):tp(e,0,0,0,1);h=bE(u.pop());case"rgb":if(u.length>=3)return tp(e,JW(u[0]),JW(u[1]),JW(u[2]),u.length===3?h:bE(u[3])),UT(n,e),e;tp(e,0,0,0,1);return;case"hsla":if(u.length!==4){tp(e,0,0,0,1);return}return u[3]=bE(u[3]),$K(u,e),UT(n,e),e;case"hsl":if(u.length!==3){tp(e,0,0,0,1);return}return $K(u,e),UT(n,e),e;default:return}}tp(e,0,0,0,1)}}function $K(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=bE(n[1]),i=bE(n[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return e=e||[],tp(e,l0(QW(o,a,t+1/3)*255),l0(QW(o,a,t)*255),l0(QW(o,a,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function Qlt(n){if(!!n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,i=Math.min(e,t,r),a=Math.max(e,t,r),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var h=((a-e)/6+o/2)/o,c=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o;e===a?l=f-c:t===a?l=1/3+h-f:r===a&&(l=2/3+c-h),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return n[3]!=null&&d.push(n[3]),d}}function WK(n,e){var t=gv(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return W1(t,t.length===4?"rgba":"rgb")}}function eH(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),i=Math.floor(r),a=Math.ceil(r),o=e[i],s=e[a],l=r-i;return t[0]=l0(eS(o[0],s[0],l)),t[1]=l0(eS(o[1],s[1],l)),t[2]=l0(eS(o[2],s[2],l)),t[3]=rD(eS(o[3],s[3],l)),t}}function eut(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),i=Math.floor(r),a=Math.ceil(r),o=gv(e[i]),s=gv(e[a]),l=r-i,u=W1([l0(eS(o[0],s[0],l)),l0(eS(o[1],s[1],l)),l0(eS(o[2],s[2],l)),rD(eS(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:i,rightIndex:a,value:r}:u}}function $O(n,e,t,r){var i=gv(n);if(n)return i=Qlt(i),e!=null&&(i[0]=Jlt(e)),t!=null&&(i[1]=bE(t)),r!=null&&(i[2]=bE(r)),W1($K(i),"rgba")}function Q8(n,e){var t=gv(n);if(t&&e!=null)return t[3]=rD(e),W1(t,"rgba")}function W1(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function eG(n,e){var t=gv(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var tG=Math.round;function nD(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=gv(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e==null?1:e}}var pve=1e-4;function tS(n){return n-pve}function YF(n){return tG(n*1e3)/1e3}function HK(n){return tG(n*1e4)/1e4}function tut(n){return"matrix("+YF(n[0])+","+YF(n[1])+","+YF(n[2])+","+YF(n[3])+","+HK(n[4])+","+HK(n[5])+")"}var rut={left:"start",right:"end",center:"middle",middle:"middle"};function nut(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function iut(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function aut(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function h3e(n){return n&&!!n.image}function out(n){return n&&!!n.svgElement}function hie(n){return h3e(n)||out(n)}function c3e(n){return n.type==="linear"}function f3e(n){return n.type==="radial"}function d3e(n){return n&&(n.type==="linear"||n.type==="radial")}function Vz(n){return"url(#"+n+")"}function v3e(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function p3e(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*gB,i=ni(n.scaleX,1),a=ni(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+tG(o*gB)+"deg, "+tG(s*gB)+"deg)"),l.join(" ")}var sut=function(){return sa.hasGlobalWindow&&rn(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),jK=Array.prototype.slice;function p1(n,e,t){return(e-n)*t+n}function tH(n,e,t,r){for(var i=e.length,a=0;ar?e:n,a=Math.min(t,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)r.length=o;else for(var l=a;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=yve,l=t;if(Yc(t)){var u=cut(t);s=u,(u===1&&!ha(t[0])||u===2&&!ha(t[0][0]))&&(o=!0)}else if(ha(t)&&!eD(t))s=ZF;else if(Or(t))if(!isNaN(+t))s=ZF;else{var h=gv(t);h&&(l=h,s=JP)}else if(Gz(t)){var c=Mt({},l);c.colorStops=Vt(t.colorStops,function(d){return{offset:d.offset,color:gv(d.color)}}),c3e(t)?s=XK:f3e(t)&&(s=YK),l=c}a===0?this.valType=s:(s!==this.valType||s===yve)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return r&&(f.easing=r,f.easingFunc=rn(r)?r:t3e[r]||uie(r)),i.push(f),f},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=r.length,o=r[a-1],s=this.discrete,l=KF(i),u=mve(i),h=0;h=0&&!(o[h].percent<=t);h--);h=f(h,s-2)}else{for(h=c;ht);h++);h=f(h-1,s-2)}v=o[h+1],d=o[h]}if(!!(d&&v)){this._lastFr=h,this._lastFrP=t;var g=v.percent-d.percent,m=g===0?1:f((t-d.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var y=r?this._additiveValue:u?HL:e[l];if((KF(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?d.rawValue:v.rawValue;else if(KF(a))a===wB?tH(y,d[i],v[i],m):lut(y,d[i],v[i],m);else if(mve(a)){var _=d[i],x=v[i],S=a===XK;e[l]={type:S?"linear":"radial",x:p1(_.x,x.x,m),y:p1(_.y,x.y,m),colorStops:Vt(_.colorStops,function(b,E){var T=x.colorStops[E];return{offset:p1(b.offset,T.offset,m),color:SB(tH([],b.color,T.color,m))}}),global:x.global},S?(e[l].x2=p1(_.x2,x.x2,m),e[l].y2=p1(_.y2,x.y2,m)):e[l].r=p1(_.r,x.r,m)}else if(u)tH(y,d[i],v[i],m),r||(e[l]=SB(y));else{var w=p1(d[i],v[i],m);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,i=this._additiveValue;t===ZF?e[r]=e[r]+i:t===JP?(gv(e[r],HL),qF(HL,HL,i,1),e[r]=SB(HL)):t===wB?qF(e[r],e[r],i,1):t===g3e&&gve(e[r],e[r],i,1)},n}(),cie=function(){function n(e,t,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i){rie("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Li(t),r)},n.prototype.whenWithKeys=function(e,t,r,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,WO(u),i),this._trackKeys.push(s)}l.addKeyframe(e,WO(t[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},n}();function hA(){return new Date().getTime()}var dut=function(n){$e(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(!!t.animation){var r=t.prev,i=t.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=hA()-this._pausedTime,i=r-this._time,a=this._head;a;){var o=a.next,s=a.step(r,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=r,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(zK(r),!t._paused&&t.update())}zK(r)},e.prototype.start=function(){this._running||(this._time=hA(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=hA(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=hA()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var i=new cie(t,r.loop);return this.addAnimator(i),i},e}(ng);const vut=dut;var put=300,rH=sa.domSupported,nH=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=Vt(n,function(i){var a=i.replace("mouse","pointer");return t.hasOwnProperty(a)?a:i});return{mouse:n,touch:e,pointer:r}}(),_ve={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},xve=!1;function qK(n){var e=n.pointerType;return e==="pen"||e==="touch"}function gut(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function iH(n){n&&(n.zrByTouch=!0)}function yut(n,e){return lp(n.dom,new mut(n,e),!0)}function y3e(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var mut=function(){function n(e,t){this.stopPropagation=Hl,this.stopImmediatePropagation=Hl,this.preventDefault=Hl,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),Dg={mousedown:function(n){n=lp(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=lp(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=lp(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=lp(this.dom,n);var e=n.toElement||n.relatedTarget;y3e(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){xve=!0,n=lp(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){xve||(n=lp(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=lp(this.dom,n),iH(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Dg.mousemove.call(this,n),Dg.mousedown.call(this,n)},touchmove:function(n){n=lp(this.dom,n),iH(n),this.handler.processGesture(n,"change"),Dg.mousemove.call(this,n)},touchend:function(n){n=lp(this.dom,n),iH(n),this.handler.processGesture(n,"end"),Dg.mouseup.call(this,n),+new Date-+this.__lastTouchMomentbve||n<-bve}var qw=[],VT=[],oH=Up(),sH=Math.abs,Eut=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return Yw(this.rotation)||Yw(this.x)||Yw(this.y)||Yw(this.scaleX-1)||Yw(this.scaleY-1)||Yw(this.skewX)||Yw(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(wve(r),this.invTransform=null);return}r=r||Up(),t?this.getLocalTransform(r):wve(r),e&&(t?$1(r,e,r):sie(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(qw);var r=qw[0]<0?-1:1,i=qw[1]<0?-1:1,a=((qw[0]-r)*t+r)/qw[0]||0,o=((qw[1]-i)*t+i)/qw[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Up(),II(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(!!e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(!!this.transform){var e=this.parent,t=this.transform;e&&e.transform&&($1(VT,e.invTransform,t),t=VT);var r=this.originX,i=this.originY;(r||i)&&(oH[4]=r,oH[5]=i,$1(VT,t,oH),VT[4]-=r,VT[5]-=i,t=VT),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],i=this.invTransform;return i&&cc(r,r,i),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],i=this.transform;return i&&cc(r,r,i),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&sH(e[0]-1)>1e-10&&sH(e[3]-1)>1e-10?Math.sqrt(sH(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){_3e(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,h=e.x,c=e.y,f=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(r||i||s||l){var v=r+s,p=i+l;t[4]=-v*a-f*p*o,t[5]=-p*o-d*v*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=d*a,t[2]=f*o,u&&j2(t,t,u),t[4]+=r+h,t[5]+=i+c,t},n.initDefaultProps=function(){var e=n.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}(),n}(),lm=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function _3e(n,e){for(var t=0;t=0?parseFloat(n)/100*e:parseFloat(n):n}function nG(n,e,t){var r=e.position||"inside",i=e.distance!=null?e.distance:5,a=t.height,o=t.width,s=a/2,l=t.x,u=t.y,h="left",c="top";if(r instanceof Array)l+=_0(r[0],t.width),u+=_0(r[1],t.height),h=null,c=null;else switch(r){case"left":l-=i,u+=s,h="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,h="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,h="center";break;case"inside":l+=o/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,h="right",c="middle";break;case"insideTop":l+=o/2,u+=i,h="center";break;case"insideBottom":l+=o/2,u+=a-i,h="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,h="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,h="right",c="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=h,n.verticalAlign=c,n}var lH="__zr_normal__",uH=lm.concat(["ignore"]),Tut=om(lm,function(n,e){return n[e]=!0,n},{ignore:!1}),$T={},Cut=new ai(0,0,0,0),fie=function(){function n(e){this.id=HNe(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,a=t.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(t),r.position!=null){var h=Cut;r.layoutRect?h.copy(r.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition($T,r,h):nG($T,r,h),a.x=$T.x,a.y=$T.y,o=$T.align,s=$T.verticalAlign;var c=r.origin;if(c&&r.rotation!=null){var f=void 0,d=void 0;c==="center"?(f=h.width*.5,d=h.height*.5):(f=_0(c[0],h.width),d=_0(c[1],h.height)),u=!0,a.originX=-a.x+f+(i?0:h.x),a.originY=-a.y+d+(i?0:h.y)}}r.rotation!=null&&(a.rotation=r.rotation);var v=r.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var p=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;p&&this.canBeInsideText()?(m=r.insideFill,y=r.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=r.outsideFill,y=r.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=ov,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?QK:JK},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&gv(t);r||(r=[255,255,255,1]);for(var i=r[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*i+(a?0:255)*(1-i);return r[3]=1,W1(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},Mt(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(dn(e))for(var r=e,i=Li(r),a=0;a0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(lH,!1,e)},n.prototype.useState=function(e,t,r,i){var a=e===lH,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(gi(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){rie("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var h=!!(u&&u.hoverLayer||i);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,f=this._textGuide;return c&&c.useState(e,t,r,h),f&&f.useState(e,t,r,h),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ov),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l0,v);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,f),g&&g.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ov)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var i=this.currentStates.slice(),a=gi(i,e),o=gi(i,t)>=0;a>=0?o?i.splice(a,1):i[a]=t:r&&!o&&i.push(t),this.useStates(i)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,i=0;i=0&&a.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,i=r.length,a=[],o=0;o0&&t.during&&a[0].during(function(v,p){t.during(p)});for(var f=0;f0||i.force&&!o.length){var E=void 0,T=void 0,C=void 0;if(s){T={},f&&(E={});for(var x=0;x<_;x++){var m=p[x];T[m]=t[m],f?E[m]=r[m]:t[m]=r[m]}}else if(f){C={};for(var x=0;x<_;x++){var m=p[x];C[m]=WO(t[m]),Mut(t,r,m)}}var S=new cie(t,!1,!1,c?To(v,function(M){return M.targetName===e}):null);S.targetName=e,i.scope&&(S.scope=i.scope),f&&E&&S.whenWithKeys(0,E,p),C&&S.whenWithKeys(0,C,p),S.whenWithKeys(u==null?500:u,s?T:r,p).delay(h||0),n.addAnimator(S,e),o.push(S)}}const S3e=fie;var w3e=function(n){$e(e,n);function e(t){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var r=this._children,i=0;i=0&&(i.splice(a,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var i=gi(this._children,t);return i>=0&&this.replaceAt(r,i),this},e.prototype.replaceAt=function(t,r){var i=this._children,a=i[r];if(t&&t!==this&&t.parent!==this&&t!==a){i[r]=t,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,i=this._children,a=gi(i,t);return a<0?this:(i.splice(a,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(n<=i)return o;if(n>=a)return s}else{if(n>=i)return o;if(n<=a)return s}else{if(n===i)return o;if(n===a)return s}return(n-i)/l*u+o}function xr(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return Or(n)?Nut(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Pl(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),E3e),n=(+n).toFixed(e),t?n:+n}function Op(n){return n.sort(function(e,t){return e-t}),n}function Ny(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return kut(n)}function kut(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,i=t>0?t:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-r)}function T3e(n,e){var t=Math.log,r=Math.LN10,i=Math.floor(t(n[1]-n[0])/r),a=Math.round(t(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Fut(n,e){var t=om(n,function(d,v){return d+(isNaN(v)?0:v)},0);if(t===0)return[];for(var r=Math.pow(10,e),i=Vt(n,function(d){return(isNaN(d)?0:d)/t*r*100}),a=r*100,o=Vt(i,function(d){return Math.floor(d)}),s=om(o,function(d,v){return d+v},0),l=Vt(i,function(d,v){return d-o[v]});su&&(u=l[c],h=c);++o[h],l[h]=0,++s}return Vt(o,function(d){return d/r})}function But(n,e){var t=Math.max(Ny(n),Ny(e)),r=n+e;return t>E3e?r:Pl(r,t)}var Mve=9007199254740991;function C3e(n){var e=Math.PI*2;return(n%e+e)%e}function iG(n){return n>-Ave&&n=10&&e++,e}function A3e(n,e){var t=die(n),r=Math.pow(10,t),i=n/r,a;return e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,n=a*r,t>=-20?+n.toFixed(t<0?-t:0):n}function fH(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),i=+n[r-1],a=t-r;return a?i+a*(n[r]-i):i}function Ive(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r=0||a&&gi(a,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var hht=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],cht=qE(hht),fht=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return cht(this,e,t)},n}(),tJ=new d3(50);function dht(n){if(typeof n=="string"){var e=tJ.get(n);return e&&e.image}else return n}function yie(n,e,t,r,i){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var a=tJ.get(n),o={hostEl:t,cb:r,cbPayload:i};return a?(e=a.image,!Hz(e)&&a.pending.push(o)):(e=s_.loadImage(n,Rve,Rve),e.__zrImageSrc=n,tJ.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function Rve(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=yv(t,e);return u>s&&(t="",u=0),s=n-u,i.ellipsis=t,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=n,i}function z3e(n,e){var t=e.containerWidth,r=e.font,i=e.contentWidth;if(!t)return"";var a=yv(n,r);if(a<=t)return n;for(var o=0;;o++){if(a<=i||o>=e.maxIterations){n+=e.ellipsis;break}var s=o===0?pht(n,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(n.length*i/a):0;n=n.substr(0,s),a=yv(n,r)}return n===""&&(n=e.placeholder),n}function pht(n,e,t,r){for(var i=0,a=0,o=n.length;ad&&u){var v=Math.floor(d/s);c=c.slice(0,v)}if(n&&a&&h!=null)for(var p=G3e(h,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;gs&&vH(t,n.substring(s,u),e,o),vH(t,l[2],e,o,l[1]),s=dH.lastIndex}si){S>0?(y.tokens=y.tokens.slice(0,S),g(y,x,_),t.lines=t.lines.slice(0,m+1)):t.lines=t.lines.slice(0,m);break e}var M=b.width,I=M==null||M==="auto";if(typeof M=="string"&&M.charAt(M.length-1)==="%")w.percentWidth=M,h.push(w),w.contentWidth=yv(w.text,C);else{if(I){var R=b.backgroundColor,k=R&&R.image;k&&(k=dht(k),Hz(k)&&(w.width=Math.max(w.width,k.width*A/k.height)))}var D=v&&r!=null?r-x:null;D!=null&&D0&&v+r.accumWidth>r.width&&(h=e.split(` +`),u=!0),r.accumWidth=v}else{var p=U3e(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=p.accumWidth+d,c=p.linesWidths,h=p.lines}}else h=e.split(` +`);for(var g=0;g=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var Sht=om(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function wht(n){return xht(n)?!!Sht[n]:!0}function U3e(n,e,t,r,i){for(var a=[],o=[],s="",l="",u=0,h=0,c=0;ct:i+h+d>t){h?(s||l)&&(v?(s||(s=l,l="",u=0,h=u),a.push(s),o.push(h-u),l+=f,u+=d,s="",h=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(h),s=f,h=d)):v?(a.push(l),o.push(u),l=f,u=d):(a.push(f),o.push(d));continue}h+=d,v?(l+=f,u+=d):(l&&(s+=l,l="",u=0),s+=f)}return!a.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(h)),a.length===1&&(h+=i),{accumWidth:h,lines:a,linesWidths:o}}var rJ="__zr_style_"+Math.round(Math.random()*10),EE={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},jz={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};EE[rJ]=!0;var Nve=["z","z2","invisible"],bht=["invisible"],Eht=function(n){$e(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var r=Li(t),i=0;i1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(JF[0]=mH(i)*t+n,JF[1]=yH(i)*r+e,QF[0]=mH(a)*t+n,QF[1]=yH(a)*r+e,u(s,JF,QF),h(l,JF,QF),i=i%Kw,i<0&&(i=i+Kw),a=a%Kw,a<0&&(a=a+Kw),i>a&&!o?a+=Kw:ii&&(e4[0]=mH(d)*t+n,e4[1]=yH(d)*r+e,u(s,e4,s),h(l,e4,l))}var Ho={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Jw=[],Qw=[],J0=[],rx=[],Q0=[],ey=[],_H=Math.min,xH=Math.max,eb=Math.cos,tb=Math.sin,qm=Math.abs,nJ=Math.PI,Tx=nJ*2,SH=typeof Float32Array<"u",jL=[];function wH(n){var e=Math.round(n/nJ*1e8)/1e8;return e%2*nJ}function V3e(n,e){var t=wH(n[0]);t<0&&(t+=Tx);var r=t-n[0],i=n[1];i+=r,!e&&i-t>=Tx?i=t+Tx:e&&t-i>=Tx?i=t-Tx:!e&&t>i?i=t+(Tx-wH(t-i)):e&&t0&&(this._ux=qm(r/rG/e)||0,this._uy=qm(r/rG/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Ho.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=qm(e-this._xi),i=qm(t-this._yi),a=r>this._ux||i>this._uy;if(this.addData(Ho.L,e,t),this._ctx&&a&&this._ctx.lineTo(e,t),a)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=r*r+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,r,i,a,o){return this._drawPendingPt(),this.addData(Ho.C,e,t,r,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,i,a,o),this._xi=a,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,r,i){return this._drawPendingPt(),this.addData(Ho.Q,e,t,r,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,i),this._xi=r,this._yi=i,this},n.prototype.arc=function(e,t,r,i,a,o){this._drawPendingPt(),jL[0]=i,jL[1]=a,V3e(jL,o),i=jL[0],a=jL[1];var s=a-i;return this.addData(Ho.A,e,t,r,r,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,i,a,o),this._xi=eb(a)*r+e,this._yi=tb(a)*r+t,this},n.prototype.arcTo=function(e,t,r,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,i,a),this},n.prototype.rect=function(e,t,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,i),this.addData(Ho.R,e,t,r,i),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ho.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&SH&&(this.data=new Float32Array(t));for(var r=0;rh.length&&(this._expandData(),h=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){J0[0]=J0[1]=Q0[0]=Q0[1]=Number.MAX_VALUE,rx[0]=rx[1]=ey[0]=ey[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,i=0,a=0,o;for(o=0;or||qm(_)>i||f===t-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case Ho.C:{var x=e[f++],S=e[f++],g=e[f++],m=e[f++],w=e[f++],b=e[f++];p=Wlt(a,o,x,S,g,m,w,b,10),a=w,o=b;break}case Ho.Q:{var x=e[f++],S=e[f++],g=e[f++],m=e[f++];p=jlt(a,o,x,S,g,m,10),a=g,o=m;break}case Ho.A:var E=e[f++],T=e[f++],C=e[f++],A=e[f++],M=e[f++],I=e[f++],R=I+M;f+=1,e[f++],v&&(s=eb(M)*C+E,l=tb(M)*A+T),p=xH(C,A)*_H(Tx,Math.abs(I)),a=eb(R)*C+E,o=tb(R)*A+T;break;case Ho.R:{s=a=e[f++],l=o=e[f++];var k=e[f++],D=e[f++];p=k*2+D*2;break}case Ho.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[c++]=p,h+=p)}return this._pathLen=h,h},n.prototype.rebuildPath=function(e,t){var r=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,h,c,f,d=t<1,v,p,g=0,m=0,y,_=0,x,S;if(d&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,y=t*p,!y))return;e:for(var w=0;w0&&(e.lineTo(x,S),_=0),b){case Ho.M:s=u=r[w++],l=h=r[w++],e.moveTo(u,h);break;case Ho.L:{c=r[w++],f=r[w++];var T=qm(c-u),C=qm(f-h);if(T>i||C>a){if(d){var A=v[m++];if(g+A>y){var M=(y-g)/A;e.lineTo(u*(1-M)+c*M,h*(1-M)+f*M);break e}g+=A}e.lineTo(c,f),u=c,h=f,_=0}else{var I=T*T+C*C;I>_&&(x=c,S=f,_=I)}break}case Ho.C:{var R=r[w++],k=r[w++],D=r[w++],G=r[w++],V=r[w++],z=r[w++];if(d){var A=v[m++];if(g+A>y){var M=(y-g)/A;DS(u,R,D,V,M,Jw),DS(h,k,G,z,M,Qw),e.bezierCurveTo(Jw[1],Qw[1],Jw[2],Qw[2],Jw[3],Qw[3]);break e}g+=A}e.bezierCurveTo(R,k,D,G,V,z),u=V,h=z;break}case Ho.Q:{var R=r[w++],k=r[w++],D=r[w++],G=r[w++];if(d){var A=v[m++];if(g+A>y){var M=(y-g)/A;tD(u,R,D,M,Jw),tD(h,k,G,M,Qw),e.quadraticCurveTo(Jw[1],Qw[1],Jw[2],Qw[2]);break e}g+=A}e.quadraticCurveTo(R,k,D,G),u=D,h=G;break}case Ho.A:var j=r[w++],Z=r[w++],Y=r[w++],le=r[w++],H=r[w++],Q=r[w++],ie=r[w++],oe=!r[w++],se=Y>le?Y:le,me=qm(Y-le)>.001,Ce=H+Q,Le=!1;if(d){var A=v[m++];g+A>y&&(Ce=H+Q*(y-g)/A,Le=!0),g+=A}if(me&&e.ellipse?e.ellipse(j,Z,Y,le,ie,H,Ce,oe):e.arc(j,Z,se,H,Ce,oe),Le)break e;E&&(s=eb(H)*Y+j,l=tb(H)*le+Z),u=eb(Ce)*Y+j,h=tb(Ce)*le+Z;break;case Ho.R:s=u=r[w],l=h=r[w+1],c=r[w++],f=r[w++];var re=r[w++],yt=r[w++];if(d){var A=v[m++];if(g+A>y){var je=y-g;e.moveTo(c,f),e.lineTo(c+_H(je,re),f),je-=re,je>0&&e.lineTo(c+re,f+_H(je,yt)),je-=yt,je>0&&e.lineTo(c+xH(re-je,0),f+yt),je-=re,je>0&&e.lineTo(c,f+xH(yt-je,0));break e}g+=A}e.rect(c,f,re,yt);break;case Ho.Z:if(d){var A=v[m++];if(g+A>y){var M=(y-g)/A;e.lineTo(u*(1-M)+s*M,h*(1-M)+l*M);break e}g+=A}e.closePath(),u=s,h=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=Ho,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();const hm=Iht;function Nx(n,e,t,r,i,a,o){if(i===0)return!1;var s=i,l=0,u=n;if(o>e+s&&o>r+s||on+s&&a>t+s||ae+c&&h>r+c&&h>a+c&&h>s+c||hn+c&&u>t+c&&u>i+c&&u>o+c||ue+u&&l>r+u&&l>a+u||ln+u&&s>t+u&&s>i+u||st||h+ui&&(i+=XL);var f=Math.atan2(l,s);return f<0&&(f+=XL),f>=r&&f<=i||f+XL>=r&&f+XL<=i}function g1(n,e,t,r,i,a){if(a>e&&a>r||ai?s:0}var nx=hm.CMD,rb=Math.PI*2,Oht=1e-4;function Rht(n,e){return Math.abs(n-e)e&&u>r&&u>a&&u>s||u1&&Dht(),d=Qu(e,r,a,s,gp[0]),f>1&&(v=Qu(e,r,a,s,gp[1]))),f===2?ge&&s>r&&s>a||s=0&&u<=1){for(var h=0,c=Ph(e,r,a,u),f=0;ft||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Sf[0]=-l,Sf[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=rb-1e-4){r=0,i=rb;var h=a?1:-1;return o>=Sf[0]+n&&o<=Sf[1]+n?h:0}if(r>i){var c=r;r=i,i=c}r<0&&(r+=rb,i+=rb);for(var f=0,d=0;d<2;d++){var v=Sf[d];if(v+n>o){var p=Math.atan2(s,v),h=a?1:-1;p<0&&(p=rb+p),(p>=r&&p<=i||p+rb>=r&&p+rb<=i)&&(p>Math.PI/2&&p1&&(t||(s+=g1(l,u,h,c,r,i))),g&&(l=a[v],u=a[v+1],h=l,c=u),p){case nx.M:h=a[v++],c=a[v++],l=h,u=c;break;case nx.L:if(t){if(Nx(l,u,a[v],a[v+1],e,r,i))return!0}else s+=g1(l,u,a[v],a[v+1],r,i)||0;l=a[v++],u=a[v++];break;case nx.C:if(t){if(Lht(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,r,i))return!0}else s+=Nht(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],r,i)||0;l=a[v++],u=a[v++];break;case nx.Q:if(t){if($3e(l,u,a[v++],a[v++],a[v],a[v+1],e,r,i))return!0}else s+=kht(l,u,a[v++],a[v++],a[v],a[v+1],r,i)||0;l=a[v++],u=a[v++];break;case nx.A:var m=a[v++],y=a[v++],_=a[v++],x=a[v++],S=a[v++],w=a[v++];v+=1;var b=!!(1-a[v++]);f=Math.cos(S)*_+m,d=Math.sin(S)*x+y,g?(h=f,c=d):s+=g1(l,u,f,d,r,i);var E=(r-m)*x/_+m;if(t){if(Pht(m,y,x,S,S+w,b,e,E,i))return!0}else s+=Fht(m,y,x,S,S+w,b,E,i);l=Math.cos(S+w)*_+m,u=Math.sin(S+w)*x+y;break;case nx.R:h=l=a[v++],c=u=a[v++];var T=a[v++],C=a[v++];if(f=h+T,d=c+C,t){if(Nx(h,c,f,c,e,r,i)||Nx(f,c,f,d,e,r,i)||Nx(f,d,h,d,e,r,i)||Nx(h,d,h,c,e,r,i))return!0}else s+=g1(f,c,f,d,r,i),s+=g1(h,d,h,c,r,i);break;case nx.Z:if(t){if(Nx(l,u,h,c,e,r,i))return!0}else s+=g1(l,u,h,c,r,i);l=h,u=c;break}}return!t&&!Rht(u,c)&&(s+=g1(l,u,h,c,r,i)||0),s!==0}function Bht(n,e,t){return W3e(n,0,!1,e,t)}function Ght(n,e,t,r){return W3e(n,e,!0,t,r)}var aG=sn({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},EE),zht={style:sn({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},jz.style)},bH=lm.concat(["invisible","culling","z","z2","zlevel","parent"]),Uht=function(n){$e(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){t.buildPath(l,t.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s.5?JK:r>.2?but:QK}else if(t)return QK}return JK},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(Or(r)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=eG(t,0)0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,i=!t;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&BC)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;u=Math.max(u,h==null?4:h)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),a=this.getBoundingRect(),o=this.style;if(t=i[0],r=i[1],a.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Ght(s,l/u,t,r)))return!0}if(this.hasFill())return Bht(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=BC,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var i=this.shape;return i||(i=this.shape={}),typeof t=="string"?i[t]=r:Mt(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&BC)},e.prototype.createStyle=function(t){return zz(aG,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=Mt({},this.shape))},e.prototype._applyStateObj=function(t,r,i,a,o,s){n.prototype._applyStateObj.call(this,t,r,i,a,o,s);var l=!(r&&a),u;if(r&&r.shape?o?a?u=r.shape:(u=Mt({},i.shape),Mt(u,r.shape)):(u=Mt({},a?this.shape:i.shape),Mt(u,r.shape)):l&&(u=i.shape),u)if(o){this.shape=Mt({},this.shape);for(var h={},c=Li(u),f=0;f0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return zz(Vht,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var i=v3(r,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var a=t.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Vp);H3e.prototype.type="tspan";const aD=H3e;var $ht=sn({x:0,y:0},EE),Wht={style:sn({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},jz.style)};function Hht(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var j3e=function(n){$e(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return zz($ht,t)},e.prototype._getSize=function(t){var r=this.style,i=r[t];if(i!=null)return i;var a=Hht(r.image)?r.image:this.__image;if(!a)return 0;var o=t==="width"?"height":"width",s=r[o];return s==null?a[t]:a[t]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Wht},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ai(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Vp);j3e.prototype.type="image";const xc=j3e;function jht(n,e){var t=e.x,r=e.y,i=e.width,a=e.height,o=e.r,s,l,u,h;i<0&&(t=t+i,i=-i),a<0&&(r=r+a,a=-a),typeof o=="number"?s=l=u=h=o:o instanceof Array?o.length===1?s=l=u=h=o[0]:o.length===2?(s=u=o[0],l=h=o[1]):o.length===3?(s=o[0],l=h=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],h=o[3]):s=l=u=h=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+h>i&&(c=u+h,u*=i/c,h*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+h>a&&(c=s+h,s*=a/c,h*=a/c),n.moveTo(t+s,r),n.lineTo(t+i-l,r),l!==0&&n.arc(t+i-l,r+l,l,-Math.PI/2,0),n.lineTo(t+i,r+a-u),u!==0&&n.arc(t+i-u,r+a-u,u,0,Math.PI/2),n.lineTo(t+h,r+a),h!==0&&n.arc(t+h,r+a-h,h,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var cA=Math.round;function X3e(n,e,t){if(!!e){var r=e.x1,i=e.x2,a=e.y1,o=e.y2;n.x1=r,n.x2=i,n.y1=a,n.y2=o;var s=t&&t.lineWidth;return s&&(cA(r*2)===cA(i*2)&&(n.x1=n.x2=rE(r,s,!0)),cA(a*2)===cA(o*2)&&(n.y1=n.y2=rE(a,s,!0))),n}}function Y3e(n,e,t){if(!!e){var r=e.x,i=e.y,a=e.width,o=e.height;n.x=r,n.y=i,n.width=a,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=rE(r,s,!0),n.y=rE(i,s,!0),n.width=Math.max(rE(r+a,s,!1)-n.x,a===0?0:1),n.height=Math.max(rE(i+o,s,!1)-n.y,o===0?0:1)),n}}function rE(n,e,t){if(!e)return n;var r=cA(n*2);return(r+cA(e))%2===0?r/2:(r+(t?1:-1))/2}var Xht=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),Yht={},q3e=function(n){$e(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Xht},e.prototype.buildPath=function(t,r){var i,a,o,s;if(this.subPixelOptimize){var l=Y3e(Yht,r,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,a=r.y,o=r.width,s=r.height;r.r?jht(t,r):t.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Si);q3e.prototype.type="rect";const ta=q3e;var zve={fill:"#000"},Uve=2,qht={style:sn({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},jz.style)},Z3e=function(n){$e(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=zve,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,M=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),I=o.calculatedLineHeight,R=0;R=0&&(R=w[I],R.align==="right");)this._placeToken(R,t,E,m,M,"right",_),T-=R.width,M-=R.width,I--;for(A+=(a-(A-g)-(y-M)-T)/2;C<=I;)R=w[C],this._placeToken(R,t,E,m,A+R.width/2,"center",_),A+=R.width,C++;m+=E}},e.prototype._placeToken=function(t,r,i,a,o,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var h=t.verticalAlign,c=a+i/2;h==="top"?c=a+t.height/2:h==="bottom"&&(c=a+i-t.height/2);var f=!t.isLineHolder&&EH(u);f&&this._renderBackground(u,r,s==="right"?o-t.width:s==="center"?o-t.width/2:o,c-t.height/2,t.width,t.height);var d=!!u.backgroundColor,v=t.textPadding;v&&(o=Xve(o,s,v),c-=t.height/2-v[0]-t.innerHeight/2);var p=this._getOrCreateChild(aD),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,x=jve("fill"in u?u.fill:"fill"in r?r.fill:(y=!0,m.fill)),S=Hve("stroke"in u?u.stroke:"stroke"in r?r.stroke:!d&&!l&&(!m.autoStroke||y)?(_=Uve,m.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;g.text=t.text,g.x=o,g.y=c,w&&(g.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,g.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||RS,g.opacity=qy(u.opacity,r.opacity,1),$ve(g,u),S&&(g.lineWidth=qy(u.lineWidth,r.lineWidth,_),g.lineDash=ni(u.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=S),x&&(g.fill=x);var b=t.contentWidth,E=t.contentHeight;p.setBoundingRect(new ai(QP(g.x,b,g.textAlign),GC(g.y,E,g.textBaseline),b,E))},e.prototype._renderBackground=function(t,r,i,a,o,s){var l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,f=l&&!c,d=t.borderRadius,v=this,p,g;if(f||t.lineHeight||u&&h){p=this._getOrCreateChild(ta),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=d,p.dirtyShape()}if(f){var y=p.style;y.fill=l||null,y.fillOpacity=ni(t.fillOpacity,1)}else if(c){g=this._getOrCreateChild(xc),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&h){var y=p.style;y.lineWidth=u,y.stroke=h,y.strokeOpacity=ni(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(p||g).style;x.shadowBlur=t.shadowBlur||0,x.shadowColor=t.shadowColor||"transparent",x.shadowOffsetX=t.shadowOffsetX||0,x.shadowOffsetY=t.shadowOffsetY||0,x.opacity=qy(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return J3e(t)&&(r=[t.fontStyle,t.fontWeight,K3e(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Qg(r)||t.textFont||t.font},e}(Vp),Zht={left:!0,right:1,center:1},Kht={top:1,bottom:1,middle:1},Vve=["fontStyle","fontWeight","fontSize","fontFamily"];function K3e(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?Qne+"px":n+"px"}function $ve(n,e){for(var t=0;t=0,a=!1;if(n instanceof Si){var o=Q3e(n),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(WT(s)||WT(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(a=!0,r=Mt({},r),u=Mt({},u),u.fill=s):!WT(u.fill)&&WT(s)?(a=!0,r=Mt({},r),u=Mt({},u),u.fill=Jve(s)):!WT(u.stroke)&&WT(l)&&(a||(r=Mt({},r),u=Mt({},u)),u.stroke=Jve(l)),r.style=u}}if(r&&r.z2==null){a||(r=Mt({},r));var h=n.z2EmphasisLift;r.z2=n.z2+(h!=null?h:PI)}return r}function ict(n,e,t){if(t&&t.z2==null){t=Mt({},t);var r=n.z2SelectLift;t.z2=n.z2+(r!=null?r:Qht)}return t}function act(n,e,t){var r=gi(n.currentStates,e)>=0,i=n.style.opacity,a=r?null:rct(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=Mt({},t),o=Mt({opacity:r?i:a.opacity*.1},o),t.style=o),t}function TH(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return nct(this,n,e,t);if(n==="blur")return act(this,n,t);if(n==="select")return ict(this,n,t)}return t}function ZE(n){n.stateProxy=TH;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=TH),t&&(t.stateProxy=TH)}function epe(n,e){!oke(n,e)&&!n.__highByOuter&&N_(n,eke)}function tpe(n,e){!oke(n,e)&&!n.__highByOuter&&N_(n,tke)}function h_(n,e){n.__highByOuter|=1<<(e||0),N_(n,eke)}function c_(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&N_(n,tke)}function nke(n){N_(n,xie)}function Sie(n){N_(n,rke)}function ike(n){N_(n,ect)}function ake(n){N_(n,tct)}function oke(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function ske(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(i,a){var o=mie(a),s=i==="series",l=s?n.getViewOfSeriesModel(a):n.getViewOfComponentModel(a);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){rke(u)}),s&&t.push(a)),o.isBlured=!1}),te(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(t,!1,e)})}function aJ(n,e,t,r){var i=r.getModel();t=t||"coordinateSystem";function a(u,h){for(var c=0;c0){var s={dataIndex:o,seriesIndex:t.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function CE(n,e,t){nE(n,!0),N_(n,ZE),sJ(n,e,t)}function cct(n){nE(n,!1)}function dl(n,e,t,r){r?cct(n):CE(n,e,t)}function sJ(n,e,t){var r=Bn(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var npe=["emphasis","blur","select"],fct={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function dc(n,e,t,r){t=t||"itemStyle";for(var i=0;i1&&(o*=CH(v),s*=CH(v));var p=(i===a?-1:1)*CH((o*o*(s*s)-o*o*(d*d)-s*s*(f*f))/(o*o*(d*d)+s*s*(f*f)))||0,g=p*o*d/s,m=p*-s*f/o,y=(n+t)/2+r4(c)*g-t4(c)*m,_=(e+r)/2+t4(c)*g+r4(c)*m,x=spe([1,0],[(f-g)/o,(d-m)/s]),S=[(f-g)/o,(d-m)/s],w=[(-1*f-g)/o,(-1*d-m)/s],b=spe(S,w);if(uJ(S,w)<=-1&&(b=YL),uJ(S,w)>=1&&(b=0),b<0){var E=Math.round(b/YL*1e6)/1e6;b=YL*2+E%2*YL}h.addData(u,y,_,o,s,x,b,c,a)}var mct=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,_ct=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function xct(n){var e=new hm;if(!n)return e;var t=0,r=0,i=t,a=r,o,s=hm.CMD,l=n.match(mct);if(!l)return e;for(var u=0;uR*R+k*k&&(E=C,T=A),{cx:E,cy:T,x0:-h,y0:-c,x1:E*(i/S-1),y1:T*(i/S-1)}}function Act(n){var e;if(Gt(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function Mct(n,e){var t,r=eO(e.r,0),i=eO(e.r0||0,0),a=r>0,o=i>0;if(!(!a&&!o)){if(a||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var h=e.cx,c=e.cy,f=!!e.clockwise,d=upe(u-l),v=d>AH&&d%AH;if(v>Pg&&(d=v),!(r>Pg))n.moveTo(h,c);else if(d>AH-Pg)n.moveTo(h+r*jT(l),c+r*nb(l)),n.arc(h,c,r,l,u,!f),i>Pg&&(n.moveTo(h+i*jT(u),c+i*nb(u)),n.arc(h,c,i,u,l,f));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,x=void 0,S=void 0,w=void 0,b=void 0,E=void 0,T=void 0,C=void 0,A=void 0,M=void 0,I=void 0,R=void 0,k=r*jT(l),D=r*nb(l),G=i*jT(u),V=i*nb(u),z=d>Pg;if(z){var j=e.cornerRadius;j&&(t=Act(j),p=t[0],g=t[1],m=t[2],y=t[3]);var Z=upe(r-i)/2;if(_=ty(Z,m),x=ty(Z,y),S=ty(Z,p),w=ty(Z,g),T=b=eO(_,x),C=E=eO(S,w),(b>Pg||E>Pg)&&(A=r*jT(u),M=r*nb(u),I=i*jT(l),R=i*nb(l),dPg){var me=ty(m,T),Ce=ty(y,T),Le=n4(I,R,k,D,r,me,f),re=n4(A,M,G,V,r,Ce,f);n.moveTo(h+Le.cx+Le.x0,c+Le.cy+Le.y0),T0&&n.arc(h+Le.cx,c+Le.cy,me,Tc(Le.y0,Le.x0),Tc(Le.y1,Le.x1),!f),n.arc(h,c,r,Tc(Le.cy+Le.y1,Le.cx+Le.x1),Tc(re.cy+re.y1,re.cx+re.x1),!f),Ce>0&&n.arc(h+re.cx,c+re.cy,Ce,Tc(re.y1,re.x1),Tc(re.y0,re.x0),!f))}else n.moveTo(h+k,c+D),n.arc(h,c,r,l,u,!f);if(!(i>Pg)||!z)n.lineTo(h+G,c+V);else if(C>Pg){var me=ty(p,C),Ce=ty(g,C),Le=n4(G,V,A,M,i,-Ce,f),re=n4(k,D,I,R,i,-me,f);n.lineTo(h+Le.cx+Le.x0,c+Le.cy+Le.y0),C0&&n.arc(h+Le.cx,c+Le.cy,Ce,Tc(Le.y0,Le.x0),Tc(Le.y1,Le.x1),!f),n.arc(h,c,i,Tc(Le.cy+Le.y1,Le.cx+Le.x1),Tc(re.cy+re.y1,re.cx+re.x1),f),me>0&&n.arc(h+re.cx,c+re.cy,me,Tc(re.y1,re.x1),Tc(re.y0,re.x0),!f))}else n.lineTo(h+G,c+V),n.arc(h,c,i,u,l,f)}n.closePath()}}}var Ict=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),gke=function(n){$e(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Ict},e.prototype.buildPath=function(t,r){Mct(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Si);gke.prototype.type="sector";const wd=gke;var Lct=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),yke=function(n){$e(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Lct},e.prototype.buildPath=function(t,r){var i=r.cx,a=r.cy,o=Math.PI*2;t.moveTo(i+r.r,a),t.arc(i,a,r.r,0,o,!1),t.moveTo(i+r.r0,a),t.arc(i,a,r.r0,0,o,!0)},e}(Si);yke.prototype.type="ring";const Zz=yke;function Pct(n,e,t,r){var i=[],a=[],o=[],s=[],l,u,h,c;if(r){h=[1/0,1/0],c=[-1/0,-1/0];for(var f=0,d=n.length;f=2){if(r){var a=Pct(i,r,t,e.smoothConstraint);n.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(t?o:o-1);s++){var l=a[s*2],u=a[s*2+1],h=i[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{n.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;sab[1]){if(s=!1,a)return s;var h=Math.abs(ab[0]-ib[1]),c=Math.abs(ib[0]-ab[1]);Math.min(h,c)>i.len()&&(h0){var c=h.duration,f=h.delay,d=h.easing,v={duration:c,delay:f||0,easing:d,done:a,force:!!a||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,v):e.animateTo(t,v)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),a&&a()}function ma(n,e,t,r,i,a){Aie("update",n,e,t,r,i,a)}function Is(n,e,t,r,i,a){Aie("enter",n,e,t,r,i,a)}function kA(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function fpe(n){return!n.isGroup}function Kct(n){return n.shape!=null}function m3(n,e,t){if(!n||!e)return;function r(o){var s={};return o.traverse(function(l){fpe(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Kct(o)&&(s.shape=Mt({},o.shape)),s}var a=r(n);e.traverse(function(o){if(fpe(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),ma(o,l,t,Bn(o).dataIndex)}}})}function Lke(n,e){return Vt(n,function(t){var r=t[0];r=lG(r,e.x),r=uG(r,e.x+e.width);var i=t[1];return i=lG(i,e.y),i=uG(i,e.y+e.height),[r,i]})}function Jct(n,e){var t=lG(n.x,e.x),r=uG(n.x+n.width,e.x+e.width),i=lG(n.y,e.y),a=uG(n.y+n.height,e.y+e.height);if(r>=t&&a>=i)return{x:t,y:i,width:r-t,height:a-i}}function _3(n,e,t){var r=Mt({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(i.image=n.slice(8),sn(i,t),new xc(r)):Jz(n.replace("path://",""),r,t,"center")}function tO(n,e,t,r,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=MH(d,v,h,c)/f;return!(g<0||g>1)}function MH(n,e,t,r){return n*r-t*e}function Qct(n){return n<=1e-6&&n>=-1e-6}function RI(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,i=Or(e)?{formatter:e}:e,a=t.mainType,o=t.componentIndex,s={componentType:a,name:r,$vars:["name"]};s[a+"Index"]=o;var l=n.formatterParamsExtra;l&&te(Li(l),function(h){Fr(s,h)||(s[h]=l[h],s.$vars.push(h))});var u=Bn(n.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:r,option:sn({content:r,formatterParams:s},i)}}function dpe(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function _w(n,e){if(n)if(Gt(n))for(var t=0;t=0&&s.push(l)}),s}}function xw(n,e){return ii(ii({},n,!0),e,!0)}const fft={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},dft={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var cG="ZH",Iie="EN",uD=Iie,MB={},Lie={},Bke=sa.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(cG)>-1?cG:uD}():uD;function Gke(n,e){n=n.toUpperCase(),Lie[n]=new as(e),MB[n]=e}function vft(n){if(Or(n)){var e=MB[n.toUpperCase()]||{};return n===cG||n===Iie?Sn(e):ii(Sn(e),Sn(MB[uD]),!1)}else return ii(Sn(n),Sn(MB[uD]),!1)}function fJ(n){return Lie[n]}function pft(){return Lie[uD]}Gke(Iie,fft);Gke(cG,dft);var Pie=1e3,Oie=Pie*60,ZO=Oie*60,Ap=ZO*24,mpe=Ap*365,rO={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},o4="{yyyy}-{MM}-{dd}",_pe={year:"{yyyy}",month:"{yyyy}-{MM}",day:o4,hour:o4+" "+rO.hour,minute:o4+" "+rO.minute,second:o4+" "+rO.second,millisecond:rO.none},PH=["year","month","day","hour","minute","second","millisecond"],zke=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ix(n,e){return n+="","0000".substr(0,e-n.length)+n}function FA(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function gft(n){return n===FA(n)}function yft(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function tU(n,e,t,r){var i=um(n),a=i[Rie(t)](),o=i[BA(t)]()+1,s=Math.floor((o-1)/3)+1,l=i[rU(t)](),u=i["get"+(t?"UTC":"")+"Day"](),h=i[hD(t)](),c=(h-1)%12+1,f=i[nU(t)](),d=i[iU(t)](),v=i[aU(t)](),p=r instanceof as?r:fJ(r||Bke)||pft(),g=p.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),_=g.get("dayOfWeek"),x=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,ix(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,ix(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ix(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ix(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,ix(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,ix(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,ix(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,ix(v,3)).replace(/{S}/g,v+"")}function mft(n,e,t,r,i){var a=null;if(Or(t))a=t;else if(rn(t))a=t(n.value,e,{level:n.level});else{var o=Mt({},rO);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(Gt(a)){var c=n.level==null?0:n.level>=0?n.level:a.length+n.level;c=Math.min(c,a.length-1),a=a[c]}}return tU(new Date(n.value),a,i,r)}function Uke(n,e){var t=um(n),r=t[BA(e)]()+1,i=t[rU(e)](),a=t[hD(e)](),o=t[nU(e)](),s=t[iU(e)](),l=t[aU(e)](),u=l===0,h=u&&s===0,c=h&&o===0,f=c&&a===0,d=f&&i===1,v=d&&r===1;return v?"year":d?"month":f?"day":c?"hour":h?"minute":u?"second":"millisecond"}function xpe(n,e,t){var r=ha(n)?um(n):n;switch(e=e||Uke(n,t),e){case"year":return r[Rie(t)]();case"half-year":return r[BA(t)]()>=6?1:0;case"quarter":return Math.floor((r[BA(t)]()+1)/4);case"month":return r[BA(t)]();case"day":return r[rU(t)]();case"half-day":return r[hD(t)]()/24;case"hour":return r[hD(t)]();case"minute":return r[nU(t)]();case"second":return r[iU(t)]();case"millisecond":return r[aU(t)]()}}function Rie(n){return n?"getUTCFullYear":"getFullYear"}function BA(n){return n?"getUTCMonth":"getMonth"}function rU(n){return n?"getUTCDate":"getDate"}function hD(n){return n?"getUTCHours":"getHours"}function nU(n){return n?"getUTCMinutes":"getMinutes"}function iU(n){return n?"getUTCSeconds":"getSeconds"}function aU(n){return n?"getUTCMilliseconds":"getMilliseconds"}function _ft(n){return n?"setUTCFullYear":"setFullYear"}function Vke(n){return n?"setUTCMonth":"setMonth"}function $ke(n){return n?"setUTCDate":"setDate"}function Wke(n){return n?"setUTCHours":"setHours"}function Hke(n){return n?"setUTCMinutes":"setMinutes"}function jke(n){return n?"setUTCSeconds":"setSeconds"}function Xke(n){return n?"setUTCMilliseconds":"setMilliseconds"}function Yke(n){if(!M3e(n))return Or(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function qke(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var kI=aie;function dJ(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(h){return h&&Qg(h)?h:"-"}function a(h){return!!(h!=null&&!isNaN(h)&&isFinite(h))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?um(n):n;if(isNaN(+l)){if(s)return"-"}else return tU(l,r,t)}if(e==="ordinal")return OK(n)?i(n):ha(n)&&a(n)?n+"":"-";var u=u_(n);return a(u)?Yke(u):OK(n)?i(n):typeof n=="boolean"?n+"":"-"}var Spe=["a","b","c","d","e","f","g"],OH=function(n,e){return"{"+n+(e==null?"":e)+"}"};function Zke(n,e,t){Gt(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],a=0;a':'';var o=t.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function KE(n,e){return e=e||"transparent",Or(n)?n:dn(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function fG(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var IB=te,Kke=["left","right","top","bottom","width","height"],iE=[["width","left","right"],["height","top","bottom"]];function Die(n,e,t,r,i){var a=0,o=0;r==null&&(r=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var h=l.getBoundingRect(),c=e.childAt(u+1),f=c&&c.getBoundingRect(),d,v;if(n==="horizontal"){var p=h.width+(f?-f.x+h.x:0);d=a+p,d>r||l.newline?(a=0,d=p,o+=s+t,s=h.height):s=Math.max(s,h.height)}else{var g=h.height+(f?-f.y+h.y:0);v=o+g,v>i||l.newline?(a+=s+t,o=0,v=g,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),n==="horizontal"?a=d+t:o=v+t)})}var ME=Die;Un(Die,"vertical");Un(Die,"horizontal");function wft(n,e,t){var r=e.width,i=e.height,a=xr(n.left,r),o=xr(n.top,i),s=xr(n.right,r),l=xr(n.bottom,i);return(isNaN(a)||isNaN(parseFloat(n.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(n.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=i),t=kI(t||0),{width:Math.max(s-a-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function Uu(n,e,t){t=kI(t||0);var r=e.width,i=e.height,a=xr(n.left,r),o=xr(n.top,i),s=xr(n.right,r),l=xr(n.bottom,i),u=xr(n.width,r),h=xr(n.height,i),c=t[2]+t[0],f=t[1]+t[3],d=n.aspect;switch(isNaN(u)&&(u=r-s-f-a),isNaN(h)&&(h=i-l-c-o),d!=null&&(isNaN(u)&&isNaN(h)&&(d>r/i?u=r*.8:h=i*.8),isNaN(u)&&(u=d*h),isNaN(h)&&(h=u/d)),isNaN(a)&&(a=r-s-u-f),isNaN(o)&&(o=i-l-h-c),n.left||n.right){case"center":a=r/2-u/2-t[3];break;case"right":a=r-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=i/2-h/2-t[0];break;case"bottom":o=i-h-c;break}a=a||0,o=o||0,isNaN(u)&&(u=r-f-a-(s||0)),isNaN(h)&&(h=i-c-o-(l||0));var v=new ai(a+t[3],o+t[0],u,h);return v.margin=t,v}function oU(n,e,t,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||n,a.x=n.x,a.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new ai(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var h=n.getLocalTransform();u=u.clone(),u.applyTransform(h)}var c=Uu(sn({width:u.width,height:u.height},e),t,r),f=o?c.x-u.x:0,d=s?c.y-u.y:0;return l==="raw"?(a.x=f,a.y=d):(a.x+=f,a.y+=d),a===n&&n.markRedraw(),!0}function bft(n,e){return n[iE[e][0]]!=null||n[iE[e][1]]!=null&&n[iE[e][2]]!=null}function cD(n){var e=n.layoutMode||n.constructor.layoutMode;return dn(e)?e:e?{type:e}:null}function kS(n,e,t){var r=t&&t.ignoreSize;!Gt(r)&&(r=[r,r]);var i=o(iE[0],0),a=o(iE[1],1);u(iE[0],n,i),u(iE[1],n,a);function o(h,c){var f={},d=0,v={},p=0,g=2;if(IB(h,function(_){v[_]=n[_]}),IB(h,function(_){s(e,_)&&(f[_]=v[_]=e[_]),l(f,_)&&d++,l(v,_)&&p++}),r[c])return l(e,h[1])?v[h[2]]=null:l(e,h[2])&&(v[h[1]]=null),v;if(p===g||!d)return v;if(d>=g)return f;for(var m=0;m=0;l--)s=ii(s,i[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var i=t+"Index",a=t+"Id";return p3(this.ecModel,t,{index:this.get(i,!0),id:this.get(a,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(as);B3e(BI,as);Wz(BI);hft(BI);cft(BI,Tft);function Tft(n){var e=[];return te(BI.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=Vt(e,function(t){return ky(t).main}),n!=="dataset"&&gi(e,"dataset")<=0&&e.unshift("dataset"),e}const oa=BI;var Qke="";typeof navigator<"u"&&(Qke=navigator.platform||"");var XT="rgba(0, 0, 0, 0.2)";const Cft={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:XT,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:XT,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:XT,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:XT,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:XT,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:XT,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Qke.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var eFe=$r(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),ig="original",qc="arrayRows",ag="objectRows",Im="keyedColumns",mS="typedArray",tFe="unknown",Zy="column",GI="row",nc={Must:1,Might:2,Not:3},rFe=na();function Aft(n){rFe(n).datasetMap=$r()}function nFe(n,e,t){var r={},i=kie(e);if(!i||!n)return r;var a=[],o=[],s=e.ecModel,l=rFe(s).datasetMap,u=i.uid+"_"+t.seriesLayoutBy,h,c;n=n.slice(),te(n,function(p,g){var m=dn(p)?p:n[g]={name:p};m.type==="ordinal"&&h==null&&(h=g,c=v(m)),r[m.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});te(n,function(p,g){var m=p.name,y=v(p);if(h==null){var _=f.valueWayDim;d(r[m],_,y),d(o,_,y),f.valueWayDim+=y}else if(h===g)d(r[m],0,y),d(a,0,y);else{var _=f.categoryWayDim;d(r[m],_,y),d(o,_,y),f.categoryWayDim+=y}});function d(p,g,m){for(var y=0;ye)return n[r];return n[t-1]}function oFe(n,e,t,r,i,a,o){a=a||n;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var h=o==null||!r?t:Oft(r,o);if(h=h||t,!(!h||!h.length)){var c=h[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%h.length,c}}function Rft(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var s4,qL,bpe,Epe="\0_ec_inner",Dft=1,sFe=function(n){$e(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,r,i,a,o,s){a=a||{},this.option=null,this._theme=new as(a),this._locale=new as(o),this._optionManager=s},e.prototype.setOption=function(t,r,i){var a=Ape(r);this._optionManager.setOption(t,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(t,r){return this._resetOption(t,Ape(r))},e.prototype._resetOption=function(t,r){var i=!1,a=this._optionManager;if(!t||t==="recreate"){var o=a.mountOption(t==="recreate");!this.option||t==="recreate"?bpe(this,o):(this.restoreData(),this._mergeOption(o,r)),i=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,r))}if(!t||t==="recreate"||t==="media"){var l=a.getMediaOption(this);l.length&&te(l,function(u){i=!0,this._mergeOption(u,r)},this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,r){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=$r(),u=r&&r.replaceMergeMainTypeMap;Aft(this),te(t,function(c,f){c!=null&&(oa.hasClass(f)?f&&(s.push(f),l.set(f,!0)):i[f]=i[f]==null?Sn(c):ii(i[f],c,!0))}),u&&u.each(function(c,f){oa.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),oa.topologicalTravel(s,oa.getAllClassMainTypes(),h,this);function h(c){var f=Lft(this,c,Do(t[c])),d=a.get(c),v=d?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=R3e(d,f,v);qut(p,c,oa),i[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],y=0,_;te(p,function(x,S){var w=x.existing,b=x.newOption;if(!b)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var E=c==="series",T=oa.getClass(c,x.keyInfo.subType,!E);if(!T)return;if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===T)w.name=x.keyInfo.name,w.mergeOption(b,this),w.optionUpdated(b,!1);else{var C=Mt({componentIndex:S},x.keyInfo);w=new T(b,this,this,C),Mt(w,C),x.brandNew&&(w.__requireNewView=!0),w.init(b,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),m.push(w),y++):(g.push(void 0),m.push(void 0))},this),i[c]=g,a.set(c,m),o.set(c,y),c==="series"&&s4(this)}this._seriesIndices||s4(this)},e.prototype.getOption=function(){var t=Sn(this.option);return te(t,function(r,i){if(oa.hasClass(i)){for(var a=Do(r),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!iD(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,t[i]=a}}),delete t[Epe],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var i=this._componentsMap.get(t);if(i){var a=i[r||0];if(a)return a;if(r==null){for(var o=0;o=e:t==="max"?n<=e:n===e}function Hft(n,e){return n.join(",")===e.join(",")}const jft=Uft;var Eg=te,fD=dn,Mpe=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function DH(n){var e=n&&n.itemStyle;if(!!e)for(var t=0,r=Mpe.length;t=0;g--){var m=n[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,d)),v>=0){var y=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&f>=0&&y>0||l==="samesign"&&f<=0&&y<0){f=But(f,y),p=y;break}}}return r[0]=f,r[1]=p,r})})}var sU=function(){function n(e){this.data=e.data||(e.sourceFormat===Im?{}:[]),this.sourceFormat=e.sourceFormat||tFe,this.seriesLayoutBy=e.seriesLayoutBy||Zy,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;rp&&(p=_)}d[0]=v,d[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};Npe=(e={},e[qc+"_"+Zy]={pure:!0,appendData:a},e[qc+"_"+GI]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[ag]={pure:!0,appendData:a},e[Im]={pure:!0,appendData:function(o){var s=this._data;te(o,function(l,u){for(var h=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)h.push(l[c])})}},e[ig]={appendData:a},e[mS]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},n.prototype.getRawValue=function(e,t){return fM(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function Gpe(n){var e,t;return dn(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function KO(n){return new udt(n)}var udt=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var i=this.context;i.data=i.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!r&&(a=this._plan(this.context));var o=h(this._modBy),s=this._modDataCount||0,l=h(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function h(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,v=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(c||d1&&r>0?s:o}};return a;function o(){return e=n?null:le},gte:function(n,e){return n>=e}},cdt=function(){function n(e,t){if(!ha(t)){var r="";ao(r)}this._opFn=_Fe[e],this._rvalFloat=u_(t)}return n.prototype.evaluate=function(e){return ha(e)?this._opFn(e,this._rvalFloat):this._opFn(u_(e),this._rvalFloat)},n}(),xFe=function(){function n(e,t){var r=e==="desc";this._resultLT=r?1:-1,t==null&&(t=r?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var r=ha(e)?e:u_(e),i=ha(t)?t:u_(t),a=isNaN(r),o=isNaN(i);if(a&&(r=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Or(e),l=Or(t);s&&(r=l?e:0),l&&(i=s?t:0)}return ri?-this._resultLT:0},n}(),fdt=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=u_(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(t=u_(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function ddt(n,e){return n==="eq"||n==="ne"?new fdt(n==="eq",e):Fr(_Fe,n)?new cdt(n,e):null}var vdt=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return _S(e,t)},n}();function pdt(n,e){var t=new vdt,r=n.data,i=t.sourceFormat=n.sourceFormat,a=n.startIndex,o="";n.seriesLayoutBy!==Zy&&ao(o);var s=[],l={},u=n.dimensionsDefine;if(u)te(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Fr(l,m)&&ao(_),l[m]=y}});else for(var h=0;h65535?bdt:Edt}function YT(){return[1/0,-1/0]}function Tdt(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function Vpe(n,e,t,r,i){var a=bFe[t||"float"];if(i){var o=n[e],s=o&&o.length;if(s!==r){for(var l=new a(r),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Vt(o,function(y){return y.property}),h=0;hm[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&re)a=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,r){var i=this._chunks,a=i[e],o=[];if(!a)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,h=0,c=this.count();h=0&&l<0)&&(s=v,l=d,u=0),d===l&&(o[u++]=h))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,i=this._count;if(r===Array){e=new r(i);for(var a=0;a=c&&y<=f||isNaN(y))&&(l[u++]=p),p++}v=!0}else if(a===2){for(var g=d[i[0]],_=d[i[1]],x=e[i[1]][0],S=e[i[1]][1],m=0;m=c&&y<=f||isNaN(y))&&(w>=x&&w<=S||isNaN(w))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var m=0;m=c&&y<=f||isNaN(y))&&(l[u++]=b)}else for(var m=0;me[C][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),i=r._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),h,c,f,d=new(KL(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var v=1;vh&&(h=c,f=x)}A>0&&Ah-v&&(l=h-v,s.length=l);for(var p=0;pc[1]&&(c[1]=m),f[d++]=y}return a._count=d,a._indices=f,a._updateGetRawIdx(),a},n.prototype.each=function(e,t){if(!!this._count)for(var r=e.length,i=this._chunks,a=0,o=this.count();al&&(l=c)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],i=this._chunks,a=0;a=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,i,a){return _S(t[a],this._dimensions[a])}FH={arrayRows:e,objectRows:function(t,r,i,a){return _S(t[r],this._dimensions[a])},keyedColumns:e,original:function(t,r,i,a){var o=t&&(t.value==null?t:t.value);return _S(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(t,r,i,a){return t[a]}}}(),n}(),EFe=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,i,a;if(l4(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var h=t[0];h.prepareSource(),u=h.getSource(),s=u.data,l=u.sourceFormat,a=[h._getVersionSign()]}else s=o.get("data",!0),l=Ev(s)?mS:ig,a=[];var c=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},d=ni(c.seriesLayoutBy,f.seriesLayoutBy)||null,v=ni(c.sourceHeader,f.sourceHeader),p=ni(c.dimensions,f.dimensions),g=d!==f.seriesLayoutBy||!!v!=!!f.sourceHeader||p;i=g?[gJ(s,{seriesLayoutBy:d,sourceHeader:v,dimensions:p},l)]:[]}else{var m=e;if(r){var y=this._applyTransform(t);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[gJ(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),i=t.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&Wpe(a)}var o,s=[],l=[];return te(e,function(u){u.prepareSource();var h=u.getSource(i||0),c="";i!=null&&!h&&Wpe(c),s.push(h),l.push(u._getVersionSign())}),r?o=Sdt(r,s,{datasetIndex:t.componentIndex}):i!=null&&(o=[rdt(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return te(n.blocks,function(i){var a=MFe(i);a>=e&&(e=a+ +(r&&(!a||mJ(i)&&!i.noHeader)))}),e}return 0}function Mdt(n,e,t,r){var i=e.noHeader,a=Ldt(MFe(e)),o=[],s=e.blocks||[];Ff(!s||Gt(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Fr(u,l)){var h=new xFe(u[l],null);s.sort(function(v,p){return h.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}te(s,function(v,p){var g=e.valueFormatter,m=AFe(v)(g?Mt(Mt({},n),{valueFormatter:g}):n,v,p>0?a.html:0,r);m!=null&&o.push(m)});var c=n.renderMode==="richText"?o.join(a.richText):_J(o.join(""),i?t:a.html);if(i)return c;var f=dJ(e.header,"ordinal",n.useUTC),d=CFe(r,n.renderMode).nameStyle;return n.renderMode==="richText"?IFe(n,f,d)+a.richText+c:_J('
'+ad(f)+"
"+c,t)}function Idt(n,e,t,r){var i=n.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,h=e.valueFormatter||n.valueFormatter||function(x){return x=Gt(x)?x:[x],Vt(x,function(S,w){return dJ(S,Gt(d)?d[w]:d,u)})};if(!(a&&o)){var c=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),f=a?"":dJ(l,"ordinal",u),d=e.valueType,v=o?[]:h(e.value),p=!s||!a,g=!s&&a,m=CFe(r,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":IFe(n,f,y))+(o?"":Rdt(n,v,p,g,_)):_J((s?"":c)+(a?"":Pdt(f,!s,y))+(o?"":Odt(v,p,g,_)),t)}}function Hpe(n,e,t,r,i,a){if(!!n){var o=AFe(n),s={useUTC:i,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,a)}}function Ldt(n){return{html:Cdt[n],richText:Adt[n]}}function _J(n,e){var t='
',r="margin: "+e+"px 0 0";return'
'+n+t+"
"}function Pdt(n,e,t){var r=e?"margin-left:2px":"";return''+ad(n)+""}function Odt(n,e,t,r){var i=t?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return n=Gt(n)?n:[n],''+Vt(n,function(o){return ad(o)}).join("  ")+""}function IFe(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function Rdt(n,e,t,r,i){var a=[i],o=r?10:20;return t&&a.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(Gt(e)?e.join(" "):e,a)}function LFe(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return KE(r)}function PFe(n,e){var t=n.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var BH=function(){function n(){this.richTextStyles={},this._nextStyleNameId=I3e()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var i=r==="richText"?this._generateStyleName():null,a=Sft({color:t,type:e,renderMode:r,markerId:i});return Or(a)?a:(this.richTextStyles[i]=a.style,a.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};Gt(t)?te(t,function(a){return Mt(r,a)}):Mt(r,t);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+e+"}"},n}();function OFe(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=Gt(s),u=LFe(e,t),h,c,f,d;if(o>1||l&&!o){var v=Ddt(s,e,t,a,u);h=v.inlineValues,c=v.inlineValueTypes,f=v.blocks,d=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);d=h=fM(i,t,a[0]),c=p.type}else d=h=l?s[0]:s;var g=vie(e),m=g&&e.name||"",y=i.getName(t),_=r?m:y;return ch("section",{header:m,noHeader:r||!g,sortParam:d,blocks:[ch("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Qg(_),value:h,valueType:c})].concat(f||[])})}function Ddt(n,e,t,r,i){var a=e.getData(),o=om(n,function(c,f,d){var v=a.getDimensionInfo(d);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];r.length?te(r,function(c){h(fM(a,t,c),c)}):te(n,h);function h(c,f){var d=a.getDimensionInfo(f);!d||d.otherDims.tooltip===!1||(o?u.push(ch("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:c,valueType:d.type})):(s.push(c),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ax=na();function u4(n,e){return n.getName(e)||n.getId(e)}var LB="__universalTransitionEnabled",uU=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,i){this.seriesIndex=this.componentIndex,this.dataTask=KO({count:kdt,reset:Fdt}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var a=ax(this).sourceManager=new EFe(this);a.prepareSource();var o=this.getInitialData(t,i);Xpe(o,this),this.dataTask.context.data=o,ax(this).dataBeforeProcessed=o,jpe(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,r){var i=cD(this),a=i?FI(t):{},o=this.subType;oa.hasClass(o)&&(o+="Series"),ii(t,r.getTheme().get(this.subType)),ii(t,this.getDefaultOption()),XE(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&kS(t,a,i)},e.prototype.mergeOption=function(t,r){t=ii(this.option,t,!0),this.fillDataTextStyle(t.data);var i=cD(this);i&&kS(this.option,t,i);var a=ax(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(t,r);Xpe(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ax(this).dataBeforeProcessed=o,jpe(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Ev(t))for(var r=["show"],i=0;ithis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,i){var a=this.ecModel,o=Fie.prototype.getColorFromPalette.call(this,t,r,i);return o||(o=a.getColorFromPalette(t,r,i)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var i=this.option.selectedMap;if(!!i){var a=this.option.selectedMode,o=this.getData(r);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},e.prototype.isSelected=function(t,r){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(r);return(i==="all"||i[u4(a,t)])&&!a.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[LB])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var i,a,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){dn(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,h=0;h0&&this._innerSelect(t,r)}},e.registerClass=function(t){return oa.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(oa);gu(uU,Uie);gu(uU,Fie);B3e(uU,oa);function jpe(n){var e=n.name;vie(n)||(n.name=Ndt(n)||e)}function Ndt(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return te(t,function(i){var a=e.getDimensionInfo(i);a.displayName&&r.push(a.displayName)}),r.join(" ")}function kdt(n){return n.model.getRawData().count()}function Fdt(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),Bdt}function Bdt(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Xpe(n,e){te(Z8(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,Un(Gdt,e))})}function Gdt(n,e){var t=xJ(n);return t&&t.setOutputEnd((e||this).count()),e}function xJ(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(n.uid))}return r}}const Ws=uU;var $ie=function(){function n(){this.group=new Cn,this.uid=NI("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,i){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,i){},n.prototype.updateLayout=function(e,t,r,i){},n.prototype.updateVisual=function(e,t,r,i){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();gie($ie);Wz($ie);const vl=$ie;function zI(){var n=na();return function(e){var t=n(e),r=e.pipelineContext,i=!!t.large,a=!!t.progressiveRender,o=t.large=!!(r&&r.large),s=t.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&"reset"}}var RFe=na(),zdt=zI(),Wie=function(){function n(){this.group=new Cn,this.uid=NI("viewChart"),this.renderTask=KO({plan:Udt,reset:Vdt}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,i){},n.prototype.highlight=function(e,t,r,i){var a=e.getData(i&&i.dataType);!a||qpe(a,i,"emphasis")},n.prototype.downplay=function(e,t,r,i){var a=e.getData(i&&i.dataType);!a||qpe(a,i,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,i){this.render(e,t,r,i)},n.prototype.updateLayout=function(e,t,r,i){this.render(e,t,r,i)},n.prototype.updateVisual=function(e,t,r,i){this.render(e,t,r,i)},n.prototype.eachRendered=function(e){_w(this.group,e)},n.markUpdateMethod=function(e,t){RFe(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function Ype(n,e,t){n&&sD(n)&&(e==="emphasis"?h_:c_)(n,t)}function qpe(n,e,t){var r=YE(n,e),i=e&&e.highlightKey!=null?vct(e.highlightKey):null;r!=null?te(Do(r),function(a){Ype(n.getItemGraphicEl(a),t,i)}):n.eachItemGraphicEl(function(a){Ype(a,t,i)})}gie(Wie);Wz(Wie);function Udt(n){return zdt(n.model)}function Vdt(n){var e=n.model,t=n.ecModel,r=n.api,i=n.payload,a=e.pipelineContext.progressiveRender,o=n.view,s=i&&RFe(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,r,i),$dt[l]}var $dt={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const os=Wie;var dG="\0__throttleOriginMethod",Zpe="\0__throttleRate",Kpe="\0__throttleType";function Hie(n,e,t){var r,i=0,a=0,o=null,s,l,u,h;e=e||0;function c(){a=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var d=[],v=0;v=0?c():o=setTimeout(c,-s),i=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(d){h=d},f}function UI(n,e,t,r){var i=n[e];if(!!i){var a=i[dG]||i,o=i[Kpe],s=i[Zpe];if(s!==t||o!==r){if(t==null||!r)return n[e]=a;i=n[e]=Hie(a,t,r==="debounce"),i[dG]=a,i[Kpe]=r,i[Zpe]=t}return i}}function dD(n,e){var t=n[e];t&&t[dG]&&(t.clear&&t.clear(),n[e]=t[dG])}var Jpe=na(),Qpe={itemStyle:qE(Fke,!0),lineStyle:qE(kke,!0)},Wdt={lineStyle:"stroke",itemStyle:"fill"};function DFe(n,e){var t=n.visualStyleMapper||Qpe[e];return t||(console.warn("Unknown style type '"+e+"'."),Qpe.itemStyle)}function NFe(n,e){var t=n.visualDrawType||Wdt[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var Hdt={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",i=n.getModel(r),a=DFe(n,r),o=a(i),s=i.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=NFe(n,r),u=o[l],h=rn(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||h||c){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||rn(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||rn(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&h)return t.setVisual("colorFromPalette",!1),{dataEach:function(d,v){var p=n.getDataParams(v),g=Mt({},o);g[l]=h(p),d.setItemVisual(v,"style",g)}}}},JL=new as,jdt={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",i=DFe(n,r),a=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){JL.option=l[r];var u=i(JL),h=o.ensureUniqueItemVisual(s,"style");Mt(h,u),JL.option.decal&&(o.setItemVisual(s,"decal",JL.option.decal),JL.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Xdt={performRawSeries:!0,overallReset:function(n){var e=$r();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+r,a=e.get(i);a||(a={},e.set(i,a)),Jpe(t).scope=a}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),i={},a=t.getData(),o=Jpe(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=NFe(t,s);a.each(function(u){var h=a.getRawIndex(u);i[h]=u}),r.each(function(u){var h=i[u],c=a.getItemVisual(h,"colorFromPalette");if(c){var f=a.ensureUniqueItemVisual(h,"style"),d=r.getName(u)||u+"",v=r.count();f[l]=t.getColorFromPalette(d,o,v)}})}})}},h4=Math.PI;function Ydt(n,e){e=e||{},sn(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Cn,r=new ta({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var i=new la({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new ta({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(a);var o;return e.showSpinner&&(o=new Tie({shape:{startAngle:-h4/2,endAngle:-h4/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:h4*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:h4*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),h=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:h}),a.setShape({x:u-l,y:h-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var qdt=function(){function n(e,t,r,i){this._stageTaskMap=$r(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},n.prototype.getPerformArgs=function(e,t){if(!!e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),i=r.context,a=!t&&r.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=a?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&a>=r.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=$r();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;r.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),t._pipe(i,i.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;te(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Ff(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,t,r),i.overallReset&&this._createOverallStageTask(i,a,t,r)},this)},n.prototype.prepareView=function(e,t,r,i){var a=e.renderTask,o=a.context;o.model=t,o.ecModel=r,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(t,a)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,i){i=i||{};var a=!1,o=this;te(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var h=o._stageTaskMap.get(l.uid),c=h.seriesTaskMap,f=h.overallTask;if(f){var d,v=f.agentStubMap;v.each(function(g){s(i,g)&&(g.dirty(),d=!0)}),d&&f.dirty(),o.updatePayload(f,r);var p=o.getPerformArgs(f,i.block);v.each(function(g){g.perform(p)}),f.perform(p)&&(a=!0)}else c&&c.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,r),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,i){var a=this,o=t.seriesTaskMap,s=t.seriesTaskMap=$r(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(h):l?r.eachRawSeriesByType(l,h):u&&u(r,i).each(h);function h(c){var f=c.uid,d=s.set(f,o&&o.get(f)||KO({plan:evt,reset:tvt,count:nvt}));d.context={model:c,ecModel:r,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,d)}},n.prototype._createOverallStageTask=function(e,t,r,i){var a=this,o=t.overallTask=t.overallTask||KO({reset:Zdt});o.context={ecModel:r,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=$r(),u=e.seriesType,h=e.getTargetSeries,c=!0,f=!1,d="";Ff(!e.createOnAllSeries,d),u?r.eachRawSeriesByType(u,v):h?h(r,i).each(v):(c=!1,te(r.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(f=!0,KO({reset:Kdt,onDirty:Qdt})));m.context={model:p,overallProgress:c},m.agent=o,m.__block=c,a._pipe(p,m)}f&&o.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},n.wrapStageHandler=function(e,t){return rn(e)&&(e={overallReset:e,seriesType:ivt(e)}),e.uid=NI("stageHandler"),t&&(e.visualType=t),e},n}();function Zdt(n){n.overallReset(n.ecModel,n.api,n.payload)}function Kdt(n){return n.overallProgress&&Jdt}function Jdt(){this.agent.dirty(),this.getDownstream().dirty()}function Qdt(){this.agent&&this.agent.dirty()}function evt(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function tvt(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=Do(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?Vt(e,function(t,r){return kFe(r)}):rvt}var rvt=kFe(0);function kFe(n){return function(e,t){var r=t.data,i=t.resetDefines[n];if(i&&i.dataEach)for(var a=e.start;a0&&d===u.length-f.length){var v=u.slice(0,d);v!=="data"&&(t.mainType=v,t[f.toLowerCase()]=l,h=!0)}}s.hasOwnProperty(u)&&(r[u]=l,h=!0),h||(i[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:i}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,a=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return h(l,o,"mainType")&&h(l,o,"subType")&&h(l,o,"index","componentIndex")&&h(l,o,"name")&&h(l,o,"id")&&h(u,a,"name")&&h(u,a,"dataIndex")&&h(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,a));function h(c,f,d,v){return c[d]==null||f[v||d]===c[d]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),SJ=["symbol","symbolSize","symbolRotate","symbolOffset"],nge=SJ.concat(["symbolKeepAspect"]),lvt={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o=0&&oE(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function wJ(n,e,t){for(var r=e.type==="radial"?Evt(n,e,t):bvt(n,e,t),i=e.colorStops,a=0;a0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:ha(n)?[n]:Gt(n)?n:null}function Xie(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&Cvt(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var i=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;i&&i!==1&&(t=Vt(t,function(a){return a/i}),r/=i)}return[t,r]}var Avt=new hm(!0);function gG(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function ige(n){return typeof n=="string"&&n!=="none"}function yG(n){var e=n.fill;return e!=null&&e!=="none"}function age(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function oge(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function bJ(n,e,t){var r=yie(e.image,e.__image,t);if(Hz(r)){var i=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*gB),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function Mvt(n,e,t,r){var i,a=gG(t),o=yG(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var h=e.path||Avt,c=e.__dirty;if(!r){var f=t.fill,d=t.stroke,v=o&&!!f.colorStops,p=a&&!!d.colorStops,g=o&&!!f.image,m=a&&!!d.image,y=void 0,_=void 0,x=void 0,S=void 0,w=void 0;(v||p)&&(w=e.getBoundingRect()),v&&(y=c?wJ(n,f,w):e.__canvasFillGradient,e.__canvasFillGradient=y),p&&(_=c?wJ(n,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(x=c||!e.__canvasFillPattern?bJ(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=x),m&&(S=c||!e.__canvasStrokePattern?bJ(n,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),v?n.fillStyle=y:g&&(x?n.fillStyle=x:o=!1),p?n.strokeStyle=_:m&&(S?n.strokeStyle=S:a=!1)}var b=e.getGlobalScale();h.setScale(b[0],b[1],e.segmentIgnoreThreshold);var E,T;n.setLineDash&&t.lineDash&&(i=Xie(e),E=i[0],T=i[1]);var C=!0;(u||c&BC)&&(h.setDPR(n.dpr),l?h.setContext(null):(h.setContext(n),C=!1),h.reset(),e.buildPath(h,e.shape,r),h.toStatic(),e.pathUpdated()),C&&h.rebuildPath(n,l?s:1),E&&(n.setLineDash(E),n.lineDashOffset=T),r||(t.strokeFirst?(a&&oge(n,t),o&&age(n,t)):(o&&age(n,t),a&&oge(n,t))),E&&n.setLineDash([])}function Ivt(n,e,t){var r=e.__image=yie(t.image,e.__image,e,e.onload);if(!(!r||!Hz(r))){var i=t.x||0,a=t.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,h=t.sy||0;n.drawImage(r,u,h,t.sWidth,t.sHeight,i,a,o,s)}else if(t.sx&&t.sy){var u=t.sx,h=t.sy,c=o-u,f=s-h;n.drawImage(r,u,h,c,f,i,a,o,s)}else n.drawImage(r,i,a,o,s)}}function Lvt(n,e,t){var r,i=t.text;if(i!=null&&(i+=""),i){n.font=t.font||RS,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var a=void 0,o=void 0;n.setLineDash&&t.lineDash&&(r=Xie(e),a=r[0],o=r[1]),a&&(n.setLineDash(a),n.lineDashOffset=o),t.strokeFirst?(gG(t)&&n.strokeText(i,t.x,t.y),yG(t)&&n.fillText(i,t.x,t.y)):(yG(t)&&n.fillText(i,t.x,t.y),gG(t)&&n.strokeText(i,t.x,t.y)),a&&n.setLineDash([])}}var sge=["shadowBlur","shadowOffsetX","shadowOffsetY"],lge=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function $Fe(n,e,t,r,i){var a=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){ud(n,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?EE.opacity:o}(r||e.blend!==t.blend)&&(a||(ud(n,i),a=!0),n.globalCompositeOperation=e.blend||EE.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,i){if(!this[Cc]){if(this._disposed){this.id;return}var a,o,s;if(dn(r)&&(i=r.lazyUpdate,a=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[Cc]=!0,!this._model||r){var l=new jft(this._api),u=this._theme,h=this._model=new lFe;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},TJ);var c={seriesTransition:s,optionChanged:!0};if(i)this[ed]={silent:a,updateParams:c},this[Cc]=!1,this.getZr().wakeUp();else{try{ZT(this),ox.update.call(this,null,c)}catch(f){throw this[ed]=null,this[Cc]=!1,f}this._ssr||this._zr.flush(),this[ed]=null,this[Cc]=!1,QL.call(this,a),eP.call(this,a)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||sa.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(!!sa.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return te(r,function(i){i.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var r=t.excludeComponents,i=this._model,a=[],o=this;te(r,function(l){i.eachComponent({mainType:l},function(u){var h=o._componentsMap[u.__viewId];h.group.ignore||(a.push(h),h.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return te(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var r=t.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(bge[i]){var l=s,u=s,h=-s,c=-s,f=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();te(QO,function(_,x){if(_.group===i){var S=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Sn(t)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),h=o(w.right,h),c=o(w.bottom,c),f.push({dom:S,left:w.left,top:w.top})}}),l*=d,u*=d,h*=d,c*=d;var v=h-l,p=c-u,g=s_.createCanvas(),m=Cve(g,{renderer:r?"svg":"canvas"});if(m.resize({width:v,height:p}),r){var y="";return te(f,function(_){var x=_.left-l,S=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return t.connectedBackgroundColor&&m.add(new ta({shape:{x:0,y:0,width:v,height:p},style:{fill:t.connectedBackgroundColor}})),te(f,function(_){var x=new xc({style:{x:_.left*d-l,y:_.top*d-u,image:_.dom}});m.add(x)}),m.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return $H(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return $H(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){this.id;return}var i=this._model,a,o=jO(i,t);return te(o,function(s,l){l.indexOf("Models")>=0&&te(s,function(u){var h=u.coordinateSystem;if(h&&h.containPoint)a=a||!!h.containPoint(r);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(r,u))}},this)},this),!!a},e.prototype.getVisual=function(t,r){var i=this._model,a=jO(i,t,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?jie(s,l,r):w3(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;te(rpt,function(r){var i=function(a){var o=t.getModel(),s=a.target,l,u=r==="globalout";if(u?l={}:s&&aE(s,function(v){var p=Bn(v);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=Mt({},p.eventData),!0},!0),l){var h=l.componentType,c=l.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",c=l.seriesIndex);var f=h&&c!=null&&o.getComponent(h,c),d=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=a,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:d},t.trigger(r,l)}};i.zrEventfulCallAtLast=!0,t._zr.on(r,i,t)}),te(JO,function(r,i){t._messageCenter.on(i,function(a){this.trigger(i,a)},t)}),te(["selectchanged"],function(r){t._messageCenter.on(r,function(i){this.trigger(r,i)},t)}),hvt(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&N3e(this.getDom(),Zie,"");var r=this,i=r._api,a=r._model;te(r._componentsViews,function(o){o.dispose(a,i)}),te(r._chartsViews,function(o){o.dispose(a,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete QO[r.id]},e.prototype.resize=function(t){if(!this[Cc]){if(this._disposed){this.id;return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),a=t&&t.silent;this[ed]&&(a==null&&(a=this[ed].silent),i=!0,this[ed]=null),this[Cc]=!0;try{i&&ZT(this),ox.update.call(this,{type:"resize",animation:Mt({duration:0},t&&t.animation)})}catch(o){throw this[Cc]=!1,o}this[Cc]=!1,QL.call(this,a),eP.call(this,a)}}},e.prototype.showLoading=function(t,r){if(this._disposed){this.id;return}if(dn(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!CJ[t]){var i=CJ[t](this._api,r),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=Mt({},t);return r.type=JO[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){this.id;return}if(dn(r)||(r={silent:!!r}),!!mG[t.type]&&!!this._model){if(this[Cc]){this._pendingActions.push(t);return}var i=r.silent;HH.call(this,t,i);var a=r.flush;a?this._zr.flush():a!==!1&&sa.browser.weChat&&this._throttledZrFlush(),QL.call(this,i),eP.call(this,i)}},e.prototype.updateLabelLayout=function(){Ng.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var r=t.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(r);a.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){ZT=function(c){var f=c._scheduler;f.restorePipelines(c._model),f.prepareStageTasks(),VH(c,!0),VH(c,!1),f.plan()},VH=function(c,f){for(var d=c._model,v=c._scheduler,p=f?c._componentsViews:c._chartsViews,g=f?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_f.get("hoverLayerThreshold")&&!sa.node&&!sa.worker&&f.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=c._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,f){var d=c.get("blendMode")||null;f.eachRendered(function(v){v.isGroup||(v.style.blend=d)})}function s(c,f){if(!c.preventAutoZ){var d=c.get("z")||0,v=c.get("zlevel")||0;f.eachRendered(function(p){return l(p,d,v,-1/0),!0})}}function l(c,f,d,v){var p=c.getTextContent(),g=c.getTextGuideLine(),m=c.isGroup;if(m)for(var y=c.childrenRef(),_=0;_0?{duration:p,delay:d.get("delay"),easing:d.get("easing")}:null;f.eachRendered(function(m){if(m.states&&m.states.emphasis){if(kA(m))return;if(m instanceof Si&&pct(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=g;var _=m.getTextContent(),x=m.getTextGuideLine();_&&(_.stateTransition=g),x&&(x.stateTransition=g)}m.__dirty&&i(m)}})}Sge=function(c){return new(function(f){$e(d,f);function d(){return f!==null&&f.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);v=v.parent}},d.prototype.enterEmphasis=function(v,p){h_(v,p),jv(c)},d.prototype.leaveEmphasis=function(v,p){c_(v,p),jv(c)},d.prototype.enterBlur=function(v){nke(v),jv(c)},d.prototype.leaveBlur=function(v){Sie(v),jv(c)},d.prototype.enterSelect=function(v){ike(v),jv(c)},d.prototype.leaveSelect=function(v){ake(v),jv(c)},d.prototype.getModel=function(){return c.getModel()},d.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},d.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},d}(uFe))(c)},i4e=function(c){function f(d,v){for(var p=0;p=0)){Ege.push(t);var a=GFe.wrapStageHandler(t,i);a.__prio=e,a.__raw=t,n.push(a)}}function h4e(n,e){CJ[n]=e}function hpt(n,e,t){var r=Uvt("registerMap");r&&r(n,e,t)}var cpt=xdt;q2(Yie,Hdt);q2(hU,jdt);q2(hU,Xdt);q2(Yie,lvt);q2(hU,uvt);q2(JFe,Bvt);l4e(cFe);u4e(Wvt,edt);h4e("default",Ydt);Lm({type:TE,event:TE,update:TE},Hl);Lm({type:TB,event:TB,update:TB},Hl);Lm({type:XO,event:XO,update:XO},Hl);Lm({type:CB,event:CB,update:CB},Hl);Lm({type:YO,event:YO,update:YO},Hl);s4e("light",avt);s4e("dark",ovt);var Tge=[],fpt={registerPreprocessor:l4e,registerProcessor:u4e,registerPostInit:opt,registerPostUpdate:spt,registerUpdateLifecycle:Kie,registerAction:Lm,registerCoordinateSystem:lpt,registerLayout:upt,registerVisual:q2,registerTransform:cpt,registerLoading:h4e,registerMap:hpt,registerImpl:zvt,PRIORITY:Qvt,ComponentModel:oa,ComponentView:vl,SeriesModel:Ws,ChartView:os,registerComponentModel:function(n){oa.registerClass(n)},registerComponentView:function(n){vl.registerClass(n)},registerSeriesModel:function(n){Ws.registerClass(n)},registerChartView:function(n){os.registerClass(n)},registerSubTypeDefaulter:function(n,e){oa.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){Dut(n,e)}};function _i(n){if(Gt(n)){te(n,function(e){_i(e)});return}gi(Tge,n)>=0||(Tge.push(n),rn(n)&&(n={install:n}),n.install(fpt))}function tP(n){return n==null?0:n.length||1}function Cge(n){return n}var dpt=function(){function n(e,t,r,i,a,o){this._old=e,this._new=t,this._oldKeyGetter=r||Cge,this._newKeyGetter=i||Cge,this.context=a,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},i=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,r,a,"_newKeyGetter");for(var o=0;o1){var h=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(h,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},i={},a=[],o=[];this._initIndexMap(e,r,a,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(h,u),i[l]=null;else if(c===1&&f>1)this._updateOneToMany&&this._updateOneToMany(h,u),i[l]=null;else if(c===1&&f===1)this._update&&this._update(h,u),i[l]=null;else if(c>1&&f>1)this._updateManyToMany&&this._updateManyToMany(h,u),i[l]=null;else if(c>1)for(var d=0;d1)for(var s=0;s30}var rP=dn,sx=Vt,xpt=typeof Int32Array>"u"?Array:Int32Array,Spt="e\0\0",Age=-1,wpt=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],bpt=["_approximateExtent"],Mge,p4,nP,iP,YH,g4,qH,Ept=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,i=!1;f4e(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,r=e),r=r||["x","y"];for(var a={},o=[],s={},l=!1,u={},h=0;h=t)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===ig;if(l&&!i.pure)for(var u=[],h=e;h0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,i=r[e];i||(i=r[e]={});var a=i[t];return a==null&&(a=this.getVisual(t),Gt(a)?a=a.slice():rP(a)&&(a=Mt({},a)),i[t]=a),a},n.prototype.setItemVisual=function(e,t,r){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,rP(t)?Mt(i,t):i[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){rP(e)?Mt(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?Mt(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;iJ(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){te(this._graphicEls,function(r,i){r&&e&&e.call(t,r,i)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:sx(this.dimensions,this._getDimInfo,this),this.hostModel)),YH(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];!rn(r)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=r.apply(this,arguments);return t.apply(this,[i].concat(iie(arguments)))})},n.internalField=function(){Mge=function(e){var t=e._invertedIndicesMap;te(t,function(r,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){r=t[i]=new xpt(o.categories.length);for(var l=0;l1&&(l+="__ec__"+h),i[t]=l}}}(),n}();const Rf=Ept;function b3(n,e){Bie(n)||(n=Gie(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],i=$r(),a=[],o=Cpt(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&p4e(o),l=r===n.dimensionsDefine,u=l?v4e(n):d4e(r),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(n,o));for(var c=$r(h),f=new wFe(o),d=0;d0&&(r.name=i+(a-1)),a++,e.set(i,a)}}function Cpt(n,e,t,r){var i=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return te(e,function(a){var o;dn(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Apt(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var Mpt=function(){function n(e){this.coordSysDims=[],this.axisMap=$r(),this.categoryAxisMap=$r(),this.coordSysName=e}return n}();function Ipt(n){var e=n.get("coordinateSystem"),t=new Mpt(e),r=Lpt[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var Lpt={cartesian2d:function(n,e,t,r){var i=n.getReferringComponents("xAxis",uu).models[0],a=n.getReferringComponents("yAxis",uu).models[0];e.coordSysDims=["x","y"],t.set("x",i),t.set("y",a),KT(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),KT(a)&&(r.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var i=n.getReferringComponents("singleAxis",uu).models[0];e.coordSysDims=["single"],t.set("single",i),KT(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var i=n.getReferringComponents("polar",uu).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",a),t.set("angle",o),KT(a)&&(r.set("radius",a),e.firstCategoryDimIndex=0),KT(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var i=n.ecModel,a=i.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();te(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),h=o[l];t.set(h,u),KT(u)&&(r.set(h,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function KT(n){return n.get("type")==="category"}function Ppt(n,e,t){t=t||{};var r=t.byIndex,i=t.stackedCoordDimension,a,o,s;Opt(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,h,c,f;if(te(a,function(y,_){Or(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!r&&!u&&y.ordinalMeta&&(u=y),!h&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(h=y))}),h&&!r&&!u&&(r=!0),h){c="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var d=h.coordDim,v=h.type,p=0;te(a,function(y){y.coordDim===d&&p++});var g={name:c,coordDim:d,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:f,coordDim:f,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,v),m.storeDimIndex=s.ensureCalculationDimension(c,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:h&&h.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:c}}function Opt(n){return!f4e(n.schema)}function FS(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function g4e(n,e){return FS(n,e)?n.getCalculationInfo("stackResultDimension"):e}function Rpt(n,e){var t=n.get("coordinateSystem"),r=S3.get(t),i;return e&&e.coordSysDims&&(i=Vt(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=xG(l)}return o})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function Dpt(n,e,t){var r,i;return t&&te(n,function(a,o){var s=a.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(n[r].otherDims.itemName=0),r}function k_(n,e,t){t=t||{};var r=e.getSourceManager(),i,a=!1;n?(a=!0,i=Gie(n)):(i=r.getSource(),a=i.sourceFormat===ig);var o=Ipt(e),s=Rpt(e,o),l=t.useEncodeDefaulter,u=rn(l)?l:l?Un(nFe,s,e):null,h={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=b3(i,h),f=Dpt(c.dimensions,t.createInvertedIndices,o),d=a?null:r.getSharedDataStore(c),v=Ppt(e,{schema:c,store:d}),p=new Rf(c,e);p.setCalculationInfo(v);var g=f!=null&&Npt(i)?function(m,y,_,x){return x===f?_:this.defaultDimValueGetter(m,y,_,x)}:null;return p.hasItemOption=!1,p.initData(a?i:d,null,g),p}function Npt(n){if(n.sourceFormat===ig){var e=kpt(n.data||[]);return!Gt(LI(e))}}function kpt(n){for(var e=0;et[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Wz(y4e);const F_=y4e;var Fpt=0,Bpt=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Fpt}return n.createByAxisModel=function(e){var t=e.option,r=t.data,i=r&&Vt(r,Gpt);return new n({categories:i,needCollect:!i,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!Or(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=$r(this.categories))},n}();function Gpt(n){return dn(n)&&n.value!=null?n.value:n+""}const AJ=Bpt;function MJ(n){return n.type==="interval"||n.type==="log"}function zpt(n,e,t,r){var i={},a=n[1]-n[0],o=i.interval=A3e(a/e,!0);t!=null&&or&&(o=i.interval=r);var s=i.intervalPrecision=m4e(o),l=i.niceTickExtent=[Pl(Math.ceil(n[0]/o)*o,s),Pl(Math.floor(n[1]/o)*o,s)];return Upt(l,n),i}function ZH(n){var e=Math.pow(10,die(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Pl(t*e)}function m4e(n){return Ny(n)+2}function Ige(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function Upt(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Ige(n,0,e),Ige(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function cU(n,e){return n>=e[0]&&n<=e[1]}function fU(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function dU(n,e){return n*(e[1]-e[0])+e[0]}var _4e=function(n){$e(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new AJ({})),Gt(i)&&(i=new AJ({categories:Vt(i,function(a){return dn(a)?a.value:a})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:Or(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),cU(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),fU(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(dU(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,i=r[0];i<=r[1];)t.push({value:i}),i++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(F_);F_.registerClass(_4e);const Qie=_4e;var ub=Pl,x4e=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return cU(t,this._extent)},e.prototype.normalize=function(t){return fU(t,this._extent)},e.prototype.scale=function(t){return dU(t,this._extent)},e.prototype.setExtent=function(t,r){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(r)||(i[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=m4e(t)},e.prototype.getTicks=function(t){var r=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]l)return[];var h=s.length?s[s.length-1].value:a[1];return i[1]>h&&(t?s.push({value:ub(h+r,o)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&d0&&(a=a===null?s:Math.min(a,s))}t[r]=a}}return t}function b4e(n){var e=Wpt(n),t=[];return te(n,function(r){var i=r.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],h=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),f=Math.abs(c[1]-c[0]);s=u?h/f*u:h}else{var d=r.getData();s=Math.abs(o[1]-o[0])/d.count()}var v=xr(r.get("barWidth"),s),p=xr(r.get("barMaxWidth"),s),g=xr(r.get("barMinWidth")||(M4e(r)?.5:1),s),m=r.get("barGap"),y=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:v,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:tae(a),stackId:eae(r)})}),E4e(t)}function E4e(n){var e={};te(n,function(r,i){var a=r.axisKey,o=r.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[a]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var h=r.barWidth;h&&!l[u].width&&(l[u].width=h,h=Math.min(s.remainedWidth,h),s.remainedWidth-=h);var c=r.barMaxWidth;c&&(l[u].maxWidth=c);var f=r.barMinWidth;f&&(l[u].minWidth=f);var d=r.barGap;d!=null&&(s.gap=d);var v=r.barCategoryGap;v!=null&&(s.categoryGap=v)});var t={};return te(e,function(r,i){t[i]={};var a=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Li(a).length;s=Math.max(35-l*4,15)+"%"}var u=xr(s,o),h=xr(r.gap,1),c=r.remainedWidth,f=r.autoWidthCount,d=(c-u)/(f+(f-1)*h);d=Math.max(d,0),te(a,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var x=m.width;y&&(x=Math.min(x,y)),_&&(x=Math.max(x,_)),m.width=x,c-=x+h*x,f--}else{var x=d;y&&yx&&(x=_),x!==d&&(m.width=x,c-=x+h*x,f--)}}),d=(c-u)/(f+(f-1)*h),d=Math.max(d,0);var v=0,p;te(a,function(m,y){m.width||(m.width=d),p=m,v+=m.width*(1+h)}),p&&(v-=p.width*h);var g=-v/2;te(a,function(m,y){t[i][y]=t[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+h)})}),t}function Hpt(n,e,t){if(n&&e){var r=n[tae(e)];return r!=null&&t!=null?r[eae(t)]:r}}function T4e(n,e){var t=w4e(n,e),r=b4e(t);te(t,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=eae(i),u=r[tae(s)][l],h=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:h,size:c})})}function C4e(n){return{seriesType:n,plan:zI(),reset:function(e){if(!!A4e(e)){var t=e.getData(),r=e.coordinateSystem,i=r.getBaseAxis(),a=r.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=t.getDimensionIndex(t.mapDimension(i.dim)),l=e.get("showBackground",!0),u=t.mapDimension(a.dim),h=t.getCalculationInfo("stackResultDimension"),c=FS(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=a.isHorizontal(),d=jpt(i,a),v=M4e(e),p=e.get("barMinHeight")||0,g=h&&t.getDimensionIndex(h),m=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(_,x){for(var S=_.count,w=v&&Fy(S*3),b=v&&l&&Fy(S*3),E=v&&Fy(S),T=r.master.getRect(),C=f?T.width:T.height,A,M=x.getStore(),I=0;(A=_.next())!=null;){var R=M.get(c?g:o,A),k=M.get(s,A),D=d,G=void 0;c&&(G=+R-M.get(o,A));var V=void 0,z=void 0,j=void 0,Z=void 0;if(f){var Y=r.dataToPoint([R,k]);if(c){var le=r.dataToPoint([G,k]);D=le[0]}V=D,z=Y[1]+y,j=Y[0]-D,Z=m,Math.abs(j)>>1;n[i][1]i&&(this._approxInterval=i);var s=y4.length,l=Math.min(Xpt(y4,this._approxInterval,0,s),s-1);this._interval=y4[l][1],this._minLevelUnit=y4[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return ha(t)?t:+um(t)},e.prototype.contain=function(t){return cU(this.parse(t),this._extent)},e.prototype.normalize=function(t){return fU(this.parse(t),this._extent)},e.prototype.scale=function(t){return dU(t,this._extent)},e.type="time",e}(BS),y4=[["second",Pie],["minute",Oie],["hour",ZO],["quarter-day",ZO*6],["half-day",ZO*12],["day",Ap*1.2],["half-week",Ap*3.5],["week",Ap*7],["month",Ap*31],["quarter",Ap*95],["half-year",mpe/2],["year",mpe]];function Ypt(n,e,t,r){var i=um(e),a=um(t),o=function(v){return xpe(i,v,r)===xpe(a,v,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},h=function(){return u()&&o("hour")},c=function(){return h()&&o("minute")},f=function(){return c()&&o("second")},d=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return c();case"second":return f();case"millisecond":return d()}}function qpt(n,e){return n/=Ap,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function Zpt(n){var e=30*Ap;return n/=e,n>6?6:n>3?3:n>2?2:1}function Kpt(n){return n/=ZO,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function Lge(n,e){return n/=e?Oie:Pie,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function Jpt(n){return A3e(n,!0)}function Qpt(n,e,t){var r=new Date(n);switch(FA(e)){case"year":case"month":r[Vke(t)](0);case"day":r[$ke(t)](1);case"hour":r[Wke(t)](0);case"minute":r[Hke(t)](0);case"second":r[jke(t)](0),r[Xke(t)](0)}return r.getTime()}function egt(n,e,t,r){var i=1e4,a=zke,o=0;function s(C,A,M,I,R,k,D){for(var G=new Date(A),V=A,z=G[I]();V1&&k===0&&M.unshift({value:M[0].value-V})}}for(var k=0;k=r[0]&&y<=r[1]&&c++)}var _=(r[1]-r[0])/e;if(c>_*1.5&&f>_/1.5||(u.push(g),c>_||n===a[d]))break}h=[]}}}for(var x=To(Vt(u,function(C){return To(C,function(A){return A.value>=r[0]&&A.value<=r[1]&&!A.notAdd})}),function(C){return C.length>0}),S=[],w=x.length-1,d=0;d0;)a*=10;var s=[Pl(ngt(r[0]/a)*a),Pl(rgt(r[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){eR.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Tg(t)/Tg(this.base),cU(t,this._extent)},e.prototype.normalize=function(t){return t=Tg(t)/Tg(this.base),fU(t,this._extent)},e.prototype.scale=function(t){return t=dU(t,this._extent),m4(this.base,t)},e.type="log",e}(F_),P4e=rae.prototype;P4e.getMinorTicks=eR.getMinorTicks;P4e.getLabel=eR.getLabel;function _4(n,e){return tgt(n,Ny(e))}F_.registerClass(rae);const igt=rae;var agt=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!h&&(l=0));var f=this._determinedMin,d=this._determinedMax;return f!=null&&(s=f,u=!0),d!=null&&(l=d,h=!0),{min:s,max:l,minFixed:u,maxFixed:h,isBlank:c}},n.prototype.modifyDataMinMax=function(e,t){this[sgt[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=ogt[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),ogt={min:"_determinedMin",max:"_determinedMax"},sgt={min:"_dataMin",max:"_dataMax"};function O4e(n,e,t){var r=n.rawExtentInfo;return r||(r=new agt(n,e,t),n.rawExtentInfo=r,r)}function x4(n,e){return e==null?null:eD(e)?NaN:n.parse(e)}function R4e(n,e){var t=n.type,r=O4e(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var i=r.min,a=r.max,o=e.ecModel;if(o&&t==="time"){var s=w4e("bar",o),l=!1;if(te(s,function(c){l=l||c.getBaseAxis()===e.axis}),l){var u=b4e(s),h=lgt(i,a,e,u);i=h.min,a=h.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function lgt(n,e,t,r){var i=t.axis.getExtent(),a=i[1]-i[0],o=Hpt(r,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;te(o,function(d){s=Math.min(d.offset,s)});var l=-1/0;te(o,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-n,c=1-(s+l)/a,f=h/c-h;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function vM(n,e){var t=e,r=R4e(n,t),i=r.extent,a=t.get("splitNumber");n instanceof igt&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(i[0],i[1]),n.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function vU(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new Qie({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new L4e({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(F_.getClass(e)||BS)}}function ugt(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function E3(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(i,a){return n.scale.getFormattedLabel(i,a,r)}}(e):Or(e)?function(r){return function(i){var a=n.scale.getLabel(i),o=r.replace("{value}",a!=null?a:"");return o}}(e):rn(e)?function(r){return function(i,a){return t!=null&&(a=i.value-t),r(nae(n,i),a,i.level!=null?{level:i.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function nae(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function hgt(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,i,a=t.getExtent();t instanceof Qie?i=t.count():(r=t.getTicks(),i=r.length);var o=n.getLabelModel(),s=E3(n),l,u=1;i>40&&(u=Math.ceil(i/40));for(var h=0;hn[1]&&(n[1]=i[1])})}var T3=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),dgt=1e-8;function Oge(n,e){return Math.abs(n-e)i&&(r=o,i=l)}if(r)return pgt(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return te(o,function(s){s.type==="polygon"?Rge(s.exterior,i,a,t):te(s.points,function(l){Rge(l,i,a,t)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),r=new ai(i[0],i[1],a[0]-i[0],a[1]-i[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),i=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,r.push([s/t,l/t])}return r}function mgt(n,e){return n=ygt(n),Vt(To(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,i=t.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Dge(o[0],o.slice(1)));break;case"MultiPolygon":te(i.coordinates,function(l){l[0]&&a.push(new Dge(l[0],l.slice(1)))});break;case"LineString":a.push(new Nge([i.coordinates]));break;case"MultiLineString":a.push(new Nge(i.coordinates))}var s=new k4e(r[e||"name"],a,r.cp);return s.properties=r,s})}var gD=na();function _gt(n){return n.type==="category"?Sgt(n):bgt(n)}function xgt(n,e){return n.type==="category"?wgt(n,e):{ticks:Vt(n.scale.getTicks(),function(t){return t.value})}}function Sgt(n){var e=n.getLabelModel(),t=B4e(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function B4e(n,e){var t=G4e(n,"labels"),r=iae(e),i=z4e(t,r);if(i)return i;var a,o;return rn(r)?a=$4e(n,r):(o=r==="auto"?Egt(n):r,a=V4e(n,o)),U4e(t,r,{labels:a,labelCategoryInterval:o})}function wgt(n,e){var t=G4e(n,"ticks"),r=iae(e),i=z4e(t,r);if(i)return i;var a,o;if((!e.get("show")||n.scale.isBlank())&&(a=[]),rn(r))a=$4e(n,r,!0);else if(r==="auto"){var s=B4e(n,n.getLabelModel());o=s.labelCategoryInterval,a=Vt(s.labels,function(l){return l.tickValue})}else o=r,a=V4e(n,o,!0);return U4e(t,r,{ticks:a,tickCategoryInterval:o})}function bgt(n){var e=n.scale.getTicks(),t=E3(n);return{labels:Vt(e,function(r,i){return{level:r.level,formattedLabel:t(r,i),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function G4e(n,e){return gD(n)[e]||(gD(n)[e]=[])}function z4e(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),h=Math.abs(u*Math.cos(r)),c=Math.abs(u*Math.sin(r)),f=0,d=0;l<=a[1];l+=s){var v=0,p=0,g=v3(t({value:l}),e.font,"center","top");v=g.width*1.3,p=g.height*1.3,f=Math.max(f,v,7),d=Math.max(d,p,7)}var m=f/h,y=d/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),x=gD(n.model),S=n.getExtent(),w=x.lastAutoInterval,b=x.lastTickCount;return w!=null&&b!=null&&Math.abs(w-_)<=1&&Math.abs(b-o)<=1&&w>_&&x.axisExtent0===S[0]&&x.axisExtent1===S[1]?_=w:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=S[0],x.axisExtent1=S[1]),_}function Cgt(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function V4e(n,e,t){var r=E3(n),i=n.scale,a=i.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],h=i.count();u!==0&&l>1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=D4e(n),f=o.get("showMinLabel")||c,d=o.get("showMaxLabel")||c;f&&u!==a[0]&&p(a[0]);for(var v=u;v<=a[1];v+=l)p(v);d&&v-l!==a[1]&&p(a[1]);function p(g){var m={value:g};s.push(t?g:{formattedLabel:r(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function $4e(n,e,t){var r=n.scale,i=E3(n),a=[];return te(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&a.push(t?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var kge=[0,1],Agt=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=r&&e<=i},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return T3e(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(r=r.slice(),Fge(r,i.count())),go(e,kge,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),Fge(r,i.count()));var a=go(e,r,kge,t);return this.scale.scale(a)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=xgt(this,t),i=r.ticks,a=Vt(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return Mgt(this,a,o,e.clamp),a},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),i=Vt(r,function(a){return Vt(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},n.prototype.getViewLabels=function(){return _gt(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/r},n.prototype.calculateCategoryInterval=function(){return Tgt(this)},n}();function Fge(n,e){var t=n[1]-n[0],r=e,i=t/r/2;n[0]+=i,n[1]-=i}function Mgt(n,e,t,r){var i=e.length;if(!n.onBand||t||!i)return;var a=n.getExtent(),o,s;if(i===1)e[0].coord=a[0],o=e[1]={coord:a[1]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;te(e,function(d){d.coord-=u/2});var h=n.scale.getExtent();s=1+h[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s},e.push(o)}var c=a[0]>a[1];f(e[0].coord,a[0])&&(r?e[0].coord=a[0]:e.shift()),r&&f(a[0],e[0].coord)&&e.unshift({coord:a[0]}),f(a[1],o.coord)&&(r?o.coord=a[1]:e.pop()),r&&f(o.coord,a[1])&&e.push({coord:a[1]});function f(d,v){return d=Pl(d),v=Pl(v),c?d>v:di&&(i+=aP);var d=Math.atan2(s,o);if(d<0&&(d+=aP),d>=r&&d<=i||d+aP>=r&&d+aP<=i)return l[0]=h,l[1]=c,u-t;var v=t*Math.cos(r)+n,p=t*Math.sin(r)+e,g=t*Math.cos(i)+n,m=t*Math.sin(i)+e,y=(v-o)*(v-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=v,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function wG(n,e,t,r,i,a,o,s){var l=i-n,u=a-e,h=t-n,c=r-e,f=Math.sqrt(h*h+c*c);h/=f,c/=f;var d=l*h+u*c,v=d/f;s&&(v=Math.min(Math.max(v,0),1)),v*=f;var p=o[0]=n+v*h,g=o[1]=e+v*c;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}function W4e(n,e,t,r,i,a,o){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var s=n+t,l=e+r,u=o[0]=Math.min(Math.max(i,n),s),h=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-i)*(u-i)+(h-a)*(h-a))}var zg=[];function Ogt(n,e,t){var r=W4e(e.x,e.y,e.width,e.height,n.x,n.y,zg);return t.set(zg[0],zg[1]),r}function Rgt(n,e,t){for(var r=0,i=0,a=0,o=0,s,l,u=1/0,h=e.data,c=n.x,f=n.y,d=0;d0){e=e/180*Math.PI,t0.fromArray(n[0]),rs.fromArray(n[1]),$l.fromArray(n[2]),qn.sub(By,t0,rs),qn.sub(Ly,$l,rs);var t=By.len(),r=Ly.len();if(!(t<.001||r<.001)){By.scale(1/t),Ly.scale(1/r);var i=By.dot(Ly),a=Math.cos(e);if(a1&&qn.copy(wf,$l),wf.toArray(n[1])}}}}function Dgt(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,t0.fromArray(n[0]),rs.fromArray(n[1]),$l.fromArray(n[2]),qn.sub(By,rs,t0),qn.sub(Ly,$l,rs);var r=By.len(),i=Ly.len();if(!(r<.001||i<.001)){By.scale(1/r),Ly.scale(1/i);var a=By.dot(e),o=Math.cos(t);if(a=l)qn.copy(wf,$l);else{wf.scaleAndAdd(Ly,s/Math.tan(Math.PI/2-h));var c=$l.x!==rs.x?(wf.x-rs.x)/($l.x-rs.x):(wf.y-rs.y)/($l.y-rs.y);if(isNaN(c))return;c<0?qn.copy(wf,rs):c>1&&qn.copy(wf,$l)}wf.toArray(n[1])}}}}function Gge(n,e,t,r){var i=t==="normal",a=i?n:n.ensureState(t);a.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();i?n.useStyle(s):a.style=s}function Ngt(n,e){var t=e.smooth,r=e.points;if(!!r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var i=Zx(r[0],r[1]),a=Zx(r[1],r[2]);if(!i||!a){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*t,s=mB([],r[1],r[0],o/i),l=mB([],r[1],r[2],o/a),u=mB([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var h=1;h0&&a&&S(-h/o,0,o);var p=n[0],g=n[o-1],m,y;_(),m<0&&w(-m,.8),y<0&&w(y,.8),_(),x(m,y,1),x(y,m,-1),_(),m<0&&b(-m),y<0&&b(y);function _(){m=p.rect[e]-r,y=i-g.rect[e]-g.rect[t]}function x(E,T,C){if(E<0){var A=Math.min(T,-E);if(A>0){S(A*C,0,o);var M=A+E;M<0&&w(-M*C,1)}else w(-E*C,1)}}function S(E,T,C){E!==0&&(u=!0);for(var A=T;A0)for(var M=0;M0;M--){var D=C[M-1]*k;S(-D,M,o)}}}function b(E){var T=E<0?-1:1;E=Math.abs(E);for(var C=Math.ceil(E/(o-1)),A=0;A0?S(C,0,A+1):S(-C,o-A-1,o),E-=C,E<=0)return}return u}function kgt(n,e,t,r){return X4e(n,"x","width",e,t,r)}function Y4e(n,e,t,r){return X4e(n,"y","height",e,t,r)}function q4e(n){var e=[];n.sort(function(p,g){return g.priority-p.priority});var t=new ai(0,0,0,0);function r(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i=0&&r.attr(a.oldLayoutSelect),gi(f,"emphasis")>=0&&r.attr(a.oldLayoutEmphasis)),ma(r,u,t,l)}else if(r.attr(u),!DI(r).valueAnimation){var c=ni(r.style.opacity,1);r.style.opacity=0,Is(r,{style:{opacity:c}},t,l)}if(a.oldLayout=u,r.states.select){var d=a.oldLayoutSelect={};S4(d,u,w4),S4(d,r.states.select,w4)}if(r.states.emphasis){var v=a.oldLayoutEmphasis={};S4(v,u,w4),S4(v,r.states.emphasis,w4)}Nke(r,l,h,t,t)}if(i&&!i.ignore&&!i.invisible){var a=Ggt(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),ma(i,{shape:p},t)):(i.setShape(p),i.style.strokePercent=0,Is(i,{style:{strokePercent:1}},t)),a.oldLayout=p}},n}();const Ugt=zgt;var ej=na();function Vgt(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var i=ej(t).labelManager;i||(i=ej(t).labelManager=new Ugt),i.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var i=ej(t).labelManager;r.updatedSeries.forEach(function(a){i.addLabelsOfSeries(t.getViewOfSeriesModel(a))}),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()})}var tj=Math.sin,rj=Math.cos,Z4e=Math.PI,cb=Math.PI*2,$gt=180/Z4e,Wgt=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,i,a,o){this._add("C",e,t,r,i,a,o)},n.prototype.quadraticCurveTo=function(e,t,r,i){this._add("Q",e,t,r,i)},n.prototype.arc=function(e,t,r,i,a,o){this.ellipse(e,t,r,r,0,i,a,o)},n.prototype.ellipse=function(e,t,r,i,a,o,s,l){var u=s-o,h=!l,c=Math.abs(u),f=tS(c-cb)||(h?u>=cb:-u>=cb),d=u>0?u%cb:u%cb+cb,v=!1;f?v=!0:tS(c)?v=!1:v=d>=Z4e==!!h;var p=e+r*rj(o),g=t+i*tj(o);this._start&&this._add("M",p,g);var m=Math.round(a*$gt);if(f){var y=1/this._p,_=(h?1:-1)*(cb-y);this._add("A",r,i,m,1,+h,e+r*rj(o+_),t+i*tj(o+_)),y>.01&&this._add("A",r,i,m,0,+h,p,g)}else{var x=e+r*rj(s),S=t+i*tj(s);this._add("A",r,i,m,+v,+h,x,S)}},n.prototype.rect=function(e,t,r,i){this._add("M",e,t),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,i,a,o,s,l,u){for(var h=[],c=this._p,f=1;f"}function Qgt(n){return""}function sae(n,e){e=e||{};var t=e.newline?` +`:"";function r(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return Jgt(o,s)+(o!=="style"?ad(l):l||"")+(a?""+t+Vt(a,function(u){return r(u)}).join(t)+t:"")+Qgt(o)}return r(n)}function e0t(n,e,t){t=t||{};var r=t.newline?` +`:"",i=" {"+r,a=r+"}",o=Vt(Li(n),function(l){return l+i+Vt(Li(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+a}).join(r),s=Vt(Li(e),function(l){return"@keyframes "+l+i+Vt(Li(e[l]),function(u){return u+i+Vt(Li(e[l][u]),function(h){var c=e[l][u][h];return h==="d"&&(c='path("'+c+'")'),h+":"+c+";"}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?"":[""].join(r)}function PJ(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Uge(n,e,t,r){return ih("svg","root",{width:n,height:e,xmlns:J4e,"xmlns:xlink":Q4e,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var Vge={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Pb="transform-origin";function t0t(n,e,t){var r=Mt({},n.shape);Mt(r,e),n.buildPath(t,r);var i=new K4e;return i.reset(v3e(n)),t.rebuildPath(i,1),i.generateStr(),i.getStr()}function r0t(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[Pb]=t+"px "+r+"px")}var n0t={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function t5e(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function i0t(n,e,t){var r=n.shape.paths,i={},a,o;if(te(r,function(l){var u=PJ(t.zrId);u.animation=!0,pU(l,{},u,!0);var h=u.cssAnims,c=u.cssNodes,f=Li(h),d=f.length;if(!!d){o=f[d-1];var v=h[o];for(var p in v){var g=v[p];i[p]=i[p]||{d:""},i[p].d+=g.d||""}for(var m in c){var y=c[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){e.d=!1;var s=t5e(i,t);return a.replace(o,s)}}function $ge(n){return Or(n)?Vge[n]?"cubic-bezier("+Vge[n]+")":uie(n)?n:"":""}function pU(n,e,t,r){var i=n.animators,a=i.length,o=[];if(n instanceof Cie){var s=i0t(n,e,t);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var oe=t5e(b,t);return oe+" "+y[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+m]={animation:o.join(",")},e.class=m}}var yD=Math.round;function r5e(n){return n&&Or(n.src)}function n5e(n){return n&&rn(n.toDataURL)}function lae(n,e,t,r){qgt(function(i,a){var o=i==="fill"||i==="stroke";o&&d3e(a)?a5e(e,n,i,r):o&&hie(a)?o5e(t,n,i,r):n[i]=a},e,t,!1),c0t(t,n,r)}function Wge(n){return tS(n[0]-1)&&tS(n[1])&&tS(n[2])&&tS(n[3]-1)}function a0t(n){return tS(n[4])&&tS(n[5])}function uae(n,e,t){if(e&&!(a0t(e)&&Wge(e))){var r=t?10:1e4;n.transform=Wge(e)?"translate("+yD(e[4]*r)/r+" "+yD(e[5]*r)/r+")":tut(e)}}function Hge(n,e,t){for(var r=n.points,i=[],a=0;a"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Ff(f,g),Ff(d,g)}else if(f==null||d==null){var m=function(C,A){if(C){var M=C.elm,I=f||A.width,R=d||A.height;C.tag==="pattern"&&(u?(R=1,I/=a.width):h&&(I=1,R/=a.height)),C.attrs.width=I,C.attrs.height=R,M&&(M.setAttribute("width",I),M.setAttribute("height",R))}},y=yie(v,null,n,function(C){l||m(w,C),m(c,C)});y&&y.width&&y.height&&(f=f||y.width,d=d||y.height)}c=ih("image","img",{href:v,width:f,height:d}),o.width=f,o.height=d}else i.svgElement&&(c=Sn(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(!!c){var _,x;l?_=x=1:u?(x=1,_=o.width/a.width):h?(_=1,x=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),x!=null&&!isNaN(x)&&(o.height=x);var S=p3e(i);S&&(o.patternTransform=S);var w=ih("pattern","",o,[c]),b=sae(w),E=r.patternCache,T=E[b];T||(T=r.zrId+"-p"+r.patternIdx++,E[b]=T,o.id=T,w=r.defs[T]=ih("pattern",T,o,[c])),e[t]=Vz(T)}}function f0t(n,e,t){var r=t.clipPathCache,i=t.defs,a=r[n.id];if(!a){a=t.zrId+"-c"+t.clipPathIdx++;var o={id:a};r[n.id]=a,i[a]=ih("clipPath",a,o,[i5e(n,t)])}e["clip-path"]=Vz(a)}function Yge(n){return document.createTextNode(n)}function Hb(n,e,t){n.insertBefore(e,t)}function qge(n,e){n.removeChild(e)}function Zge(n,e){n.appendChild(e)}function s5e(n){return n.parentNode}function l5e(n){return n.nextSibling}function nj(n,e){n.textContent=e}var Kge=58,d0t=120,v0t=ih("","");function OJ(n){return n===void 0}function Ey(n){return n!==void 0}function p0t(n,e,t){for(var r={},i=e;i<=t;++i){var a=n[i].key;a!==void 0&&(r[a]=i)}return r}function iO(n,e){var t=n.key===e.key,r=n.tag===e.tag;return r&&t}function mD(n){var e,t=n.children,r=n.tag;if(Ey(r)){var i=n.elm=e5e(r);if(hae(v0t,n),Gt(t))for(e=0;ea?(v=t[l+1]==null?null:t[l+1].elm,u5e(n,v,t,i,l)):EG(n,e,r,a))}function zC(n,e){var t=e.elm=n.elm,r=n.children,i=e.children;n!==e&&(hae(n,e),OJ(e.text)?Ey(r)&&Ey(i)?r!==i&&g0t(t,r,i):Ey(i)?(Ey(n.text)&&nj(t,""),u5e(t,null,i,0,i.length-1)):Ey(r)?EG(t,r,0,r.length-1):Ey(n.text)&&nj(t,""):n.text!==e.text&&(Ey(r)&&EG(t,r,0,r.length-1),nj(t,e.text)))}function y0t(n,e){if(iO(n,e))zC(n,e);else{var t=n.elm,r=s5e(t);mD(e),r!==null&&(Hb(r,e.elm,l5e(t)),EG(r,[n],0,0))}return e}var m0t=0,_0t=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=Jge(),this.configLayer=Jge(),this.storage=t,this._opts=r=Mt({},r),this.root=e,this._id="zr"+m0t++,this._oldVNode=Uge(r.width,r.height),e&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=e5e("svg");hae(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",y0t(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return Xge(e,PJ(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,i=this._height,a=PJ(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress;var o=[],s=this._bgVNode=x0t(r,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=ih("g","main",{},[]);this._paintList(t,a,l?l.children:o),l&&o.push(l);var u=Vt(Li(a.defs),function(f){return a.defs[f]});if(u.length&&o.push(ih("defs","defs",{},u)),e.animation){var h=e0t(a.cssNodes,a.cssAnims,{newline:!0});if(h){var c=ih("style","stl",{},[],h);o.push(c)}}return Uge(r,i,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},sae(this.renderToVNode({animation:ni(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:ni(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var i=e.length,a=[],o=0,s,l,u=0,h=0;h=0&&!(f&&l&&f[p]===l[p]);p--);for(var g=v-1;g>p;g--)o--,s=a[o-1];for(var m=p+1;m=s)}}for(var c=this.__startIndex;c15)break}}R.prevElClipPaths&&m.restore()};if(y)if(y.length===0)E=g.__endIndex;else for(var C=d.dpr,A=0;A0&&e>i[0]){for(l=0;le);l++);s=r[i[l]]}if(i.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,i=0;i0?b4:0),this._needsManuallyCompositing),h.__builtin__||rie("ZLevel "+u+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==l&&(h.__dirty=!0),h.__startIndex=l,h.incremental?h.__drawIndex=-1:h.__drawIndex=l,t(l),a=h),i.__dirty&ov&&!i.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(c,f){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,te(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?ii(r[e],t,!0):r[e]=t;for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Ws);const P0t=L0t;function pM(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var i=fM(n,e,t[0]);return i!=null?i+"":null}else if(r){for(var a=[],o=0;o=0&&r.push(e[a])}return r.join(" ")}var O0t=function(n){$e(e,n);function e(t,r,i,a){var o=n.call(this)||this;return o.updateData(t,r,i,a),o}return e.prototype._createSymbol=function(t,r,i,a,o){this.removeAll();var s=hu(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=R0t,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){h_(this.childAt(0))},e.prototype.downplay=function(){c_(this.childAt(0))},e.prototype.setZ=function(t,r){var i=this.childAt(0);i.zlevel=t,i.z=r},e.prototype.setDraggable=function(t,r){var i=this.childAt(0);i.draggable=t,i.cursor=!r&&t?"move":i.cursor},e.prototype.updateData=function(t,r,i,a){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,h=a&&a.disableAnimation;if(u){var c=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,c)}else{var f=this.childAt(0);f.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};h?f.attr(d):ma(f,d,s,r),x0(f)}if(this._updateCommon(t,r,l,i,a),u){var f=this.childAt(0);if(!h){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Is(f,d,s,r)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,i,a,o){var s=this.childAt(0),l=t.hostModel,u,h,c,f,d,v,p,g,m;if(a&&(u=a.emphasisItemStyle,h=a.blurItemStyle,c=a.selectItemStyle,f=a.focus,d=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,v=a.emphasisDisabled),!a||t.hasItemOption){var y=a&&a.itemModel?a.itemModel:t.getItemModel(r),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),h=y.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),d=_.get("blurScope"),v=_.get("disabled"),p=hh(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var x=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=Y2(t.getItemVisual(r,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var w=t.getItemVisual(r,"style"),b=w.fill;if(s instanceof xc){var E=s.style;s.useStyle(Mt({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},w))}else s.__isEmptyBrush?s.useStyle(Mt({},w)):s.useStyle(w),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=t.getItemVisual(r,"liftZ"),C=this._z2;T!=null?C==null&&(this._z2=s.z2,s.z2+=T):C!=null&&(s.z2=C,this._z2=null);var A=o&&o.useNameLabel;vc(s,p,{labelFetcher:l,labelDataIndex:r,defaultText:M,inheritColor:b,defaultOpacity:w.opacity});function M(k){return A?t.getName(k):pM(t,k)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=h;var R=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*R,I.scaleY=this._sizeY*R,this.setSymbolScale(1),dl(this,f,d,v)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,i){var a=this.childAt(0),o=Bn(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&NS(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();NS(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return VI(t.getItemVisual(r,"symbolSize"))},e}(Cn);function R0t(n,e){this.parent.drift(n,e)}const C3=O0t;function aj(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function t0e(n){return n!=null&&!dn(n)&&(n={isIgnore:n}),n||{}}function r0e(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:hh(e),cursorStyle:e.get("cursor")}}var D0t=function(){function n(e){this.group=new Cn,this._SymbolCtor=e||C3}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=t0e(t);var r=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=r0e(e),u={disableAnimation:s},h=t.getSymbolPoint||function(c){return e.getItemLayout(c)};a||r.removeAll(),e.diff(a).add(function(c){var f=h(c);if(aj(e,f,c,t)){var d=new o(e,c,l,u);d.setPosition(f),e.setItemGraphicEl(c,d),r.add(d)}}).update(function(c,f){var d=a.getItemGraphicEl(f),v=h(c);if(!aj(e,v,c,t)){r.remove(d);return}var p=e.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==p)r.remove(d),d=new o(e,c,l,u),d.setPosition(v);else{d.updateData(e,c,l,u);var m={x:v[0],y:v[1]};s?d.attr(m):ma(d,m,i)}r.add(d),e.setItemGraphicEl(c,d)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&f.fadeOut(function(){r.remove(f)},i)}).execute(),this._getSymbolPoint=h,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,i){var a=e._getSymbolPoint(i);r.setPosition(a),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=r0e(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=t0e(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0?t=r[0]:r[1]<0&&(t=r[1]),t}function f5e(n,e,t,r){var i=NaN;n.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=n.valueStart);var a=n.baseDataOffset,o=[];return o[a]=t.get(n.baseDim,r),o[1-a]=i,e.dataToPoint(o)}function k0t(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,i){t.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function F0t(n,e,t,r,i,a,o,s){for(var l=k0t(n,e),u=[],h=[],c=[],f=[],d=[],v=[],p=[],g=c5e(i,e,o),m=n.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_=i||p<0)break;if(IE(m,y)){if(l){p+=a;continue}break}if(p===t)n[a>0?"moveTo":"lineTo"](m,y),c=m,f=y;else{var _=m-u,x=y-h;if(_*_+x*x<.5){p+=a;continue}if(o>0){for(var S=p+a,w=e[S*2],b=e[S*2+1];w===m&&b===y&&g=r||IE(w,b))d=m,v=y;else{C=w-u,A=b-h;var R=m-u,k=w-m,D=y-h,G=b-y,V=void 0,z=void 0;if(s==="x"){V=Math.abs(R),z=Math.abs(k);var j=C>0?1:-1;d=m-j*V*o,v=y,M=m+j*z*o,I=y}else if(s==="y"){V=Math.abs(D),z=Math.abs(G);var Z=A>0?1:-1;d=m,v=y-Z*V*o,M=m,I=y+Z*z*o}else V=Math.sqrt(R*R+D*D),z=Math.sqrt(k*k+G*G),T=z/(z+V),d=m-C*o*(1-T),v=y-A*o*(1-T),M=m+C*o*T,I=y+A*o*T,M=lx(M,ux(w,m)),I=lx(I,ux(b,y)),M=ux(M,lx(w,m)),I=ux(I,lx(b,y)),C=M-m,A=I-y,d=m-C*V/z,v=y-A*V/z,d=lx(d,ux(u,m)),v=lx(v,ux(h,y)),d=ux(d,lx(u,m)),v=ux(v,lx(h,y)),C=m-d,A=y-v,M=m+C*z/V,I=y+A*z/V}n.bezierCurveTo(c,f,d,v,m,y),c=M,f=I}else n.lineTo(m,y)}u=m,h=y,p+=a}return g}var d5e=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),B0t=function(n){$e(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new d5e},e.prototype.buildPath=function(t,r){var i=r.points,a=0,o=i.length/2;if(r.connectNulls){for(;o>0&&IE(i[o*2-2],i[o*2-1]);o--);for(;a=0){var x=u?(v-l)*_+l:(d-s)*_+s;return u?[t,x]:[x,t]}s=d,l=v;break;case o.C:d=a[c++],v=a[c++],p=a[c++],g=a[c++],m=a[c++],y=a[c++];var S=u?J8(s,d,p,m,t,h):J8(l,v,g,y,t,h);if(S>0)for(var w=0;w=0){var x=u?Qu(l,v,g,y,b):Qu(s,d,p,m,b);return u?[t,x]:[x,t]}}s=m,l=y;break}}},e}(Si),G0t=function(n){$e(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(d5e),v5e=function(n){$e(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new G0t},e.prototype.buildPath=function(t,r){var i=r.points,a=r.stackedOnPoints,o=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&IE(i[s*2-2],i[s*2-1]);s--);for(;oe){a?t.push(o(a,l,e)):i&&t.push(o(i,l,0),o(i,l,e));break}else i&&(t.push(o(i,l,0)),i=null),t.push(l),a=l}return t}function V0t(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var i,a,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=r[o];break}}if(!!a){var l=e.getAxis(i),u=Vt(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),h=u.length,c=a.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var f=U0t(u,i==="x"?t.getWidth():t.getHeight()),d=f.length;if(!d&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var v=10,p=f[0].coord-v,g=f[d-1].coord+v,m=g-p;if(m<.001)return"transparent";te(f,function(_){_.offset=(_.coord-p)/m}),f.push({offset:d?f[d-1].offset:.5,color:c[1]||"transparent"}),f.unshift({offset:d?f[0].offset:.5,color:c[0]||"transparent"});var y=new y3(0,0,0,0,f,!0);return y[i]=p,y[i+"2"]=g,y}}}function $0t(n,e,t){var r=n.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var a=t.getAxesByScale("ordinal")[0];if(!!a&&!(i&&W0t(a,e))){var o=e.mapDimension(a.dim),s={};return te(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function W0t(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;or)return!1;return!0}function H0t(n,e){return isNaN(n)||isNaN(e)}function j0t(n){for(var e=n.length/2;e>0&&H0t(n[e*2-2],n[e*2-1]);e--);return e-1}function s0e(n,e){return[n[e*2],n[e*2+1]]}function X0t(n,e,t){for(var r=n.length/2,i=t==="x"?0:1,a,o,s=0,l=-1,u=0;u=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function y5e(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var j=p.getState("emphasis").style;j.lineWidth=+p.style.lineWidth+1}Bn(p).seriesIndex=t.seriesIndex,dl(p,G,V,z);var Z=o0e(t.get("smooth")),Y=t.get("smoothMonotone");if(p.setShape({smooth:Z,smoothMonotone:Y,connectNulls:E}),g){var le=l.getCalculationInfo("stackedOnSeries"),H=0;g.useStyle(sn(h.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),le&&(H=o0e(le.get("smooth"))),g.setShape({smooth:Z,stackedOnSmooth:H,smoothMonotone:Y,connectNulls:E}),dc(g,t,"areaStyle"),Bn(g).seriesIndex=t.seriesIndex,dl(g,G,V,z)}var Q=function(ie){a._changePolyState(ie)};l.eachItemGraphicEl(function(ie){ie&&(ie.onHoverStateChange=Q)}),this._polyline.onHoverStateChange=Q,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=c,this._step=A,this._valueOrigin=x,t.get("triggerLineEvent")&&(this.packEventData(t,p),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,r){Bn(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,i,a){var o=t.getData(),s=YE(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var h=l[s*2],c=l[s*2+1];if(isNaN(h)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,c))return;var f=t.get("zlevel")||0,d=t.get("z")||0;u=new C3(o,s),u.x=h,u.y=c,u.setZ(f,d);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=f,v.z=d,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else os.prototype.highlight.call(this,t,r,i,a)},e.prototype.downplay=function(t,r,i,a){var o=t.getData(),s=YE(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else os.prototype.downplay.call(this,t,r,i,a)},e.prototype._changePolyState=function(t){var r=this._polygon;oG(this._polyline,t),r&&oG(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new B0t({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new v5e({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,r,i){var a,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):r.type==="polar"&&(a=s.dim==="angle",o=!0);var u=t.hostModel,h=u.get("animationDuration");rn(h)&&(h=h(null));var c=u.get("animationDelay")||0,f=rn(c)?c(null):c;t.eachItemGraphicEl(function(d,v){var p=d;if(p){var g=[d.x,d.y],m=void 0,y=void 0,_=void 0;if(i)if(o){var x=i,S=r.pointToCoord(g);a?(m=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI):(m=x.r0,y=x.r,_=S[0])}else{var w=i;a?(m=w.x,y=w.x+w.width,_=d.x):(m=w.y+w.height,y=w.y,_=d.y)}var b=y===m?0:(_-m)/(y-m);l&&(b=1-b);var E=rn(c)?c(v):h*b+f,T=p.getSymbolPath(),C=T.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:E}),T.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,i){var a=t.getModel("endLabel");if(y5e(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new la({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var h=j0t(l);h>=0&&(vc(s,hh(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:h,defaultText:function(c,f,d){return d!=null?h5e(o,d):pM(o,c)},enableTextSetter:!0},Y0t(a,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,i,a,o,s,l){var u=this._endLabel,h=this._polyline;if(u){t<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),f=i.hostModel,d=f.get("connectNulls"),v=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=r.shape,x=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,S=(m?p:0)*(y?-1:1),w=(m?0:-p)*(y?-1:1),b=m?"x":"y",E=X0t(c,x,b),T=E.range,C=T[1]-T[0],A=void 0;if(C>=1){if(C>1&&!d){var M=s0e(c,T[0]);u.attr({x:M[0]+S,y:M[1]+w}),o&&(A=f.getRawValue(T[0]))}else{var M=h.getPointOn(x,b);M&&u.attr({x:M[0]+S,y:M[1]+w});var I=f.getRawValue(T[0]),R=f.getRawValue(T[1]);o&&(A=k3e(i,v,I,R,E.t))}a.lastFrameIndex=T[0]}else{var k=t===1||a.lastFrameIndex>0?T[0]:0,M=s0e(c,k);o&&(A=f.getRawValue(k)),u.attr({x:M[0]+S,y:M[1]+w})}if(o){var D=DI(u);typeof D.setLabelText=="function"&&D.setLabelText(A)}}},e.prototype._doUpdateAnimation=function(t,r,i,a,o,s,l){var u=this._polyline,h=this._polygon,c=t.hostModel,f=F0t(this._data,t,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),d=f.current,v=f.stackedOnCurrent,p=f.next,g=f.stackedOnNext;if(o&&(d=hx(f.current,i,o,l),v=hx(f.stackedOnCurrent,i,o,l),p=hx(f.next,i,o,l),g=hx(f.stackedOnNext,i,o,l)),a0e(d,p)>3e3||h&&a0e(v,g)>3e3){u.stopAnimation(),u.setShape({points:p}),h&&(h.stopAnimation(),h.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=f.current,u.shape.points=d;var m={shape:{points:p}};f.current!==d&&(m.shape.__points=f.next),u.stopAnimation(),ma(u,m,c),h&&(h.setShape({points:d,stackedOnPoints:v}),h.stopAnimation(),ma(h,{shape:{stackedOnPoints:g}},c),u.shape.points!==h.shape.points&&(h.shape.points=u.shape.points));for(var y=[],_=f.status,x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var w=t.getItemGraphicEl(_[x].idx1);w&&y.push({el:w,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){h&&h.dirtyShape();for(var b=u.shape.__points,E=0;Ee&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),h=l.getExtent(),c=r.getDevicePixelRatio(),f=Math.abs(h[1]-h[0])*(c||1),d=Math.round(s/f);if(isFinite(d)&&d>1){a==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d));var v=void 0;Or(a)?v=K0t[a]:rn(a)&&(v=a),v&&e.setData(i.downSample(i.mapDimension(u.dim),1/d,v,J0t))}}}}}function Q0t(n){n.registerChartView(Z0t),n.registerSeriesModel(P0t),n.registerLayout(M3("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,m5e("line"))}var _5e=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return k_(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(t),s=a.dataToPoint(o);if(i)te(a.getAxes(),function(f,d){if(f.type==="category"&&r!=null){var v=f.getTicksCoords(),p=o[d],g=r[d]==="x1"||r[d]==="y1";if(g&&(p+=1),v.length<2)return;if(v.length===2){s[d]=f.toGlobalCoord(f.getExtent()[g?1:0]);return}for(var m=void 0,y=void 0,_=1,x=0;xp){y=(S+m)/2;break}x===1&&(_=w-v[0].tickValue)}y==null&&(m?m&&(y=v[v.length-1].coord):y=v[0].coord),s[d]=f.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),h=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+h/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Ws);Ws.registerClass(_5e);const TG=_5e;var eyt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return k_(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,i){return i.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=xw(TG.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},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(TG);const tyt=eyt;var ryt=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),nyt=function(n){$e(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new ryt},e.prototype.buildPath=function(t,r){var i=r.cx,a=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,h=r.startAngle,c=r.endAngle,f=r.clockwise,d=Math.PI*2,v=f?c-hMath.PI/2&&hs)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var i=r.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,i,a){if(!!this._isOrderChangedWithinSameData(t,r,i)){var o=this._dataSort(t,i,r);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,i){var a=r.baseAxis,o=this._dataSort(t,a,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){lD(a,t,Bn(a).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(os),l0e={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=n.x+n.width,a=n.y+n.height,o=sj(e.x,n.x),s=lj(e.x+e.width,i),l=sj(e.y,n.y),u=lj(e.y+e.height,a),h=si?s:o,e.y=c&&l>a?u:l,e.width=h?0:s-o,e.height=c?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var i=lj(e.r,n.r),a=sj(e.r0,n.r0);e.r=i,e.r0=a;var o=i-a<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},u0e={cartesian2d:function(n,e,t,r,i,a,o,s,l){var u=new ta({shape:Mt({},r),z2:1});if(u.__dataIndex=t,u.name="item",a){var h=u.shape,c=i?"height":"width";h[c]=0}return u},polar:function(n,e,t,r,i,a,o,s,l){var u=!i&&l?CG:wd,h=new u({shape:r,z2:1});h.name="item";var c=x5e(i);if(h.calculateTextPosition=iyt(c,{isRoundCap:u===CG}),a){var f=h.shape,d=i?"r":"endAngle",v={};f[d]=i?r.r0:r.startAngle,v[d]=r[d],(s?ma:Is)(h,{shape:v},a)}return h}};function lyt(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function h0e(n,e,t,r,i,a,o,s){var l,u;a?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ma:Is)(t,{shape:l},e,i,null);var h=e?n.baseAxis.model:null;(o?ma:Is)(t,{shape:u},h,i)}function c0e(n,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function cyt(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function x5e(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function d0e(n,e,t,r,i,a,o,s){var l=e.getItemVisual(t,"style");if(s){if(!a.get("roundCap")){var h=n.shape,c=lE(r.getModel("itemStyle"),h,!0);Mt(h,c),n.setShape(h)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var d=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",v=hh(r);vc(n,v,{labelFetcher:a,labelDataIndex:t,defaultText:pM(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var p=n.getTextContent();if(s&&p){var g=r.get(["label","position"]);n.textConfig.inside=g==="middle"?!0:null,ayt(n,g==="outside"?d:g,x5e(o),r.get(["label","rotate"]))}Dke(p,v,a.getRawValue(t),function(y){return h5e(e,y)});var m=r.getModel(["emphasis"]);dl(n,m.get("focus"),m.get("blurScope"),m.get("disabled")),dc(n,r),cyt(i)&&(n.style.fill="none",n.style.stroke="none",te(n.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function fyt(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,a)}var dyt=function(){function n(){}return n}(),v0e=function(n){$e(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new dyt},e.prototype.buildPath=function(t,r){for(var i=r.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,h=0;h=0?t:null},30,!1);function vyt(n,e,t){for(var r=n.baseDimIdx,i=1-r,a=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,h=0,c=a.length/3;h=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[h]}return-1}function S5e(n,e,t){if(Z2(t,"cartesian2d")){var r=e,i=t.getArea();return{x:n?r.x:i.x,y:n?i.y:r.y,width:n?r.width:i.width,height:n?i.height:r.height}}else{var i=t.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:n?i.r0:a.r0,r:n?i.r:a.r,startAngle:n?a.startAngle:0,endAngle:n?a.endAngle:Math.PI*2}}}function pyt(n,e,t){var r=n.type==="polar"?wd:ta;return new r({shape:S5e(e,t,n),silent:!0,z2:0})}const gyt=syt;function yyt(n){n.registerChartView(gyt),n.registerSeriesModel(tyt),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Un(T4e,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,C4e("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,m5e("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var A4=Math.PI*2,y0e=Math.PI/180;function w5e(n,e){return Uu(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function b5e(n,e){var t=w5e(n,e),r=n.get("center"),i=n.get("radius");Gt(i)||(i=[0,i]);var a=xr(t.width,e.getWidth()),o=xr(t.height,e.getHeight()),s=Math.min(a,o),l=xr(i[0],s/2),u=xr(i[1],s/2),h,c,f=n.coordinateSystem;if(f){var d=f.dataToPoint(r);h=d[0]||0,c=d[1]||0}else Gt(r)||(r=[r,r]),h=xr(r[0],a)+t.x,c=xr(r[1],o)+t.y;return{cx:h,cy:c,r0:l,r:u}}function myt(n,e,t){e.eachSeriesByType(n,function(r){var i=r.getData(),a=i.mapDimension("value"),o=w5e(r,t),s=b5e(r,t),l=s.cx,u=s.cy,h=s.r,c=s.r0,f=-r.get("startAngle")*y0e,d=r.get("minAngle")*y0e,v=0;i.each(a,function(C){!isNaN(C)&&v++});var p=i.getSum(a),g=Math.PI/(p||v)*2,m=r.get("clockwise"),y=r.get("roseType"),_=r.get("stillShowZeroSum"),x=i.getDataExtent(a);x[0]=0;var S=A4,w=0,b=f,E=m?1:-1;if(i.setLayout({viewRect:o,r:h}),i.each(a,function(C,A){var M;if(isNaN(C)){i.setItemLayout(A,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:c,r:y?NaN:h});return}y!=="area"?M=p===0&&_?g:C*g:M=A4/v,Mt?m:g,S=Math.abs(_.label.y-t);if(S>=x.maxY){var w=_.label.x-e-_.len2*i,b=r+_.len,E=Math.abs(w)n.unconstrainedWidth?null:d:null;r.setStyle("width",v)}var p=r.getBoundingRect();a.width=p.width;var g=(r.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-c)/2}}}function uj(n){return n.position==="center"}function Syt(n){var e=n.getData(),t=[],r,i,a=!1,o=(n.get("minShowLabelAngle")||0)*_yt,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,h=s.x,c=s.y,f=s.height;function d(w){w.ignore=!0}function v(w){if(!w.ignore)return!0;for(var b in w.states)if(w.states[b].ignore===!1)return!0;return!1}e.each(function(w){var b=e.getItemGraphicEl(w),E=b.shape,T=b.getTextContent(),C=b.getTextGuideLine(),A=e.getItemModel(w),M=A.getModel("label"),I=M.get("position")||A.get(["emphasis","label","position"]),R=M.get("distanceToLabelLine"),k=M.get("alignTo"),D=xr(M.get("edgeDistance"),u),G=M.get("bleedMargin"),V=A.getModel("labelLine"),z=V.get("length");z=xr(z,u);var j=V.get("length2");if(j=xr(j,u),Math.abs(E.endAngle-E.startAngle)0?"right":"left":Y>0?"left":"right"}var st=Math.PI,Nt=0,Zt=M.get("rotate");if(ha(Zt))Nt=Zt*(st/180);else if(I==="center")Nt=0;else if(Zt==="radial"||Zt===!0){var qe=Y<0?-Z+st:-Z;Nt=qe}else if(Zt==="tangential"&&I!=="outside"&&I!=="outer"){var ur=Math.atan2(Y,le);ur<0&&(ur=st*2+ur);var Dt=le>0;Dt&&(ur=st+ur),Nt=ur-st}if(a=!!Nt,T.x=H,T.y=Q,T.rotation=Nt,T.setStyle({verticalAlign:"middle"}),se){T.setStyle({align:oe});var J=T.states.select;J&&(J.x+=T.x,J.y+=T.y)}else{var ft=T.getBoundingRect().clone();ft.applyTransform(T.getComputedTransform());var Oe=(T.style.margin||0)+2.1;ft.y-=Oe/2,ft.height+=Oe,t.push({label:T,labelLine:C,position:I,len:z,len2:j,minTurnAngle:V.get("minTurnAngle"),maxSurfaceAngle:V.get("maxSurfaceAngle"),surfaceNormal:new qn(Y,le),linePoints:ie,textAlign:oe,labelDistance:R,labelAlignTo:k,edgeDistance:D,bleedMargin:G,rect:ft,unconstrainedWidth:ft.width,labelStyleWidth:T.style.width})}b.setTextConfig({inside:se})}}),!a&&n.get("avoidLabelOverlap")&&xyt(t,r,i,l,u,f,h,c);for(var p=0;p0){for(var h=o.getItemLayout(0),c=1;isNaN(h&&h.startAngle)&&c=a.r0}},e.type="pie",e}(os);const Eyt=byt;function $I(n,e,t){e=Gt(e)&&{coordDimensions:e}||Mt({encodeDefine:n.getEncode()},e);var r=n.getSource(),i=b3(r,e).dimensions,a=new Rf(i,n);return a.initData(r,t),a}var Tyt=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const L3=Tyt;var Cyt=na(),Ayt=function(n){$e(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new L3(kr(this.getData,this),kr(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return $I(this,{coordDimensions:["value"],encodeDefaulter:Un(Nie,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),i=Cyt(r),a=i.seats;if(!a){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Fut(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){XE(t,"labelLine",["show"]);var r=t.labelLine,i=t.emphasis.labelLine;r.show=r.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Ws);const Myt=Ayt;function Iyt(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(i){var a=r.mapDimension("value"),o=r.get(a,i);return!(ha(o)&&!isNaN(o)&&o<0)})}}}function Lyt(n){n.registerChartView(Eyt),n.registerSeriesModel(Myt),VFe("pie",n.registerAction),n.registerLayout(Un(myt,"pie")),n.registerProcessor(I3("pie")),n.registerProcessor(Iyt("pie"))}var Pyt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return k_(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,r,i){return i.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Ws);const Oyt=Pyt;var T5e=4,Ryt=function(){function n(){}return n}(),Dyt=function(n){$e(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new Ryt},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var i=r.points,a=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&a[0]=0;u--){var h=u*2,c=a[h]-s/2,f=a[h+1]-l/2;if(t>=c&&r>=f&&t<=c+s&&r<=f+l)return u}return-1},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),a=this.getBoundingRect();if(t=i[0],r=i[1],a.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,i=r.points,a=r.size,o=a[0],s=a[1],l=1/0,u=1/0,h=-1/0,c=-1/0,f=0;f=0&&(u.dataIndex=c+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const kyt=Nyt;var Fyt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.updateData(a,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,i){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(t,r,i){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,i){var a=t.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=M3("").reset(t,r,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,i=r&&r.getArea&&r.getArea();return t.get("clip",!0)?i:null},e.prototype._updateSymbolDraw=function(t,r){var i=this._symbolDraw,a=r.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new kyt:new A3,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(os);const Byt=Fyt;var Gyt=function(n){$e(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(oa);const zyt=Gyt;var DJ=function(n){$e(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",uu).models[0]},e.type="cartesian2dAxis",e}(oa);gu(DJ,T3);var C5e={show:!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:"#6E7079",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:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Uyt=ii({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},C5e),cae=ii({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},C5e),Vyt=ii({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},cae),$yt=sn({logBase:10},cae);const A5e={category:Uyt,value:cae,time:Vyt,log:$yt};var Wyt={value:1,category:1,time:1,log:1};function gM(n,e,t,r){te(Wyt,function(i,a){var o=ii(ii({},A5e[a],!0),r,!0),s=function(l){$e(u,l);function u(){var h=l!==null&&l.apply(this,arguments)||this;return h.type=e+"Axis."+a,h}return u.prototype.mergeDefaultAndTheme=function(h,c){var f=cD(this),d=f?FI(h):{},v=c.getTheme();ii(h,v.get(a+"Axis")),ii(h,this.getDefaultOption()),h.type=_0e(h),f&&kS(h,d,f)},u.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=AJ.createByAxisModel(this))},u.prototype.getCategories=function(h){var c=this.option;if(c.type==="category")return h?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+a,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",_0e)}function _0e(n){return n.type||(n.data?"category":"value")}var Hyt=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return Vt(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),To(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const jyt=Hyt;var NJ=["x","y"];function x0e(n){return n.type==="interval"||n.type==="time"}var Xyt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=NJ,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!x0e(t)||!x0e(r))){var i=t.getExtent(),a=r.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var h=(s[0]-o[0])/l,c=(s[1]-o[1])/u,f=o[0]-i[0]*h,d=o[1]-a[0]*c,v=this._transform=[h,0,0,c,f,d];this._invTransform=II([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var i=this.dataToPoint(t),a=this.dataToPoint(r),o=this.getArea(),s=new ai(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,i){i=i||[];var a=t[0],o=t[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return cc(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,r)),i[1]=l.toGlobalCoord(l.dataToCoord(o,r)),i},e.prototype.clampData=function(t,r){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(t[0]),u=a.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var i=[];if(this._invTransform)return cc(i,t,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(t[0]),r),i[1]=o.coordToData(o.toLocalCoord(t[1]),r),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),a=Math.min(r[0],r[1]),o=Math.max(t[0],t[1])-i,s=Math.max(r[0],r[1])-a;return new ai(i,a,o,s)},e}(jyt),Yyt=function(n){$e(e,n);function e(t,r,i,a,o){var s=n.call(this,t,r,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(D0);const qyt=Yyt;function kJ(n,e,t){t=t||{};var r=n.coordinateSystem,i=e.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,h=r.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],f={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,v=u==="x"?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[f.onZero]=Math.max(Math.min(p,v[1]),v[0])}a.position=[u==="y"?v[f[l]]:c[0],u==="x"?v[f[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?v[f[s]]-v[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Gh(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function S0e(n){return n.get("coordinateSystem")==="cartesian2d"}function w0e(n){var e={xAxisModel:null,yAxisModel:null};return te(e,function(t,r){var i=r.replace(/Model$/,""),a=n.getReferringComponents(i,uu).models[0];e[r]=a}),e}var hj=Math.log;function M5e(n,e,t){var r=BS.prototype,i=r.getTicks.call(t),a=r.getTicks.call(t,!0),o=i.length-1,s=r.getInterval.call(t),l=R4e(n,e),u=l.extent,h=l.fixMin,c=l.fixMax;if(n.type==="log"){var f=hj(n.base);u=[hj(u[0])/f,hj(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:h,fixMax:c});var d=r.getExtent.call(n);h&&(u[0]=d[0]),c&&(u[1]=d[1]);var v=r.getInterval.call(n),p=u[0],g=u[1];if(h&&c)v=(g-p)/o;else if(h)for(g=u[0]+v*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)v=ZH(v),p=u[1]-v*o;else{var m=n.getTicks().length-1;m>o&&(v=ZH(v));var y=v*o;g=Math.ceil(u[1]/v)*v,p=Pl(g-y),p<0&&u[0]>=0?(p=0,g=Pl(y)):g>0&&u[1]<=0&&(g=0,p=-Pl(y))}var _=(i[0].value-a[0].value)/s,x=(i[o].value-a[o].value)/s;r.setExtent.call(n,p+v*_,g+v*x),r.setInterval.call(n,v),(_||x)&&r.setNiceExtent.call(n,p+v,g-v)}var Zyt=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=NJ,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=Li(o),u=l.length;if(!!u){for(var h=[],c=u-1;c>=0;c--){var f=+l[c],d=o[f],v=d.model,p=d.scale;MJ(p)&&v.get("alignTicks")&&v.get("interval")==null?h.push(d):(vM(p,v),MJ(p)&&(s=d))}h.length&&(s||(s=h.pop(),vM(s.scale,s.model)),te(h,function(g){M5e(g.scale,g.model,s.scale)}))}}i(r.x),i(r.y);var a={};te(r.x,function(o){b0e(r,"y",o,a)}),te(r.y,function(o){b0e(r,"x",o,a)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var i=e.getBoxLayoutParams(),a=!r&&e.get("containLabel"),o=Uu(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(te(s,function(u){if(!u.model.get(["axisLabel","inside"])){var h=hgt(u);if(h){var c=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[c]-=h[c]+f,u.position==="top"?o.y+=h.height+f:u.position==="left"&&(o.x+=h.width+f)}}}),l()),te(this._coordsList,function(u){u.calcAffineTransform()});function l(){te(s,function(u){var h=u.isHorizontal(),c=h?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(c[f],c[1-f]),Kyt(u,h?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}dn(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):iG(i-rS)?(o=r>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=r>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),T0e={axisLine:function(n,e,t,r){var i=e.get(["axisLine","show"]);if(i==="auto"&&n.handleAutoShown&&(i=n.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),o=r.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(cc(s,s,o),cc(l,l,o));var h=Mt({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new zh({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});cM(c.shape,c.style.lineWidth),c.anid="line",t.add(c);var f=e.get(["axisLine","symbol"]);if(f!=null){var d=e.get(["axisLine","symbolSize"]);Or(f)&&(f=[f,f]),(Or(d)||ha(d))&&(d=[d,d]);var v=Y2(e.get(["axisLine","symbolOffset"])||0,d),p=d[0],g=d[1];te([{rotate:n.rotation+Math.PI/2,offset:v[0],r:0},{rotate:n.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(f[y]!=="none"&&f[y]!=null){var _=hu(f[y],-p/2,-g/2,p,g,h.stroke,!0),x=m.r+m.offset,S=u?l:s;_.attr({rotation:m.rotate,x:S[0]+x*Math.cos(n.rotation),y:S[1]-x*Math.sin(n.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(n,e,t,r){var i=tmt(t,r,e,n),a=nmt(t,r,e,n);if(emt(e,a,i),rmt(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=j4e(Vt(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));q4e(o)}},axisName:function(n,e,t,r){var i=Gh(n.axisName,e.get("name"));if(!!i){var a=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),h=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-h*l:a==="end"?u[1]+h*l:(u[0]+u[1])/2,A0e(a)?n.labelOffset+o*l:0],f,d=e.get("nameRotate");d!=null&&(d=d*rS/180);var v;A0e(a)?f=LE.innerTextLayout(n.rotation,d!=null?d:n.rotation,o):(f=Qyt(n.rotation,a,d||0,u),v=n.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(f.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},m=g.ellipsis,y=Gh(n.nameTruncateMaxWidth,g.maxWidth,v),_=new la({x:c[0],y:c[1],rotation:f.rotation,silent:LE.isLabelSilent(e),style:is(s,{text:i,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(RI({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var x=LE.makeAxisEventDataBase(e);x.targetType="axisName",x.name=i,Bn(_).eventData=x}r.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function Qyt(n,e,t,r){var i=C3e(t-n),a,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return iG(i-rS/2)?(o=l?"bottom":"top",a="center"):iG(i-rS*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",irS/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function emt(n,e,t){if(!D4e(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),i=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],h=t[1],c=t[t.length-1],f=t[t.length-2];r===!1?(Xv(a),Xv(u)):C0e(a,o)&&(r?(Xv(o),Xv(h)):(Xv(a),Xv(u))),i===!1?(Xv(s),Xv(c)):C0e(l,s)&&(i?(Xv(l),Xv(f)):(Xv(s),Xv(c)))}}function Xv(n){n&&(n.ignore=!0)}function C0e(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var i=Uz([]);return j2(i,i,-n.rotation),t.applyTransform($1([],i,n.getLocalTransform())),r.applyTransform($1([],i,e.getLocalTransform())),t.intersect(r)}}function A0e(n){return n==="middle"||n==="center"}function I5e(n,e,t,r,i){for(var a=[],o=[],s=[],l=0;l=0||n===e}function umt(n){var e=fae(n);if(!!e){var t=e.axisPointerModel,r=e.axis.scale,i=t.option,a=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=FJ(t);a==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var p=l;v.color!=null&&(p=sn({color:v.color},l));var g=ii(Sn(v),{boundaryGap:t,splitNumber:r,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:f},!1);if(Or(h)){var m=g.name;g.name=h.replace("{value}",m!=null?m:"")}else rn(h)&&(g.name=h(g.name,g));var y=new as(g,null,this.ecModel);return gu(y,T3.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ii({lineStyle:{color:"#bbb"}},oP.axisLine),axisLabel:M4(oP.axisLabel,!1),axisTick:M4(oP.axisTick,!1),splitLine:M4(oP.splitLine,!0),splitArea:M4(oP.splitArea,!0),indicator:[]},e}(oa);const Tmt=Emt;var Cmt=["axisLine","axisTickLabel","axisName"],Amt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var a=this.group;a.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,i=r.getIndicatorAxes(),a=Vt(i,function(o){var s=o.model.get("showName")?o.name:"",l=new d_(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});te(a,function(o){te(Cmt,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var a=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),h=o.get("show"),c=s.get("show"),f=l.get("color"),d=u.get("color"),v=Gt(f)?f:[f],p=Gt(d)?d:[d],g=[],m=[];function y(k,D,G){var V=G%D.length;return k[V]=k[V]||[],V}if(a==="circle")for(var _=i[0].getTicksCoords(),x=r.cx,S=r.cy,w=0;w<_.length;w++){if(h){var b=y(g,v,w);g[b].push(new cm({shape:{cx:x,cy:S,r:_[w].coord}}))}if(c&&w<_.length-1){var b=y(m,p,w);m[b].push(new Zz({shape:{cx:x,cy:S,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var E,T=Vt(i,function(k,D){var G=k.getTicksCoords();return E=E==null?G.length-1:Math.min(G.length-1,E),Vt(G,function(V){return r.coordToPoint(V.coord,D)})}),C=[],w=0;w<=E;w++){for(var A=[],M=0;M3?1.4:o>1?1.2:1.1,h=a>0?u:1/u;dj(this,"zoom","zoomOnMouseWheel",t,{scale:h,originX:s,originY:l,isAvailableBehavior:null})}if(i){var c=Math.abs(a),f=(a>0?1:-1)*(c>3?.4:c>1?.15:.05);dj(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!R0e(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;dj(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(ng);function dj(n,e,t,r,i){n.pointerChecker&&n.pointerChecker(r,i.originX,i.originY)&&(l_(r.event),N5e(n,e,t,r,i))}function N5e(n,e,t,r,i){i.isAvailableBehavior=kr(OB,null,t,r),n.trigger(e,i)}function OB(n,e,t){var r=t[n];return!n||r&&(!Or(r)||e.event[r+"Key"])}const P3=Fmt;function vae(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function pae(n,e,t,r){var i=n.target,a=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,i.x-=(t-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Bmt={axisPointer:1,tooltip:1,brush:1};function yU(n,e,t){var r=e.getComponentByElement(n.topTarget),i=r&&r.coordinateSystem;return r&&r!==t&&!Bmt.hasOwnProperty(r.mainType)&&i&&i.model!==t}function k5e(n){if(Or(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var vj,AG={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},D0e=Li(AG),MG={"alignment-baseline":"textBaseline","stop-color":"stopColor"},N0e=Li(MG),Gmt=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=k5e(e);this._defsUsePending=[];var i=new Cn;this._root=i;var a=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),qd(r,i,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;Vmt(this._defs,this._defsUsePending),this._defsUsePending=[];var h,c;if(o){var f=mU(o);f.length>=4&&(h={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(h&&s!=null&&l!=null&&(c=B5e(h,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var d=i;i=new Cn,i.add(d),d.scaleX=d.scaleY=c.scale,d.x=c.x,d.y=c.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new ta({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:h,viewBoxTransform:c,named:a}},n.prototype._parseNode=function(e,t,r,i,a,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!a){var h=vj[s];if(h&&Fr(vj,s)){l=h.call(this,e,t);var c=e.getAttribute("name");if(c){var f={name:c,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else i&&r.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var d=k0e[s];if(d&&Fr(k0e,s)){var v=d.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=v)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,r,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},n.prototype._parseText=function(e,t){var r=new aD({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Yv(t,r),qd(e,r,this._defsUsePending,!1,!1),zmt(r,t);var i=r.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,r.scaleX*=a/9,r.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){vj={g:function(e,t){var r=new Cn;return Yv(t,r),qd(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new ta;return Yv(t,r),qd(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new cm;return Yv(t,r),qd(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new zh;return Yv(t,r),qd(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new Eie;return Yv(t,r),qd(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),i;r&&(i=G0e(r));var a=new bd({shape:{points:i||[]},silent:!0});return Yv(t,a),qd(e,a,this._defsUsePending,!1,!1),a},polyline:function(e,t){var r=e.getAttribute("points"),i;r&&(i=G0e(r));var a=new Gd({shape:{points:i||[]},silent:!0});return Yv(t,a),qd(e,a,this._defsUsePending,!1,!1),a},image:function(e,t){var r=new xc;return Yv(t,r),qd(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new Cn;return Yv(t,s),qd(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),i=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),i!=null&&(this._textY=parseFloat(i));var a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Cn;return Yv(t,s),qd(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",i=fke(r);return Yv(t,i),qd(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),n}(),k0e={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),i=parseInt(n.getAttribute("y2")||"0",10),a=new y3(e,t,r,i);return F0e(n,a),B0e(n,a),a},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),i=new Tke(e,t,r);return F0e(n,i),B0e(n,i),i}};function F0e(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function B0e(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),i=void 0;r&&r.indexOf("%")>0?i=parseInt(r,10)/100:r?i=parseFloat(r):i=0;var a={};F5e(t,a,a);var o=a.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function Yv(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),sn(e.__inheritedStyle,n.__inheritedStyle))}function G0e(n){for(var e=mU(n),t=[],r=0;r0;a-=2){var o=r[a],s=r[a-1],l=mU(o);switch(i=i||Up(),s){case"translate":sm(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":lie(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":j2(i,i,-parseFloat(l[0])*pj);break;case"skewX":var u=Math.tan(parseFloat(l[0])*pj);$1(i,[1,0,u,1,0,0],i);break;case"skewY":var h=Math.tan(parseFloat(l[0])*pj);$1(i,[1,h,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var U0e=/([^\s:;]+)\s*:\s*([^:;]+)/g;function F5e(n,e,t){var r=n.getAttribute("style");if(!!r){U0e.lastIndex=0;for(var i;(i=U0e.exec(r))!=null;){var a=i[1],o=Fr(AG,a)?AG[a]:null;o&&(e[o]=i[2]);var s=Fr(MG,a)?MG[a]:null;s&&(t[s]=i[2])}}}function jmt(n,e,t){for(var r=0;r0,g={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,i)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=$r(),r=$r(),i=this._regionsGroup,a=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function h(d,v){return v&&(d=v(d)),d&&[d[0]*a.scaleX+a.x,d[1]*a.scaleY+a.y]}function c(d){for(var v=[],p=!u&&l&&l.project,g=0;g=0)&&(f=i);var d=o?{normal:{align:"center",verticalAlign:"middle"}}:null;vc(e,hh(r),{labelFetcher:f,labelDataIndex:c,defaultText:t},d);var v=e.getTextContent();if(v&&(G5e(v).ignore=v.ignore,e.textConfig&&o)){var p=e.getBoundingRect().clone();e.textConfig.layoutRect=p,e.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function j0e(n,e,t,r,i,a){n.data?n.data.setItemGraphicEl(a,e):Bn(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:t,region:r&&r.option||{}}}function X0e(n,e,t,r,i){n.data||RI({el:e,componentModel:i,itemName:t,itemTooltipOption:r.get("tooltip")})}function Y0e(n,e,t,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var a=r.getModel("emphasis"),o=a.get("focus");return dl(e,o,a.get("blurScope"),a.get("disabled")),n.isGeo&&dct(e,i,t),o}function q0e(n,e,t){var r=[],i;function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),te(n,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,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)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Ws);const v1t=d1t;function p1t(n,e){var t={};return te(n,function(r){r.each(r.mapDimension("value"),function(i,a){var o="ec-"+r.getName(a);t[o]=t[o]||[],isNaN(i)||t[o].push(i)})}),n[0].map(n[0].mapDimension("value"),function(r,i){for(var a="ec-"+n[0].getName(i),o=0,s=1/0,l=-1/0,u=t[a].length,h=0;h1?(x.width=_,x.height=_/g):(x.height=_,x.width=_*g),x.y=y[1]-x.height/2,x.x=y[0]-x.width/2;else{var S=n.getBoxLayoutParams();S.aspect=g,x=Uu(S,{width:v,height:p})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function x1t(n,e){te(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var S1t=function(){function n(){this.dimensions=U5e}return n.prototype.create=function(e,t){var r=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Q0e(l+s,l,Mt({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=eye,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var a={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),te(a,function(o,s){var l=Vt(o,function(h){return h.get("nameMap")}),u=new Q0e(s,s,Mt({nameMap:nie(l)},i(o[0])));u.zoomLimit=Gh.apply(null,Vt(o,function(h){return h.get("scaleLimit")})),r.push(u),u.resize=eye,u.resize(o[0],t),te(o,function(h){h.coordinateSystem=u,x1t(u,h)})}),r},n.prototype.getFilledRegions=function(e,t,r,i){for(var a=(e||[]).slice(),o=$r(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function L1t(n,e){var t=n.isExpand?n.children:[],r=n.parentNode.children,i=n.hierNode.i?r[n.hierNode.i-1]:null;if(t.length){R1t(n);var a=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;i?(n.hierNode.prelim=i.hierNode.prelim+e(n,i),n.hierNode.modifier=n.hierNode.prelim-a):n.hierNode.prelim=a}else i&&(n.hierNode.prelim=i.hierNode.prelim+e(n,i));n.parentNode.hierNode.defaultAncestor=D1t(n,i,n.parentNode.hierNode.defaultAncestor||r[0],e)}function P1t(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function rye(n){return arguments.length?n:F1t}function aO(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function O1t(n,e){return Uu(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function R1t(n){for(var e=n.children,t=e.length,r=0,i=0;--t>=0;){var a=e[t];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}function D1t(n,e,t,r){if(e){for(var i=n,a=n,o=a.parentNode.children[0],s=e,l=i.hierNode.modifier,u=a.hierNode.modifier,h=o.hierNode.modifier,c=s.hierNode.modifier;s=gj(s),a=yj(a),s&&a;){i=gj(i),o=yj(o),i.hierNode.ancestor=n;var f=s.hierNode.prelim+c-a.hierNode.prelim-u+r(s,a);f>0&&(k1t(N1t(s,n,t),n,f),u+=f,l+=f),c+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,h+=o.hierNode.modifier}s&&!gj(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=c-l),a&&!yj(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-h,t=n)}return t}function gj(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function yj(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function N1t(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function k1t(n,e,t){var r=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=r}function F1t(n,e){return n.parentNode===e.parentNode?1:2}var B1t=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),G1t=function(n){$e(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new B1t},e.prototype.buildPath=function(t,r){var i=r.childPoints,a=i.length,o=r.parentPoint,s=i[0],l=i[a-1];if(a===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,h=u==="TB"||u==="BT"?0:1,c=1-h,f=xr(r.forkPosition,1),d=[];d[h]=o[h],d[c]=o[c]+(l[c]-o[c])*f,t.moveTo(o[0],o[1]),t.lineTo(d[0],d[1]),t.moveTo(s[0],s[1]),d[h]=s[h],t.lineTo(d[0],d[1]),d[h]=l[h],t.lineTo(d[0],d[1]),t.lineTo(l[0],l[1]);for(var v=1;vy.x,S||(x=x-Math.PI));var b=S?"left":"right",E=s.getModel("label"),T=E.get("rotate"),C=T*(Math.PI/180),A=g.getTextContent();A&&(g.setTextConfig({position:E.get("position")||b,rotation:T==null?-x:C,origin:"center"}),A.setStyle("verticalAlign","middle"))}var M=s.get(["emphasis","focus"]),I=M==="relative"?Z8(o.getAncestorsIndices(),o.getDescendantIndices()):M==="ancestor"?o.getAncestorsIndices():M==="descendant"?o.getDescendantIndices():null;I&&(Bn(t).focus=I),U1t(i,o,h,t,v,d,p,r),t.__edge&&(t.onHoverStateChange=function(R){if(R!=="blur"){var k=o.parentNode&&n.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===g3||oG(t.__edge,R)}})}function U1t(n,e,t,r,i,a,o,s){var l=e.getModel(),u=n.get("edgeShape"),h=n.get("layout"),c=n.getOrient(),f=n.get(["lineStyle","curveness"]),d=n.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),p=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(p||(p=r.__edge=new Kz({shape:zJ(h,c,f,i,i)})),ma(p,{shape:zJ(h,c,f,a,o)},n));else if(u==="polyline"&&h==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,m=[],y=0;yt&&(t=i.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,i=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,i=n.targetNode;if(Or(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=n.targetNodeId;if(a!=null&&(i=r.getNodeById(a)))return{node:i}}}function Y5e(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function xae(n,e){var t=Y5e(n);return gi(t,e)>=0}function _U(n,e){for(var t=[];n;){var r=n.dataIndex;t.push({name:n.name,dataIndex:r,value:e.getRawValue(r)}),n=n.parentNode}return t.reverse(),t}var J1t=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},i=t.leaves||{},a=new as(i,this,this.ecModel),o=_ae.createTree(r,this,s);function s(c){c.wrapMethod("getItemModel",function(f,d){var v=o.getNodeByDataIndex(d);return v&&v.children.length&&v.isExpand||(f.parentModel=a),f})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=t.expandAndCollapse,h=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var f=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=f&&f.collapsed!=null?!f.collapsed:c.depth<=h}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ch("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=_U(i,this),r.collapsed=!i.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={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",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Ws);const Q1t=J1t;function e_t(n,e,t){for(var r=[n],i=[],a;a=r.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;a--)t.push(i[a])}}function t_t(n,e){n.eachSeriesByType("tree",function(t){r_t(t,e)})}function r_t(n,e){var t=O1t(n,e);n.layoutInfo=t;var r=n.get("layout"),i=0,a=0,o=null;r==="radial"?(i=2*Math.PI,a=Math.min(t.height,t.width)/2,o=rye(function(_,x){return(_.parentNode===x.parentNode?1:2)/_.depth})):(i=t.width,a=t.height,o=rye());var s=n.getData().tree.root,l=s.children[0];if(l){I1t(s),e_t(l,L1t,o),s.hierNode.modifier=-l.hierNode.prelim,lP(l,P1t);var u=l,h=l,c=l;lP(l,function(_){var x=_.getLayout().x;xh.getLayout().x&&(h=_),_.depth>c.depth&&(c=_)});var f=u===h?1:o(u,h)/2,d=f-u.getLayout().x,v=0,p=0,g=0,m=0;if(r==="radial")v=i/(h.getLayout().x+f+d),p=a/(c.depth-1||1),lP(l,function(_){g=(_.getLayout().x+d)*v,m=(_.depth-1)*p;var x=aO(g,m);_.setLayout({x:x.x,y:x.y,rawX:g,rawY:m},!0)});else{var y=n.getOrient();y==="RL"||y==="LR"?(p=a/(h.getLayout().x+f+d),v=i/(c.depth-1||1),lP(l,function(_){m=(_.getLayout().x+d)*p,g=y==="LR"?(_.depth-1)*v:i-(_.depth-1)*v,_.setLayout({x:g,y:m},!0)})):(y==="TB"||y==="BT")&&(v=i/(h.getLayout().x+f+d),p=a/(c.depth-1||1),lP(l,function(_){g=(_.getLayout().x+d)*v,m=y==="TB"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:g,y:m},!0)}))}}}function n_t(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(i.dataIndex,"style");Mt(s,o)})})}function i_t(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var i=e.dataIndex,a=r.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var a=i.coordinateSystem,o=yae(a,e,void 0,r);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function a_t(n){n.registerChartView(V1t),n.registerSeriesModel(Q1t),n.registerLayout(t_t),n.registerVisual(n_t),i_t(n)}var sye=["treemapZoomToNode","treemapRender","treemapMove"];function o_t(n){for(var e=0;e1;)a=a.parentNode;var o=pJ(n.ecModel,a.name||a.dataIndex+"",r);i.setVisual("decal",o)})}var s_t=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var i={name:t.name,children:t.data};Z5e(i);var a=t.levels||[],o=this.designatedVisualItemStyle={},s=new as({itemStyle:o},this,r);a=t.levels=l_t(a,r);var l=Vt(a||[],function(c){return new as(c,s,r)},this),u=_ae.createTree(i,this,h);function h(c){c.wrapMethod("getItemModel",function(f,d){var v=u.getNodeByDataIndex(d),p=v?l[v.depth]:null;return f.parentModel=p||s,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,i){var a=this.getData(),o=this.getRawValue(t),s=a.getName(t);return ch("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=_U(i,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},Mt(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=$r(),this._idIndexMapCount=0);var i=r.get(t);return i==null&&r.set(t,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){q5e(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,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)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Ws);function Z5e(n){var e=0;te(n.children,function(r){Z5e(r);var i=r.value;Gt(i)&&(i=i[0]),e+=i});var t=n.value;Gt(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),Gt(n.value)?n.value[0]=t:n.value=t}function l_t(n,e){var t=Do(e.get("color")),r=Do(e.get(["aria","decal","decals"]));if(!!t){n=n||[];var i,a;te(n,function(s){var l=new as(s),u=l.get("color"),h=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||h&&h!=="none")&&(a=!0)});var o=n[0]||(n[0]={});return i||(o.color=t.slice()),!a&&r&&(o.decal=r.slice()),n}}const u_t=s_t;var h_t=8,lye=8,mj=5,c_t=function(){function n(e){this.group=new Cn,e.add(this.group)}return n.prototype.render=function(e,t,r,i){var a=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!r)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),h=l.getModel(["itemStyle","textStyle"]),c={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,c,u),this._renderContent(e,c,s,l,u,h,i),oU(o,c.pos,c.box)}},n.prototype._prepare=function(e,t,r){for(var i=e;i;i=i.parentNode){var a=Ru(i.getModel().get("name"),""),o=r.getTextRect(a),s=Math.max(o.width+h_t*2,t.emptyItemWidth);t.totalWidth+=s+lye,t.renderList.push({node:i,text:a,width:s})}},n.prototype._renderContent=function(e,t,r,i,a,o,s){for(var l=0,u=t.emptyItemWidth,h=e.get(["breadcrumb","height"]),c=wft(t.pos,t.box),f=t.totalWidth,d=t.renderList,v=i.getModel("itemStyle").getItemStyle(),p=d.length-1;p>=0;p--){var g=d[p],m=g.node,y=g.width,_=g.text;f>c.width&&(f-=y-u,y=u,_=null);var x=new bd({shape:{points:f_t(l,0,y,h,p===d.length-1,p===0)},style:sn(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new la({style:is(a,{text:_})}),textConfig:{position:"inside"},z2:PI*1e4,onclick:Un(s,m)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=is(o,{text:_}),x.ensureState("emphasis").style=v,dl(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),d_t(x,e,m),l+=y+lye}},n.prototype.remove=function(){this.group.removeAll()},n}();function f_t(n,e,t,r,i,a){var o=[[i?n:n-mj,e],[n+t,e],[n+t,e+r],[i?n:n-mj,e+r]];return!a&&o.splice(2,0,[n+t+mj,e+r/2]),!i&&o.push([n,e+r/2]),o}function d_t(n,e,t){Bn(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&_U(t,e)}}const v_t=c_t;var p_t=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,r,i,a){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:i,easing:a}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,a=this._storage.length;ihye||Math.abs(t.dy)>hye)){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(t){var r=t.originX,i=t.originY;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new ai(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,i-=l.y;var u=Up();sm(u,u,[-r,-i]),lie(u,u,[t.scale,t.scale]),sm(u,u,[r,i]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(i){if(r._state==="ready"){var a=r.seriesModel.get("nodeClick",!0);if(!!a){var o=r.findTarget(i.offsetX,i.offsetY);if(!!o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(a==="zoomToNode")r._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),h=l.get("target",!0)||"blank";u&&fG(u,h)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,i){var a=this;i||(i=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),i||(i={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new v_t(this.group))).render(t,r,i.node,function(o){a._state!=="animating"&&(xae(t.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=uP(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(os);function uP(){return{nodeGroup:[],background:[],content:[]}}function S_t(n,e,t,r,i,a,o,s,l,u){if(!o)return;var h=o.getLayout(),c=n.getData(),f=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!h||!h.isInView)return;var d=h.width,v=h.height,p=h.borderWidth,g=h.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),_=o.viewChildren,x=h.upperHeight,S=_&&_.length,w=f.getModel("itemStyle"),b=f.getModel(["emphasis","itemStyle"]),E=f.getModel(["blur","itemStyle"]),T=f.getModel(["select","itemStyle"]),C=w.get("borderRadius")||0,A=H("nodeGroup",UJ);if(!A)return;if(l.add(A),A.x=h.x||0,A.y=h.y||0,A.markRedraw(),IG(A).nodeWidth=d,IG(A).nodeHeight=v,h.isAboveViewRoot)return A;var M=H("background",uye,u,m_t);M&&z(A,M,S&&h.upperLabelHeight);var I=f.getModel("emphasis"),R=I.get("focus"),k=I.get("blurScope"),D=I.get("disabled"),G=R==="ancestor"?o.getAncestorsIndices():R==="descendant"?o.getDescendantIndices():R;if(S)sD(A)&&nE(A,!1),M&&(nE(M,!D),c.setItemGraphicEl(o.dataIndex,M),sJ(M,G,k));else{var V=H("content",uye,u,__t);V&&j(A,V),M.disableMorphing=!0,M&&sD(M)&&nE(M,!1),nE(A,!D),c.setItemGraphicEl(o.dataIndex,A),sJ(A,G,k)}return A;function z(oe,se,me){var Ce=Bn(se);if(Ce.dataIndex=o.dataIndex,Ce.seriesIndex=n.seriesIndex,se.setShape({x:0,y:0,width:d,height:v,r:C}),g)Z(se);else{se.invisible=!1;var Le=o.getVisual("style"),re=Le.stroke,yt=dye(w);yt.fill=re;var je=Rb(b);je.fill=b.get("borderColor");var st=Rb(E);st.fill=E.get("borderColor");var Nt=Rb(T);if(Nt.fill=T.get("borderColor"),me){var Zt=d-2*p;Y(se,re,Le.opacity,{x:p,y:0,width:Zt,height:x})}else se.removeTextContent();se.setStyle(yt),se.ensureState("emphasis").style=je,se.ensureState("blur").style=st,se.ensureState("select").style=Nt,ZE(se)}oe.add(se)}function j(oe,se){var me=Bn(se);me.dataIndex=o.dataIndex,me.seriesIndex=n.seriesIndex;var Ce=Math.max(d-2*p,0),Le=Math.max(v-2*p,0);if(se.culling=!0,se.setShape({x:p,y:p,width:Ce,height:Le,r:C}),g)Z(se);else{se.invisible=!1;var re=o.getVisual("style"),yt=re.fill,je=dye(w);je.fill=yt,je.decal=re.decal;var st=Rb(b),Nt=Rb(E),Zt=Rb(T);Y(se,yt,re.opacity,null),se.setStyle(je),se.ensureState("emphasis").style=st,se.ensureState("blur").style=Nt,se.ensureState("select").style=Zt,ZE(se)}oe.add(se)}function Z(oe){!oe.invisible&&a.push(oe)}function Y(oe,se,me,Ce){var Le=f.getModel(Ce?fye:cye),re=Ru(f.get("name"),null),yt=Le.getShallow("show");vc(oe,hh(f,Ce?fye:cye),{defaultText:yt?re:null,inheritColor:se,defaultOpacity:me,labelFetcher:n,labelDataIndex:o.dataIndex});var je=oe.getTextContent();if(!!je){var st=je.style,Nt=aie(st.padding||0);Ce&&(oe.setTextConfig({layoutRect:Ce}),je.disableLabelLayout=!0),je.beforeUpdate=function(){var qe=Math.max((Ce?Ce.width:oe.shape.width)-Nt[1]-Nt[3],0),ur=Math.max((Ce?Ce.height:oe.shape.height)-Nt[0]-Nt[2],0);(st.width!==qe||st.height!==ur)&&je.setStyle({width:qe,height:ur})},st.truncateMinChar=2,st.lineOverflow="truncate",le(st,Ce,h);var Zt=je.getState("emphasis");le(Zt?Zt.style:null,Ce,h)}}function le(oe,se,me){var Ce=oe?oe.text:null;if(!se&&me.isLeafRoot&&Ce!=null){var Le=n.get("drillDownIcon",!0);oe.text=Le?Le+" "+Ce:Ce}}function H(oe,se,me,Ce){var Le=y!=null&&t[oe][y],re=i[oe];return Le?(t[oe][y]=null,Q(re,Le)):g||(Le=new se,Le instanceof Vp&&(Le.z2=w_t(me,Ce)),ie(re,Le)),e[oe][m]=Le}function Q(oe,se){var me=oe[m]={};se instanceof UJ?(me.oldX=se.x,me.oldY=se.y):me.oldShape=Mt({},se.shape)}function ie(oe,se){var me=oe[m]={},Ce=o.parentNode,Le=se instanceof Cn;if(Ce&&(!r||r.direction==="drillDown")){var re=0,yt=0,je=i.background[Ce.getRawIndex()];!r&&je&&je.oldShape&&(re=je.oldShape.width,yt=je.oldShape.height),Le?(me.oldX=0,me.oldY=yt):me.oldShape={x:re,y:yt,width:0,height:0}}me.fadein=!Le}}function w_t(n,e){return n*y_t+e}const b_t=x_t;var SD=te,E_t=dn,LG=-1,Sae=function(){function n(e){var t=e.mappingMethod,r=e.type,i=this.option=Sn(e);this.type=r,this.mappingMethod=t,this._normalizeData=A_t[t];var a=n.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[t],t==="piecewise"?(_j(i),T_t(i)):t==="category"?i.categories?C_t(i):_j(i,!0):(Ff(t!=="linear"||i.dataExtent),_j(i))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return kr(this._normalizeData,this)},n.listVisualTypes=function(){return Li(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,r){dn(e)?te(e,t,r):t.call(r,e)},n.mapVisual=function(e,t,r){var i,a=Gt(e)?[]:dn(e)?{}:(i=!0,null);return n.eachVisual(e,function(o,s){var l=t.call(r,o,s);i?a=l:a[s]=l}),a},n.retrieveVisuals=function(e){var t={},r;return e&&SD(n.visualHandlers,function(i,a){e.hasOwnProperty(a)&&(t[a]=e[a],r=!0)}),r?t:null},n.prepareVisualTypes=function(e){if(Gt(e))e=e.slice();else if(E_t(e)){var t=[];SD(e,function(r,i){t.push(i)}),e=t}else return[];return e.sort(function(r,i){return i==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,r){for(var i,a=1/0,o=0,s=t.length;o=0;a--)r[a]==null&&(delete t[e[a]],e.pop())}function _j(n,e){var t=n.visual,r=[];dn(t)?SD(t,function(a){r.push(a)}):t!=null&&r.push(t);var i={color:1,symbol:1};!e&&r.length===1&&!i.hasOwnProperty(n.type)&&(r[1]=r[0]),K5e(n,r)}function L4(n){return{applyVisual:function(e,t,r){var i=this.mapValueToVisual(e);r("color",n(t("color"),i))},_normalizedToVisual:VJ([0,1])}}function vye(n){var e=this.option.visual;return e[Math.round(go(n,[0,1],[0,e.length-1],!0))]||{}}function hP(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function oO(n){var e=this.option.visual;return e[this.option.loop&&n!==LG?n%e.length:n]}function Db(){return this.option.visual[0]}function VJ(n){return{linear:function(e){return go(e,n,this.option.visual,!0)},category:oO,piecewise:function(e,t){var r=$J.call(this,t);return r==null&&(r=go(e,n,this.option.visual,!0)),r},fixed:Db}}function $J(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=Sae.findPieceIndex(n,t),i=t[r];if(i&&i.visual)return i.visual[this.type]}}function K5e(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=Vt(e,function(t){var r=gv(t);return r||[0,0,0,1]})),e}var A_t={linear:function(n){return go(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=Sae.findPieceIndex(n,e,!0);if(t!=null)return go(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e==null?LG:e},fixed:Hl};function P4(n,e,t){return n?e<=t:e=t.length||p===t[p.depth]){var m=R_t(i,l,p,g,v,r);Q5e(p,m,t,r)}})}}}function L_t(n,e,t){var r=Mt({},e),i=t.designatedVisualItemStyle;return te(["color","colorAlpha","colorSaturation"],function(a){i[a]=e[a];var o=n.get(a);i[a]=null,o!=null&&(r[a]=o)}),r}function pye(n){var e=xj(n,"color");if(e){var t=xj(n,"colorAlpha"),r=xj(n,"colorSaturation");return r&&(e=$O(e,null,null,r)),t&&(e=Q8(e,t)),e}}function P_t(n,e){return e!=null?$O(e,null,null,n):null}function xj(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function O_t(n,e,t,r,i,a){if(!(!a||!a.length)){var o=Sj(e,"color")||i.color!=null&&i.color!=="none"&&(Sj(e,"colorAlpha")||Sj(e,"colorSaturation"));if(!!o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(h==="index"||h==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var f=new fc(c);return J5e(f).drColorMappingBy=h,f}}}function Sj(n,e){var t=n.get(e);return Gt(t)&&t.length?{name:e,range:t}:null}function R_t(n,e,t,r,i,a){var o=Mt({},e);if(i){var s=i.type,l=s==="color"&&J5e(i).drColorMappingBy,u=l==="index"?r:l==="id"?a.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var wD=Math.max,PG=Math.min,gye=Gh,wae=te,e6e=["itemStyle","borderWidth"],D_t=["itemStyle","gapWidth"],N_t=["upperLabel","show"],k_t=["upperLabel","height"];const F_t={seriesType:"treemap",reset:function(n,e,t,r){var i=t.getWidth(),a=t.getHeight(),o=n.option,s=Uu(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=xr(gye(s.width,l[0]),i),h=xr(gye(s.height,l[1]),a),c=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],d=xD(r,f,n),v=c==="treemapRender"||c==="treemapMove"?r.rootRect:null,p=n.getViewRoot(),g=Y5e(p);if(c!=="treemapMove"){var m=c==="treemapZoomToNode"?$_t(n,d,p,u,h):v?[v.width,v.height]:[u,h],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var _={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var x={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};p.setLayout(x),t6e(p,_,!1,0),x=p.getLayout(),wae(g,function(w,b){var E=(g[b+1]||p).getValue();w.setLayout(Mt({dataExtent:[E,E],borderWidth:0,upperHeight:0},x))})}var S=n.getData().tree.root;S.setLayout(W_t(s,v,d),!0),n.setLayoutInfo(s),r6e(S,new ai(-s.x,-s.y,i,a),g,p,0)}};function t6e(n,e,t,r){var i,a;if(!n.isRemoved()){var o=n.getLayout();i=o.width,a=o.height;var s=n.getModel(),l=s.get(e6e),u=s.get(D_t)/2,h=n6e(s),c=Math.max(l,h),f=l-u,d=c-u;n.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:h},!0),i=wD(i-2*f,0),a=wD(a-f-d,0);var v=i*a,p=B_t(n,s,v,e,t,r);if(!!p.length){var g={x:f,y:d,width:i,height:a},m=PG(i,a),y=1/0,_=[];_.area=0;for(var x=0,S=p.length;x=0;l--){var u=i[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function V_t(n,e,t){for(var r=0,i=1/0,a=0,o=void 0,s=n.length;ar&&(r=o));var l=n.area*n.area,u=e*e*t;return l?wD(u*r/l,l/(u*i)):1/0}function yye(n,e,t,r,i){var a=e===t.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=t[s[a]],h=e?n.area/e:0;(i||h>t[l[o]])&&(h=t[l[o]]);for(var c=0,f=n.length;cMve&&(u=Mve),a=s}ur&&(r=e);var a=r%2?r+2:r+3;i=[];for(var o=0;o0&&(S[0]=-S[0],S[1]=-S[1]);var b=x[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var E=-Math.atan2(x[1],x[0]);c[0].8?"left":f[0]<-.8?"right":"center",p=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":a.x=-f[0]*m+h[0],a.y=-f[1]*y+h[1],v=f[0]>.8?"right":f[0]<-.8?"left":"center",p=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=m*b+h[0],a.y=h[1]+T,v=x[0]<0?"right":"left",a.originX=-m*b,a.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=w[0],a.y=w[1]+T,v="center",a.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-m*b+c[0],a.y=c[1]+T,v=x[0]>=0?"right":"left",a.originX=m*b,a.originY=-T;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||v})}},e}(Cn);const Cae=uxt;var hxt=function(){function n(e){this.group=new Cn,this._LineCtor=e||Cae}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,i=r.group,a=r._lineData;r._lineData=e,a||i.removeAll();var o=bye(e);e.diff(a).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(a,e,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;!e||e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=bye(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!cxt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0}function bye(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:hh(e)}}function Eye(n){return isNaN(n[0])||isNaN(n[1])}function Cj(n){return n&&!Eye(n[0])&&!Eye(n[1])}const Aae=hxt;var Aj=[],Mj=[],Ij=[],eC=Ph,Lj=wE,Tye=Math.abs;function Cye(n,e,t){for(var r=n[0],i=n[1],a=n[2],o=1/0,s,l=t*t,u=.1,h=.1;h<=.9;h+=.1){Aj[0]=eC(r[0],i[0],a[0],h),Aj[1]=eC(r[1],i[1],a[1],h);var c=Tye(Lj(Aj,e)-l);c=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function Pj(n,e){var t=[],r=tD,i=[[],[],[]],a=[[],[]],o=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),h=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[V1(u[0]),V1(u[1])],u[2]&&u.__original.push(V1(u[2])));var f=u.__original;if(u[2]!=null){if(mf(i[0],f[0]),mf(i[1],f[2]),mf(i[2],f[1]),h&&h!=="none"){var d=lO(s.node1),v=Cye(i,f[0],d*e);r(i[0][0],i[1][0],i[2][0],v,t),i[0][0]=t[3],i[1][0]=t[4],r(i[0][1],i[1][1],i[2][1],v,t),i[0][1]=t[3],i[1][1]=t[4]}if(c&&c!=="none"){var d=lO(s.node2),v=Cye(i,f[1],d*e);r(i[0][0],i[1][0],i[2][0],v,t),i[1][0]=t[1],i[2][0]=t[2],r(i[0][1],i[1][1],i[2][1],v,t),i[1][1]=t[1],i[2][1]=t[2]}mf(u[0],i[0]),mf(u[1],i[2]),mf(u[2],i[1])}else{if(mf(a[0],f[0]),mf(a[1],f[1]),tE(o,a[1],a[0]),MI(o,o),h&&h!=="none"){var d=lO(s.node1);RK(a[0],a[0],o,d*e)}if(c&&c!=="none"){var d=lO(s.node2);RK(a[1],a[1],o,-d*e)}mf(u[0],a[0]),mf(u[1],a[1])}})}function Aye(n){return n.type==="view"}var fxt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var i=new A3,a=new Aae,o=this.group;this._controller=new P3(r.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},e.prototype.render=function(t,r,i){var a=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(Aye(o)){var h={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(h):ma(u,h,t)}Pj(t.getGraph(),sO(t));var c=t.getData();s.updateData(c);var f=t.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,r,i),clearTimeout(this._layoutTimeout);var d=t.forceLayout,v=t.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,v);var p=t.get("layout");c.graph.eachNode(function(_){var x=_.dataIndex,S=_.getGraphicEl(),w=_.getModel();if(!!S){S.off("drag").off("dragend");var b=w.get("draggable");b&&S.on("drag",function(T){switch(p){case"force":d.warmUp(),!a._layouting&&a._startForceLayoutIteration(d,v),d.setFixed(x),c.setItemLayout(x,[S.x,S.y]);break;case"circular":c.setItemLayout(x,[S.x,S.y]),_.setLayout({fixed:!0},!0),Tae(t,"symbolSize",_,[T.offsetX,T.offsetY]),a.updateLayout(t);break;case"none":default:c.setItemLayout(x,[S.x,S.y]),Eae(t.getGraph(),t),a.updateLayout(t);break}}).on("dragend",function(){d&&d.setUnfixed(x)}),S.setDraggable(b,!!w.get("cursor"));var E=w.get(["emphasis","focus"]);E==="adjacency"&&(Bn(S).focus=_.getAdjacentDataIndices())}}),c.graph.eachEdge(function(_){var x=_.getGraphicEl(),S=_.getModel().get(["emphasis","focus"]);!x||S==="adjacency"&&(Bn(x).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),m=c.getLayout("cx"),y=c.getLayout("cy");c.graph.eachNode(function(_){s6e(_,g,m,y)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var i=this;(function a(){t.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(r?i._layoutTimeout=setTimeout(a,16):a())})})()},e.prototype._updateController=function(t,r,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,h,c){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(h,c)&&!yU(u,i,t)}),!Aye(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){vae(s,u.dx,u.dy),i.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){pae(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),Pj(t.getGraph(),sO(t)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),i=sO(t);r.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},e.prototype.updateLayout=function(t){Pj(t.getGraph(),sO(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(os);const dxt=fxt;function tC(n){return"_EC_"+n}var vxt=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[tC(e)]){var i=new Nb(e,t);return i.hostGraph=this,this.nodes.push(i),r[tC(e)]=i,i}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[tC(e)]},n.prototype.addEdge=function(e,t,r){var i=this._nodesMap,a=this._edgesMap;if(ha(e)&&(e=this.nodes[e]),ha(t)&&(t=this.nodes[t]),e instanceof Nb||(e=i[tC(e)]),t instanceof Nb||(t=i[tC(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new u6e(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),a[o]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof Nb&&(e=e.id),t instanceof Nb&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var r=this.nodes,i=r.length,a=0;a=0&&e.call(t,r[a],a)},n.prototype.eachEdge=function(e,t){for(var r=this.edges,i=r.length,a=0;a=0&&r[a].node1.dataIndex>=0&&r[a].node2.dataIndex>=0&&e.call(t,r[a],a)},n.prototype.breadthFirstTraverse=function(e,t,r,i){if(t instanceof Nb||(t=this._nodesMap[tC(t)]),!!t){for(var a=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a=0&&this[n][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}gu(Nb,h6e("hostGraph","data"));gu(u6e,h6e("hostGraph","edgeData"));const pxt=vxt;function c6e(n,e,t,r,i){for(var a=new pxt(r),o=0;o "+f)),u++)}var d=t.get("coordinateSystem"),v;if(d==="cartesian2d"||d==="polar")v=k_(n,t);else{var p=S3.get(d),g=p?p.dimensions||[]:[];gi(g,"value")<0&&g.concat(["value"]);var m=b3(n,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;v=new Rf(m,t),v.initData(n)}var y=new Rf(["value"],t);return y.initData(l,s),i&&i(v,y),j5e({mainData:v,struct:a,structAttr:"graph",datas:{node:v,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var gxt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var r=this;function i(){return r._categoriesData}this.legendVisualProvider=new L3(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),XE(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var i=t.edges||t.links||[],a=t.data||t.nodes||[],o=this;if(a&&i){K_t(this);var s=c6e(a,i,this,!0,l);return te(s.edges,function(u){J_t(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,h){u.wrapMethod("getItemModel",function(v){var p=o._categoriesModels,g=v.getShallow("category"),m=p[g];return m&&(m.parentModel=v.parentModel,v.parentModel=m),v});var c=as.prototype.getModel;function f(v,p){var g=c.call(this,v,p);return g.resolveParentPath=d,g}h.wrapMethod("getItemModel",function(v){return v.resolveParentPath=d,v.getModel=f,v});function d(v){if(v&&(v[0]==="label"||v[1]==="label")){var p=v.slice();return v[0]==="label"?p[0]="edgeLabel":v[1]==="label"&&(p[1]="edgeLabel"),p}return v}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(t,i),s=a.graph.getEdgeByIndex(t),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),h=[];return l!=null&&h.push(l),u!=null&&h.push(u),ch("nameValue",{name:h.join(" > "),value:o.value,noValue:o.value==null})}var c=OFe({series:this,dataIndex:t,multipleSeries:r});return c},e.prototype._updateCategoriesData=function(){var t=Vt(this.option.categories||[],function(i){return i.value!=null?i:Mt({value:0},i)}),r=new Rf(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(i){return r.getItemModel(i)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,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:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Ws);const yxt=gxt;var mxt={type:"graphRoam",event:"graphRoam",update:"none"};function _xt(n){n.registerChartView(dxt),n.registerSeriesModel(yxt),n.registerProcessor(j_t),n.registerVisual(X_t),n.registerVisual(Y_t),n.registerLayout(Q_t),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,txt),n.registerLayout(nxt),n.registerCoordinateSystem("graphView",{dimensions:O3.dimensions,create:axt}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Hl),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Hl),n.registerAction(mxt,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(i){var a=i.coordinateSystem,o=yae(a,e,void 0,r);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var xxt=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),Sxt=function(n){$e(e,n);function e(t){var r=n.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new xxt},e.prototype.buildPath=function(t,r){var i=Math.cos,a=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-i(l)*s*(s>=o/3?1:2),h=r.y-a(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,h),t.lineTo(r.x+i(l)*s,r.y+a(l)*s),t.lineTo(r.x+i(r.angle)*o,r.y+a(r.angle)*o),t.lineTo(r.x-i(l)*s,r.y-a(l)*s),t.lineTo(u,h)},e}(Si);const wxt=Sxt;function bxt(n,e){var t=n.get("center"),r=e.getWidth(),i=e.getHeight(),a=Math.min(r,i),o=xr(t[0],e.getWidth()),s=xr(t[1],e.getHeight()),l=xr(n.get("radius"),a/2);return{cx:o,cy:s,r:l}}function R4(n,e){var t=n==null?"":n+"";return e&&(Or(e)?t=e.replace("{value}",t):rn(e)&&(t=e(n))),t}var Ext=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){this.group.removeAll();var a=t.get(["axisLine","lineStyle","color"]),o=bxt(t,i);this._renderMain(t,r,i,a,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,i,a,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,h=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),f=c.get("roundCap"),d=f?CG:wd,v=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),m=[u,h];V3e(m,!l),u=m[0],h=m[1];for(var y=h-u,_=u,x=[],S=0;v&&S=T&&(C===0?0:a[C-1][0])Math.PI/2&&(H+=Math.PI)):le==="tangential"?H=-E-Math.PI/2:ha(le)&&(H=le*Math.PI/180),H===0?c.add(new la({style:is(_,{text:z,x:Z,y:Y,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:R<-.4?"left":R>.4?"right":"center"},{inheritColor:j}),silent:!0})):c.add(new la({style:is(_,{text:z,x:Z,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:j}),silent:!0,originX:Z,originY:Y,rotation:H}))}if(y.get("show")&&D!==x){var G=y.get("distance");G=G?G+h:h;for(var Q=0;Q<=S;Q++){R=Math.cos(E),k=Math.sin(E);var ie=new zh({shape:{x1:R*(v-G)+f,y1:k*(v-G)+d,x2:R*(v-b-G)+f,y2:k*(v-b-G)+d},silent:!0,style:M});M.stroke==="auto"&&ie.setStyle({stroke:a((D+Q/S)/x)}),c.add(ie),E+=C}E-=C}else E+=T}},e.prototype._renderPointer=function(t,r,i,a,o,s,l,u,h){var c=this.group,f=this._data,d=this._progressEls,v=[],p=t.get(["pointer","show"]),g=t.getModel("progress"),m=g.get("show"),y=t.getData(),_=y.mapDimension("value"),x=+t.get("min"),S=+t.get("max"),w=[x,S],b=[s,l];function E(C,A){var M=y.getItemModel(C),I=M.getModel("pointer"),R=xr(I.get("width"),o.r),k=xr(I.get("length"),o.r),D=t.get(["pointer","icon"]),G=I.get("offsetCenter"),V=xr(G[0],o.r),z=xr(G[1],o.r),j=I.get("keepAspect"),Z;return D?Z=hu(D,V-R/2,z-k,R,k,null,j):Z=new wxt({shape:{angle:-Math.PI/2,width:R,r:k,x:V,y:z}}),Z.rotation=-(A+Math.PI/2),Z.x=o.cx,Z.y=o.cy,Z}function T(C,A){var M=g.get("roundCap"),I=M?CG:wd,R=g.get("overlap"),k=R?g.get("width"):h/y.count(),D=R?o.r-k:o.r-(C+1)*k,G=R?o.r:o.r-C*k,V=new I({shape:{startAngle:s,endAngle:A,cx:o.cx,cy:o.cy,clockwise:u,r0:D,r:G}});return R&&(V.z2=S-y.get(_,C)%S),V}(m||p)&&(y.diff(f).add(function(C){var A=y.get(_,C);if(p){var M=E(C,s);Is(M,{rotation:-((isNaN(+A)?b[0]:go(A,w,b,!0))+Math.PI/2)},t),c.add(M),y.setItemGraphicEl(C,M)}if(m){var I=T(C,s),R=g.get("clip");Is(I,{shape:{endAngle:go(A,w,b,R)}},t),c.add(I),iJ(t.seriesIndex,y.dataType,C,I),v[C]=I}}).update(function(C,A){var M=y.get(_,C);if(p){var I=f.getItemGraphicEl(A),R=I?I.rotation:s,k=E(C,R);k.rotation=R,ma(k,{rotation:-((isNaN(+M)?b[0]:go(M,w,b,!0))+Math.PI/2)},t),c.add(k),y.setItemGraphicEl(C,k)}if(m){var D=d[A],G=D?D.shape.endAngle:s,V=T(C,G),z=g.get("clip");ma(V,{shape:{endAngle:go(M,w,b,z)}},t),c.add(V),iJ(t.seriesIndex,y.dataType,C,V),v[C]=V}}).execute(),y.each(function(C){var A=y.getItemModel(C),M=A.getModel("emphasis"),I=M.get("focus"),R=M.get("blurScope"),k=M.get("disabled");if(p){var D=y.getItemGraphicEl(C),G=y.getItemVisual(C,"style"),V=G.fill;if(D instanceof xc){var z=D.style;D.useStyle(Mt({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},G))}else D.useStyle(G),D.type!=="pointer"&&D.setColor(V);D.setStyle(A.getModel(["pointer","itemStyle"]).getItemStyle()),D.style.fill==="auto"&&D.setStyle("fill",a(go(y.get(_,C),w,[0,1],!0))),D.z2EmphasisLift=0,dc(D,A),dl(D,I,R,k)}if(m){var j=v[C];j.useStyle(y.getItemVisual(C,"style")),j.setStyle(A.getModel(["progress","itemStyle"]).getItemStyle()),j.z2EmphasisLift=0,dc(j,A),dl(j,I,R,k)}}),this._progressEls=v)},e.prototype._renderAnchor=function(t,r){var i=t.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),h=hu(s,r.cx-o/2+xr(l[0],r.r),r.cy-o/2+xr(l[1],r.r),o,o,null,u);h.z2=i.get("showAbove")?1:0,h.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(h)}},e.prototype._renderTitleAndDetail=function(t,r,i,a,o){var s=this,l=t.getData(),u=l.mapDimension("value"),h=+t.get("min"),c=+t.get("max"),f=new Cn,d=[],v=[],p=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){d[m]=new la({silent:!0}),v[m]=new la({silent:!0})}).update(function(m,y){d[m]=s._titleEls[y],v[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),x=new Cn,S=a(go(_,[h,c],[0,1],!0)),w=y.getModel("title");if(w.get("show")){var b=w.get("offsetCenter"),E=o.cx+xr(b[0],o.r),T=o.cy+xr(b[1],o.r),C=d[m];C.attr({z2:g?0:2,style:is(w,{x:E,y:T,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:S})}),x.add(C)}var A=y.getModel("detail");if(A.get("show")){var M=A.get("offsetCenter"),I=o.cx+xr(M[0],o.r),R=o.cy+xr(M[1],o.r),k=xr(A.get("width"),o.r),D=xr(A.get("height"),o.r),G=t.get(["progress","show"])?l.getItemVisual(m,"style").fill:S,C=v[m],V=A.get("formatter");C.attr({z2:g?0:2,style:is(A,{x:I,y:R,text:R4(_,V),width:isNaN(k)?null:k,height:isNaN(D)?null:D,align:"center",verticalAlign:"middle"},{inheritColor:G})}),Dke(C,{normal:A},_,function(j){return R4(j,V)}),p&&Nke(C,m,l,t,{getFormattedLabel:function(j,Z,Y,le,H,Q){return R4(Q?Q.interpolatedValue:_,V)}}),x.add(C)}f.add(x)}),this.group.add(f),this._titleEls=d,this._detailEls=v},e.type="gauge",e}(os);const Txt=Ext;var Cxt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return $I(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Ws);const Axt=Cxt;function Mxt(n){n.registerChartView(Txt),n.registerSeriesModel(Axt)}var Ixt=["itemStyle","opacity"],Lxt=function(n){$e(e,n);function e(t,r){var i=n.call(this)||this,a=i,o=new Gd,s=new la;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(t,r,!0),i}return e.prototype.updateData=function(t,r,i){var a=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),h=s.get(Ixt);h=h==null?1:h,i||x0(a),a.useStyle(t.getItemVisual(r,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Is(a,{style:{opacity:h}},o,r)):ma(a,{style:{opacity:h},shape:{points:l.points}},o,r),dc(a,s),this._updateLabel(t,r),dl(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),h=u.label,c=t.getItemVisual(r,"style"),f=c.fill;vc(o,hh(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:c.opacity,defaultText:t.getName(r)},{normal:{align:h.textAlign,verticalAlign:h.verticalAlign}}),i.setTextConfig({local:!0,inside:!!h.inside,insideStroke:f,outsideFill:f});var d=h.linePoints;a.setShape({points:d}),i.textGuideLineConfig={anchor:d?new qn(d[0][0],d[0][1]):null},ma(o,{style:{x:h.x,y:h.y}},s,r),o.attr({rotation:h.rotation,originX:h.x,originY:h.y,z2:10}),aae(i,oae(l),{stroke:f})},e}(bd),Pxt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,i){var a=t.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new Lxt(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var h=o.getItemGraphicEl(u);h.updateData(a,l),s.add(h),a.setItemGraphicEl(l,h)}).remove(function(l){var u=o.getItemGraphicEl(l);lD(u,t,l)}).execute(),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(os);const Oxt=Pxt;var Rxt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new L3(kr(this.getData,this),kr(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return $I(this,{coordDimensions:["value"],encodeDefaulter:Un(Nie,this)})},e.prototype._defaultLabelLine=function(t){XE(t,"labelLine",["show"]);var r=t.labelLine,i=t.emphasis.labelLine;r.show=r.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),i=n.prototype.getDataParams.call(this,t),a=r.mapDimension("value"),o=r.getSum(a);return i.percent=o?+(r.get(a,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",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}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Ws);const Dxt=Rxt;function Nxt(n,e){return Uu(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function kxt(n,e){for(var t=n.mapDimension("value"),r=n.mapArray(t,function(l){return l}),i=[],a=e==="ascending",o=0,s=n.count();otSt)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!Rj(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function Rj(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const iSt=rSt;var aSt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&ii(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var i=t.get("parallelIndex");return i!=null&&r.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){te(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],i=To(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);te(i,function(a){t.push("dim"+a.get("dim")),r.push(a.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(oa);const oSt=aSt;var sSt=function(n){$e(e,n);function e(t,r,i,a,o){var s=n.call(this,t,r,i)||this;return s.type=a||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(D0);const lSt=sSt;function J2(n,e,t,r,i,a){n=n||0;var o=t[1]-t[0];if(i!=null&&(i=rC(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=rC(s,[0,o]),i=a=rC(s,[i,a]),r=0}e[0]=rC(e[0],t),e[1]=rC(e[1],t);var l=Dj(e,r);e[r]+=n;var u=i||0,h=t.slice();l.sign<0?h[0]+=u:h[1]-=u,e[r]=rC(e[r],h);var c;return c=Dj(e,r),i!=null&&(c.sign!==l.sign||c.spana&&(e[1-r]=e[r]+c.sign*a),e}function Dj(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function rC(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var Nj=te,d6e=Math.min,v6e=Math.max,Lye=Math.floor,uSt=Math.ceil,Pye=Pl,hSt=Math.PI,cSt=function(){function n(e,t,r){this.type="parallel",this._axesMap=$r(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var i=e.dimensions,a=e.parallelAxisIndex;Nj(i,function(o,s){var l=a[s],u=t.getComponent("parallelAxis",l),h=this._axesMap.set(o,new lSt(o,vU(u),[0,0],u.get("type"),l)),c=h.type==="category";h.onBand=c&&u.get("boundaryGap"),h.inverse=u.get("inverse"),u.axis=h,h.model=u,h.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,i=t.layoutBase,a=t.pixelDimIndex,o=e[1-a],s=e[a];return o>=r&&o<=r+t.axisLength&&s>=i&&s<=i+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(!!e.contains(r,t)){var i=r.getData();Nj(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),vM(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=Uu(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],i=["width","height"],a=e.get("layout"),o=a==="horizontal"?0:1,s=t[i[o]],l=[0,s],u=this.dimensions.length,h=D4(e.get("axisExpandWidth"),l),c=D4(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,d=e.get("axisExpandWindow"),v;if(d)v=D4(d[1]-d[0],l),d[1]=d[0]+v;else{v=D4(h*(c-1),l);var p=e.get("axisExpandCenter")||Lye(u/2);d=[h*p-v/2],d[1]=d[0]+v}var g=(s-v)/(u-c);g<3&&(g=0);var m=[Lye(Pye(d[0]/h,1))+1,uSt(Pye(d[1]/h,1))-1],y=g/h*d[0];return{layout:a,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[i[1-o]],axisExpandable:f,axisExpandWidth:h,axisCollapseWidth:g,axisExpandWindow:d,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;t.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Nj(r,function(o,s){var l=(i.axisExpandable?dSt:fSt)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},h={horizontal:hSt/2,vertical:0},c=[u[a].x+e.x,u[a].y+e.y],f=h[a],d=Up();j2(d,d,f),sm(d,d,c),this._axesLayout[o]={position:c,rotation:f,transform:d,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,i){r==null&&(r=0),i==null&&(i=e.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];te(o,function(g){s.push(e.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),h=r;ha*(1-c[0])?(u="jump",l=s-a*(1-c[2])):(l=s-a*c[1])>=0&&(l=s-a*(1-c[1]))<=0&&(l=0),l*=t.axisExpandWidth/h,l?J2(l,i,o,"all"):u="none";else{var d=i[1]-i[0],v=o[1]*s/d;i=[v6e(0,v-d/2)],i[1]=d6e(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:u}},n}();function D4(n,e){return d6e(v6e(n,e[0]),e[1])}function fSt(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function dSt(n,e){var t=e.layoutLength,r=e.axisExpandWidth,i=e.axisCount,a=e.axisCollapseWidth,o=e.winInnerIndices,s,l=a,u=!1,h;return n=0;i--)Op(r[i])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var i=r[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var a=0,o=r.length;axSt}function S6e(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function w6e(n,e,t,r){var i=new Cn;return i.add(new ta({name:"main",style:Pae(t),silent:!0,draggable:!0,cursor:"move",drift:Un(Nye,n,e,i,["n","s","w","e"]),ondragend:Un(QE,e,{isEnd:!0})})),te(r,function(a){i.add(new ta({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Un(Nye,n,e,i,a),ondragend:Un(QE,e,{isEnd:!0})}))}),i}function b6e(n,e,t,r){var i=r.brushStyle.lineWidth||0,a=yM(i,SSt),o=t[0][0],s=t[1][0],l=o-i/2,u=s-i/2,h=t[0][1],c=t[1][1],f=h-a+i/2,d=c-a+i/2,v=h-o,p=c-s,g=v+i,m=p+i;Km(n,e,"main",o,s,v,p),r.transformable&&(Km(n,e,"w",l,u,a,m),Km(n,e,"e",f,u,a,m),Km(n,e,"n",l,u,g,a),Km(n,e,"s",l,d,g,a),Km(n,e,"nw",l,u,a,a),Km(n,e,"ne",f,u,a,a),Km(n,e,"sw",l,d,a,a),Km(n,e,"se",f,d,a,a))}function YJ(n,e){var t=e.__brushOption,r=t.transformable,i=e.childAt(0);i.useStyle(Pae(t)),i.attr({silent:!r,cursor:r?"move":"default"}),te([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=e.childOfName(a.join("")),s=a.length===1?qJ(n,a[0]):MSt(n,a);o&&o.attr({silent:!r,invisible:!r,cursor:r?bSt[s]+"-resize":null})})}function Km(n,e,t,r,i,a,o){var s=e.childOfName(t);s&&s.setShape(LSt(Oae(n,e,[[r,i],[r+a,i+o]])))}function Pae(n){return sn({strokeNoScale:!0},n.brushStyle)}function E6e(n,e,t,r){var i=[ED(n,t),ED(e,r)],a=[yM(n,t),yM(e,r)];return[[i[0],a[0]],[i[1],a[1]]]}function ASt(n){return AE(n.group)}function qJ(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=Qz(t[e],ASt(n));return r[i]}function MSt(n,e){var t=[qJ(n,e[0]),qJ(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function Nye(n,e,t,r,i,a){var o=t.__brushOption,s=n.toRectRange(o.range),l=T6e(e,i,a);te(r,function(u){var h=wSt[u];s[h[0]][h[1]]+=l[h[0]]}),o.range=n.fromRectRange(E6e(s[0][0],s[1][0],s[0][1],s[1][1])),Mae(e,t),QE(e,{isEnd:!1})}function ISt(n,e,t,r){var i=e.__brushOption.range,a=T6e(n,t,r);te(i,function(o){o[0]+=a[0],o[1]+=a[1]}),Mae(n,e),QE(n,{isEnd:!1})}function T6e(n,e,t){var r=n.group,i=r.transformCoordToLocal(e,t),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function Oae(n,e,t){var r=x6e(n,e);return r&&r!==JE?r.clipPath(t,n._transform):Sn(t)}function LSt(n){var e=ED(n[0][0],n[1][0]),t=ED(n[0][1],n[1][1]),r=yM(n[0][0],n[1][0]),i=yM(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:i-t}}function PSt(n,e,t){if(!(!n._brushType||RSt(n,e.offsetX,e.offsetY))){var r=n._zr,i=n._covers,a=Lae(n,e,t);if(!n._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var SU={lineX:Bye(0),lineY:Bye(1),rect:{createCover:function(n,e){function t(r){return r}return w6e({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=S6e(n);return E6e(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){b6e(n,e,t,r)},updateCommon:YJ,contain:KJ},polygon:{createCover:function(n,e){var t=new Cn;return t.add(new Gd({name:"main",style:Pae(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new bd({name:"main",draggable:!0,drift:Un(ISt,n,e),ondragend:Un(QE,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:Oae(n,e,t)})},updateCommon:YJ,contain:KJ}};function Bye(n){return{createCover:function(e,t){return w6e({toRectRange:function(r){var i=[r,[0,100]];return n&&i.reverse(),i},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=S6e(e),r=ED(t[0][n],t[1][n]),i=yM(t[0][n],t[1][n]);return[r,i]},updateCoverShape:function(e,t,r,i){var a,o=x6e(e,t);if(o!==JE&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(n);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,a];n&&l.reverse(),b6e(e,t,l,i)},updateCommon:YJ,contain:KJ}}const Rae=TSt;function A6e(n){return n=Dae(n),function(e){return Lke(e,n)}}function M6e(n,e){return n=Dae(n),function(t){var r=e!=null?e:t,i=r?n.width:n.height,a=r?n.x:n.y;return[a,a+(i||0)]}}function I6e(n,e,t){var r=Dae(n);return function(i,a){return r.contain(a[0],a[1])&&!yU(i,e,t)}}function Dae(n){return ai.create(n)}var DSt=["axisLine","axisTickLabel","axisName"],NSt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new Rae(r.getZr())).on("brush",kr(this._onBrush,this))},e.prototype.render=function(t,r,i,a){if(!kSt(t,r,a)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Cn,this.group.add(this._axisGroup),!!t.get("show")){var s=BSt(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),h=u.width,c=t.axis.dim,f=l.getAxisLayout(c),d=Mt({strokeContainThreshold:h},f),v=new d_(t,d);te(DSt,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(d,u,t,s,h,i),m3(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],h=Math.min(30,Math.abs(u)*.1),c=ai.create({x:l[0],y:-o/2,width:u,height:o});c.x-=h,c.width+=2*h,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:A6e(c),isTargetByCursor:I6e(c,s,a),getLinearBrushOtherExtent:M6e(c,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(FSt(i))},e.prototype._onBrush=function(t){var r=t.areas,i=this.axisModel,a=i.axis,o=Vt(r,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(vl);function kSt(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function FSt(n){var e=n.axis;return Vt(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function BSt(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const GSt=NSt;var zSt={type:"axisAreaSelect",event:"axisAreaSelected"};function USt(n){n.registerAction(zSt,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var VSt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function L6e(n){n.registerComponentView(iSt),n.registerComponentModel(oSt),n.registerCoordinateSystem("parallel",ySt),n.registerPreprocessor(Jxt),n.registerComponentModel(Oye),n.registerComponentView(GSt),gM(n,"parallel",Oye,VSt),USt(n)}function $St(n){_i(L6e),n.registerChartView(Wxt),n.registerSeriesModel(Yxt),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,Kxt)}var WSt=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),HSt=function(n){$e(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new WSt},e.prototype.buildPath=function(t,r){var i=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+i,r.y2),t.bezierCurveTo(r.cpx2+i,r.cpy2,r.cpx1+i,r.cpy1,r.x1+i,r.y1)):(t.lineTo(r.x2,r.y2+i),t.bezierCurveTo(r.cpx2,r.cpy2+i,r.cpx1,r.cpy1+i,r.x1,r.y1+i)),t.closePath()},e.prototype.highlight=function(){h_(this)},e.prototype.downplay=function(){c_(this)},e}(Si),jSt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,i){var a=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,h=l.height,c=t.getData(),f=t.getData("edge"),d=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var p=new HSt,g=Bn(p);g.dataIndex=v.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var m=v.getModel(),y=m.getModel("lineStyle"),_=y.get("curveness"),x=v.node1.getLayout(),S=v.node1.getModel(),w=S.get("localX"),b=S.get("localY"),E=v.node2.getLayout(),T=v.node2.getModel(),C=T.get("localX"),A=T.get("localY"),M=v.getLayout(),I,R,k,D,G,V,z,j;p.shape.extent=Math.max(1,M.dy),p.shape.orient=d,d==="vertical"?(I=(w!=null?w*u:x.x)+M.sy,R=(b!=null?b*h:x.y)+x.dy,k=(C!=null?C*u:E.x)+M.ty,D=A!=null?A*h:E.y,G=I,V=R*(1-_)+D*_,z=k,j=R*_+D*(1-_)):(I=(w!=null?w*u:x.x)+x.dx,R=(b!=null?b*h:x.y)+M.sy,k=C!=null?C*u:E.x,D=(A!=null?A*h:E.y)+M.ty,G=I*(1-_)+k*_,V=R,z=I*_+k*(1-_),j=D),p.setShape({x1:I,y1:R,x2:k,y2:D,cpx1:G,cpy1:V,cpx2:z,cpy2:j}),p.useStyle(y.getItemStyle()),Gye(p.style,d,v);var Z=""+m.get("value"),Y=hh(m,"edgeLabel");vc(p,Y,{labelFetcher:{getFormattedLabel:function(Q,ie,oe,se,me,Ce){return t.getFormattedLabel(Q,ie,"edge",se,qy(me,Y.normal&&Y.normal.get("formatter"),Z),Ce)}},labelDataIndex:v.dataIndex,defaultText:Z}),p.setTextConfig({position:"inside"});var le=m.getModel("emphasis");dc(p,m,"lineStyle",function(Q){var ie=Q.getItemStyle();return Gye(ie,d,v),ie}),s.add(p),f.setItemGraphicEl(v.dataIndex,p);var H=le.get("focus");dl(p,H==="adjacency"?v.getAdjacentDataIndices():H==="trajectory"?v.getTrajectoryDataIndices():H,le.get("blurScope"),le.get("disabled"))}),o.eachNode(function(v){var p=v.getLayout(),g=v.getModel(),m=g.get("localX"),y=g.get("localY"),_=g.getModel("emphasis"),x=new ta({shape:{x:m!=null?m*u:p.x,y:y!=null?y*h:p.y,width:p.dx,height:p.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});vc(x,hh(g),{labelFetcher:{getFormattedLabel:function(w,b){return t.getFormattedLabel(w,b,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),x.disableLabelAnimation=!0,x.setStyle("fill",v.getVisual("color")),x.setStyle("decal",v.getVisual("style").decal),dc(x,g),s.add(x),c.setItemGraphicEl(v.dataIndex,x),Bn(x).dataType="node";var S=_.get("focus");dl(x,S==="adjacency"?v.getAdjacentDataIndices():S==="trajectory"?v.getTrajectoryDataIndices():S,_.get("blurScope"),_.get("disabled"))}),c.eachItemGraphicEl(function(v,p){var g=c.getItemModel(p);g.get("draggable")&&(v.drift=function(m,y){a._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/h})},v.ondragend=function(){a._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(XSt(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(os);function Gye(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),i=t.node2.getVisual("color");Or(r)&&Or(i)&&(n.fill=new y3(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:i,offset:1}]))}}function XSt(n,e,t){var r=new ta({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return Is(r,{shape:{width:n.width+20}},e,t),r}const YSt=jSt;var qSt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var i=t.edges||t.links,a=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new as(o[l],this,r));if(a&&i){var u=c6e(a,i,this,!0,h);return u.data}function h(c,f){c.wrapMethod("getItemModel",function(d,v){var p=d.parentModel,g=p.getData().getItemLayout(v);if(g){var m=g.depth,y=p.levelModels[m];y&&(d.parentModel=y)}return d}),f.wrapMethod("getItemModel",function(d,v){var p=d.parentModel,g=p.getGraph().getEdgeByIndex(v),m=g.node1.getLayout();if(m){var y=m.depth,_=p.levelModels[y];_&&(d.parentModel=_)}return d})}},e.prototype.setNodePosition=function(t,r){var i=this.option.data||this.option.nodes,a=i[t];a.localX=r[0],a.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,i){function a(d){return isNaN(d)||d==null}if(i==="edge"){var o=this.getDataParams(t,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ch("nameValue",{name:u,value:l,noValue:a(l)})}else{var h=this.getGraph().getNodeByIndex(t),c=h.getLayout().value,f=this.getDataParams(t,i).data.name;return ch("nameValue",{name:f!=null?f+"":null,value:c,noValue:a(c)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var i=n.prototype.getDataParams.call(this,t,r);if(i.value==null&&r==="node"){var a=this.getGraph().getNodeByIndex(t),o=a.getLayout().value;i.value=o}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Ws);const ZSt=qSt;function KSt(n,e){n.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),i=t.get("nodeGap"),a=JSt(t,e);t.layoutInfo=a;var o=a.width,s=a.height,l=t.getGraph(),u=l.nodes,h=l.edges;ewt(u);var c=To(u,function(p){return p.getLayout().value===0}),f=c.length!==0?0:t.get("layoutIterations"),d=t.get("orient"),v=t.get("nodeAlign");QSt(u,h,r,i,o,s,f,d,v)})}function JSt(n,e){return Uu(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function QSt(n,e,t,r,i,a,o,s,l){twt(n,e,t,i,a,s,l),awt(n,e,a,i,r,o,s),vwt(n,s)}function ewt(n){te(n,function(e){var t=xS(e.outEdges,OG),r=xS(e.inEdges,OG),i=e.getValue()||0,a=Math.max(t,r,i);e.setLayout({value:a},!0)})}function twt(n,e,t,r,i,a,o){for(var s=[],l=[],u=[],h=[],c=0,f=0;f=0;m&&g.depth>d&&(d=g.depth),p.setLayout({depth:m?g.depth:c},!0),a==="vertical"?p.setLayout({dy:t},!0):p.setLayout({dx:t},!0);for(var y=0;yc-1?d:c-1;o&&o!=="left"&&rwt(n,o,a,b);var E=a==="vertical"?(i-t)/b:(r-t)/b;iwt(n,E,a)}function P6e(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function rwt(n,e,t,r){if(e==="right"){for(var i=[],a=n,o=0;a.length;){for(var s=0;s0;a--)l*=.99,lwt(s,l,o),kj(s,i,t,r,o),dwt(s,l,o),kj(s,i,t,r,o)}function owt(n,e){var t=[],r=e==="vertical"?"y":"x",i=eJ(n,function(a){return a.getLayout()[r]});return i.keys.sort(function(a,o){return a-o}),te(i.keys,function(a){t.push(i.buckets.get(a))}),t}function swt(n,e,t,r,i,a){var o=1/0;te(n,function(s){var l=s.length,u=0;te(s,function(c){u+=c.getLayout().value});var h=a==="vertical"?(r-(l-1)*i)/u:(t-(l-1)*i)/u;h0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),h=l.getLayout()[a]+l.getLayout()[f]+e;var v=i==="vertical"?r:t;if(u=h-e-v,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),h=s;for(var d=c-2;d>=0;--d)l=o[d],u=l.getLayout()[a]+l.getLayout()[f]+e-h,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),h=l.getLayout()[a]}})}function lwt(n,e,t){te(n.slice().reverse(),function(r){te(r,function(i){if(i.outEdges.length){var a=xS(i.outEdges,uwt,t)/xS(i.outEdges,OG);if(isNaN(a)){var o=i.outEdges.length;a=o?xS(i.outEdges,hwt,t)/o:0}if(t==="vertical"){var s=i.getLayout().x+(a-GS(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-GS(i,t))*e;i.setLayout({y:l},!0)}}})})}function uwt(n,e){return GS(n.node2,e)*n.getValue()}function hwt(n,e){return GS(n.node2,e)}function cwt(n,e){return GS(n.node1,e)*n.getValue()}function fwt(n,e){return GS(n.node1,e)}function GS(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function OG(n){return n.getValue()}function xS(n,e,t){for(var r=0,i=n.length,a=-1;++ao&&(o=l)}),te(r,function(s){var l=new fc({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),h=s.getModel().get(["itemStyle","color"]);h!=null?(s.setVisual("color",h),s.setVisual("style",{fill:h})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&te(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function gwt(n){n.registerChartView(YSt),n.registerSeriesModel(ZSt),n.registerLayout(KSt),n.registerVisual(pwt),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var O6e=function(){function n(){}return n.prototype.getInitialData=function(e,t){var r,i=t.getComponent("xAxis",this.get("xAxisIndex")),a=t.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(e.layout="horizontal",r=i.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=a.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],h=e.layout==="horizontal"?0:1,c=this._baseAxisDim=u[h],f=u[1-h],d=[i,a],v=d[h].get("type"),p=d[1-h].get("type"),g=e.data;if(g&&l){var m=[];te(g,function(x,S){var w;Gt(x)?(w=x.slice(),x.unshift(S)):Gt(x.value)?(w=Mt({},x),w.value=w.value.slice(),x.value.unshift(S)):w=x,m.push(w)}),e.data=m}var y=this.defaultValueDimensions,_=[{name:c,type:xG(v),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:xG(p),dimsDef:y.slice()}];return $I(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:Un(nFe,_,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),R6e=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Ws);gu(R6e,O6e,!0);const ywt=R6e;var mwt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var a=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var h=a.getItemLayout(u),c=zye(h,a,u,l,!0);a.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,h){var c=s.getItemGraphicEl(h);if(!a.hasValue(u)){o.remove(c);return}var f=a.getItemLayout(u);c?(x0(c),D6e(f,c,a,u)):c=zye(f,a,u,l),o.add(c),a.setItemGraphicEl(u,c)}).remove(function(u){var h=s.getItemGraphicEl(u);h&&o.remove(h)}).execute(),this._data=a},e.prototype.remove=function(t){var r=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&r.remove(a)})},e.type="boxplot",e}(os),_wt=function(){function n(){}return n}(),xwt=function(n){$e(e,n);function e(t){var r=n.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new _wt},e.prototype.buildPath=function(t,r){var i=r.points,a=0;for(t.moveTo(i[a][0],i[a][1]),a++;a<4;a++)t.lineTo(i[a][0],i[a][1]);for(t.closePath();ap){var x=[m,_];r.push(x)}}}return{boxData:t,outliers:r}}var Mwt={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==qc){var r="";ao(r)}var i=Awt(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Iwt(n){n.registerSeriesModel(ywt),n.registerChartView(wwt),n.registerLayout(bwt),n.registerTransform(Mwt)}var Lwt=["color","borderColor"],Pwt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,i){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){_w(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),i=this._data,a=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),r.diff(i).add(function(h){if(r.hasValue(h)){var c=r.getItemLayout(h);if(s&&Uye(u,c))return;var f=Fj(c,h,!0);Is(f,{shape:{points:c.ends}},t,h),Bj(f,r,h,o),a.add(f),r.setItemGraphicEl(h,f)}}).update(function(h,c){var f=i.getItemGraphicEl(c);if(!r.hasValue(h)){a.remove(f);return}var d=r.getItemLayout(h);if(s&&Uye(u,d)){a.remove(f);return}f?(ma(f,{shape:{points:d.ends}},t,h),x0(f)):f=Fj(d),Bj(f,r,h,o),a.add(f),r.setItemGraphicEl(h,f)}).remove(function(h){var c=i.getItemGraphicEl(h);c&&a.remove(c)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),Vye(t,this.group);var r=t.get("clip",!0)?gU(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var i=r.getData(),a=i.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=i.getItemLayout(o),l=Fj(s);Bj(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){Vye(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(os),Owt=function(){function n(){}return n}(),Rwt=function(n){$e(e,n);function e(t){var r=n.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new Owt},e.prototype.buildPath=function(t,r){var i=r.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))},e}(Si);function Fj(n,e,t){var r=n.ends;return new Rwt({shape:{points:t?Dwt(r,n):r},z2:100})}function Uye(n,e){for(var t=!0,r=0;r0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(i=t.get(["itemStyle","borderColorDoji"]));var a=t.getModel("itemStyle").getItemStyle(Lwt);e.useStyle(a),e.style.fill=null,e.style.stroke=i}const kwt=Pwt;var N6e=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,i){var a=r.getItemLayout(t);return a&&i.rect(a.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Ws);gu(N6e,O6e,!0);const Fwt=N6e;function Bwt(n){!n||!Gt(n.series)||te(n.series,function(e){dn(e)&&e.type==="k"&&(e.type="candlestick")})}var Gwt=["itemStyle","borderColor"],zwt=["itemStyle","borderColor0"],Uwt=["itemStyle","borderColorDoji"],Vwt=["itemStyle","color"],$wt=["itemStyle","color0"],Wwt={seriesType:"candlestick",plan:zI(),performRawSeries:!0,reset:function(n,e){function t(a,o){return o.get(a>0?Vwt:$wt)}function r(a,o){return o.get(a===0?Uwt:a>0?Gwt:zwt)}if(!e.isSeriesFiltered(n)){var i=n.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,h=l.getItemStyle();h.fill=t(u,l),h.stroke=r(u,l)||h.fill;var c=o.ensureUniqueItemVisual(s,"style");Mt(c,h)}}}}}};const Hwt=Wwt;var jwt={seriesType:"candlestick",plan:zI(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),r=Xwt(n,t),i=0,a=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[i])),l=Vt(t.mapDimensionsAll(o[a]),t.getDimensionIndex,t),u=l[0],h=l[1],c=l[2],f=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?v:d};function d(p,g){for(var m,y=g.getStore();(m=p.next())!=null;){var _=y.get(s,m),x=y.get(u,m),S=y.get(h,m),w=y.get(c,m),b=y.get(f,m),E=Math.min(x,S),T=Math.max(x,S),C=G(E,_),A=G(T,_),M=G(w,_),I=G(b,_),R=[];V(R,A,0),V(R,C,1),R.push(j(I),j(A),j(M),j(C));var k=g.getItemModel(m),D=!!k.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:$ye(y,m,x,S,h,D),initBaseline:x>S?A[a]:C[a],ends:R,brushRect:z(w,b,_)})}function G(Z,Y){var le=[];return le[i]=Y,le[a]=Z,isNaN(Y)||isNaN(Z)?[NaN,NaN]:e.dataToPoint(le)}function V(Z,Y,le){var H=Y.slice(),Q=Y.slice();H[i]=AB(H[i]+r/2,1,!1),Q[i]=AB(Q[i]-r/2,1,!0),le?Z.push(H,Q):Z.push(Q,H)}function z(Z,Y,le){var H=G(Z,le),Q=G(Y,le);return H[i]-=r/2,Q[i]-=r/2,{x:H[0],y:H[1],width:r,height:Q[1]-H[1]}}function j(Z){return Z[i]=AB(Z[i],1),Z}}function v(p,g){for(var m=Fy(p.count*4),y=0,_,x=[],S=[],w,b=g.getStore(),E=!!n.get(["itemStyle","borderColorDoji"]);(w=p.next())!=null;){var T=b.get(s,w),C=b.get(u,w),A=b.get(h,w),M=b.get(c,w),I=b.get(f,w);if(isNaN(T)||isNaN(M)||isNaN(I)){m[y++]=NaN,y+=3;continue}m[y++]=$ye(b,w,C,A,h,E),x[i]=T,x[a]=M,_=e.dataToPoint(x,null,S),m[y++]=_?_[0]:NaN,m[y++]=_?_[1]:NaN,x[a]=I,_=e.dataToPoint(x,null,S),m[y++]=_?_[1]:NaN}g.setLayout("largePoints",m)}}};function $ye(n,e,t,r,i,a){var o;return t>r?o=-1:t0?n.get(i,e-1)<=r?1:-1:1,o}function Xwt(n,e){var t=n.getBaseAxis(),r,i=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),a=xr(ni(n.get("barMaxWidth"),i),i),o=xr(ni(n.get("barMinWidth"),1),i),s=n.get("barWidth");return s!=null?xr(s,i):Math.max(Math.min(i/2,a),o)}const Ywt=jwt;function qwt(n){n.registerChartView(kwt),n.registerSeriesModel(Fwt),n.registerPreprocessor(Bwt),n.registerVisual(Hwt),n.registerLayout(Ywt)}function Wye(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var Zwt=function(n){$e(e,n);function e(t,r){var i=n.call(this)||this,a=new C3(t,r),o=new Cn;return i.add(a),i.add(o),i.updateData(t,r),i}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,i=t.color,a=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(a)/h*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var f=void 0;rn(c)?f=c(i):f=c,a.__t>0&&(f=-s*a.__t),this._animateSymbol(a,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,i,a,o){if(r>0){t.__t=0;var s=this,l=t.animate("",a).when(o?r*2:r,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(t)});a||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Zx(t.__p1,t.__cp1)+Zx(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,i){this.childAt(0).updateData(t,r,i),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,i=t.__p2,a=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Ph,h=UK;s[0]=u(r[0],a[0],i[0],o),s[1]=u(r[1],a[1],i[1],o);var c=t.__t<1?h(r[0],a[0],i[0],o):h(i[0],a[0],r[0],1-o),f=t.__t<1?h(r[1],a[1],i[1],o):h(i[1],a[1],r[1],1-o);t.rotation=-Math.atan2(f,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(a[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var h=(r-a[l])/(a[l+1]-a[l]),c=i[l],f=i[l+1];t.x=c[0]*(1-h)+h*f[0],t.y=c[1]*(1-h)+h*f[1];var d=t.__t<1?f[0]-c[0]:c[0]-f[0],v=t.__t<1?f[1]-c[1]:c[1]-f[1];t.rotation=-Math.atan2(v,d)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(k6e);const obt=abt;var sbt=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),lbt=function(n){$e(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new sbt},e.prototype.buildPath=function(t,r){var i=r.segs,a=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(i[o++],i[o++]);for(var l=1;l0){var d=(u+c)/2-(h-f)*a,v=(h+f)/2-(c-u)*a;t.quadraticCurveTo(d,v,c,f)}else t.lineTo(c,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var c=a[u++],f=a[u++],d=1;d0){var g=(c+v)/2-(f-p)*o,m=(f+p)/2-(v-c)*o;if($3e(c,f,g,m,v,p,s,t,r))return l}else if(Nx(c,f,v,p,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),a=this.getBoundingRect();if(t=i[0],r=i[1],a.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,i=r.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const hbt=ubt;var cbt={seriesType:"lines",plan:zI(),reset:function(n){var e=n.coordinateSystem;if(!!e){var t=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,l=i.end-i.start;if(t){for(var u=0,h=i.start;h0&&(h||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var c=t.get("clip",!0)&&gU(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,i){var a=t.getData(),o=this._updateLineDraw(a,t);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,i){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,i){var a=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=B6e.reset(t,r,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(t,r){var i=this._lineDraw,a=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new hbt:new Aae(o?a?obt:F6e:a?k6e:Cae),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),i=r.painter.getType()==="svg";!i&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(os);const dbt=fbt;var vbt=typeof Uint32Array>"u"?Array:Uint32Array,pbt=typeof Float64Array>"u"?Array:Float64Array;function Hye(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=Vt(e,function(t){var r=[t[0].coord,t[1].coord],i={coords:r};return t[0].name&&(i.fromName=t[0].name),t[1].name&&(i.toName=t[1].name),nie([i,t[0],t[1]])}))}var gbt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],Hye(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(Hye(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=Z8(this._flatCoords,r.flatCoords),this._flatCoordsOffset=Z8(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),i=r.option instanceof Array?r.option:r.getShallow("coords");return i},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[t*2],a=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!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}},e}(Ws);const ybt=gbt;function N4(n){return n instanceof Array||(n=[n,n]),n}var mbt={seriesType:"lines",reset:function(n){var e=N4(n.get("symbol")),t=N4(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function i(a,o){var s=a.getItemModel(o),l=N4(s.getShallow("symbol",!0)),u=N4(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?i:null}}};const _bt=mbt;function xbt(n){n.registerChartView(dbt),n.registerSeriesModel(ybt),n.registerLayout(B6e),n.registerVisual(_bt)}var Sbt=256,wbt=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=s_.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,r,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),h=this.pointSize+this.blurSize,c=this.canvas,f=c.getContext("2d"),d=e.length;c.width=t,c.height=r;for(var v=0;v0){var M=o(_)?l:u;_>0&&(_=_*C+E),S[w++]=M[A],S[w++]=M[A+1],S[w++]=M[A+2],S[w++]=M[A+3]*_*256}else w+=4}return f.putImageData(x,0,0),c},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=s_.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var i=e.getContext("2d");return i.clearRect(0,0,r,r),i.shadowOffsetX=r,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},n.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,i=r[t]||(r[t]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},n}();const bbt=wbt;function Ebt(n,e,t){var r=n[1]-n[0];e=Vt(e,function(o){return{interval:[(o.interval[0]-n[0])/r,(o.interval[1]-n[0])/r]}});var i=e.length,a=0;return function(o){var s;for(s=a;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function jye(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var Cbt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var a;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):jye(o)&&this._renderOnGeo(o,t,a,i)},e.prototype.incrementalPrepareRender=function(t,r,i){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,i,a){var o=r.coordinateSystem;o&&(jye(o)?this.render(r,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,a,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){_w(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,i,a,o){var s=t.coordinateSystem,l=Z2(s,"cartesian2d"),u,h,c,f;if(l){var d=s.getAxis("x"),v=s.getAxis("y");u=d.getBandWidth()+.5,h=v.getBandWidth()+.5,c=d.scale.getExtent(),f=v.scale.getExtent()}for(var p=this.group,g=t.getData(),m=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),x=t.get(["itemStyle","borderRadius"]),S=hh(t),w=t.getModel("emphasis"),b=w.get("focus"),E=w.get("blurScope"),T=w.get("disabled"),C=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],A=i;Ac[1]||kf[1])continue;var D=s.dataToPoint([R,k]);M=new ta({shape:{x:D[0]-u/2,y:D[1]-h/2,width:u,height:h},style:I})}else{if(isNaN(g.get(C[1],A)))continue;M=new ta({z2:1,shape:s.dataToRect([g.get(C[0],A)]).contentShape,style:I})}if(g.hasItemOption){var G=g.getItemModel(A),V=G.getModel("emphasis");m=V.getModel("itemStyle").getItemStyle(),y=G.getModel(["blur","itemStyle"]).getItemStyle(),_=G.getModel(["select","itemStyle"]).getItemStyle(),x=G.get(["itemStyle","borderRadius"]),b=V.get("focus"),E=V.get("blurScope"),T=V.get("disabled"),S=hh(G)}M.shape.r=x;var z=t.getRawValue(A),j="-";z&&z[2]!=null&&(j=z[2]+""),vc(M,S,{labelFetcher:t,labelDataIndex:A,defaultOpacity:I.opacity,defaultText:j}),M.ensureState("emphasis").style=m,M.ensureState("blur").style=y,M.ensureState("select").style=_,dl(M,b,E,T),M.incremental=o,o&&(M.states.emphasis.hoverLayer=!0),p.add(M),g.setItemGraphicEl(A,M),this._progressiveEls&&this._progressiveEls.push(M)}},e.prototype._renderOnGeo=function(t,r,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new bbt;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var h=t.getViewRect().clone(),c=t.getRoamTransform();h.applyTransform(c);var f=Math.max(h.x,0),d=Math.max(h.y,0),v=Math.min(h.width+h.x,a.getWidth()),p=Math.min(h.height+h.y,a.getHeight()),g=v-f,m=p-d,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(y,function(b,E,T){var C=t.dataToPoint([b,E]);return C[0]-=f,C[1]-=d,C.push(T),C}),x=i.getExtent(),S=i.type==="visualMap.continuous"?Tbt(x,i.option.range):Ebt(x,i.getPieceList(),i.option.selected);u.update(_,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var w=new xc({style:{width:g,height:m,x:f,y:d,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(os);const Abt=Cbt;var Mbt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return k_(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=S3.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Ws);const Ibt=Mbt;function Lbt(n){n.registerChartView(Abt),n.registerSeriesModel(Ibt)}var Pbt=["itemStyle","borderWidth"],Xye=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Uj=new cm,Obt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var a=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),h=u.isHorizontal(),c=l.master.getRect(),f={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:h,valueDim:Xye[+h],categoryDim:Xye[1-+h]};return o.diff(s).add(function(d){if(!!o.hasValue(d)){var v=qye(o,d),p=Yye(o,d,v,f),g=Zye(o,f,p);o.setItemGraphicEl(d,g),a.add(g),Jye(g,f,p)}}).update(function(d,v){var p=s.getItemGraphicEl(v);if(!o.hasValue(d)){a.remove(p);return}var g=qye(o,d),m=Yye(o,d,g,f),y=W6e(o,m);p&&y!==p.__pictorialShapeStr&&(a.remove(p),o.setItemGraphicEl(d,null),p=null),p?Gbt(p,f,m):p=Zye(o,f,m,!0),o.setItemGraphicEl(d,p),p.__pictorialSymbolMeta=m,a.add(p),Jye(p,f,m)}).remove(function(d){var v=s.getItemGraphicEl(d);v&&Kye(s,d,v.__pictorialSymbolMeta.animationModel,v)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var i=this.group,a=this._data;t.get("animation")?a&&a.eachItemGraphicEl(function(o){Kye(a,Bn(o).dataIndex,t,o)}):i.removeAll()},e.type="pictorialBar",e}(os);function Yye(n,e,t,r){var i=n.getItemLayout(e),a=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,h=t.get("symbolPatternSize")||2,c=t.isAnimationEnabled(),f={dataIndex:e,layout:i,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:u,animationModel:c?t:null,hoverScale:c&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Rbt(t,a,i,r,f),Dbt(n,e,i,a,o,f.boundingLength,f.pxSign,h,r,f),Nbt(t,f.symbolScale,u,r,f);var d=f.symbolSize,v=Y2(t.get("symbolOffset"),d);return kbt(t,d,i,a,o,v,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Rbt(n,e,t,r,i){var a=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[a.wh]<=0),h;if(Gt(o)){var c=[Vj(s,o[0])-l,Vj(s,o[1])-l];c[1]0?1:-1}function Vj(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function Dbt(n,e,t,r,i,a,o,s,l,u){var h=l.valueDim,c=l.categoryDim,f=Math.abs(t[c.wh]),d=n.getItemVisual(e,"symbolSize"),v;Gt(d)?v=d.slice():d==null?v=["100%","100%"]:v=[d,d],v[c.index]=xr(v[c.index],f),v[h.index]=xr(v[h.index],r?f:Math.abs(a)),u.symbolSize=v;var p=u.symbolScale=[v[0]/s,v[1]/s];p[h.index]*=(l.isHorizontal?-1:1)*o}function Nbt(n,e,t,r,i){var a=n.get(Pbt)||0;a&&(Uj.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Uj.updateTransform(),a/=Uj.getLineScale(),a*=e[r.valueDim.index]),i.valueLineWidth=a||0}function kbt(n,e,t,r,i,a,o,s,l,u,h,c){var f=h.categoryDim,d=h.valueDim,v=c.pxSign,p=Math.max(e[d.index]+s,0),g=p;if(r){var m=Math.abs(l),y=Gh(n.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var x=xr(y,e[d.index]),S=Math.max(p+x*2,0),w=_?0:x*2,b=M3e(r),E=b?r:Qye((m+w)/S),T=m-E*p;x=T/2/(_?E:Math.max(E-1,1)),S=p+x*2,w=_?0:x*2,!b&&r!=="fixed"&&(E=u?Qye((Math.abs(u)+w)/S):0),g=E*S-w,c.repeatTimes=E,c.symbolMargin=x}var C=v*(g/2),A=c.pathPosition=[];A[f.index]=t[f.wh]/2,A[d.index]=o==="start"?C:o==="end"?l-C:l/2,a&&(A[0]+=a[0],A[1]+=a[1]);var M=c.bundlePosition=[];M[f.index]=t[f.xy],M[d.index]=t[d.xy];var I=c.barRectShape=Mt({},t);I[d.wh]=v*Math.max(Math.abs(t[d.wh]),Math.abs(A[d.index]+C)),I[f.wh]=t[f.wh];var R=c.clipShape={};R[f.xy]=-t[f.xy],R[f.wh]=h.ecSize[f.wh],R[d.xy]=0,R[d.wh]=t[d.wh]}function G6e(n){var e=n.symbolPatternSize,t=hu(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function z6e(n,e,t,r){var i=n.__pictorialBundle,a=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,h=0,c=a[e.valueDim.index]+o+t.symbolMargin*2;for(Nae(n,function(p){p.__pictorialAnimationIndex=h,p.__pictorialRepeatTimes=u,h0:m<0)&&(y=u-1-p),g[l.index]=c*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function U6e(n,e,t,r){var i=n.__pictorialBundle,a=n.__pictorialMainPath;a?GA(a,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(a=n.__pictorialMainPath=G6e(t),i.add(a),GA(a,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function V6e(n,e,t){var r=Mt({},e.barRectShape),i=n.__pictorialBarRect;i?GA(i,null,{shape:r},e,t):(i=n.__pictorialBarRect=new ta({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,n.add(i))}function $6e(n,e,t,r){if(t.symbolClip){var i=n.__pictorialClipPath,a=Mt({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(i)ma(i,{shape:a},s,l);else{a[o.wh]=0,i=new ta({shape:a}),n.__pictorialBundle.setClipPath(i),n.__pictorialClipPath=i;var u={};u[o.wh]=t.clipShape[o.wh],x3[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function qye(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=Fbt,t.isAnimationEnabled=Bbt,t}function Fbt(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function Bbt(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Zye(n,e,t,r){var i=new Cn,a=new Cn;return i.add(a),i.__pictorialBundle=a,a.x=t.bundlePosition[0],a.y=t.bundlePosition[1],t.symbolRepeat?z6e(i,e,t):U6e(i,e,t),V6e(i,t,r),$6e(i,e,t,r),i.__pictorialShapeStr=W6e(n,t),i.__pictorialSymbolMeta=t,i}function Gbt(n,e,t){var r=t.animationModel,i=t.dataIndex,a=n.__pictorialBundle;ma(a,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,i),t.symbolRepeat?z6e(n,e,t,!0):U6e(n,e,t,!0),V6e(n,t,!0),$6e(n,e,t,!0)}function Kye(n,e,t,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];Nae(r,function(o){a.push(o)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),te(a,function(o){NS(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function W6e(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Nae(n,e,t){te(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function GA(n,e,t,r,i,a){e&&n.attr(e),r.symbolClip&&!i?t&&n.attr(t):t&&x3[i?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,a)}function Jye(n,e,t){var r=t.dataIndex,i=t.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),h=a.get("focus"),c=a.get("blurScope"),f=a.get("scale");Nae(n,function(p){if(p instanceof xc){var g=p.style;p.useStyle(Mt({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else p.useStyle(t.style);var m=p.ensureState("emphasis");m.style=o,f&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=t.z2});var d=e.valueDim.posDesc[+(t.boundingLength>0)],v=n.__pictorialBarRect;vc(v,hh(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:pM(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:d}),dl(n,h,c,a.get("disabled"))}function Qye(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const zbt=Obt;var Ubt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=xw(TG.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(TG);const Vbt=Ubt;function $bt(n){n.registerChartView(zbt),n.registerSeriesModel(Vbt),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Un(T4e,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,C4e("pictorialBar"))}var Wbt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,i){var a=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=a.getLayout("layoutInfo"),h=u.rect,c=u.boundaryGap;s.x=0,s.y=h.y+c[0];function f(g){return g.name}var d=new f_(this._layersSeries||[],l,f,f),v=[];d.add(kr(p,this,"add")).update(kr(p,this,"update")).remove(kr(p,this,"remove")).execute();function p(g,m,y){var _=o._layers;if(g==="remove"){s.remove(_[m]);return}for(var x=[],S=[],w,b=l[m].indices,E=0;Ea&&(a=s),r.push(s)}for(var u=0;ua&&(a=c)}return{y0:i,max:a}}function Kbt(n){n.registerChartView(jbt),n.registerSeriesModel(Ybt),n.registerLayout(qbt),n.registerProcessor(I3("themeRiver"))}var Jbt=2,Qbt=4,eEt=function(n){$e(e,n);function e(t,r,i,a){var o=n.call(this)||this;o.z2=Jbt,o.textConfig={inside:!0},Bn(o).seriesIndex=r.seriesIndex;var s=new la({z2:Qbt,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,i,a),o}return e.prototype.updateData=function(t,r,i,a,o){this.node=r,r.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;Bn(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),h=r.getLayout(),c=Mt({},h);c.label=null;var f=r.getVisual("style");f.lineJoin="bevel";var d=r.getVisual("decal");d&&(f.decal=dM(d,o));var v=lE(l.getModel("itemStyle"),c,!0);Mt(c,v),te(Bf,function(y){var _=s.ensureState(y),x=l.getModel([y,"itemStyle"]);_.style=x.getItemStyle();var S=lE(x,c);S&&(_.shape=S)}),t?(s.setShape(c),s.shape.r=h.r0,Is(s,{shape:{r:h.r}},i,r.dataIndex)):(ma(s,{shape:c},i),x0(s)),s.useStyle(f),this._updateLabel(i);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var g=u.get("focus"),m=g==="ancestor"?r.getAncestorsIndices():g==="descendant"?r.getDescendantIndices():g;dl(this,m,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),h=Math.sin(l),c=this,f=c.getTextContent(),d=this.node.dataIndex,v=a.get("minAngle")/180*Math.PI,p=a.get("show")&&!(v!=null&&Math.abs(s)Math.PI/2?"right":"left"):!M||M==="center"?(s===2*Math.PI&&o.r0===0?C=0:C=(o.r+o.r0)/2,M="center"):M==="left"?(C=o.r0+A,l>Math.PI/2&&(M="right")):M==="right"&&(C=o.r-A,l>Math.PI/2&&(M="left")),x.style.align=M,x.style.verticalAlign=g(y,"verticalAlign")||"middle",x.x=C*u+o.cx,x.y=C*h+o.cy;var I=g(y,"rotate"),R=0;I==="radial"?(R=e0(-l),R>Math.PI/2&&RMath.PI/2?R-=Math.PI:R<-Math.PI/2&&(R+=Math.PI)):ha(I)&&(R=I*Math.PI/180),x.rotation=e0(R)});function g(m,y){var _=m.get(y);return _==null?a.get(y):_}f.dirtyStyle()},e}(wd);const tme=eEt;var JJ="sunburstRootToNode",rme="sunburstHighlight",tEt="sunburstUnhighlight";function rEt(n){n.registerAction({type:JJ,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(i,a){var o=xD(e,[JJ],i);if(o){var s=i.getViewRoot();s&&(e.direction=xae(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),n.registerAction({type:rme,update:"none"},function(e,t,r){e=Mt({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(a){var o=xD(e,[rme],a);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(Mt(e,{type:"highlight"}))}),n.registerAction({type:tEt,update:"updateView"},function(e,t,r){e=Mt({},e),r.dispatchAction(Mt(e,{type:"downplay"}))})}var nEt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i,a){var o=this;this.seriesModel=t,this.api=i,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),h=this.group,c=t.get("renderLabelForZeroData"),f=[];u.eachNode(function(y){f.push(y)});var d=this._oldChildren||[];v(f,d),m(l,u),this._initEvents(),this._oldChildren=f;function v(y,_){if(y.length===0&&_.length===0)return;new f_(_,y,x,x).add(S).update(S).remove(Un(S,null)).execute();function x(w){return w.getId()}function S(w,b){var E=w==null?null:y[w],T=b==null?null:_[b];p(E,T)}}function p(y,_){if(!c&&y&&!y.getValue()&&(y=null),y!==l&&_!==l){if(_&&_.piece)y?(_.piece.updateData(!1,y,t,r,i),s.setItemGraphicEl(y.dataIndex,_.piece)):g(_);else if(y){var x=new tme(y,t,r,i);h.add(x),s.setItemGraphicEl(y.dataIndex,x)}}}function g(y){!y||y.piece&&(h.remove(y.piece),y.piece=null)}function m(y,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,t,r,i):(o.virtualPiece=new tme(y,t,r,i),h.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(x){o._rootToNode(_.parentNode)})):o.virtualPiece&&(h.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var i=!1,a=t.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var h=l.get("target",!0)||"_blank";fG(u,h)}}i=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:JJ,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var i=r.getData(),a=i.getItemLayout(0);if(a){var o=t[0]-a.cx,s=t[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="sunburst",e}(os);const iEt=nEt;var aEt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var i={name:t.name,children:t.data};H6e(i);var a=this._levelModels=Vt(t.levels||[],function(l){return new as(l,this,r)},this),o=_ae.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,h){var c=o.getNodeByDataIndex(h),f=a[c.depth];return f&&(u.parentModel=f),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=_U(i,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){q5e(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,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},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Ws);function H6e(n){var e=0;te(n.children,function(r){H6e(r);var i=r.value;Gt(i)&&(i=i[0]),e+=i});var t=n.value;Gt(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),Gt(n.value)?n.value[0]=t:n.value=t}const oEt=aEt;var nme=Math.PI/180;function sEt(n,e,t){e.eachSeriesByType(n,function(r){var i=r.get("center"),a=r.get("radius");Gt(a)||(a=[0,a]),Gt(i)||(i=[i,i]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=xr(i[0],o),h=xr(i[1],s),c=xr(a[0],l/2),f=xr(a[1],l/2),d=-r.get("startAngle")*nme,v=r.get("minAngle")*nme,p=r.getData().tree.root,g=r.getViewRoot(),m=g.depth,y=r.get("sort");y!=null&&j6e(g,y);var _=0;te(g.children,function(D){!isNaN(D.getValue())&&_++});var x=g.getValue(),S=Math.PI/(x||_)*2,w=g.depth>0,b=g.height-(w?-1:1),E=(f-c)/(b||1),T=r.get("clockwise"),C=r.get("stillShowZeroSum"),A=T?1:-1,M=function(D,G){if(!!D){var V=G;if(D!==p){var z=D.getValue(),j=x===0&&C?S:z*S;j1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&Or(s)&&(s=WK(s,(r.depth-1)/(a-1)*.5)),s}n.eachSeriesByType("sunburst",function(r){var i=r.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");Mt(u,l)})})}function hEt(n){n.registerChartView(iEt),n.registerSeriesModel(oEt),n.registerLayout(Un(sEt,"sunburst")),n.registerProcessor(Un(I3,"sunburst")),n.registerVisual(uEt),rEt(n)}var ime={color:"fill",borderColor:"stroke"},cEt={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},H1=na(),fEt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return k_(null,this)},e.prototype.getDataParams=function(t,r,i){var a=n.prototype.getDataParams.call(this,t,r);return i&&(a.info=H1(i).info),a},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Ws);const dEt=fEt;function vEt(n,e){return e=e||[0,0],Vt(["x","y"],function(t,r){var i=this.getAxis(t),a=e[r],o=n[r]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function pEt(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:kr(vEt,n)}}}function gEt(n,e){return e=e||[0,0],Vt([0,1],function(t){var r=e[t],i=n[t]/2,a=[],o=[];return a[t]=r-i,o[t]=r+i,a[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(a)[t]-this.dataToPoint(o)[t])},this)}function yEt(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:kr(gEt,n)}}}function mEt(n,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,i=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-i)-t.dataToCoord(r+i))}function _Et(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:kr(mEt,n)}}}function xEt(n,e){return e=e||[0,0],Vt(["Radius","Angle"],function(t,r){var i="get"+t+"Axis",a=this[i](),o=e[r],s=n[r]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function SEt(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(i){var a=e.dataToRadius(i[0]),o=t.dataToAngle(i[1]),s=n.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:kr(xEt,n)}}}function wEt(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,i){return n.dataToPoint(r,i)}}}}function X6e(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||Fr(n,"text")))}function Y6e(n,e,t){var r=n,i,a,o;if(e==="text")o=r;else{o={},Fr(r,"text")&&(o.text=r.text),Fr(r,"rich")&&(o.rich=r.rich),Fr(r,"textFill")&&(o.fill=r.textFill),Fr(r,"textStroke")&&(o.stroke=r.textStroke),Fr(r,"fontFamily")&&(o.fontFamily=r.fontFamily),Fr(r,"fontSize")&&(o.fontSize=r.fontSize),Fr(r,"fontStyle")&&(o.fontStyle=r.fontStyle),Fr(r,"fontWeight")&&(o.fontWeight=r.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=Fr(r,"textPosition");t?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),Fr(r,"textPosition")&&(i.position=r.textPosition),Fr(r,"textOffset")&&(i.offset=r.textOffset),Fr(r,"textRotation")&&(i.rotation=r.textRotation),Fr(r,"textDistance")&&(i.distance=r.textDistance)}return ame(o,n),te(o.rich,function(l){ame(l,l)}),{textConfig:i,textContent:a}}function ame(n,e){!e||(e.font=e.textFont||e.font,Fr(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),Fr(e,"textAlign")&&(n.align=e.textAlign),Fr(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),Fr(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),Fr(e,"textWidth")&&(n.width=e.textWidth),Fr(e,"textHeight")&&(n.height=e.textHeight),Fr(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),Fr(e,"textPadding")&&(n.padding=e.textPadding),Fr(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),Fr(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),Fr(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),Fr(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),Fr(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),Fr(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),Fr(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function ome(n,e,t){var r=n;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var i=r.textPosition.indexOf("inside")>=0,a=n.fill||"#000";sme(r,e);var o=r.textFill==null;return i?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,te(e.rich,function(s){sme(s,s)}),r}function sme(n,e){!e||(Fr(e,"fill")&&(n.textFill=e.fill),Fr(e,"stroke")&&(n.textStroke=e.fill),Fr(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),Fr(e,"font")&&(n.font=e.font),Fr(e,"fontStyle")&&(n.fontStyle=e.fontStyle),Fr(e,"fontWeight")&&(n.fontWeight=e.fontWeight),Fr(e,"fontSize")&&(n.fontSize=e.fontSize),Fr(e,"fontFamily")&&(n.fontFamily=e.fontFamily),Fr(e,"align")&&(n.textAlign=e.align),Fr(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),Fr(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),Fr(e,"width")&&(n.textWidth=e.width),Fr(e,"height")&&(n.textHeight=e.height),Fr(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),Fr(e,"padding")&&(n.textPadding=e.padding),Fr(e,"borderColor")&&(n.textBorderColor=e.borderColor),Fr(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),Fr(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),Fr(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),Fr(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),Fr(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),Fr(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),Fr(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),Fr(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),Fr(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),Fr(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var q6e={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},lme=Li(q6e);om(lm,function(n,e){return n[e]=1,n},{});lm.join(", ");var RG=["","style","shape","extra"],mM=na();function kae(n,e,t,r,i){var a=n+"Animation",o=OI(n,r,i)||{},s=mM(e).userDuring;return o.duration>0&&(o.during=s?kr(AEt,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),Mt(o,t[a]),o}function RB(n,e,t,r){r=r||{};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=mM(n),u=e.style;l.userDuring=e.during;var h={},c={};if(IEt(n,e,c),hme("shape",e,c),hme("extra",e,c),!a&&s&&(MEt(n,e,h),ume("shape",n,e,h),ume("extra",n,e,h),LEt(n,e,u,h)),c.style=u,bEt(n,c,o),TEt(n,e),s)if(a){var f={};te(RG,function(v){var p=v?e[v]:e;p&&p.enterFrom&&(v&&(f[v]=f[v]||{}),Mt(v?f[v]:f,p.enterFrom))});var d=kae("enter",n,e,t,i);d.duration>0&&n.animateFrom(f,d)}else EEt(n,e,i||0,t,h);Z6e(n,e),u?n.dirty():n.markRedraw()}function Z6e(n,e){for(var t=mM(n).leaveToProps,r=0;r0&&n.animateFrom(i,a)}}function TEt(n,e){Fr(e,"silent")&&(n.silent=e.silent),Fr(e,"ignore")&&(n.ignore=e.ignore),n instanceof Vp&&Fr(e,"invisible")&&(n.invisible=e.invisible),n instanceof Si&&Fr(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var vy={},CEt={setTransform:function(n,e){return vy.el[n]=e,this},getTransform:function(n){return vy.el[n]},setShape:function(n,e){var t=vy.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=vy.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=vy.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=vy.el.style;if(e)return e[n]},setExtra:function(n,e){var t=vy.el.extra||(vy.el.extra={});return t[n]=e,this},getExtra:function(n){var e=vy.el.extra;if(e)return e[n]}};function AEt(){var n=this,e=n.el;if(!!e){var t=mM(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}vy.el=e,r(CEt)}}function ume(n,e,t,r){var i=t[n];if(!!i){var a=e[n],o;if(a){var s=t.transition,l=i.transition;if(l)if(!o&&(o=r[n]={}),PE(l))Mt(o,a);else for(var u=Do(l),h=0;h=0){!o&&(o=r[n]={});for(var d=Li(a),h=0;h=0)){var f=n.getAnimationStyleProps(),d=f?f.style:null;if(d){!a&&(a=r.style={});for(var v=Li(t),u=0;u=0?e.getStore().get(G,k):void 0}var V=e.get(D.name,k),z=D&&D.ordinalMeta;return z?z.categories[V]:V}function w(R,k){k==null&&(k=u);var D=e.getItemVisual(k,"style"),G=D&&D.fill,V=D&&D.opacity,z=y(k,nS).getItemStyle();G!=null&&(z.fill=G),V!=null&&(z.opacity=V);var j={inheritColor:Or(G)?G:"#000"},Z=_(k,nS),Y=is(Z,null,j,!1,!0);Y.text=Z.getShallow("show")?ni(n.getFormattedLabel(k,nS),pM(e,k)):null;var le=hG(Z,j,!1);return T(R,z),z=ome(z,Y,le),R&&E(z,R),z.legacy=!0,z}function b(R,k){k==null&&(k=u);var D=y(k,j1).getItemStyle(),G=_(k,j1),V=is(G,null,null,!0,!0);V.text=G.getShallow("show")?qy(n.getFormattedLabel(k,j1),n.getFormattedLabel(k,nS),pM(e,k)):null;var z=hG(G,null,!0);return T(R,D),D=ome(D,V,z),R&&E(D,R),D.legacy=!0,D}function E(R,k){for(var D in k)Fr(k,D)&&(R[D]=k[D])}function T(R,k){R&&(R.textFill&&(k.textFill=R.textFill),R.textPosition&&(k.textPosition=R.textPosition))}function C(R,k){if(k==null&&(k=u),Fr(ime,R)){var D=e.getItemVisual(k,"style");return D?D[ime[R]]:null}if(Fr(cEt,R))return e.getItemVisual(k,R)}function A(R){if(a.type==="cartesian2d"){var k=a.getBaseAxis();return $pt(sn({axis:k},R))}}function M(){return t.getCurrentSeriesIndices()}function I(R){return Rke(R,t)}}function UEt(n){var e={};return te(n.dimensions,function(t){var r=n.getDimensionInfo(t);if(!r.isExtraCoord){var i=r.coordDim,a=e[i]=e[i]||[];a[r.coordDimIndex]=n.getDimensionIndex(t)}}),e}function jj(n,e,t,r,i,a,o){if(!r){a.remove(e);return}var s=Uae(n,e,t,r,i,a);return s&&o.setItemGraphicEl(t,s),s&&dl(s,r.focus,r.blurScope,r.emphasisDisabled),s}function Uae(n,e,t,r,i,a){var o=-1,s=e;e&&eBe(e,r,i)&&(o=gi(a.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Gae(r),s&&kEt(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),qv.normal.cfg=qv.normal.conOpt=qv.emphasis.cfg=qv.emphasis.conOpt=qv.blur.cfg=qv.blur.conOpt=qv.select.cfg=qv.select.conOpt=null,qv.isLegacy=!1,$Et(u,t,r,i,l,qv),VEt(u,t,r,i,l),zae(n,u,t,r,qv,i,l),Fr(r,"info")&&(H1(u).info=r.info);for(var h=0;h=0?a.replaceAt(u,o):a.add(u),u}function eBe(n,e,t){var r=H1(n),i=e.type,a=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i==="path"&&YEt(a)&&tBe(a)!==r.customPathData||i==="image"&&Fr(o,"image")&&o.image!==r.customImagePath}function VEt(n,e,t,r,i){var a=t.clipPath;if(a===!1)n&&n.getClipPath()&&n.removeClipPath();else if(a){var o=n.getClipPath();o&&eBe(o,a,r)&&(o=null),o||(o=Gae(a),n.setClipPath(o)),zae(null,o,e,a,null,r,i)}}function $Et(n,e,t,r,i,a){if(!n.isGroup){fme(t,null,a),fme(t,j1,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var h=n.getTextContent();if(o===!1)h&&n.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},h?h.clearStates():(h=Gae(o),n.setTextContent(h)),zae(null,h,e,o,null,r,i);for(var c=o&&o.style,f=0;f=h;d--){var v=e.childAt(d);HEt(e,v,i)}}}function HEt(n,e,t){e&&wU(e,H1(n).option,t)}function jEt(n){new f_(n.oldChildren,n.newChildren,dme,dme,n).add(vme).update(vme).remove(XEt).execute()}function dme(n,e){var t=n&&n.name;return t!=null?t:DEt+e}function vme(n,e){var t=this.context,r=n!=null?t.newChildren[n]:null,i=e!=null?t.oldChildren[e]:null;Uae(t.api,i,t.dataIndex,r,t.seriesModel,t.group)}function XEt(n){var e=this.context,t=e.oldChildren[n];t&&wU(t,H1(t).option,e.seriesModel)}function tBe(n){return n&&(n.pathData||n.d)}function YEt(n){return n&&(Fr(n,"pathData")||Fr(n,"d"))}function qEt(n){n.registerChartView(BEt),n.registerSeriesModel(dEt)}var jb=na(),pme=Sn,Xj=kr,ZEt=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,i){var a=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,t,r);var h=u.graphicKey;h!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=h;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Cn,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var f=Un(gme,t,c);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,t)}mme(s,t,!0),this._renderHandle(a)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),i=e.axis,a=i.type==="category",o=t.get("snap");if(!o&&!a)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=fae(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,i,a){},n.prototype.createPointerEl=function(e,t,r,i){var a=t.pointer;if(a){var o=jb(e).pointerEl=new x3[a.type](pme(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,r,i){if(t.label){var a=jb(e).labelEl=new la(pme(t.label));e.add(a),yme(a,i)}},n.prototype.updatePointerEl=function(e,t,r){var i=jb(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),r(i,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,i){var a=jb(e).labelEl;a&&(a.setStyle(t.label.style),r(a,{x:t.label.x,y:t.label.y}),yme(a,i))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=t.getModel("handle"),o=t.get("status");if(!a.get("show")||!o||o==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=_3(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){l_(u.event)},onmousedown:Xj(this._onHandleDragMove,this,0,0),drift:Xj(this._onHandleDragMove,this),ondragend:Xj(this._onHandleDragEnd,this)}),r.add(i)),mme(i,t,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Gt(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,UI(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){gme(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Yj(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(!!r){this._dragging=!0;var i=this.updateHandleTransform(Yj(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(Yj(i)),jb(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(!!e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(!!e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,i=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),dD(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function gme(n,e,t,r){rBe(jb(t).lastProp,r)||(jb(t).lastProp=r,e?ma(t,r,n):(t.stopAnimation(),t.attr(r)))}function rBe(n,e){if(dn(n)&&dn(e)){var t=!0;return te(e,function(r,i){t=t&&rBe(n[i],r)}),!!t}else return n===e}function yme(n,e){n[e.get(["label","show"])?"show":"hide"]()}function Yj(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function mme(n,e,t){var r=e.get("z"),i=e.get("zlevel");n&&n.traverse(function(a){a.type!=="group"&&(r!=null&&(a.z=r),i!=null&&(a.zlevel=i),a.silent=t)})}const $ae=ZEt;function Wae(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function nBe(n,e,t,r,i){var a=t.get("value"),o=iBe(a,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=kI(s.get("padding")||0),u=s.getFont(),h=v3(o,u),c=i.position,f=h.width+l[1]+l[3],d=h.height+l[0]+l[2],v=i.align;v==="right"&&(c[0]-=f),v==="center"&&(c[0]-=f/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=d),p==="middle"&&(c[1]-=d/2),KEt(c,f,d,r);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),n.label={x:c[0],y:c[1],style:is(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function KEt(n,e,t,r){var i=r.getWidth(),a=r.getHeight();n[0]=Math.min(n[0]+e,i)-e,n[1]=Math.min(n[1]+t,a)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function iBe(n,e,t,r,i){n=e.scale.parse(n);var a=e.scale.getLabel({value:n},{precision:i.precision}),o=i.formatter;if(o){var s={value:nae(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};te(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,c=u&&u.getDataParams(h);c&&s.seriesData.push(c)}),Or(o)?a=o.replace("{value}",a):rn(o)&&(a=o(s))}return a}function Hae(n,e,t){var r=Up();return j2(r,r,t.rotation),sm(r,r,t.position),u0([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function aBe(n,e,t,r,i,a){var o=d_.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),nBe(e,r,i,a,{position:Hae(r.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function jae(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function oBe(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function _me(n,e,t,r,i,a){return{cx:n,cy:e,r0:t,r,startAngle:i,endAngle:a,clockwise:!0}}var JEt=function(n){$e(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),h=xme(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var f=Wae(a),d=QEt[u](s,c,h);d.style=f,t.graphicKey=d.type,t.pointer=d}var v=kJ(l.model,i);aBe(r,t,v,i,a,o)},e.prototype.getHandleTransform=function(t,r,i){var a=kJ(r.axis.grid.model,r,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Hae(r.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=xme(s,o).getOtherAxis(o).getGlobalExtent(),h=o.dim==="x"?0:1,c=[t.x,t.y];c[h]+=r[h],c[h]=Math.min(l[1],c[h]),c[h]=Math.max(l[0],c[h]);var f=(u[1]+u[0])/2,d=[f,f];d[h]=c[h];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:d,tooltipOption:v[h]}},e}($ae);function xme(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var QEt={line:function(n,e,t){var r=jae([e,t[0]],[e,t[1]],Sme(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),i=t[1]-t[0];return{type:"Rect",shape:oBe([e-r/2,t[0]],[r,i],Sme(n))}}};function Sme(n){return n.dim==="x"?0:1}const e2t=JEt;var t2t=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},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}},e}(oa);const r2t=t2t;var P1=na(),n2t=te;function sBe(n,e,t){if(!sa.node){var r=e.getZr();P1(r).records||(P1(r).records={}),i2t(r,e);var i=P1(r).records[n]||(P1(r).records[n]={});i.handler=t}}function i2t(n,e){if(P1(n).initialized)return;P1(n).initialized=!0,t("click",Un(wme,"click")),t("mousemove",Un(wme,"mousemove")),t("globalout",o2t);function t(r,i){n.on(r,function(a){var o=s2t(e);n2t(P1(n).records,function(s){s&&i(s,a,o.dispatchAction)}),a2t(o.pendings,e)})}}function a2t(n,e){var t=n.showTip.length,r=n.hideTip.length,i;t?i=n.showTip[t-1]:r&&(i=n.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function o2t(n,e,t){n.handler("leave",null,t)}function wme(n,e,t,r){e.handler(n,t,r)}function s2t(n){var e={showTip:[],hideTip:[]},t=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function tQ(n,e){if(!sa.node){var t=e.getZr(),r=(P1(t).records||{})[n];r&&(P1(t).records[n]=null)}}var l2t=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var a=r.getComponent("tooltip"),o=t.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";sBe("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){tQ("axisPointer",r)},e.prototype.dispose=function(t,r){tQ("axisPointer",r)},e.type="axisPointer",e}(vl);const u2t=l2t;function lBe(n,e){var t=[],r=n.seriesIndex,i;if(r==null||!(i=e.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=YE(a,n);if(o==null||o<0||Gt(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),c=h.dim,f=u.dim,d=c==="x"||c==="radius"?1:0,v=a.mapDimension(f),p=[];p[d]=a.get(v,o),p[1-d]=a.get(a.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(a.getValues(Vt(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var bme=na();function h2t(n,e,t){var r=n.currTrigger,i=[n.x,n.y],a=n,o=n.dispatchAction||kr(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(!!s){DB(i)&&(i=lBe({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=DB(i),u=a.axesInfo,h=s.axesInfo,c=r==="leave"||DB(i),f={},d={},v={list:[],map:{}},p={showPointer:Un(f2t,d),showTooltip:Un(d2t,v)};te(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);te(s.coordSysAxesInfo[y],function(x,S){var w=x.axis,b=y2t(u,x);if(!c&&_&&(!u||b)){var E=b&&b.value;E==null&&!l&&(E=w.pointToData(i)),E!=null&&Eme(x,E,p,!1,f)}})});var g={};return te(h,function(m,y){var _=m.linkGroup;_&&!d[y]&&te(_.axesInfo,function(x,S){var w=d[S];if(x!==m&&w){var b=w.value;_.mapper&&(b=m.axis.scale.parse(_.mapper(b,Tme(x),Tme(m)))),g[m.key]=b}})}),te(g,function(m,y){Eme(h[y],m,p,!0,f)}),v2t(d,h,f),p2t(v,i,n,o),g2t(h,o,t),f}}function Eme(n,e,t,r,i){var a=n.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=c2t(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&Mt(i,s[0]),!r&&n.snap&&a.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function c2t(n,e){var t=e.axis,r=t.dim,i=n,a=[],o=Number.MAX_VALUE,s=-1;return te(e.seriesModels,function(l,u){var h=l.getData().mapDimensionsAll(r),c,f;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(h,n,t);f=d.dataIndices,c=d.nestestValue}else{if(f=l.getData().indicesOfNearest(h[0],n,t.type==="category"?.5:null),!f.length)return;c=l.getData().get(h[0],f[0])}if(!(c==null||!isFinite(c))){var v=n-c,p=Math.abs(v);p<=o&&((p=0&&s<0)&&(o=p,s=v,i=c,a.length=0),te(f,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function f2t(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function d2t(n,e,t,r){var i=t.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=_D(l),h=n.map[u];h||(h=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(h)),h.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function v2t(n,e,t){var r=t.axesInfo=[];te(e,function(i,a){var o=i.axisPointerModel.option,s=n[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function p2t(n,e,t,r){if(DB(e)||!n.list.length){r({type:"hideTip"});return}var i=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:n.list})}function g2t(n,e,t){var r=t.getZr(),i="axisPointerLastHighlights",a=bme(r)[i]||{},o=bme(r)[i]={};te(n,function(u,h){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&te(c.seriesDataIndices,function(f){var d=f.seriesIndex+" | "+f.dataIndex;o[d]=f})});var s=[],l=[];te(a,function(u,h){!o[h]&&l.push(u)}),te(o,function(u,h){!a[h]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function y2t(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function Tme(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function DB(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function R3(n){K2.registerAxisPointerClass("CartesianAxisPointer",e2t),n.registerComponentModel(r2t),n.registerComponentView(u2t),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Gt(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=imt(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},h2t)}function m2t(n){_i(D5e),_i(R3)}var _2t=function(n){$e(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),h=u.getExtent(),c=s.dataToCoord(r),f=a.get("type");if(f&&f!=="none"){var d=Wae(a),v=S2t[f](s,l,c,h);v.style=d,t.graphicKey=v.type,t.pointer=v}var p=a.get(["label","margin"]),g=x2t(r,i,a,l,p);nBe(t,i,a,o,g)},e}($ae);function x2t(n,e,t,r,i){var a=e.axis,o=a.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,h,c;if(a.dim==="radius"){var f=Up();j2(f,f,s),sm(f,f,[r.cx,r.cy]),u=u0([o,-i],f);var d=e.getModel("axisLabel").get("rotate")||0,v=d_.innerTextLayout(s,d*Math.PI/180,-1);h=v.textAlign,c=v.textVerticalAlign}else{var p=l[1];u=r.coordToPoint([p+i,o]);var g=r.cx,m=r.cy;h=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-m)/p<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:h,verticalAlign:c}}var S2t={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:jae(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var i=Math.max(1,n.getBandWidth()),a=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:_me(e.cx,e.cy,r[0],r[1],(-t-i/2)*a,(-t+i/2)*a)}:{type:"Sector",shape:_me(e.cx,e.cy,t-i/2,t+i/2,0,Math.PI*2)}}};const w2t=_2t;var b2t=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,i=this.ecModel;return i.eachComponent(t,function(a){a.getCoordSysModel()===this&&(r=a)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(oa);const E2t=b2t;var Xae=function(n){$e(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",uu).models[0]},e.type="polarAxis",e}(oa);gu(Xae,T3);var T2t=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(Xae),C2t=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(Xae),Yae=function(n){$e(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(D0);Yae.prototype.dataToRadius=D0.prototype.dataToCoord;Yae.prototype.radiusToData=D0.prototype.coordToData;const A2t=Yae;var M2t=na(),qae=function(n){$e(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),i=t.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),h=v3(s==null?"":s+"",r.getFont(),"center","top"),c=Math.max(h.height,7),f=c/u;isNaN(f)&&(f=1/0);var d=Math.max(0,Math.floor(f)),v=M2t(t.model),p=v.lastAutoInterval,g=v.lastTickCount;return p!=null&&g!=null&&Math.abs(p-d)<=1&&Math.abs(g-o)<=1&&p>d?d=p:(v.lastTickCount=o,v.lastAutoInterval=d),d},e}(D0);qae.prototype.dataToAngle=D0.prototype.dataToCoord;qae.prototype.angleToData=D0.prototype.coordToData;const I2t=qae;var uBe=["radius","angle"],L2t=function(){function n(e){this.dimensions=uBe,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new A2t,this._angleAxis=new I2t,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,i=this._radiusAxis;return r.scale.type===e&&t.push(r),i.scale.type===e&&t.push(i),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,h=us;)u+=h*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,i=Math.cos(r)*t+this.cx,a=-Math.sin(r)*t+this.cy;return[i,a]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var i=e.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,h=l*l+u*u-1e-4,c=this.r,f=this.r0;return h<=c*c&&h>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var i=Cme(t);return i===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var i=Cme(t);return i===this?this.pointToData(r):null},n}();function Cme(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const P2t=L2t;function O2t(n,e,t){var r=e.get("center"),i=t.getWidth(),a=t.getHeight();n.cx=xr(r[0],i),n.cy=xr(r[1],a);var o=n.getRadiusAxis(),s=Math.min(i,a)/2,l=e.get("radius");l==null?l=[0,"100%"]:Gt(l)||(l=[0,l]);var u=[xr(l[0],s),xr(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function R2t(n,e){var t=this,r=t.getAngleAxis(),i=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();te(SG(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),te(SG(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),vM(r.scale,r.model),vM(i.scale,i.model),r.type==="category"&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function D2t(n){return n.mainType==="angleAxis"}function Ame(n,e){if(n.type=e.get("type"),n.scale=vU(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),D2t(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var N2t={dimensions:uBe,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,i){var a=new P2t(i+"");a.update=R2t;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");Ame(o,l),Ame(s,u),O2t(a,r,e),t.push(a),r.coordinateSystem=a,a.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var i=r.getReferringComponents("polar",uu).models[0];r.coordinateSystem=i.coordinateSystem}}),t}};const k2t=N2t;var F2t=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function k4(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),i=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function F4(n){var e=n.getRadiusAxis();return e.inverse?0:1}function Mme(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var B2t=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var i=t.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=Vt(i.getViewLabels(),function(h){h=Sn(h);var c=i.scale,f=c.type==="ordinal"?c.getRawOrdinalNumber(h.tickValue):h.tickValue;return h.coord=i.dataToCoord(f),h});Mme(u),Mme(s),te(F2t,function(h){t.get([h,"show"])&&(!i.scale.isBlank()||h==="axisLine")&&G2t[h](this.group,t,a,s,l,o,u)},this)}},e.type="angleAxis",e}(K2),G2t={axisLine:function(n,e,t,r,i,a){var o=e.getModel(["axisLine","lineStyle"]),s=F4(t),l=s?0:1,u;a[l]===0?u=new cm({shape:{cx:t.cx,cy:t.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Zz({shape:{cx:t.cx,cy:t.cy,r:a[s],r0:a[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,r,i,a){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[F4(t)],u=Vt(r,function(h){return new zh({shape:k4(t,[l,l+s],h.coord)})});n.add(Cp(u,{style:sn(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,i,a){if(!!i.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[F4(t)],h=[],c=0;cm?"left":"right",x=Math.abs(g[1]-y)/p<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[v]){var S=s[v];dn(S)&&S.textStyle&&(d=new as(S.textStyle,l,l.ecModel))}var w=new la({silent:d_.isLabelSilent(e),style:is(d,{x:g[0],y:g[1],fill:d.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:x})});if(n.add(w),h){var b=d_.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=c.rawLabel,Bn(w).eventData=b}},this)},splitLine:function(n,e,t,r,i,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var h=[],c=0;c=0?"p":"n",I=b;S&&(r[h][A]||(r[h][A]={p:b,n:b}),I=r[h][A][M]);var R=void 0,k=void 0,D=void 0,G=void 0;if(v.dim==="radius"){var V=v.dataToCoord(C)-b,z=l.dataToCoord(A);Math.abs(V)=G})}}})}function Y2t(n){var e={};te(n,function(r,i){var a=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=cBe(o,s),u=s.getExtent(),h=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),c=e[l]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=c.stacks;e[l]=c;var d=hBe(r);f[d]||c.autoWidthCount++,f[d]=f[d]||{width:0,maxWidth:0};var v=xr(r.get("barWidth"),h),p=xr(r.get("barMaxWidth"),h),g=r.get("barGap"),m=r.get("barCategoryGap");v&&!f[d].width&&(v=Math.min(c.remainedWidth,v),f[d].width=v,c.remainedWidth-=v),p&&(f[d].maxWidth=p),g!=null&&(c.gap=g),m!=null&&(c.categoryGap=m)});var t={};return te(e,function(r,i){t[i]={};var a=r.stacks,o=r.bandWidth,s=xr(r.categoryGap,o),l=xr(r.gap,1),u=r.remainedWidth,h=r.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),te(a,function(p,g){var m=p.maxWidth;m&&m=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),i=[],a=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),i[a]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-a]=a===0?r.y+r.height/2:r.x+r.width/2,i},n.prototype.convertToPixel=function(e,t,r){var i=Ime(t);return i===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var i=Ime(t);return i===this?this.pointToData(r):null},n}();function Ime(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function sTt(n,e){var t=[];return n.eachComponent("singleAxis",function(r,i){var a=new oTt(r,n,e);a.name="single_"+i,a.resize(r,e),r.coordinateSystem=a,t.push(a)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var i=r.getReferringComponents("singleAxis",uu).models[0];r.coordinateSystem=i&&i.coordinateSystem}}),t}var lTt={create:sTt,dimensions:dBe};const uTt=lTt;var Lme=["x","y"],hTt=["width","height"],cTt=function(n){$e(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,a,o){var s=i.axis,l=s.coordinateSystem,u=Zj(l,1-kG(s)),h=l.dataToPoint(r)[0],c=a.get("type");if(c&&c!=="none"){var f=Wae(a),d=fTt[c](s,h,u);d.style=f,t.graphicKey=d.type,t.pointer=d}var v=rQ(i);aBe(r,t,v,i,a,o)},e.prototype.getHandleTransform=function(t,r,i){var a=rQ(r,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Hae(r.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,i,a){var o=i.axis,s=o.coordinateSystem,l=kG(o),u=Zj(s,l),h=[t.x,t.y];h[l]+=r[l],h[l]=Math.min(u[1],h[l]),h[l]=Math.max(u[0],h[l]);var c=Zj(s,1-l),f=(c[1]+c[0])/2,d=[f,f];return d[l]=h[l],{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},e}($ae),fTt={line:function(n,e,t){var r=jae([e,t[0]],[e,t[1]],kG(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=n.getBandWidth(),i=t[1]-t[0];return{type:"Rect",shape:oBe([e-r/2,t[0]],[r,i],kG(n))}}};function kG(n){return n.isHorizontal()?0:1}function Zj(n,e){var t=n.getRect();return[t[Lme[e]],t[Lme[e]]+t[hTt[e]]]}const dTt=cTt;var vTt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(vl);function pTt(n){_i(R3),K2.registerAxisPointerClass("SingleAxisPointer",dTt),n.registerComponentView(vTt),n.registerComponentView(nTt),n.registerComponentModel(qj),gM(n,"single",qj,qj.defaultOption),n.registerCoordinateSystem("single",uTt)}var gTt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,i){var a=FI(t);n.prototype.init.apply(this,arguments),Pme(t,a)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),Pme(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={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%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(oa);function Pme(n,e){var t=n.cellSize,r;Gt(t)?r=t:r=n.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var i=Vt([0,1],function(a){return bft(e,a)&&(r[a]="auto"),r[a]!=null&&r[a]!=="auto"});kS(n,e,{type:"box",ignoreSize:i})}const yTt=gTt;var mTt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var a=this.group;a.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,a),this._renderLines(t,s,l,a),this._renderYearText(t,s,l,a),this._renderMonthText(t,u,l,a),this._renderWeekText(t,u,s,l,a)},e.prototype._renderDayRect=function(t,r,i){for(var a=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=r.start.time;u<=r.end.time;u=a.getNextNDay(u,1).time){var h=a.dataToRect([u],!1).tl,c=new ta({shape:{x:h[0],y:h[1],width:s,height:l},cursor:"default",style:o});i.add(c)}},e.prototype._renderLines=function(t,r,i,a){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),h=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=r.start,f=0;c.time<=r.end.time;f++){v(c.formatedDate),f===0&&(c=s.getDateInfo(r.start.y+"-"+r.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=s.getDateInfo(d)}v(s.getNextNDay(r.end.time,1).formatedDate);function v(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(t,p,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,h,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,h,i),l,a)},e.prototype._getEdgesPoints=function(t,r,i){var a=[t[0].slice(),t[t.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-r/2,a[1][o]=a[1][o]+r/2,a},e.prototype._drawSplitline=function(t,r,i){var a=new Gd({z2:20,shape:{points:t},style:r});i.add(a)},e.prototype._getLinePointsOfOneWeek=function(t,r,i){for(var a=t.coordinateSystem,o=a.getDateInfo(r),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),h=a.dataToRect([u.time],!1);s[2*u.day]=h.tl,s[2*u.day+1]=h[i==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return Or(t)&&t?xft(t,r):rn(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,i,a,o){var s=r[0],l=r[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var h=0;return(a==="left"||a==="right")&&(h=Math.PI/2),{rotation:h,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,i,a){var o=t.getModel("yearLabel");if(!!o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],h=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,f=i==="horizontal"?0:1,d={top:[h,u[f][1]],bottom:[h,u[1-f][1]],left:[u[1-f][0],c],right:[u[f][0],c]},v=r.start.y;+r.end.y>+r.start.y&&(v=v+"-"+r.end.y);var p=o.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:v},m=this._formatterLabel(p,g),y=new la({z2:30,style:is(o,{text:m})});y.attr(this._yearTextPositionControl(y,d[l],i,l,s)),a.add(y)}},e.prototype._monthTextPositionControl=function(t,r,i,a,o){var s="left",l="top",u=t[0],h=t[1];return i==="horizontal"?(h=h+o,r&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),a==="start"&&(s="right")),{x:u,y:h,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,i,a){var o=t.getModel("monthLabel");if(!!o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),h=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||Or(s))&&(s&&(r=fJ(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,d=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=h==="center",p=0;p=i.start.time&&r.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var i=Math.floor(t[1].time/Kj)-Math.floor(t[0].time/Kj)+1,a=new Date(t[0].time),o=a.getDate(),s=t[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-t[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-t[1].time)*u>0;)i-=u,a.setDate(l-u);var h=Math.floor((i+t[0].day+6)/7),c=r?-h+1:h-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:h,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var i=this._getRangeInfo(r);if(e>i.weeks||e===0&&ti.lweek)return null;var a=(e-1)*7-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(i){var a=new n(i);r.push(a),i.coordinateSystem=a}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=r[i.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function Ome(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const STt=xTt;function wTt(n){n.registerComponentModel(yTt),n.registerComponentView(_Tt),n.registerCoordinateSystem("calendar",STt)}function bTt(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function Rme(n,e){var t;return te(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function ETt(n,e,t){var r=Mt({},t),i=n[e],a=t.$action||"merge";a==="merge"?i?(ii(i,r,!0),kS(i,r,{ignoreSize:!0}),Jke(t,i),B4(t,i),B4(t,i,"shape"),B4(t,i,"style"),B4(t,i,"extra"),t.clipPath=i.clipPath):n[e]=r:a==="replace"?n[e]=r:a==="remove"&&i&&(n[e]=null)}var vBe=["transition","enterFrom","leaveTo"],TTt=vBe.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function B4(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?vBe:TTt,i=0;i=0;h--){var c=i[h],f=Ru(c.id,null),d=f!=null?o.get(f):null;if(!!d){var v=d.parent,m=yp(v),y=v===a?{width:s,height:l}:{width:m.width,height:m.height},_={},x=oU(d,c,y,null,{hv:c.hv,boundingMode:c.bounding},_);if(!yp(d).isNew&&x){for(var S=c.transition,w={},b=0;b=0)?w[E]=T:d[E]=T}ma(d,w,t,0)}else d.attr(_)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(i){NB(i,yp(i).option,r,t._lastGraphicModel)}),this._elMap=$r()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(vl);function nQ(n){var e=Fr(Dme,n)?Dme[n]:Mie(n),t=new e({});return yp(t).type=n,t}function Nme(n,e,t,r){var i=nQ(t);return e.add(i),r.set(n,i),yp(i).id=n,yp(i).isNew=!0,i}function NB(n,e,t,r){var i=n&&n.parent;i&&(n.type==="group"&&n.traverse(function(a){NB(a,e,t,r)}),wU(n,e,r),t.removeKey(yp(n).id))}function kme(n,e,t,r){n.isGroup||te([["cursor",Vp.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(i){var a=i[0];Fr(e,a)?n[a]=ni(e[a],i[1]):n[a]==null&&(n[a]=i[1])}),te(Li(e),function(i){if(i.indexOf("on")===0){var a=e[i];n[i]=rn(a)?a:null}}),Fr(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function ITt(n){return n=Mt({},n),te(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Kke),function(e){delete n[e]}),n}function LTt(n,e,t){var r=Bn(n).eventData;!n.silent&&!n.ignore&&!r&&(r=Bn(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function PTt(n){n.registerComponentModel(ATt),n.registerComponentView(MTt),n.registerPreprocessor(function(e){var t=e.graphic;Gt(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var Fme=["x","y","radius","angle","single"],OTt=["cartesian2d","polar","singleAxis"];function RTt(n){var e=n.get("coordinateSystem");return gi(OTt,e)>=0}function iS(n){return n+"Axis"}function DTt(n,e){var t=$r(),r=[],i=$r();n.eachComponent({mainType:"dataZoom",query:e},function(h){i.get(h.uid)||s(h)});var a;do a=!1,n.eachComponent("dataZoom",o);while(a);function o(h){!i.get(h.uid)&&l(h)&&(s(h),a=!0)}function s(h){i.set(h.uid,!0),r.push(h),u(h)}function l(h){var c=!1;return h.eachTargetAxis(function(f,d){var v=t.get(f);v&&v[d]&&(c=!0)}),c}function u(h){h.eachTargetAxis(function(c,f){(t.get(c)||t.set(c,[]))[f]=!0})}return r}function pBe(n){var e=n.ecModel,t={infoList:[],infoMap:$r()};return n.eachTargetAxis(function(r,i){var a=e.getComponent(iS(r),i);if(!!a){var o=a.getCoordSysModel();if(!!o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(a)}}}),t}var Jj=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),NTt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,i){var a=Bme(t);this.settledOption=a,this.mergeDefaultAndTheme(t,i),this._doInit(a)},e.prototype.mergeOption=function(t){var r=Bme(t);ii(this.option,t,!0),ii(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;te([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(r[a[0]]=i[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=$r(),i=this._fillSpecifiedTargetAxis(r);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return te(Fme,function(i){var a=this.getReferringComponents(iS(i),Qut);if(!!a.specified){r=!0;var o=new Jj;te(a.models,function(s){o.add(s.componentIndex)}),t.set(i,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var i=this.ecModel,a=!0;if(a){var o=r==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(h){return h.get("orient",!0)===r}});l(s,"single")}function l(u,h){var c=u[0];if(!!c){var f=new Jj;if(f.add(c.componentIndex),t.set(h,f),a=!1,h==="x"||h==="y"){var d=c.getReferringComponents("grid",uu).models[0];d&&te(u,function(v){c.componentIndex!==v.componentIndex&&d===v.getReferringComponents("grid",uu).models[0]&&f.add(v.componentIndex)})}}}a&&te(Fme,function(u){if(!!a){var h=i.findComponents({mainType:iS(u),filter:function(f){return f.get("type",!0)==="category"}});if(h[0]){var c=new Jj;c.add(h[0].componentIndex),t.set(u,c),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,i=this.get("rangeMode");te([["start","startValue"],["end","endValue"]],function(a,o){var s=t[a[0]]!=null,l=t[a[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":i?r[o]=i[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,i){t==null&&(t=this.ecModel.getComponent(iS(r),i))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(i,a){te(i.indexList,function(o){t.call(r,a,o)})})},e.prototype.getAxisProxy=function(t,r){var i=this.getAxisModel(t,r);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[r])return this.ecModel.getComponent(iS(t),r)},e.prototype.setRawRange=function(t){var r=this.option,i=this.settledOption;te([["start","startValue"],["end","endValue"]],function(a){(t[a[0]]!=null||t[a[1]]!=null)&&(r[a[0]]=i[a[0]]=t[a[0]],r[a[1]]=i[a[1]]=t[a[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;te(["start","startValue","end","endValue"],function(i){r[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(_&&!x&&!S)return!0;_&&(g=!0),x&&(v=!0),S&&(p=!0)}return g&&v&&p})}else UC(h,function(d){if(a==="empty")l.setData(u=u.map(d,function(p){return s(p)?p:NaN}));else{var v={};v[d]=o,u.selectRange(v)}});UC(h,function(d){u.setApproximateExtent(o,d)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;UC(["min","max"],function(i){var a=t.get(i+"Span"),o=t.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=go(r[0]+o,r,[0,100],!0):a!=null&&(o=go(a,[0,100],r,!0)-r[0]),e[i+"Span"]=a,e[i+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(!!t){var i=T3e(r,[0,500]);i=Math.min(i,20);var a=e.axis.scale.rawExtentInfo;t[0]!==0&&a.setDeterminedMinMax("min",+r[0].toFixed(i)),t[1]!==100&&a.setDeterminedMinMax("max",+r[1].toFixed(i)),a.freeze()}},n}();function VTt(n,e,t){var r=[1/0,-1/0];UC(t,function(o){fgt(r,o.getData(),e)});var i=n.getAxisModel(),a=O4e(i.axis.scale,i,r).calculate();return[a.min,a.max]}const $Tt=UTt;var WTt={getTargetSeries:function(n){function e(i){n.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=n.getComponent(iS(o),s);i(o,s,l,a)})})}e(function(i,a,o,s){o.__dzAxisProxy=null});var t=[];e(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new $Tt(i,a,s,n),t.push(o.__dzAxisProxy))});var r=$r();return te(t,function(i){te(i.getTargetSeriesModels(),function(a){r.set(a.uid,a)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,i){t.getAxisProxy(r,i).reset(t)}),t.eachTargetAxis(function(r,i){t.getAxisProxy(r,i).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var i=r.getDataPercentWindow(),a=r.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const HTt=WTt;function jTt(n){n.registerAction("dataZoom",function(e,t){var r=DTt(t,e);te(r,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var zme=!1;function Kae(n){zme||(zme=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,HTt),jTt(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function XTt(n){n.registerComponentModel(FTt),n.registerComponentView(zTt),Kae(n)}var bp=function(){function n(){}return n}(),gBe={};function VC(n,e){gBe[n]=e}function yBe(n){return gBe[n]}var YTt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;te(this.option.feature,function(r,i){var a=yBe(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(t)),ii(r,a.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,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,position:"bottom"}},e}(oa);const qTt=YTt;function ZTt(n,e,t){var r=e.getBoxLayoutParams(),i=e.get("padding"),a={width:t.getWidth(),height:t.getHeight()},o=Uu(r,a,i);ME(e.get("orient"),n,e.get("itemGap"),o.width,o.height),oU(n,r,a,i)}function mBe(n,e){var t=kI(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new ta({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var KTt=function(n){$e(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,i,a){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},h=this._features||(this._features={}),c=[];te(u,function(v,p){c.push(p)}),new f_(this._featureNames||[],c).add(f).update(f).remove(Un(f,null)).execute(),this._featureNames=c;function f(v,p){var g=c[v],m=c[p],y=u[g],_=new as(y,t,t.ecModel),x;if(a&&a.newTitle!=null&&a.featureName===g&&(y.title=a.newTitle),g&&!m){if(JTt(g))x={onclick:_.option.onclick,featureName:g};else{var S=yBe(g);if(!S)return;x=new S}h[g]=x}else if(x=h[m],!x)return;x.uid=NI("toolbox-feature"),x.model=_,x.ecModel=r,x.api=i;var w=x instanceof bp;if(!g&&m){w&&x.dispose&&x.dispose(r,i);return}if(!_.get("show")||w&&x.unusable){w&&x.remove&&x.remove(r,i);return}d(_,x,g),_.setIconStatus=function(b,E){var T=this.option,C=this.iconPaths;T.iconStatus=T.iconStatus||{},T.iconStatus[b]=E,C[b]&&(E==="emphasis"?h_:c_)(C[b])},x instanceof bp&&x.render&&x.render(_,r,i,a)}function d(v,p,g){var m=v.getModel("iconStyle"),y=v.getModel(["emphasis","iconStyle"]),_=p instanceof bp&&p.getIcons?p.getIcons():v.get("icon"),x=v.get("title")||{},S,w;Or(_)?(S={},S[g]=_):S=_,Or(x)?(w={},w[g]=x):w=x;var b=v.iconPaths={};te(S,function(E,T){var C=_3(E,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(m.getItemStyle());var A=C.ensureState("emphasis");A.style=y.getItemStyle();var M=new la({style:{text:w[T],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});C.setTextContent(M),RI({el:C,componentModel:t,itemName:T,formatterParamsExtra:{title:w[T]}}),C.__title=w[T],C.on("mouseover",function(){var I=y.getItemStyle(),R=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";M.setStyle({fill:y.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),C.setTextConfig({position:y.get("textPosition")||R}),M.ignore=!t.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",T])!=="emphasis"&&i.leaveEmphasis(this),M.hide()}),(v.get(["iconStatus",T])==="emphasis"?h_:c_)(C),o.add(C),C.on("click",kr(p.onclick,p,r,i,T)),b[T]=C})}ZTt(o,t,i),o.add(mBe(o.getBoundingRect(),t)),l||o.eachChild(function(v){var p=v.__title,g=v.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=v.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!rn(_)&&p){var x=_.style||(_.style={}),S=v3(p,la.makeFont(x)),w=v.x+o.x,b=v.y+o.y+s,E=!1;b+S.height>i.getHeight()&&(m.position="top",E=!0);var T=E?-5-S.height:s+10;w+S.width/2>i.getWidth()?(m.position=["100%",T],x.align="right"):w-S.width/2<0&&(m.position=[0,T],x.align="left")}})},e.prototype.updateView=function(t,r,i,a){te(this._features,function(o){o instanceof bp&&o.updateView&&o.updateView(o.model,r,i,a)})},e.prototype.remove=function(t,r){te(this._features,function(i){i instanceof bp&&i.remove&&i.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){te(this._features,function(i){i instanceof bp&&i.dispose&&i.dispose(t,r)})},e.type="toolbox",e}(vl);function JTt(n){return n.indexOf("my")===0}const QTt=KTt;var eCt=function(n){$e(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var i=this.model,a=i.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=sa.browser;if(rn(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var h=document.createElement("a");h.download=a+"."+s,h.target="_blank",h.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});h.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),d=f[0].indexOf("base64")>-1,v=o?decodeURIComponent(f[1]):f[1];d&&(v=window.atob(v));var p=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=v.length,m=new Uint8Array(g);g--;)m[g]=v.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var x=_.contentWindow,S=x.document;S.open("image/svg+xml","replace"),S.write(v),S.close(),x.focus(),S.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var w=i.get("lang"),b='',E=window.open();E.document.write(b),E.document.title=a}},e.getDefaultOption=function(t){var r={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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(bp);const tCt=eCt;var Ume="__ec_magicType_stack__",rCt=[["line","bar"],["stack"]],nCt=function(n){$e(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),i={};return te(t.get("type"),function(a){r[a]&&(i[a]=r[a])}),i},e.getDefaultOption=function(t){var r={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:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,i){var a=this.model,o=a.get(["seriesIndex",i]);if(!!Vme[i]){var s={series:[]},l=function(c){var f=c.subType,d=c.id,v=Vme[i](f,d,c,a);v&&(sn(v,c.option),s.series.push(v));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",_=c.getReferringComponents(y,uu).models[0],x=_.componentIndex;s[y]=s[y]||[];for(var S=0;S<=x;S++)s[y][x]=s[y][x]||{};s[y][x].boundaryGap=i==="bar"}}};te(rCt,function(c){gi(c,i)>=0&&te(c,function(f){a.setIconStatus(f,"normal")})}),a.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,h=i;i==="stack"&&(u=ii({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(h="tiled")),r.dispatchAction({type:"changeMagicType",currentType:h,newOption:s,newTitle:u,featureName:"magicType"})}},e}(bp),Vme={line:function(n,e,t,r){if(n==="bar")return ii({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return ii({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var i=t.get("stack")===Ume;if(n==="line"||n==="bar")return r.setIconStatus("stack",i?"normal":"emphasis"),ii({id:e,stack:i?"":Ume},r.get(["option","stack"])||{},!0)}};Lm({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const iCt=nCt;var bU=new Array(60).join("-"),_M=" ";function aCt(n){var e={},t=[],r=[];return n.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else t.push(i)}else t.push(i)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function oCt(n){var e=[];return te(n,function(t,r){var i=t.categoryAxis,a=t.valueAxis,o=a.dim,s=[" "].concat(Vt(t.series,function(d){return d.name})),l=[i.model.getCategories()];te(t.series,function(d){var v=d.getRawData();l.push(d.getRawData().mapArray(v.mapDimension(o),function(p){return p}))});for(var u=[s.join(_M)],h=0;h=0)return!0}var iQ=new RegExp("["+_M+"]+","g");function hCt(n){for(var e=n.split(/\n+/g),t=FG(e.shift()).split(iQ),r=[],i=Vt(t,function(l){return{name:l,data:[]}}),a=0;a=0;a--){var o=t[a];if(o[i])break}if(a<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();t[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),t.push(e)}function yCt(n){var e=Jae(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return _Be(t,function(i,a){for(var o=e.length-1;o>=0;o--)if(i=e[o][a],i){r[a]=i;break}}),r}function mCt(n){xBe(n).snapshots=null}function _Ct(n){return Jae(n).length}function Jae(n){var e=xBe(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var xCt=function(n){$e(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){mCt(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={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:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(bp);Lm({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const SCt=xCt;var wCt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],bCt=function(){function n(e,t,r){var i=this;this._targetInfoList=[];var a=$me(t,e);te(ECt,function(o,s){(!r||!r.include||gi(r.include,s)>=0)&&o(a,i._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,i,a){if((r.coordRanges||(r.coordRanges=[])).push(i),!r.coordRange){r.coordRange=i;var o=Qj[r.brushType](0,a,i);r.__rangeOffset={offset:Xme[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){te(e,function(i){var a=this.findTargetInfo(i,t);a&&a!==!0&&te(a.coordSyses,function(o){var s=Qj[i.brushType](1,o,i.range,!0);r(i,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){te(e,function(r){var i=this.findTargetInfo(r,t);if(r.range=r.range||[],i&&i!==!0){r.panelId=i.panelId;var a=Qj[r.brushType](0,i.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?Xme[r.brushType](a.values,o.offset,TCt(a.xyMinMax,o.xyMinMax)):a.values}},this)},n.prototype.makePanelOpts=function(e,t){return Vt(this._targetInfoList,function(r){var i=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:A6e(i),isTargetByCursor:I6e(i,e,r.coordSysModel),getLinearBrushOtherExtent:M6e(i)}})},n.prototype.controlSeries=function(e,t,r){var i=this.findTargetInfo(e,r);return i===!0||i&&gi(i.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,i=$me(t,e),a=0;an[1]&&n.reverse(),n}function $me(n,e){return jO(n,e,{includeMainTypes:wCt})}var ECt={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,i=n.gridModels,a=$r(),o={},s={};!t&&!r&&!i||(te(t,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),te(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),te(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,h=[];te(u.getCartesians(),function(c,f){(gi(t,c.getAxis("x").model)>=0||gi(r,c.getAxis("y").model)>=0)&&h.push(c)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:h[0],coordSyses:h,getPanelRect:Hme.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){te(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:Hme.geo})})}},Wme=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,i=n.gridModel;return!i&&t&&(i=t.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],Hme={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(AE(n)),e}},Qj={lineX:Un(jme,0),lineY:Un(jme,1),rect:function(n,e,t,r){var i=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),a=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[aQ([i[0],a[0]]),aQ([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,r){var i=[[1/0,-1/0],[1/0,-1/0]],a=Vt(t,function(o){var s=n?e.pointToData(o,r):e.dataToPoint(o,r);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function jme(n,e,t,r){var i=t.getAxis(["x","y"][n]),a=aQ(Vt([0,1],function(s){return e?i.coordToData(i.toLocalCoord(r[s]),!0):i.toGlobalCoord(i.dataToCoord(r[s]))})),o=[];return o[n]=a,o[1-n]=[NaN,NaN],{values:a,xyMinMax:o}}var Xme={lineX:Un(Yme,0),lineY:Un(Yme,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return Vt(n,function(r,i){return[r[0]-t[0]*e[i][0],r[1]-t[1]*e[i][1]]})}};function Yme(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function TCt(n,e){var t=qme(n),r=qme(e),i=[t[0]/r[0],t[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function qme(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const Qae=bCt;var oQ=te,CCt=Yut("toolbox-dataZoom_"),ACt=function(n){$e(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,i,a){this._brushController||(this._brushController=new Rae(i.getZr()),this._brushController.on("brush",kr(this._onBrush,this)).mount()),LCt(t,r,this,a,i),ICt(t,r)},e.prototype.onclick=function(t,r,i){MCt[i].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new Qae(eoe(this.model),a,{include:["grid"]});o.matchOutputRanges(r,a,function(u,h,c){if(c.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",c,h[0]),s("y",c,h[1])):s({lineX:"x",lineY:"y"}[f],c,h)}}),gCt(a,i),this._dispatchZoomAction(i);function s(u,h,c){var f=h.getAxis(u),d=f.model,v=l(u,d,a),p=v.findRepresentativeAxisProxy(d).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(c=J2(0,c.slice(),f.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),v&&(i[v.id]={dataZoomId:v.id,startValue:c[0],endValue:c[1]})}function l(u,h,c){var f;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(d){var v=d.getAxisModel(u,h.componentIndex);v&&(f=d)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];oQ(t,function(i,a){r.push(Sn(i))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(bp),MCt={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(yCt(this.ecModel))}};function eoe(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function ICt(n,e){n.setIconStatus("back",_Ct(e)>1?"emphasis":"normal")}function LCt(n,e,t,r,i){var a=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(a=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=a,n.setIconStatus("zoom",a?"emphasis":"normal");var o=new Qae(eoe(n),e,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}Ift("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),i=[],a=eoe(r),o=jO(n,a);oQ(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),oQ(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,h){var c=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:CCt+u+c};f[h]=c,i.push(f)}return i});const PCt=ACt;function OCt(n){n.registerComponentModel(qTt),n.registerComponentView(QTt),VC("saveAsImage",tCt),VC("magicType",iCt),VC("dataView",pCt),VC("dataZoom",PCt),VC("restore",SCt),_i(XTt)}var RCt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(oa);const DCt=RCt;function SBe(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function wBe(n){if(!!sa.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var h=u*Math.PI/180,c=o+i,f=c*Math.abs(Math.cos(h))+c*Math.abs(Math.sin(h)),d=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-c)/2)*100)/100;s+=";"+a+":-"+d+"px";var v=e+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+r+";"];return'
'}function UCt(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,i="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,i+=sa.transformSupported?","+toe+r:",left"+r+",top"+r),FCt+":"+i}function Zme(n,e,t){var r=n.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!sa.transformSupported)return t?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var a=sa.transform3dSupported,o="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return t?"top:0;left:0;"+toe+":"+o+";":[["top",0],["left",0],[bBe,o]]}function VCt(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var i=n.get("textShadowColor"),a=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return i&&a&&e.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),te(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function $Ct(n,e,t){var r=[],i=n.get("transitionDuration"),a=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),h=n.getModel("textStyle"),c=PFe(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),e&&i&&r.push(UCt(i,t)),a&&r.push("background-color:"+a),te(["width","color","radius"],function(d){var v="border-"+d,p=qke(v),g=n.get(p);g!=null&&r.push(v+":"+g+(d==="color"?"":"px"))}),r.push(VCt(h)),c!=null&&r.push("padding:"+kI(c).join("px ")+"px"),r.join(";")+";"}function Kme(n,e,t,r,i){var a=e&&e.painter;if(t){var o=a&&a.getViewportRoot();o&&_lt(n,o,document.body,r,i)}else{n[0]=r,n[1]=i;var s=a&&a.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var WCt=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,sa.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=t.getZr(),o=this._appendToBody=r&&r.appendToBody;Kme(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,h=a.painter.getViewportRoot();lp(h,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=kCt(t,"position"),i=t.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative");var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,a=this._styleCoord;r.innerHTML?i.cssText=BCt+$Ct(e,!this._firstShow,this._longHide)+Zme(a[0],a[1],!0)+("border-color:"+KE(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Or(a)&&r.get("trigger")==="item"&&!SBe(r)&&(s=zCt(r,i,a)),Or(e))o.innerHTML=e+s;else if(e){o.innerHTML="",Gt(e)||(e=[e]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,i=this._api,a=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(t,r,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,i,a){if(!(a.from===this.uid||sa.node||!i.getDom())){var o=e1e(a,i);this._ticket="";var s=a.dataByCoordSys,l=QCt(a,r,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var h=YCt;h.x=a.x,h.y=a.y,h.update(),Bn(h).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:h},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,i,a))return;var c=lBe(a,r),f=c.point[0],d=c.point[1];f!=null&&d!=null&&this._tryShow({offsetX:f,offsetY:d,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(e1e(a,i))},e.prototype._manuallyAxisShowTip=function(t,r,i,a){var o=a.seriesIndex,s=a.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(!!u){var h=u.getData(),c=cP([h.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(t,r){var i=t.target,a=this._tooltipModel;if(!!a){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(i){this._lastDataByCoordSys=null;var s,l;aE(i,function(u){if(Bn(u).dataIndex!=null)return s=u,!0;if(Bn(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var i=t.get("showDelay");r=kr(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},e.prototype._showAxisTooltip=function(t,r){var i=this._ecModel,a=this._tooltipModel,o=[r.offsetX,r.offsetY],s=cP([r.tooltipOption],a),l=this._renderMode,u=[],h=ch("section",{blocks:[],noHeader:!0}),c=[],f=new BH;te(t,function(y){te(y.dataByAxis,function(_){var x=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!x||S==null)){var w=iBe(S,x.axis,i,_.seriesDataIndices,_.valueLabelOpt),b=ch("section",{header:w,noHeader:!Qg(w),sortBlocks:!0,blocks:[]});h.blocks.push(b),te(_.seriesDataIndices,function(E){var T=i.getSeriesByIndex(E.seriesIndex),C=E.dataIndexInside,A=T.getDataParams(C);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=nae(x.axis,{value:S}),A.axisValueLabel=w,A.marker=f.makeTooltipMarker("item",KE(A.color),l);var M=Gpe(T.formatTooltip(C,!0,null)),I=M.frag;if(I){var R=cP([T],a).get("valueFormatter");b.blocks.push(R?Mt({valueFormatter:R},I):I)}M.text&&c.push(M.text),u.push(A)}})}})}),h.blocks.reverse(),c.reverse();var d=r.position,v=s.get("order"),p=Hpe(h,f,l,v,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?` + +`:"
",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],d,null,f)})},e.prototype._showSeriesItemTooltip=function(t,r,i){var a=this._ecModel,o=Bn(r),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,h=o.dataIndex,c=o.dataType,f=u.getData(c),d=this._renderMode,v=t.positionDefault,p=cP([f.getItemModel(h),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(h,c),y=new BH;m.marker=y.makeTooltipMarker("item",KE(m.color),d);var _=Gpe(u.formatTooltip(h,!1,c)),x=p.get("order"),S=p.get("valueFormatter"),w=_.frag,b=w?Hpe(S?Mt({valueFormatter:S},w):w,y,d,x,a.get("useUTC"),p.get("textStyle")):_.text,E="item_"+u.name+"_"+h;this._showOrMove(p,function(){this._showTooltipContent(p,b,m,E,t.offsetX,t.offsetY,t.position,t.target,y)}),i({type:"showTip",dataIndexInside:h,dataIndex:f.getRawIndex(h),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,i){var a=Bn(r),o=a.tooltipConfig,s=o.option||{};if(Or(s)){var l=s;s={content:l,formatter:l}}var u=[s],h=this._ecModel.getComponent(a.componentMainType,a.componentIndex);h&&u.push(h),u.push({formatter:s.content});var c=t.positionDefault,f=cP(u,this._tooltipModel,c?{position:c}:null),d=f.get("content"),v=Math.random()+"",p=new BH;this._showOrMove(f,function(){var g=Sn(f.get("formatterParams")||{});this._showTooltipContent(f,d,g,v,t.offsetX,t.offsetY,t.position,r,p)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,i,a,o,s,l,u,h){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var d=r,v=this._getNearestPoint([o,s],i,t.get("trigger"),t.get("borderColor")),p=v.color;if(f)if(Or(f)){var g=t.ecModel.get("useUTC"),m=Gt(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=f,y&&(d=tU(m.axisValue,d,g)),d=Zke(d,i,!0)}else if(rn(f)){var _=kr(function(x,S){x===this._ticket&&(c.setContent(S,h,t,p,l),this._updatePosition(t,l,o,s,c,i,u))},this);this._ticket=a,d=f(i,a,_)}else d=f;c.setContent(d,h,t,p,l),c.show(t,p),this._updatePosition(t,l,o,s,c,i,u)}},e.prototype._getNearestPoint=function(t,r,i,a){if(i==="axis"||Gt(r))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Gt(r))return{color:a||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,i,a,o,s,l){var u=this._api.getWidth(),h=this._api.getHeight();r=r||t.get("position");var c=o.getSize(),f=t.get("align"),d=t.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),rn(r)&&(r=r([i,a],s,o.el,v,{viewSize:[u,h],contentSize:c.slice()})),Gt(r))i=xr(r[0],u),a=xr(r[1],h);else if(dn(r)){var p=r;p.width=c[0],p.height=c[1];var g=Uu(p,{width:u,height:h});i=g.x,a=g.y,f=null,d=null}else if(Or(r)&&l){var m=JCt(r,v,c,t.get("borderWidth"));i=m[0],a=m[1]}else{var m=ZCt(i,a,o,u,h,f?null:20,d?null:20);i=m[0],a=m[1]}if(f&&(i-=t1e(f)?c[0]/2:f==="right"?c[0]:0),d&&(a-=t1e(d)?c[1]/2:d==="bottom"?c[1]:0),SBe(t)){var m=KCt(i,a,o,u,h);i=m[0],a=m[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===t.length;return o&&te(i,function(s,l){var u=s.dataByAxis||[],h=t[l]||{},c=h.dataByAxis||[];o=o&&u.length===c.length,o&&te(u,function(f,d){var v=c[d]||{},p=f.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&f.value===v.value&&f.axisType===v.axisType&&f.axisId===v.axisId&&p.length===g.length,o&&te(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&te(f.seriesDataIndices,function(m){var y=m.seriesIndex,_=r[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){sa.node||!r.getDom()||(dD(this,"_updatePosition"),this._tooltipContent.dispose(),tQ("itemTooltip",r))},e.type="tooltip",e}(vl);function cP(n,e,t){var r=e.ecModel,i;t?(i=new as(t,r,r),i=new as(e.option,i,r)):i=e;for(var a=n.length-1;a>=0;a--){var o=n[a];o&&(o instanceof as&&(o=o.get("tooltip",!0)),Or(o)&&(o={formatter:o}),o&&(i=new as(o,i,r)))}return i}function e1e(n,e){return n.dispatchAction||kr(e.dispatchAction,e)}function ZCt(n,e,t,r,i,a,o){var s=t.getSize(),l=s[0],u=s[1];return a!=null&&(n+l+a+2>r?n-=l+a:n+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[n,e]}function KCt(n,e,t,r,i){var a=t.getSize(),o=a[0],s=a[1];return n=Math.min(n+o,r)-o,e=Math.min(e+s,i)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function JCt(n,e,t,r){var i=t[0],a=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,h=e.height;switch(n){case"inside":s=e.x+u/2-i/2,l=e.y+h/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+h+o;break;case"left":s=e.x-i-o,l=e.y+h/2-a/2;break;case"right":s=e.x+u+o,l=e.y+h/2-a/2}return[s,l]}function t1e(n){return n==="center"||n==="middle"}function QCt(n,e,t){var r=pie(n).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var a=p3(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!!o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var h=Bn(u).tooltipConfig;if(h&&h.name===n.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const eAt=qCt;function tAt(n){_i(R3),n.registerComponentModel(DCt),n.registerComponentView(eAt),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Hl),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Hl)}var rAt=["rect","polygon","keep","clear"];function nAt(n,e){var t=Do(n?n.brush:[]);if(!!t.length){var r=[];te(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var i=n&&n.toolbox;Gt(i)&&(i=i[0]),i||(i={feature:{}},n.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),iAt(s),e&&!s.length&&s.push.apply(s,rAt)}}function iAt(n){var e={};te(n,function(t){e[t]=1}),n.length=0,te(e,function(t,r){n.push(r)})}var r1e=te;function n1e(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function sQ(n,e,t){var r={};return r1e(e,function(a){var o=r[a]=i();r1e(n[a],function(s,l){if(!!fc.isValidType(l)){var u={type:l,visual:s};t&&t(u,a),o[l]=new fc(u),l==="opacity"&&(u=Sn(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new fc(u))}})}),r;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function TBe(n,e,t){var r;te(t,function(i){e.hasOwnProperty(i)&&n1e(e[i])&&(r=!0)}),r&&te(t,function(i){e.hasOwnProperty(i)&&n1e(e[i])?n[i]=Sn(e[i]):delete n[i]})}function aAt(n,e,t,r,i,a){var o={};te(n,function(c){var f=fc.prepareVisualTypes(e[c]);o[c]=f});var s;function l(c){return jie(t,s,c)}function u(c,f){UFe(t,s,c,f)}a==null?t.each(h):t.each([a],h);function h(c,f){s=a==null?c:f;var d=t.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var v=r.call(i,c),p=e[v],g=o[v],m=0,y=g.length;me[0][1]&&(e[0][1]=a[0]),a[1]e[1][1]&&(e[1][1]=a[1])}return e&&l1e(e)}};function l1e(n){return new ai(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var dAt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new Rae(r.getZr())).on("brush",kr(this._onBrush,this)).mount()},e.prototype.render=function(t,r,i,a){this.model=t,this._updateController(t,r,i,a)},e.prototype.updateTransform=function(t,r,i,a){CBe(r),this._updateController(t,r,i,a)},e.prototype.updateVisual=function(t,r,i,a){this.updateTransform(t,r,i,a)},e.prototype.updateView=function(t,r,i,a){this._updateController(t,r,i,a)},e.prototype._updateController=function(t,r,i,a){(!a||a.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,i=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Sn(i),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Sn(i),$from:r})},e.type="brush",e}(vl);const vAt=dAt;var pAt="#ddd",gAt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var i=this.option;!r&&TBe(i,t,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:pAt},a.hasOwnProperty("liftZ")||(a.liftZ=5)},e.prototype.setAreas=function(t){!t||(this.areas=Vt(t,function(r){return u1e(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=u1e(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(oa);function u1e(n,e){return ii({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new as(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const yAt=gAt;var mAt=["rect","polygon","lineX","lineY","keep","clear"],_At=function(n){$e(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,i){var a,o,s;r.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,te(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,i){this.render(t,r,i)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),i={};return te(t.get("type",!0),function(a){r[a]&&(i[a]=r[a])}),i},e.prototype.onclick=function(t,r,i){var a=this._brushType,o=this._brushMode;i==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:mAt.slice(),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.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(bp);const xAt=_At;function SAt(n){n.registerComponentView(vAt),n.registerComponentModel(yAt),n.registerPreprocessor(nAt),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,lAt),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Hl),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Hl),VC("brush",xAt)}var wAt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={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:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(oa),bAt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){if(this.group.removeAll(),!!t.get("show")){var a=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=ni(t.get("textBaseline"),t.get("textVerticalAlign")),h=new la({style:is(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=h.getBoundingRect(),f=t.get("subtext"),d=new la({style:is(s,{text:f,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);h.silent=!v&&!g,d.silent=!p&&!g,v&&h.on("click",function(){fG(v,"_"+t.get("target"))}),p&&d.on("click",function(){fG(p,"_"+t.get("subtarget"))}),Bn(h).eventData=Bn(d).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,a.add(h),f&&a.add(d);var m=a.getBoundingRect(),y=t.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Uu(y,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var x={align:l,verticalAlign:u};h.setStyle(x),d.setStyle(x),m=a.getBoundingRect();var S=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var b=new ta({shape:{x:m.x-S[3],y:m.y-S[0],width:m.width+S[1]+S[3],height:m.height+S[0]+S[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});a.add(b)}},e.type="title",e}(vl);function EAt(n){n.registerComponentModel(wAt),n.registerComponentView(bAt)}var TAt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,i){this.mergeDefaultAndTheme(t,i),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],i=t.axisType,a=this._names=[],o;i==="category"?(o=[],te(r,function(u,h){var c=Ru(LI(u),""),f;dn(u)?(f=Sn(u),f.value=h):f=h,o.push(f),a.push(c)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new Rf([{name:"value",type:s}],this);l.initData(o,a)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={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:[]},e}(oa);const h1e=TAt;var ABe=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=xw(h1e.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,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:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(h1e);gu(ABe,Uie.prototype);const CAt=ABe;var AAt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(vl);const MAt=AAt;var IAt=function(n){$e(e,n);function e(t,r,i,a){var o=n.call(this,t,r,i)||this;return o.type=a||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(D0);const LAt=IAt;var tX=Math.PI,c1e=na(),PAt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,i){if(this.model=t,this.api=i,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var a=this._layout(t,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,t);t.formatTooltip=function(u){var h=l.scale.getLabel({value:u});return ch("nameValue",{noName:!0,value:h})},te(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,t)},this),this._renderAxisLabel(a,s,l,t),this._position(a,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var i=t.get(["label","position"]),a=t.get("orient"),o=RAt(t,r),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:tX/2},c=a==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),d=f.get("show",!0),v=d?f.get("itemSize"):0,p=d?f.get("itemGap"):0,g=v+p,m=t.get(["label","rotate"])||0;m=m*tX/180;var y,_,x,S=f.get("position",!0),w=d&&f.get("showPlayBtn",!0),b=d&&f.get("showPrevBtn",!0),E=d&&f.get("showNextBtn",!0),T=0,C=c;S==="left"||S==="bottom"?(w&&(y=[0,0],T+=g),b&&(_=[T,0],T+=g),E&&(x=[C-v,0],C-=g)):(w&&(y=[C-v,0],C-=g),b&&(_=[0,0],T+=g),E&&(x=[C-v,0],C-=g));var A=[T,C];return t.get("inverse")&&A.reverse(),{viewRect:o,mainLength:c,orient:a,rotation:h[a],labelRotation:m,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[a],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[a],playPosition:y,prevBtnPosition:_,nextBtnPosition:x,axisExtent:A,controlSize:v,controlGap:p}},e.prototype._position=function(t,r){var i=this._mainGroup,a=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Up(),l=o.x,u=o.y+o.height;sm(s,s,[-l,-u]),j2(s,s,-tX/2),sm(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var h=y(o),c=y(i.getBoundingRect()),f=y(a.getBoundingRect()),d=[i.x,i.y],v=[a.x,a.y];v[0]=d[0]=h[0][0];var p=t.labelPosOpt;if(p==null||Or(p)){var g=p==="+"?0:1;_(d,c,h,1,g),_(v,f,h,1,1-g)}else{var g=p>=0?0:1;_(d,c,h,1,g),v[1]=d[1]+p}i.setPosition(d),a.setPosition(v),i.rotation=a.rotation=t.rotation,m(i),m(a);function m(x){x.originX=h[0][0]-x.x,x.originY=h[1][0]-x.y}function y(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function _(x,S,w,b,E){x[b]+=w[b][E]-S[b][E]}},e.prototype._createAxis=function(t,r){var i=r.getData(),a=r.get("axisType"),o=OAt(r,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new LAt("value",o,t.axisExtent,a);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new Cn;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,i,a){var o=i.getExtent();if(!!a.get(["lineStyle","show"])){var s=new zh({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Mt({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new zh({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:sn({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],te(l,function(u){var h=i.dataToCoord(u.value),c=s.getItemModel(u.value),f=c.getModel("itemStyle"),d=c.getModel(["emphasis","itemStyle"]),v=c.getModel(["progress","itemStyle"]),p={x:h,y:0,onclick:kr(o._changeTimeline,o,u.value)},g=f1e(c,f,r,p);g.ensureState("emphasis").style=d.getItemStyle(),g.ensureState("progress").style=v.getItemStyle(),CE(g);var m=Bn(g);c.get("tooltip")?(m.dataIndex=u.value,m.dataModel=a):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,r,i,a){var o=this,s=i.getLabelModel();if(!!s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],te(u,function(h){var c=h.tickValue,f=l.getItemModel(c),d=f.getModel("label"),v=f.getModel(["emphasis","label"]),p=f.getModel(["progress","label"]),g=i.dataToCoord(h.tickValue),m=new la({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:kr(o._changeTimeline,o,c),silent:!1,style:is(d,{text:h.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});m.ensureState("emphasis").style=is(v),m.ensureState("progress").style=is(p),r.add(m),CE(m),c1e(m).dataIndex=c,o._tickLabels.push(m)})}},e.prototype._renderControl=function(t,r,i,a){var o=t.controlSize,s=t.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),h=a.getPlayState(),c=a.get("inverse",!0);f(t.nextBtnPosition,"next",kr(this._changeTimeline,this,c?"-":"+")),f(t.prevBtnPosition,"prev",kr(this._changeTimeline,this,c?"+":"-")),f(t.playPosition,h?"stop":"play",kr(this._handlePlayClick,this,!h),!0);function f(d,v,p,g){if(!!d){var m=_0(ni(a.get(["controlStyle",v+"BtnSize"]),o),o),y=[0,-m/2,m,m],_=DAt(a,v+"Icon",y,{x:d[0],y:d[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,r.add(_),CE(_)}}},e.prototype._renderCurrentPointer=function(t,r,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,h={onCreate:function(c){c.draggable=!0,c.drift=kr(u._handlePointerDrag,u),c.ondragend=kr(u._handlePointerDragend,u),d1e(c,u._progressLine,s,i,a,!0)},onUpdate:function(c){d1e(c,u._progressLine,s,i,a)}};this._currentPointer=f1e(l,l,this._mainGroup,{},this._currentPointer,h)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var i=this._toAxisCoord(t)[0],a=this._axis,o=Op(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(f)),[o,c]}var rX={min:Un(U4,"min"),max:Un(U4,"max"),average:Un(U4,"average"),median:Un(U4,"median")};function CD(n,e){if(!!e){var t=n.getData(),r=n.coordinateSystem,i=r&&r.dimensions;if(!VAt(e)&&!Gt(e.coord)&&Gt(i)){var a=IBe(e,t,r,n);if(e=Sn(e),e.type&&rX[e.type]&&a.baseAxis&&a.valueAxis){var o=gi(i,a.baseAxis.dim),s=gi(i,a.valueAxis.dim),l=rX[e.type](t,a.baseDataDim,a.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!Gt(i))e.coord=[];else for(var u=e.coord,h=0;h<2;h++)rX[u[h]]&&(u[h]=noe(t,t.mapDimension(i[h]),u[h]));return e}}function IBe(n,e,t,r){var i={};return n.valueIndex!=null||n.valueDim!=null?(i.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,i.valueAxis=t.getAxis($At(r,i.valueDataDim)),i.baseAxis=t.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=t.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function $At(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function AD(n,e){return n&&n.containData&&e.coord&&!uQ(e)?n.containData(e.coord):!0}function WAt(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!uQ(e)&&!uQ(t)?n.containZone(e.coord,t.coord):!0}function LBe(n,e){return n?function(t,r,i,a){var o=a<2?t.coord&&t.coord[a]:t.value;return _S(o,e[a])}:function(t,r,i,a){return _S(t.value,e[a])}}function noe(n,e,t){if(t==="average"){var r=0,i=0;return n.each(e,function(a,o){isNaN(a)||(r+=a,i++)}),r/i}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var nX=na(),HAt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=$r()},e.prototype.render=function(t,r,i){var a=this,o=this.markerGroupMap;o.each(function(s){nX(s).keep=!1}),r.eachSeries(function(s){var l=US.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,r,i)}),o.each(function(s){!nX(s).keep&&a.group.remove(s.group)})},e.prototype.markKeep=function(t){nX(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var i=this;te(t,function(a){var o=US.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?nke(l):Sie(l))})}})},e.type="marker",e}(vl);const ioe=HAt;function p1e(n,e,t){var r=e.coordinateSystem;n.each(function(i){var a=n.getItemModel(i),o,s=xr(a.get("x"),t.getWidth()),l=xr(a.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(n.getValues(n.dimensions,i));else if(r){var u=n.get(r.dimensions[0],i),h=n.get(r.dimensions[1],i);o=r.dataToPoint([u,h])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),n.setItemLayout(i,o)})}var jAt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,i){r.eachSeries(function(a){var o=US.getMarkerModelFromSeries(a,"markPoint");o&&(p1e(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,i,a){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,h=u.get(s)||u.set(s,new A3),c=XAt(o,t,r);r.setData(c),p1e(r.getData(),t,a),c.each(function(f){var d=c.getItemModel(f),v=d.getShallow("symbol"),p=d.getShallow("symbolSize"),g=d.getShallow("symbolRotate"),m=d.getShallow("symbolOffset"),y=d.getShallow("symbolKeepAspect");if(rn(v)||rn(p)||rn(g)||rn(m)){var _=r.getRawValue(f),x=r.getDataParams(f);rn(v)&&(v=v(_,x)),rn(p)&&(p=p(_,x)),rn(g)&&(g=g(_,x)),rn(m)&&(m=m(_,x))}var S=d.getModel("itemStyle").getItemStyle(),w=w3(l,"color");S.fill||(S.fill=w),c.setItemVisual(f,{symbol:v,symbolSize:p,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:S})}),h.updateData(c),this.group.add(h.group),c.eachItemGraphicEl(function(f){f.traverse(function(d){Bn(d).dataModel=r})}),this.markKeep(h),h.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(ioe);function XAt(n,e,t){var r;n?r=Vt(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return Mt(Mt({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new Rf(r,t),a=Vt(t.get("data"),Un(CD,e));n&&(a=To(a,Un(AD,n)));var o=LBe(!!n,r);return i.initData(a,null,o),i}const YAt=jAt;function qAt(n){n.registerComponentModel(UAt),n.registerComponentView(YAt),n.registerPreprocessor(function(e){roe(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var ZAt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,i){return new e(t,r,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(US);const KAt=ZAt;var V4=na(),JAt=function(n,e,t,r){var i=n.getData(),a;if(Gt(r))a=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Gh(r.yAxis,r.xAxis);else{var u=IBe(r,i,e,n);s=u.valueAxis;var h=g4e(i,u.valueDataDim);l=noe(i,h,o)}var c=s.dim==="x"?0:1,f=1-c,d=Sn(r),v={coord:[]};d.type=null,d.coord=[],d.coord[f]=-1/0,v.coord[f]=1/0;var p=t.get("precision");p>=0&&ha(l)&&(l=+l.toFixed(Math.min(p,20))),d.coord[c]=v.coord[c]=l,a=[d,v,{type:o,valueIndex:r.valueIndex,value:l}]}else a=[]}var g=[CD(n,a[0]),CD(n,a[1]),Mt({},a[2])];return g[2].type=g[2].type||null,ii(g[2],g[0]),ii(g[2],g[1]),g};function BG(n){return!isNaN(n)&&!isFinite(n)}function g1e(n,e,t,r){var i=1-n,a=r.dimensions[n];return BG(e[i])&&BG(t[i])&&e[n]===t[n]&&r.getAxis(a).containData(e[n])}function QAt(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(g1e(1,t,r,n)||g1e(0,t,r,n)))return!0}return AD(n,e[0])&&AD(n,e[1])}function iX(n,e,t,r,i){var a=r.coordinateSystem,o=n.getItemModel(e),s,l=xr(o.get("x"),i.getWidth()),u=xr(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(n.getValues(n.dimensions,e));else{var h=a.dimensions,c=n.get(h[0],e),f=n.get(h[1],e);s=a.dataToPoint([c,f])}if(Z2(a,"cartesian2d")){var d=a.getAxis("x"),v=a.getAxis("y"),h=a.dimensions;BG(n.get(h[0],e))?s[0]=d.toGlobalCoord(d.getExtent()[t?0:1]):BG(n.get(h[1],e))&&(s[1]=v.toGlobalCoord(v.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var eMt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,i){r.eachSeries(function(a){var o=US.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=V4(o).from,u=V4(o).to;l.each(function(h){iX(l,h,!0,a,i),iX(u,h,!1,a,i)}),s.each(function(h){s.setItemLayout(h,[l.getItemLayout(h),u.getItemLayout(h)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,i,a){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,h=u.get(s)||u.set(s,new Aae);this.group.add(h.group);var c=tMt(o,t,r),f=c.from,d=c.to,v=c.line;V4(r).from=f,V4(r).to=d,r.setData(v);var p=r.get("symbol"),g=r.get("symbolSize"),m=r.get("symbolRotate"),y=r.get("symbolOffset");Gt(p)||(p=[p,p]),Gt(g)||(g=[g,g]),Gt(m)||(m=[m,m]),Gt(y)||(y=[y,y]),c.from.each(function(x){_(f,x,!0),_(d,x,!1)}),v.each(function(x){var S=v.getItemModel(x).getModel("lineStyle").getLineStyle();v.setItemLayout(x,[f.getItemLayout(x),d.getItemLayout(x)]),S.stroke==null&&(S.stroke=f.getItemVisual(x,"style").fill),v.setItemVisual(x,{fromSymbolKeepAspect:f.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(x,"symbolOffset"),fromSymbolRotate:f.getItemVisual(x,"symbolRotate"),fromSymbolSize:f.getItemVisual(x,"symbolSize"),fromSymbol:f.getItemVisual(x,"symbol"),toSymbolKeepAspect:d.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(x,"symbolOffset"),toSymbolRotate:d.getItemVisual(x,"symbolRotate"),toSymbolSize:d.getItemVisual(x,"symbolSize"),toSymbol:d.getItemVisual(x,"symbol"),style:S})}),h.updateData(v),c.line.eachItemGraphicEl(function(x){Bn(x).dataModel=r,x.traverse(function(S){Bn(S).dataModel=r})});function _(x,S,w){var b=x.getItemModel(S);iX(x,S,w,t,a);var E=b.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=w3(l,"color")),x.setItemVisual(S,{symbolKeepAspect:b.get("symbolKeepAspect"),symbolOffset:ni(b.get("symbolOffset",!0),y[w?0:1]),symbolRotate:ni(b.get("symbolRotate",!0),m[w?0:1]),symbolSize:ni(b.get("symbolSize"),g[w?0:1]),symbol:ni(b.get("symbol",!0),p[w?0:1]),style:E})}this.markKeep(h),h.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(ioe);function tMt(n,e,t){var r;n?r=Vt(n&&n.dimensions,function(u){var h=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return Mt(Mt({},h),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new Rf(r,t),a=new Rf(r,t),o=new Rf([],t),s=Vt(t.get("data"),Un(JAt,e,n,t));n&&(s=To(s,Un(QAt,n)));var l=LBe(!!n,r);return i.initData(Vt(s,function(u){return u[0]}),null,l),a.initData(Vt(s,function(u){return u[1]}),null,l),o.initData(Vt(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}const rMt=eMt;function nMt(n){n.registerComponentModel(KAt),n.registerComponentView(rMt),n.registerPreprocessor(function(e){roe(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var iMt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,i){return new e(t,r,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(US);const aMt=iMt;var $4=na(),oMt=function(n,e,t,r){var i=r[0],a=r[1];if(!(!i||!a)){var o=CD(n,i),s=CD(n,a),l=o.coord,u=s.coord;l[0]=Gh(l[0],-1/0),l[1]=Gh(l[1],-1/0),u[0]=Gh(u[0],1/0),u[1]=Gh(u[1],1/0);var h=nie([{},o,s]);return h.coord=[o.coord,s.coord],h.x0=o.x,h.y0=o.y,h.x1=s.x,h.y1=s.y,h}};function GG(n){return!isNaN(n)&&!isFinite(n)}function y1e(n,e,t,r){var i=1-n;return GG(e[i])&&GG(t[i])}function sMt(n,e){var t=e.coord[0],r=e.coord[1],i={coord:t,x:e.x0,y:e.y0},a={coord:r,x:e.x1,y:e.y1};return Z2(n,"cartesian2d")?t&&r&&(y1e(1,t,r)||y1e(0,t,r))?!0:WAt(n,i,a):AD(n,i)||AD(n,a)}function m1e(n,e,t,r,i){var a=r.coordinateSystem,o=n.getItemModel(e),s,l=xr(o.get(t[0]),i.getWidth()),u=xr(o.get(t[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var h=n.getValues(["x0","y0"],e),c=n.getValues(["x1","y1"],e),f=a.clampData(h),d=a.clampData(c),v=[];t[0]==="x0"?v[0]=f[0]>d[0]?c[0]:h[0]:v[0]=f[0]>d[0]?h[0]:c[0],t[1]==="y0"?v[1]=f[1]>d[1]?c[1]:h[1]:v[1]=f[1]>d[1]?h[1]:c[1],s=r.getMarkerPosition(v,t,!0)}else{var p=n.get(t[0],e),g=n.get(t[1],e),m=[p,g];a.clampData&&a.clampData(m,m),s=a.dataToPoint(m,!0)}if(Z2(a,"cartesian2d")){var y=a.getAxis("x"),_=a.getAxis("y"),p=n.get(t[0],e),g=n.get(t[1],e);GG(p)?s[0]=y.toGlobalCoord(y.getExtent()[t[0]==="x0"?0:1]):GG(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var _1e=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],lMt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,i){r.eachSeries(function(a){var o=US.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Vt(_1e,function(c){return m1e(s,l,c,a,i)});s.setItemLayout(l,u);var h=s.getItemGraphicEl(l);h.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,i,a){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,h=u.get(s)||u.set(s,{group:new Cn});this.group.add(h.group),this.markKeep(h);var c=uMt(o,t,r);r.setData(c),c.each(function(f){var d=Vt(_1e,function(E){return m1e(c,f,E,t,a)}),v=o.getAxis("x").scale,p=o.getAxis("y").scale,g=v.getExtent(),m=p.getExtent(),y=[v.parse(c.get("x0",f)),v.parse(c.get("x1",f))],_=[p.parse(c.get("y0",f)),p.parse(c.get("y1",f))];Op(y),Op(_);var x=!(g[0]>y[1]||g[1]_[1]||m[1]<_[0]),S=!x;c.setItemLayout(f,{points:d,allClipped:S});var w=c.getItemModel(f).getModel("itemStyle").getItemStyle(),b=w3(l,"color");w.fill||(w.fill=b,Or(w.fill)&&(w.fill=Q8(w.fill,.4))),w.stroke||(w.stroke=b),c.setItemVisual(f,"style",w)}),c.diff($4(h).data).add(function(f){var d=c.getItemLayout(f);if(!d.allClipped){var v=new bd({shape:{points:d.points}});c.setItemGraphicEl(f,v),h.group.add(v)}}).update(function(f,d){var v=$4(h).data.getItemGraphicEl(d),p=c.getItemLayout(f);p.allClipped?v&&h.group.remove(v):(v?ma(v,{shape:{points:p.points}},r,f):v=new bd({shape:{points:p.points}}),c.setItemGraphicEl(f,v),h.group.add(v))}).remove(function(f){var d=$4(h).data.getItemGraphicEl(f);h.group.remove(d)}).execute(),c.eachItemGraphicEl(function(f,d){var v=c.getItemModel(d),p=c.getItemVisual(d,"style");f.useStyle(c.getItemVisual(d,"style")),vc(f,hh(v),{labelFetcher:r,labelDataIndex:d,defaultText:c.getName(d)||"",inheritColor:Or(p.fill)?Q8(p.fill,1):"#000"}),dc(f,v),dl(f,null,null,v.get(["emphasis","disabled"])),Bn(f).dataModel=r}),$4(h).data=c,h.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(ioe);function uMt(n,e,t){var r,i,a=["x0","y0","x1","y1"];if(n){var o=Vt(n&&n.dimensions,function(u){var h=e.getData(),c=h.getDimensionInfo(h.mapDimension(u))||{};return Mt(Mt({},c),{name:u,ordinalMeta:null})});i=Vt(a,function(u,h){return{name:u,type:o[h%2].type}}),r=new Rf(i,t)}else i=[{name:"value",type:"float"}],r=new Rf(i,t);var s=Vt(t.get("data"),Un(oMt,e,n,t));n&&(s=To(s,Un(sMt,n)));var l=n?function(u,h,c,f){var d=u.coord[Math.floor(f/2)][f%2];return _S(d,i[f])}:function(u,h,c,f){return _S(u.value,i[f])};return r.initData(s,null,l),r.hasItemOption=!0,r}const hMt=lMt;function cMt(n){n.registerComponentModel(aMt),n.registerComponentView(hMt),n.registerPreprocessor(function(e){roe(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var fMt=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},dMt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,i=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),Gt(r)&&te(r,function(a,o){Or(a)&&(a={type:a}),r[o]=ii(a,fMt(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={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,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},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}},e}(oa);const hQ=dMt;var nC=Un,cQ=te,W4=Cn,vMt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new W4),this.group.add(this._selectorGroup=new W4),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,i,l,s,u);var h=t.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},f=t.get("padding"),d=Uu(h,c,f),v=this.layoutInner(t,o,d,a,l,u),p=Uu(sn({width:v.width,height:v.height},h),c,f);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=mBe(v,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,i,a,o,s,l){var u=this.getContentGroup(),h=$r(),c=r.get("selectedMode"),f=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&f.push(d.id)}),cQ(r.getData(),function(d,v){var p=d.get("name");if(!this.newlineDisabled&&(p===""||p===` +`)){var g=new W4;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!h.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},x=y.getVisual("legendIcon"),S=y.getVisual("style"),w=this._createItem(m,p,v,d,r,t,_,S,x,c,a);w.on("click",nC(x1e,p,null,a,f)).on("mouseover",nC(fQ,m.name,null,a,f)).on("mouseout",nC(dQ,m.name,null,a,f)),h.set(p,!0)}else i.eachRawSeries(function(b){if(!h.get(p)&&b.legendVisualProvider){var E=b.legendVisualProvider;if(!E.containName(p))return;var T=E.indexOfName(p),C=E.getItemVisual(T,"style"),A=E.getItemVisual(T,"legendIcon"),M=gv(C.fill);M&&M[3]===0&&(M[3]=.2,C=Mt(Mt({},C),{fill:W1(M,"rgba")}));var I=this._createItem(b,p,v,d,r,t,{},C,A,c,a);I.on("click",nC(x1e,null,p,a,f)).on("mouseover",nC(fQ,null,p,a,f)).on("mouseout",nC(dQ,null,p,a,f)),h.set(p,!0)}},this)},this),o&&this._createSelector(o,r,a,s,l)},e.prototype._createSelector=function(t,r,i,a,o){var s=this.getSelectorGroup();cQ(t,function(u){var h=u.type,c=new la({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:h==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var f=r.getModel("selectorLabel"),d=r.getModel(["emphasis","selectorLabel"]);vc(c,{normal:f,emphasis:d},{defaultText:u.title}),CE(c)})},e.prototype._createItem=function(t,r,i,a,o,s,l,u,h,c,f){var d=t.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(r),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");h=_||h||"roundRect";var x=pMt(h,a,l,u,d,g,f),S=new W4,w=a.getModel("textStyle");if(rn(t.getLegendIcon)&&(!_||_==="inherit"))S.add(t.getLegendIcon({itemWidth:v,itemHeight:p,icon:h,iconRotate:m,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var b=_==="inherit"&&t.getData().getVisual("symbol")?m==="inherit"?t.getData().getVisual("symbolRotate"):m:0;S.add(gMt({itemWidth:v,itemHeight:p,icon:h,iconRotate:b,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var E=s==="left"?v+5:-5,T=s,C=o.get("formatter"),A=r;Or(C)&&C?A=C.replace("{name}",r!=null?r:""):rn(C)&&(A=C(r));var M=g?w.getTextColor():a.get("inactiveColor");S.add(new la({style:is(w,{text:A,x:E,y:p/2,fill:M,align:T,verticalAlign:"middle"},{inheritColor:M})}));var I=new ta({shape:S.getBoundingRect(),invisible:!0}),R=a.getModel("tooltip");return R.get("show")&&RI({el:I,componentModel:o,itemName:r,itemTooltipOption:R.option}),S.add(I),S.eachChild(function(k){k.silent=!0}),I.silent=!c,this.getContentGroup().add(S),CE(S),S.__legendDataIndex=i,S},e.prototype.layoutInner=function(t,r,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ME(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var h=l.getBoundingRect(),c=[-h.x,-h.y];if(u.markRedraw(),l.markRedraw(),o){ME("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),d=[-f.x,-f.y],v=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?d[p]+=h[g]+v:c[p]+=f[g]+v,d[1-p]+=h[m]/2-f[m]/2,u.x=d[0],u.y=d[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=h[g]+v+f[g],_[m]=Math.max(h[m],f[m]),_[y]=Math.min(0,f[y]+d[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(vl);function pMt(n,e,t,r,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),cQ(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=n.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?r.decal:dM(c,o),u.fill==="inherit"&&(u.fill=r[i]),u.stroke==="inherit"&&(u.stroke=r[h]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?r:t).opacity),s(u,r);var f=e.getModel("lineStyle"),d=f.getLineStyle();if(s(d,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),d.stroke==="auto"&&(d.stroke=r.fill),!a){var v=e.get("inactiveBorderWidth"),p=u[h];u.lineWidth=v==="auto"?r.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=f.get("inactiveColor"),d.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function gMt(n){var e=n.icon||"roundRect",t=hu(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function x1e(n,e,t,r){dQ(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n!=null?n:e}),fQ(n,e,t,r)}function PBe(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,i=e.length;ri[o],g=[-d.x,-d.y];r||(g[a]=h[u]);var m=[0,0],y=[-v.x,-v.y],_=ni(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var x=t.get("pageButtonPosition",!0);x==="end"?y[a]+=i[o]-v[o]:m[a]+=v[o]+_}y[1-a]+=d[s]/2-v[s]/2,h.setPosition(g),c.setPosition(m),f.setPosition(y);var S={x:0,y:0};if(S[o]=p?i[o]:d[o],S[s]=Math.max(d[s],v[s]),S[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-v[o]-_,0),w[s]=S[s],c.setClipPath(new ta({shape:w})),c.__rectSize=w[o]}else f.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(t);return b.pageIndex!=null&&ma(h,{x:b.contentPosition[0],y:b.contentPosition[1]},p?t:null),this._updatePageInfoView(t,b),S},e.prototype._pageGo=function(t,r,i){var a=this._getPageInfo(r)[t];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var i=this._controllerGroup;te(["pagePrev","pageNext"],function(h){var c=h+"DataIndex",f=r[c]!=null,d=i.childOfName(h);d&&(d.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),d.cursor=f?"pointer":"default")});var a=i.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;a&&o&&a.setStyle("text",Or(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=t.getOrient().index,s=aX[o],l=oX[o],u=this._findTargetItemIndex(r),h=i.children(),c=h[u],f=h.length,d=f?1:0,v={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var p=x(c);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=f;++g)_=x(h[g]),(!_&&y.e>m.s+a||_&&!S(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=x(h[g]),(!_||!S(y,_.s))&&m.i=b&&w.s<=b+a}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===t&&(r=s)}),r!=null?r:a},e.type="legend.scroll",e}(OBe);const wMt=SMt;function bMt(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(r)})})}function EMt(n){_i(RBe),n.registerComponentModel(xMt),n.registerComponentView(wMt),bMt(n)}function TMt(n){_i(RBe),_i(EMt)}var CMt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=xw(TD.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(TD);const AMt=CMt;var aoe=na();function MMt(n,e,t){aoe(n).coordSysRecordMap.each(function(r){var i=r.dataZoomInfoMap.get(e.uid);i&&(i.getRange=t)})}function IMt(n,e){for(var t=aoe(n).coordSysRecordMap,r=t.keys(),i=0;ir[t+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function DMt(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=aoe(t),i=r.coordSysRecordMap||(r.coordSysRecordMap=$r());i.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=pBe(a);te(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,LMt(t,s.model)),h=u.dataZoomInfoMap||(u.dataZoomInfoMap=$r());h.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){DBe(i,a);return}var h=RMt(l);o.enable(h.controlType,h.opt),o.setPointerChecker(a.containsPoint),UI(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var NMt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,i){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),MMt(i,t,{pan:kr(sX.pan,this),zoom:kr(sX.zoom,this),scrollMove:kr(sX.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){IMt(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Zae),sX={zoom:function(n,e,t,r){var i=this.range,a=i.slice(),o=n.axisModels[0];if(!!o){var s=lX[e](null,[r.originX,r.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/r.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(J2(0,a,[0,100],0,h.minSpan,h.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:b1e(function(n,e,t,r,i,a){var o=lX[r]([a.oldX,a.oldY],[a.newX,a.newY],e,i,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:b1e(function(n,e,t,r,i,a){var o=lX[r]([0,0],[a.scrollDelta,a.scrollDelta],e,i,t);return o.signal*(n[1]-n[0])*a.scrollDelta})};function b1e(n){return function(e,t,r,i){var a=this.range,o=a.slice(),s=e.axisModels[0];if(!!s){var l=n(o,s,e,t,r,i);if(J2(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var lX={grid:function(n,e,t,r,i){var a=t.axis,o={},s=i.model.coordinateSystem.getRect();return n=n||[0,0],a.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(n,e,t,r,i){var a=t.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(n,e,t,r,i){var a=t.axis,o=i.model.coordinateSystem.getRect(),s={};return n=n||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const kMt=NMt;function NBe(n){Kae(n),n.registerComponentModel(AMt),n.registerComponentView(kMt),DMt(n)}var FMt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=xw(TD.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(TD);const BMt=FMt;var vP=ta,E1e=7,GMt=1,uX=30,zMt=7,pP="horizontal",T1e="vertical",UMt=5,VMt=["line","bar","candlestick","scatter"],$Mt={easing:"cubicOut",duration:100,delay:0},WMt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=kr(this._onBrush,this),this._onBrushEnd=kr(this._onBrushEnd,this)},e.prototype.render=function(t,r,i,a){if(n.prototype.render.apply(this,arguments),UI(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){dD(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Cn;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,i=t.get("brushSelect"),a=i?zMt:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===pP?{right:s.width-o.x-o.width,top:s.height-uX-E1e-a,width:o.width,height:uX}:{right:E1e,top:o.y,width:uX,height:o.height},u=FI(t.option);te(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var h=Uu(u,s);this._location={x:h.x,y:h.y},this._size=[h.width,h.height],this._orient===T1e&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===pP&&!o?{scaleY:l?1:-1,scaleX:1}:i===pP&&o?{scaleY:l?1:-1,scaleX:-1}:i===T1e&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,i=this._displayables.sliderGroup,a=t.get("brushSelect");i.add(new vP({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new vP({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:kr(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,i=this._shadowSize||[],a=t.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,h=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==i[0]||r[1]!==i[1]){var c=o.getDataExtent(l),f=(c[1]-c[0])*.3;c=[c[0]-f,c[1]+f];var d=[0,r[1]],v=[0,r[0]],p=[[r[0],0],[0,0]],g=[],m=v[1]/(o.count()-1),y=0,_=Math.round(o.count()/r[0]),x;o.each([l],function(T,C){if(_>0&&C%_){y+=m;return}var A=T==null||isNaN(T)||T==="",M=A?0:go(T,c,d,!0);A&&!x&&C?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!A&&x&&(p.push([y,0]),g.push([y,0])),p.push([y,M]),g.push([y,M]),y+=m,x=A}),u=this._shadowPolygonPts=p,h=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var S=this.dataZoomModel;function w(T){var C=S.getModel(T?"selectedDataBackground":"dataBackground"),A=new Cn,M=new bd({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new Gd({shape:{points:h},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(M),A.add(I),A}for(var b=0;b<3;b++){var E=w(b===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var i,a=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();te(l,function(u){if(!i&&!(r!==!0&&gi(VMt,u.get("type"))<0)){var h=a.getComponent(iS(o),s).axis,c=HMt(o),f,d=u.coordinateSystem;c!=null&&d.getOtherAxis&&(f=d.getOtherAxis(h).inverse),c=u.getData().mapDimension(c),i={thisAxis:h,series:u,thisDim:o,otherDim:c,otherAxisInverse:f}}},this)},this),i}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,i=r.handles=[null,null],a=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,h=l.get("borderRadius")||0,c=l.get("brushSelect"),f=r.filler=new vP({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new vP({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:h},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:GMt,fill:"rgba(0,0,0,0)"}})),te([0,1],function(_){var x=l.get("handleIcon");!pG[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var S=hu(x,-1,0,2,2,null,!0);S.attr({cursor:C1e(this._orient),draggable:!0,drift:kr(this._onDragMove,this,_),ondragend:kr(this._onDragEnd,this),onmouseover:kr(this._showDataInfo,this,!0),onmouseout:kr(this._showDataInfo,this,!1),z2:5});var w=S.getBoundingRect(),b=l.get("handleSize");this._handleHeight=xr(b,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,S.setStyle(l.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),CE(S);var E=l.get("handleColor");E!=null&&(S.style.fill=E),o.add(i[_]=S);var T=l.getModel("textStyle");t.add(a[_]=new la({silent:!0,invisible:!0,style:is(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var d=f;if(c){var v=xr(l.get("moveHandleSize"),s[1]),p=r.moveHandle=new ta({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),g=v*.8,m=r.moveHandleIcon=hu(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+v/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(v,10));d=r.moveZone=new ta({invisible:!0,shape:{y:s[1]-y,height:v+y}}),d.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(m),o.add(d)}d.attr({draggable:!0,cursor:C1e(this._orient),drift:kr(this._onDragMove,this,"all"),ondragstart:kr(this._showDataInfo,this,!0),ondragend:kr(this._onDragEnd,this),onmouseover:kr(this._showDataInfo,this,!0),onmouseout:kr(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[go(t[0],[0,100],r,!0),go(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];J2(r,a,o,i.get("zoomLock")?"all":t,s.minSpan!=null?go(s.minSpan,l,o,!0):null,s.maxSpan!=null?go(s.maxSpan,l,o,!0):null);var u=this._range,h=this._range=Op([go(a[0],o,l,!0),go(a[1],o,l,!0)]);return!u||u[0]!==h[0]||u[1]!==h[1]},e.prototype._updateView=function(t){var r=this._displayables,i=this._handleEnds,a=Op(i.slice()),o=this._size;te([0,1],function(d){var v=r.handles[d],p=this._handleHeight;v.attr({scaleX:p/2,scaleY:p/2,x:i[d]+(d?-1:1),y:o[1]/2-p/2})},this),r.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,a[0],a[1],o[0]],h=0;hr[0]||i[1]<0||i[1]>r[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,i=t.offsetY;this._brushStart=new qn(r,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(!!this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var i=r.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Op([go(i.x,o,s,!0),go(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(l_(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new vP({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),h=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:h[0],y:0,width:u[0]-h[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?$Mt:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=pBe(this.dataZoomModel).infoList;if(!t&&r.length){var i=r[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var a=this.api.getWidth(),o=this.api.getHeight();t={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(Zae);function HMt(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function C1e(n){return n==="vertical"?"ns-resize":"ew-resize"}const jMt=WMt;function kBe(n){n.registerComponentModel(BMt),n.registerComponentView(jMt),Kae(n)}function XMt(n){_i(NBe),_i(kBe)}var YMt={get:function(n,e,t){var r=Sn((qMt[n]||{})[e]);return t&&Gt(r)?r[r.length-1]:r}},qMt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const FBe=YMt;var A1e=fc.mapVisual,ZMt=fc.eachVisual,KMt=Gt,M1e=te,JMt=Op,QMt=go,eIt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,r){var i=this.option;!r&&TBe(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=kr(t,this),this.controllerVisuals=sQ(this.option.controller,r,t),this.targetVisuals=sQ(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(i,a){r.push(a)}):r=Do(t),r},e.prototype.eachTargetSeries=function(t,r){te(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&t.call(r,a)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(i){i===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],Gt(t)&&(t=t.slice(),u=!0);var h=r?t:u?[c(t[0]),c(t[1])]:c(t);if(Or(l))return l.replace("{value}",u?h[0]:h).replace("{value2}",u?h[1]:h);if(rn(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?i[0]+" "+h[1]:t[1]===s[1]?i[1]+" "+h[0]:h[0]+" - "+h[1];return h;function c(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=JMt([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var i=t.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,i={inRange:r.inRange,outOfRange:r.outOfRange},a=r.target||(r.target={}),o=r.controller||(r.controller={});ii(a,i),ii(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),h.call(this,o);function l(c){KMt(r.color)&&!c.inRange&&(c.inRange={color:r.color.slice().reverse()}),c.inRange=c.inRange||{color:t.get("gradientColor")}}function u(c,f,d){var v=c[f],p=c[d];v&&!p&&(p=c[d]={},M1e(v,function(g,m){if(!!fc.isValidType(m)){var y=FBe.get(m,"inactive",s);y!=null&&(p[m]=y,m==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function h(c){var f=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,d=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";M1e(this.stateList,function(m){var y=this.itemSize,_=c[m];_||(_=c[m]={color:s?v:[v]}),_.symbol==null&&(_.symbol=f&&Sn(f)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=d&&Sn(d)||(s?y[0]:[y[0],y[0]])),_.symbol=A1e(_.symbol,function(w){return w==="none"?g:w});var x=_.symbolSize;if(x!=null){var S=-1/0;ZMt(x,function(w){w>S&&(S=w)}),_.symbolSize=A1e(x,function(w){return QMt(w,[0,S],[0,y[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(oa);const zG=eIt;var I1e=[20,140],tIt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=I1e[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=I1e[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):Gt(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),te(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=Op((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=i[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&a.push(l)},this),r.push({seriesId:i.id,dataIndex:a})},this),r},e.prototype.getVisualMeta=function(t){var r=L1e(this,"outOfRange",this.getExtent()),i=L1e(this,"inRange",this.option.range.slice()),a=[];function o(d,v){a.push({value:d,color:t(d,v)})}for(var s=0,l=0,u=i.length,h=r.length;lt[1])break;a.push({color:this.getControllerVisual(l,"color",r),offset:s/i})}return a.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),a},e.prototype._createBarPoints=function(t,r){var i=this.visualMapModel.itemSize;return[[i[0]-r[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,i=this.visualMapModel.get("inverse");return new Cn(r==="horizontal"&&!i?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&i?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!i?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(!!this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();iIt([0,1],function(h){var c=o[h];c.setStyle("fill",r.handlesColor[h]),c.y=t[h];var f=py(t[h],[0,l[1]],u,!0),d=this.getControllerVisual(f,"symbolSize");c.scaleX=c.scaleY=d/l[0],c.x=l[0]-d/2;var v=u0(i.handleLabelPoints[h],AE(c,this.group));s[h].setStyle({x:v[0],y:v[1],text:a.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],h=this._shapes,c=h.indicator;if(!!c){c.attr("invisible",!1);var f={convertOpacityToAlpha:!0},d=this.getControllerVisual(t,"color",f),v=this.getControllerVisual(t,"symbolSize"),p=py(t,s,u,!0),g=l[0]-v/2,m={x:c.x,y:c.y};c.y=p,c.x=g;var y=u0(h.indicatorLabelPoint,AE(c,this.group)),_=h.indicatorLabel;_.attr("invisible",!1);var x=this._applyTransform("left",h.mainGroup),S=this._orient,w=S==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(r),verticalAlign:w?x:"middle",align:w?"center":x});var b={x:g,y:p,style:{fill:d}},E={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};c.x=m.x,c.y=m.y,c.animateTo(b,T),_.animateTo(E,T)}else c.attr(b),_.attr(E);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var A=0;Ao[1]&&(c[1]=1/0),r&&(c[0]===-1/0?this._showIndicator(h,c[1],"< ",l):c[1]===1/0?this._showIndicator(h,c[0],"> ",l):this._showIndicator(h,h,"\u2248 ",l));var f=this._hoverLinkDataIndices,d=[];(r||D1e(i))&&(d=this._hoverLinkDataIndices=i.findTargetDataIndices(c));var v=Kut(f,d);this._dispatchHighDown("downplay",kB(v[0],i)),this._dispatchHighDown("highlight",kB(v[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(aE(t.target,function(l){var u=Bn(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var i=this.ecModel.getSeriesByIndex(r.seriesIndex),a=this.visualMapModel;if(!!a.isTargetSeries(i)){var o=i.getData(r.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var i=0;i=0&&(a.dimension=o,r.push(a))}}),n.getData().setVisual("visualMeta",r)}}];function dIt(n,e,t,r){for(var i=e.targetVisuals[r],a=fc.prepareVisualTypes(i),o={color:w3(n.getData(),"color")},s=0,l=a.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(hIt,cIt),te(fIt,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(vIt))}function UBe(n){n.registerComponentModel(rIt),n.registerComponentView(uIt),zBe(n)}var pIt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],gIt[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Sn(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Vt(this._pieceList,function(l){return l=Sn(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},i=fc.listVisualTypes(),a=this.isCategory();te(t.pieces,function(s){te(i,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),te(r,function(s,l){var u=!1;te(this.stateList,function(h){u=u||o(t,h,l)||o(t.target,h,l)},this),!u&&te(this.stateList,function(h){(t[h]||(t[h]={}))[l]=FBe.get(l,h==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var i=this.option,a=this._pieceList,o=(r?i:t).selected||{};if(i.selected=o,te(a,function(l,u){var h=this.getSelectedMapKey(l);o.hasOwnProperty(h)||(o[h]=!0)},this),i.selectedMode==="single"){var s=!1;te(a,function(l,u){var h=this.getSelectedMapKey(l);o[h]&&(s?o[h]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Sn(t)},e.prototype.getValueState=function(t){var r=fc.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var h=fc.findPieceIndex(l,i);h===t&&o.push(u)},this),r.push({seriesId:a.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var i=t.interval||[];r=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],i=["",""],a=this;function o(h,c){var f=a.getRepresentValue({interval:h});c||(c=a.getValueState(f));var d=t(f,c);h[0]===-1/0?i[0]=d:h[1]===1/0?i[1]=d:r.push({value:h[0],color:d},{value:h[1],color:d})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return te(s,function(h){var c=h.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:r,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=xw(zG.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(zG),gIt={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(t)!==a&&t<5;)t++;e.precision=t,a=+a.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","\u2265"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,i)},this)}};function B1e(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const yIt=pIt;var mIt=function(n){$e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,i=r.get("textGap"),a=r.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=r.itemSize,h=this._getViewData(),c=h.endsText,f=Gh(r.get("showLabel",!0),!c);c&&this._renderEndsText(t,c[0],u,f,l),te(h.viewPieceList,function(d){var v=d.piece,p=new Cn;p.onclick=kr(this._onItemClick,this,v),this._enableHoverLink(p,d.indexInModelPieceList);var g=r.getRepresentValue(v);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),f){var m=this.visualMapModel.getValueState(g);p.add(new la({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}t.add(p)},this),c&&this._renderEndsText(t,c[1],u,f,l),ME(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var i=this;t.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:kB(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return GBe(t,this.api,t.itemSize);var i=r.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(t,r,i,a,o){if(!!r){var s=new Cn,l=this.visualMapModel.textStyleModel;s.add(new la({style:is(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=Vt(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=t.get("text"),a=t.get("orient"),o=t.get("inverse");return(a==="horizontal"?o:!o)?r.reverse():i&&(i=i.slice().reverse()),{viewPieceList:r,endsText:i}},e.prototype._createItemSymbol=function(t,r,i){t.add(hu(this.getControllerVisual(r,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,i=r.option,a=i.selectedMode;if(!!a){var o=Sn(i.selected),s=r.getSelectedMapKey(t);a==="single"||a===!0?(o[s]=!0,te(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(BBe);const _It=mIt;function VBe(n){n.registerComponentModel(yIt),n.registerComponentView(_It),zBe(n)}function xIt(n){_i(UBe),_i(VBe)}var SIt={label:{enabled:!0},decal:{show:!1}},G1e=na(),wIt={};function bIt(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Sn(SIt);ii(r.label,n.getLocaleModel().get("aria"),!1),ii(t.option,r,!1),i(),a();function i(){var u=t.getModel("decal"),h=u.get("show");if(h){var c=$r();n.eachSeries(function(f){if(!f.isColorBySeries()){var d=c.get(f.type);d||(d={},c.set(f.type,d)),G1e(f).scope=d}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(rn(f.enableAriaDecal)){f.enableAriaDecal();return}var d=f.getData();if(f.isColorBySeries()){var y=pJ(f.ecModel,f.name,wIt,n.getSeriesCount()),_=d.getVisual("decal");d.setVisual("decal",x(_,y))}else{var v=f.getRawData(),p={},g=G1e(f).scope;d.each(function(S){var w=d.getRawIndex(S);p[w]=S});var m=v.count();v.each(function(S){var w=p[S],b=v.getName(S)||S+"",E=pJ(f.ecModel,b,g,m),T=d.getItemVisual(w,"decal");d.setItemVisual(w,"decal",x(T,E))})}function x(S,w){var b=S?Mt(Mt({},w),S):w;return b.dirty=!0,b}})}}function a(){var u=n.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=sn(h.option,u),!!h.get("enabled")){var c=e.getZr().dom;if(h.get("description")){c.setAttribute("aria-label",h.get("description"));return}var f=n.getSeriesCount(),d=h.get(["data","maxCount"])||10,v=h.get(["series","maxCount"])||10,p=Math.min(f,v),g;if(!(f<1)){var m=s();if(m){var y=h.get(["general","withTitle"]);g=o(y,{title:m})}else g=h.get(["general","withoutTitle"]);var _=[],x=f>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);g+=o(x,{seriesCount:f}),n.eachSeries(function(E,T){if(T1?h.get(["series","multiple",M]):h.get(["series","single",M]),C=o(C,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:l(E.subType)});var I=E.getData();if(I.count()>d){var R=h.get(["data","partialData"]);C+=o(R,{displayCnt:d})}else C+=h.get(["data","allData"]);for(var k=h.get(["data","separator","middle"]),D=h.get(["data","separator","end"]),G=[],V=0;V":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},CIt=function(){function n(e){var t=this._condVal=Or(e)?new RegExp(e):llt(e)?e:null;if(t==null){var r="";ao(r)}}return n.prototype.evaluate=function(e){var t=typeof e;return Or(t)?this._condVal.test(e):ha(t)?this._condVal.test(e+""):!1},n}(),AIt=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),MIt=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(i),i=[I,R]}function h(I,R,k,D){dA(I,k)&&dA(R,D)||i.push(I,R,k,D,k,D)}function c(I,R,k,D,G,V){var z=Math.abs(R-I),j=Math.tan(z/4)*4/3,Z=RE:A2&&r.push(i),r}function pQ(n,e,t,r,i,a,o,s,l,u){if(dA(n,t)&&dA(e,r)&&dA(i,o)&&dA(a,s)){l.push(o,s);return}var h=2/u,c=h*h,f=o-n,d=s-e,v=Math.sqrt(f*f+d*d);f/=v,d/=v;var p=t-n,g=r-e,m=i-o,y=a-s,_=p*p+g*g,x=m*m+y*y;if(_=0&&E=0){l.push(o,s);return}var T=[],C=[];DS(n,t,i,o,.5,T),DS(e,r,a,s,.5,C),pQ(T[0],C[0],T[1],C[1],T[2],C[2],T[3],C[3],l,u),pQ(T[4],C[4],T[5],C[5],T[6],C[6],T[7],C[7],l,u)}function VIt(n,e){var t=vQ(n),r=[];e=e||1;for(var i=0;i0)for(var u=0;uMath.abs(u),c=WBe([l,u],h?0:1,e),f=(h?s:u)/c.length,d=0;di,o=WBe([r,i],a?0:1,e),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",h=a?"y":"x",c=n[s]/o.length,f=0;f1?null:new qn(p*l+n,p*u+e)}function HIt(n,e,t){var r=new qn;qn.sub(r,t,e),r.normalize();var i=new qn;qn.sub(i,n,e);var a=i.dot(r);return a}function aC(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function jIt(n,e,t){for(var r=n.length,i=[],a=0;ao?(u.x=h.x=s+a/2,u.y=l,h.y=l+o):(u.y=h.y=l+o/2,u.x=s,h.x=s+a),jIt(e,u,h)}function UG(n,e,t,r){if(t===1)r.push(e);else{var i=Math.floor(t/2),a=n(e);UG(n,a[0],i,r),UG(n,a[1],t-i,r)}return r}function XIt(n,e){for(var t=[],r=0;r0)for(var S=r/t,w=-r/2;w<=r/2;w+=S){for(var b=Math.sin(w),E=Math.cos(w),T=0,_=0;_0;u/=2){var h=0,c=0;(n&u)>0&&(h=1),(e&u)>0&&(c=1),s+=u*u*(3*h^c),c===0&&(h===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function WG(n){var e=1/0,t=1/0,r=-1/0,i=-1/0,a=Vt(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),h=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return e=Math.min(h,e),t=Math.min(c,t),r=Math.max(h,r),i=Math.max(c,i),[h,c]}),o=Vt(a,function(s,l){return{cp:s,z:rLt(s[0],s[1],e,t,r,i),path:n[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function XBe(n){return ZIt(n.path,n.count)}function gQ(){return{fromIndividuals:[],toIndividuals:[],count:0}}function nLt(n,e,t){var r=[];function i(S){for(var w=0;w=0;i--)if(!t[i].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var a=l.length,u=Math.ceil(a/2);t[i].many=l.slice(u,a),t[s].many=l.slice(0,u),s++}return t}var aLt={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,h;Y1e(n)&&(u=n,h=e),Y1e(e)&&(u=e,h=n);function c(m,y,_,x,S){var w=m.many,b=m.one;if(w.length===1&&!S){var E=y?w[0]:b,T=y?b:w[0];if(VG(E))c({many:[E],one:T},!0,_,x,!0);else{var C=s?sn({delay:s(_,x)},l):l;soe(E,T,C),a(E,T,E,T,C)}}else for(var A=sn({dividePath:aLt[t],individualDelay:s&&function(G,V,z,j){return s(G+_,x)}},l),M=y?nLt(w,b,A):iLt(b,w,A),I=M.fromIndividuals,R=M.toIndividuals,k=I.length,D=0;De.length,d=u?q1e(h,u):q1e(f?e:n,[f?n:e]),v=0,p=0;pYBe))for(var i=r.getIndices(),a=sLt(r),o=0;o0&&x.group.traverse(function(w){w instanceof Si&&!w.animators.length&&w.animateFrom({style:{opacity:0}},S)})})}function K1e(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function J1e(n){return Gt(n)?n.sort().join(","):n}function kx(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function hLt(n,e){var t=$r(),r=$r(),i=$r();return te(n.oldSeries,function(a,o){var s=n.oldDataGroupIds[o],l=n.oldData[o],u=K1e(a),h=J1e(u);r.set(h,{dataGroupId:s,data:l}),Gt(u)&&te(u,function(c){i.set(c,{key:h,dataGroupId:s,data:l})})}),te(e.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=K1e(a),u=J1e(l),h=r.get(u);if(h)t.set(u,{oldSeries:[{dataGroupId:h.dataGroupId,divide:kx(h.data),data:h.data}],newSeries:[{dataGroupId:o,divide:kx(s),data:s}]});else if(Gt(l)){var c=[];te(l,function(v){var p=r.get(v);p.data&&c.push({dataGroupId:p.dataGroupId,divide:kx(p.data),data:p.data})}),c.length&&t.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:kx(s)}]})}else{var f=i.get(l);if(f){var d=t.get(f.key);d||(d={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:kx(f.data)}],newSeries:[]},t.set(f.key,d)),d.newSeries.push({dataGroupId:o,data:s,divide:kx(s)})}}}}),t}function Q1e(n,e){for(var t=0;t=0&&i.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:kx(e.oldData[s]),dim:o.dimension})}),te(Do(n.to),function(o){var s=Q1e(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();a.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:kx(l),dim:o.dimension})}}),i.length>0&&a.length>0&&qBe(i,a,r)}function fLt(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){te(Do(r.seriesTransition),function(i){te(Do(i.to),function(a){for(var o=r.updatedSeries,s=0;s>1;++t)e[t]=String.fromCharCode(n.charCodeAt(2*t)+(n.charCodeAt(2*t+1)<<8));return e.join("")}function yLt(n){for(var e=[],t=0;t>1;++t)e[t]=String.fromCharCode(n[2*t]+(n[2*t+1]<<8));return e.join("")}function JBe(n){for(var e=[],t=0;t>1;++t)e[t]=String.fromCharCode(n.charCodeAt(2*t+1)+(n.charCodeAt(2*t)<<8));return e.join("")}var uO=function(n){var e=n.charCodeAt(0),t=n.charCodeAt(1);return e==255&&t==254?KBe(n.slice(2)):e==254&&t==255?JBe(n.slice(2)):e==65279?n.slice(1):n},H4=function(e){return String.fromCharCode(e)},t_e=function(e){return String.fromCharCode(e)},mLt=null,aS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function r_e(n){for(var e="",t=0,r=0,i=0,a=0,o=0,s=0,l=0,u=0;u>2,r=n.charCodeAt(u++),o=(t&3)<<4|r>>4,i=n.charCodeAt(u++),s=(r&15)<<2|i>>6,l=i&63,isNaN(r)?s=l=64:isNaN(i)&&(l=64),e+=aS.charAt(a)+aS.charAt(o)+aS.charAt(s)+aS.charAt(l);return e}function Tv(n){var e="",t=0,r=0,i=0,a=0,o=0,s=0,l=0;n=n.replace(/^data:([^\/]+\/[^\/]+)?;base64\,/,"").replace(/[^\w\+\/\=]/g,"");for(var u=0;u>4,e+=String.fromCharCode(t),s=aS.indexOf(n.charAt(u++)),r=(o&15)<<4|s>>2,s!==64&&(e+=String.fromCharCode(r)),l=aS.indexOf(n.charAt(u++)),i=(s&3)<<6|l,l!==64&&(e+=String.fromCharCode(i));return e}var oo=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Sw=function(){if(typeof Buffer<"u"){var n=!Buffer.from;if(!n)try{Buffer.from("foo","utf8")}catch{n=!0}return n?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}(),MD=function(){if(typeof Buffer>"u")return!1;var n=Sw([65,0]);if(!n)return!1;var e=n.toString("utf16le");return e.length==1}();function VS(n){return oo?Buffer.alloc?Buffer.alloc(n):new Buffer(n):typeof Uint8Array<"u"?new Uint8Array(n):new Array(n)}function n_e(n){return oo?Buffer.allocUnsafe?Buffer.allocUnsafe(n):new Buffer(n):typeof Uint8Array<"u"?new Uint8Array(n):new Array(n)}var iv=function(e){return oo?Sw(e,"binary"):e.split("").map(function(t){return t.charCodeAt(0)&255})};function p_(n){if(Array.isArray(n))return n.map(function(r){return String.fromCharCode(r)}).join("");for(var e=[],t=0;t"u")throw new Error("Unsupported");if(n instanceof ArrayBuffer)return hoe(new Uint8Array(n));for(var e=new Array(n.length),t=0;t>6&31,i[t++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var s=n.charCodeAt(++a)&1023;i[t++]=240|o>>8&7,i[t++]=128|o>>2&63,i[t++]=128|s>>6&15|(o&3)<<4,i[t++]=128|s&63}else i[t++]=224|o>>12&15,i[t++]=128|o>>6&63,i[t++]=128|o&63;t>r&&(e.push(i.slice(0,t)),t=0,i=VS(65535),r=65530)}return e.push(i.slice(0,t)),Yx(e)}var Df=/\u0000/g,hO=/[\u0001-\u0006]/g;function zA(n){for(var e="",t=n.length-1;t>=0;)e+=n.charAt(t--);return e}function n0(n,e){var t=""+n;return t.length>=e?t:wo("0",e-t.length)+t}function coe(n,e){var t=""+n;return t.length>=e?t:wo(" ",e-t.length)+t}function HG(n,e){var t=""+n;return t.length>=e?t:t+wo(" ",e-t.length)}function xLt(n,e){var t=""+Math.round(n);return t.length>=e?t:wo("0",e-t.length)+t}function SLt(n,e){var t=""+n;return t.length>=e?t:wo("0",e-t.length)+t}var i_e=Math.pow(2,32);function sC(n,e){if(n>i_e||n<-i_e)return xLt(n,e);var t=Math.round(n);return SLt(t,e)}function jG(n,e){return e=e||0,n.length>=7+e&&(n.charCodeAt(e)|32)===103&&(n.charCodeAt(e+1)|32)===101&&(n.charCodeAt(e+2)|32)===110&&(n.charCodeAt(e+3)|32)===101&&(n.charCodeAt(e+4)|32)===114&&(n.charCodeAt(e+5)|32)===97&&(n.charCodeAt(e+6)|32)===108}var a_e=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],vX=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function wLt(n){return n||(n={}),n[0]="General",n[1]="0",n[2]="0.00",n[3]="#,##0",n[4]="#,##0.00",n[9]="0%",n[10]="0.00%",n[11]="0.00E+00",n[12]="# ?/?",n[13]="# ??/??",n[14]="m/d/yy",n[15]="d-mmm-yy",n[16]="d-mmm",n[17]="mmm-yy",n[18]="h:mm AM/PM",n[19]="h:mm:ss AM/PM",n[20]="h:mm",n[21]="h:mm:ss",n[22]="m/d/yy h:mm",n[37]="#,##0 ;(#,##0)",n[38]="#,##0 ;[Red](#,##0)",n[39]="#,##0.00;(#,##0.00)",n[40]="#,##0.00;[Red](#,##0.00)",n[45]="mm:ss",n[46]="[h]:mm:ss",n[47]="mmss.0",n[48]="##0.0E+0",n[49]="@",n[56]='"\u4E0A\u5348/\u4E0B\u5348 "hh"\u6642"mm"\u5206"ss"\u79D2 "',n}var ji={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4E0A\u5348/\u4E0B\u5348 "hh"\u6642"mm"\u5206"ss"\u79D2 "'},o_e={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},bLt={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function XG(n,e,t){for(var r=n<0?-1:1,i=n*r,a=0,o=1,s=0,l=1,u=0,h=0,c=Math.floor(i);ue&&(u>e?(h=l,s=a):(h=u,s=o)),!t)return[0,r*s,h];var f=Math.floor(r*s/h);return[f,r*s-f*h,h]}function uE(n,e,t){if(n>2958465||n<0)return null;var r=n|0,i=Math.floor(86400*(n-r)),a=0,o=[],s={D:r,T:i,u:86400*(n-r)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),e&&e.date1904&&(r+=1462),s.u>.9999&&(s.u=0,++i==86400&&(s.T=i=0,++r,++s.D)),r===60)o=t?[1317,10,29]:[1900,2,29],a=3;else if(r===0)o=t?[1317,8,29]:[1900,1,0],a=6;else{r>60&&--r;var l=new Date(1900,0,1);l.setDate(l.getDate()+r-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],a=l.getDay(),r<60&&(a=(a+6)%7),t&&(a=ILt(l,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=a,s}var QBe=new Date(1899,11,31,0,0,0),ELt=QBe.getTime(),TLt=new Date(1900,2,1,0,0,0);function e8e(n,e){var t=n.getTime();return e?t-=1461*24*60*60*1e3:n>=TLt&&(t+=24*60*60*1e3),(t-(ELt+(n.getTimezoneOffset()-QBe.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function foe(n){return n.indexOf(".")==-1?n:n.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function CLt(n){return n.indexOf("E")==-1?n:n.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function ALt(n){var e=n<0?12:11,t=foe(n.toFixed(12));return t.length<=e||(t=n.toPrecision(10),t.length<=e)?t:n.toExponential(5)}function MLt(n){var e=foe(n.toFixed(11));return e.length>(n<0?12:11)||e==="0"||e==="-0"?n.toPrecision(6):e}function ID(n){var e=Math.floor(Math.log(Math.abs(n))*Math.LOG10E),t;return e>=-4&&e<=-1?t=n.toPrecision(10+e):Math.abs(e)<=9?t=ALt(n):e===10?t=n.toFixed(10).substr(0,12):t=MLt(n),foe(CLt(t.toUpperCase()))}function e2(n,e){switch(typeof n){case"string":return n;case"boolean":return n?"TRUE":"FALSE";case"number":return(n|0)===n?n.toString(10):ID(n);case"undefined":return"";case"object":if(n==null)return"";if(n instanceof Date)return Cv(14,e8e(n,e&&e.date1904),e)}throw new Error("unsupported value in General format: "+n)}function ILt(n,e){e[0]-=581;var t=n.getDay();return n<60&&(t=(t+6)%7),t}function LLt(n,e,t,r){var i="",a=0,o=0,s=t.y,l,u=0;switch(n){case 98:s=t.y+543;case 121:switch(e.length){case 1:case 2:l=s%100,u=2;break;default:l=s%1e4,u=4;break}break;case 109:switch(e.length){case 1:case 2:l=t.m,u=e.length;break;case 3:return vX[t.m-1][1];case 5:return vX[t.m-1][0];default:return vX[t.m-1][2]}break;case 100:switch(e.length){case 1:case 2:l=t.d,u=e.length;break;case 3:return a_e[t.q][0];default:return a_e[t.q][1]}break;case 104:switch(e.length){case 1:case 2:l=1+(t.H+11)%12,u=e.length;break;default:throw"bad hour format: "+e}break;case 72:switch(e.length){case 1:case 2:l=t.H,u=e.length;break;default:throw"bad hour format: "+e}break;case 77:switch(e.length){case 1:case 2:l=t.M,u=e.length;break;default:throw"bad minute format: "+e}break;case 115:if(e!="s"&&e!="ss"&&e!=".0"&&e!=".00"&&e!=".000")throw"bad second format: "+e;return t.u===0&&(e=="s"||e=="ss")?n0(t.S,e.length):(r>=2?o=r===3?1e3:100:o=r===1?10:1,a=Math.round(o*(t.S+t.u)),a>=60*o&&(a=0),e==="s"?a===0?"0":""+a/o:(i=n0(a,2+r),e==="ss"?i.substr(0,2):"."+i.substr(2,e.length-1)));case 90:switch(e){case"[h]":case"[hh]":l=t.D*24+t.H;break;case"[m]":case"[mm]":l=(t.D*24+t.H)*60+t.M;break;case"[s]":case"[ss]":l=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+e}u=e.length===3?1:2;break;case 101:l=s,u=1;break}var h=u>0?n0(l,u):"";return h}function O1(n){var e=3;if(n.length<=e)return n;for(var t=n.length%e,r=n.substr(0,t);t!=n.length;t+=e)r+=(r.length>0?",":"")+n.substr(t,e);return r}var t8e=/%/g;function PLt(n,e,t){var r=e.replace(t8e,""),i=e.length-r.length;return X1(n,r,t*Math.pow(10,2*i))+wo("%",i)}function OLt(n,e,t){for(var r=e.length-1;e.charCodeAt(r-1)===44;)--r;return X1(n,e.substr(0,r),t/Math.pow(10,3*(e.length-r)))}function r8e(n,e){var t,r=n.indexOf("E")-n.indexOf(".")-1;if(n.match(/^#+0.0E\+0$/)){if(e==0)return"0.0E+0";if(e<0)return"-"+r8e(n,-e);var i=n.indexOf(".");i===-1&&(i=n.indexOf("E"));var a=Math.floor(Math.log(e)*Math.LOG10E)%i;if(a<0&&(a+=i),t=(e/Math.pow(10,a)).toPrecision(r+1+(i+a)%i),t.indexOf("e")===-1){var o=Math.floor(Math.log(e)*Math.LOG10E);for(t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(o-t.length+a):t+="E+"+(o-a);t.substr(0,2)==="0.";)t=t.charAt(0)+t.substr(2,i)+"."+t.substr(2+i),t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,u,h){return l+u+h.substr(0,(i+a)%i)+"."+h.substr(a)+"E"})}else t=e.toExponential(r);return n.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),n.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}var n8e=/# (\?+)( ?)\/( ?)(\d+)/;function RLt(n,e,t){var r=parseInt(n[4],10),i=Math.round(e*r),a=Math.floor(i/r),o=i-a*r,s=r;return t+(a===0?"":""+a)+" "+(o===0?wo(" ",n[1].length+1+n[4].length):coe(o,n[1].length)+n[2]+"/"+n[3]+n0(s,n[4].length))}function DLt(n,e,t){return t+(e===0?"":""+e)+wo(" ",n[1].length+2+n[4].length)}var i8e=/^#*0*\.([0#]+)/,a8e=/\).*[0#]/,o8e=/\(###\) ###\\?-####/;function bf(n){for(var e="",t,r=0;r!=n.length;++r)switch(t=n.charCodeAt(r)){case 35:break;case 63:e+=" ";break;case 48:e+="0";break;default:e+=String.fromCharCode(t)}return e}function s_e(n,e){var t=Math.pow(10,e);return""+Math.round(n*t)/t}function l_e(n,e){var t=n-Math.floor(n),r=Math.pow(10,e);return e<(""+Math.round(t*r)).length?0:Math.round(t*r)}function NLt(n,e){return e<(""+Math.round((n-Math.floor(n))*Math.pow(10,e))).length?1:0}function kLt(n){return n<2147483647&&n>-2147483648?""+(n>=0?n|0:n-1|0):""+Math.floor(n)}function rp(n,e,t){if(n.charCodeAt(0)===40&&!e.match(a8e)){var r=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?rp("n",r,t):"("+rp("n",r,-t)+")"}if(e.charCodeAt(e.length-1)===44)return OLt(n,e,t);if(e.indexOf("%")!==-1)return PLt(n,e,t);if(e.indexOf("E")!==-1)return r8e(e,t);if(e.charCodeAt(0)===36)return"$"+rp(n,e.substr(e.charAt(1)==" "?2:1),t);var i,a,o,s,l=Math.abs(t),u=t<0?"-":"";if(e.match(/^00+$/))return u+sC(l,e.length);if(e.match(/^[#?]+$/))return i=sC(t,0),i==="0"&&(i=""),i.length>e.length?i:bf(e.substr(0,e.length-i.length))+i;if(a=e.match(n8e))return RLt(a,l,u);if(e.match(/^#+0+$/))return u+sC(l,e.length-e.indexOf("0"));if(a=e.match(i8e))return i=s_e(t,a[1].length).replace(/^([^\.]+)$/,"$1."+bf(a[1])).replace(/\.$/,"."+bf(a[1])).replace(/\.(\d*)$/,function(v,p){return"."+p+wo("0",bf(a[1]).length-p.length)}),e.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),a=e.match(/^(0*)\.(#*)$/))return u+s_e(l,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=e.match(/^#{1,3},##0(\.?)$/))return u+O1(sC(l,0));if(a=e.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+rp(n,e,-t):O1(""+(Math.floor(t)+NLt(t,a[1].length)))+"."+n0(l_e(t,a[1].length),a[1].length);if(a=e.match(/^#,#*,#0/))return rp(n,e.replace(/^#,#*,/,""),t);if(a=e.match(/^([0#]+)(\\?-([0#]+))+$/))return i=zA(rp(n,e.replace(/[\\-]/g,""),t)),o=0,zA(zA(e.replace(/\\/g,"")).replace(/[0#]/g,function(v){return o=0?gy("n",r,t):"("+gy("n",r,-t)+")"}if(e.charCodeAt(e.length-1)===44)return FLt(n,e,t);if(e.indexOf("%")!==-1)return BLt(n,e,t);if(e.indexOf("E")!==-1)return s8e(e,t);if(e.charCodeAt(0)===36)return"$"+gy(n,e.substr(e.charAt(1)==" "?2:1),t);var i,a,o,s,l=Math.abs(t),u=t<0?"-":"";if(e.match(/^00+$/))return u+n0(l,e.length);if(e.match(/^[#?]+$/))return i=""+t,t===0&&(i=""),i.length>e.length?i:bf(e.substr(0,e.length-i.length))+i;if(a=e.match(n8e))return DLt(a,l,u);if(e.match(/^#+0+$/))return u+n0(l,e.length-e.indexOf("0"));if(a=e.match(i8e))return i=(""+t).replace(/^([^\.]+)$/,"$1."+bf(a[1])).replace(/\.$/,"."+bf(a[1])),i=i.replace(/\.(\d*)$/,function(v,p){return"."+p+wo("0",bf(a[1]).length-p.length)}),e.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),a=e.match(/^(0*)\.(#*)$/))return u+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=e.match(/^#{1,3},##0(\.?)$/))return u+O1(""+l);if(a=e.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+gy(n,e,-t):O1(""+t)+"."+wo("0",a[1].length);if(a=e.match(/^#,#*,#0/))return gy(n,e.replace(/^#,#*,/,""),t);if(a=e.match(/^([0#]+)(\\?-([0#]+))+$/))return i=zA(gy(n,e.replace(/[\\-]/g,""),t)),o=0,zA(zA(e.replace(/\\/g,"")).replace(/[0#]/g,function(v){return o-1||t=="\\"&&n.charAt(e+1)=="-"&&"0#".indexOf(n.charAt(e+2))>-1););break;case"?":for(;n.charAt(++e)===t;);break;case"*":++e,(n.charAt(e)==" "||n.charAt(e)=="*")&&++e;break;case"(":case")":++e;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;e-1;);break;case" ":++e;break;default:++e;break}return!1}function zLt(n,e,t,r){for(var i=[],a="",o=0,s="",l="t",u,h,c,f="H";o=12?n.charAt(o+2):s),p.t="T",f="h",o+=3):n.substr(o,5).toUpperCase()==="AM/PM"?(u!=null&&(p.v=u.H>=12?"PM":"AM"),p.t="T",o+=5,f="h"):n.substr(o,5).toUpperCase()==="\u4E0A\u5348/\u4E0B\u5348"?(u!=null&&(p.v=u.H>=12?"\u4E0B\u5348":"\u4E0A\u5348"),p.t="T",o+=5,f="h"):(p.t="t",++o),u==null&&p.t==="T")return"";i[i.length]=p,l=s;break;case"[":for(a=s;n.charAt(o++)!=="]"&&o-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",Q2(n)||(i[i.length]={t:"t",v:a}));break;case".":if(u!=null){for(a=s;++o-1;)a+=s;i[i.length]={t:"n",v:a};break;case"?":for(a=s;n.charAt(++o)===s;)a+=s;i[i.length]={t:s,v:a},l=s;break;case"*":++o,(n.charAt(o)==" "||n.charAt(o)=="*")&&++o;break;case"(":case")":i[i.length]={t:r===1?"t":s,v:s},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(a=s;o-1;)a+=n.charAt(o);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:s,v:s},++o;break;case"$":i[i.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=\u20ACacfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+n);i[i.length]={t:"t",v:s},++o;break}var g=0,m=0,y;for(o=i.length-1,l="t";o>=0;--o)switch(i[o].t){case"h":case"H":i[o].t=f,l="h",g<1&&(g=1);break;case"s":(y=i[o].v.match(/\.0+$/))&&(m=Math.max(m,y[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":l=i[o].t;break;case"m":l==="s"&&(i[o].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&i[o].v.match(/[Hh]/)&&(g=1),g<2&&i[o].v.match(/[Mm]/)&&(g=2),g<3&&i[o].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M),u.M>=60&&(u.M=0,++u.H);break;case 2:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M);break}var _="",x;for(o=0;o0){_.charCodeAt(0)==40?(w=e<0&&_.charCodeAt(0)===45?-e:e,b=X1("n",_,w)):(w=e<0&&r>1?-e:e,b=X1("n",_,w),w<0&&i[0]&&i[0].t=="t"&&(b=b.substr(1),i[0].v="-"+i[0].v)),x=b.length-1;var E=i.length;for(o=0;o-1){E=o;break}var T=i.length;if(E===i.length&&b.indexOf("E")===-1){for(o=i.length-1;o>=0;--o)i[o]==null||"n?".indexOf(i[o].t)===-1||(x>=i[o].v.length-1?(x-=i[o].v.length,i[o].v=b.substr(x+1,i[o].v.length)):x<0?i[o].v="":(i[o].v=b.substr(0,x+1),x=-1),i[o].t="t",T=o);x>=0&&T=0;--o)if(!(i[o]==null||"n?".indexOf(i[o].t)===-1)){for(h=i[o].v.indexOf(".")>-1&&o===E?i[o].v.indexOf(".")-1:i[o].v.length-1,S=i[o].v.substr(h+1);h>=0;--h)x>=0&&(i[o].v.charAt(h)==="0"||i[o].v.charAt(h)==="#")&&(S=b.charAt(x--)+S);i[o].v=S,i[o].t="t",T=o}for(x>=0&&T-1&&o===E?i[o].v.indexOf(".")+1:0,S=i[o].v.substr(0,h);h-1&&(w=r>1&&e<0&&o>0&&i[o-1].v==="-"?-e:e,i[o].v=X1(i[o].t,i[o].v,w),i[o].t="t");var C="";for(o=0;o!==i.length;++o)i[o]!=null&&(C+=i[o].v);return C}var u_e=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function h_e(n,e){if(e==null)return!1;var t=parseFloat(e[2]);switch(e[1]){case"=":if(n==t)return!0;break;case">":if(n>t)return!0;break;case"<":if(n":if(n!=t)return!0;break;case">=":if(n>=t)return!0;break;case"<=":if(n<=t)return!0;break}return!1}function ULt(n,e){var t=GLt(n),r=t.length,i=t[r-1].indexOf("@");if(r<4&&i>-1&&--r,t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if(typeof e!="number")return[4,t.length===4||i>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=i>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=i>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=i>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"];break}var a=e>0?t[0]:e<0?t[1]:t[2];if(t[0].indexOf("[")===-1&&t[1].indexOf("[")===-1)return[r,a];if(t[0].match(/\[[=<>]/)!=null||t[1].match(/\[[=<>]/)!=null){var o=t[0].match(u_e),s=t[1].match(u_e);return h_e(e,o)?[r,t[0]]:h_e(e,s)?[r,t[1]]:[r,t[o!=null&&s!=null?2:1]]}return[r,a]}function Cv(n,e,t){t==null&&(t={});var r="";switch(typeof n){case"string":n=="m/d/yy"&&t.dateNF?r=t.dateNF:r=n;break;case"number":n==14&&t.dateNF?r=t.dateNF:r=(t.table!=null?t.table:ji)[n],r==null&&(r=t.table&&t.table[o_e[n]]||ji[o_e[n]]),r==null&&(r=bLt[n]||"General");break}if(jG(r,0))return e2(e,t);e instanceof Date&&(e=e8e(e,t.date1904));var i=ULt(r,e);if(jG(i[1]))return e2(e,t);if(e===!0)e="TRUE";else if(e===!1)e="FALSE";else if(e===""||e==null)return"";return zLt(i[1],e,t,i[0])}function VLt(n,e){if(typeof e!="number"){e=+e||-1;for(var t=0;t<392;++t){if(ji[t]==null){e<0&&(e=t);continue}if(ji[t]==n){e=t;break}}e<0&&(e=391)}return ji[e]=n,e}function u8e(){ji=wLt()}var $Lt={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},h8e=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function WLt(n){var e=typeof n=="number"?ji[n]:n;return e=e.replace(h8e,"(\\d+)"),new RegExp("^"+e+"$")}function HLt(n,e,t){var r=-1,i=-1,a=-1,o=-1,s=-1,l=-1;(e.match(h8e)||[]).forEach(function(c,f){var d=parseInt(t[f+1],10);switch(c.toLowerCase().charAt(0)){case"y":r=d;break;case"d":a=d;break;case"h":o=d;break;case"s":l=d;break;case"m":o>=0?s=d:i=d;break}}),l>=0&&s==-1&&i>=0&&(s=i,i=-1);var u=(""+(r>=0?r:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);u.length==7&&(u="0"+u),u.length==8&&(u="20"+u);var h=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return o==-1&&s==-1&&l==-1?u:r==-1&&i==-1&&a==-1?h:u+"T"+h}var jLt={"d.m":"d\\.m"};function OE(n,e){return VLt(jLt[n]||n,e)}var c_e=function(){var n={};n.version="1.2.0";function e(){for(var b=0,E=new Array(256),T=0;T!=256;++T)b=T,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,E[T]=b;return typeof Int32Array<"u"?new Int32Array(E):E}var t=e();function r(b){var E=0,T=0,C=0,A=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(C=0;C!=256;++C)A[C]=b[C];for(C=0;C!=256;++C)for(T=b[C],E=256+C;E<4096;E+=256)T=A[E]=T>>>8^b[T&255];var M=[];for(C=1;C!=16;++C)M[C-1]=typeof Int32Array<"u"&&typeof A.subarray=="function"?A.subarray(C*256,C*256+256):A.slice(C*256,C*256+256);return M}var i=r(t),a=i[0],o=i[1],s=i[2],l=i[3],u=i[4],h=i[5],c=i[6],f=i[7],d=i[8],v=i[9],p=i[10],g=i[11],m=i[12],y=i[13],_=i[14];function x(b,E){for(var T=E^-1,C=0,A=b.length;C>>8^t[(T^b.charCodeAt(C++))&255];return~T}function S(b,E){for(var T=E^-1,C=b.length-15,A=0;A>8&255]^m[b[A++]^T>>16&255]^g[b[A++]^T>>>24]^p[b[A++]]^v[b[A++]]^d[b[A++]]^f[b[A++]]^c[b[A++]]^h[b[A++]]^u[b[A++]]^l[b[A++]]^s[b[A++]]^o[b[A++]]^a[b[A++]]^t[b[A++]];for(C+=15;A>>8^t[(T^b[A++])&255];return~T}function w(b,E){for(var T=E^-1,C=0,A=b.length,M=0,I=0;C>>8^t[(T^M)&255]:M<2048?(T=T>>>8^t[(T^(192|M>>6&31))&255],T=T>>>8^t[(T^(128|M&63))&255]):M>=55296&&M<57344?(M=(M&1023)+64,I=b.charCodeAt(C++)&1023,T=T>>>8^t[(T^(240|M>>8&7))&255],T=T>>>8^t[(T^(128|M>>2&63))&255],T=T>>>8^t[(T^(128|I>>6&15|(M&3)<<4))&255],T=T>>>8^t[(T^(128|I&63))&255]):(T=T>>>8^t[(T^(224|M>>12&15))&255],T=T>>>8^t[(T^(128|M>>6&63))&255],T=T>>>8^t[(T^(128|M&63))&255]);return~T}return n.table=t,n.bstr=x,n.buf=S,n.str=w,n}(),co=function(){var e={};e.version="1.2.2";function t(ue,xe){for(var ce=ue.split("/"),pe=xe.split("/"),we=0,Me=0,nt=Math.min(ce.length,pe.length);we>>1,ue.write_shift(2,ce);var pe=xe.getFullYear()-1980;pe=pe<<4|xe.getMonth()+1,pe=pe<<5|xe.getDate(),ue.write_shift(2,pe)}function o(ue){var xe=ue.read_shift(2)&65535,ce=ue.read_shift(2)&65535,pe=new Date,we=ce&31;ce>>>=5;var Me=ce&15;ce>>>=4,pe.setMilliseconds(0),pe.setFullYear(ce+1980),pe.setMonth(Me-1),pe.setDate(we);var nt=xe&31;xe>>>=5;var It=xe&63;return xe>>>=6,pe.setHours(xe),pe.setMinutes(It),pe.setSeconds(nt<<1),pe}function s(ue){eh(ue,0);for(var xe={},ce=0;ue.l<=ue.length-4;){var pe=ue.read_shift(2),we=ue.read_shift(2),Me=ue.l+we,nt={};switch(pe){case 21589:ce=ue.read_shift(1),ce&1&&(nt.mtime=ue.read_shift(4)),we>5&&(ce&2&&(nt.atime=ue.read_shift(4)),ce&4&&(nt.ctime=ue.read_shift(4))),nt.mtime&&(nt.mt=new Date(nt.mtime*1e3));break;case 1:{var It=ue.read_shift(4),ot=ue.read_shift(4);nt.usz=ot*Math.pow(2,32)+It,It=ue.read_shift(4),ot=ue.read_shift(4),nt.csz=ot*Math.pow(2,32)+It}break}ue.l=Me,xe[pe]=nt}return xe}var l;function u(){return l||(l=XLt)}function h(ue,xe){if(ue[0]==80&&ue[1]==75)return yn(ue,xe);if((ue[0]|32)==109&&(ue[1]|32)==105)return No(ue,xe);if(ue.length<512)throw new Error("CFB file size "+ue.length+" < 512");var ce=3,pe=512,we=0,Me=0,nt=0,It=0,ot=0,ht=[],ut=ue.slice(0,512);eh(ut,0);var qt=c(ut);switch(ce=qt[0],ce){case 3:pe=512;break;case 4:pe=4096;break;case 0:if(qt[1]==0)return yn(ue,xe);default:throw new Error("Major Version: Expected 3 or 4 saw "+ce)}pe!==512&&(ut=ue.slice(0,pe),eh(ut,28));var fr=ue.slice(0,pe);f(ut,ce);var Wr=ut.read_shift(4,"i");if(ce===3&&Wr!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Wr);ut.l+=4,nt=ut.read_shift(4,"i"),ut.l+=4,ut.chk("00100000","Mini Stream Cutoff Size: "),It=ut.read_shift(4,"i"),we=ut.read_shift(4,"i"),ot=ut.read_shift(4,"i"),Me=ut.read_shift(4,"i");for(var gr=-1,Ar=0;Ar<109&&(gr=ut.read_shift(4,"i"),!(gr<0));++Ar)ht[Ar]=gr;var $n=d(ue,pe);g(ot,Me,$n,pe,ht);var bi=y($n,nt,ht,pe);nt0&&It!==I&&(bi[It].name="!MiniFAT"),bi[ht[0]].name="!FAT",bi.fat_addrs=ht,bi.ssz=pe;var qa={},Jo=[],Ds=[],af=[];_(nt,bi,$n,Jo,we,qa,Ds,It),v(Ds,af,Jo),Jo.shift();var mh={FileIndex:Ds,FullPaths:af};return xe&&xe.raw&&(mh.raw={header:fr,sectors:$n}),mh}function c(ue){if(ue[ue.l]==80&&ue[ue.l+1]==75)return[0,0];ue.chk(R,"Header Signature: "),ue.l+=16;var xe=ue.read_shift(2,"u");return[ue.read_shift(2,"u"),xe]}function f(ue,xe){var ce=9;switch(ue.l+=2,ce=ue.read_shift(2)){case 9:if(xe!=3)throw new Error("Sector Shift: Expected 9 saw "+ce);break;case 12:if(xe!=4)throw new Error("Sector Shift: Expected 12 saw "+ce);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+ce)}ue.chk("0600","Mini Sector Shift: "),ue.chk("000000000000","Reserved: ")}function d(ue,xe){for(var ce=Math.ceil(ue.length/xe)-1,pe=[],we=1;we0&&nt>=0;)Me.push(xe.slice(nt*M,nt*M+M)),we-=M,nt=Yb(ce,nt*4);return Me.length===0?Ku(0):Yx(Me).slice(0,ue.size)}function g(ue,xe,ce,pe,we){var Me=I;if(ue===I){if(xe!==0)throw new Error("DIFAT chain shorter than expected")}else if(ue!==-1){var nt=ce[ue],It=(pe>>>2)-1;if(!nt)return;for(var ot=0;ot=1&&g(Yb(nt,pe-4),xe-1,ce,pe,we)}}function m(ue,xe,ce,pe,we){var Me=[],nt=[];we||(we=[]);var It=pe-1,ot=0,ht=0;for(ot=xe;ot>=0;){we[ot]=!0,Me[Me.length]=ot,nt.push(ue[ot]);var ut=ce[Math.floor(ot*4/pe)];if(ht=ot*4&It,pe<4+ht)throw new Error("FAT boundary crossed: "+ot+" 4 "+pe);if(!ue[ut])break;ot=Yb(ue[ut],ht)}return{nodes:Me,data:S_e([nt])}}function y(ue,xe,ce,pe){var we=ue.length,Me=[],nt=[],It=[],ot=[],ht=pe-1,ut=0,qt=0,fr=0,Wr=0;for(ut=0;ut=we&&(fr-=we),!nt[fr]){ot=[];var gr=[];for(qt=fr;qt>=0;){gr[qt]=!0,nt[qt]=!0,It[It.length]=qt,ot.push(ue[qt]);var Ar=ce[Math.floor(qt*4/pe)];if(Wr=qt*4&ht,pe<4+Wr)throw new Error("FAT boundary crossed: "+qt+" 4 "+pe);if(!ue[Ar]||(qt=Yb(ue[Ar],Wr),gr[qt]))break}Me[fr]={nodes:It,data:S_e([ot])}}return Me}function _(ue,xe,ce,pe,we,Me,nt,It){for(var ot=0,ht=pe.length?2:0,ut=xe[ue].data,qt=0,fr=0,Wr;qt0&&ot!==I&&(xe[ot].name="!StreamData")):Ar.size>=4096?(Ar.storage="fat",xe[Ar.start]===void 0&&(xe[Ar.start]=m(ce,Ar.start,xe.fat_addrs,xe.ssz)),xe[Ar.start].name=Ar.name,Ar.content=xe[Ar.start].data.slice(0,Ar.size)):(Ar.storage="minifat",Ar.size<0?Ar.size=0:ot!==I&&Ar.start!==I&&xe[ot]&&(Ar.content=p(Ar,xe[ot].data,(xe[It]||{}).data))),Ar.content&&eh(Ar.content,0),Me[Wr]=Ar,nt.push(Ar)}}function x(ue,xe){return new Date((av(ue,xe+4)/1e7*Math.pow(2,32)+av(ue,xe)/1e7-11644473600)*1e3)}function S(ue,xe){return u(),h(l.readFileSync(ue),xe)}function w(ue,xe){var ce=xe&&xe.type;switch(ce||oo&&Buffer.isBuffer(ue)&&(ce="buffer"),ce||"base64"){case"file":return S(ue,xe);case"base64":return h(iv(Tv(ue)),xe);case"binary":return h(iv(ue),xe)}return h(ue,xe)}function b(ue,xe){var ce=xe||{},pe=ce.root||"Root Entry";if(ue.FullPaths||(ue.FullPaths=[]),ue.FileIndex||(ue.FileIndex=[]),ue.FullPaths.length!==ue.FileIndex.length)throw new Error("inconsistent CFB structure");ue.FullPaths.length===0&&(ue.FullPaths[0]=pe+"/",ue.FileIndex[0]={name:pe,type:5}),ce.CLSID&&(ue.FileIndex[0].clsid=ce.CLSID),E(ue)}function E(ue){var xe="Sh33tJ5";if(!co.find(ue,"/"+xe)){var ce=Ku(4);ce[0]=55,ce[1]=ce[3]=50,ce[2]=54,ue.FileIndex.push({name:xe,type:2,content:ce,size:4,L:69,R:69,C:69}),ue.FullPaths.push(ue.FullPaths[0]+xe),T(ue)}}function T(ue,xe){b(ue);for(var ce=!1,pe=!1,we=ue.FullPaths.length-1;we>=0;--we){var Me=ue.FileIndex[we];switch(Me.type){case 0:pe?ce=!0:(ue.FileIndex.pop(),ue.FullPaths.pop());break;case 1:case 2:case 5:pe=!0,isNaN(Me.R*Me.L*Me.C)&&(ce=!0),Me.R>-1&&Me.L>-1&&Me.R==Me.L&&(ce=!0);break;default:ce=!0;break}}if(!(!ce&&!xe)){var nt=new Date(1987,1,19),It=0,ot=Object.create?Object.create(null):{},ht=[];for(we=0;we1?1:-1,qt.size=0,qt.type=5;else if(fr.slice(-1)=="/"){for(It=we+1;It=ht.length?-1:It,It=we+1;It=ht.length?-1:It,qt.type=1}else r(ue.FullPaths[we+1]||"")==r(fr)&&(qt.R=we+1),qt.type=2}}}function C(ue,xe){var ce=xe||{};if(ce.fileType=="mad")return Ko(ue,ce);switch(T(ue),ce.fileType){case"zip":return oi(ue,ce)}var pe=function(Wr){for(var gr=0,Ar=0,$n=0;$n0&&(qa<4096?gr+=qa+63>>6:Ar+=qa+511>>9)}}for(var Jo=Wr.FullPaths.length+3>>2,Ds=gr+7>>3,af=gr+127>>7,mh=Ds+Ar+Jo+af,Zl=mh+127>>7,jd=Zl<=109?0:Math.ceil((Zl-109)/127);mh+Zl+jd+127>>7>Zl;)jd=++Zl<=109?0:Math.ceil((Zl-109)/127);var Nl=[1,jd,Zl,af,Jo,Ar,gr,0];return Wr.FileIndex[0].size=gr<<6,Nl[7]=(Wr.FileIndex[0].start=Nl[0]+Nl[1]+Nl[2]+Nl[3]+Nl[4]+Nl[5])+(Nl[6]+7>>3),Nl}(ue),we=Ku(pe[7]<<9),Me=0,nt=0;{for(Me=0;Me<8;++Me)we.write_shift(1,k[Me]);for(Me=0;Me<8;++Me)we.write_shift(2,0);for(we.write_shift(2,62),we.write_shift(2,3),we.write_shift(2,65534),we.write_shift(2,9),we.write_shift(2,6),Me=0;Me<3;++Me)we.write_shift(2,0);for(we.write_shift(4,0),we.write_shift(4,pe[2]),we.write_shift(4,pe[0]+pe[1]+pe[2]+pe[3]-1),we.write_shift(4,0),we.write_shift(4,1<<12),we.write_shift(4,pe[3]?pe[0]+pe[1]+pe[2]-1:I),we.write_shift(4,pe[3]),we.write_shift(-4,pe[1]?pe[0]-1:I),we.write_shift(4,pe[1]),Me=0;Me<109;++Me)we.write_shift(-4,Me>9)));for(It(pe[6]+7>>3);we.l&511;)we.write_shift(-4,G.ENDOFCHAIN);for(nt=Me=0,ot=0;ot=4096)&&(ut.start=nt,It(ht+63>>6)));for(;we.l&511;)we.write_shift(-4,G.ENDOFCHAIN);for(Me=0;Me32&&(console.error("Name "+fr+" will be truncated to "+fr.slice(0,32)),fr=fr.slice(0,32)),ht=2*(fr.length+1),we.write_shift(64,fr,"utf16le"),we.write_shift(2,ht),we.write_shift(1,ut.type),we.write_shift(1,ut.color),we.write_shift(-4,ut.L),we.write_shift(-4,ut.R),we.write_shift(-4,ut.C),ut.clsid)we.write_shift(16,ut.clsid,"hex");else for(ot=0;ot<4;++ot)we.write_shift(4,0);we.write_shift(4,ut.state||0),we.write_shift(4,0),we.write_shift(4,0),we.write_shift(4,0),we.write_shift(4,0),we.write_shift(4,ut.start),we.write_shift(4,ut.size),we.write_shift(4,0)}for(Me=1;Me=4096)if(we.l=ut.start+1<<9,oo&&Buffer.isBuffer(ut.content))ut.content.copy(we,we.l,0,ut.size),we.l+=ut.size+511&-512;else{for(ot=0;ot0&&ut.size<4096)if(oo&&Buffer.isBuffer(ut.content))ut.content.copy(we,we.l,0,ut.size),we.l+=ut.size+63&-64;else{for(ot=0;ot>16|xe>>8|xe)&255}for(var me=typeof Uint8Array<"u",Ce=me?new Uint8Array(1<<8):[],Le=0;Le<1<<8;++Le)Ce[Le]=se(Le);function re(ue,xe){var ce=Ce[ue&255];return xe<=8?ce>>>8-xe:(ce=ce<<8|Ce[ue>>8&255],xe<=16?ce>>>16-xe:(ce=ce<<8|Ce[ue>>16&255],ce>>>24-xe))}function yt(ue,xe){var ce=xe&7,pe=xe>>>3;return(ue[pe]|(ce<=6?0:ue[pe+1]<<8))>>>ce&3}function je(ue,xe){var ce=xe&7,pe=xe>>>3;return(ue[pe]|(ce<=5?0:ue[pe+1]<<8))>>>ce&7}function st(ue,xe){var ce=xe&7,pe=xe>>>3;return(ue[pe]|(ce<=4?0:ue[pe+1]<<8))>>>ce&15}function Nt(ue,xe){var ce=xe&7,pe=xe>>>3;return(ue[pe]|(ce<=3?0:ue[pe+1]<<8))>>>ce&31}function Zt(ue,xe){var ce=xe&7,pe=xe>>>3;return(ue[pe]|(ce<=1?0:ue[pe+1]<<8))>>>ce&127}function qe(ue,xe,ce){var pe=xe&7,we=xe>>>3,Me=(1<>>pe;return ce<8-pe||(nt|=ue[we+1]<<8-pe,ce<16-pe)||(nt|=ue[we+2]<<16-pe,ce<24-pe)||(nt|=ue[we+3]<<24-pe),nt&Me}function ur(ue,xe,ce){var pe=xe&7,we=xe>>>3;return pe<=5?ue[we]|=(ce&7)<>8-pe),xe+3}function Dt(ue,xe,ce){var pe=xe&7,we=xe>>>3;return ce=(ce&1)<>>3;return ce<<=pe,ue[we]|=ce&255,ce>>>=8,ue[we+1]=ce,xe+8}function Oe(ue,xe,ce){var pe=xe&7,we=xe>>>3;return ce<<=pe,ue[we]|=ce&255,ce>>>=8,ue[we+1]=ce&255,ue[we+2]=ce>>>8,xe+16}function J(ue,xe){var ce=ue.length,pe=2*ce>xe?2*ce:xe+5,we=0;if(ce>=xe)return ue;if(oo){var Me=n_e(pe);if(ue.copy)ue.copy(Me);else for(;we>pe-qt,nt=(1<=0;--nt)xe[It|nt<0;)ot[ot.l++]=It[ht++]}return ot.l}function nt(It,ot){for(var ht=0,ut=0,qt=me?new Uint16Array(32768):[];ut0;)ot[ot.l++]=It[ut++];ht=ot.l*8;continue}ht=ur(ot,ht,+(ut+fr==It.length)+2);for(var Wr=0;fr-- >0;){var gr=It[ut];Wr=(Wr<<5^gr)&32767;var Ar=-1,$n=0;if((Ar=qt[Wr])&&(Ar|=ut&-32768,Ar>ut&&(Ar-=32768),Ar2){gr=we[$n],gr<=22?ht=ft(ot,ht,Ce[gr+1]>>1)-1:(ft(ot,ht,3),ht+=5,ft(ot,ht,Ce[gr-23]>>5),ht+=3);var bi=gr<8?0:gr-4>>2;bi>0&&(Oe(ot,ht,$n-ie[gr]),ht+=bi),gr=xe[ut-Ar],ht=ft(ot,ht,Ce[gr]>>3),ht-=3;var qa=gr<4?0:gr-2>>1;qa>0&&(Oe(ot,ht,ut-Ar-oe[gr]),ht+=qa);for(var Jo=0;Jo<$n;++Jo)qt[Wr]=ut&32767,Wr=(Wr<<5^It[ut])&32767,++ut;fr-=$n-1}else gr<=143?gr=gr+48:ht=Dt(ot,ht,1),ht=ft(ot,ht,Ce[gr]),qt[Wr]=ut&32767,++ut}ht=ft(ot,ht,0)-1}return ot.l=(ht+7)/8|0,ot.l}return function(ot,ht){return ot.length<8?Me(ot,ht):nt(ot,ht)}}();function pt(ue){var xe=Ku(50+Math.floor(ue.length*1.1)),ce=wt(ue,xe);return xe.slice(0,ce)}var ar=me?new Uint16Array(32768):We(32768),kt=me?new Uint16Array(32768):We(32768),Dr=me?new Uint16Array(128):We(128),Sr=1,jr=1;function pn(ue,xe){var ce=Nt(ue,xe)+257;xe+=5;var pe=Nt(ue,xe)+1;xe+=5;var we=st(ue,xe)+4;xe+=4;for(var Me=0,nt=me?new Uint8Array(19):We(19),It=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],ot=1,ht=me?new Uint8Array(8):We(8),ut=me?new Uint8Array(8):We(8),qt=nt.length,fr=0;fr>8-gr;for(var Ar=(1<<7-gr)-1;Ar>=0;--Ar)Dr[Wr|Ar<>>=3){case 16:for(Me=3+yt(ue,xe),xe+=2,Wr=$n[$n.length-1];Me-- >0;)$n.push(Wr);break;case 17:for(Me=3+je(ue,xe),xe+=3;Me-- >0;)$n.push(0);break;case 18:for(Me=11+Zt(ue,xe),xe+=7;Me-- >0;)$n.push(0);break;default:$n.push(Wr),ot>>0,It=0,ot=0;(pe&1)==0;){if(pe=je(ue,ce),ce+=3,pe>>>1==0){ce&7&&(ce+=8-(ce&7));var ht=ue[ce>>>3]|ue[(ce>>>3)+1]<<8;if(ce+=32,ht>0)for(!xe&&nt0;)we[Me++]=ue[ce>>>3],ce+=8;continue}else pe>>1==1?(It=9,ot=5):(ce=pn(ue,ce),It=Sr,ot=jr);for(;;){!xe&&nt>>1==1?Qe[ut]:ar[ut];if(ce+=qt&15,qt>>>=4,(qt>>>8&255)===0)we[Me++]=qt;else{if(qt==256)break;qt-=257;var fr=qt<8?0:qt-4>>2;fr>5&&(fr=0);var Wr=Me+ie[qt];fr>0&&(Wr+=qe(ue,ce,fr),ce+=fr),ut=qe(ue,ce,ot),qt=pe>>>1==1?zt[ut]:kt[ut],ce+=qt&15,qt>>>=4;var gr=qt<4?0:qt-2>>1,Ar=oe[qt];for(gr>0&&(Ar+=qe(ue,ce,gr),ce+=gr),!xe&&nt>>3]:[we.slice(0,Me),ce+7>>>3]}function Rn(ue,xe){var ce=ue.slice(ue.l||0),pe=Jn(ce,xe);return ue.l+=pe[1],pe[0]}function hi(ue,xe){if(ue)typeof console<"u"&&console.error(xe);else throw new Error(xe)}function yn(ue,xe){var ce=ue;eh(ce,0);var pe=[],we=[],Me={FileIndex:pe,FullPaths:we};b(Me,{root:xe.root});for(var nt=ce.length-4;(ce[nt]!=80||ce[nt+1]!=75||ce[nt+2]!=5||ce[nt+3]!=6)&&nt>=0;)--nt;ce.l=nt+4,ce.l+=4;var It=ce.read_shift(2);ce.l+=6;var ot=ce.read_shift(4);for(ce.l=ot,nt=0;nt0&&(ce=ce.slice(0,ce.length-1),ce=ce.slice(0,ce.lastIndexOf("/")+1),Me.slice(0,ce.length)!=ce););var nt=(pe[1]||"").match(/boundary="(.*?)"/);if(!nt)throw new Error("MAD cannot find boundary");var It="--"+(nt[1]||""),ot=[],ht=[],ut={FileIndex:ot,FullPaths:ht};b(ut);var qt,fr=0;for(we=0;we=32&&Wr<128&&++qt;var Ar=qt>=fr*4/5;we.push(pe),we.push("Content-Location: "+(ce.root||"file:///C:/SheetJS/")+nt),we.push("Content-Transfer-Encoding: "+(Ar?"quoted-printable":"base64")),we.push("Content-Type: "+ws(It,nt)),we.push(""),we.push(Ar?Os(ut):xl(ut))}return we.push(pe+`--\r +`),we.join(`\r +`)}function Lo(ue){var xe={};return b(xe,ue),xe}function hs(ue,xe,ce,pe){var we=pe&&pe.unsafe;we||b(ue);var Me=!we&&co.find(ue,xe);if(!Me){var nt=ue.FullPaths[0];xe.slice(0,nt.length)==nt?nt=xe:(nt.slice(-1)!="/"&&(nt+="/"),nt=(nt+xe).replace("//","/")),Me={name:i(xe),type:2},ue.FileIndex.push(Me),ue.FullPaths.push(nt),we||co.utils.cfb_gc(ue)}return Me.content=ce,Me.size=ce?ce.length:0,pe&&(pe.CLSID&&(Me.clsid=pe.CLSID),pe.mt&&(Me.mt=pe.mt),pe.ct&&(Me.ct=pe.ct)),Me}function Rs(ue,xe){b(ue);var ce=co.find(ue,xe);if(ce){for(var pe=0;pe3&&(r=!0),i[a].slice(i[a].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+i[a].slice(i[a].length-1));case"D":t*=24;case"H":t*=60;case"M":if(r)t*=60;else throw new Error("Unsupported ISO Duration Field: M")}e+=t*parseInt(i[a],10)}return e}var d_e=new Date("2017-02-19T19:06:09.000Z"),f8e=isNaN(d_e.getFullYear())?new Date("2/19/17"):d_e,KLt=f8e.getFullYear()==2017;function pc(n,e){var t=new Date(n);if(KLt)return e>0?t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3):e<0&&t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3),t;if(n instanceof Date)return n;if(f8e.getFullYear()==1917&&!isNaN(t.getFullYear())){var r=t.getFullYear();return n.indexOf(""+r)>-1||t.setFullYear(t.getFullYear()+100),t}var i=n.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return n.indexOf("Z")>-1&&(a=new Date(a.getTime()-a.getTimezoneOffset()*60*1e3)),a}function t2(n,e){if(oo&&Buffer.isBuffer(n)){if(e&&MD){if(n[0]==255&&n[1]==254)return fO(n.slice(2).toString("utf16le"));if(n[1]==254&&n[2]==255)return fO(JBe(n.slice(2).toString("binary")))}return n.toString("binary")}if(typeof TextDecoder<"u")try{if(e){if(n[0]==255&&n[1]==254)return fO(new TextDecoder("utf-16le").decode(n.slice(2)));if(n[0]==254&&n[1]==255)return fO(new TextDecoder("utf-16be").decode(n.slice(2)))}var t={"\u20AC":"\x80","\u201A":"\x82",\u0192:"\x83","\u201E":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87","\u02C6":"\x88","\u2030":"\x89",\u0160:"\x8A","\u2039":"\x8B",\u0152:"\x8C",\u017D:"\x8E","\u2018":"\x91","\u2019":"\x92","\u201C":"\x93","\u201D":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02DC":"\x98","\u2122":"\x99",\u0161:"\x9A","\u203A":"\x9B",\u0153:"\x9C",\u017E:"\x9E",\u0178:"\x9F"};return Array.isArray(n)&&(n=new Uint8Array(n)),new TextDecoder("latin1").decode(n).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(a){return t[a]||a})}catch{}for(var r=[],i=0;i!=n.length;++i)r.push(String.fromCharCode(n[i]));return r.join("")}function sh(n){if(typeof JSON<"u"&&!Array.isArray(n))return JSON.parse(JSON.stringify(n));if(typeof n!="object"||n==null)return n;if(n instanceof Date)return new Date(n.getTime());var e={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=sh(n[t]));return e}function wo(n,e){for(var t="";t.length3&&ePt.indexOf(e)==-1)return a}else if(e.replace(/[ap]m?/,"").match(/[a-z]/))return a;return o<0||o>8099||n.match(/[^-0-9:,\/\\]/)?a:i}var tPt=function(){var n="abacaba".split(/(:?b)/i).length==5;return function(t,r,i){if(n||typeof r=="string")return t.split(r);for(var a=t.split(r),o=[a[0]],s=1;s\r +`,iPt=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,p_e=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,aPt=/<[^>]*>/g,nf=y8e.match(p_e)?p_e:aPt,oPt=/<\w*:/,sPt=/<(\/?)\w+:/;function Tn(n,e,t){for(var r={},i=0,a=0;i!==n.length&&!((a=n.charCodeAt(i))===32||a===10||a===13);++i);if(e||(r[0]=n.slice(0,i)),i===n.length)return r;var o=n.match(iPt),s=0,l="",u=0,h="",c="",f=1;if(o)for(u=0;u!=o.length;++u){for(c=o[u],a=0;a!=c.length&&c.charCodeAt(a)!==61;++a);for(h=c.slice(0,a).trim();c.charCodeAt(a+1)==32;)++a;for(f=(i=c.charCodeAt(a+1))==34||i==39?1:0,l=c.slice(a+1+f,c.length-f),s=0;s!=h.length&&h.charCodeAt(s)!==58;++s);if(s===h.length)h.indexOf("_")>0&&(h=h.slice(0,h.indexOf("_"))),r[h]=l,t||(r[h.toLowerCase()]=l);else{var d=(s===5&&h.slice(0,5)==="xmlns"?"xmlns":"")+h.slice(s+1);if(r[d]&&h.slice(s-3,s)=="ext")continue;r[d]=l,t||(r[d.toLowerCase()]=l)}}return r}function N0(n){return n.replace(sPt,"<$1")}var m8e={""":'"',"'":"'",">":">","<":"<","&":"&"},lPt=doe(m8e),so=function(){var n=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,e=/_x([\da-fA-F]{4})_/ig;function t(r){var i=r+"",a=i.indexOf("-1?16:10))||s}).replace(e,function(s,l){return String.fromCharCode(parseInt(l,16))});var o=i.indexOf("]]>");return t(i.slice(0,a))+i.slice(a+9,o)+t(i.slice(o+3))}return function(i,a){var o=t(i);return a?o.replace(/\r\n/g,` +`):o}}(),uPt=/[&<>'"]/g,hPt=/[\u0000-\u001f]/g;function qG(n){var e=n+"";return e.replace(uPt,function(t){return lPt[t]}).replace(/\n/g,"
").replace(hPt,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}var g_e=function(){var n=/&#(\d+);/g;function e(t,r){return String.fromCharCode(parseInt(r,10))}return function(r){return r.replace(n,e)}}();function ps(n){switch(n){case 1:case!0:case"1":case"true":return!0;case 0:case!1:case"0":case"false":return!1}return!1}function pX(n){for(var e="",t=0,r=0,i=0,a=0,o=0,s=0;t191&&r<224){o=(r&31)<<6,o|=i&63,e+=String.fromCharCode(o);continue}if(a=n.charCodeAt(t++),r<240){e+=String.fromCharCode((r&15)<<12|(i&63)<<6|a&63);continue}o=n.charCodeAt(t++),s=((r&7)<<18|(i&63)<<12|(a&63)<<6|o&63)-65536,e+=String.fromCharCode(55296+(s>>>10&1023)),e+=String.fromCharCode(56320+(s&1023))}return e}function y_e(n){var e=VS(2*n.length),t,r,i=1,a=0,o=0,s;for(r=0;r>>10&1023),t=56320+(t&1023)),o!==0&&(e[a++]=o&255,e[a++]=o>>>8,o=0),e[a++]=t%256,e[a++]=t>>>8;return e.slice(0,a).toString("ucs2")}function m_e(n){return Sw(n,"binary").toString("utf8")}var j4="foo bar baz\xE2\x98\x83\xF0\x9F\x8D\xA3",As=oo&&(m_e(j4)==pX(j4)&&m_e||y_e(j4)==pX(j4)&&y_e)||pX,fO=oo?function(n){return Sw(n,"utf8").toString("binary")}:function(n){for(var e=[],t=0,r=0,i=0;t>6))),e.push(String.fromCharCode(128+(r&63)));break;case(r>=55296&&r<57344):r-=55296,i=n.charCodeAt(t++)-56320+(r<<10),e.push(String.fromCharCode(240+(i>>18&7))),e.push(String.fromCharCode(144+(i>>12&63))),e.push(String.fromCharCode(128+(i>>6&63))),e.push(String.fromCharCode(128+(i&63)));break;default:e.push(String.fromCharCode(224+(r>>12))),e.push(String.fromCharCode(128+(r>>6&63))),e.push(String.fromCharCode(128+(r&63)))}return e.join("")},LD=function(){var n={};return function(t,r){var i=t+"|"+(r||"");return n[i]?n[i]:n[i]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",r||"")}}(),_8e=function(){var n=[["nbsp"," "],["middot","\xB7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]});return function(t){for(var r=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,` +`).replace(/<[^>]*>/g,""),i=0;i([\\s\\S]*?)","g")}}(),fPt=/<\/?(?:vt:)?variant>/g,dPt=/<(?:vt:)([^>]*)>([\s\S]*)"+e+""}function TU(n){if(oo&&Buffer.isBuffer(n))return n.toString("utf8");if(typeof n=="string")return n;if(typeof Uint8Array<"u"&&n instanceof Uint8Array)return As(p_(hoe(n)));throw new Error("Bad input format: expected Buffer or string")}var Mu=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/](?:[^>=]|="[^"]*?")*)?>/mg,yPt={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},mPt=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];function _Pt(n,e){for(var t=1-2*(n[e+7]>>>7),r=((n[e+7]&127)<<4)+(n[e+6]>>>4&15),i=n[e+6]&15,a=5;a>=0;--a)i=i*256+n[e+a];return r==2047?i==0?t*(1/0):NaN:(r==0?r=-1022:(r-=1023,i+=Math.pow(2,52)),t*Math.pow(2,r-52)*i)}function xPt(n,e,t){var r=(e<0||1/e==-1/0?1:0)<<7,i=0,a=0,o=r?-e:e;isFinite(o)?o==0?i=a=0:(i=Math.floor(Math.log(o)/Math.LN2),a=o*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a>4|r}var x_e=function(n){for(var e=[],t=10240,r=0;r0&&Buffer.isBuffer(n[0][0])?Buffer.concat(n[0].map(function(e){return Buffer.isBuffer(e)?e:Sw(e)})):x_e(n)}:x_e,w_e=function(n,e,t){for(var r=[],i=e;i0?D3(n,e+4,e+4+t-1):""},w8e=S8e,b8e=function(n,e){var t=av(n,e);return t>0?D3(n,e+4,e+4+t-1):""},E8e=b8e,T8e=function(n,e){var t=2*av(n,e);return t>0?D3(n,e+4,e+4+t-1):""},C8e=T8e,A8e=function(e,t){var r=av(e,t);return r>0?poe(e,t+4,t+4+r):""},M8e=A8e,I8e=function(n,e){var t=av(n,e);return t>0?D3(n,e+4,e+4+t):""},L8e=I8e,P8e=function(n,e){return _Pt(n,e)},ZG=P8e,O8e=function(e){return Array.isArray(e)||typeof Uint8Array<"u"&&e instanceof Uint8Array};oo&&(w8e=function(e,t){if(!Buffer.isBuffer(e))return S8e(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},E8e=function(e,t){if(!Buffer.isBuffer(e))return b8e(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},C8e=function(e,t){if(!Buffer.isBuffer(e)||!MD)return T8e(e,t);var r=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r-1)},M8e=function(e,t){if(!Buffer.isBuffer(e)||!MD)return A8e(e,t);var r=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r)},L8e=function(e,t){if(!Buffer.isBuffer(e))return I8e(e,t);var r=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+r)},ZG=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):P8e(e,t)},O8e=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||typeof Uint8Array<"u"&&e instanceof Uint8Array});var WC=function(n,e){return n[e]},R1=function(n,e){return n[e+1]*(1<<8)+n[e]},SPt=function(n,e){var t=n[e+1]*256+n[e];return t<32768?t:(65535-t+1)*-1},av=function(n,e){return n[e+3]*(1<<24)+(n[e+2]<<16)+(n[e+1]<<8)+n[e]},Yb=function(n,e){return n[e+3]<<24|n[e+2]<<16|n[e+1]<<8|n[e]},wPt=function(n,e){return n[e]<<24|n[e+1]<<16|n[e+2]<<8|n[e+3]};function iR(n,e){var t="",r,i,a=[],o,s,l,u;switch(e){case"dbcs":if(u=this.l,oo&&Buffer.isBuffer(this)&&MD)t=this.slice(this.l,this.l+2*n).toString("utf16le");else for(l=0;l0?Yb:wPt)(this,this.l),this.l+=4,r):(i=av(this,this.l),this.l+=4,i);case 8:case-8:if(e==="f")return n==8?i=ZG(this,this.l):i=ZG([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;n=8;case 16:t=x8e(this,this.l,n);break}}return this.l+=n,t}var bPt=function(n,e,t){n[t]=e&255,n[t+1]=e>>>8&255,n[t+2]=e>>>16&255,n[t+3]=e>>>24&255},EPt=function(n,e,t){n[t]=e&255,n[t+1]=e>>8&255,n[t+2]=e>>16&255,n[t+3]=e>>24&255},TPt=function(n,e,t){n[t]=e&255,n[t+1]=e>>>8&255};function CPt(n,e,t){var r=0,i=0;if(t==="dbcs"){for(i=0;i!=e.length;++i)TPt(this,e.charCodeAt(i),this.l+2*i);r=2*e.length}else if(t==="sbcs"||t=="cpstr"){for(e=e.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=e.length;++i)this[this.l+i]=e.charCodeAt(i)&255;r=e.length}else if(t==="hex"){for(;i>8}for(;this.l>>=8,this[this.l+1]=e&255;break;case 3:r=3,this[this.l]=e&255,e>>>=8,this[this.l+1]=e&255,e>>>=8,this[this.l+2]=e&255;break;case 4:r=4,bPt(this,e,this.l);break;case 8:if(r=8,t==="f"){xPt(this,e,this.l);break}case 16:break;case-4:r=4,EPt(this,e,this.l);break}return this.l+=r,this}function R8e(n,e){var t=x8e(this,this.l,n.length>>1);if(t!==n)throw new Error(e+"Expected "+n+" saw "+t);this.l+=n.length>>1}function eh(n,e){n.l=e,n.read_shift=iR,n.chk=R8e,n.write_shift=CPt}function Kc(n,e){n.l+=e}function Ku(n){var e=VS(n);return eh(e,0),e}function B_(n,e,t){if(!!n){var r,i,a;eh(n,n.l||0);for(var o=n.length,s=0,l=0;n.lr.l&&(r=r.slice(0,r.l),r.l=r.length),r.length>0&&n.push(r)),r=null)},a=function(u){return r&&u=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function T_e(n,e,t){var r=sh(n);return r.s=aR(r.s,e.s,t),r.e=aR(r.e,e.s,t),r}function oR(n,e){if(n.cRel&&n.c<0)for(n=sh(n);n.c<0;)n.c+=e>8?16384:256;if(n.rRel&&n.r<0)for(n=sh(n);n.r<0;)n.r+=e>8?1048576:e>5?65536:16384;var t=bo(n);return!n.cRel&&n.cRel!=null&&(t=IPt(t)),!n.rRel&&n.rRel!=null&&(t=APt(t)),t}function gX(n,e){return n.s.r==0&&!n.s.rRel&&n.e.r==(e.biff>=12?1048575:e.biff>=8?65536:16384)&&!n.e.rRel?(n.s.cRel?"":"$")+$o(n.s.c)+":"+(n.e.cRel?"":"$")+$o(n.e.c):n.s.c==0&&!n.s.cRel&&n.e.c==(e.biff>=12?16383:255)&&!n.e.cRel?(n.s.rRel?"":"$")+ys(n.s.r)+":"+(n.e.rRel?"":"$")+ys(n.e.r):oR(n.s,e.biff)+":"+oR(n.e,e.biff)}function goe(n){return parseInt(MPt(n),10)-1}function ys(n){return""+(n+1)}function APt(n){return n.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function MPt(n){return n.replace(/\$(\d+)$/,"$1")}function yoe(n){for(var e=LPt(n),t=0,r=0;r!==e.length;++r)t=26*t+e.charCodeAt(r)-64;return t-1}function $o(n){if(n<0)throw new Error("invalid column "+n);var e="";for(++n;n;n=Math.floor((n-1)/26))e=String.fromCharCode((n-1)%26+65)+e;return e}function IPt(n){return n.replace(/^([A-Z])/,"$$$1")}function LPt(n){return n.replace(/^\$([A-Z])/,"$1")}function PPt(n){return n.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function zc(n){for(var e=0,t=0,r=0;r=48&&i<=57?e=10*e+(i-48):i>=65&&i<=90&&(t=26*t+(i-64))}return{c:t-1,r:e-1}}function bo(n){for(var e=n.c+1,t="";e;e=(e-1)/26|0)t=String.fromCharCode((e-1)%26+65)+t;return t+(n.r+1)}function eT(n){var e=n.indexOf(":");return e==-1?{s:zc(n),e:zc(n)}:{s:zc(n.slice(0,e)),e:zc(n.slice(e+1))}}function lo(n,e){return typeof e>"u"||typeof e=="number"?lo(n.s,n.e):(typeof n!="string"&&(n=bo(n)),typeof e!="string"&&(e=bo(e)),n==e?n:n+":"+e)}function OPt(n,e){if(!n&&!(e&&e.biff<=5&&e.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(n)?"'"+n.replace(/'/g,"''")+"'":n}function cu(n){var e={s:{c:0,r:0},e:{c:0,r:0}},t=0,r=0,i=0,a=n.length;for(t=0;r26);++r)t=26*t+i;for(e.s.c=--t,t=0;r9);++r)t=10*t+i;if(e.s.r=--t,r===a||i!=10)return e.e.c=e.s.c,e.e.r=e.s.r,e;for(++r,t=0;r!=a&&!((i=n.charCodeAt(r)-64)<1||i>26);++r)t=26*t+i;for(e.e.c=--t,t=0;r!=a&&!((i=n.charCodeAt(r)-48)<0||i>9);++r)t=10*t+i;return e.e.r=--t,e}function C_e(n,e){var t=n.t=="d"&&e instanceof Date;if(n.z!=null)try{return n.w=Cv(n.z,t?Zc(e):e)}catch{}try{return n.w=Cv((n.XF||{}).numFmtId||(t?14:0),t?Zc(e):e)}catch{return""+e}}function $S(n,e,t){return n==null||n.t==null||n.t=="z"?"":n.w!==void 0?n.w:(n.t=="d"&&!n.z&&t&&t.dateNF&&(n.z=t.dateNF),n.t=="e"?nT[n.v]||n.v:e==null?C_e(n,n.v):C_e(n,e))}function ww(n,e){var t=e&&e.sheet?e.sheet:"Sheet1",r={};return r[t]=n,{SheetNames:[t],Sheets:r}}function D8e(n,e,t){var r=t||{},i=n?n["!data"]!=null:r.dense,a=n||{};i&&!a["!data"]&&(a["!data"]=[]);var o=0,s=0;if(a&&r.origin!=null){if(typeof r.origin=="number")o=r.origin;else{var l=typeof r.origin=="string"?zc(r.origin):r.origin;o=l.r,s=l.c}a["!ref"]||(a["!ref"]="A1:A1")}var u={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var h=cu(a["!ref"]);u.s.c=h.s.c,u.s.r=h.s.r,u.e.c=Math.max(u.e.c,h.e.c),u.e.r=Math.max(u.e.r,h.e.r),o==-1&&(u.e.r=o=h.e.r+1)}for(var c=[],f=0;f!=e.length;++f)if(!!e[f]){if(!Array.isArray(e[f]))throw new Error("aoa_to_sheet expects an array of arrays");var d=o+f,v=""+(d+1);i&&(a["!data"][d]||(a["!data"][d]=[]),c=a["!data"][d]);for(var p=0;p!=e[f].length;++p)if(!(typeof e[f][p]>"u")){var g={v:e[f][p]},m=s+p;if(u.s.r>d&&(u.s.r=d),u.s.c>m&&(u.s.c=m),u.e.r>2;return t?i/100:i}function N8e(n){var e={s:{},e:{}};return e.s.r=n.read_shift(4),e.e.r=n.read_shift(4),e.s.c=n.read_shift(4),e.e.c=n.read_shift(4),e}var rT=N8e;function Bc(n){if(n.length-n.l<8)throw"XLS Xnum Buffer underflow";return n.read_shift(8,"f")}function BPt(n){var e={},t=n.read_shift(1),r=t>>>1,i=n.read_shift(1),a=n.read_shift(2,"i"),o=n.read_shift(1),s=n.read_shift(1),l=n.read_shift(1);switch(n.l++,r){case 0:e.auto=1;break;case 1:e.index=i;var u=RE[i];u&&(e.rgb=OD(u));break;case 2:e.rgb=OD([o,s,l]);break;case 3:e.theme=i;break}return a!=0&&(e.tint=a>0?a/32767:a/32768),e}function GPt(n){var e=n.read_shift(1);n.l++;var t={fBold:e&1,fItalic:e&2,fUnderline:e&4,fStrikeout:e&8,fOutline:e&16,fShadow:e&32,fCondense:e&64,fExtend:e&128};return t}function k8e(n,e){var t={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},r=n.read_shift(4);switch(r){case 0:return"";case 4294967295:case 4294967294:return t[n.read_shift(4)]||""}if(r>400)throw new Error("Unsupported Clipboard: "+r.toString(16));return n.l-=4,n.read_shift(0,e==1?"lpstr":"lpwstr")}function zPt(n){return k8e(n,1)}function UPt(n){return k8e(n,2)}var Soe=2,nd=3,X4=11,A_e=12,KG=19,Y4=64,VPt=65,$Pt=71,WPt=4108,HPt=4126,Lh=80,F8e=81,jPt=[Lh,F8e],XPt={1:{n:"CodePage",t:Soe},2:{n:"Category",t:Lh},3:{n:"PresentationFormat",t:Lh},4:{n:"ByteCount",t:nd},5:{n:"LineCount",t:nd},6:{n:"ParagraphCount",t:nd},7:{n:"SlideCount",t:nd},8:{n:"NoteCount",t:nd},9:{n:"HiddenCount",t:nd},10:{n:"MultimediaClipCount",t:nd},11:{n:"ScaleCrop",t:X4},12:{n:"HeadingPairs",t:WPt},13:{n:"TitlesOfParts",t:HPt},14:{n:"Manager",t:Lh},15:{n:"Company",t:Lh},16:{n:"LinksUpToDate",t:X4},17:{n:"CharacterCount",t:nd},19:{n:"SharedDoc",t:X4},22:{n:"HyperlinksChanged",t:X4},23:{n:"AppVersion",t:nd,p:"version"},24:{n:"DigSig",t:VPt},26:{n:"ContentType",t:Lh},27:{n:"ContentStatus",t:Lh},28:{n:"Language",t:Lh},29:{n:"Version",t:Lh},255:{},2147483648:{n:"Locale",t:KG},2147483651:{n:"Behavior",t:KG},1919054434:{}},YPt={1:{n:"CodePage",t:Soe},2:{n:"Title",t:Lh},3:{n:"Subject",t:Lh},4:{n:"Author",t:Lh},5:{n:"Keywords",t:Lh},6:{n:"Comments",t:Lh},7:{n:"Template",t:Lh},8:{n:"LastAuthor",t:Lh},9:{n:"RevNumber",t:Lh},10:{n:"EditTime",t:Y4},11:{n:"LastPrinted",t:Y4},12:{n:"CreatedDate",t:Y4},13:{n:"ModifiedDate",t:Y4},14:{n:"PageCount",t:nd},15:{n:"WordCount",t:nd},16:{n:"CharCount",t:nd},17:{n:"Thumbnail",t:$Pt},18:{n:"Application",t:Lh},19:{n:"DocSecurity",t:nd},255:{},2147483648:{n:"Locale",t:KG},2147483651:{n:"Behavior",t:KG},1919054434:{}},M_e={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},qPt=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function ZPt(n){return n.map(function(e){return[e>>16&255,e>>8&255,e&255]})}var KPt=ZPt([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,0,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),RE=sh(KPt),nT={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},B8e={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},G8e=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"],I_e={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};function JPt(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function QPt(n){var e=JPt();if(!n||!n.match)return e;var t={};if((n.match(nf)||[]).forEach(function(r){var i=Tn(r);switch(i[0].replace(oPt,"<")){case"0?e.calcchains[0]:"",e.sst=e.strs.length>0?e.strs[0]:"",e.style=e.styles.length>0?e.styles[0]:"",e.defaults=t,delete e.calcchains,e}var vA={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",CONN:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function _Q(n){var e=n.lastIndexOf("/");return n.slice(0,e+1)+"_rels/"+n.slice(e+1)+".rels"}function sR(n,e){var t={"!id":{}};if(!n)return t;e.charAt(0)!=="/"&&(e="/"+e);var r={};return(n.match(nf)||[]).forEach(function(i){var a=Tn(i);if(a[0]==="]*>([\\s\\S]*?)")}return n}();function z8e(n){var e={};n=As(n);for(var t=0;t0&&(e[r[1]]=so(i[1])),r[2]==="date"&&e[r[1]]&&(e[r[1]]=pc(e[r[1]]))}return e}var nOt=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function U8e(n,e,t,r){var i=[];if(typeof n=="string")i=__e(n,r);else for(var a=0;a0)for(var u=0;u!==i.length;u+=2){switch(l=+i[u+1].v,i[u].v){case"Worksheets":case"\u5DE5\u4F5C\u8868":case"\u041B\u0438\u0441\u0442\u044B":case"\u0623\u0648\u0631\u0627\u0642 \u0627\u0644\u0639\u0645\u0644":case"\u30EF\u30FC\u30AF\u30B7\u30FC\u30C8":case"\u05D2\u05DC\u05D9\u05D5\u05E0\u05D5\u05EA \u05E2\u05D1\u05D5\u05D3\u05D4":case"Arbeitsbl\xE4tter":case"\xC7al\u0131\u015Fma Sayfalar\u0131":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de c\xE1lculo":case"Planilhas":case"Regneark":case"Hojas de c\xE1lculo":case"Werkbladen":t.Worksheets=l,t.SheetNames=o.slice(s,s+l);break;case"Named Ranges":case"Rangos con nombre":case"\u540D\u524D\u4ED8\u304D\u4E00\u89A7":case"Benannte Bereiche":case"Navngivne omr\xE5der":t.NamedRanges=l,t.DefinedNames=o.slice(s,s+l);break;case"Charts":case"Diagramme":t.Chartsheets=l,t.ChartNames=o.slice(s,s+l);break}s+=l}}function iOt(n,e,t){var r={};return e||(e={}),n=As(n),nOt.forEach(function(i){var a=(n.match(LD(i[0]))||[])[1];switch(i[2]){case"string":a&&(e[i[1]]=so(a));break;case"bool":e[i[1]]=a==="true";break;case"raw":var o=n.match(new RegExp("<"+i[0]+"[^>]*>([\\s\\S]*?)"));o&&o.length>0&&(r[i[1]]=o[1]);break}}),r.HeadingPairs&&r.TitlesOfParts&&U8e(r.HeadingPairs,r.TitlesOfParts,e,t),e}var aOt=/<[^>]+>[^<]*/g;function oOt(n,e){var t={},r="",i=n.match(aOt);if(i)for(var a=0;a!=i.length;++a){var o=i[a],s=Tn(o);switch(N0(s[0])){case"":r=null;break;default:if(o.indexOf(""),u=l[0].slice(4),h=l[1];switch(u){case"lpstr":case"bstr":case"lpwstr":t[r]=so(h);break;case"bool":t[r]=ps(h);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":t[r]=parseInt(h,10);break;case"r4":case"r8":case"decimal":t[r]=parseFloat(h);break;case"filetime":case"date":t[r]=pc(h);break;case"cy":case"error":t[r]=so(h);break;default:if(u.slice(-1)=="/")break;e.WTF&&typeof console<"u"&&console.warn("Unexpected",o,u,l)}}else if(o.slice(0,2)!==">2+1<<2),r}function H8e(n){var e=n.read_shift(4),t=n.slice(n.l,n.l+e);return n.l+=e,(e&3)>0&&(n.l+=4-(e&3)&3),t}function vOt(n){var e={};return e.Size=n.read_shift(4),n.l+=e.Size+3-(e.Size-1)%4,e}function JG(n,e,t){var r=n.read_shift(2),i,a=t||{};if(n.l+=2,e!==A_e&&r!==e&&jPt.indexOf(e)===-1&&!((e&65534)==4126&&(r&65534)==4126))throw new Error("Expected type "+e+" saw "+r);switch(e===A_e?r:e){case 2:return i=n.read_shift(2,"i"),a.raw||(n.l+=2),i;case 3:return i=n.read_shift(4,"i"),i;case 11:return n.read_shift(4)!==0;case 19:return i=n.read_shift(4),i;case 30:return V8e(n,r,4).replace(Df,"");case 31:return $8e(n);case 64:return woe(n);case 65:return H8e(n);case 71:return vOt(n);case 80:return xQ(n,r,!a.raw).replace(Df,"");case 81:return uOt(n,r).replace(Df,"");case 4108:return dOt(n);case 4126:case 4127:return r==4127?hOt(n):cOt(n);default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+r)}}function P_e(n,e){var t=n.l,r=n.read_shift(4),i=n.read_shift(4),a=[],o=0,s=0,l=-1,u={};for(o=0;o!=i;++o){var h=n.read_shift(4),c=n.read_shift(4);a[o]=[h,c+t]}a.sort(function(y,_){return y[1]-_[1]});var f={};for(o=0;o!=i;++o){if(n.l!==a[o][1]){var d=!0;if(o>0&&e)switch(e[a[o-1][0]].t){case 2:n.l+2===a[o][1]&&(n.l+=2,d=!1);break;case 80:n.l<=a[o][1]&&(n.l=a[o][1],d=!1);break;case 4108:n.l<=a[o][1]&&(n.l=a[o][1],d=!1);break}if((!e||o==0)&&n.l<=a[o][1]&&(d=!1,n.l=a[o][1]),d)throw new Error("Read Error: Expected address "+a[o][1]+" at "+n.l+" :"+o)}if(e){if(a[o][0]==0&&a.length>o+1&&a[o][1]==a[o+1][1])continue;var v=e[a[o][0]];if(f[v.n]=JG(n,v.t,{raw:!0}),v.p==="version"&&(f[v.n]=String(f[v.n]>>16)+"."+("0000"+String(f[v.n]&65535)).slice(-4)),v.n=="CodePage")switch(f[v.n]){case 0:f[v.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:r0(s=f[v.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+f[v.n])}}else if(a[o][0]===1){if(s=f.CodePage=JG(n,Soe),r0(s),l!==-1){var p=n.l;n.l=a[l][1],u=L_e(n,s),n.l=p}}else if(a[o][0]===0){if(s===0){l=o,n.l=a[o+1][1];continue}u=L_e(n,s)}else{var g=u[a[o][0]],m;switch(n[n.l]){case 65:n.l+=4,m=H8e(n);break;case 30:n.l+=4,m=xQ(n,n[n.l-4]).replace(/\u0000+$/,"");break;case 31:n.l+=4,m=xQ(n,n[n.l-4]).replace(/\u0000+$/,"");break;case 3:n.l+=4,m=n.read_shift(4,"i");break;case 19:n.l+=4,m=n.read_shift(4);break;case 5:n.l+=4,m=n.read_shift(8,"f");break;case 11:n.l+=4,m=tu(n,4);break;case 64:n.l+=4,m=pc(woe(n));break;default:throw new Error("unparsed value: "+n[n.l])}f[g]=m}}return n.l=t+r,f}function O_e(n,e,t){var r=n.content;if(!r)return{};eh(r,0);var i,a,o,s,l=0;r.chk("feff","Byte Order: "),r.read_shift(2);var u=r.read_shift(4),h=r.read_shift(16);if(h!==co.utils.consts.HEADER_CLSID&&h!==t)throw new Error("Bad PropertySet CLSID "+h);if(i=r.read_shift(4),i!==1&&i!==2)throw new Error("Unrecognized #Sets: "+i);if(a=r.read_shift(16),s=r.read_shift(4),i===1&&s!==r.l)throw new Error("Length mismatch: "+s+" !== "+r.l);i===2&&(o=r.read_shift(16),l=r.read_shift(4));var c=P_e(r,e),f={SystemIdentifier:u};for(var d in c)f[d]=c[d];if(f.FMTID=a,i===1)return f;if(l-r.l==2&&(r.l+=2),r.l!==l)throw new Error("Length mismatch 2: "+r.l+" !== "+l);var v;try{v=P_e(r,null)}catch{}for(d in v)f[d]=v[d];return f.FMTID=[a,o],f}function cx(n,e){return n.read_shift(e),null}function pOt(n,e,t){for(var r=[],i=n.l+e;n.l=12?2:1),i="sbcs-cont",a=Mp;if(t&&t.biff>=8&&(Mp=1200),!t||t.biff==8){var o=n.read_shift(1);o&&(i="dbcs-cont")}else t.biff==12&&(i="wstr");t.biff>=2&&t.biff<=5&&(i="cpstr");var s=r?n.read_shift(r,i):"";return Mp=a,s}function yOt(n){var e=Mp;Mp=1200;var t=n.read_shift(2),r=n.read_shift(1),i=r&4,a=r&8,o=1+(r&1),s=0,l,u={};a&&(s=n.read_shift(2)),i&&(l=n.read_shift(4));var h=o==2?"dbcs-cont":"sbcs-cont",c=t===0?"":n.read_shift(t,h);return a&&(n.l+=4*s),i&&(n.l+=l),u.t=c,a||(u.raw=""+u.t+"",u.r=u.t),Mp=e,u}function r2(n,e,t){var r;if(t){if(t.biff>=2&&t.biff<=5)return n.read_shift(e,"cpstr");if(t.biff>=12)return n.read_shift(e,"dbcs-cont")}var i=n.read_shift(1);return i===0?r=n.read_shift(e,"sbcs-cont"):r=n.read_shift(e,"dbcs-cont"),r}function k3(n,e,t){var r=n.read_shift(t&&t.biff==2?1:2);return r===0?(n.l++,""):r2(n,r,t)}function iT(n,e,t){if(t.biff>5)return k3(n,e,t);var r=n.read_shift(1);return r===0?(n.l++,""):n.read_shift(r,t.biff<=4||!n.lens?"cpstr":"sbcs-cont")}function mOt(n){var e=n.read_shift(1);n.l++;var t=n.read_shift(2);return n.l+=2,[e,t]}function _Ot(n){var e=n.read_shift(4),t=n.l,r=!1;e>24&&(n.l+=e-24,n.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(r=!0),n.l=t);var i=n.read_shift((r?e-24:e)>>1,"utf16le").replace(Df,"");return r&&(n.l+=24),i}function xOt(n){for(var e=n.read_shift(2),t="";e-- >0;)t+="../";var r=n.read_shift(0,"lpstr-ansi");if(n.l+=2,n.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var i=n.read_shift(4);if(i===0)return t+r.replace(/\\/g,"/");var a=n.read_shift(4);if(n.read_shift(2)!=3)throw new Error("Bad FileMoniker");var o=n.read_shift(a>>1,"utf16le").replace(Df,"");return t+o}function SOt(n,e){var t=n.read_shift(16);switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":return _Ot(n);case"0303000000000000c000000000000046":return xOt(n);default:throw new Error("Unsupported Moniker "+t)}}function q4(n){var e=n.read_shift(4),t=e>0?n.read_shift(e,"utf16le").replace(Df,""):"";return t}function wOt(n,e){var t=n.l+e,r=n.read_shift(4);if(r!==2)throw new Error("Unrecognized streamVersion: "+r);var i=n.read_shift(2);n.l+=2;var a,o,s,l,u="",h,c;i&16&&(a=q4(n,t-n.l)),i&128&&(o=q4(n,t-n.l)),(i&257)===257&&(s=q4(n,t-n.l)),(i&257)===1&&(l=SOt(n,t-n.l)),i&8&&(u=q4(n,t-n.l)),i&32&&(h=n.read_shift(16)),i&64&&(c=woe(n)),n.l=t;var f=o||s||l||"";f&&u&&(f+="#"+u),f||(f="#"+u),i&2&&f.charAt(0)=="/"&&f.charAt(1)!="/"&&(f="file://"+f);var d={Target:f};return h&&(d.guid=h),c&&(d.time=c),a&&(d.Tooltip=a),d}function X8e(n){var e=n.read_shift(1),t=n.read_shift(1),r=n.read_shift(1),i=n.read_shift(1);return[e,t,r,i]}function Y8e(n,e){var t=X8e(n);return t[3]=0,t}function Pm(n){var e=n.read_shift(2),t=n.read_shift(2),r=n.read_shift(2);return{r:e,c:t,ixfe:r}}function bOt(n){var e=n.read_shift(2),t=n.read_shift(2);return n.l+=8,{type:e,flags:t}}function EOt(n,e,t){return e===0?"":iT(n,e,t)}function TOt(n,e,t){var r=t.biff>8?4:2,i=n.read_shift(r),a=n.read_shift(r,"i"),o=n.read_shift(r,"i");return[i,a,o]}function q8e(n){var e=n.read_shift(2),t=xoe(n);return[e,t]}function COt(n,e,t){n.l+=4,e-=4;var r=n.l+e,i=N3(n,e,t),a=n.read_shift(2);if(r-=n.l,a!==r)throw new Error("Malformed AddinUdf: padding = "+r+" != "+a);return n.l+=a,i}function CU(n){var e=n.read_shift(2),t=n.read_shift(2),r=n.read_shift(2),i=n.read_shift(2);return{s:{c:r,r:e},e:{c:i,r:t}}}function Z8e(n){var e=n.read_shift(2),t=n.read_shift(2),r=n.read_shift(1),i=n.read_shift(1);return{s:{c:r,r:e},e:{c:i,r:t}}}var AOt=Z8e;function K8e(n){n.l+=4;var e=n.read_shift(2),t=n.read_shift(2),r=n.read_shift(2);return n.l+=12,[t,e,r]}function MOt(n){var e={};return n.l+=4,n.l+=16,e.fSharedNote=n.read_shift(2),n.l+=4,e}function IOt(n){var e={};return n.l+=4,n.cf=n.read_shift(2),e}function Ac(n){n.l+=2,n.l+=n.read_shift(2)}var LOt={0:Ac,4:Ac,5:Ac,6:Ac,7:IOt,8:Ac,9:Ac,10:Ac,11:Ac,12:Ac,13:MOt,14:Ac,15:Ac,16:Ac,17:Ac,18:Ac,19:Ac,20:Ac,21:K8e};function POt(n,e){for(var t=n.l+e,r=[];n.l=2&&(t.dt=n.read_shift(2),n.l-=2),t.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(e>6)throw new Error("Unexpected BIFF Ver "+t.BIFFVer)}return n.read_shift(e),t}function OOt(n,e){return e===0||n.read_shift(2),1200}function ROt(n,e,t){if(t.enc)return n.l+=e,"";var r=n.l,i=iT(n,0,t);return n.read_shift(e+r-n.l),i}function DOt(n,e,t){var r=t&&t.biff==8||e==2?n.read_shift(2):(n.l+=e,0);return{fDialog:r&16,fBelow:r&64,fRight:r&128}}function NOt(n,e,t){var r=n.read_shift(4),i=n.read_shift(1)&3,a=n.read_shift(1);switch(a){case 0:a="Worksheet";break;case 1:a="Macrosheet";break;case 2:a="Chartsheet";break;case 6:a="VBAModule";break}var o=N3(n,0,t);return o.length===0&&(o="Sheet1"),{pos:r,hs:i,dt:a,name:o}}function kOt(n,e){for(var t=n.l+e,r=n.read_shift(4),i=n.read_shift(4),a=[],o=0;o!=i&&n.l>15),i&=32767);var a={Unsynced:r&1,DyZero:(r&2)>>1,ExAsc:(r&4)>>2,ExDsc:(r&8)>>3};return[a,i]}function UOt(n){var e=n.read_shift(2),t=n.read_shift(2),r=n.read_shift(2),i=n.read_shift(2),a=n.read_shift(2),o=n.read_shift(2),s=n.read_shift(2),l=n.read_shift(2),u=n.read_shift(2);return{Pos:[e,t],Dim:[r,i],Flags:a,CurTab:o,FirstTab:s,Selected:l,TabRatio:u}}function VOt(n,e,t){if(t&&t.biff>=2&&t.biff<5)return{};var r=n.read_shift(2);return{RTL:r&64}}function $Ot(){}function WOt(n,e,t){var r={dyHeight:n.read_shift(2),fl:n.read_shift(2)};switch(t&&t.biff||8){case 2:break;case 3:case 4:n.l+=2;break;default:n.l+=10;break}return r.name=N3(n,0,t),r}function HOt(n){var e=Pm(n);return e.isst=n.read_shift(4),e}function jOt(n,e,t){t.biffguess&&t.biff==2&&(t.biff=5);var r=n.l+e,i=Pm(n);t.biff==2&&n.l++;var a=k3(n,r-n.l,t);return i.val=a,i}function XOt(n,e,t){var r=n.read_shift(2),i=iT(n,0,t);return[r,i]}var YOt=iT;function D_e(n,e,t){var r=n.l+e,i=t.biff==8||!t.biff?4:2,a=n.read_shift(i),o=n.read_shift(i),s=n.read_shift(2),l=n.read_shift(2);return n.l=r,{s:{r:a,c:s},e:{r:o,c:l}}}function qOt(n){var e=n.read_shift(2),t=n.read_shift(2),r=q8e(n);return{r:e,c:t,ixfe:r[0],rknum:r[1]}}function ZOt(n,e){for(var t=n.l+e-2,r=n.read_shift(2),i=n.read_shift(2),a=[];n.l>26],r.cellStyles&&(i.alc=a&7,i.fWrap=a>>3&1,i.alcV=a>>4&7,i.fJustLast=a>>7&1,i.trot=a>>8&255,i.cIndent=a>>16&15,i.fShrinkToFit=a>>20&1,i.iReadOrder=a>>22&2,i.fAtrNum=a>>26&1,i.fAtrFnt=a>>27&1,i.fAtrAlc=a>>28&1,i.fAtrBdr=a>>29&1,i.fAtrPat=a>>30&1,i.fAtrProt=a>>31&1,i.dgLeft=o&15,i.dgRight=o>>4&15,i.dgTop=o>>8&15,i.dgBottom=o>>12&15,i.icvLeft=o>>16&127,i.icvRight=o>>23&127,i.grbitDiag=o>>30&3,i.icvTop=s&127,i.icvBottom=s>>7&127,i.icvDiag=s>>14&127,i.dgDiag=s>>21&15,i.icvFore=l&127,i.icvBack=l>>7&127,i.fsxButton=l>>14&1),i}function QOt(n,e,t){var r={};return r.ifnt=n.read_shift(2),r.numFmtId=n.read_shift(2),r.flags=n.read_shift(2),r.fStyle=r.flags>>2&1,e-=6,r.data=JOt(n,e,r.fStyle,t),r}function eRt(n){n.l+=4;var e=[n.read_shift(2),n.read_shift(2)];if(e[0]!==0&&e[0]--,e[1]!==0&&e[1]--,e[0]>7||e[1]>7)throw new Error("Bad Gutters: "+e.join("|"));return e}function N_e(n,e,t){var r=Pm(n);(t.biff==2||e==9)&&++n.l;var i=gOt(n);return r.val=i,r.t=i===!0||i===!1?"b":"e",r}function tRt(n,e,t){t.biffguess&&t.biff==2&&(t.biff=5);var r=Pm(n),i=Bc(n);return r.val=i,r}var k_e=EOt;function rRt(n,e,t){var r=n.l+e,i=n.read_shift(2),a=n.read_shift(2);if(t.sbcch=a,a==1025||a==14849)return[a,i];if(a<1||a>255)throw new Error("Unexpected SupBook type: "+a);for(var o=r2(n,a),s=[];r>n.l;)s.push(k3(n));return[a,i,o,s]}function F_e(n,e,t){var r=n.read_shift(2),i,a={fBuiltIn:r&1,fWantAdvise:r>>>1&1,fWantPict:r>>>2&1,fOle:r>>>3&1,fOleLink:r>>>4&1,cf:r>>>5&1023,fIcon:r>>>15&1};return t.sbcch===14849&&(i=COt(n,e-2,t)),a.body=i||n.read_shift(e-2),typeof i=="string"&&(a.Name=i),a}function B_e(n,e,t){var r=n.l+e,i=n.read_shift(2),a=n.read_shift(1),o=n.read_shift(1),s=n.read_shift(t&&t.biff==2?1:2),l=0;(!t||t.biff>=5)&&(t.biff!=5&&(n.l+=2),l=n.read_shift(2),t.biff==5&&(n.l+=2),n.l+=4);var u=r2(n,o,t);i&32&&(u=G8e[u.charCodeAt(0)]);var h=r-n.l;t&&t.biff==2&&--h;var c=r==n.l||s===0||!(h>0)?[]:F3t(n,h,t,s);return{chKey:a,Name:u,itab:l,rgce:c}}function J8e(n,e,t){if(t.biff<8||!(t.biff>8)&&e==n[n.l]+(n[n.l+1]==3?1:0)+1)return G_e(n,e,t);for(var r=[],i=n.l+e,a=n.read_shift(t.biff>8?4:2);a--!==0;)r.push(TOt(n,t.biff>8?12:6,t));if(n.l!=i)throw new Error("Bad ExternSheet: "+n.l+" != "+i);return r}function G_e(n,e,t){n[n.l+1]==3&&n[n.l]++;var r=N3(n,e,t);return r.charCodeAt(0)==3?r.slice(1):r}function nRt(n,e,t){if(t.biff<8){n.l+=e;return}var r=n.read_shift(2),i=n.read_shift(2),a=r2(n,r,t),o=r2(n,i,t);return[a,o]}function iRt(n,e,t){var r=Z8e(n);n.l++;var i=n.read_shift(1);return e-=8,[B3t(n,e,t),i,r]}function z_e(n,e,t){var r=AOt(n);switch(t.biff){case 2:n.l++,e-=7;break;case 3:case 4:n.l+=2,e-=8;break;default:n.l+=6,e-=12}return[r,N3t(n,e,t)]}function aRt(n){var e=n.read_shift(4)!==0,t=n.read_shift(4)!==0,r=n.read_shift(4);return[e,t,r]}function oRt(n,e,t){if(!(t.biff<8)){var r=n.read_shift(2),i=n.read_shift(2),a=n.read_shift(2),o=n.read_shift(2),s=iT(n,0,t);return t.biff<8&&n.read_shift(1),[{r,c:i},s,o,a]}}function sRt(n,e,t){return oRt(n,e,t)}function lRt(n,e){for(var t=[],r=n.read_shift(2);r--;)t.push(CU(n));return t}function uRt(n,e,t){if(t&&t.biff<8)return cRt(n,e,t);var r=K8e(n),i=POt(n,e-22,r[1]);return{cmo:r,ft:i}}var hRt={8:function(n,e){var t=n.l+e;n.l+=10;var r=n.read_shift(2);n.l+=4,n.l+=2,n.l+=2,n.l+=2,n.l+=4;var i=n.read_shift(1);return n.l+=i,n.l=t,{fmt:r}}};function cRt(n,e,t){n.l+=4;var r=n.read_shift(2),i=n.read_shift(2),a=n.read_shift(2);n.l+=2,n.l+=2,n.l+=2,n.l+=2,n.l+=2,n.l+=2,n.l+=2,n.l+=2,n.l+=2,n.l+=6,e-=36;var o=[];return o.push((hRt[r]||Kc)(n,e,t)),{cmo:[i,r,a],ft:o}}function fRt(n,e,t){var r=n.l,i="";try{n.l+=4;var a=(t.lastobj||{cmo:[0,0]}).cmo[1],o;[0,5,7,11,12,14].indexOf(a)==-1?n.l+=6:o=mOt(n,6,t);var s=n.read_shift(2);n.read_shift(2),nu(n,2);var l=n.read_shift(2);n.l+=l;for(var u=1;u=(h?s:2*s))break}if(i.length!==s&&i.length!==s*2)throw new Error("cchText: "+s+" != "+i.length);return n.l=r+e,{t:i}}catch{return n.l=r+e,{t:i}}}function dRt(n,e){var t=CU(n);n.l+=16;var r=wOt(n,e-24);return[t,r]}function vRt(n,e){n.read_shift(2);var t=CU(n),r=n.read_shift((e-10)/2,"dbcs-cont");return r=r.replace(Df,""),[t,r]}function pRt(n){var e=[0,0],t;return t=n.read_shift(2),e[0]=M_e[t]||t,t=n.read_shift(2),e[1]=M_e[t]||t,e}function gRt(n){for(var e=n.read_shift(2),t=[];e-- >0;)t.push(Y8e(n));return t}function yRt(n){for(var e=n.read_shift(2),t=[];e-- >0;)t.push(Y8e(n));return t}function mRt(n){n.l+=2;var e={cxfs:0,crc:0};return e.cxfs=n.read_shift(2),e.crc=n.read_shift(4),e}function Q8e(n,e,t){if(!t.cellStyles)return Kc(n,e);var r=t&&t.biff>=12?4:2,i=n.read_shift(r),a=n.read_shift(r),o=n.read_shift(r),s=n.read_shift(r),l=n.read_shift(2);r==2&&(n.l+=2);var u={s:i,e:a,w:o,ixfe:s,flags:l};return(t.biff>=5||!t.biff)&&(u.level=l>>8&7),u}function _Rt(n,e){var t={};return e<32||(n.l+=16,t.header=Bc(n),t.footer=Bc(n),n.l+=2),t}function xRt(n,e,t){var r={area:!1};if(t.biff!=5)return n.l+=e,r;var i=n.read_shift(1);return n.l+=3,i&16&&(r.area=!0),r}var SRt=Pm,wRt=j8e,bRt=k3;function ERt(n){var e=n.read_shift(2),t=n.read_shift(2),r=n.read_shift(4),i={fmt:e,env:t,len:r,data:n.slice(n.l,n.l+r)};return n.l+=r,i}function TRt(n,e,t){t.biffguess&&t.biff==5&&(t.biff=2);var r=Pm(n);++n.l;var i=iT(n,e-7,t);return r.t="str",r.val=i,r}function CRt(n){var e=Pm(n);++n.l;var t=Bc(n);return e.t="n",e.val=t,e}function ARt(n){var e=Pm(n);++n.l;var t=n.read_shift(2);return e.t="n",e.val=t,e}function MRt(n){var e=n.read_shift(1);return e===0?(n.l++,""):n.read_shift(e,"sbcs-cont")}function IRt(n,e){n.l+=6,n.l+=2,n.l+=1,n.l+=3,n.l+=1,n.l+=e-13}function LRt(n,e,t){var r=n.l+e,i=Pm(n),a=n.read_shift(2),o=r2(n,a,t);return n.l=r,i.t="str",i.val=o,i}var PRt=[2,3,48,49,131,139,140,245],U_e=function(){var n={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},e=doe({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function t(s,l){var u=[],h=VS(1);switch(l.type){case"base64":h=iv(Tv(s));break;case"binary":h=iv(s);break;case"buffer":case"array":h=s;break}eh(h,0);var c=h.read_shift(1),f=!!(c&136),d=!1,v=!1;switch(c){case 2:break;case 3:break;case 48:d=!0,f=!0;break;case 49:d=!0,f=!0;break;case 131:break;case 139:break;case 140:v=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+c.toString(16))}var p=0,g=521;c==2&&(p=h.read_shift(2)),h.l+=3,c!=2&&(p=h.read_shift(4)),p>1048576&&(p=1e6),c!=2&&(g=h.read_shift(2));var m=h.read_shift(2);l.codepage,c!=2&&(h.l+=16,h.read_shift(1),h[h.l]!==0&&n[h[h.l]],h.l+=1,h.l+=2),v&&(h.l+=36);for(var y=[],_={},x=Math.min(h.length,c==2?521:g-10-(d?264:0)),S=v?32:11;h.l0;){if(h[h.l]===42){h.l+=m;continue}for(++h.l,u[++w]=[],b=0,b=0;b!=y.length;++b){var E=h.slice(h.l,h.l+y[b].len);h.l+=y[b].len,eh(E,0);var T=p_(E);switch(y[b].type){case"C":T.trim().length&&(u[w][b]=T.replace(/\s+$/,""));break;case"D":T.length===8?u[w][b]=new Date(+T.slice(0,4),+T.slice(4,6)-1,+T.slice(6,8)):u[w][b]=T;break;case"F":u[w][b]=parseFloat(T.trim());break;case"+":case"I":u[w][b]=v?E.read_shift(-4,"i")^2147483648:E.read_shift(4,"i");break;case"L":switch(T.trim().toUpperCase()){case"Y":case"T":u[w][b]=!0;break;case"N":case"F":u[w][b]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+T+"|")}break;case"M":if(!f)throw new Error("DBF Unexpected MEMO for type "+c.toString(16));u[w][b]="##MEMO##"+(v?parseInt(T.trim(),10):E.read_shift(4));break;case"N":T=T.replace(/\u0000/g,"").trim(),T&&T!="."&&(u[w][b]=+T||0);break;case"@":u[w][b]=new Date(E.read_shift(-8,"f")-621356832e5);break;case"T":u[w][b]=new Date((E.read_shift(4)-2440588)*864e5+E.read_shift(4));break;case"Y":u[w][b]=E.read_shift(4,"i")/1e4+E.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":u[w][b]=-E.read_shift(-8,"f");break;case"B":if(d&&y[b].len==8){u[w][b]=E.read_shift(8,"f");break}case"G":case"P":E.l+=y[b].len;break;case"0":if(y[b].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+y[b].type)}}}if(c!=2&&h.l=0&&r0(+u.codepage),u.type=="string")throw new Error("Cannot write DBF to JS string");var c=yQ(),f=CQ(s,{header:1,raw:!0,cellDates:!0}),d=f[0],v=f.slice(1),p=s["!cols"]||[],g=0,m=0,y=0,_=1;for(g=0;g250&&(C=250),T=((p[g]||{}).DBF||{}).type,T=="C"&&p[g].DBF.len>C&&(C=p[g].DBF.len),E=="B"&&T=="N"&&(E="N",b[g]=p[g].DBF.dec,C=p[g].DBF.len),w[g]=E=="C"||T=="N"?C:a[E]||0,_+=w[g],S[g]=E}var M=c.next(32);for(M.write_shift(4,318902576),M.write_shift(4,v.length),M.write_shift(2,296+32*y),M.write_shift(2,_),g=0;g<4;++g)M.write_shift(4,0);var I=+e[Mp]||3;for(M.write_shift(4,0|I<<8),n[I]!=+u.codepage&&(u.codepage&&console.error("DBF Unsupported codepage "+Mp+", using 1252"),Mp=1252),g=0,m=0;gw[m]&&(V=V.slice(0,w[m])),y=0;y":190,"?":191,"{":223},e=new RegExp("\x1BN("+h0(n).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),t=function(c,f){var d=n[f];return typeof d=="number"?t_e(d):d},r=function(c,f,d){var v=f.charCodeAt(0)-32<<4|d.charCodeAt(0)-48;return v==59?c:t_e(v)};n["|"]=254;function i(c,f){switch(f.type){case"base64":return a(Tv(c),f);case"binary":return a(c,f);case"buffer":return a(oo&&Buffer.isBuffer(c)?c.toString("binary"):p_(c),f);case"array":return a(t2(c),f)}throw new Error("Unrecognized type "+f.type)}function a(c,f){var d=c.split(/[\n\r]+/),v=-1,p=-1,g=0,m=0,y=[],_=[],x=null,S={},w=[],b=[],E=[],T=0,C,A={Workbook:{WBProps:{},Names:[]}};for(+f.codepage>=0&&r0(+f.codepage);g!==d.length;++g){T=0;var M=d[g].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(e,t),I=M.replace(/;;/g,"\0").split(";").map(function(se){return se.replace(/\u0000/g,";")}),R=I[0],k;if(M.length>0)switch(R){case"ID":break;case"E":break;case"B":break;case"O":for(m=1;m=1&&D<=4&&(A.Workbook.WBProps.date1904=!0)}break}break;case"W":break;case"P":switch(I[1].charAt(0)){case"P":_.push(M.slice(3).replace(/;;/g,";"));break}break;case"NN":{var G={Sheet:0};for(m=1;m-1&&y[Y][le];if(!ie||!ie[1])throw new Error("SYLK shared formula cannot find base");H=uGe(ie[1],{r:v-Y,c:p-le})}H&&(y[v][p]?y[v][p].f=H:y[v][p]={t:"n",f:H});break;case"F":var oe=0;for(m=1;m0?(w[v].hpt=T,w[v].hpx=RD(T)):T===0&&(w[v].hidden=!0);break;default:if(f&&f.WTF)throw new Error("SYLK bad record "+M)}oe<1&&(x=null);break;default:if(f&&f.WTF)throw new Error("SYLK bad record "+M)}}return w.length>0&&(S["!rows"]=w),b.length>0&&(S["!cols"]=b),b.forEach(function(se){SM(se)}),f&&f.sheetRows&&(y=y.slice(0,f.sheetRows)),[y,S,A]}function o(c,f){var d=i(c,f),v=d[0],p=d[1],g=d[2],m=sh(f);m.date1904=(((g||{}).Workbook||{}).WBProps||{}).date1904;var y=WI(v,m);h0(p).forEach(function(x){y[x]=p[x]});var _=ww(y,f);return h0(g).forEach(function(x){_[x]=g[x]}),_.bookType="sylk",_}function s(c,f,d,v){var p="C;Y"+(d+1)+";X"+(v+1)+";K";switch(c.t){case"n":p+=c.v||0,c.f&&!c.F&&(p+=";E"+_Nt(c.f,{r:d,c:v}));break;case"b":p+=c.v?"TRUE":"FALSE";break;case"e":p+=c.w||c.v;break;case"d":p+='"'+(c.w||c.v)+'"';break;case"s":p+='"'+(c.v==null?"":String(c.v)).replace(/"/g,"").replace(/;/g,";;")+'"';break}return p}function l(c,f){f.forEach(function(d,v){var p="F;W"+(v+1)+" "+(v+1)+" ";d.hidden?p+="0":(typeof d.width=="number"&&!d.wpx&&(d.wpx=e9(d.width)),typeof d.wpx=="number"&&!d.wch&&(d.wch=t9(d.wpx)),typeof d.wch=="number"&&(p+=Math.round(d.wch))),p.charAt(p.length-1)!=" "&&c.push(p)})}function u(c,f){f.forEach(function(d,v){var p="F;";d.hidden?p+="M0;":d.hpt?p+="M"+20*d.hpt+";":d.hpx&&(p+="M"+20*oGe(d.hpx)+";"),p.length>2&&c.push(p+"R"+(v+1))})}function h(c,f,d){var v=["ID;PSheetJS;N;E"],p=[],g=cu(c["!ref"]),m,y=c["!data"]!=null,_=`\r +`,x=(((d||{}).Workbook||{}).WBProps||{}).date1904;v.push("P;PGeneral"),v.push("F;P0;DG0G8;M255"),c["!cols"]&&l(v,c["!cols"]),c["!rows"]&&u(v,c["!rows"]),v.push("B;Y"+(g.e.r-g.s.r+1)+";X"+(g.e.c-g.s.c+1)+";D"+[g.s.c,g.s.r,g.e.c,g.e.r].join(" ")),v.push("O;L;D;B"+(x?";V4":"")+";K47;G100 0.001");for(var S=g.s.r;S<=g.e.r;++S)if(!(y&&!c["!data"][S])){for(var w=[],b=g.s.c;b<=g.e.c;++b)m=y?c["!data"][S][b]:c[$o(b)+ys(S)],!(!m||m.v==null&&(!m.f||m.F))&&w.push(s(m,c,S,b));p.push(w.join(_))}return v.join(_)+_+p.join(_)+_+"E"+_}return{to_workbook:o,from_sheet:h}}(),RRt=function(){function n(s,l){switch(l.type){case"base64":return e(Tv(s),l);case"binary":return e(s,l);case"buffer":return e(oo&&Buffer.isBuffer(s)?s.toString("binary"):p_(s),l);case"array":return e(t2(s),l)}throw new Error("Unrecognized type "+l.type)}function e(s,l){for(var u=s.split(` +`),h=-1,c=-1,f=0,d=[];f!==u.length;++f){if(u[f].trim()==="BOT"){d[++h]=[],c=0;continue}if(!(h<0)){var v=u[f].trim().split(","),p=v[0],g=v[1];++f;for(var m=u[f]||"";(m.match(/["]/g)||[]).length&1&&f=0&&v[p].length===0;)--p;for(var g=10,m=0,y=0;y<=p;++y)m=v[y].indexOf(" "),m==-1?m=v[y].length:m++,g=Math.max(g,m);for(y=0;y<=p;++y){d[y]=[];var _=0;for(n(v[y].slice(0,g).trim(),d,y,_,f),_=1;_<=(v[y].length-g)/10+1;++_)n(v[y].slice(g+(_-1)*10,g+_*10).trim(),d,y,_,f)}return f.sheetRows&&(d=d.slice(0,f.sheetRows)),d}var t={44:",",9:" ",59:";",124:"|"},r={44:3,9:2,59:1,124:0};function i(h){for(var c={},f=!1,d=0,v=0;d0&&C(),v["!ref"]=lo(p),v}function o(h,c){return!(c&&c.PRN)||c.FS||h.slice(0,4)=="sep="||h.indexOf(" ")>=0||h.indexOf(",")>=0||h.indexOf(";")>=0?a(h,c):WI(e(h,c),c)}function s(h,c){var f="",d=c.type=="string"?[0,0,0,0]:Ioe(h,c);switch(c.type){case"base64":f=Tv(h);break;case"binary":f=h;break;case"buffer":c.codepage==65001?f=h.toString("utf8"):c.codepage&&typeof $C<"u"?f=$C.utils.decode(c.codepage,h):f=oo&&Buffer.isBuffer(h)?h.toString("binary"):p_(h);break;case"array":f=t2(h);break;case"string":f=h;break;default:throw new Error("Unrecognized type "+c.type)}return d[0]==239&&d[1]==187&&d[2]==191?f=As(f.slice(3)):c.type!="string"&&c.type!="buffer"&&c.codepage==65001?f=As(f):c.type=="binary"&&typeof $C<"u"&&c.codepage&&(f=$C.utils.decode(c.codepage,$C.utils.encode(28591,f))),f.slice(0,19)=="socialcalc:version:"?DRt.to_sheet(c.type=="string"?f:As(f),c):o(f,c)}function l(h,c){return ww(s(h,c),c)}function u(h){for(var c=[],f=cu(h["!ref"]),d,v=h["!data"]!=null,p=f.s.r;p<=f.e.r;++p){for(var g=[],m=f.s.c;m<=f.e.c;++m){var y=bo({r:p,c:m});if(d=v?(h["!data"][p]||[])[m]:h[y],!d||d.v==null){g.push(" ");continue}for(var _=(d.w||($S(d),d.w)||"").slice(0,10);_.length<10;)_+=" ";g.push(_+(m===0?" ":""))}c.push(g.join(""))}return c.join(` +`)}return{to_workbook:l,to_sheet:s,from_sheet:u}}();function NRt(n,e){var t=e||{},r=!!t.WTF;t.WTF=!0;try{var i=ORt.to_workbook(n,t);return t.WTF=r,i}catch(a){if(t.WTF=r,!a.message.match(/SYLK bad record ID/)&&r)throw a;return PD.to_workbook(n,e)}}var uR=function(){function n(H,Q,ie){if(!!H){eh(H,H.l||0);for(var oe=ie.Enum||Z;H.l=16&&H[14]==5&&H[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(H[2]==2)ie.Enum=Z,n(H,function(Dt,ft,Oe){switch(Oe){case 0:ie.vers=Dt,Dt>=4096&&(ie.qpro=!0);break;case 255:ie.vers=Dt,ie.works=!0;break;case 6:st=Dt;break;case 204:Dt&&(me=Dt);break;case 222:me=Dt;break;case 15:case 51:(!ie.qpro&&!ie.works||Oe==51)&&Dt[1].v.charCodeAt(0)<48&&(Dt[1].v=Dt[1].v.slice(1)),(ie.works||ie.works2)&&(Dt[1].v=Dt[1].v.replace(/\r\n/g,` +`));case 13:case 14:case 16:Oe==14&&(Dt[2]&112)==112&&(Dt[2]&15)>1&&(Dt[2]&15)<15&&(Dt[1].z=ie.dateNF||ji[14],ie.cellDates&&(Dt[1].t="d",Dt[1].v=EU(Dt[1].v))),ie.qpro&&Dt[3]>Ce&&(oe["!ref"]=lo(st),Le[se]=oe,re.push(se),oe={},ie.dense&&(je=oe["!data"]=[]),st={s:{r:0,c:0},e:{r:0,c:0}},Ce=Dt[3],se=me||"Sheet"+(Ce+1),me="");var J=ie.dense?(je[Dt[0].r]||[])[Dt[0].c]:oe[bo(Dt[0])];if(J){J.t=Dt[1].t,J.v=Dt[1].v,Dt[1].z!=null&&(J.z=Dt[1].z),Dt[1].f!=null&&(J.f=Dt[1].f);break}ie.dense?(je[Dt[0].r]||(je[Dt[0].r]=[]),je[Dt[0].r][Dt[0].c]=Dt[1]):oe[bo(Dt[0])]=Dt[1];break;case 21509:ie.works2=!0;break}},ie);else if(H[2]==26||H[2]==14)ie.Enum=Y,H[2]==14&&(ie.qpro=!0,H.l=0),n(H,function(Dt,ft,Oe){switch(Oe){case 204:se=Dt;break;case 22:Dt[1].v.charCodeAt(0)<48&&(Dt[1].v=Dt[1].v.slice(1)),Dt[1].v=Dt[1].v.replace(/\x0F./g,function(J){return String.fromCharCode(J.charCodeAt(1)-32)}).replace(/\r\n/g,` +`);case 23:case 24:case 25:case 37:case 39:case 40:if(Dt[3]>Ce&&(oe["!ref"]=lo(st),Le[se]=oe,re.push(se),oe={},ie.dense&&(je=oe["!data"]=[]),st={s:{r:0,c:0},e:{r:0,c:0}},Ce=Dt[3],se="Sheet"+(Ce+1)),Nt>0&&Dt[0].r>=Nt)break;ie.dense?(je[Dt[0].r]||(je[Dt[0].r]=[]),je[Dt[0].r][Dt[0].c]=Dt[1]):oe[bo(Dt[0])]=Dt[1],st.e.c=0&&r0(+ie.codepage),ie.type=="string")throw new Error("Cannot write WK1 to JS string");var oe=yQ(),se=cu(H["!ref"]),me=H["!data"]!=null,Ce=[];Ag(oe,0,a(1030)),Ag(oe,6,l(se));for(var Le=Math.min(se.e.r,8191),re=se.s.c;re<=se.e.c;++re)Ce[re]=$o(re);for(var yt=se.s.r;yt<=Le;++yt){var je=ys(yt);for(re=se.s.c;re<=se.e.c;++re){var st=me?(H["!data"][yt]||[])[re]:H[Ce[re]+je];if(!(!st||st.t=="z"))if(st.t=="n")(st.v|0)==st.v&&st.v>=-32768&&st.v<=32767?Ag(oe,13,v(yt,re,st.v)):Ag(oe,14,g(yt,re,st.v));else{var Nt=$S(st);Ag(oe,15,c(yt,re,Nt.slice(0,239)))}}}return Ag(oe,1),oe.end()}function i(H,Q){var ie=Q||{};if(+ie.codepage>=0&&r0(+ie.codepage),ie.type=="string")throw new Error("Cannot write WK3 to JS string");var oe=yQ();Ag(oe,0,o(H));for(var se=0,me=0;se8191&&(ie=8191),Q.write_shift(2,ie),Q.write_shift(1,se),Q.write_shift(1,oe),Q.write_shift(2,0),Q.write_shift(2,0),Q.write_shift(1,1),Q.write_shift(1,2),Q.write_shift(4,0),Q.write_shift(4,0),Q}function s(H,Q,ie){var oe={s:{c:0,r:0},e:{c:0,r:0}};return Q==8&&ie.qpro?(oe.s.c=H.read_shift(1),H.l++,oe.s.r=H.read_shift(2),oe.e.c=H.read_shift(1),H.l++,oe.e.r=H.read_shift(2),oe):(oe.s.c=H.read_shift(2),oe.s.r=H.read_shift(2),Q==12&&ie.qpro&&(H.l+=2),oe.e.c=H.read_shift(2),oe.e.r=H.read_shift(2),Q==12&&ie.qpro&&(H.l+=2),oe.s.c==65535&&(oe.s.c=oe.e.c=oe.s.r=oe.e.r=0),oe)}function l(H){var Q=Ku(8);return Q.write_shift(2,H.s.c),Q.write_shift(2,H.s.r),Q.write_shift(2,H.e.c),Q.write_shift(2,H.e.r),Q}function u(H,Q,ie){var oe=[{c:0,r:0},{t:"n",v:0},0,0];return ie.qpro&&ie.vers!=20768?(oe[0].c=H.read_shift(1),oe[3]=H.read_shift(1),oe[0].r=H.read_shift(2),H.l+=2):ie.works?(oe[0].c=H.read_shift(2),oe[0].r=H.read_shift(2),oe[2]=H.read_shift(2)):(oe[2]=H.read_shift(1),oe[0].c=H.read_shift(2),oe[0].r=H.read_shift(2)),oe}function h(H,Q,ie){var oe=H.l+Q,se=u(H,Q,ie);if(se[1].t="s",ie.vers==20768){H.l++;var me=H.read_shift(1);return se[1].v=H.read_shift(me,"utf8"),se}return ie.qpro&&H.l++,se[1].v=H.read_shift(oe-H.l,"cstr"),se}function c(H,Q,ie){var oe=Ku(7+ie.length);oe.write_shift(1,255),oe.write_shift(2,Q),oe.write_shift(2,H),oe.write_shift(1,39);for(var se=0;se=128?95:me)}return oe.write_shift(1,0),oe}function f(H,Q,ie){var oe=H.l+Q,se=u(H,Q,ie);if(se[1].t="s",ie.vers==20768){var me=H.read_shift(1);return se[1].v=H.read_shift(me,"utf8"),se}return se[1].v=H.read_shift(oe-H.l,"cstr"),se}function d(H,Q,ie){var oe=u(H,Q,ie);return oe[1].v=H.read_shift(2,"i"),oe}function v(H,Q,ie){var oe=Ku(7);return oe.write_shift(1,255),oe.write_shift(2,Q),oe.write_shift(2,H),oe.write_shift(2,ie,"i"),oe}function p(H,Q,ie){var oe=u(H,Q,ie);return oe[1].v=H.read_shift(8,"f"),oe}function g(H,Q,ie){var oe=Ku(13);return oe.write_shift(1,255),oe.write_shift(2,Q),oe.write_shift(2,H),oe.write_shift(8,ie,"f"),oe}function m(H,Q,ie){var oe=H.l+Q,se=u(H,Q,ie);if(se[1].v=H.read_shift(8,"f"),ie.qpro)H.l=oe;else{var me=H.read_shift(2);S(H.slice(H.l,H.l+me),se),H.l+=me}return se}function y(H,Q,ie){var oe=Q&32768;return Q&=-32769,Q=(oe?H:0)+(Q>=8192?Q-16384:Q),(oe?"":"$")+(ie?$o(Q):ys(Q))}var _={31:["NA",0],33:["ABS",1],34:["TRUNC",1],35:["SQRT",1],36:["LOG",1],37:["LN",1],38:["PI",0],39:["SIN",1],40:["COS",1],41:["TAN",1],42:["ATAN2",2],43:["ATAN",1],44:["ASIN",1],45:["ACOS",1],46:["EXP",1],47:["MOD",2],49:["ISNA",1],50:["ISERR",1],51:["FALSE",0],52:["TRUE",0],53:["RAND",0],63:["ROUND",2],68:["ISNUMBER",1],69:["ISTEXT",1],70:["LEN",1],71:["VALUE",1],73:["MID",3],74:["CHAR",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],102:["UPPER",1],103:["LOWER",1],107:["PROPER",1],109:["TRIM",1],111:["T",1]},x=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function S(H,Q){eh(H,0);for(var ie=[],oe=0,se="",me="",Ce="",Le="";H.lie.length){console.error("WK1 bad formula parse 0x"+re.toString(16)+":|"+ie.join("|")+"|");return}var Nt=ie.slice(-oe);ie.length-=oe,ie.push(_[re][0]+"("+Nt.join(",")+")")}else return re<=7?console.error("WK1 invalid opcode "+re.toString(16)):re<=24?console.error("WK1 unsupported op "+re.toString(16)):re<=30?console.error("WK1 invalid opcode "+re.toString(16)):re<=115?console.error("WK1 unsupported function opcode "+re.toString(16)):console.error("WK1 unrecognized opcode "+re.toString(16))}}ie.length==1?Q[1].f=""+ie[0]:console.error("WK1 bad formula parse |"+ie.join("|")+"|")}function w(H){var Q=[{c:0,r:0},{t:"n",v:0},0];return Q[0].r=H.read_shift(2),Q[3]=H[H.l++],Q[0].c=H[H.l++],Q}function b(H,Q){var ie=w(H);return ie[1].t="s",ie[1].v=H.read_shift(Q-4,"cstr"),ie}function E(H,Q,ie,oe){var se=Ku(6+oe.length);se.write_shift(2,H),se.write_shift(1,ie),se.write_shift(1,Q),se.write_shift(1,39);for(var me=0;me=128?95:Ce)}return se.write_shift(1,0),se}function T(H,Q){var ie=w(H);ie[1].v=H.read_shift(2);var oe=ie[1].v>>1;if(ie[1].v&1)switch(oe&7){case 0:oe=(oe>>3)*5e3;break;case 1:oe=(oe>>3)*500;break;case 2:oe=(oe>>3)/20;break;case 3:oe=(oe>>3)/200;break;case 4:oe=(oe>>3)/2e3;break;case 5:oe=(oe>>3)/2e4;break;case 6:oe=(oe>>3)/16;break;case 7:oe=(oe>>3)/64;break}return ie[1].v=oe,ie}function C(H,Q){var ie=w(H),oe=H.read_shift(4),se=H.read_shift(4),me=H.read_shift(2);if(me==65535)return oe===0&&se===3221225472?(ie[1].t="e",ie[1].v=15):oe===0&&se===3489660928?(ie[1].t="e",ie[1].v=42):ie[1].v=0,ie;var Ce=me&32768;return me=(me&32767)-16446,ie[1].v=(1-Ce*2)*(se*Math.pow(2,me+32)+oe*Math.pow(2,me)),ie}function A(H,Q,ie,oe){var se=Ku(14);if(se.write_shift(2,H),se.write_shift(1,ie),se.write_shift(1,Q),oe==0)return se.write_shift(4,0),se.write_shift(4,0),se.write_shift(2,65535),se;var me=0,Ce=0,Le=0,re=0;return oe<0&&(me=1,oe=-oe),Ce=Math.log2(oe)|0,oe/=Math.pow(2,Ce-31),re=oe>>>0,(re&2147483648)==0&&(oe/=2,++Ce,re=oe>>>0),oe-=re,re|=2147483648,re>>>=0,oe*=Math.pow(2,32),Le=oe>>>0,se.write_shift(4,Le),se.write_shift(4,re),Ce+=16383+(me?32768:0),se.write_shift(2,Ce),se}function M(H,Q){var ie=C(H);return H.l+=Q-14,ie}function I(H,Q){var ie=w(H),oe=H.read_shift(4);return ie[1].v=oe>>6,ie}function R(H,Q){var ie=w(H),oe=H.read_shift(8,"f");return ie[1].v=oe,ie}function k(H,Q){var ie=R(H);return H.l+=Q-12,ie}function D(H,Q){return H[H.l+Q-1]==0?H.read_shift(Q,"cstr"):""}function G(H,Q){var ie=H[H.l++];ie>Q-1&&(ie=Q-1);for(var oe="";oe.length127?95:se}return ie[ie.l++]=0,ie}var Z={0:{n:"BOF",f:nu},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:d},14:{n:"NUMBER",f:p},15:{n:"LABEL",f:h},16:{n:"FORMULA",f:m},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:D},222:{n:"SHEETNAMELP",f:G},255:{n:"BOF",f:nu},65535:{n:""}},Y={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:b},23:{n:"NUMBER17",f:C},24:{n:"NUMBER18",f:T},25:{n:"FORMULA19",f:M},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:z},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:I},38:{n:"??"},39:{n:"NUMBER27",f:R},40:{n:"FORMULA28",f:k},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:D},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:V},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};function le(H,Q){eh(H,0);var ie=Q||{},oe={};ie.dense&&(oe["!data"]=[]);var se=[],me="",Ce={s:{r:-1,c:-1},e:{r:-1,c:-1}},Le=0,re=0,yt=0,je=0,st={SheetNames:[],Sheets:{}};e:for(;H.l255||Ce.s.r>999999)break;Ce.e.cyt&&(Ce.s.c=yt),je=qe.read_shift(4),Ce.s.r>je&&(Ce.s.r=je),je=qe.read_shift(4),Ce.e.rje&&(Ce.s.r=je),Ce.e.r0&&Le>=0;){if(Oe&32)switch(Oe&31){case 2:ft={t:"n",v:ft.v+We&65535};break;case 3:ft={t:"n",v:ft.v+We&65535},ft.v>32767&&(ft.v-=65536);break;case 7:ft={t:"s",v:se[re=re+We>>>0]};break;default:throw"Cannot apply delta for QPW cell type "+(Oe&31)}else switch(Oe&31){case 1:ft={t:"z"};break;case 2:ft={t:"n",v:qe.read_shift(2)};break;case 7:ft={t:"s",v:se[re=qe.read_shift(4)-1]};break;default:throw"Cannot apply repeat for QPW cell type "+(Oe&31)}!ie.sheetStubs&&ft.t=="z"||(oe["!data"]!=null?(oe["!data"][je]||(oe["!data"][je]=[]),oe["!data"][je][yt]=ft):oe[Dt+ys(je)]=ft),++je,--Le}}}break}H.l+=Zt}return st}return{sheet_to_wk1:r,book_to_wk3:i,to_workbook:e}}();function kRt(n){var e={},t=n.match(nf),r=0,i=!1;if(t)for(;r!=t.length;++r){var a=Tn(t[r]);switch(a[0].replace(/\w*:/g,"")){case"":case"":e.shadow=1;break;case"":break;case"":case"":e.outline=1;break;case"":break;case"":case"":e.strike=1;break;case"":break;case"":case"":e.u=1;break;case"":break;case"":case"":e.b=1;break;case"":break;case"":case"":e.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":i=!1;break;default:if(a[0].charCodeAt(1)!==47&&!i)throw new Error("Unrecognized rich format "+a[0])}}return e}var FRt=function(){var n=LD("t"),e=LD("rPr");function t(a){var o=a.match(n);if(!o)return{t:"s",v:""};var s={t:"s",v:so(o[1])},l=a.match(e);return l&&(s.s=kRt(l[1])),s}var r=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(o){return o.replace(r,"").split(i).map(t).filter(function(s){return s.v})}}(),BRt=function(){var e=/(\r\n|\n)/g;function t(i,a,o){var s=[];i.u&&s.push("text-decoration: underline;"),i.uval&&s.push("text-underline-style:"+i.uval+";"),i.sz&&s.push("font-size:"+i.sz+"pt;"),i.outline&&s.push("text-effect: outline;"),i.shadow&&s.push("text-shadow: auto;"),a.push(''),i.b&&(a.push(""),o.push("")),i.i&&(a.push(""),o.push("")),i.strike&&(a.push(""),o.push(""));var l=i.valign||"";return l=="superscript"||l=="super"?l="sup":l=="subscript"&&(l="sub"),l!=""&&(a.push("<"+l+">"),o.push("")),o.push(""),i}function r(i){var a=[[],i.v,[]];return i.v?(i.s&&t(i.s,a[0],a[2]),a[0].join("")+a[1].replace(e,"
")+a[2].join("")):""}return function(a){return a.map(r).join("")}}(),GRt=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,zRt=/<(?:\w+:)?r\b[^>]*>/,URt=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function boe(n,e){var t=e?e.cellHTML:!0,r={};return n?(n.match(/^\s*<(?:\w+:)?t[^>]*>/)?(r.t=so(As(n.slice(n.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||""),!0),r.r=As(n),t&&(r.h=qG(r.t))):n.match(zRt)&&(r.r=As(n),r.t=so(As((n.replace(URt,"").match(GRt)||[]).join("").replace(nf,"")),!0),t&&(r.h=BRt(FRt(r.r)))),r):{t:""}}var VRt=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,$Rt=/<(?:\w+:)?(?:si|sstItem)>/g,WRt=/<\/(?:\w+:)?(?:si|sstItem)>/;function HRt(n,e){var t=[],r="";if(!n)return t;var i=n.match(VRt);if(i){r=i[2].replace($Rt,"").split(WRt);for(var a=0;a!=r.length;++a){var o=boe(r[a].trim(),e);o!=null&&(t[t.length]=o)}i=Tn(i[1]),t.Count=i.count,t.Unique=i.uniqueCount}return t}function jRt(n){return[n.read_shift(4),n.read_shift(4)]}function XRt(n,e){var t=[],r=!1;return B_(n,function(a,o,s){switch(s){case 159:t.Count=a[0],t.Unique=a[1];break;case 19:t.push(a);break;case 160:return!0;case 35:r=!0;break;case 36:r=!1;break;default:if(o.T,!r||e.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}}),t}function eGe(n){for(var e=[],t=n.split(""),r=0;r=4&&(n.l+=e-4),t}function YRt(n){var e={};return e.id=n.read_shift(0,"lpp4"),e.R=Y1(n,4),e.U=Y1(n,4),e.W=Y1(n,4),e}function qRt(n){for(var e=n.read_shift(4),t=n.l+e-4,r={},i=n.read_shift(4),a=[];i-- >0;)a.push({t:n.read_shift(4),v:n.read_shift(0,"lpp4")});if(r.name=n.read_shift(0,"lpp4"),r.comps=a,n.l!=t)throw new Error("Bad DataSpaceMapEntry: "+n.l+" != "+t);return r}function ZRt(n){var e=[];n.l+=4;for(var t=n.read_shift(4);t-- >0;)e.push(qRt(n));return e}function KRt(n){var e=[];n.l+=4;for(var t=n.read_shift(4);t-- >0;)e.push(n.read_shift(0,"lpp4"));return e}function JRt(n){var e={};return n.read_shift(4),n.l+=4,e.id=n.read_shift(0,"lpp4"),e.name=n.read_shift(0,"lpp4"),e.R=Y1(n,4),e.U=Y1(n,4),e.W=Y1(n,4),e}function QRt(n){var e=JRt(n);if(e.ename=n.read_shift(0,"8lpp4"),e.blksz=n.read_shift(4),e.cmode=n.read_shift(4),n.read_shift(4)!=4)throw new Error("Bad !Primary record");return e}function tGe(n,e){var t=n.l+e,r={};r.Flags=n.read_shift(4)&63,n.l+=4,r.AlgID=n.read_shift(4);var i=!1;switch(r.AlgID){case 26126:case 26127:case 26128:i=r.Flags==36;break;case 26625:i=r.Flags==4;break;case 0:i=r.Flags==16||r.Flags==4||r.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+r.AlgID}if(!i)throw new Error("Encryption Flags/AlgID mismatch");return r.AlgIDHash=n.read_shift(4),r.KeySize=n.read_shift(4),r.ProviderType=n.read_shift(4),n.l+=8,r.CSPName=n.read_shift(t-n.l>>1,"utf16le"),n.l=t,r}function rGe(n,e){var t={},r=n.l+e;return n.l+=4,t.Salt=n.slice(n.l,n.l+16),n.l+=16,t.Verifier=n.slice(n.l,n.l+16),n.l+=16,n.read_shift(4),t.VerifierHash=n.slice(n.l,r),n.l=r,t}function eDt(n){var e=Y1(n);switch(e.Minor){case 2:return[e.Minor,tDt(n)];case 3:return[e.Minor,rDt()];case 4:return[e.Minor,nDt(n)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+e.Minor)}function tDt(n){var e=n.read_shift(4);if((e&63)!=36)throw new Error("EncryptionInfo mismatch");var t=n.read_shift(4),r=tGe(n,t),i=rGe(n,n.length-n.l);return{t:"Std",h:r,v:i}}function rDt(){throw new Error("File is password-protected: ECMA-376 Extensible")}function nDt(n){var e=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];n.l+=4;var t=n.read_shift(n.length-n.l,"utf8"),r={};return t.replace(nf,function(a){var o=Tn(a);switch(N0(o[0])){case"":break;case"":case"":break;case"":break;case"4||r.Major<2)throw new Error("unrecognized major version code: "+r.Major);t.Flags=n.read_shift(4),e-=4;var i=n.read_shift(4);return e-=4,t.EncryptionHeader=tGe(n,i),e-=i,t.EncryptionVerifier=rGe(n,e),t}function aDt(n){var e={},t=e.EncryptionVersionInfo=Y1(n,4);if(t.Major!=1||t.Minor!=1)throw"unrecognized version code "+t.Major+" : "+t.Minor;return e.Salt=n.read_shift(16),e.EncryptedVerifier=n.read_shift(16),e.EncryptedVerifierHash=n.read_shift(16),e}function oDt(n){var e=0,t,r=eGe(n),i=r.length+1,a,o,s,l,u;for(t=VS(i),t[0]=r.length,a=1;a!=i;++a)t[a]=r[a-1];for(a=i-1;a>=0;--a)o=t[a],s=(e&16384)===0?0:1,l=e<<1&32767,u=s|l,e=u^o;return e^52811}var nGe=function(){var n=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],e=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],t=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],r=function(o){return(o/2|o*128)&255},i=function(o,s){return r(o^s)},a=function(o){for(var s=e[o.length-1],l=104,u=o.length-1;u>=0;--u)for(var h=o[u],c=0;c!=7;++c)h&64&&(s^=t[l]),h*=2,--l;return s};return function(o){for(var s=eGe(o),l=a(s),u=s.length,h=VS(16),c=0;c!=16;++c)h[c]=0;var f,d,v;for((u&1)===1&&(f=l>>8,h[u]=i(n[0],f),--u,f=l&255,d=s[s.length-1],h[u]=i(d,f));u>0;)--u,f=l>>8,h[u]=i(s[u],f),--u,f=l&255,h[u]=i(s[u],f);for(u=15,v=15-s.length;v>0;)f=l>>8,h[u]=i(n[v],f),--u,--v,f=l&255,h[u]=i(s[u],f),--u,--v;return h}}(),sDt=function(n,e,t,r,i){i||(i=e),r||(r=nGe(n));var a,o;for(a=0;a!=e.length;++a)o=e[a],o^=r[t],o=(o>>5|o<<3)&255,i[a]=o,++t;return[i,t,r]},lDt=function(n){var e=0,t=nGe(n);return function(r){var i=sDt("",r,e,t);return e=i[1],i[0]}};function uDt(n,e,t,r){var i={key:nu(n),verificationBytes:nu(n)};return t.password&&(i.verifier=oDt(t.password)),r.valid=i.verificationBytes===i.verifier,r.valid&&(r.insitu=lDt(t.password)),i}function hDt(n,e,t){var r=t||{};return r.Info=n.read_shift(2),n.l-=2,r.Info===1?r.Data=aDt(n):r.Data=iDt(n,e),r}function cDt(n,e,t){var r={Type:t.biff>=8?n.read_shift(2):0};return r.Type?hDt(n,e-2,r):uDt(n,t.biff>=8?e:e-2,t,r),r}function fDt(n,e){switch(e.type){case"base64":return K4(Tv(n),e);case"binary":return K4(n,e);case"buffer":return K4(oo&&Buffer.isBuffer(n)?n.toString("binary"):p_(n),e);case"array":return K4(t2(n),e)}throw new Error("Unrecognized type "+e.type)}function K4(n,e){var t=e||{},r={},i=t.dense;i&&(r["!data"]=[]);var a=n.match(/\\trowd[\s\S]*?\\row\b/g);if(!a)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:a.length-1}},s=[];return a.forEach(function(l,u){i&&(s=r["!data"][u]=[]);for(var h=/\\[\w\-]+\b/g,c=0,f,d=-1,v=[];(f=h.exec(l))!=null;){var p=l.slice(c,h.lastIndex-f[0].length);switch(p.charCodeAt(0)==32&&(p=p.slice(1)),p.length&&v.push(p),f[0]){case"\\cell":if(++d,v.length){var g={v:v.join(""),t:"s"};g.v=="TRUE"||g.v=="FALSE"?(g.v=g.v=="TRUE",g.t="b"):isNaN(mv(g.v))||(g.t="n",t.cellText!==!1&&(g.w=g.v),g.v=mv(g.v)),i?s[d]=g:r[bo({r:u,c:d})]=g}v=[];break;case"\\par":v.push(` +`);break}c=h.lastIndex}d>o.e.c&&(o.e.c=d)}),r["!ref"]=lo(o),r}function dDt(n,e){var t=ww(fDt(n,e),e);return t.bookType="rtf",t}function vDt(n){var e=n.slice(n[0]==="#"?1:0).slice(0,6);return[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}function OD(n){for(var e=0,t=1;e!=3;++e)t=t*256+(n[e]>255?255:n[e]<0?0:n[e]);return t.toString(16).toUpperCase().slice(1)}function pDt(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,i=Math.max(e,t,r),a=Math.min(e,t,r),o=i-a;if(o===0)return[0,0,e];var s=0,l=0,u=i+a;switch(l=o/(u>1?2-u:u),i){case e:s=((t-r)/o+6)%6;break;case t:s=(r-e)/o+2;break;case r:s=(e-t)/o+4;break}return[s/6,l,u/2]}function gDt(n){var e=n[0],t=n[1],r=n[2],i=t*2*(r<.5?r:1-r),a=r-i/2,o=[a,a,a],s=6*e,l;if(t!==0)switch(s|0){case 0:case 6:l=i*s,o[0]+=i,o[1]+=l;break;case 1:l=i*(2-s),o[0]+=l,o[1]+=i;break;case 2:l=i*(s-2),o[1]+=i,o[2]+=l;break;case 3:l=i*(4-s),o[1]+=l,o[2]+=i;break;case 4:l=i*(s-4),o[2]+=i,o[0]+=l;break;case 5:l=i*(6-s),o[2]+=l,o[0]+=i;break}for(var u=0;u!=3;++u)o[u]=Math.round(o[u]*255);return o}function QG(n,e){if(e===0)return n;var t=pDt(vDt(n));return e<0?t[2]=t[2]*(1+e):t[2]=1-(1-t[2])*(1-e),OD(gDt(t))}var iGe=6,yDt=15,mDt=1,Ef=iGe;function e9(n){return Math.floor((n+Math.round(128/Ef)/256)*Ef)}function t9(n){return Math.floor((n-5)/Ef*100+.5)/100}function SQ(n){return Math.round((n*Ef+5)/Ef*256)/256}function mX(n){return SQ(t9(e9(n)))}function Eoe(n){var e=Math.abs(n-mX(n)),t=Ef;if(e>.005)for(Ef=mDt;Ef":case"":break;case"":case"":i={},s.diagonalUp&&(i.diagonalUp=ps(s.diagonalUp)),s.diagonalDown&&(i.diagonalDown=ps(s.diagonalDown)),e.Borders.push(i);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":break;case"":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+s[0]+" in borders")}})}function wDt(n,e,t,r){e.Fills=[];var i={},a=!1;(n[0].match(nf)||[]).forEach(function(o){var s=Tn(o);switch(N0(s[0])){case"":case"":break;case"":case"":i={},e.Fills.push(i);break;case"":break;case"":break;case"":e.Fills.push(i),i={};break;case"":s.patternType&&(i.patternType=s.patternType);break;case"":case"":break;case"":case"":break;case"":case"":break;case"":break;case"
":break;case"":break;case"":break;case"":case"":break;case"":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+s[0]+" in fills")}})}function bDt(n,e,t,r){e.Fonts=[];var i={},a=!1;(n[0].match(nf)||[]).forEach(function(o){var s=Tn(o);switch(N0(s[0])){case"":case"":break;case"":break;case"":case"":e.Fonts.push(i),i={};break;case"":case"":break;case"":i.bold=1;break;case"":i.italic=1;break;case"":i.underline=1;break;case"":i.strike=1;break;case"":i.outline=1;break;case"":i.shadow=1;break;case"":i.condense=1;break;case"":i.extend=1;break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":a=!1;break;case"":case"":break;case"":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+s[0]+" in fonts")}})}function EDt(n,e,t){e.NumberFmt=[];for(var r=h0(ji),i=0;i":case"":case"":break;case"0){if(l>392){for(l=392;l>60&&e.NumberFmt[l]!=null;--l);e.NumberFmt[l]=s}OE(s,l)}}break;case"":break;default:if(t.WTF)throw new Error("unrecognized "+o[0]+" in numFmts")}}}var J4=["numFmtId","fillId","fontId","borderId","xfId"],Q4=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function TDt(n,e,t){e.CellXf=[];var r,i=!1;(n[0].match(nf)||[]).forEach(function(a){var o=Tn(a),s=0;switch(N0(o[0])){case"":case"":case"":break;case"":for(r=o,delete r[0],s=0;s392){for(s=392;s>60;--s)if(e.NumberFmt[r.numFmtId]==e.NumberFmt[s]){r.numFmtId=s;break}}e.CellXf.push(r);break;case"":break;case"":var l={};o.vertical&&(l.vertical=o.vertical),o.horizontal&&(l.horizontal=o.horizontal),o.textRotation!=null&&(l.textRotation=o.textRotation),o.indent&&(l.indent=o.indent),o.wrapText&&(l.wrapText=ps(o.wrapText)),r.alignment=l;break;case"":break;case"":case"":break;case"":i=!1;break;case"":case"":break;case"":i=!1;break;default:if(t&&t.WTF&&!i)throw new Error("unrecognized "+o[0]+" in cellXfs")}})}var CDt=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,r=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,i=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,a=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(s,l,u){var h={};if(!s)return h;s=s.replace(//mg,"").replace(//gm,"");var c;return(c=s.match(e))&&EDt(c,h,u),(c=s.match(i))&&bDt(c,h,l,u),(c=s.match(r))&&wDt(c,h,l,u),(c=s.match(a))&&SDt(c,h,l,u),(c=s.match(t))&&TDt(c,h,u),h}}();function ADt(n,e){var t=n.read_shift(2),r=Wc(n);return[t,r]}function MDt(n,e,t){var r={};r.sz=n.read_shift(2)/20;var i=GPt(n);i.fItalic&&(r.italic=1),i.fCondense&&(r.condense=1),i.fExtend&&(r.extend=1),i.fShadow&&(r.shadow=1),i.fOutline&&(r.outline=1),i.fStrikeout&&(r.strike=1);var a=n.read_shift(2);switch(a===700&&(r.bold=1),n.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript";break}var o=n.read_shift(1);o!=0&&(r.underline=o);var s=n.read_shift(1);s>0&&(r.family=s);var l=n.read_shift(1);switch(l>0&&(r.charset=l),n.l++,r.color=BPt(n),n.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor";break}return r.name=Wc(n),r}var IDt=Kc;function LDt(n,e){var t=n.l+e,r=n.read_shift(2),i=n.read_shift(2);return n.l=t,{ixfe:r,numFmtId:i}}var PDt=Kc;function ODt(n,e,t){var r={};r.NumberFmt=[];for(var i in ji)r.NumberFmt[i]=ji[i];r.CellXf=[],r.Fonts=[];var a=[],o=!1;return B_(n,function(l,u,h){switch(h){case 44:r.NumberFmt[l[0]]=l[1],OE(l[1],l[0]);break;case 43:r.Fonts.push(l),l.color.theme!=null&&e&&e.themeElements&&e.themeElements.clrScheme&&(l.color.rgb=QG(e.themeElements.clrScheme[l.color.theme].rgb,l.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:a[a.length-1]==617&&r.CellXf.push(l);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:a.push(h),o=!0;break;case 38:a.pop(),o=!1;break;default:if(u.T>0)a.push(h);else if(u.T<0)a.pop();else if(!o||t.WTF&&a[a.length-1]!=37)throw new Error("Unexpected record 0x"+h.toString(16))}}),r}var RDt=["","","","","","","","","","","",""];function DDt(n,e,t){e.themeElements.clrScheme=[];var r={};(n[0].match(nf)||[]).forEach(function(i){var a=Tn(i);switch(a[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":a[0].charAt(1)==="/"?(e.themeElements.clrScheme[RDt.indexOf(a[0])]=r,r={}):r.name=a[0].slice(3,a[0].length-1);break;default:if(t&&t.WTF)throw new Error("Unrecognized "+a[0]+" in clrScheme")}})}function NDt(){}function kDt(){}var FDt=/]*)>[\s\S]*<\/a:clrScheme>/,BDt=/]*)>[\s\S]*<\/a:fontScheme>/,GDt=/]*)>[\s\S]*<\/a:fmtScheme>/;function zDt(n,e,t){e.themeElements={};var r;[["clrScheme",FDt,DDt],["fontScheme",BDt,NDt],["fmtScheme",GDt,kDt]].forEach(function(i){if(!(r=n.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](r,e,t)})}var UDt=/]*)>[\s\S]*<\/a:themeElements>/;function sGe(n,e){(!n||n.length===0)&&(n=VDt());var t,r={};if(!(t=n.match(UDt)))throw new Error("themeElements not found in theme");return zDt(t[0],r,e),r.raw=n,r}function VDt(n,e){if(e&&e.themeXLSX)return e.themeXLSX;if(n&&typeof n.raw=="string")return n.raw;var t=[y8e];return t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t.join("")}function $Dt(n,e,t){var r=n.l+e,i=n.read_shift(4);if(i!==124226){if(!t.cellStyles){n.l=r;return}var a=n.slice(n.l);n.l=r;var o;try{o=g8e(a,{type:"array"})}catch{return}var s=hd(o,"theme/theme/theme1.xml",!0);if(!!s)return sGe(s,t)}}function WDt(n){return n.read_shift(4)}function HDt(n){var e={};switch(e.xclrType=n.read_shift(2),e.nTintShade=n.read_shift(2),e.xclrType){case 0:n.l+=4;break;case 1:e.xclrValue=jDt(n,4);break;case 2:e.xclrValue=X8e(n);break;case 3:e.xclrValue=WDt(n);break;case 4:n.l+=4;break}return n.l+=8,e}function jDt(n,e){return Kc(n,e)}function XDt(n,e){return Kc(n,e)}function YDt(n){var e=n.read_shift(2),t=n.read_shift(2)-4,r=[e];switch(e){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:r[1]=HDt(n);break;case 6:r[1]=XDt(n,t);break;case 14:case 15:r[1]=n.read_shift(t===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+e+" "+t)}return r}function qDt(n,e){var t=n.l+e;n.l+=2;var r=n.read_shift(2);n.l+=2;for(var i=n.read_shift(2),a=[];i-- >0;)a.push(YDt(n,t-n.l));return{ixfe:r,ext:a}}function ZDt(n,e){e.forEach(function(t){switch(t[0]){}})}function KDt(n,e){return{flags:n.read_shift(4),version:n.read_shift(4),name:Wc(n)}}function JDt(n){for(var e=[],t=n.read_shift(4);t-- >0;)e.push([n.read_shift(4),n.read_shift(4)]);return e}function QDt(n){return n.l+=4,n.read_shift(4)!=0}function eNt(n,e,t){var r={Types:[],Cell:[],Value:[]},i=t||{},a=[],o=!1,s=2;return B_(n,function(l,u,h){switch(h){case 335:r.Types.push({name:l.name});break;case 51:l.forEach(function(c){s==1?r.Cell.push({type:r.Types[c[0]-1].name,index:c[1]}):s==0&&r.Value.push({type:r.Types[c[0]-1].name,index:c[1]})});break;case 337:s=l?1:0;break;case 338:s=2;break;case 35:a.push(h),o=!0;break;case 36:a.pop(),o=!1;break;default:if(!u.T){if(!o||i.WTF&&a[a.length-1]!=35)throw new Error("Unexpected record 0x"+h.toString(16))}}}),r}function tNt(n,e,t){var r={Types:[],Cell:[],Value:[]};if(!n)return r;var i=!1,a=2,o;return n.replace(nf,function(s){var l=Tn(s);switch(N0(l[0])){case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":a=2;break;case"":a=2;break;case"":case"":case"":break;case"":i=!1;break;case"":case"":break;case"]*r:id="([^"]*)"/)||["",""])[1];return e["!id"][t].Target}function V_e(n,e,t,r){var i=n["!data"]!=null,a;e.forEach(function(o){var s=zc(o.ref);if(!(s.r<0||s.c<0)){if(i?(n["!data"][s.r]||(n["!data"][s.r]=[]),a=n["!data"][s.r][s.c]):a=n[o.ref],!a){a={t:"z"},i?n["!data"][s.r][s.c]=a:n[o.ref]=a;var l=cu(n["!ref"]||"BDWGO1000001:A1");l.s.r>s.r&&(l.s.r=s.r),l.e.rs.c&&(l.s.c=s.c),l.e.c=0;--c){if(!t&&a.c[c].T)return;t&&!a.c[c].T&&a.c.splice(c,1)}if(t&&r){for(c=0;c/))return[];var t=[],r=[],i=n.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach(function(o){if(!(o===""||o.trim()==="")){var s=o.match(/<(?:\w+:)?author[^>]*>(.*)/);s&&t.push(s[1])}});var a=n.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return a&&a[1]&&a[1].split(/<\/\w*:?comment>/).forEach(function(o){if(!(o===""||o.trim()==="")){var s=o.match(/<(?:\w+:)?comment[^>]*>/);if(!!s){var l=Tn(s[0]),u={author:l.authorId&&t[l.authorId]||"sheetjsghost",ref:l.ref,guid:l.guid},h=zc(l.ref);if(!(e.sheetRows&&e.sheetRows<=h.r)){var c=o.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),f=!!c&&!!c[1]&&boe(c[1])||{r:"",t:"",h:""};u.r=f.r,f.r==""&&(f.t=f.h=""),u.t=(f.t||"").replace(/\r\n/g,` +`).replace(/\r/g,` +`),e.cellHTML&&(u.h=f.h),r.push(u)}}}}),r}function lNt(n,e){var t=[],r=!1,i={},a=0;return n.replace(nf,function(s,l){var u=Tn(s);switch(N0(u[0])){case"":break;case"":i.t!=null&&t.push(i);break;case"":case"":i.t=n.slice(a,l).replace(/\r\n/g,` +`).replace(/\r/g,` +`);break;case"":r=!0;break;case"":r=!1;break;case"":case"":case"":break;case"":r=!1;break;default:if(!r&&e.WTF)throw new Error("unrecognized "+u[0]+" in threaded comments")}return s}),t}function uNt(n,e){var t=[],r=!1;return n.replace(nf,function(a){var o=Tn(a);switch(N0(o[0])){case"":break;case"":break;case"":case"":case"":break;case"":r=!1;break;default:if(!r&&e.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return a}),t}function hNt(n){var e={};e.iauthor=n.read_shift(4);var t=rT(n);return e.rfx=t.s,e.ref=bo(t.s),n.l+=16,e}var cNt=Wc;function fNt(n,e){var t=[],r=[],i={},a=!1;return B_(n,function(s,l,u){switch(u){case 632:r.push(s);break;case 635:i=s;break;case 637:i.t=s.t,i.h=s.h,i.r=s.r;break;case 636:if(i.author=r[i.iauthor],delete i.iauthor,e.sheetRows&&i.rfx&&e.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,t.push(i);break;case 3072:break;case 35:a=!0;break;case 36:a=!1;break;case 37:break;case 38:break;default:if(!l.T){if(!a||e.WTF)throw new Error("Unexpected record 0x"+u.toString(16))}}}),t}var dNt="application/vnd.ms-office.vbaProject";function vNt(n){var e=co.utils.cfb_new({root:"R"});return n.FullPaths.forEach(function(t,r){if(!(t.slice(-1)==="/"||!t.match(/_VBA_PROJECT_CUR/))){var i=t.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");co.utils.cfb_add(e,i,n.FileIndex[r].content)}}),co.write(e)}function pNt(){return{"!type":"dialog"}}function gNt(){return{"!type":"dialog"}}function yNt(){return{"!type":"macro"}}function mNt(){return{"!type":"macro"}}var DE=function(){var n=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,e={r:0,c:0};function t(r,i,a,o){var s=!1,l=!1;a.length==0?l=!0:a.charAt(0)=="["&&(l=!0,a=a.slice(1,-1)),o.length==0?s=!0:o.charAt(0)=="["&&(s=!0,o=o.slice(1,-1));var u=a.length>0?parseInt(a,10)|0:0,h=o.length>0?parseInt(o,10)|0:0;return s?h+=e.c:--h,l?u+=e.r:--u,i+(s?"":"$")+$o(h)+(l?"":"$")+ys(u)}return function(i,a){return e=a,i.replace(n,t)}}(),lGe=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,_Nt=function(){return function(e,t){return e.replace(lGe,function(r,i,a,o,s,l){var u=yoe(o)-(a?0:t.c),h=goe(l)-(s?0:t.r),c=s=="$"?h+1:h==0?"":"["+h+"]",f=a=="$"?u+1:u==0?"":"["+u+"]";return i+"R"+c+"C"+f})}}();function uGe(n,e){return n.replace(lGe,function(t,r,i,a,o,s){return r+(i=="$"?i+a:$o(yoe(a)+e.c))+(o=="$"?o+s:ys(goe(s)+e.r))})}function xNt(n,e,t){var r=eT(e),i=r.s,a=zc(t),o={r:a.r-i.r,c:a.c-i.c};return uGe(n,o)}function SNt(n){return n.length!=1}function $_e(n){return n.replace(/_xlfn\./g,"")}function bu(n){n.l+=1}function WS(n,e){var t=n.read_shift(e==1?1:2);return[t&16383,t>>14&1,t>>15&1]}function hGe(n,e,t){var r=2;if(t){if(t.biff>=2&&t.biff<=5)return cGe(n);t.biff==12&&(r=4)}var i=n.read_shift(r),a=n.read_shift(r),o=WS(n,2),s=WS(n,2);return{s:{r:i,c:o[0],cRel:o[1],rRel:o[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function cGe(n){var e=WS(n,2),t=WS(n,2),r=n.read_shift(1),i=n.read_shift(1);return{s:{r:e[0],c:r,cRel:e[1],rRel:e[2]},e:{r:t[0],c:i,cRel:t[1],rRel:t[2]}}}function wNt(n,e,t){if(t.biff<8)return cGe(n);var r=n.read_shift(t.biff==12?4:2),i=n.read_shift(t.biff==12?4:2),a=WS(n,2),o=WS(n,2);return{s:{r,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:o[0],cRel:o[1],rRel:o[2]}}}function fGe(n,e,t){if(t&&t.biff>=2&&t.biff<=5)return bNt(n);var r=n.read_shift(t&&t.biff==12?4:2),i=WS(n,2);return{r,c:i[0],cRel:i[1],rRel:i[2]}}function bNt(n){var e=WS(n,2),t=n.read_shift(1);return{r:e[0],c:t,cRel:e[1],rRel:e[2]}}function ENt(n){var e=n.read_shift(2),t=n.read_shift(2);return{r:e,c:t&255,fQuoted:!!(t&16384),cRel:t>>15,rRel:t>>15}}function TNt(n,e,t){var r=t&&t.biff?t.biff:8;if(r>=2&&r<=5)return CNt(n);var i=n.read_shift(r>=12?4:2),a=n.read_shift(2),o=(a&16384)>>14,s=(a&32768)>>15;if(a&=16383,s==1)for(;i>524287;)i-=1048576;if(o==1)for(;a>8191;)a=a-16384;return{r:i,c:a,cRel:o,rRel:s}}function CNt(n){var e=n.read_shift(2),t=n.read_shift(1),r=(e&32768)>>15,i=(e&16384)>>14;return e&=16383,r==1&&e>=8192&&(e=e-16384),i==1&&t>=128&&(t=t-256),{r:e,c:t,cRel:i,rRel:r}}function ANt(n,e,t){var r=(n[n.l++]&96)>>5,i=hGe(n,t.biff>=2&&t.biff<=5?6:8,t);return[r,i]}function MNt(n,e,t){var r=(n[n.l++]&96)>>5,i=n.read_shift(2,"i"),a=8;if(t)switch(t.biff){case 5:n.l+=12,a=6;break;case 12:a=12;break}var o=hGe(n,a,t);return[r,i,o]}function INt(n,e,t){var r=(n[n.l++]&96)>>5;return n.l+=t&&t.biff>8?12:t.biff<8?6:8,[r]}function LNt(n,e,t){var r=(n[n.l++]&96)>>5,i=n.read_shift(2),a=8;if(t)switch(t.biff){case 5:n.l+=12,a=6;break;case 12:a=12;break}return n.l+=a,[r,i]}function PNt(n,e,t){var r=(n[n.l++]&96)>>5,i=wNt(n,e-1,t);return[r,i]}function ONt(n,e,t){var r=(n[n.l++]&96)>>5;return n.l+=t.biff==2?6:t.biff==12?14:7,[r]}function W_e(n){var e=n[n.l+1]&1,t=1;return n.l+=4,[e,t]}function RNt(n,e,t){n.l+=2;for(var r=n.read_shift(t&&t.biff==2?1:2),i=[],a=0;a<=r;++a)i.push(n.read_shift(t&&t.biff==2?1:2));return i}function DNt(n,e,t){var r=n[n.l+1]&255?1:0;return n.l+=2,[r,n.read_shift(t&&t.biff==2?1:2)]}function NNt(n,e,t){var r=n[n.l+1]&255?1:0;return n.l+=2,[r,n.read_shift(t&&t.biff==2?1:2)]}function kNt(n){var e=n[n.l+1]&255?1:0;return n.l+=2,[e,n.read_shift(2)]}function FNt(n,e,t){var r=n[n.l+1]&255?1:0;return n.l+=t&&t.biff==2?3:4,[r]}function dGe(n){var e=n.read_shift(1),t=n.read_shift(1);return[e,t]}function BNt(n){return n.read_shift(2),dGe(n)}function GNt(n){return n.read_shift(2),dGe(n)}function zNt(n,e,t){var r=(n[n.l]&96)>>5;n.l+=1;var i=fGe(n,0,t);return[r,i]}function UNt(n,e,t){var r=(n[n.l]&96)>>5;n.l+=1;var i=TNt(n,0,t);return[r,i]}function VNt(n,e,t){var r=(n[n.l]&96)>>5;n.l+=1;var i=n.read_shift(2);t&&t.biff==5&&(n.l+=12);var a=fGe(n,0,t);return[r,i,a]}function $Nt(n,e,t){var r=(n[n.l]&96)>>5;n.l+=1;var i=n.read_shift(t&&t.biff<=3?1:2);return[W3t[i],gGe[i],r]}function WNt(n,e,t){var r=n[n.l++],i=n.read_shift(1),a=t&&t.biff<=3?[r==88?-1:0,n.read_shift(1)]:HNt(n);return[i,(a[0]===0?gGe:$3t)[a[1]]]}function HNt(n){return[n[n.l+1]>>7,n.read_shift(2)&32767]}function jNt(n,e,t){n.l+=t&&t.biff==2?3:4}function XNt(n,e,t){if(n.l++,t&&t.biff==12)return[n.read_shift(4,"i"),0];var r=n.read_shift(2),i=n.read_shift(t&&t.biff==2?1:2);return[r,i]}function YNt(n){return n.l++,nT[n.read_shift(1)]}function qNt(n){return n.l++,n.read_shift(2)}function ZNt(n){return n.l++,n.read_shift(1)!==0}function KNt(n){return n.l++,Bc(n)}function JNt(n,e,t){return n.l++,N3(n,e-1,t)}function QNt(n,e){var t=[n.read_shift(1)];if(e==12)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2;break}switch(t[0]){case 4:t[1]=tu(n,1)?"TRUE":"FALSE",e!=12&&(n.l+=7);break;case 37:case 16:t[1]=nT[n[n.l]],n.l+=e==12?4:8;break;case 0:n.l+=8;break;case 1:t[1]=Bc(n);break;case 2:t[1]=iT(n,0,{biff:e>0&&e<8?2:e});break;default:throw new Error("Bad SerAr: "+t[0])}return t}function e3t(n,e,t){for(var r=n.read_shift(t.biff==12?4:2),i=[],a=0;a!=r;++a)i.push((t.biff==12?rT:CU)(n));return i}function t3t(n,e,t){var r=0,i=0;t.biff==12?(r=n.read_shift(4),i=n.read_shift(4)):(i=1+n.read_shift(1),r=1+n.read_shift(2)),t.biff>=2&&t.biff<8&&(--r,--i==0&&(i=256));for(var a=0,o=[];a!=r&&(o[a]=[]);++a)for(var s=0;s!=i;++s)o[a][s]=QNt(n,t.biff);return o}function r3t(n,e,t){var r=n.read_shift(1)>>>5&3,i=!t||t.biff>=8?4:2,a=n.read_shift(i);switch(t.biff){case 2:n.l+=5;break;case 3:case 4:n.l+=8;break;case 5:n.l+=12;break}return[r,0,a]}function n3t(n,e,t){if(t.biff==5)return i3t(n);var r=n.read_shift(1)>>>5&3,i=n.read_shift(2),a=n.read_shift(4);return[r,i,a]}function i3t(n){var e=n.read_shift(1)>>>5&3,t=n.read_shift(2,"i");n.l+=8;var r=n.read_shift(2);return n.l+=12,[e,t,r]}function a3t(n,e,t){var r=n.read_shift(1)>>>5&3;n.l+=t&&t.biff==2?3:4;var i=n.read_shift(t&&t.biff==2?1:2);return[r,i]}function o3t(n,e,t){var r=n.read_shift(1)>>>5&3,i=n.read_shift(t&&t.biff==2?1:2);return[r,i]}function s3t(n,e,t){var r=n.read_shift(1)>>>5&3;return n.l+=4,t.biff<8&&n.l--,t.biff==12&&(n.l+=2),[r]}function l3t(n,e,t){var r=(n[n.l++]&96)>>5,i=n.read_shift(2),a=4;if(t)switch(t.biff){case 5:a=15;break;case 12:a=6;break}return n.l+=a,[r,i]}var u3t=Kc,h3t=Kc,c3t=Kc;function F3(n,e,t){return n.l+=2,[ENt(n)]}function Toe(n){return n.l+=6,[]}var f3t=F3,d3t=Toe,v3t=Toe,p3t=F3;function vGe(n){return n.l+=2,[nu(n),n.read_shift(2)&1]}var g3t=F3,y3t=vGe,m3t=Toe,_3t=F3,x3t=F3,S3t=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function w3t(n){n.l+=2;var e=n.read_shift(2),t=n.read_shift(2),r=n.read_shift(4),i=n.read_shift(2),a=n.read_shift(2),o=S3t[t>>2&31];return{ixti:e,coltype:t&3,rt:o,idx:r,c:i,C:a}}function b3t(n){return n.l+=2,[n.read_shift(4)]}function E3t(n,e,t){return n.l+=5,n.l+=2,n.l+=t.biff==2?1:4,["PTGSHEET"]}function T3t(n,e,t){return n.l+=t.biff==2?4:5,["PTGENDSHEET"]}function C3t(n){var e=n.read_shift(1)>>>5&3,t=n.read_shift(2);return[e,t]}function A3t(n){var e=n.read_shift(1)>>>5&3,t=n.read_shift(2);return[e,t]}function M3t(n){return n.l+=4,[0,0]}var H_e={1:{n:"PtgExp",f:XNt},2:{n:"PtgTbl",f:c3t},3:{n:"PtgAdd",f:bu},4:{n:"PtgSub",f:bu},5:{n:"PtgMul",f:bu},6:{n:"PtgDiv",f:bu},7:{n:"PtgPower",f:bu},8:{n:"PtgConcat",f:bu},9:{n:"PtgLt",f:bu},10:{n:"PtgLe",f:bu},11:{n:"PtgEq",f:bu},12:{n:"PtgGe",f:bu},13:{n:"PtgGt",f:bu},14:{n:"PtgNe",f:bu},15:{n:"PtgIsect",f:bu},16:{n:"PtgUnion",f:bu},17:{n:"PtgRange",f:bu},18:{n:"PtgUplus",f:bu},19:{n:"PtgUminus",f:bu},20:{n:"PtgPercent",f:bu},21:{n:"PtgParen",f:bu},22:{n:"PtgMissArg",f:bu},23:{n:"PtgStr",f:JNt},26:{n:"PtgSheet",f:E3t},27:{n:"PtgEndSheet",f:T3t},28:{n:"PtgErr",f:YNt},29:{n:"PtgBool",f:ZNt},30:{n:"PtgInt",f:qNt},31:{n:"PtgNum",f:KNt},32:{n:"PtgArray",f:ONt},33:{n:"PtgFunc",f:$Nt},34:{n:"PtgFuncVar",f:WNt},35:{n:"PtgName",f:r3t},36:{n:"PtgRef",f:zNt},37:{n:"PtgArea",f:ANt},38:{n:"PtgMemArea",f:a3t},39:{n:"PtgMemErr",f:u3t},40:{n:"PtgMemNoMem",f:h3t},41:{n:"PtgMemFunc",f:o3t},42:{n:"PtgRefErr",f:s3t},43:{n:"PtgAreaErr",f:INt},44:{n:"PtgRefN",f:UNt},45:{n:"PtgAreaN",f:PNt},46:{n:"PtgMemAreaN",f:C3t},47:{n:"PtgMemNoMemN",f:A3t},57:{n:"PtgNameX",f:n3t},58:{n:"PtgRef3d",f:VNt},59:{n:"PtgArea3d",f:MNt},60:{n:"PtgRefErr3d",f:l3t},61:{n:"PtgAreaErr3d",f:LNt},255:{}},I3t={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},L3t={1:{n:"PtgElfLel",f:vGe},2:{n:"PtgElfRw",f:_3t},3:{n:"PtgElfCol",f:f3t},6:{n:"PtgElfRwV",f:x3t},7:{n:"PtgElfColV",f:p3t},10:{n:"PtgElfRadical",f:g3t},11:{n:"PtgElfRadicalS",f:m3t},13:{n:"PtgElfColS",f:d3t},15:{n:"PtgElfColSV",f:v3t},16:{n:"PtgElfRadicalLel",f:y3t},25:{n:"PtgList",f:w3t},29:{n:"PtgSxName",f:b3t},255:{}},P3t={0:{n:"PtgAttrNoop",f:M3t},1:{n:"PtgAttrSemi",f:FNt},2:{n:"PtgAttrIf",f:NNt},4:{n:"PtgAttrChoose",f:RNt},8:{n:"PtgAttrGoto",f:DNt},16:{n:"PtgAttrSum",f:jNt},32:{n:"PtgAttrBaxcel",f:W_e},33:{n:"PtgAttrBaxcel",f:W_e},64:{n:"PtgAttrSpace",f:BNt},65:{n:"PtgAttrSpaceSemi",f:GNt},128:{n:"PtgAttrIfError",f:kNt},255:{}};function B3(n,e,t,r){if(r.biff<8)return Kc(n,e);for(var i=n.l+e,a=[],o=0;o!==t.length;++o)switch(t[o][0]){case"PtgArray":t[o][1]=t3t(n,0,r),a.push(t[o][1]);break;case"PtgMemArea":t[o][2]=e3t(n,t[o][1],r),a.push(t[o][2]);break;case"PtgExp":r&&r.biff==12&&(t[o][1][1]=n.read_shift(4),a.push(t[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+t[o][0]}return e=i-n.l,e!==0&&a.push(Kc(n,e)),a}function G3(n,e,t){for(var r=n.l+e,i,a,o=[];r!=n.l;)e=r-n.l,a=n[n.l],i=H_e[a]||H_e[I3t[a]],(a===24||a===25)&&(i=(a===24?L3t:P3t)[n[n.l+1]]),!i||!i.f?Kc(n,e):o.push([i.n,i.f(n,e,t)]);return o}function O3t(n){for(var e=[],t=0;t=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function D3t(n,e){var t=n.lastIndexOf("!"),r=e.lastIndexOf("!");return t==-1&&r==-1?n+":"+e:t>0&&r>0&&n.slice(0,t).toLowerCase()==e.slice(0,r).toLowerCase()?n+":"+e.slice(r+1):(console.error("Cannot hydrate range",n,e),n+":"+e)}function pGe(n,e,t){if(!n)return"SH33TJSERR0";if(t.biff>8&&(!n.XTI||!n.XTI[e]))return n.SheetNames[e];if(!n.XTI)return"SH33TJSERR6";var r=n.XTI[e];if(t.biff<8)return e>1e4&&(e-=65536),e<0&&(e=-e),e==0?"":n.XTI[e-1];if(!r)return"SH33TJSERR1";var i="";if(t.biff>8)switch(n[r[0]][0]){case 357:return i=r[1]==-1?"#REF":n.SheetNames[r[1]],r[1]==r[2]?i:i+":"+n.SheetNames[r[2]];case 358:return t.SID!=null?n.SheetNames[t.SID]:"SH33TJSSAME"+n[r[0]][0];case 355:default:return"SH33TJSSRC"+n[r[0]][0]}switch(n[r[0]][0][0]){case 1025:return i=r[1]==-1?"#REF":n.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?i:i+":"+n.SheetNames[r[2]];case 14849:return n[r[0]].slice(1).map(function(a){return a.Name}).join(";;");default:return n[r[0]][0][3]?(i=r[1]==-1?"#REF":n[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?i:i+":"+n[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function j_e(n,e,t){var r=pGe(n,e,t);return r=="#REF"?r:OPt(r,t)}function kc(n,e,t,r,i){var a=i&&i.biff||8,o={s:{c:0,r:0},e:{c:0,r:0}},s=[],l,u,h,c=0,f=0,d,v="";if(!n[0]||!n[0][0])return"";for(var p=-1,g="",m=0,y=n[0].length;m=0){switch(n[0][p][1][0]){case 0:g=wo(" ",n[0][p][1][1]);break;case 1:g=wo("\r",n[0][p][1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+n[0][p][1][0])}u=u+g,p=-1}s.push(u+R3t[_[0]]+l);break;case"PtgIsect":l=s.pop(),u=s.pop(),s.push(u+" "+l);break;case"PtgUnion":l=s.pop(),u=s.pop(),s.push(u+","+l);break;case"PtgRange":l=s.pop(),u=s.pop(),s.push(D3t(u,l));break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":h=aR(_[1][1],o,i),s.push(oR(h,a));break;case"PtgRefN":h=t?aR(_[1][1],t,i):_[1][1],s.push(oR(h,a));break;case"PtgRef3d":c=_[1][1],h=aR(_[1][2],o,i),v=j_e(r,c,i),s.push(v+"!"+oR(h,a));break;case"PtgFunc":case"PtgFuncVar":var x=_[1][0],S=_[1][1];x||(x=0),x&=127;var w=x==0?[]:s.slice(-x);s.length-=x,S==="User"&&(S=w.shift()),s.push(S+"("+w.join(",")+")");break;case"PtgBool":s.push(_[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(_[1]);break;case"PtgNum":s.push(String(_[1]));break;case"PtgStr":s.push('"'+_[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(_[1]);break;case"PtgAreaN":d=T_e(_[1][1],t?{s:t}:o,i),s.push(gX(d,i));break;case"PtgArea":d=T_e(_[1][1],o,i),s.push(gX(d,i));break;case"PtgArea3d":c=_[1][1],d=_[1][2],v=j_e(r,c,i),s.push(v+"!"+gX(d,i));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":f=_[1][2];var b=(r.names||[])[f-1]||(r[0]||[])[f],E=b?b.Name:"SH33TJSNAME"+String(f);E&&E.slice(0,6)=="_xlfn."&&!i.xlfn&&(E=E.slice(6)),s.push(E);break;case"PtgNameX":var T=_[1][1];f=_[1][2];var C;if(i.biff<=5)T<0&&(T=-T),r[T]&&(C=r[T][f]);else{var A="";if(((r[T]||[])[0]||[])[0]==14849||(((r[T]||[])[0]||[])[0]==1025?r[T][f]&&r[T][f].itab>0&&(A=r.SheetNames[r[T][f].itab-1]+"!"):A=r.SheetNames[f-1]+"!"),r[T]&&r[T][f])A+=r[T][f].Name;else if(r[0]&&r[0][f])A+=r[0][f].Name;else{var M=(pGe(r,T,i)||"").split(";;");M[f-1]?A=M[f-1]:A+="SH33TJSERRX"}s.push(A);break}C||(C={Name:"SH33TJSERRY"}),s.push(C.Name);break;case"PtgParen":var I="(",R=")";if(p>=0){switch(g="",n[0][p][1][0]){case 2:I=wo(" ",n[0][p][1][1])+I;break;case 3:I=wo("\r",n[0][p][1][1])+I;break;case 4:R=wo(" ",n[0][p][1][1])+R;break;case 5:R=wo("\r",n[0][p][1][1])+R;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+n[0][p][1][0])}p=-1}s.push(I+s.pop()+R);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":h={c:_[1][1],r:_[1][0]};var k={c:t.c,r:t.r};if(r.sharedf[bo(h)]){var D=r.sharedf[bo(h)];s.push(kc(D,o,k,r,i))}else{var G=!1;for(l=0;l!=r.arrayf.length;++l)if(u=r.arrayf[l],!(h.cu[0].e.c)&&!(h.ru[0].e.r)){s.push(kc(u[1],o,k,r,i)),G=!0;break}G||s.push(_[1])}break;case"PtgArray":s.push("{"+O3t(_[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":p=m;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgList":s.push("Table"+_[1].idx+"[#"+_[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(_));default:throw new Error("Unrecognized Formula Token: "+String(_))}var V=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&p>=0&&V.indexOf(n[0][m][0])==-1){_=n[0][p];var z=!0;switch(_[1][0]){case 4:z=!1;case 0:g=wo(" ",_[1][1]);break;case 5:z=!1;case 1:g=wo("\r",_[1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+_[1][0])}s.push((z?g:"")+s.pop()+(z?"":g)),p=-1}}if(s.length>1&&i.WTF)throw new Error("bad formula stack");return s[0]=="TRUE"?!0:s[0]=="FALSE"?!1:s[0]}function N3t(n,e,t){var r=n.l+e,i=t.biff==2?1:2,a,o=n.read_shift(i);if(o==65535)return[[],Kc(n,e-2)];var s=G3(n,o,t);return e!==o+i&&(a=B3(n,e-o-i,s,t)),n.l=r,[s,a]}function k3t(n,e,t){var r=n.l+e,i=t.biff==2?1:2,a,o=n.read_shift(i);if(o==65535)return[[],Kc(n,e-2)];var s=G3(n,o,t);return e!==o+i&&(a=B3(n,e-o-i,s,t)),n.l=r,[s,a]}function F3t(n,e,t,r){var i=n.l+e,a=G3(n,r,t),o;return i!==n.l&&(o=B3(n,i-n.l,a,t)),[a,o]}function B3t(n,e,t){var r=n.l+e,i,a=n.read_shift(2),o=G3(n,a,t);return a==65535?[[],Kc(n,e-2)]:(e!==a+2&&(i=B3(n,r-a-2,o,t)),[o,i])}function G3t(n){var e;if(R1(n,n.l+6)!==65535)return[Bc(n),"n"];switch(n[n.l]){case 0:return n.l+=8,["String","s"];case 1:return e=n[n.l+2]===1,n.l+=8,[e,"b"];case 2:return e=n[n.l+2],n.l+=8,[e,"e"];case 3:return n.l+=8,["","s"]}return[]}function _X(n,e,t){var r=n.l+e,i=Pm(n);t.biff==2&&++n.l;var a=G3t(n),o=n.read_shift(1);t.biff!=2&&(n.read_shift(1),t.biff>=5&&n.read_shift(4));var s=k3t(n,r-n.l,t);return{cell:i,val:a[0],formula:s,shared:o>>3&1,tt:a[1]}}function AU(n,e,t){var r=n.read_shift(4),i=G3(n,r,t),a=n.read_shift(4),o=a>0?B3(n,a,i,t):null;return[i,o]}var z3t=AU,MU=AU,U3t=AU,V3t=AU,$3t={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},gGe={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},W3t={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function X_e(n){return n.slice(0,3)=="of:"&&(n=n.slice(3)),n.charCodeAt(0)==61&&(n=n.slice(1),n.charCodeAt(0)==61&&(n=n.slice(1))),n=n.replace(/COM\.MICROSOFT\./g,""),n=n.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(e,t){return t.replace(/\./g,"")}),n=n.replace(/\$'([^']|'')+'/g,function(e){return e.slice(1)}),n=n.replace(/\$([^\]\. #$]+)/g,function(e,t){return t.match(/^([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])?(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})?$/)?e:t}),n=n.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),n.replace(/[;~]/g,",").replace(/\|/g,";")}function xX(n){n=n.replace(/\$'([^']|'')+'/g,function(r){return r.slice(1)}),n=n.replace(/\$([^\]\. #$]+)/g,function(r,i){return i.match(/^([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])?(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})?$/)?r:i});var e=n.split(":"),t=e[0].split(".")[0];return[t,e[0].split(".")[1]+(e.length>1?":"+(e[1].split(".")[1]||e[1].split(".")[0]):"")]}var hR={},UA={};function cR(n,e){if(!!n){var t=[.7,.7,.75,.75,.3,.3];e=="xlml"&&(t=[1,1,1,1,.5,.5]),n.left==null&&(n.left=t[0]),n.right==null&&(n.right=t[1]),n.top==null&&(n.top=t[2]),n.bottom==null&&(n.bottom=t[3]),n.header==null&&(n.header=t[4]),n.footer==null&&(n.footer=t[5])}}function yGe(n,e,t,r,i,a){try{r.cellNF&&(n.z=ji[e])}catch(s){if(r.WTF)throw s}if(!(n.t==="z"&&!r.cellStyles)){if(n.t==="d"&&typeof n.v=="string"&&(n.v=pc(n.v)),(!r||r.cellText!==!1)&&n.t!=="z")try{if(ji[e]==null&&OE($Lt[e]||"General",e),n.t==="e")n.w=n.w||nT[n.v];else if(e===0)if(n.t==="n")(n.v|0)===n.v?n.w=n.v.toString(10):n.w=ID(n.v);else if(n.t==="d"){var o=Zc(n.v);(o|0)===o?n.w=o.toString(10):n.w=ID(o)}else{if(n.v===void 0)return"";n.w=e2(n.v,UA)}else n.t==="d"?n.w=Cv(e,Zc(n.v),UA):n.w=Cv(e,n.v,UA)}catch(s){if(r.WTF)throw s}if(!!r.cellStyles&&t!=null)try{n.s=a.Fills[t],n.s.fgColor&&n.s.fgColor.theme&&!n.s.fgColor.rgb&&(n.s.fgColor.rgb=QG(i.themeElements.clrScheme[n.s.fgColor.theme].rgb,n.s.fgColor.tint||0),r.WTF&&(n.s.fgColor.raw_rgb=i.themeElements.clrScheme[n.s.fgColor.theme].rgb)),n.s.bgColor&&n.s.bgColor.theme&&(n.s.bgColor.rgb=QG(i.themeElements.clrScheme[n.s.bgColor.theme].rgb,n.s.bgColor.tint||0),r.WTF&&(n.s.bgColor.raw_rgb=i.themeElements.clrScheme[n.s.bgColor.theme].rgb))}catch(s){if(r.WTF&&a.Fills)throw s}}}function H3t(n,e){var t=cu(e);t.s.r<=t.e.r&&t.s.c<=t.e.c&&t.s.r>=0&&t.s.c>=0&&(n["!ref"]=lo(t))}var j3t=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,X3t=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,Y3t=/<(?:\w:)?hyperlink [^>]*>/mg,q3t=/"(\w*:\w*)"/,Z3t=/<(?:\w:)?col\b[^>]*[\/]?>/g,K3t=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,J3t=/<(?:\w:)?pageMargins[^>]*\/>/g,mGe=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,Q3t=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,ekt=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function tkt(n,e,t,r,i,a,o){if(!n)return n;r||(r={"!id":{}});var s={};e.dense&&(s["!data"]=[]);var l={s:{r:2e6,c:2e6},e:{r:0,c:0}},u="",h="",c=n.match(X3t);c?(u=n.slice(0,c.index),h=n.slice(c.index+c[0].length)):u=h=n;var f=u.match(mGe);f?Coe(f[0],s,i,t):(f=u.match(Q3t))&&rkt(f[0],f[1]||"",s,i,t);var d=(u.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var v=u.slice(d,d+50).match(q3t);v&&!(e&&e.nodim)&&H3t(s,v[1])}var p=u.match(ekt);p&&p[1]&&lkt(p[1],i);var g=[];if(e.cellStyles){var m=u.match(Z3t);m&&akt(g,m)}c&&ukt(c[1],s,e,l,a,o);var y=h.match(K3t);y&&(s["!autofilter"]=okt(y[0]));var _=[],x=h.match(j3t);if(x)for(d=0;d!=x.length;++d)_[d]=cu(x[d].slice(x[d].indexOf('"')+1));var S=h.match(Y3t);S&&nkt(s,S,r);var w=h.match(J3t);if(w&&(s["!margins"]=ikt(Tn(w[0]))),e&&e.nodim&&(l.s.c=l.s.r=0),!s["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(s["!ref"]=lo(l)),e.sheetRows>0&&s["!ref"]){var b=cu(s["!ref"]);e.sheetRows<=+b.e.r&&(b.e.r=e.sheetRows-1,b.e.r>l.e.r&&(b.e.r=l.e.r),b.e.rl.e.c&&(b.e.c=l.e.c),b.e.c0&&(s["!cols"]=g),_.length>0&&(s["!merges"]=_),s}function Coe(n,e,t,r){var i=Tn(n);t.Sheets[r]||(t.Sheets[r]={}),i.codeName&&(t.Sheets[r].CodeName=so(As(i.codeName)))}function rkt(n,e,t,r,i){Coe(n.slice(0,n.indexOf(">")),t,r,i)}function nkt(n,e,t){for(var r=n["!data"]!=null,i=0;i!=e.length;++i){var a=Tn(As(e[i]),!0);if(!a.ref)return;var o=((t||{})["!id"]||[])[a.id];o?(a.Target=o.Target,a.location&&(a.Target+="#"+so(a.location))):(a.Target="#"+so(a.location),o={Target:a.Target,TargetMode:"Internal"}),a.Rel=o,a.tooltip&&(a.Tooltip=a.tooltip,delete a.tooltip);for(var s=cu(a.ref),l=s.s.r;l<=s.e.r;++l)for(var u=s.s.c;u<=s.e.c;++u){var h=$o(u)+ys(l);r?(n["!data"][l]||(n["!data"][l]=[]),n["!data"][l][u]||(n["!data"][l][u]={t:"z",v:void 0}),n["!data"][l][u].l=a):(n[h]||(n[h]={t:"z",v:void 0}),n[h].l=a)}}}function ikt(n){var e={};return["left","right","top","bottom","header","footer"].forEach(function(t){n[t]&&(e[t]=parseFloat(n[t]))}),e}function akt(n,e){for(var t=!1,r=0;r!=e.length;++r){var i=Tn(e[r],!0);i.hidden&&(i.hidden=ps(i.hidden));var a=parseInt(i.min,10)-1,o=parseInt(i.max,10)-1;for(i.outlineLevel&&(i.level=+i.outlineLevel||0),delete i.min,delete i.max,i.width=+i.width,!t&&i.width&&(t=!0,Eoe(i.width)),SM(i);a<=o;)n[a++]=sh(i)}}function okt(n){var e={ref:(n.match(/ref="([^"]*)"/)||[])[1]};return e}var skt=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/g;function lkt(n,e){e.Views||(e.Views=[{}]),(n.match(skt)||[]).forEach(function(t,r){var i=Tn(t);e.Views[r]||(e.Views[r]={}),+i.zoomScale&&(e.Views[r].zoom=+i.zoomScale),i.rightToLeft&&ps(i.rightToLeft)&&(e.Views[r].RTL=!0)})}var ukt=function(){var n=/<(?:\w+:)?c[ \/>]/,e=/<\/(?:\w+:)?row>/,t=/r=["']([^"']*)["']/,r=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,a=LD("v"),o=LD("f");return function(l,u,h,c,f,d){for(var v=0,p="",g=[],m=[],y=0,_=0,x=0,S="",w,b,E=0,T=0,C,A,M=0,I=0,R=Array.isArray(d.CellXf),k,D=[],G=[],V=u["!data"]!=null,z=[],j={},Z=!1,Y=!!h.sheetStubs,le=l.split(e),H=0,Q=le.length;H!=Q;++H){p=le[H].trim();var ie=p.length;if(ie===0)continue;var oe=0;e:for(v=0;v":if(p[v-1]!="/"){++v;break e}if(h&&h.cellStyles){if(b=Tn(p.slice(oe,v),!0),E=b.r!=null?parseInt(b.r,10):E+1,T=-1,h.sheetRows&&h.sheetRows=v)break;if(b=Tn(p.slice(oe,v),!0),E=b.r!=null?parseInt(b.r,10):E+1,T=-1,!(h.sheetRows&&h.sheetRowsE-1&&(c.s.r=E-1),c.e.r":"")+p,m!=null&&m.length===2){for(y=0,S=m[1],_=0;_!=S.length&&!((x=S.charCodeAt(_)-64)<1||x>26);++_)y=26*y+x;--y,T=y}else++T;for(_=0;_!=p.length&&p.charCodeAt(_)!==62;++_);if(++_,b=Tn(p.slice(0,_),!0),b.r||(b.r=bo({r:E-1,c:T})),S=p.slice(_),w={t:""},(m=S.match(a))!=null&&m[1]!==""&&(w.v=so(m[1])),h.cellFormula){if((m=S.match(o))!=null&&m[1]!==""){if(w.f=so(As(m[1]),!0),h.xlfn||(w.f=$_e(w.f)),m[0].indexOf('t="array"')>-1)w.F=(S.match(i)||[])[1],w.F.indexOf(":")>-1&&D.push([cu(w.F),w.F]);else if(m[0].indexOf('t="shared"')>-1){A=Tn(m[0]);var me=so(As(m[1]));h.xlfn||(me=$_e(me)),G[parseInt(A.si,10)]=[A,me,b.r]}}else(m=S.match(/]*\/>/))&&(A=Tn(m[0]),G[A.si]&&(w.f=xNt(G[A.si][1],G[A.si][2],b.r)));var Ce=zc(b.r);for(_=0;_=D[_][0].s.r&&Ce.r<=D[_][0].e.r&&Ce.c>=D[_][0].s.c&&Ce.c<=D[_][0].e.c&&(w.F=D[_][1])}if(b.t==null&&w.v===void 0)if(w.f||w.F)w.v=0,w.t="n";else if(Y)w.t="z";else continue;else w.t=b.t||"n";switch(c.s.c>T&&(c.s.c=T),c.e.c"u"){if(!Y)continue;w.t="z"}else C=hR[parseInt(w.v,10)],w.v=C.t,w.r=C.r,h.cellHTML&&(w.h=C.h);break;case"str":w.t="s",w.v=w.v!=null?so(As(w.v),!0):"",h.cellHTML&&(w.h=qG(w.v));break;case"inlineStr":m=S.match(r),w.t="s",m!=null&&(C=boe(m[1]))?(w.v=C.t,h.cellHTML&&(w.h=C.h)):w.v="";break;case"b":w.v=ps(w.v);break;case"d":h.cellDates?w.v=pc(w.v,1):(w.v=Zc(pc(w.v,1)),w.t="n");break;case"e":(!h||h.cellText!==!1)&&(w.w=w.v),w.v=B8e[w.v];break}if(M=I=0,k=null,R&&b.s!==void 0&&(k=d.CellXf[b.s],k!=null&&(k.numFmtId!=null&&(M=k.numFmtId),h.cellStyles&&k.fillId!=null&&(I=k.fillId))),yGe(w,M,I,h,f,d),h.cellDates&&R&&w.t=="n"&&Q2(ji[M])&&(w.t="d",w.v=EU(w.v)),b.cm&&h.xlmeta){var Le=(h.xlmeta.Cell||[])[+b.cm-1];Le&&Le.type=="XLDAPR"&&(w.D=!0)}var re;h.nodim&&(re=zc(b.r),c.s.r>re.r&&(c.s.r=re.r),c.e.r0&&(u["!rows"]=z)}}();function hkt(n,e){var t={},r=n.l+e;t.r=n.read_shift(4),n.l+=4;var i=n.read_shift(2);n.l+=1;var a=n.read_shift(1);return n.l=r,a&7&&(t.level=a&7),a&16&&(t.hidden=!0),a&32&&(t.hpt=i/20),t}var ckt=rT;function fkt(){}function dkt(n,e){var t={},r=n[n.l];return++n.l,t.above=!(r&64),t.left=!(r&128),n.l+=18,t.name=kPt(n),t}function vkt(n){var e=og(n);return[e]}function pkt(n){var e=tT(n);return[e]}function gkt(n){var e=og(n),t=n.read_shift(1);return[e,t,"b"]}function ykt(n){var e=tT(n),t=n.read_shift(1);return[e,t,"b"]}function mkt(n){var e=og(n),t=n.read_shift(1);return[e,t,"e"]}function _kt(n){var e=tT(n),t=n.read_shift(1);return[e,t,"e"]}function xkt(n){var e=og(n),t=n.read_shift(4);return[e,t,"s"]}function Skt(n){var e=tT(n),t=n.read_shift(4);return[e,t,"s"]}function wkt(n){var e=og(n),t=Bc(n);return[e,t,"n"]}function _Ge(n){var e=tT(n),t=Bc(n);return[e,t,"n"]}function bkt(n){var e=og(n),t=xoe(n);return[e,t,"n"]}function Ekt(n){var e=tT(n),t=xoe(n);return[e,t,"n"]}function Tkt(n){var e=og(n),t=moe(n);return[e,t,"is"]}function Ckt(n){var e=og(n),t=Wc(n);return[e,t,"str"]}function Akt(n){var e=tT(n),t=Wc(n);return[e,t,"str"]}function Mkt(n,e,t){var r=n.l+e,i=og(n);i.r=t["!row"];var a=n.read_shift(1),o=[i,a,"b"];if(t.cellFormula){n.l+=2;var s=MU(n,r-n.l,t);o[3]=kc(s,null,i,t.supbooks,t)}else n.l=r;return o}function Ikt(n,e,t){var r=n.l+e,i=og(n);i.r=t["!row"];var a=n.read_shift(1),o=[i,a,"e"];if(t.cellFormula){n.l+=2;var s=MU(n,r-n.l,t);o[3]=kc(s,null,i,t.supbooks,t)}else n.l=r;return o}function Lkt(n,e,t){var r=n.l+e,i=og(n);i.r=t["!row"];var a=Bc(n),o=[i,a,"n"];if(t.cellFormula){n.l+=2;var s=MU(n,r-n.l,t);o[3]=kc(s,null,i,t.supbooks,t)}else n.l=r;return o}function Pkt(n,e,t){var r=n.l+e,i=og(n);i.r=t["!row"];var a=Wc(n),o=[i,a,"str"];if(t.cellFormula){n.l+=2;var s=MU(n,r-n.l,t);o[3]=kc(s,null,i,t.supbooks,t)}else n.l=r;return o}var Okt=rT;function Rkt(n,e){var t=n.l+e,r=rT(n),i=_oe(n),a=Wc(n),o=Wc(n),s=Wc(n);n.l=t;var l={rfx:r,relId:i,loc:a,display:s};return o&&(l.Tooltip=o),l}function Dkt(){}function Nkt(n,e,t){var r=n.l+e,i=N8e(n),a=n.read_shift(1),o=[i];if(o[2]=a,t.cellFormula){var s=z3t(n,r-n.l,t);o[1]=s}else n.l=r;return o}function kkt(n,e,t){var r=n.l+e,i=rT(n),a=[i];if(t.cellFormula){var o=V3t(n,r-n.l,t);a[1]=o,n.l=r}else n.l=r;return a}var Fkt=["left","right","top","bottom","header","footer"];function Bkt(n){var e={};return Fkt.forEach(function(t){e[t]=Bc(n)}),e}function Gkt(n){var e=n.read_shift(2);return n.l+=28,{RTL:e&32}}function zkt(){}function Ukt(){}function Vkt(n,e,t,r,i,a,o){if(!n)return n;var s=e||{};r||(r={"!id":{}});var l={};s.dense&&(l["!data"]=[]);var u,h={s:{r:2e6,c:2e6},e:{r:0,c:0}},c=!1,f=!1,d,v,p,g,m,y,_,x,S,w=[];s.biff=12,s["!row"]=0;var b=0,E=!1,T=[],C={},A=s.supbooks||i.supbooks||[[]];if(A.sharedf=C,A.arrayf=T,A.SheetNames=i.SheetNames||i.Sheets.map(function(V){return V.name}),!s.supbooks&&(s.supbooks=A,i.Names))for(var M=0;M=Y[0].s.r&&d.r<=Y[0].e.r&&m>=Y[0].s.c&&m<=Y[0].e.c&&(v.F=lo(Y[0]),E=!0)}!E&&z.length>3&&(v.f=z[3])}if(h.s.r>d.r&&(h.s.r=d.r),h.s.c>m&&(h.s.c=m),h.e.rd.r&&(h.s.r=d.r),h.s.c>m&&(h.s.c=m),h.e.r=z.s;)I[z.e--]={width:z.w/256,hidden:!!(z.flags&1),level:z.level},k||(k=!0,Eoe(z.w/256)),SM(I[z.e+1]);break;case 161:l["!autofilter"]={ref:lo(z)};break;case 476:l["!margins"]=z;break;case 147:i.Sheets[t]||(i.Sheets[t]={}),z.name&&(i.Sheets[t].CodeName=z.name),(z.above||z.left)&&(l["!outline"]={above:z.above,left:z.left});break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),z.RTL&&(i.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:c=!0;break;case 36:c=!1;break;case 37:c=!0;break;case 38:c=!1;break;default:if(!j.T){if(!c||s.WTF)throw new Error("Unexpected record 0x"+Z.toString(16))}}},s),delete s.supbooks,delete s["!row"],!l["!ref"]&&(h.s.r<2e6||u&&(u.e.r>0||u.e.c>0||u.s.r>0||u.s.c>0))&&(l["!ref"]=lo(u||h)),s.sheetRows&&l["!ref"]){var G=cu(l["!ref"]);s.sheetRows<=+G.e.r&&(G.e.r=s.sheetRows-1,G.e.r>h.e.r&&(G.e.r=h.e.r),G.e.rh.e.c&&(G.e.c=h.e.c),G.e.c0&&(l["!merges"]=w),I.length>0&&(l["!cols"]=I),R.length>0&&(l["!rows"]=R),l}function $kt(n){var e=[],t=n.match(/^/),r;(n.match(/(.*?)<\/c:pt>/mg)||[]).forEach(function(a){var o=a.match(/(.*)<\/c:v><\/c:pt>/);!o||(e[+o[1]]=t?+o[2]:o[2])});var i=so((n.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(n.match(/(.*?)<\/c:f>/mg)||[]).forEach(function(a){r=a.replace(/<.*?>/g,"")}),[e,i,r]}function Wkt(n,e,t,r,i,a){var o=a||{"!type":"chart"};if(!n)return a;var s=0,l=0,u="A",h={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(n.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(c){var f=$kt(c);h.s.r=h.s.c=0,h.e.c=s,u=$o(s),f[0].forEach(function(d,v){o["!data"]?(o["!data"][v]||(o["!data"][v]=[]),o["!data"][v][s]={t:"n",v:d,z:f[1]}):o[u+ys(v)]={t:"n",v:d,z:f[1]},l=v}),h.e.r0&&(o["!ref"]=lo(h)),o}function Hkt(n,e,t,r,i){if(!n)return n;r||(r={"!id":{}});var a={"!type":"chart","!drawel":null,"!rel":""},o,s=n.match(mGe);return s&&Coe(s[0],a,i,t),(o=n.match(/drawing r:id="(.*?)"/))&&(a["!rel"]=o[1]),r["!id"][a["!rel"]]&&(a["!drawel"]=r["!id"][a["!rel"]]),a}function jkt(n,e){n.l+=10;var t=Wc(n);return{name:t}}function Xkt(n,e,t,r,i){if(!n)return n;r||(r={"!id":{}});var a={"!type":"chart","!drawel":null,"!rel":""},o=!1;return B_(n,function(l,u,h){switch(h){case 550:a["!rel"]=l;break;case 651:i.Sheets[t]||(i.Sheets[t]={}),l.name&&(i.Sheets[t].CodeName=l.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:break;case 38:break;default:if(!(u.T>0)){if(!(u.T<0)){if(!o||e.WTF)throw new Error("Unexpected record 0x"+h.toString(16))}}}},e),r["!id"][a["!rel"]]&&(a["!drawel"]=r["!id"][a["!rel"]]),a}var xGe=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],Ykt=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],qkt=[],Zkt=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Y_e(n,e){for(var t=0;t!=n.length;++t)for(var r=n[t],i=0;i!=e.length;++i){var a=e[i];if(r[a[0]]==null)r[a[0]]=a[1];else switch(a[2]){case"bool":typeof r[a[0]]=="string"&&(r[a[0]]=ps(r[a[0]]));break;case"int":typeof r[a[0]]=="string"&&(r[a[0]]=parseInt(r[a[0]],10));break}}}function q_e(n,e){for(var t=0;t!=e.length;++t){var r=e[t];if(n[r[0]]==null)n[r[0]]=r[1];else switch(r[2]){case"bool":typeof n[r[0]]=="string"&&(n[r[0]]=ps(n[r[0]]));break;case"int":typeof n[r[0]]=="string"&&(n[r[0]]=parseInt(n[r[0]],10));break}}}function SGe(n){q_e(n.WBProps,xGe),q_e(n.CalcPr,Zkt),Y_e(n.WBView,Ykt),Y_e(n.Sheets,qkt),UA.date1904=ps(n.WBProps.date1904)}var Kkt=":][*?/\\".split("");function Jkt(n,e){try{if(n=="")throw new Error("Sheet name cannot be blank");if(n.length>31)throw new Error("Sheet name cannot exceed 31 chars");if(n.charCodeAt(0)==39||n.charCodeAt(n.length-1)==39)throw new Error("Sheet name cannot start or end with apostrophe (')");if(n.toLowerCase()=="history")throw new Error("Sheet name cannot be 'History'");Kkt.forEach(function(t){if(n.indexOf(t)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")})}catch(t){if(e)return!1;throw t}return!0}var Qkt=/<\w+:workbook/;function eFt(n,e){if(!n)throw new Error("Could not find file");var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},r=!1,i="xmlns",a={},o=0;if(n.replace(nf,function(l,u){var h=Tn(l);switch(N0(h[0])){case"":break;case"":case"":break;case"":break;case"":xGe.forEach(function(c){if(h[c[0]]!=null)switch(c[2]){case"bool":t.WBProps[c[0]]=ps(h[c[0]]);break;case"int":t.WBProps[c[0]]=parseInt(h[c[0]],10);break;default:t.WBProps[c[0]]=h[c[0]]}}),h.codeName&&(t.WBProps.CodeName=As(h.codeName));break;case"":break;case"":break;case"":case"":break;case"":delete h[0],t.WBView.push(h);break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":r=!1;break;case"":a.Ref=so(As(n.slice(o,u))),t.Names.push(a);break;case"":break;case"":delete h[0],t.CalcPr=h;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":case"":break;case"":r=!1;break;case"":r=!0;break;case"":r=!1;break;case"8?Wc(n):"";return i.length>0&&(t.CodeName=i),t.autoCompressPictures=!!(r&65536),t.backupFile=!!(r&64),t.checkCompatibility=!!(r&4096),t.date1904=!!(r&1),t.filterPrivacy=!!(r&8),t.hidePivotFieldList=!!(r&1024),t.promptedSolutions=!!(r&16),t.publishItems=!!(r&2048),t.refreshAllConnections=!!(r&262144),t.saveExternalLinkValues=!!(r&128),t.showBorderUnselectedTables=!!(r&4),t.showInkAnnotation=!!(r&32),t.showObjects=["all","placeholders","none"][r>>13&3],t.showPivotChartFilter=!!(r&32768),t.updateLinks=["userSet","never","always"][r>>8&3],t}function nFt(n,e){var t={};return n.read_shift(4),t.ArchID=n.read_shift(4),n.l+=e-8,t}function iFt(n,e,t){var r=n.l+e,i=n.read_shift(4);n.l+=1;var a=n.read_shift(4),o=FPt(n),s=U3t(n,0,t),l=_oe(n);i&32&&(o="_xlnm."+o),n.l=r;var u={Name:o,Ptg:s,Flags:i};return a<268435455&&(u.Sheet=a),l&&(u.Comment=l),u}function aFt(n,e){var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},r=[],i=!1;e||(e={}),e.biff=12;var a=[],o=[[]];return o.SheetNames=[],o.XTI=[],r9[16]={n:"BrtFRTArchID$",f:nFt},B_(n,function(l,u,h){switch(h){case 156:o.SheetNames.push(l.name),t.Sheets.push(l);break;case 153:t.WBProps=l;break;case 39:l.Sheet!=null&&(e.SID=l.Sheet),l.Ref=kc(l.Ptg,null,null,o,e),delete e.SID,delete l.Ptg,a.push(l);break;case 1036:break;case 357:case 358:case 355:case 667:o[0].length?o.push([h,l]):o[0]=[h,l],o[o.length-1].XTI=[];break;case 362:o.length===0&&(o[0]=[],o[0].XTI=[]),o[o.length-1].XTI=o[o.length-1].XTI.concat(l),o.XTI=o.XTI.concat(l);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:r.push(h),i=!0;break;case 36:r.pop(),i=!1;break;case 37:r.push(h),i=!0;break;case 38:r.pop(),i=!1;break;case 16:break;default:if(!u.T){if(!i||e.WTF&&r[r.length-1]!=37&&r[r.length-1]!=35)throw new Error("Unexpected record 0x"+h.toString(16))}}},e),SGe(t),t.Names=a,t.supbooks=o,t}function oFt(n,e,t){return e.slice(-4)===".bin"?aFt(n,t):eFt(n,t)}function sFt(n,e,t,r,i,a,o,s){return e.slice(-4)===".bin"?Vkt(n,r,t,i,a,o,s):tkt(n,r,t,i,a,o,s)}function lFt(n,e,t,r,i,a,o,s){return e.slice(-4)===".bin"?Xkt(n,r,t,i,a):Hkt(n,r,t,i,a)}function uFt(n,e,t,r,i,a,o,s){return e.slice(-4)===".bin"?yNt():mNt()}function hFt(n,e,t,r,i,a,o,s){return e.slice(-4)===".bin"?pNt():gNt()}function cFt(n,e,t,r){return e.slice(-4)===".bin"?ODt(n,t,r):CDt(n,t,r)}function fFt(n,e,t){return e.slice(-4)===".bin"?XRt(n,t):HRt(n,t)}function dFt(n,e,t){return e.slice(-4)===".bin"?fNt(n,t):sNt(n,t)}function vFt(n,e,t){return e.slice(-4)===".bin"?iNt(n):rNt(n)}function pFt(n,e,t,r){return t.slice(-4)===".bin"?aNt(n,e,t,r):void 0}function gFt(n,e,t){return e.slice(-4)===".bin"?eNt(n,e,t):tNt(n,e,t)}var wGe=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,bGe=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function Cg(n,e){var t=n.split(/\s+/),r=[];if(e||(r[0]=t[0]),t.length===1)return r;var i=n.match(wGe),a,o,s,l;if(i)for(l=0;l!=i.length;++l)a=i[l].match(bGe),(o=a[1].indexOf(":"))===-1?r[a[1]]=a[2].slice(1,a[2].length-1):(a[1].slice(0,6)==="xmlns:"?s="xmlns"+a[1].slice(6):s=a[1].slice(o+1),r[s]=a[2].slice(1,a[2].length-1));return r}function yFt(n){var e=n.split(/\s+/),t={};if(e.length===1)return t;var r=n.match(wGe),i,a,o,s;if(r)for(s=0;s!=r.length;++s)i=r[s].match(bGe),(a=i[1].indexOf(":"))===-1?t[i[1]]=i[2].slice(1,i[2].length-1):(i[1].slice(0,6)==="xmlns:"?o="xmlns"+i[1].slice(6):o=i[1].slice(a+1),t[o]=i[2].slice(1,i[2].length-1));return t}var fR;function mFt(n,e){var t=fR[n]||so(n);return t==="General"?e2(e):Cv(t,e)}function _Ft(n,e,t,r){var i=r;switch((t[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=ps(r);break;case"i2":case"int":i=parseInt(r,10);break;case"r4":case"float":i=parseFloat(r);break;case"date":case"dateTime.tz":i=pc(r);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+t[0])}n[so(e)]=i}function xFt(n,e,t){if(n.t!=="z"){if(!t||t.cellText!==!1)try{n.t==="e"?n.w=n.w||nT[n.v]:e==="General"?n.t==="n"?(n.v|0)===n.v?n.w=n.v.toString(10):n.w=ID(n.v):n.w=e2(n.v):n.w=mFt(e||"General",n.v)}catch(a){if(t.WTF)throw a}try{var r=fR[e]||e||"General";if(t.cellNF&&(n.z=r),t.cellDates&&n.t=="n"&&Q2(r)){var i=uE(n.v);i&&(n.t="d",n.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}catch(a){if(t.WTF)throw a}}}function SFt(n,e,t){if(t.cellStyles&&e.Interior){var r=e.Interior;r.Pattern&&(r.patternType=xDt[r.Pattern]||r.Pattern)}n[e.ID]=e}function wFt(n,e,t,r,i,a,o,s,l,u){var h="General",c=r.StyleID,f={};u=u||{};var d=[],v=0;for(c===void 0&&s&&(c=s.StyleID),c===void 0&&o&&(c=o.StyleID);a[c]!==void 0&&(a[c].nf&&(h=a[c].nf),a[c].Interior&&d.push(a[c].Interior),!!a[c].Parent);)c=a[c].Parent;switch(t.Type){case"Boolean":r.t="b",r.v=ps(n);break;case"String":r.t="s",r.r=g_e(so(n)),r.v=n.indexOf("<")>-1?so(e||n).replace(/<.*?>/g,""):r.r;break;case"DateTime":n.slice(-1)!="Z"&&(n+="Z"),r.v=(pc(n)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3),r.v!==r.v?r.v=so(n):r.v<60&&(r.v=r.v-1),(!h||h=="General")&&(h="yyyy-mm-dd");case"Number":r.v===void 0&&(r.v=+n),r.t||(r.t="n");break;case"Error":r.t="e",r.v=B8e[n],u.cellText!==!1&&(r.w=n);break;default:n==""&&e==""?r.t="z":(r.t="s",r.v=g_e(e||n));break}if(xFt(r,h,u),u.cellFormula!==!1)if(r.Formula){var p=so(r.Formula);p.charCodeAt(0)==61&&(p=p.slice(1)),r.f=DE(p,i),delete r.Formula,r.ArrayRange=="RC"?r.F=DE("RC:RC",i):r.ArrayRange&&(r.F=DE(r.ArrayRange,i),l.push([cu(r.F),r.F]))}else for(v=0;v=l[v][0].s.r&&i.r<=l[v][0].e.r&&i.c>=l[v][0].s.c&&i.c<=l[v][0].e.c&&(r.F=l[v][1]);u.cellStyles&&(d.forEach(function(g){!f.patternType&&g.patternType&&(f.patternType=g.patternType)}),r.s=f),r.StyleID!==void 0&&(r.ixfe=r.StyleID)}function bFt(n){return G8e.indexOf("_xlnm."+n)>-1?"_xlnm."+n:n}function EFt(n){n.t=n.v||"",n.t=n.t.replace(/\r\n/g,` +`).replace(/\r/g,` +`),n.v=n.w=n.ixfe=void 0}function SX(n,e){var t=e||{};u8e();var r=uO(TU(n));(t.type=="binary"||t.type=="array"||t.type=="base64")&&(r=As(r));var i=r.slice(0,1024).toLowerCase(),a=!1;if(i=i.replace(/".*?"/g,""),(i.indexOf(">")&1023)>Math.min(i.indexOf(",")&1023,i.indexOf(";")&1023)){var o=sh(t);return o.type="string",PD.to_workbook(r,o)}if(i.indexOf("=0&&(a=!0)}),a)return RFt(r,t);fR={"General Number":"General","General Date":ji[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":ji[15],"Short Date":ji[14],"Long Time":ji[19],"Medium Time":ji[18],"Short Time":ji[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:ji[2],Standard:ji[4],Percent:ji[10],Scientific:ji[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var s,l=[],u,h={},c=[],f={},d="";t.dense&&(f["!data"]=[]);var v={},p={},g=Cg(''),m=0,y=0,_=0,x={s:{r:2e6,c:2e6},e:{r:0,c:0}},S={},w={},b="",E=0,T=[],C={},A={},M=0,I=[],R=[],k={},D=[],G,V=!1,z=[],j=[],Z={},Y=0,le=0,H={Sheets:[],WBProps:{date1904:!1}},Q={};Mu.lastIndex=0,r=r.replace(//mg,"");for(var ie="";s=Mu.exec(r);)switch(s[3]=(ie=s[3]).toLowerCase()){case"data":if(ie=="data"){if(s[1]==="/"){if((u=l.pop())[0]!==s[3])throw new Error("Bad state: "+u.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&l.push([s[3],!0]);break}if(l[l.length-1][1])break;s[1]==="/"?wFt(r.slice(m,s.index),b,g,l[l.length-1][0]=="comment"?k:v,{c:y,r:_},S,D[y],p,z,t):(b="",g=Cg(s[0]),m=s.index+s[0].length);break;case"cell":if(s[1]==="/")if(R.length>0&&(v.c=R),(!t.sheetRows||t.sheetRows>_)&&v.v!==void 0&&(t.dense?(f["!data"][_]||(f["!data"][_]=[]),f["!data"][_][y]=v):f[$o(y)+ys(_)]=v),v.HRef&&(v.l={Target:so(v.HRef)},v.HRefScreenTip&&(v.l.Tooltip=v.HRefScreenTip),delete v.HRef,delete v.HRefScreenTip),(v.MergeAcross||v.MergeDown)&&(Y=y+(parseInt(v.MergeAcross,10)|0),le=_+(parseInt(v.MergeDown,10)|0),(Y>y||le>_)&&T.push({s:{c:y,r:_},e:{c:Y,r:le}})),!t.sheetStubs)v.MergeAcross?y=Y+1:++y;else if(v.MergeAcross||v.MergeDown){for(var oe=y;oe<=Y;++oe)for(var se=_;se<=le;++se)(oe>y||se>_)&&(t.dense?(f["!data"][se]||(f["!data"][se]=[]),f["!data"][se][oe]={t:"z"}):f[$o(oe)+ys(se)]={t:"z"});y=Y+1}else++y;else v=yFt(s[0]),v.Index&&(y=+v.Index-1),yx.e.c&&(x.e.c=y),s[0].slice(-2)==="/>"&&++y,R=[];break;case"row":s[1]==="/"||s[0].slice(-2)==="/>"?(_x.e.r&&(x.e.r=_),s[0].slice(-2)==="/>"&&(p=Cg(s[0]),p.Index&&(_=+p.Index-1)),y=0,++_):(p=Cg(s[0]),p.Index&&(_=+p.Index-1),Z={},(p.AutoFitHeight=="0"||p.Height)&&(Z.hpx=parseInt(p.Height,10),Z.hpt=oGe(Z.hpx),j[_]=Z),p.Hidden=="1"&&(Z.hidden=!0,j[_]=Z));break;case"worksheet":if(s[1]==="/"){if((u=l.pop())[0]!==s[3])throw new Error("Bad state: "+u.join("|"));c.push(d),x.s.r<=x.e.r&&x.s.c<=x.e.c&&(f["!ref"]=lo(x),t.sheetRows&&t.sheetRows<=x.e.r&&(f["!fullref"]=f["!ref"],x.e.r=t.sheetRows-1,f["!ref"]=lo(x))),T.length&&(f["!merges"]=T),D.length>0&&(f["!cols"]=D),j.length>0&&(f["!rows"]=j),h[d]=f}else x={s:{r:2e6,c:2e6},e:{r:0,c:0}},_=y=0,l.push([s[3],!1]),u=Cg(s[0]),d=so(u.Name),f={},t.dense&&(f["!data"]=[]),T=[],z=[],j=[],Q={name:d,Hidden:0},H.Sheets.push(Q);break;case"table":if(s[1]==="/"){if((u=l.pop())[0]!==s[3])throw new Error("Bad state: "+u.join("|"))}else{if(s[0].slice(-2)=="/>")break;l.push([s[3],!1]),D=[],V=!1}break;case"style":s[1]==="/"?SFt(S,w,t):w=Cg(s[0]);break;case"numberformat":w.nf=so(Cg(s[0]).Format||"General"),fR[w.nf]&&(w.nf=fR[w.nf]);for(var me=0;me!=392&&ji[me]!=w.nf;++me);if(me==392){for(me=57;me!=392;++me)if(ji[me]==null){OE(w.nf,me);break}}break;case"column":if(l[l.length-1][0]!=="table"||s[1]==="/")break;if(G=Cg(s[0]),G.Hidden&&(G.hidden=!0,delete G.Hidden),G.Width&&(G.wpx=parseInt(G.Width,10)),!V&&G.wpx>10){V=!0,Ef=iGe;for(var Ce=0;Ce0&&(yt.Sheet=H.Sheets.length-1),H.Names.push(yt);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(s[0].slice(-2)==="/>")break;s[1]==="/"?b+=r.slice(E,s.index):E=s.index+s[0].length;break;case"interior":if(!t.cellStyles)break;w.Interior=Cg(s[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(s[0].slice(-2)==="/>")break;s[1]==="/"?lOt(C,ie,r.slice(M,s.index)):M=s.index+s[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(s[1]==="/"){if((u=l.pop())[0]!==s[3])throw new Error("Bad state: "+u.join("|"))}else l.push([s[3],!1]);break;case"comment":if(s[1]==="/"){if((u=l.pop())[0]!==s[3])throw new Error("Bad state: "+u.join("|"));EFt(k),R.push(k)}else l.push([s[3],!1]),u=Cg(s[0]),k={a:u.Author};break;case"autofilter":if(s[1]==="/"){if((u=l.pop())[0]!==s[3])throw new Error("Bad state: "+u.join("|"))}else if(s[0].charAt(s[0].length-2)!=="/"){var je=Cg(s[0]);f["!autofilter"]={ref:DE(je.Range).replace(/\$/g,"")},l.push([s[3],!0])}break;case"name":break;case"datavalidation":if(s[1]==="/"){if((u=l.pop())[0]!==s[3])throw new Error("Bad state: "+u.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&l.push([s[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(s[1]==="/"){if((u=l.pop())[0]!==s[3])throw new Error("Bad state: "+u.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&l.push([s[3],!0]);break;case"null":break;default:if(l.length==0&&s[3]=="document"||l.length==0&&s[3]=="uof")return exe(r,t);var st=!0;switch(l[l.length-1][0]){case"officedocumentsettings":switch(s[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:st=!1}break;case"componentoptions":switch(s[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:st=!1}break;case"excelworkbook":switch(s[3]){case"date1904":H.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:st=!1}break;case"workbookoptions":switch(s[3]){case"owcversion":break;case"height":break;case"width":break;default:st=!1}break;case"worksheetoptions":switch(s[3]){case"visible":if(s[0].slice(-2)!=="/>")if(s[1]==="/")switch(r.slice(M,s.index)){case"SheetHidden":Q.Hidden=1;break;case"SheetVeryHidden":Q.Hidden=2;break}else M=s.index+s[0].length;break;case"header":f["!margins"]||cR(f["!margins"]={},"xlml"),isNaN(+Tn(s[0]).Margin)||(f["!margins"].header=+Tn(s[0]).Margin);break;case"footer":f["!margins"]||cR(f["!margins"]={},"xlml"),isNaN(+Tn(s[0]).Margin)||(f["!margins"].footer=+Tn(s[0]).Margin);break;case"pagemargins":var Nt=Tn(s[0]);f["!margins"]||cR(f["!margins"]={},"xlml"),isNaN(+Nt.Top)||(f["!margins"].top=+Nt.Top),isNaN(+Nt.Left)||(f["!margins"].left=+Nt.Left),isNaN(+Nt.Right)||(f["!margins"].right=+Nt.Right),isNaN(+Nt.Bottom)||(f["!margins"].bottom=+Nt.Bottom);break;case"displayrighttoleft":H.Views||(H.Views=[]),H.Views[0]||(H.Views[0]={}),H.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":f["!outline"]||(f["!outline"]={}),f["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":f["!outline"]||(f["!outline"]={}),f["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:st=!1}break;case"pivottable":case"pivotcache":switch(s[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:st=!1}break;case"pagebreaks":switch(s[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:st=!1}break;case"autofilter":switch(s[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:st=!1}break;case"querytable":switch(s[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:st=!1}break;case"datavalidation":switch(s[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:st=!1}break;case"sorting":case"conditionalformatting":switch(s[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:st=!1}break;case"mapinfo":case"schema":case"data":switch(s[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:st=!1}break;case"smarttags":break;default:st=!1;break}if(st||s[3].match(/!\[CDATA/))break;if(!l[l.length-1][1])throw"Unrecognized tag: "+s[3]+"|"+l.join("|");if(l[l.length-1][0]==="customdocumentproperties"){if(s[0].slice(-2)==="/>")break;s[1]==="/"?_Ft(A,ie,I,r.slice(M,s.index)):(I=s,M=s.index+s[0].length);break}if(t.WTF)throw"Unrecognized tag: "+s[3]+"|"+l.join("|")}var Zt={};return!t.bookSheets&&!t.bookProps&&(Zt.Sheets=h),Zt.SheetNames=c,Zt.Workbook=H,Zt.SSF=sh(ji),Zt.Props=C,Zt.Custprops=A,Zt.bookType="xlml",Zt}function wQ(n,e){switch(Moe(e=e||{}),e.type||"base64"){case"base64":return SX(Tv(n),e);case"binary":case"buffer":case"file":return SX(n,e);case"array":return SX(p_(n),e)}}function TFt(n){var e={},t=n.content;if(t.l=28,e.AnsiUserType=t.read_shift(0,"lpstr-ansi"),e.AnsiClipboardFormat=zPt(t),t.length-t.l<=4)return e;var r=t.read_shift(4);if(r==0||r>40||(t.l-=4,e.Reserved1=t.read_shift(0,"lpstr-ansi"),t.length-t.l<=4)||(r=t.read_shift(4),r!==1907505652)||(e.UnicodeClipboardFormat=UPt(t),r=t.read_shift(4),r==0||r>40))return e;t.l-=4,e.Reserved2=t.read_shift(0,"lpwstr")}var CFt=[60,1084,2066,2165,2175];function AFt(n,e,t,r,i){var a=r,o=[],s=t.slice(t.l,t.l+a);if(i&&i.enc&&i.enc.insitu&&s.length>0)switch(n){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:i.enc.insitu(s)}o.push(s),t.l+=a;for(var l=R1(t,t.l),u=bQ[l],h=0;u!=null&&CFt.indexOf(l)>-1;)a=R1(t,t.l+2),h=t.l+4,l==2066?h+=4:(l==2165||l==2175)&&(h+=12),s=t.slice(h,t.l+4+a),o.push(s),t.l+=4+a,u=bQ[l=R1(t,t.l)];var c=Yx(o);eh(c,0);var f=0;c.lens=[];for(var d=0;d1)&&!(kt.sheetRows&&pt.r>=kt.sheetRows)){if(kt.cellStyles&&ar.XF&&ar.XF.data&&C(pt,ar,kt),delete ar.ixfe,delete ar.XF,c=pt,f=bo(pt),(!o||!o.s||!o.e)&&(o={s:{r:0,c:0},e:{r:0,c:0}}),pt.ro.e.r&&(o.e.r=pt.r+1),pt.c+1>o.e.c&&(o.e.c=pt.c+1),kt.cellFormula&&ar.f){for(var Dr=0;Drpt.c||y[Dr][0].s.r>pt.r)&&!(y[Dr][0].e.c>8)!==se)throw new Error("rt mismatch: "+Le+"!="+se);Ce.r==12&&(n.l+=10,me-=10)}var re={};if(se===10?re=Ce.f(n,me,M):re=AFt(se,Ce,n,me,M),Z==0&&[9,521,1033,2057].indexOf(j)===-1)continue;switch(se){case 34:t.opts.Date1904=b.WBProps.date1904=re;break;case 134:t.opts.WriteProtect=!0;break;case 47:if(M.enc||(n.l=0),M.enc=re,!e.password)throw new Error("File is password-protected");if(re.valid==null)throw new Error("Encryption scheme unsupported");if(!re.valid)throw new Error("Password is incorrect");break;case 92:M.lastuser=re;break;case 66:var yt=Number(re);switch(yt){case 21010:yt=1200;break;case 32768:yt=1e4;break;case 32769:yt=1252;break}r0(M.codepage=yt),ie=!0;break;case 317:M.rrtabid=re;break;case 25:M.winlocked=re;break;case 439:t.opts.RefreshAll=re;break;case 12:t.opts.CalcCount=re;break;case 16:t.opts.CalcDelta=re;break;case 17:t.opts.CalcIter=re;break;case 13:t.opts.CalcMode=re;break;case 14:t.opts.CalcPrecision=re;break;case 95:t.opts.CalcSaveRecalc=re;break;case 15:M.CalcRefMode=re;break;case 2211:t.opts.FullCalc=re;break;case 129:re.fDialog&&(i["!type"]="dialog"),re.fBelow||((i["!outline"]||(i["!outline"]={})).above=!0),re.fRight||((i["!outline"]||(i["!outline"]={})).left=!0);break;case 224:S.push(re);break;case 430:z.push([re]),z[z.length-1].XTI=[];break;case 35:case 547:z[z.length-1].push(re);break;case 24:case 536:Q={Name:re.Name,Ref:kc(re.rgce,o,null,z,M)},re.itab>0&&(Q.Sheet=re.itab-1),z.names.push(Q),z[0]||(z[0]=[],z[0].XTI=[]),z[z.length-1].push(re),re.Name=="_xlnm._FilterDatabase"&&re.itab>0&&re.rgce&&re.rgce[0]&&re.rgce[0][0]&&re.rgce[0][0][0]=="PtgArea3d"&&(H[re.itab-1]={ref:lo(re.rgce[0][0][1][2])});break;case 22:M.ExternCount=re;break;case 23:z.length==0&&(z[0]=[],z[0].XTI=[]),z[z.length-1].XTI=z[z.length-1].XTI.concat(re),z.XTI=z.XTI.concat(re);break;case 2196:if(M.biff<8)break;Q!=null&&(Q.Comment=re[1]);break;case 18:i["!protect"]=re;break;case 19:re!==0&&M.WTF&&console.error("Password verifier: "+re);break;case 133:a[re.pos]=re,M.snames.push(re.name);break;case 10:{if(--Z)break;if(o.e){if(o.e.r>0&&o.e.c>0){if(o.e.r--,o.e.c--,i["!ref"]=lo(o),e.sheetRows&&e.sheetRows<=o.e.r){var je=o.e.r;o.e.r=e.sheetRows-1,i["!fullref"]=i["!ref"],i["!ref"]=lo(o),o.e.r=je}o.e.r++,o.e.c++}R.length>0&&(i["!merges"]=R),k.length>0&&(i["!objects"]=k),D.length>0&&(i["!cols"]=D),G.length>0&&(i["!rows"]=G),b.Sheets.push(E)}u===""?h=i:r[u]=i,i={},e.dense&&(i["!data"]=[])}break;case 9:case 521:case 1033:case 2057:{if(M.biff===8&&(M.biff={9:2,521:3,1033:4}[se]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[re.BIFFVer]||8),M.biffguess=re.BIFFVer==0,re.BIFFVer==0&&re.dt==4096&&(M.biff=5,ie=!0,r0(M.codepage=28591)),M.biff==8&&re.BIFFVer==0&&re.dt==16&&(M.biff=2),Z++)break;if(i={},e.dense&&(i["!data"]=[]),M.biff<8&&!ie&&(ie=!0,r0(M.codepage=e.codepage||1252)),M.biff<5||re.BIFFVer==0&&re.dt==4096){u===""&&(u="Sheet1"),o={s:{r:0,c:0},e:{r:0,c:0}};var st={pos:n.l-me,name:u};a[st.pos]=st,M.snames.push(u)}else u=(a[oe]||{name:""}).name;re.dt==32&&(i["!type"]="chart"),re.dt==64&&(i["!type"]="macro"),R=[],k=[],M.arrayf=y=[],D=[],G=[],V=!1,E={Hidden:(a[oe]||{hs:0}).hs,name:u}}break;case 515:case 3:case 2:i["!type"]=="chart"&&(e.dense?(i["!data"][re.r]||[])[re.c]:i[$o(re.c)+ys(re.r)])&&++re.c,_={ixfe:re.ixfe,XF:S[re.ixfe]||{},v:re.val,t:"n"},Y>0&&(_.z=le[_.ixfe>>8&63]),ny(_,e,t.opts.Date1904),A({c:re.c,r:re.r},_,e);break;case 5:case 517:_={ixfe:re.ixfe,XF:S[re.ixfe],v:re.val,t:re.t},Y>0&&(_.z=le[_.ixfe>>8&63]),ny(_,e,t.opts.Date1904),A({c:re.c,r:re.r},_,e);break;case 638:_={ixfe:re.ixfe,XF:S[re.ixfe],v:re.rknum,t:"n"},Y>0&&(_.z=le[_.ixfe>>8&63]),ny(_,e,t.opts.Date1904),A({c:re.c,r:re.r},_,e);break;case 189:for(var Nt=re.c;Nt<=re.C;++Nt){var Zt=re.rkrec[Nt-re.c][0];_={ixfe:Zt,XF:S[Zt],v:re.rkrec[Nt-re.c][1],t:"n"},Y>0&&(_.z=le[_.ixfe>>8&63]),ny(_,e,t.opts.Date1904),A({c:Nt,r:re.r},_,e)}break;case 6:case 518:case 1030:{if(re.val=="String"){s=re;break}if(_=e5(re.val,re.cell.ixfe,re.tt),_.XF=S[_.ixfe],e.cellFormula){var qe=re.formula;if(qe&&qe[0]&&qe[0][0]&&qe[0][0][0]=="PtgExp"){var ur=qe[0][0][1][0],Dt=qe[0][0][1][1],ft=bo({r:ur,c:Dt});m[ft]?_.f=""+kc(re.formula,o,re.cell,z,M):_.F=((e.dense?(i["!data"][ur]||[])[Dt]:i[ft])||{}).F}else _.f=""+kc(re.formula,o,re.cell,z,M)}Y>0&&(_.z=le[_.ixfe>>8&63]),ny(_,e,t.opts.Date1904),A(re.cell,_,e),s=re}break;case 7:case 519:if(s)s.val=re,_=e5(re,s.cell.ixfe,"s"),_.XF=S[_.ixfe],e.cellFormula&&(_.f=""+kc(s.formula,o,s.cell,z,M)),Y>0&&(_.z=le[_.ixfe>>8&63]),ny(_,e,t.opts.Date1904),A(s.cell,_,e),s=null;else throw new Error("String record expects Formula");break;case 33:case 545:{y.push(re);var Oe=bo(re[0].s);if(d=e.dense?(i["!data"][re[0].s.r]||[])[re[0].s.c]:i[Oe],e.cellFormula&&d){if(!s||!Oe||!d)break;d.f=""+kc(re[1],o,re[0],z,M),d.F=lo(re[0])}}break;case 1212:{if(!e.cellFormula)break;if(f){if(!s)break;m[bo(s.cell)]=re[0],d=e.dense?(i["!data"][s.cell.r]||[])[s.cell.c]:i[bo(s.cell)],(d||{}).f=""+kc(re[0],o,c,z,M)}}break;case 253:_=e5(l[re.isst].t,re.ixfe,"s"),l[re.isst].h&&(_.h=l[re.isst].h),_.XF=S[_.ixfe],Y>0&&(_.z=le[_.ixfe>>8&63]),ny(_,e,t.opts.Date1904),A({c:re.c,r:re.r},_,e);break;case 513:e.sheetStubs&&(_={ixfe:re.ixfe,XF:S[re.ixfe],t:"z"},Y>0&&(_.z=le[_.ixfe>>8&63]),ny(_,e,t.opts.Date1904),A({c:re.c,r:re.r},_,e));break;case 190:if(e.sheetStubs)for(var J=re.c;J<=re.C;++J){var We=re.ixfe[J-re.c];_={ixfe:We,XF:S[We],t:"z"},Y>0&&(_.z=le[_.ixfe>>8&63]),ny(_,e,t.opts.Date1904),A({c:J,r:re.r},_,e)}break;case 214:case 516:case 4:_=e5(re.val,re.ixfe,"s"),_.XF=S[_.ixfe],Y>0&&(_.z=le[_.ixfe>>8&63]),ny(_,e,t.opts.Date1904),A({c:re.c,r:re.r},_,e);break;case 0:case 512:Z===1&&(o=re);break;case 252:l=re;break;case 1054:if(M.biff==4){le[Y++]=re[1];for(var Tt=0;Tt=163&&OE(re[1],Y+163)}else OE(re[1],re[0]);break;case 30:{le[Y++]=re;for(var Qe=0;Qe=163&&OE(re,Y+163)}break;case 229:R=R.concat(re);break;case 93:k[re.cmo[0]]=M.lastobj=re;break;case 438:M.lastobj.TxO=re;break;case 127:M.lastobj.ImData=re;break;case 440:for(g=re[0].s.r;g<=re[0].e.r;++g)for(p=re[0].s.c;p<=re[0].e.c;++p)d=e.dense?(i["!data"][g]||[])[p]:i[bo({c:p,r:g})],d&&(d.l=re[1]);break;case 2048:for(g=re[0].s.r;g<=re[0].e.r;++g)for(p=re[0].s.c;p<=re[0].e.c;++p)d=e.dense?(i["!data"][g]||[])[p]:i[bo({c:p,r:g})],d&&d.l&&(d.l.Tooltip=re[1]);break;case 28:{if(M.biff<=5&&M.biff>=2)break;d=e.dense?(i["!data"][re[0].r]||[])[re[0].c]:i[bo(re[0])];var zt=k[re[2]];d||(e.dense?(i["!data"][re[0].r]||(i["!data"][re[0].r]=[]),d=i["!data"][re[0].r][re[0].c]={t:"z"}):d=i[bo(re[0])]={t:"z"},o.e.r=Math.max(o.e.r,re[0].r),o.s.r=Math.min(o.s.r,re[0].r),o.e.c=Math.max(o.e.c,re[0].c),o.s.c=Math.min(o.s.c,re[0].c)),d.c||(d.c=[]),v={a:re[1],t:zt.TxO.t},d.c.push(v)}break;case 2173:ZDt(S[re.ixfe],re.ext);break;case 125:{if(!M.cellStyles)break;for(;re.e>=re.s;)D[re.e--]={width:re.w/256,level:re.level||0,hidden:!!(re.flags&1)},V||(V=!0,Eoe(re.w/256)),SM(D[re.e+1])}break;case 520:{var mt={};re.level!=null&&(G[re.r]=mt,mt.level=re.level),re.hidden&&(G[re.r]=mt,mt.hidden=!0),re.hpt&&(G[re.r]=mt,mt.hpt=re.hpt,mt.hpx=RD(re.hpt))}break;case 38:case 39:case 40:case 41:i["!margins"]||cR(i["!margins"]={}),i["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[se]]=re;break;case 161:i["!margins"]||cR(i["!margins"]={}),i["!margins"].header=re.header,i["!margins"].footer=re.footer;break;case 574:re.RTL&&(b.Views[0].RTL=!0);break;case 146:w=re;break;case 2198:I=re;break;case 140:x=re;break;case 442:u?E.CodeName=re||E.name:b.WBProps.CodeName=re||"ThisWorkbook";break}}else Ce||console.error("Missing Info for XLS Record 0x"+se.toString(16)),n.l+=me}return t.SheetNames=h0(a).sort(function(wt,pt){return Number(wt)-Number(pt)}).map(function(wt){return a[wt].name}),e.bookSheets||(t.Sheets=r),!t.SheetNames.length&&h["!ref"]?(t.SheetNames.push("Sheet1"),t.Sheets&&(t.Sheets.Sheet1=h)):t.Preamble=h,t.Sheets&&H.forEach(function(wt,pt){t.Sheets[t.SheetNames[pt]]["!autofilter"]=wt}),t.Strings=l,t.SSF=sh(ji),M.enc&&(t.Encryption=M.enc),I&&(t.Themes=I),t.Metadata={},x!==void 0&&(t.Metadata.Country=x),z.names.length>0&&(b.Names=z.names),t.Workbook=b,t}var Z_e={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function IFt(n,e,t){var r=co.find(n,"/!DocumentSummaryInformation");if(r&&r.size>0)try{var i=O_e(r,XPt,Z_e.DSI);for(var a in i)e[a]=i[a]}catch(u){if(t.WTF)throw u}var o=co.find(n,"/!SummaryInformation");if(o&&o.size>0)try{var s=O_e(o,YPt,Z_e.SI);for(var l in s)e[l]==null&&(e[l]=s[l])}catch(u){if(t.WTF)throw u}e.HeadingPairs&&e.TitlesOfParts&&(U8e(e.HeadingPairs,e.TitlesOfParts,e,t),delete e.HeadingPairs,delete e.TitlesOfParts)}function EGe(n,e){e||(e={}),Moe(e),ZBe(),e.codepage&&uoe(e.codepage);var t,r;if(n.FullPaths){if(co.find(n,"/encryption"))throw new Error("File is password-protected");t=co.find(n,"!CompObj"),r=co.find(n,"/Workbook")||co.find(n,"/Book")}else{switch(e.type){case"base64":n=iv(Tv(n));break;case"binary":n=iv(n);break;case"buffer":break;case"array":Array.isArray(n)||(n=Array.prototype.slice.call(n));break}eh(n,0),r={content:n}}var i,a;if(t&&TFt(t),e.bookProps&&!e.bookSheets)i={};else{var o=oo?"buffer":"array";if(r&&r.content)i=MFt(r.content,e);else if((a=co.find(n,"PerfectOffice_MAIN"))&&a.content)i=uR.to_workbook(a.content,(e.type=o,e));else if((a=co.find(n,"NativeContent_MAIN"))&&a.content)i=uR.to_workbook(a.content,(e.type=o,e));else throw(a=co.find(n,"MN0"))&&a.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");e.bookVBA&&n.FullPaths&&co.find(n,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=vNt(n))}var s={};return n.FullPaths&&IFt(n,s,e),i.Props=i.Custprops=s,e.bookFiles&&(i.cfb=n),i}var r9={0:{f:hkt},1:{f:vkt},2:{f:bkt},3:{f:mkt},4:{f:gkt},5:{f:wkt},6:{f:Ckt},7:{f:xkt},8:{f:Pkt},9:{f:Lkt},10:{f:Mkt},11:{f:Ikt},12:{f:pkt},13:{f:Ekt},14:{f:_kt},15:{f:ykt},16:{f:_Ge},17:{f:Akt},18:{f:Skt},19:{f:moe},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:iFt},40:{},42:{},43:{f:MDt},44:{f:ADt},45:{f:IDt},46:{f:PDt},47:{f:LDt},48:{},49:{f:RPt},50:{},51:{f:JDt},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Q8e},62:{f:Tkt},63:{f:nNt},64:{f:zkt},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Kc,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:Gkt},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:dkt},148:{f:ckt,p:16},151:{f:Dkt},152:{},153:{f:rFt},154:{},155:{},156:{f:tFt},157:{},158:{},159:{T:1,f:jRt},160:{T:-1},161:{T:1,f:rT},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Okt},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:KDt},336:{T:-1},337:{f:QDt,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:mQ},357:{},358:{},359:{},360:{T:1},361:{},362:{f:J8e},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:Nkt},427:{f:kkt},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:Bkt},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:fkt},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:Rkt},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:mQ},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:cNt},633:{T:1},634:{T:-1},635:{T:1,f:hNt},636:{T:-1},637:{f:NPt},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:jkt},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:Ukt},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},bQ={6:{f:_X},10:{f:cx},12:{f:nu},13:{f:nu},14:{f:tu},15:{f:tu},16:{f:Bc},17:{f:tu},18:{f:tu},19:{f:nu},20:{f:k_e},21:{f:k_e},23:{f:J8e},24:{f:B_e},25:{f:tu},26:{},27:{},28:{f:sRt},29:{},34:{f:tu},35:{f:F_e},38:{f:Bc},39:{f:Bc},40:{f:Bc},41:{f:Bc},42:{f:tu},43:{f:tu},47:{f:cDt},49:{f:WOt},51:{f:nu},60:{},61:{f:UOt},64:{f:tu},65:{f:$Ot},66:{f:nu},77:{},80:{},81:{},82:{},85:{f:nu},89:{},90:{},91:{},92:{f:ROt},93:{f:uRt},94:{},95:{f:tu},96:{},97:{},99:{f:tu},125:{f:Q8e},128:{f:eRt},129:{f:DOt},130:{f:nu},131:{f:tu},132:{f:tu},133:{f:NOt},134:{},140:{f:pRt},141:{f:nu},144:{},146:{f:yRt},151:{},152:{},153:{},154:{},155:{},156:{f:nu},157:{},158:{},160:{f:wRt},161:{f:_Rt},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:ZOt},190:{f:KOt},193:{f:cx},197:{},198:{},199:{},200:{},201:{},202:{f:tu},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:nu},220:{},221:{f:tu},222:{},224:{f:QOt},225:{f:OOt},226:{f:cx},227:{},229:{f:lRt},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:kOt},253:{f:HOt},255:{f:FOt},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:j8e},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:tu},353:{f:cx},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:rRt},431:{f:tu},432:{},433:{},434:{},437:{},438:{f:fRt},439:{f:tu},440:{f:dRt},441:{},442:{f:k3},443:{},444:{f:nu},445:{},446:{},448:{f:cx},449:{f:zOt,r:2},450:{f:cx},512:{f:D_e},513:{f:SRt},515:{f:tRt},516:{f:jOt},517:{f:N_e},519:{f:bRt},520:{f:BOt},523:{},545:{f:z_e},549:{f:R_e},566:{},574:{f:VOt},638:{f:qOt},659:{},1048:{},1054:{f:XOt},1084:{},1212:{f:iRt},2048:{f:vRt},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Z4},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:cx},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:mRt,r:12},2173:{f:qDt,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:tu,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:nRt,r:12},2197:{},2198:{f:$Dt,r:12},2199:{},2200:{},2201:{},2202:{f:aRt,r:12},2203:{f:cx},2204:{},2205:{},2206:{},2207:{},2211:{f:GOt},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:nu},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:xRt},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:gRt},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:D_e},1:{},2:{f:ARt},3:{f:CRt},4:{f:TRt},5:{f:N_e},7:{f:MRt},8:{},9:{f:Z4},11:{},22:{f:nu},30:{f:YOt},31:{},32:{},33:{f:z_e},36:{},37:{f:R_e},50:{f:IRt},62:{},52:{},67:{},68:{f:nu},69:{},86:{},126:{},127:{f:ERt},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:LRt},223:{},234:{},354:{},421:{},518:{f:_X},521:{f:Z4},536:{f:B_e},547:{f:F_e},561:{},579:{},1030:{f:_X},1033:{f:Z4},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},101:{},102:{},105:{},106:{},107:{},109:{},112:{},114:{},29282:{}};function Ag(n,e,t,r){var i=e;if(!isNaN(i)){var a=r||(t||[]).length||0,o=n.next(4);o.write_shift(2,i),o.write_shift(2,a),a>0&&O8e(t)&&n.push(t)}}function K_e(n,e){var t=e||{},r=t.dense!=null?t.dense:mLt,i={};r&&(i["!data"]=[]),n=n.replace(//g,"");var a=n.match(/");var o=n.match(/<\/table/i),s=a.index,l=o&&o.index||n.length,u=tPt(n.slice(s,l),/(:?]*>)/i,""),h=-1,c=0,f=0,d=0,v={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(s=0;s/i);for(l=0;l"))>-1;)x=x.slice(S+1);for(var w=0;w")));d=E.colspan?+E.colspan:1,((f=+E.rowspan)>1||d>1)&&p.push({s:{r:h,c},e:{r:h+(f||1)-1,c:c+d-1}});var T=E.t||E["data-t"]||"";if(!x.length){c+=d;continue}if(x=_8e(x),v.s.r>h&&(v.s.r=h),v.e.rc&&(v.s.c=c),v.e.ct||i[c].s.c>l)&&!(i[c].e.r1&&(o.rowspan=u),h>1&&(o.colspan=h),r.editable?v=''+v+"":d&&(o["data-t"]=d&&d.t||"z",d.v!=null&&(o["data-v"]=d.v),d.z!=null&&(o["data-z"]=d.z),d.l&&(d.l.Target||"#").charAt(0)!="#"&&(v=''+v+"")),o.id=(r.id||"sjs")+"-"+f,a.push(gPt("td",v,o))}}var p="";return p+a.join("")+""}var PFt='SheetJS Table Export',OFt="";function RFt(n,e){var t=n.match(/[\s\S]*?<\/table>/gi);if(!t||t.length==0)throw new Error("Invalid HTML: could not find
");if(t.length==1){var r=ww(K_e(t[0],e),e);return r.bookType="html",r}var i=Loe();return t.forEach(function(a,o){IU(i,K_e(a,e),"Sheet"+(o+1))}),i.bookType="html",i}function DFt(n,e,t){var r=[];return r.join("")+""}function NFt(n,e){var t=e||{},r=t.header!=null?t.header:PFt,i=t.footer!=null?t.footer:OFt,a=[r],o=eT(n["!ref"]);a.push(DFt(n,o,t));for(var s=o.s.r;s<=o.e.r;++s)a.push(LFt(n,o,s,t));return a.push("
"+i),a.join("")}function TGe(n,e,t){var r=e.rows;if(!r)throw"Unsupported origin when "+e.tagName+" is not a TABLE";var i=t||{},a=n["!data"]!=null,o=0,s=0;if(i.origin!=null)if(typeof i.origin=="number")o=i.origin;else{var l=typeof i.origin=="string"?zc(i.origin):i.origin;o=l.r,s=l.c}var u=Math.min(i.sheetRows||1e7,r.length),h={s:{r:0,c:0},e:{r:o,c:s}};if(n["!ref"]){var c=eT(n["!ref"]);h.s.r=Math.min(h.s.r,c.s.r),h.s.c=Math.min(h.s.c,c.s.c),h.e.r=Math.max(h.e.r,c.e.r),h.e.c=Math.max(h.e.c,c.e.c),o==-1&&(h.e.r=o=c.e.r+1)}var f=[],d=0,v=n["!rows"]||(n["!rows"]=[]),p=0,g=0,m=0,y=0,_=0,x=0;for(n["!cols"]||(n["!cols"]=[]);p1||x>1)&&f.push({s:{r:g+o,c:y+s},e:{r:g+o+(_||1)-1,c:y+s+(x||1)-1}});var A={t:"s",v:E},M=b.getAttribute("data-t")||b.getAttribute("t")||"";E!=null&&(E.length==0?A.t=M||"z":i.raw||E.trim().length==0||M=="s"||(E==="TRUE"?A={t:"b",v:!0}:E==="FALSE"?A={t:"b",v:!1}:isNaN(mv(E))?isNaN(xM(E).getDate())||(A={t:"d",v:pc(E)},i.cellDates||(A={t:"n",v:Zc(A.v)}),A.z=i.dateNF||ji[14]):A={t:"n",v:mv(E)})),A.z===void 0&&T!=null&&(A.z=T);var I="",R=b.getElementsByTagName("A");if(R&&R.length)for(var k=0;k=u&&(n["!fullref"]=lo((h.e.r=r.length-p+g-1+o,h))),n}function CGe(n,e){var t=e||{},r={};return t.dense&&(r["!data"]=[]),TGe(r,n,e)}function kFt(n,e){var t=ww(CGe(n,e),e);return t}function J_e(n){var e="",t=FFt(n);return t&&(e=t(n).getPropertyValue("display")),e||(e=n.style&&n.style.display),e==="none"}function FFt(n){return n.ownerDocument.defaultView&&typeof n.ownerDocument.defaultView.getComputedStyle=="function"?n.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function BFt(n){var e=n.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,function(r,i){return Array(parseInt(i,10)+1).join(" ")}).replace(/]*\/>/g," ").replace(//g,` +`),t=so(e.replace(/<[^>]*>/g,""));return[t]}function AGe(n,e,t){var r=t||{},i=TU(n);Mu.lastIndex=0,i=i.replace(//mg,"").replace(//gm,"");for(var a,o,s="",l="",u,h=0,c=-1,f="";a=Mu.exec(i);)switch(a[3]=a[3].replace(/_.*$/,"")){case"number-style":case"currency-style":case"percentage-style":case"date-style":case"time-style":case"text-style":a[1]==="/"?(o["truncate-on-overflow"]=="false"&&(s.match(/h/)?s=s.replace(/h+/,"[$&]"):s.match(/m/)?s=s.replace(/m+/,"[$&]"):s.match(/s/)&&(s=s.replace(/s+/,"[$&]"))),r[o.name]=s,s=""):a[0].charAt(a[0].length-2)!=="/"&&(s="",o=Tn(a[0],!1));break;case"boolean-style":a[1]==="/"?(r[o.name]="General",s=""):a[0].charAt(a[0].length-2)!=="/"&&(s="",o=Tn(a[0],!1));break;case"boolean":s+="General";break;case"text":a[1]==="/"?(f=i.slice(c,Mu.lastIndex-a[0].length),f=="%"&&o[0]=="=0"?s=r[u["apply-style-name"]]+";"+s:console.error("ODS number format may be incorrect: "+u.condition);break;case"number":if(a[1]==="/")break;u=Tn(a[0],!1),l="",l+=wo("0",+u["min-integer-digits"]||1),ps(u.grouping)&&(l=O1(wo("#",Math.max(0,4-l.length))+l)),(+u["min-decimal-places"]||+u["decimal-places"])&&(l+="."),+u["min-decimal-places"]&&(l+=wo("0",+u["min-decimal-places"]||1)),+u["decimal-places"]-(+u["min-decimal-places"]||0)&&(l+=wo("0",+u["decimal-places"]-(+u["min-decimal-places"]||0))),s+=l;break;case"embedded-text":a[1]==="/"?h==0?s+='"'+i.slice(c,Mu.lastIndex-a[0].length).replace(/"/g,'""')+'"':s=s.slice(0,h)+'"'+i.slice(c,Mu.lastIndex-a[0].length).replace(/"/g,'""')+'"'+s.slice(h):a[0].charAt(a[0].length-2)!=="/"&&(c=Mu.lastIndex,h=-+Tn(a[0],!1).position||0);break}return r}function MGe(n,e,t){var r=e||{},i=TU(n),a=[],o,s,l,u="",h=0,c,f,d={},v=[],p={};r.dense&&(p["!data"]=[]);var g,m,y={value:""},_="",x=0,S=[],w=-1,b=-1,E={s:{r:1e6,c:1e7},e:{r:0,c:0}},T=0,C=t||{},A={},M=[],I={},R=0,k=0,D=[],G=1,V=1,z=[],j={Names:[],WBProps:{}},Z={},Y=["",""],le=[],H={},Q="",ie=0,oe=!1,se=!1,me=0,Ce=0;for(Mu.lastIndex=0,i=i.replace(//mg,"").replace(//gm,"");g=Mu.exec(i);)switch(g[3]=g[3].replace(/_.*$/,"")){case"table":case"\u5DE5\u4F5C\u8868":g[1]==="/"?(E.e.c>=E.s.c&&E.e.r>=E.s.r?p["!ref"]=lo(E):p["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=E.e.r&&(p["!fullref"]=p["!ref"],E.e.r=r.sheetRows-1,p["!ref"]=lo(E)),M.length&&(p["!merges"]=M),D.length&&(p["!rows"]=D),c.name=c.\u540D\u79F0||c.name,typeof JSON<"u"&&JSON.stringify(c),v.push(c.name),d[c.name]=p,se=!1):g[0].charAt(g[0].length-2)!=="/"&&(c=Tn(g[0],!1),w=b=-1,E.s.r=E.s.c=1e7,E.e.r=E.e.c=0,p={},r.dense&&(p["!data"]=[]),M=[],D=[],se=!0);break;case"table-row-group":g[1]==="/"?--T:++T;break;case"table-row":case"\u884C":if(g[1]==="/"){w+=G,G=1;break}if(f=Tn(g[0],!1),f.\u884C\u53F7?w=f.\u884C\u53F7-1:w==-1&&(w=0),G=+f["number-rows-repeated"]||1,G<10)for(me=0;me0&&(D[w+me]={level:T});b=-1;break;case"covered-table-cell":g[1]!=="/"&&++b,r.sheetStubs&&(r.dense?(p["!data"][w]||(p["!data"][w]=[]),p["!data"][w][b]={t:"z"}):p[bo({r:w,c:b})]={t:"z"}),_="",S=[];break;case"table-cell":case"\u6570\u636E":if(g[0].charAt(g[0].length-2)==="/")++b,y=Tn(g[0],!1),V=parseInt(y["number-columns-repeated"]||"1",10),m={t:"z",v:null},y.formula&&r.cellFormula!=!1&&(m.f=X_e(so(y.formula))),y["style-name"]&&A[y["style-name"]]&&(m.z=A[y["style-name"]]),(y.\u6570\u636E\u7C7B\u578B||y["value-type"])=="string"&&(m.t="s",m.v=so(y["string-value"]||""),r.dense?(p["!data"][w]||(p["!data"][w]=[]),p["!data"][w][b]=m):p[$o(b)+ys(w)]=m),b+=V-1;else if(g[1]!=="/"){++b,_="",x=0,S=[],V=1;var Le=G?w+G-1:w;if(b>E.e.c&&(E.e.c=b),bE.e.r&&(E.e.r=Le),y=Tn(g[0],!1),le=[],H={},m={t:y.\u6570\u636E\u7C7B\u578B||y["value-type"],v:null},y["style-name"]&&A[y["style-name"]]&&(m.z=A[y["style-name"]]),r.cellFormula)if(y.formula&&(y.formula=so(y.formula)),y["number-matrix-columns-spanned"]&&y["number-matrix-rows-spanned"]&&(R=parseInt(y["number-matrix-rows-spanned"],10)||0,k=parseInt(y["number-matrix-columns-spanned"],10)||0,I={s:{r:w,c:b},e:{r:w+R-1,c:b+k-1}},m.F=lo(I),z.push([I,m.F])),y.formula)m.f=X_e(y.formula);else for(me=0;me=z[me][0].s.r&&w<=z[me][0].e.r&&b>=z[me][0].s.c&&b<=z[me][0].e.c&&(m.F=z[me][1]);switch((y["number-columns-spanned"]||y["number-rows-spanned"])&&(R=parseInt(y["number-rows-spanned"],10)||0,k=parseInt(y["number-columns-spanned"],10)||0,I={s:{r:w,c:b},e:{r:w+R-1,c:b+k-1}},M.push(I)),y["number-columns-repeated"]&&(V=parseInt(y["number-columns-repeated"],10)),m.t){case"boolean":m.t="b",m.v=ps(y["boolean-value"])||+y["boolean-value"]>=1;break;case"float":m.t="n",m.v=parseFloat(y.value);break;case"percentage":m.t="n",m.v=parseFloat(y.value);break;case"currency":m.t="n",m.v=parseFloat(y.value);break;case"date":m.t="d",m.v=pc(y["date-value"]),r.cellDates||(m.t="n",m.v=Zc(m.v,j.WBProps.date1904)-Ce),m.z||(m.z="m/d/yy");break;case"time":m.t="n",m.v=ZLt(y["time-value"])/86400,r.cellDates&&(m.t="d",m.v=EU(m.v)),m.z||(m.z="HH:MM:SS");break;case"number":m.t="n",m.v=parseFloat(y.\u6570\u636E\u6570\u503C);break;default:if(m.t==="string"||m.t==="text"||!m.t)m.t="s",y["string-value"]!=null&&(_=so(y["string-value"]),S=[]);else throw new Error("Unsupported value type "+m.t)}}else{if(oe=!1,m.t==="s"&&(m.v=_||"",S.length&&(m.R=S),oe=x==0),Z.Target&&(m.l=Z),le.length>0&&(m.c=le,le=[]),_&&r.cellText!==!1&&(m.w=_),oe&&(m.t="z",delete m.v),(!oe||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=w))for(var re=0;re0;)p["!data"][w+re][b+V]=sh(m);else for(p[bo({r:w+re,c:b})]=m;--V>0;)p[bo({r:w+re,c:b+V})]=sh(m);E.e.c<=b&&(E.e.c=b)}V=parseInt(y["number-columns-repeated"]||"1",10),b+=V-1,V=0,m={},_="",S=[]}Z={};break;case"document":case"document-content":case"\u7535\u5B50\u8868\u683C\u6587\u6863":case"spreadsheet":case"\u4E3B\u4F53":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(g[1]==="/"){if((o=a.pop())[0]!==g[3])throw"Bad state: "+o}else g[0].charAt(g[0].length-2)!=="/"&&a.push([g[3],!0]);break;case"annotation":if(g[1]==="/"){if((o=a.pop())[0]!==g[3])throw"Bad state: "+o;H.t=_,S.length&&(H.R=S),H.a=Q,le.push(H)}else g[0].charAt(g[0].length-2)!=="/"&&a.push([g[3],!1]);Q="",ie=0,_="",x=0,S=[];break;case"creator":g[1]==="/"?Q=i.slice(ie,g.index):ie=g.index+g[0].length;break;case"meta":case"\u5143\u6570\u636E":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(g[1]==="/"){if((o=a.pop())[0]!==g[3])throw"Bad state: "+o}else g[0].charAt(g[0].length-2)!=="/"&&a.push([g[3],!1]);_="",x=0,S=[];break;case"scientific-number":case"currency-symbol":case"fill-character":break;case"text-style":case"boolean-style":case"number-style":case"currency-style":case"percentage-style":case"date-style":case"time-style":if(g[1]==="/"){var yt=Mu.lastIndex;AGe(i.slice(l,Mu.lastIndex),e,C),Mu.lastIndex=yt}else g[0].charAt(g[0].length-2)!=="/"&&(l=Mu.lastIndex-g[0].length);break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":{var je=Tn(g[0],!1);je.family=="table-cell"&&C[je["data-style-name"]]&&(A[je.name]=C[je["data-style-name"]])}break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":break;case"boolean":break;case"text":if(g[0].slice(-2)==="/>")break;if(g[1]==="/")switch(a[a.length-1][0]){case"number-style":case"date-style":case"time-style":u+=i.slice(h,g.index);break}else h=g.index+g[0].length;break;case"named-range":s=Tn(g[0],!1),Y=xX(s["cell-range-address"]);var st={Name:s.name,Ref:Y[0]+"!"+Y[1]};se&&(st.Sheet=v.length),j.Names.push(st);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"\u7535\u5B50\u8868\u683C":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":switch(s=Tn(g[0],!1),s["date-value"]){case"1904-01-01":j.WBProps.date1904=!0;case"1900-01-01":Ce=0}break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"\u6587\u672C\u4E32":if(["master-styles"].indexOf(a[a.length-1][0])>-1)break;if(g[1]==="/"&&(!y||!y["string-value"])){var Nt=BFt(i.slice(x,g.index));_=(_.length>0?_+` +`:"")+Nt[0]}else Tn(g[0],!1),x=g.index+g[0].length;break;case"s":break;case"database-range":if(g[1]==="/")break;try{Y=xX(Tn(g[0])["target-range-address"]),d[Y[0]]["!autofilter"]={ref:Y[1]}}catch{}break;case"date":break;case"object":break;case"title":case"\u6807\u9898":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(g[1]!=="/"){if(Z=Tn(g[0],!1),!Z.href)break;Z.Target=so(Z.href),delete Z.href,Z.Target.charAt(0)=="#"&&Z.Target.indexOf(".")>-1?(Y=xX(Z.Target.slice(1)),Z.Target="#"+Y[0]+"!"+Y[1]):Z.Target.match(/^\.\.[\\\/]/)&&(Z.Target=Z.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(g[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"\u8868:":case"\u5B57:":break;default:if(r.WTF)throw new Error(g)}}var Zt={Sheets:d,SheetNames:v,Workbook:j};return r.bookSheets&&delete Zt.Sheets,Zt}function Q_e(n,e){e=e||{},hp(n,"META-INF/manifest.xml")&&tOt(Cu(n,"META-INF/manifest.xml"),e);var t=hd(n,"styles.xml"),r=t&&AGe(As(t)),i=hd(n,"content.xml");if(!i)throw new Error("Missing content.xml in ODS / UOF file");var a=MGe(As(i),e,r);return hp(n,"meta.xml")&&(a.Props=z8e(Cu(n,"meta.xml"))),a.bookType="ods",a}function exe(n,e){var t=MGe(n,e);return t.bookType="fods",t}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */var Uc=function(){try{return typeof Uint8Array>"u"||typeof Uint8Array.prototype.subarray>"u"?"slice":typeof Buffer<"u"?typeof Buffer.prototype.subarray>"u"?"slice":(typeof Buffer.from=="function"?Buffer.from([72,62]):new Buffer([72,62]))instanceof Uint8Array?"subarray":"slice":"subarray"}catch{return"slice"}}();function DD(n){return new DataView(n.buffer,n.byteOffset,n.byteLength)}function EQ(n){return typeof TextDecoder<"u"?new TextDecoder().decode(n):As(p_(n))}function IGe(n){for(var e=0,t=0;t>1&1431655765,n=(n&858993459)+(n>>2&858993459),(n+(n>>4)&252645135)*16843009>>>24}function GFt(n,e){for(var t=(n[e+15]&127)<<7|n[e+14]>>1,r=n[e+14]&1,i=e+13;i>=e;--i)r=r*256+n[i];return(n[e+15]&128?-r:r)*Math.pow(10,t-6176)}function n9(n,e){var t=e.l,r=n[t]&127;e:if(n[t++]>=128&&(r|=(n[t]&127)<<7,n[t++]<128||(r|=(n[t]&127)<<14,n[t++]<128)||(r|=(n[t]&127)<<21,n[t++]<128)||(r+=(n[t]&127)*Math.pow(2,28),++t,n[t++]<128)||(r+=(n[t]&127)*Math.pow(2,35),++t,n[t++]<128)||(r+=(n[t]&127)*Math.pow(2,42),++t,n[t++]<128)))break e;return e.l=t,r}function Vs(n){var e=0,t=n[e]&127;e:if(n[e++]>=128){if(t|=(n[e]&127)<<7,n[e++]<128||(t|=(n[e]&127)<<14,n[e++]<128)||(t|=(n[e]&127)<<21,n[e++]<128))break e;t|=(n[e]&127)<<28}return t}function au(n){for(var e=[],t={l:0};t.l=128;);o=n[Uc](t.l,s),t.l=s}break;case 1:o=n[Uc](s,s+8),t.l=s+8;break;case 2:{var l=n9(n,t);o=n[Uc](t.l,t.l+l),t.l+=l}break;case 5:o=n[Uc](s,s+4),t.l=s+4;break;default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(r))}var u={data:o,type:a};e[i]==null&&(e[i]=[]),e[i].push(u)}return e}function Aoe(n,e){return(n==null?void 0:n.map(function(t){return e(t.data)}))||[]}function zFt(n){for(var e,t=[],r={l:0};r.l>>0>0),t.push(o)}return t}function UFt(n,e){if(n!=0)throw new Error("Unexpected Snappy chunk type ".concat(n));for(var t={l:0},r=n9(e,t),i=[],a=t.l;a>2;if(s<60)++s;else{var l=s-59;s=e[a],l>1&&(s|=e[a+1]<<8),l>2&&(s|=e[a+2]<<16),l>3&&(s|=e[a+3]<<24),s>>>=0,s++,a+=l}i.push(e[Uc](a,a+s)),a+=s;continue}else{var u=0,h=0;if(o==1?(h=(e[a]>>2&7)+4,u=(e[a++]&224)<<3,u|=e[a++]):(h=(e[a++]>>2)+1,o==2?(u=e[a]|e[a+1]<<8,a+=2):(u=(e[a]|e[a+1]<<8|e[a+2]<<16|e[a+3]<<24)>>>0,a+=4)),u==0)throw new Error("Invalid offset 0");for(var c=i.length-1,f=u;c>=0&&f>=i[c].length;)f-=i[c].length,--c;if(c<0)if(f==0)f=i[c=0].length;else throw new Error("Invalid offset beyond length");if(h0&&(i.push(i[c][Uc](i[c].length-f)),h-=f),++c;h>=i[c].length;)i.push(i[c]),h-=i[c].length,++c;h&&i.push(i[c][Uc](0,h))}i.length>25&&(i=[IGe(i)])}}for(var d=0,v=0;v>8,c=h>=5?i:r;e:if(t&(h>4?8:4)&&n.t=="n"&&u==7){var f=(a=c[7])!=null&&a[0]?Vs(c[7][0].data):-1;if(f==-1)break e;var d=(o=c[15])!=null&&o[0]?Vs(c[15][0].data):-1,v=(s=c[16])!=null&&s[0]?Vs(c[16][0].data):-1,p=(l=c[40])!=null&&l[0]?Vs(c[40][0].data):-1,g=n.v,m=g;t:if(p){if(g==0){d=v=2;break t}g>=604800?d=1:g>=86400?d=2:g>=3600?d=4:g>=60?d=8:g>=1?d=16:d=32,Math.floor(g)!=g?v=32:g%60?v=16:g%3600?v=8:g%86400?v=4:g%604800&&(v=2),v=2&&(m=g/86400,v>2&&(m|=0,g-=86400*m),_.push('d"d"'),y.push(m+(f==2?" day"+(m==1?"":"s"):f==1?"d":""))),d<=4&&v>=4&&(m=g/3600,v>4&&(m|=0,g-=3600*m),_.push((d>=4?"[h]":"h")+'"h"'),y.push(m+(f==2?" hour"+(m==1?"":"s"):f==1?"h":""))),d<=8&&v>=8&&(m=g/60,v>8&&(m|=0,g-=60*m),_.push((d>=8?"[m]":"m")+'"m"'),f==0?y.push((d==8&&v==8||m>=10?"":"0")+m):y.push(m+(f==2?" minute"+(m==1?"":"s"):f==1?"m":""))),d<=16&&v>=16&&(m=g,v>16&&(m|=0,g-=m),_.push((d>=16?"[s]":"s")+'"s"'),f==0?y.push((v==16&&d==16||m>=10?"":"0")+m):y.push(m+(f==2?" second"+(m==1?"":"s"):f==1?"s":""))),v>=32&&(m=Math.round(1e3*g),d<32&&_.push('.000"ms"'),f==0?y.push((m>=100?"":m>=10?"0":"00")+m):y.push(m+(f==2?" millisecond"+(m==1?"":"s"):f==1?"ms":""))),n.w=y.join(f==0?":":" "),n.z=_.join(f==0?'":"':" "),f==0&&(n.w=n.w.replace(/:(\d\d\d)$/,".$1"))}}function WFt(n,e,t){var r=DD(n),i=r.getUint32(4,!0),a=-1,o=-1,s=-1,l=NaN,u=new Date(2001,0,1),h=t>1?12:8;i&2&&(s=r.getUint32(h,!0),h+=4),h+=TQ(i&(t>1?3468:396))*4,i&512&&(a=r.getUint32(h,!0),h+=4),h+=TQ(i&(t>1?12288:4096))*4,i&16&&(o=r.getUint32(h,!0),h+=4),i&32&&(l=r.getFloat64(h,!0),h+=8),i&64&&(u.setTime(u.getTime()+r.getFloat64(h,!0)*1e3),h+=8),t>1&&(i=r.getUint32(8,!0)>>>16,i&255&&(s==-1&&(s=r.getUint32(h,!0)),h+=4));var c,f=n[t>=4?1:2];switch(f){case 0:return;case 2:c={t:"n",v:l};break;case 3:c={t:"s",v:e.sst[o]};break;case 5:c={t:"d",v:u};break;case 6:c={t:"b",v:l>0};break;case 7:c={t:"n",v:l};break;case 8:c={t:"e",v:0};break;case 9:if(a>-1)c={t:"s",v:e.rsst[a]};else throw new Error("Unsupported cell type ".concat(n[Uc](0,4)));break;default:throw new Error("Unsupported cell type ".concat(n[Uc](0,4)))}return s>-1&&LGe(c,f|t<<8,i,e.ofmt[s],e.nfmt[s]),f==7&&(c.v/=86400),c}function HFt(n,e){var t=DD(n);t.getUint32(4,!0);var r=t.getUint32(8,!0),i=12,a=-1,o=-1,s=-1,l=NaN,u=NaN,h=new Date(2001,0,1);r&1&&(l=GFt(n,i),i+=16),r&2&&(u=t.getFloat64(i,!0),i+=8),r&4&&(h.setTime(h.getTime()+t.getFloat64(i,!0)*1e3),i+=8),r&8&&(o=t.getUint32(i,!0),i+=4),r&16&&(a=t.getUint32(i,!0),i+=4);var c,f=n[1];switch(f){case 0:return;case 2:c={t:"n",v:l};break;case 3:c={t:"s",v:e.sst[o]};break;case 5:c={t:"d",v:h};break;case 6:c={t:"b",v:u>0};break;case 7:c={t:"n",v:u};break;case 8:c={t:"e",v:0};break;case 9:c={t:"s",v:e.rsst[a]};break;case 10:c={t:"n",v:l};break;default:throw new Error("Unsupported cell type ".concat(n[1]," : ").concat(r&31," : ").concat(n[Uc](0,4)))}return i+=TQ(r&8160)*4,r&516096&&(s==-1&&(s=t.getUint32(i,!0)),i+=4),s>-1&&LGe(c,f|5<<8,r>>13,e.ofmt[s],e.nfmt[s]),f==7&&(c.v/=86400),c}function jFt(n,e){switch(n[0]){case 0:case 1:case 2:case 3:case 4:return WFt(n,e,n[0]);case 5:return HFt(n,e);default:throw new Error("Unsupported payload version ".concat(n[0]))}}function Hg(n){var e=au(n);return Vs(e[1][0].data)}function t5(n,e){var t=au(e.data),r=Vs(t[1][0].data),i=t[3],a=[];return(i||[]).forEach(function(o){var s=au(o.data);if(!!s[1]){var l=Vs(s[1][0].data)>>>0;switch(r){case 1:a[l]=EQ(s[3][0].data);break;case 8:{var u=n[Hg(s[9][0].data)][0],h=au(u.data),c=n[Hg(h[1][0].data)][0],f=Vs(c.meta[1][0].data);if(f!=2001)throw new Error("2000 unexpected reference to ".concat(f));var d=au(c.data);a[l]=d[3].map(function(v){return EQ(v.data)}).join("")}break;case 2:a[l]=au(s[6][0].data);break;default:throw r}}}),a}function XFt(n,e){var t,r,i,a,o,s,l,u,h,c,f,d,v,p,g=au(n),m=Vs(g[1][0].data)>>>0,y=Vs(g[2][0].data)>>>0,_=((r=(t=g[8])==null?void 0:t[0])==null?void 0:r.data)&&Vs(g[8][0].data)>0||!1,x,S;if(((a=(i=g[7])==null?void 0:i[0])==null?void 0:a.data)&&e!=0)x=(s=(o=g[7])==null?void 0:o[0])==null?void 0:s.data,S=(u=(l=g[6])==null?void 0:l[0])==null?void 0:u.data;else if(((c=(h=g[4])==null?void 0:h[0])==null?void 0:c.data)&&e!=1)x=(d=(f=g[4])==null?void 0:f[0])==null?void 0:d.data,S=(p=(v=g[3])==null?void 0:v[0])==null?void 0:p.data;else throw"NUMBERS Tile missing ".concat(e," cell storage");for(var w=_?4:1,b=DD(x),E=[],T=0;T=1&&(A[E[E.length-1][0]]=S[Uc](E[E.length-1][1]*w)),{R:m,cells:A}}function YFt(n,e){var t,r=au(e.data),i=-1;(t=r==null?void 0:r[7])!=null&&t[0]&&(Vs(r[7][0].data)>>>0?i=1:i=0);var a=Aoe(r[5],function(o){return XFt(o,i)});return{nrows:Vs(r[4][0].data)>>>0,data:a.reduce(function(o,s){return o[s.R]||(o[s.R]=[]),s.cells.forEach(function(l,u){if(o[s.R][u])throw new Error("Duplicate cell r=".concat(s.R," c=").concat(u));o[s.R][u]=l}),o},[])}}function qFt(n,e,t){var r,i,a,o,s,l,u=au(e.data),h={s:{r:0,c:0},e:{r:0,c:0}};if(h.e.r=(Vs(u[6][0].data)>>>0)-1,h.e.r<0)throw new Error("Invalid row varint ".concat(u[6][0].data));if(h.e.c=(Vs(u[7][0].data)>>>0)-1,h.e.c<0)throw new Error("Invalid col varint ".concat(u[7][0].data));t["!ref"]=lo(h);var c=t["!data"]!=null,f=t,d=au(u[4][0].data),v=$Ft();(r=d[4])!=null&&r[0]&&(v.sst=t5(n,n[Hg(d[4][0].data)][0])),(i=d[11])!=null&&i[0]&&(v.ofmt=t5(n,n[Hg(d[11][0].data)][0])),(a=d[17])!=null&&a[0]&&(v.rsst=t5(n,n[Hg(d[17][0].data)][0])),(o=d[22])!=null&&o[0]&&(v.nfmt=t5(n,n[Hg(d[22][0].data)][0]));var p=au(d[3][0].data),g=0;if(p[1].forEach(function(_){var x=au(_.data),S=n[Hg(x[2][0].data)][0],w=Vs(S.meta[1][0].data);if(w!=6002)throw new Error("6001 unexpected reference to ".concat(w));var b=YFt(n,S);b.data.forEach(function(E,T){E.forEach(function(C,A){var M=jFt(C,v);M&&(c?(f["!data"][g+T]||(f["!data"][g+T]=[]),f["!data"][g+T][A]=M):t[$o(A)+ys(g+T)]=M)})}),g+=b.nrows}),(s=d[13])!=null&&s[0]){var m=n[Hg(d[13][0].data)][0],y=Vs(m.meta[1][0].data);if(y!=6144)throw new Error("Expected merge type 6144, found ".concat(y));t["!merges"]=(l=au(m.data))==null?void 0:l[1].map(function(_){var x=au(_.data),S=DD(au(x[1][0].data)[1][0].data),w=DD(au(x[2][0].data)[1][0].data);return{s:{r:S.getUint16(0,!0),c:S.getUint16(2,!0)},e:{r:S.getUint16(0,!0)+w.getUint16(0,!0)-1,c:S.getUint16(2,!0)+w.getUint16(2,!0)-1}}})}}function ZFt(n,e,t){var r=au(e.data),i={"!ref":"A1"};t!=null&&t.dense&&(i["!data"]=[]);var a=n[Hg(r[2][0].data)],o=Vs(a[0].meta[1][0].data);if(o!=6001)throw new Error("6000 unexpected reference to ".concat(o));return qFt(n,a[0],i),i}function KFt(n,e,t){var r,i=au(e.data),a={name:(r=i[1])!=null&&r[0]?EQ(i[1][0].data):"",sheets:[]},o=Aoe(i[2],Hg);return o.forEach(function(s){n[s].forEach(function(l){var u=Vs(l.meta[1][0].data);u==6e3&&a.sheets.push(ZFt(n,l,t))})}),a}function JFt(n,e,t){var r,i=Loe(),a=au(e.data);if((r=a[2])!=null&&r[0])throw new Error("Keynote presentations are not supported");var o=Aoe(a[1],Hg);if(o.forEach(function(s){n[s].forEach(function(l){var u=Vs(l.meta[1][0].data);if(u==2){var h=KFt(n,l,t);h.sheets.forEach(function(c,f){IU(i,c,f==0?h.name:h.name+"_"+f,!0)})}})}),i.SheetNames.length==0)throw new Error("Empty NUMBERS file");return i.bookType="numbers",i}function wX(n,e){var t,r,i,a,o,s,l,u={},h=[];if(n.FullPaths.forEach(function(f){if(f.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),n.FileIndex.forEach(function(f){if(!!f.name.match(/\.iwa$/)&&f.content[0]==0){var d;try{d=VFt(f.content)}catch(p){return console.log("?? "+f.content.length+" "+(p.message||p))}var v;try{v=zFt(d)}catch(p){return console.log("## "+(p.message||p))}v.forEach(function(p){u[p.id]=p.messages,h.push(p.id)})}}),!h.length)throw new Error("File has no messages");if(((i=(r=(t=u==null?void 0:u[1])==null?void 0:t[0].meta)==null?void 0:r[1])==null?void 0:i[0].data)&&Vs(u[1][0].meta[1][0].data)==1e4)throw new Error("Pages documents are not supported");var c=((l=(s=(o=(a=u==null?void 0:u[1])==null?void 0:a[0])==null?void 0:o.meta)==null?void 0:s[1])==null?void 0:l[0].data)&&Vs(u[1][0].meta[1][0].data)==1&&u[1][0];if(c||h.forEach(function(f){u[f].forEach(function(d){var v=Vs(d.meta[1][0].data)>>>0;if(v==1)if(!c)c=d;else throw new Error("Document has multiple roots")})}),!c)throw new Error("Cannot find Document root");return JFt(u,c,e)}function QFt(n){return function(t){for(var r=0;r!=n.length;++r){var i=n[r];t[i[0]]===void 0&&(t[i[0]]=i[1]),i[2]==="n"&&(t[i[0]]=Number(t[i[0]]))}}}function Moe(n){QFt([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(n)}function e4t(n){return vA.WS.indexOf(n)>-1?"sheet":n==vA.CS?"chart":n==vA.DS?"dialog":n==vA.MS?"macro":n&&n.length?n:"sheet"}function t4t(n,e){if(!n)return 0;try{n=e.map(function(r){return r.id||(r.id=r.strRelID),[r.name,n["!id"][r.id].Target,e4t(n["!id"][r.id].Type)]})}catch{return null}return!n||n.length===0?null:n}function r4t(n,e,t,r,i,a,o,s,l,u,h,c){try{a[r]=sR(hd(n,t,!0),e);var f=Cu(n,e),d;switch(s){case"sheet":d=sFt(f,e,i,l,a[r],u,h,c);break;case"chart":if(d=lFt(f,e,i,l,a[r],u,h,c),!d||!d["!drawel"])break;var v=cO(d["!drawel"].Target,e),p=_Q(v),g=oNt(hd(n,v,!0),sR(hd(n,p,!0),v)),m=cO(g,v),y=_Q(m);d=Wkt(hd(n,m,!0),m,l,sR(hd(n,y,!0),m),u,d);break;case"macro":d=uFt(f,e,i,l,a[r],u,h,c);break;case"dialog":d=hFt(f,e,i,l,a[r],u,h,c);break;default:throw new Error("Unrecognized sheet type "+s)}o[r]=d;var _=[],x=[];a&&a[r]&&h0(a[r]).forEach(function(S){var w="";if(a[r][S].Type==vA.CMNT){if(w=cO(a[r][S].Target,e),_=dFt(Cu(n,w,!0),w,l),!_||!_.length)return;V_e(d,_,!1)}a[r][S].Type==vA.TCMNT&&(w=cO(a[r][S].Target,e),x=x.concat(lNt(Cu(n,w,!0),l)))}),x&&x.length&&V_e(d,x,!0,l.people||[])}catch(S){if(l.WTF)throw S}}function Zv(n){return n.charAt(0)=="/"?n.slice(1):n}function n4t(n,e){if(u8e(),e=e||{},Moe(e),hp(n,"META-INF/manifest.xml")||hp(n,"objectdata.xml"))return Q_e(n,e);if(hp(n,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof wX<"u"){if(n.FileIndex)return wX(n,e);var t=co.utils.cfb_new();return v_e(n).forEach(function(k){nPt(t,k,p8e(n,k))}),wX(t,e)}throw new Error("Unsupported NUMBERS file")}if(!hp(n,"[Content_Types].xml")){if(hp(n,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(hp(n,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");var r=co.find(n,"Index.zip");if(r)return e=sh(e),delete e.type,typeof r.content=="string"&&(e.type="binary"),typeof Bun<"u"&&Buffer.isBuffer(r.content)?ND(new Uint8Array(r.content),e):ND(r.content,e);throw new Error("Unsupported ZIP file")}var i=v_e(n),a=QPt(hd(n,"[Content_Types].xml")),o=!1,s,l;if(a.workbooks.length===0&&(l="xl/workbook.xml",Cu(n,l,!0)&&a.workbooks.push(l)),a.workbooks.length===0){if(l="xl/workbook.bin",!Cu(n,l,!0))throw new Error("Could not find workbook");a.workbooks.push(l),o=!0}a.workbooks[0].slice(-3)=="bin"&&(o=!0);var u={},h={};if(!e.bookSheets&&!e.bookProps){if(hR=[],a.sst)try{hR=fFt(Cu(n,Zv(a.sst)),a.sst,e)}catch(k){if(e.WTF)throw k}e.cellStyles&&a.themes.length&&(u=sGe(hd(n,a.themes[0].replace(/^\//,""),!0)||"",e)),a.style&&(h=cFt(Cu(n,Zv(a.style)),a.style,u,e))}a.links.map(function(k){try{var D=sR(hd(n,_Q(Zv(k))),k);return pFt(Cu(n,Zv(k)),D,k,e)}catch{}});var c=oFt(Cu(n,Zv(a.workbooks[0])),a.workbooks[0],e),f={},d="";a.coreprops.length&&(d=Cu(n,Zv(a.coreprops[0]),!0),d&&(f=z8e(d)),a.extprops.length!==0&&(d=Cu(n,Zv(a.extprops[0]),!0),d&&iOt(d,f,e)));var v={};(!e.bookSheets||e.bookProps)&&a.custprops.length!==0&&(d=hd(n,Zv(a.custprops[0]),!0),d&&(v=oOt(d,e)));var p={};if((e.bookSheets||e.bookProps)&&(c.Sheets?s=c.Sheets.map(function(D){return D.name}):f.Worksheets&&f.SheetNames.length>0&&(s=f.SheetNames),e.bookProps&&(p.Props=f,p.Custprops=v),e.bookSheets&&typeof s<"u"&&(p.SheetNames=s),e.bookSheets?p.SheetNames:e.bookProps))return p;s={};var g={};e.bookDeps&&a.calcchain&&(g=vFt(Cu(n,Zv(a.calcchain)),a.calcchain));var m=0,y={},_,x;{var S=c.Sheets;f.Worksheets=S.length,f.SheetNames=[];for(var w=0;w!=S.length;++w)f.SheetNames[w]=S[w].name}var b=o?"bin":"xml",E=a.workbooks[0].lastIndexOf("/"),T=(a.workbooks[0].slice(0,E+1)+"_rels/"+a.workbooks[0].slice(E+1)+".rels").replace(/^\//,"");hp(n,T)||(T="xl/_rels/workbook."+b+".rels");var C=sR(hd(n,T,!0),T.replace(/_rels.*/,"s5s"));(a.metadata||[]).length>=1&&(e.xlmeta=gFt(Cu(n,Zv(a.metadata[0])),a.metadata[0],e)),(a.people||[]).length>=1&&(e.people=uNt(Cu(n,Zv(a.people[0])),e)),C&&(C=t4t(C,c.Sheets));var A=Cu(n,"xl/worksheets/sheet.xml",!0)?1:0;e:for(m=0;m!=f.Worksheets;++m){var M="sheet";if(C&&C[m]?(_="xl/"+C[m][1].replace(/[\/]?xl\//,""),hp(n,_)||(_=C[m][1]),hp(n,_)||(_=T.replace(/_rels\/.*$/,"")+C[m][1]),M=C[m][2]):(_="xl/worksheets/sheet"+(m+1-A)+"."+b,_=_.replace(/sheet0\./,"sheet.")),x=_.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),e&&e.sheets!=null)switch(typeof e.sheets){case"number":if(m!=e.sheets)continue e;break;case"string":if(f.SheetNames[m].toLowerCase()!=e.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(e.sheets)){for(var I=!1,R=0;R!=e.sheets.length;++R)typeof e.sheets[R]=="number"&&e.sheets[R]==m&&(I=1),typeof e.sheets[R]=="string"&&e.sheets[R].toLowerCase()==f.SheetNames[m].toLowerCase()&&(I=1);if(!I)continue e}}r4t(n,_,x,f.SheetNames[m],m,y,s,M,e,c,u,h)}return p={Directory:a,Workbook:c,Props:f,Custprops:v,Deps:g,Sheets:s,SheetNames:f.SheetNames,Strings:hR,Styles:h,Themes:u,SSF:sh(ji)},e&&e.bookFiles&&(n.files?(p.keys=i,p.files=n.files):(p.keys=[],p.files={},n.FullPaths.forEach(function(k,D){k=k.replace(/^Root Entry[\/]/,""),p.keys.push(k),p.files[k]=n.FileIndex[D]}))),e&&e.bookVBA&&(a.vba.length>0?p.vbaraw=Cu(n,Zv(a.vba[0]),!0):a.defaults&&a.defaults.bin===dNt&&(p.vbaraw=Cu(n,"xl/vbaProject.bin",!0))),p.bookType=o?"xlsb":"xlsx",p}function i4t(n,e){var t=e||{},r="Workbook",i=co.find(n,r);try{if(r="/!DataSpaces/Version",i=co.find(n,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);if(YRt(i.content),r="/!DataSpaces/DataSpaceMap",i=co.find(n,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var a=ZRt(i.content);if(a.length!==1||a[0].comps.length!==1||a[0].comps[0].t!==0||a[0].name!=="StrongEncryptionDataSpace"||a[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+r);if(r="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",i=co.find(n,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var o=KRt(i.content);if(o.length!=1||o[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+r);if(r="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",i=co.find(n,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);QRt(i.content)}catch{}if(r="/EncryptionInfo",i=co.find(n,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var s=eDt(i.content);if(r="/EncryptedPackage",i=co.find(n,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);if(s[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(s[1],i.content,t.password||"",t);if(s[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(s[1],i.content,t.password||"",t);throw new Error("File is password-protected")}function Ioe(n,e){var t="";switch((e||{}).type||"base64"){case"buffer":return[n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]];case"base64":t=Tv(n.slice(0,12));break;case"binary":t=n;break;case"array":return[n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function a4t(n,e){return co.find(n,"EncryptedPackage")?i4t(n,e):EGe(n,e)}function o4t(n,e){var t,r=n,i=e||{};return i.type||(i.type=oo&&Buffer.isBuffer(n)?"buffer":"base64"),t=g8e(r,i),n4t(t,i)}function PGe(n,e){var t=0;e:for(;t"u"&&console.error("Codepage tables are not loaded. Non-ASCII characters may not give expected results"),typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer)return ND(new Uint8Array(n),(t=sh(t),t.type="array",t));typeof Uint8Array<"u"&&n instanceof Uint8Array&&!t.type&&(t.type=typeof Deno<"u"?"buffer":"array");var r=n,i=[0,0,0,0],a=!1;if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),UA={},t.dateNF&&(UA.dateNF=t.dateNF),t.type||(t.type=oo&&Buffer.isBuffer(n)?"buffer":"base64"),t.type=="file"&&(t.type=oo?"buffer":"binary",r=YLt(n),typeof Uint8Array<"u"&&!oo&&(t.type="array")),t.type=="string"&&(a=!0,t.type="binary",t.codepage=65001,r=u4t(n)),t.type=="array"&&typeof Uint8Array<"u"&&n instanceof Uint8Array&&typeof ArrayBuffer<"u"){var o=new ArrayBuffer(3),s=new Uint8Array(o);if(s.foo="bar",!s.foo)return t=sh(t),t.type="array",ND(hoe(r),t)}switch((i=Ioe(r,t))[0]){case 208:if(i[1]===207&&i[2]===17&&i[3]===224&&i[4]===161&&i[5]===177&&i[6]===26&&i[7]===225)return a4t(co.read(r,t),t);break;case 9:if(i[1]<=8)return EGe(r,t);break;case 60:return wQ(r,t);case 73:if(i[1]===73&&i[2]===42&&i[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(i[1]===68)return NRt(r,t);break;case 84:if(i[1]===65&&i[2]===66&&i[3]===76)return RRt.to_workbook(r,t);break;case 80:return i[1]===75&&i[2]<9&&i[3]<9?o4t(r,t):bX(n,r,t,a);case 239:return i[3]===60?wQ(r,t):bX(n,r,t,a);case 255:if(i[1]===254)return l4t(r,t);if(i[1]===0&&i[2]===2&&i[3]===0)return uR.to_workbook(r,t);break;case 0:if(i[1]===0&&(i[2]>=2&&i[3]===0||i[2]===0&&(i[3]===8||i[3]===9)))return uR.to_workbook(r,t);break;case 3:case 131:case 139:case 140:return U_e.to_workbook(r,t);case 123:if(i[1]===92&&i[2]===114&&i[3]===116)return dDt(r,t);break;case 10:case 13:case 32:return s4t(r,t);case 137:if(i[1]===80&&i[2]===78&&i[3]===71)throw new Error("PNG Image File is not a spreadsheet");break;case 8:if(i[1]===231)throw new Error("Unsupported Multiplan 1.x file!");break;case 12:if(i[1]===236)throw new Error("Unsupported Multiplan 2.x file!");if(i[1]===237)throw new Error("Unsupported Multiplan 3.x file!");break}return PRt.indexOf(i[0])>-1&&i[2]<=12&&i[3]<=31?U_e.to_workbook(r,t):bX(n,r,t,a)}function h4t(n,e,t,r,i,a,o){var s=ys(t),l=o.defval,u=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),h=!0,c=n["!data"]!=null,f=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(f,"__rowNum__",{value:t,enumerable:!1})}catch{f.__rowNum__=t}else f.__rowNum__=t;if(!c||n["!data"][t])for(var d=e.s.c;d<=e.e.c;++d){var v=c?(n["!data"][t]||[])[d]:n[r[d]+s];if(v===void 0||v.t===void 0){if(l===void 0)continue;a[d]!=null&&(f[a[d]]=l);continue}var p=v.v;switch(v.t){case"z":if(p==null)break;continue;case"e":p=p==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+v.t)}if(a[d]!=null){if(p==null)if(v.t=="e"&&p===null)f[a[d]]=null;else if(l!==void 0)f[a[d]]=l;else if(u&&p===null)f[a[d]]=null;else continue;else f[a[d]]=u&&(v.t!=="n"||v.t==="n"&&o.rawNumbers!==!1)?p:$S(v,p,o);p!=null&&(h=!1)}}return{row:f,isempty:h}}function CQ(n,e){if(n==null||n["!ref"]==null)return[];var t={t:"n",v:0},r=0,i=1,a=[],o=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},u=e||{},h=u.range!=null?u.range:n["!ref"];switch(u.header===1?r=1:u.header==="A"?r=2:Array.isArray(u.header)?r=3:u.header==null&&(r=0),typeof h){case"string":l=cu(h);break;case"number":l=cu(n["!ref"]),l.s.r=h;break;default:l=h}r>0&&(i=0);var c=ys(l.s.r),f=[],d=[],v=0,p=0,g=n["!data"]!=null,m=l.s.r,y=0,_={};g&&!n["!data"][m]&&(n["!data"][m]=[]);var x=u.skipHidden&&n["!cols"]||[],S=u.skipHidden&&n["!rows"]||[];for(y=l.s.c;y<=l.e.c;++y)if(!(x[y]||{}).hidden)switch(f[y]=$o(y),t=g?n["!data"][m][y]:n[f[y]+c],r){case 1:a[y]=y-l.s.c;break;case 2:a[y]=f[y];break;case 3:a[y]=u.header[y-l.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),s=o=$S(t,null,u),p=_[o]||0,!p)_[o]=1;else{do s=o+"_"+p++;while(_[s]);_[o]=p,_[s]=1}a[y]=s}for(m=l.s.r+i;m<=l.e.r;++m)if(!(S[m]||{}).hidden){var w=h4t(n,l,m,f,r,a,u);(w.isempty===!1||(r===1?u.blankrows!==!1:!!u.blankrows))&&(d[v++]=w.row)}return d.length=v,d}var txe=/"/g;function c4t(n,e,t,r,i,a,o,s){for(var l=!0,u=[],h="",c=ys(t),f=n["!data"]!=null,d=f&&n["!data"][t]||[],v=e.s.c;v<=e.e.c;++v)if(!!r[v]){var p=f?d[v]:n[r[v]+c];if(p==null)h="";else if(p.v!=null){l=!1,h=""+(s.rawNumbers&&p.t=="n"?p.v:$S(p,null,s));for(var g=0,m=0;g!==h.length;++g)if((m=h.charCodeAt(g))===i||m===a||m===34||s.forceQuotes){h='"'+h.replace(txe,'""')+'"';break}h=="ID"&&(h='"ID"')}else p.f!=null&&!p.F?(l=!1,h="="+p.f,h.indexOf(",")>=0&&(h='"'+h.replace(txe,'""')+'"')):h="";u.push(h)}return s.blankrows===!1&&l?null:u.join(o)}function OGe(n,e){var t=[],r=e==null?{}:e;if(n==null||n["!ref"]==null)return"";for(var i=cu(n["!ref"]),a=r.FS!==void 0?r.FS:",",o=a.charCodeAt(0),s=r.RS!==void 0?r.RS:` +`,l=s.charCodeAt(0),u=new RegExp((a=="|"?"\\|":a)+"+$"),h="",c=[],f=r.skipHidden&&n["!cols"]||[],d=r.skipHidden&&n["!rows"]||[],v=i.s.c;v<=i.e.c;++v)(f[v]||{}).hidden||(c[v]=$o(v));for(var p=0,g=i.s.r;g<=i.e.r;++g)(d[g]||{}).hidden||(h=c4t(n,i,g,c,o,l,a,r),h!=null&&(r.strip&&(h=h.replace(u,"")),(h||r.blankrows!==!1)&&t.push((p++?s:"")+h)));return t.join("")}function f4t(n,e){e||(e={}),e.FS=" ",e.RS=` +`;var t=OGe(n,e);return t}function d4t(n){var e="",t,r="";if(n==null||n["!ref"]==null)return[];var i=cu(n["!ref"]),a="",o=[],s,l=[],u=n["!data"]!=null;for(s=i.s.c;s<=i.e.c;++s)o[s]=$o(s);for(var h=i.s.r;h<=i.e.r;++h)for(a=ys(h),s=i.s.c;s<=i.e.c;++s)if(e=o[s]+a,t=u?(n["!data"][h]||[])[s]:n[e],r="",t!==void 0){if(t.F!=null){if(e=t.F,!t.f)continue;r=t.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(t.f!=null)r=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)r=""+t.v;else if(t.t=="b")r=t.v?"TRUE":"FALSE";else if(t.w!==void 0)r="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?r="'"+t.v:r=""+t.v}}l[l.length]=e+"="+r}return l}function RGe(n,e,t){var r=t||{},i=n?n["!data"]!=null:r.dense,a=+!r.skipHeader,o=n||{};!n&&i&&(o["!data"]=[]);var s=0,l=0;if(o&&r.origin!=null)if(typeof r.origin=="number")s=r.origin;else{var u=typeof r.origin=="string"?zc(r.origin):r.origin;s=u.r,l=u.c}var h={s:{c:0,r:0},e:{c:l,r:s+e.length-1+a}};if(o["!ref"]){var c=cu(o["!ref"]);h.e.c=Math.max(h.e.c,c.e.c),h.e.r=Math.max(h.e.r,c.e.r),s==-1&&(s=c.e.r+1,h.e.r=s+e.length-1+a)}else s==-1&&(s=0,h.e.r=e.length-1+a);var f=r.header||[],d=0,v=[];e.forEach(function(g,m){i&&!o["!data"][s+m+a]&&(o["!data"][s+m+a]=[]),i&&(v=o["!data"][s+m+a]),h0(g).forEach(function(y){(d=f.indexOf(y))==-1&&(f[d=f.length]=y);var _=g[y],x="z",S="",w=i?"":$o(l+d)+ys(s+m+a),b=i?v[l+d]:o[w];_&&typeof _=="object"&&!(_ instanceof Date)?i?v[l+d]=_:o[w]=_:(typeof _=="number"?x="n":typeof _=="boolean"?x="b":typeof _=="string"?x="s":_ instanceof Date?(x="d",r.cellDates||(x="n",_=Zc(_)),S=b!=null&&b.z&&Q2(b.z)?b.z:r.dateNF||ji[14]):_===null&&r.nullError&&(x="e",_=0),b?(b.t=x,b.v=_,delete b.w,delete b.R,S&&(b.z=S)):i?v[l+d]=b={t:x,v:_}:o[w]=b={t:x,v:_},S&&(b.z=S))})}),h.e.c=Math.max(h.e.c,l+f.length-1);var p=ys(s);if(i&&!o["!data"][s]&&(o["!data"][s]=[]),a)for(d=0;d=0&&n.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var t=n.SheetNames.indexOf(e);if(t>-1)return t;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function Loe(){return{SheetNames:[],Sheets:{}}}function IU(n,e,t,r){var i=1;if(!t)for(;i<=65535&&n.SheetNames.indexOf(t="Sheet"+i)!=-1;++i,t=void 0);if(!t||n.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&n.SheetNames.indexOf(t)>=0){var a=t.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var o=a&&a[1]||t;for(++i;i<=65535&&n.SheetNames.indexOf(t=o+i)!=-1;++i);}if(Jkt(t),n.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return n.SheetNames.push(t),n.Sheets[t]=e,t}function g4t(n,e,t){n.Workbook||(n.Workbook={}),n.Workbook.Sheets||(n.Workbook.Sheets=[]);var r=p4t(n,e);switch(n.Workbook.Sheets[r]||(n.Workbook.Sheets[r]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}n.Workbook.Sheets[r].Hidden=t}function y4t(n,e){return n.z=e,n}function DGe(n,e,t){return e?(n.l={Target:e},t&&(n.l.Tooltip=t)):delete n.l,n}function m4t(n,e,t){return DGe(n,"#"+e,t)}function _4t(n,e,t){n.c||(n.c=[]),n.c.push({t:e,a:t||"SheetJS"})}function x4t(n,e,t,r){for(var i=typeof e!="string"?e:cu(e),a=typeof e=="string"?e:lo(e),o=i.s.r;o<=i.e.r;++o)for(var s=i.s.c;s<=i.e.c;++s){var l=i9(n,o,s);l.t="n",l.F=a,delete l.v,o==i.s.r&&s==i.s.c&&(l.f=t,r&&(l.D=!0))}var u=eT(n["!ref"]);return u.s.r>i.s.r&&(u.s.r=i.s.r),u.s.c>i.s.c&&(u.s.c=i.s.c),u.e.r0){let l=s.SheetNames[0],u=S4t.sheet_to_csv(s.Sheets[l]);e&&e.call(r,u)}}catch(l){t&&t.call(r,l)}},i.onerror=function(a){t&&t.call(r,a)},this.rABF&&i.readAsArrayBuffer(n.file)},processDataToGeoJson(n,e,t,r,i){let a=null;if(n==="EXCEL"||n==="CSV")a=this.processExcelDataToGeoJson(e),t&&t.call(i,a);else if(n==="JSON"||n==="GEOJSON"){let o=e;typeof o=="string"&&(o=JSON.parse(o)),o.type==="ISERVER"?a=o.data.recordsets[0].features:o.type==="FeatureCollection"?a=o:r&&r.call(i,rv.i18n("msg_dataInWrongGeoJSONFormat")),t&&t.call(i,a)}else r&&r.call(i,rv.i18n("msg_dataInWrongFormat"))},processExcelDataToGeoJson(n){let e=this.string2Csv(n),t=e.colTitles,r=-1,i=-1;for(let o=0,s=t.length;oi.json()).then(i=>{if(i.succeed===!1){r._fireFailedEvent(i);return}if(i.dataItemServices&&i.dataItemServices.length>0){let a=i.dataItemServices,o;a.forEach(s=>{if(s.serviceType==="RESTDATA"&&s.serviceStatus==="PUBLISHED")o=s;else if(s.serviceType==="RESTMAP"&&s.serviceStatus==="PUBLISHED")o=s;else{r.getDatafromContent(e,t);return}}),o&&r.getDatafromRest(o.serviceType,o.address,t)}else{r.getDatafromContent(e,t);return}}).catch(i=>{console.log(i),r._fireFailedEvent(i)})}getDatafromContent(e,t){let r={result:{}},i=this;e+="/content.json?pageSize=9999999¤tPage=1",li.get(e,null,{withCredentials:this.datasets.withCredentials}).then(a=>a.json()).then(a=>{if(a.succeed===!1){i._fireFailedEvent(a);return}if(a.type){if(a.type==="JSON"||a.type==="GEOJSON"){if(a.content=JSON.parse(a.content.trim()),!a.content.features){console.log(rv.i18n("msg_jsonResolveFiled"));return}let o=this._formatGeoJSON(a.content);r.result.features={type:a.content.type,features:o}}else if(a.type==="EXCEL"||a.type==="CSV"){let o=this._excelData2Feature(a.content);r.result.features={type:"FeatureCollection",features:o}}t(r,"content")}},this).catch(a=>{console.log(a),i._fireFailedEvent(a)})}getDatafromRest(e,t,r){let i=this,a=this.datasets.withCredentials;if(e==="RESTDATA"){let o=`${t}/data/datasources`,s,l;li.get(o,null,{withCredentials:a}).then(u=>u.json()).then(u=>{s=u.datasourceNames[0],o=`${t}/data/datasources/${s}/datasets`,li.get(o,null,{withCredentials:a}).then(h=>h.json()).then(h=>(l=h.datasetNames[0],i.getDatafromRestData(`${t}/data`,[s+":"+l],r),[s+":"+l])).catch(function(h){i._fireFailedEvent(h)})}).catch(function(u){i._fireFailedEvent(u)})}else{let o=`${t}/maps`,s,l,u;li.get(o,null,{withCredentials:a}).then(h=>h.json()).then(h=>{s=h[0].name,u=h[0].path,o=o=`${t}/maps/${s}/layers`,li.get(o,null,{withCredentials:a}).then(c=>c.json()).then(c=>(l=c[0].subLayers.layers[0].caption,i.getDatafromRestMap(l,u,r),l)).catch(function(c){i._fireFailedEvent(c)})}).catch(function(h){i._fireFailedEvent(h)})}}getDatafromRestData(e,t,r){let i=this;this.datasets.queryInfo.attributeFilter=this.datasets.queryInfo.attributeFilter||"SmID>0",this._getFeatureBySQL(e,t,this.datasets.queryInfo,a=>{r(a,"RESTDATA")},a=>{console.log(a),i._fireFailedEvent(a)})}getDatafromRestMap(e,t,r){let i=this;this.datasets.queryInfo.attributeFilter=this.datasets.queryInfo.attributeFilter||"smid=1",this._queryFeatureBySQL(t,e,this.datasets.queryInfo,null,null,a=>{r(a,"RESTMAP")},a=>{console.log(a),i._fireFailedEvent(a)})}_getFeatureBySQL(e,t,r,i,a){let o,s,l,u={name:t.join().replace(":","@")};Object.assign(u,r),o=new Pf(u),l=new VR({queryParameter:o,datasetNames:t,fromIndex:0,toIndex:1e5,returnContent:!0}),s=new W8(e),s.processAsync(l,function(h){h.type==="processCompleted"?i&&i(h):a&&a(h)})}_queryFeatureBySQL(e,t,r,i,a,o,s,l,u,h){var c,f,d={name:t};Object.assign(d,r),c=new Pf(d),i&&(c.fields=i);var v={queryParams:[c]};h&&(v.queryOption=fz.ATTRIBUTE),l&&(v.startRecord=l),u&&(v.expectCount=u),a&&(v.prjCoordSys={epsgCode:a}),f=new ZR(v),this._queryBySQL(e,f,p=>{p.type==="processCompleted"?o(p):s(p)})}_queryBySQL(e,t,r,i){var a=this,o=new H8(e,{format:a._processFormat(i)});o.processAsync(t,r)}_processFormat(e){return e||Ni.GEOJSON}_formatGeoJSON(e){let t=e.features;return t.forEach((r,i)=>{r.properties.index=i}),t}_excelData2Feature(e){let t=e.colTitles,r=-1,i=-1;for(let o=0,s=t.length;o0&&e.forEach(function(r){r.xAxis&&t.xField.push({field:r.xAxis.field,name:r.xAxis.name}),r.yAxis&&t.yField.push({field:r.yAxis.field,name:r.yAxis.name})})}getDatasetInfo(e){this.createChart=e,this.datasets&&this._checkUrl(this.datasets.url)&&(this.chartModel=new w4t(this.datasets),this.datasets.type==="iServer"?this.chartModel.getDatasetInfo(this._getDatasetInfoSuccess.bind(this)):this.datasets.type==="iPortal"&&this.chartModel.getDataInfoByIptl(this._getDataInfoSuccess.bind(this)),this.chartModel.events.on({getdatafailed:t=>{this.events.triggerEvent("getdatafailed",t)}}))}_getDatasetInfoSuccess(e){let t=this.datasets.url,r=t.indexOf("rest");if(r>0){let i=t.indexOf("/",r+5),a=t.substring(r+5,i),o=t.substring(0,r+4)+"/data";if(a==="maps"){let s=t.indexOf("/",i+1),l=t.substring(i+1,s);o=t.substring(0,r+4)+"/maps/"+l,e.result.dataUrl=o,this._getLayerFeatures(e)}else a==="data"&&(e.result.dataUrl=o,this._getDataFeatures(e))}}_getDataInfoSuccess(e,t){let r=this;t==="RESTMAP"?r._getChartDatasFromLayer(e):r._getChartDatas(e)}_getDataFeatures(e){this.chartModel.getDataFeatures(e,this._getChartDatas.bind(this))}_getLayerFeatures(e){this.chartModel.getLayerFeatures(e,this._getChartDatasFromLayer.bind(this))}_getChartDatas(e){if(e){this.features=e.result.features;let t=this.features.features,r={};if(t.length){let i=t[0],a=[],o=[];for(let s in i.properties)a.push(s),o.push(this._getDataType(i.properties[s]));r={features:t,fieldCaptions:a,fieldTypes:o,fieldValues:[]};for(let s in o){let l=[];for(let u in t){let h=t[u],c=r.fieldCaptions[s],f=h.properties[c];l.push(f)}r.fieldValues.push(l)}this.createChart(r)}}}_getChartDatasFromLayer(e){if(e.result.recordsets){let t=e.result.recordsets[0],r=t.features.features;this.features=t.features;let i={};if(r.length){i={features:t.features,fieldCaptions:t.fieldCaptions,fieldTypes:t.fieldTypes,fieldValues:[]};for(let a in i.fieldCaptions){let o=[];for(let s in r){let l=r[s],u=i.fieldCaptions[a],h=l.properties[u];o.push(h)}i.fieldValues.push(o)}this.createChart(i)}}}_createChartOptions(e){return this.calculatedData=this._createChartDatas(e),this.updateChartOptions(this.chartType)}changeType(e){if(e!==this.chartType)return this.chartType=e,this.updateChartOptions(this.chartType)}updateData(e,t,r){this.updateChart=r,this.xField=[],this.yField=[],this._initXYField(t),e.type=e.type||"iServer",e.withCredentials=e.withCredentials||!1,this.datasets=e,this.getDatasetInfo(this._updateDataSuccess.bind(this))}_updateDataSuccess(e){let t=this._createChartOptions(e);this.updateChart(t)}updateChartOptions(e,t){if(this.calculatedData){let r=this.grid,i=this._createChartSeries(this.calculatedData,e),a=[];for(let h in this.calculatedData.XData)a.push({value:this.calculatedData.XData[h].fieldsData});let o={type:"category",name:this.xField[0].name||"X",data:a,nameTextStyle:{color:"#fff",fontSize:14},splitLine:{show:!1},axisLine:{lineStyle:{color:"#eee"}}},s={type:"value",name:this.yFieldName||"Y",data:{},nameTextStyle:{color:"#fff",fontSize:14},splitLine:{show:!1},axisLine:{lineStyle:{color:"#eee"}}},l={formatter:"{b0}: {c0}"},u="#404a59";return t&&(t.grid&&(r=t.grid),t.tooltip&&(l=t.tooltip),t.backgroundColor&&(u=t.backgroundColor)),{backgroundColor:u,grid:r,series:i,xAxis:o,yAxis:s,tooltip:l}}}_createChartDatas(e){let t=0,r=[],i=e.fieldCaptions,a=this;i.forEach(function(l,u){a.xField[0]&&l===a.xField[0].field&&(t=u)}),this.yFieldName="",this.yField.forEach(function(l,u){u!==0&&(a.yFieldName=a.yFieldName+","),a.yFieldName=a.yFieldName+l.name,i.forEach(function(h,c){h===l.field&&r.push(c)})});let o=this._getAttrData(e,t),s=[];if(r.length>0)r.forEach(function(l){let u=[];for(let h in e.fieldValues[l])u.push({value:e.fieldValues[l][h]});s.push(u)});else{let l=[],u=[],h=o.length;for(let c=0;c{e.showView(t.message)}})}getStyle(){return this.viewModel.getStyle()}getFeatures(){return this.viewModel.getFeatures()}setStyle(e){let t=this.viewModel.setStyle(e);this._updateChart(t)}changeType(e){if(this.chartType!==e){this.chartType=e;let t=this.viewModel.changeType(e);this._updateChart(t)}}updateData(e,t){let r=this;this.viewModel.updateData(e,t,function(i){r._updateChart(i),r.addChart&&r.addChart()})}_createChart(e){this.echart=ipt(document.getElementById(this.domID),null,{renderer:"canvas"});let t=this.viewModel._createChartOptions(e);this.echart.setOption(t),this.addChart&&this.addChart()}_updateChart(e){this.echart&&(this.echart.clear(),this.echart.setOption(e))}}class bw{constructor(e){e=e||{},this.id=e.id?e.id:null,this.rootContainer=null}getElement(){return this.id&&(this.rootContainer.id=this.id),this.rootContainer}_initView(){}showView(){this.rootContainer.hidden=!1}closeView(){this.rootContainer.hidden=!0}}class E4t extends bw{constructor(e){super(e);let t=e.title?e.title:"";this._initView(t)}_initView(e){const t=document.createElement("div");t.setAttribute("class","component-container");const r=document.createElement("div");r.setAttribute("class","component-title");const i=document.createElement("div");i.innerHTML=e,r.appendChild(i),t.appendChild(r);const a=document.createElement("div");return a.setAttribute("class","component-content"),t.appendChild(a),this.content=a,this.rootContainer=t,t}getContentElement(){return this.content}appendContent(e){this.content.appendChild(e)}}class T4t extends bw{constructor(e){super(e),this._initView(e)}_initView(e){let t=this._createElement("div","component-selecttool");if(e.labelName){let h=this._createElement("label","component-selecttool__lable--describe",t);h.innerHTML=e.labelName}let r=this._createElement("div","component-selecttool--chart",t);r.setAttribute("tabindex","1");let i=this._createElement("div","component-selecttool__name",r);i.title=e.optionsArr[0],i.innerHTML=e.optionsArr[0];let a=this._createElement("div","component-selecttool__trianglebtn--chart",r),o=this._createElement("div","component-triangle-down-img",a),s=this._createElement("div","component-selecttool__content",r),l=this._createElement("div","component-selecttool__content--chart",s),u=this._createElement("div","component-selecttool__scrollarea__content",l);u.setAttribute("tabindex","1"),this.createOptions(u,e.optionsArr),this.optionClickEvent(u,i,e.optionsClickCb),this._selectClickEvent(r,s,o),this.rootContainer=t}createOptions(e,t){for(let r in t){let i=this._createElement("div","component-selecttool__option",e);i.title=t[r],i.innerHTML=t[r]}}_selectClickEvent(e,t,r){e.onclick=function(i){t.style.display==="block"?(t.style.display="none",r.className="component-triangle-down-img"):(t.style.display="block",r.className="triangle-up-img"),i.preventDefault(),i.stopPropagation()},e.onmousedown=function(i){i.target!==this&&(this.focus(),i.preventDefault(),i.stopPropagation())},e.onblur=function(){t.style.display="none",r.className="component-triangle-down-img"}}_createElement(e,t,r){let i=document.createElement(e||"div");return t&&(i.className=t),r&&r.appendChild(i),i}optionClickEvent(e,t,r){for(let i=0;i0;e--)this.header.removeChild(this.header.children[e]),this.content.removeChild(this.content.children[e])}_changeTabsPage(e){const t=e.target.index;for(let r=0;r{for(let r=0;r0;r--)this.content.removeChild(this.content.children[r-1]);const t=this.config[e];for(let r in t)this._createCityItem(r,t[r])}_createCityItem(e,t){const r=document.createElement("div"),i=document.createElement("div");i.setAttribute("class","component-citytabpag__py-key"),i.innerHTML=e,r.appendChild(i);const a=document.createElement("div");a.setAttribute("class","component-citytabpag__content");for(let o=0;o0&&this.appendTabs(e),this.rootContainer=t}setTabs(e){this.removeAllTabs(),this.appendTabs(e)}appendTabs(e){for(let t=0;t0;e--)this.navTabsTitle.removeChild(this.navTabsTitle.children[e]),this.navTabsContent.removeChild(this.navTabsContent.children[e])}_changeTabsPage(e){const t=e.target.index;for(let r=0;r=0;e--)this.content.removeChild(this.content.children[e])}setPageLink(e){this.pageNumberLis=[],this.currentPageNumberLis=[],this.clearPageLink(),this._createPageLi(e),this._appendPageLink()}_createPageLi(e){for(let t=0;t1;e--)this.link.removeChild(this.link.children[e])}_createLink(e){for(let t=0;t<4;t++){const r=document.createElement("li");r.setAttribute("class","disable");const i=document.createElement("span");r.appendChild(i),t===0?(i.id="first",i.setAttribute("class","supermapol-icons-first")):t===1?(i.id="prev",i.setAttribute("class","supermapol-icons-prev")):t===2?(i.id="next",i.setAttribute("class","supermapol-icons-next")):t===3&&(i.id="last",i.setAttribute("class","supermapol-icons-last")),e.appendChild(r)}}_changePageEvent(e){const t=e.target;if(t.parentElement.classList[0]==="disable")return;let r;if(t.id)r=t.id;else if(Number(t.innerHTML))r=Number(t.innerHTML);else return;this._prePageNum(r),this.clearPageLink(),this._appendPageLink()}_changeDisableState(){this.link.children[0].setAttribute("class",""),this.link.children[1].setAttribute("class",""),this.link.children[this.link.children.length-1].setAttribute("class",""),this.link.children[this.link.children.length-2].setAttribute("class",""),this.currentPage===1&&(this.link.children[0].setAttribute("class","disable"),this.link.children[1].setAttribute("class","disable")),this.currentPage===this.pageNumberLis.length&&(this.link.children[this.link.children.length-1].setAttribute("class","disable"),this.link.children[this.link.children.length-2].setAttribute("class","disable"))}_prePageNum(e){const t=[];if(e==="first"?this.currentPage=1:e==="last"?this.currentPage=this.pageNumberLis.length:e==="prev"?this.currentPage=this.currentPage-1:e==="next"?this.currentPage=this.currentPage+1:this.currentPage=e,this.pageNumberLis.length<=5)for(let r=0;r=this.pageNumberLis.length-3)for(let r=this.pageNumberLis.length-5;r0&&(this.currentPageNumberLis=t)}}var MQ={exports:{}};(function(n,e){var t=200,r="Expected a function",i="__lodash_hash_undefined__",a=1,o=2,s=1/0,l=9007199254740991,u="[object Arguments]",h="[object Array]",c="[object Boolean]",f="[object Date]",d="[object Error]",v="[object Function]",p="[object GeneratorFunction]",g="[object Map]",m="[object Number]",y="[object Object]",_="[object Promise]",x="[object RegExp]",S="[object Set]",w="[object String]",b="[object Symbol]",E="[object WeakMap]",T="[object ArrayBuffer]",C="[object DataView]",A="[object Float32Array]",M="[object Float64Array]",I="[object Int8Array]",R="[object Int16Array]",k="[object Int32Array]",D="[object Uint8Array]",G="[object Uint8ClampedArray]",V="[object Uint16Array]",z="[object Uint32Array]",j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,Y=/^\./,le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H=/[\\^$.*+?()[\]{}|]/g,Q=/\\(\\)?/g,ie=/^\[object .+?Constructor\]$/,oe=/^(?:0|[1-9]\d*)$/,se={};se[A]=se[M]=se[I]=se[R]=se[k]=se[D]=se[G]=se[V]=se[z]=!0,se[u]=se[h]=se[T]=se[c]=se[C]=se[f]=se[d]=se[v]=se[g]=se[m]=se[y]=se[x]=se[S]=se[w]=se[E]=!1;var me=typeof at=="object"&&at&&at.Object===Object&&at,Ce=typeof self=="object"&&self&&self.Object===Object&&self,Le=me||Ce||Function("return this")(),re=e&&!e.nodeType&&e,yt=re&&!0&&n&&!n.nodeType&&n,je=yt&&yt.exports===re,st=je&&me.process,Nt=function(){try{return st&&st.binding("util")}catch{}}(),Zt=Nt&&Nt.isTypedArray;function qe(ee,Se){var Ze=ee?ee.length:0;return!!Ze&&Oe(ee,Se,0)>-1}function ur(ee,Se,Ze){for(var Ct=-1,vr=ee?ee.length:0;++Ct-1}function $n(ee,Se){var Ze=this.__data__,Ct=Yf(Ze,ee);return Ct<0?Ze.push([ee,Se]):Ze[Ct][1]=Se,this}qt.prototype.clear=fr,qt.prototype.delete=Wr,qt.prototype.get=gr,qt.prototype.has=Ar,qt.prototype.set=$n;function bi(ee){var Se=-1,Ze=ee?ee.length:0;for(this.clear();++Se=t){var si=Se?null:tc(ee);if(si)return kt(si);Jr=!1,vr=zt,Dn=new Zl}else Dn=Se?[]:nn;e:for(;++Ctnn))return!1;var si=Cr.get(ee);if(si&&Cr.get(Se))return si==Se;var An=-1,qi=!0,_o=vr&a?new Zl:void 0;for(Cr.set(ee,Se),Cr.set(Se,ee);++An-1&&ee%1==0&&ee-1&&ee%1==0&&ee<=l}function Je(ee){var Se=typeof ee;return!!ee&&(Se=="object"||Se=="function")}function Xe(ee){return!!ee&&typeof ee=="object"}function _t(ee){return typeof ee=="symbol"||Xe(ee)&&yn.call(ee)==b}var rt=Zt?Qe(Zt):sf;function Ht(ee){return ee==null?"":ho(ee)}function Yt(ee,Se,Ze){var Ct=ee==null?void 0:qf(ee,Se);return Ct===void 0?Ze:Ct}function ne(ee,Se){return ee!=null&&mg(ee,Se,Zf)}function ye(ee){return q(ee)?vg(ee):bs(ee)}function Ue(ee){return ee}function Bt(){}function $t(ee){return _h(ee)?We(gt(ee)):Wm(ee)}n.exports=O})(MQ,MQ.exports);const P4t=MQ.exports;function rxe(n,e){const t=e&&e.styles&&e.styles.style,r=e&&e.captionFields&&e.captionFields.captionField,i={nodes:[],edges:[]};return n.forEach(a=>{const o=a.path;if(o){const{nodes:s,edges:l}=O4t(o,t,r);i.nodes.push(...s),i.edges.push(...l)}else if(BGe(a)){const s=zGe(a,t);i.edges.push(s)}else{const s=GGe(a,t,r);i.nodes.push(s)}}),{nodes:nxe(i.nodes),edges:nxe(i.edges,"edgeId")}}function nxe(n,e="id"){return P4t(n,e)}function BGe(n){return n.hasOwnProperty("start")&&n.hasOwnProperty("end")}function O4t(n,e,t){const r={nodes:[],edges:[]};return n.forEach(i=>{if(BGe(i)){const a=zGe(i,e);r.edges.push(a)}else{const a=GGe(i,e,t);r.nodes.push(a)}}),r}function GGe(n,e,t){const{id:r,properties:i,lables:a}=n,o=e?D4t(n,e):{},s=N4t(n,t),l=o.fillColor||"",u={id:r+"",label:s,properties:i,lables:a};return o.size&&(u.size=o.size,delete o.size),o.fillColor&&(u.style={fill:l,stroke:l},delete o.fillColor),Object.keys(o).length!==0&&(u.labelCfg={style:o}),u}function zGe(n,e){const{start:t,end:r,id:i,type:a,properties:o}=n,s=e?R4t(n,e):{},l={source:t+"",target:r+"",edgeId:i+"",label:a,style:{},labelCfg:{},properties:o};return s.stroke&&(l.style.stroke=s.stroke,l.style.endArrow={path:"M 0,0 L 4,2 L 4,-2 Z",fill:s.stroke},delete s.stroke),s.lineWidth&&(l.style.lineWidth=s.lineWidth,delete s.lineWidth),l.labelCfg={style:s},l}function R4t(n,e){if(!e)return{};const{id:t,type:r}=n,i=e.filter(a=>a.type==="relationShip");for(let a=0;aa.type==="entity");for(let a=0;a=0;s--)(o=n[s])&&(a=(i<3?o(a):i>3?o(e,t,a):o(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}function $Ge(n,e){return function(t,r){e(t,r,n)}}function WGe(n,e,t,r,i,a){function o(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var s=r.kind,l=s==="getter"?"get":s==="setter"?"set":"value",u=!e&&n?r.static?n:n.prototype:null,h=e||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),c,f=!1,d=t.length-1;d>=0;d--){var v={};for(var p in r)v[p]=p==="access"?{}:r[p];for(var p in r.access)v.access[p]=r.access[p];v.addInitializer=function(m){if(f)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(m||null))};var g=(0,t[d])(s==="accessor"?{get:h.get,set:h.set}:h[l],v);if(s==="accessor"){if(g===void 0)continue;if(g===null||typeof g!="object")throw new TypeError("Object expected");(c=o(g.get))&&(h.get=c),(c=o(g.set))&&(h.set=c),(c=o(g.init))&&i.unshift(c)}else(c=o(g))&&(s==="field"?i.unshift(c):h[l]=c)}u&&Object.defineProperty(u,r.name,h),f=!0}function HGe(n,e,t){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ooe(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return a}function ZGe(){for(var n=[],e=0;e1||l(d,p)})},v&&(i[d]=v(i[d])))}function l(d,v){try{u(r[d](v))}catch(p){f(a[0][3],p)}}function u(d){d.value instanceof wM?Promise.resolve(d.value.v).then(h,c):f(a[0][2],d)}function h(d){l("next",d)}function c(d){l("throw",d)}function f(d,v){d(v),a.shift(),a.length&&l(a[0][0],a[0][1])}}function JGe(n){var e,t;return e={},r("next"),r("throw",function(i){throw i}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(i,a){e[i]=n[i]?function(o){return(t=!t)?{value:wM(n[i](o)),done:!1}:a?a(o):o}:a}}function QGe(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof a9=="function"?a9(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(a){t[a]=n[a]&&function(o){return new Promise(function(s,l){o=n[a](o),i(s,l,o.done,o.value)})}}function i(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}}function e9e(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n}var F4t=Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e},LQ=function(n){return LQ=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},LQ(n)};function t9e(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t=LQ(n),r=0;r-1:!1},OU=function(n,e){if(!Ed(n))return n;for(var t=[],r=0;r-1;)X4t.call(n,a,1);return n},Z4t=Array.prototype.splice,v9e=function(e,t){if(!Ed(e))return[];for(var r=e?t.length:0,i=r-1;r--;){var a=void 0,o=t[r];(r===i||o!==a)&&(a=o,Z4t.call(e,o,1))}return e},p9e=function(n,e,t){if(!vn(n)&&!kh(n))return n;var r=t;return At(n,function(i,a){r=e(r,i,a)}),r},K4t=function(n,e){var t=[];if(!Ed(n))return t;for(var r=-1,i=[],a=n.length;++ra[s])return 1;if(i[s]t?t:n},FB=function(n,e){var t=e.toString(),r=t.indexOf(".");if(r===-1)return Math.round(n);var i=t.substr(r+1).length;return i>20&&(i=20),parseFloat(n.toFixed(i))},on=function(n){return k0(n,"Number")},c5t=function(n){return on(n)&&n%1!==0},f5t=function(n){return on(n)&&n%2===0},d5t=Number.isInteger?Number.isInteger:function(n){return on(n)&&n%1===0},v5t=function(n){return on(n)&&n<0},p5t=1e-5;function y9e(n,e,t){return t===void 0&&(t=p5t),Math.abs(n-e)0};const m5t=function(n,e){if(!!vn(n)){for(var t,r=-1/0,i=0;ir&&(t=a,r=o)}return t}},_5t=function(n,e){if(!!vn(n)){for(var t,r=1/0,i=0;ie?(r&&(clearTimeout(r),r=null),s=h,o=n.apply(i,a),r||(i=a=null)):!r&&t.trailing!==!1&&(r=setTimeout(l,c)),o};return u.cancel=function(){clearTimeout(r),s=0,r=i=a=null},u},T9e=function(n){return Ed(n)?Array.prototype.slice.call(n):[]};var r5={};const vm=function(n){return n=n||"g",r5[n]?r5[n]+=1:r5[n]=1,n+r5[n]},dO=function(){},q5t=function(n){return n};function NU(n){return an(n)?0:Ed(n)?n.length:Object.keys(n).length}var n5;const vO=w9e(function(n,e){e===void 0&&(e={});var t=e.fontSize,r=e.fontFamily,i=e.fontWeight,a=e.fontStyle,o=e.fontVariant;return n5||(n5=document.createElement("canvas").getContext("2d")),n5.font=[a,o,i,t+"px",r].join(" "),n5.measureText(rr(n)?n:"").width},function(n,e){return e===void 0&&(e={}),PU([n],Roe(e)).join("")}),Z5t=function(n,e,t,r){r===void 0&&(r="...");var i=16,a=vO(r,t),o=rr(n)?n:HI(n),s=e,l=[],u,h;if(vO(n,t)<=e)return n;for(;u=o.substr(0,i),h=vO(u,t),!(h+a>s&&h>s);)if(l.push(u),s-=h,o=o.substr(i),!o)return l.join("");for(;u=o.substr(0,1),h=vO(u,t),!(h+a>s);)if(l.push(u),s-=h,o=o.substr(1),!o)return l.join("");return""+l.join("")+r};var K5t=function(){function n(){this.map={}}return n.prototype.has=function(e){return this.map[e]!==void 0},n.prototype.get=function(e,t){var r=this.map[e];return r===void 0?t:r},n.prototype.set=function(e,t){this.map[e]=t},n.prototype.clear=function(){this.map={}},n.prototype.delete=function(e){delete this.map[e]},n.prototype.size=function(){return Object.keys(this.map).length},n}();const J5t=Object.freeze(Object.defineProperty({__proto__:null,contains:o9,includes:o9,difference:U4t,find:$4t,findIndex:W4t,firstValue:H4t,flatten:j4t,flattenDeep:c9e,getRange:f9e,pull:q4t,pullAt:v9e,reduce:p9e,remove:K4t,sortBy:J4t,union:Q4t,uniq:kD,valuesOfKey:e5t,head:Ky,last:Fp,startsWith:t5t,endsWith:r5t,filter:OU,every:n5t,some:i5t,group:o5t,groupBy:l9,groupToMap:g9e,getWrapBehavior:s5t,wrapBehavior:hE,number2color:l5t,parseRadius:u5t,clamp:h5t,fixedBase:FB,isDecimal:c5t,isEven:f5t,isInteger:d5t,isNegative:v5t,isNumberEqual:y9e,isOdd:g5t,isPositive:y5t,max:fm,maxBy:m5t,min:dm,minBy:_5t,mod:RU,toDegree:S5t,toInteger:w5t,toRadian:DU,forIn:At,has:axe,hasKey:axe,hasValue:E5t,keys:u9e,isMatch:h9e,values:Roe,lowerCase:T5t,lowerFirst:C5t,substitute:A5t,upperCase:M5t,upperFirst:bM,getType:m9e,isArguments:L5t,isArray:vn,isArrayLike:Ed,isBoolean:z3,isDate:Doe,isError:P5t,isFunction:nl,isFinite:O5t,isNil:an,isNull:R5t,isNumber:on,isObject:Wh,isObjectLike:s9,isPlainObject:kh,isPrototype:_9e,isRegExp:N5t,isString:rr,isType:k0,isUndefined:k5t,isElement:F5t,requestAnimationFrame:x9e,clearAnimationFrame:S9e,augment:B5t,clone:Xi,debounce:U3,memoize:w9e,deepMix:ms,each:At,extend:z5t,indexOf:Noe,isEmpty:E9e,isEqual:HS,isEqualWith:V5t,map:n2,mapValues:W5t,mix:_n,assign:_n,get:y1,set:H5t,pick:X5t,omit:Y5t,throttle:FD,toArray:T9e,toString:HI,uniqueId:vm,noop:dO,identity:q5t,size:NU,measureTextWidth:vO,getEllipsisText:Z5t,Cache:K5t},Symbol.toStringTag,{value:"Module"})),Q5t={getDefaultCfg:function(){return{}},getEvents:function(){return{}},updateCfg:function(e){return Object.assign(this,e),!0},shouldBegin:function(){return!0},shouldUpdate:function(){return!0},shouldEnd:function(){return!0},bind:function(e){var t=this,r=this.events;this.graph=e,(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&e.get("canvas").set("draggable",!0),At(r,function(i,a){e.on(a,i)}),document.addEventListener("visibilitychange",function(){t.keydown=!1})},unbind:function(e){var t=this.events,r=e.get("canvas").get("draggable");(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&e.get("canvas").set("draggable",!1),At(t,function(i,a){e.off(a,i)}),e.get("canvas").set("draggable",r)},get:function(e){return this[e]},set:function(e,t){return this[e]=t,this}};var koe=function(){function n(){}return n.registerBehavior=function(e,t){if(!t)throw new Error("please specify handler for this behavior: ".concat(e));var r=Xi(Q5t);Object.assign(r,t);var i=function(o){var s=this;Object.assign(this,this.getDefaultCfg(),o);var l=this.getEvents();this.events=null;var u={};l&&(At(l,function(h,c){u[c]=hE(s,h)}),this.events=u)};i.prototype=r,n.types[e]=i},n.hasBehavior=function(e){return!!n.types[e]},n.getBehavior=function(e){return n.types[e]},n.types={},n}(),e6t="*",C9e=function(){function n(){this._events={}}return n.prototype.on=function(e,t,r){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:t,once:!!r}),this},n.prototype.once=function(e,t){return this.on(e,t,!0)},n.prototype.emit=function(e){for(var t=this,r=[],i=1;i0?(t[0]=(s*o+h*r+l*a-u*i)*2/c,t[1]=(l*o+h*i+u*r-s*a)*2/c,t[2]=(u*o+h*a+s*i-l*r)*2/c):(t[0]=(s*o+h*r+l*a-u*i)*2,t[1]=(l*o+h*i+u*r-s*a)*2,t[2]=(u*o+h*a+s*i-l*r)*2),k9e(n,e,t),n}function F9e(n,e){return n[0]=e[12],n[1]=e[13],n[2]=e[14],n}function B9e(n,e){var t=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],l=e[8],u=e[9],h=e[10];return n[0]=Math.hypot(t,r,i),n[1]=Math.hypot(a,o,s),n[2]=Math.hypot(l,u,h),n}function G9e(n,e){var t=new ca(3);B9e(t,e);var r=1/t[0],i=1/t[1],a=1/t[2],o=e[0]*r,s=e[1]*i,l=e[2]*a,u=e[4]*r,h=e[5]*i,c=e[6]*a,f=e[8]*r,d=e[9]*i,v=e[10]*a,p=o+h+v,g=0;return p>0?(g=Math.sqrt(p+1)*2,n[3]=.25*g,n[0]=(c-d)/g,n[1]=(f-l)/g,n[2]=(s-u)/g):o>h&&o>v?(g=Math.sqrt(1+o-h-v)*2,n[3]=(c-d)/g,n[0]=.25*g,n[1]=(s+u)/g,n[2]=(f+l)/g):h>v?(g=Math.sqrt(1+h-o-v)*2,n[3]=(f-l)/g,n[0]=(s+u)/g,n[1]=.25*g,n[2]=(c+d)/g):(g=Math.sqrt(1+v-o-h)*2,n[3]=(s-u)/g,n[0]=(f+l)/g,n[1]=(c+d)/g,n[2]=.25*g),n}function YBt(n,e,t,r){var i=e[0],a=e[1],o=e[2],s=e[3],l=i+i,u=a+a,h=o+o,c=i*l,f=i*u,d=i*h,v=a*u,p=a*h,g=o*h,m=s*l,y=s*u,_=s*h,x=r[0],S=r[1],w=r[2];return n[0]=(1-(v+g))*x,n[1]=(f+_)*x,n[2]=(d-y)*x,n[3]=0,n[4]=(f-_)*S,n[5]=(1-(c+g))*S,n[6]=(p+m)*S,n[7]=0,n[8]=(d+y)*w,n[9]=(p-m)*w,n[10]=(1-(c+v))*w,n[11]=0,n[12]=t[0],n[13]=t[1],n[14]=t[2],n[15]=1,n}function qBt(n,e,t,r,i){var a=e[0],o=e[1],s=e[2],l=e[3],u=a+a,h=o+o,c=s+s,f=a*u,d=a*h,v=a*c,p=o*h,g=o*c,m=s*c,y=l*u,_=l*h,x=l*c,S=r[0],w=r[1],b=r[2],E=i[0],T=i[1],C=i[2],A=(1-(p+m))*S,M=(d+x)*S,I=(v-_)*S,R=(d-x)*w,k=(1-(f+m))*w,D=(g+y)*w,G=(v+_)*b,V=(g-y)*b,z=(1-(f+p))*b;return n[0]=A,n[1]=M,n[2]=I,n[3]=0,n[4]=R,n[5]=k,n[6]=D,n[7]=0,n[8]=G,n[9]=V,n[10]=z,n[11]=0,n[12]=t[0]+E-(A*E+R*T+G*C),n[13]=t[1]+T-(M*E+k*T+V*C),n[14]=t[2]+C-(I*E+D*T+z*C),n[15]=1,n}function ZBt(n,e){var t=e[0],r=e[1],i=e[2],a=e[3],o=t+t,s=r+r,l=i+i,u=t*o,h=r*o,c=r*s,f=i*o,d=i*s,v=i*l,p=a*o,g=a*s,m=a*l;return n[0]=1-c-v,n[1]=h+m,n[2]=f-g,n[3]=0,n[4]=h-m,n[5]=1-u-v,n[6]=d+p,n[7]=0,n[8]=f+g,n[9]=d-p,n[10]=1-u-c,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}function KBt(n,e,t,r,i,a,o){var s=1/(t-e),l=1/(i-r),u=1/(a-o);return n[0]=a*2*s,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=a*2*l,n[6]=0,n[7]=0,n[8]=(t+e)*s,n[9]=(i+r)*l,n[10]=(o+a)*u,n[11]=-1,n[12]=0,n[13]=0,n[14]=o*a*2*u,n[15]=0,n}function z9e(n,e,t,r,i){var a=1/Math.tan(e/2),o;return n[0]=a/t,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=a,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[11]=-1,n[12]=0,n[13]=0,n[15]=0,i!=null&&i!==1/0?(o=1/(r-i),n[10]=(i+r)*o,n[14]=2*i*r*o):(n[10]=-1,n[14]=-2*r),n}var JBt=z9e;function QBt(n,e,t,r,i){var a=1/Math.tan(e/2),o;return n[0]=a/t,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=a,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[11]=-1,n[12]=0,n[13]=0,n[15]=0,i!=null&&i!==1/0?(o=1/(r-i),n[10]=i*o,n[14]=i*r*o):(n[10]=-1,n[14]=-r),n}function e8t(n,e,t,r){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(i+a);return n[0]=l,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=u,n[6]=0,n[7]=0,n[8]=-((o-s)*l*.5),n[9]=(i-a)*u*.5,n[10]=r/(t-r),n[11]=-1,n[12]=0,n[13]=0,n[14]=r*t/(t-r),n[15]=0,n}function U9e(n,e,t,r,i,a,o){var s=1/(e-t),l=1/(r-i),u=1/(a-o);return n[0]=-2*s,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=-2*l,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=2*u,n[11]=0,n[12]=(e+t)*s,n[13]=(i+r)*l,n[14]=(o+a)*u,n[15]=1,n}var t8t=U9e;function r8t(n,e,t,r,i,a,o){var s=1/(e-t),l=1/(r-i),u=1/(a-o);return n[0]=-2*s,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=-2*l,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=u,n[11]=0,n[12]=(e+t)*s,n[13]=(i+r)*l,n[14]=a*u,n[15]=1,n}function n8t(n,e,t,r){var i,a,o,s,l,u,h,c,f,d,v=e[0],p=e[1],g=e[2],m=r[0],y=r[1],_=r[2],x=t[0],S=t[1],w=t[2];return Math.abs(v-x)0&&(d=1/Math.sqrt(d),h*=d,c*=d,f*=d);var v=l*f-u*c,p=u*h-s*f,g=s*c-l*h;return d=v*v+p*p+g*g,d>0&&(d=1/Math.sqrt(d),v*=d,p*=d,g*=d),n[0]=v,n[1]=p,n[2]=g,n[3]=0,n[4]=c*g-f*p,n[5]=f*v-h*g,n[6]=h*p-c*v,n[7]=0,n[8]=h,n[9]=c,n[10]=f,n[11]=0,n[12]=i,n[13]=a,n[14]=o,n[15]=1,n}function a8t(n){return"mat4("+n[0]+", "+n[1]+", "+n[2]+", "+n[3]+", "+n[4]+", "+n[5]+", "+n[6]+", "+n[7]+", "+n[8]+", "+n[9]+", "+n[10]+", "+n[11]+", "+n[12]+", "+n[13]+", "+n[14]+", "+n[15]+")"}function o8t(n){return Math.hypot(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15])}function s8t(n,e,t){return n[0]=e[0]+t[0],n[1]=e[1]+t[1],n[2]=e[2]+t[2],n[3]=e[3]+t[3],n[4]=e[4]+t[4],n[5]=e[5]+t[5],n[6]=e[6]+t[6],n[7]=e[7]+t[7],n[8]=e[8]+t[8],n[9]=e[9]+t[9],n[10]=e[10]+t[10],n[11]=e[11]+t[11],n[12]=e[12]+t[12],n[13]=e[13]+t[13],n[14]=e[14]+t[14],n[15]=e[15]+t[15],n}function V9e(n,e,t){return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n[2]=e[2]-t[2],n[3]=e[3]-t[3],n[4]=e[4]-t[4],n[5]=e[5]-t[5],n[6]=e[6]-t[6],n[7]=e[7]-t[7],n[8]=e[8]-t[8],n[9]=e[9]-t[9],n[10]=e[10]-t[10],n[11]=e[11]-t[11],n[12]=e[12]-t[12],n[13]=e[13]-t[13],n[14]=e[14]-t[14],n[15]=e[15]-t[15],n}function l8t(n,e,t){return n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t,n[3]=e[3]*t,n[4]=e[4]*t,n[5]=e[5]*t,n[6]=e[6]*t,n[7]=e[7]*t,n[8]=e[8]*t,n[9]=e[9]*t,n[10]=e[10]*t,n[11]=e[11]*t,n[12]=e[12]*t,n[13]=e[13]*t,n[14]=e[14]*t,n[15]=e[15]*t,n}function u8t(n,e,t,r){return n[0]=e[0]+t[0]*r,n[1]=e[1]+t[1]*r,n[2]=e[2]+t[2]*r,n[3]=e[3]+t[3]*r,n[4]=e[4]+t[4]*r,n[5]=e[5]+t[5]*r,n[6]=e[6]+t[6]*r,n[7]=e[7]+t[7]*r,n[8]=e[8]+t[8]*r,n[9]=e[9]+t[9]*r,n[10]=e[10]+t[10]*r,n[11]=e[11]+t[11]*r,n[12]=e[12]+t[12]*r,n[13]=e[13]+t[13]*r,n[14]=e[14]+t[14]*r,n[15]=e[15]+t[15]*r,n}function h8t(n,e){return n[0]===e[0]&&n[1]===e[1]&&n[2]===e[2]&&n[3]===e[3]&&n[4]===e[4]&&n[5]===e[5]&&n[6]===e[6]&&n[7]===e[7]&&n[8]===e[8]&&n[9]===e[9]&&n[10]===e[10]&&n[11]===e[11]&&n[12]===e[12]&&n[13]===e[13]&&n[14]===e[14]&&n[15]===e[15]}function c8t(n,e){var t=n[0],r=n[1],i=n[2],a=n[3],o=n[4],s=n[5],l=n[6],u=n[7],h=n[8],c=n[9],f=n[10],d=n[11],v=n[12],p=n[13],g=n[14],m=n[15],y=e[0],_=e[1],x=e[2],S=e[3],w=e[4],b=e[5],E=e[6],T=e[7],C=e[8],A=e[9],M=e[10],I=e[11],R=e[12],k=e[13],D=e[14],G=e[15];return Math.abs(t-y)<=In*Math.max(1,Math.abs(t),Math.abs(y))&&Math.abs(r-_)<=In*Math.max(1,Math.abs(r),Math.abs(_))&&Math.abs(i-x)<=In*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-S)<=In*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(o-w)<=In*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(s-b)<=In*Math.max(1,Math.abs(s),Math.abs(b))&&Math.abs(l-E)<=In*Math.max(1,Math.abs(l),Math.abs(E))&&Math.abs(u-T)<=In*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(h-C)<=In*Math.max(1,Math.abs(h),Math.abs(C))&&Math.abs(c-A)<=In*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(f-M)<=In*Math.max(1,Math.abs(f),Math.abs(M))&&Math.abs(d-I)<=In*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(v-R)<=In*Math.max(1,Math.abs(v),Math.abs(R))&&Math.abs(p-k)<=In*Math.max(1,Math.abs(p),Math.abs(k))&&Math.abs(g-D)<=In*Math.max(1,Math.abs(g),Math.abs(D))&&Math.abs(m-G)<=In*Math.max(1,Math.abs(m),Math.abs(G))}var f8t=N9e,d8t=V9e;const v8t=Object.freeze(Object.defineProperty({__proto__:null,create:CBt,clone:ABt,copy:MBt,fromValues:IBt,set:LBt,identity:D9e,transpose:PBt,invert:OBt,adjoint:RBt,determinant:DBt,multiply:N9e,translate:NBt,scale:kBt,rotate:FBt,rotateX:BBt,rotateY:GBt,rotateZ:zBt,fromTranslation:UBt,fromScaling:VBt,fromRotation:$Bt,fromXRotation:WBt,fromYRotation:HBt,fromZRotation:jBt,fromRotationTranslation:k9e,fromQuat2:XBt,getTranslation:F9e,getScaling:B9e,getRotation:G9e,fromRotationTranslationScale:YBt,fromRotationTranslationScaleOrigin:qBt,fromQuat:ZBt,frustum:KBt,perspectiveNO:z9e,perspective:JBt,perspectiveZO:QBt,perspectiveFromFieldOfView:e8t,orthoNO:U9e,ortho:t8t,orthoZO:r8t,lookAt:n8t,targetTo:i8t,str:a8t,frob:o8t,add:s8t,subtract:V9e,multiplyScalar:l8t,multiplyScalarAndAdd:u8t,exactEquals:h8t,equals:c8t,mul:f8t,sub:d8t},Symbol.toStringTag,{value:"Module"}));function Uoe(){var n=new ca(3);return ca!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0),n}function p8t(n){var e=new ca(3);return e[0]=n[0],e[1]=n[1],e[2]=n[2],e}function $9e(n){var e=n[0],t=n[1],r=n[2];return Math.hypot(e,t,r)}function PQ(n,e,t){var r=new ca(3);return r[0]=n,r[1]=e,r[2]=t,r}function g8t(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n}function y8t(n,e,t,r){return n[0]=e,n[1]=t,n[2]=r,n}function m8t(n,e,t){return n[0]=e[0]+t[0],n[1]=e[1]+t[1],n[2]=e[2]+t[2],n}function W9e(n,e,t){return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n[2]=e[2]-t[2],n}function H9e(n,e,t){return n[0]=e[0]*t[0],n[1]=e[1]*t[1],n[2]=e[2]*t[2],n}function j9e(n,e,t){return n[0]=e[0]/t[0],n[1]=e[1]/t[1],n[2]=e[2]/t[2],n}function _8t(n,e){return n[0]=Math.ceil(e[0]),n[1]=Math.ceil(e[1]),n[2]=Math.ceil(e[2]),n}function x8t(n,e){return n[0]=Math.floor(e[0]),n[1]=Math.floor(e[1]),n[2]=Math.floor(e[2]),n}function S8t(n,e,t){return n[0]=Math.min(e[0],t[0]),n[1]=Math.min(e[1],t[1]),n[2]=Math.min(e[2],t[2]),n}function w8t(n,e,t){return n[0]=Math.max(e[0],t[0]),n[1]=Math.max(e[1],t[1]),n[2]=Math.max(e[2],t[2]),n}function b8t(n,e){return n[0]=Math.round(e[0]),n[1]=Math.round(e[1]),n[2]=Math.round(e[2]),n}function E8t(n,e,t){return n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t,n}function T8t(n,e,t,r){return n[0]=e[0]+t[0]*r,n[1]=e[1]+t[1]*r,n[2]=e[2]+t[2]*r,n}function X9e(n,e){var t=e[0]-n[0],r=e[1]-n[1],i=e[2]-n[2];return Math.hypot(t,r,i)}function Y9e(n,e){var t=e[0]-n[0],r=e[1]-n[1],i=e[2]-n[2];return t*t+r*r+i*i}function q9e(n){var e=n[0],t=n[1],r=n[2];return e*e+t*t+r*r}function C8t(n,e){return n[0]=-e[0],n[1]=-e[1],n[2]=-e[2],n}function A8t(n,e){return n[0]=1/e[0],n[1]=1/e[1],n[2]=1/e[2],n}function Z9e(n,e){var t=e[0],r=e[1],i=e[2],a=t*t+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),n[0]=e[0]*a,n[1]=e[1]*a,n[2]=e[2]*a,n}function Voe(n,e){return n[0]*e[0]+n[1]*e[1]+n[2]*e[2]}function BB(n,e,t){var r=e[0],i=e[1],a=e[2],o=t[0],s=t[1],l=t[2];return n[0]=i*l-a*s,n[1]=a*o-r*l,n[2]=r*s-i*o,n}function M8t(n,e,t,r){var i=e[0],a=e[1],o=e[2];return n[0]=i+r*(t[0]-i),n[1]=a+r*(t[1]-a),n[2]=o+r*(t[2]-o),n}function I8t(n,e,t,r,i,a){var o=a*a,s=o*(2*a-3)+1,l=o*(a-2)+a,u=o*(a-1),h=o*(3-2*a);return n[0]=e[0]*s+t[0]*l+r[0]*u+i[0]*h,n[1]=e[1]*s+t[1]*l+r[1]*u+i[1]*h,n[2]=e[2]*s+t[2]*l+r[2]*u+i[2]*h,n}function L8t(n,e,t,r,i,a){var o=1-a,s=o*o,l=a*a,u=s*o,h=3*a*s,c=3*l*o,f=l*a;return n[0]=e[0]*u+t[0]*h+r[0]*c+i[0]*f,n[1]=e[1]*u+t[1]*h+r[1]*c+i[1]*f,n[2]=e[2]*u+t[2]*h+r[2]*c+i[2]*f,n}function P8t(n,e){e=e||1;var t=i0()*2*Math.PI,r=i0()*2-1,i=Math.sqrt(1-r*r)*e;return n[0]=Math.cos(t)*i,n[1]=Math.sin(t)*i,n[2]=r*e,n}function O8t(n,e,t){var r=e[0],i=e[1],a=e[2],o=t[3]*r+t[7]*i+t[11]*a+t[15];return o=o||1,n[0]=(t[0]*r+t[4]*i+t[8]*a+t[12])/o,n[1]=(t[1]*r+t[5]*i+t[9]*a+t[13])/o,n[2]=(t[2]*r+t[6]*i+t[10]*a+t[14])/o,n}function kU(n,e,t){var r=e[0],i=e[1],a=e[2];return n[0]=r*t[0]+i*t[3]+a*t[6],n[1]=r*t[1]+i*t[4]+a*t[7],n[2]=r*t[2]+i*t[5]+a*t[8],n}function R8t(n,e,t){var r=t[0],i=t[1],a=t[2],o=t[3],s=e[0],l=e[1],u=e[2],h=i*u-a*l,c=a*s-r*u,f=r*l-i*s,d=i*f-a*c,v=a*h-r*f,p=r*c-i*h,g=o*2;return h*=g,c*=g,f*=g,d*=2,v*=2,p*=2,n[0]=s+h+d,n[1]=l+c+v,n[2]=u+f+p,n}function D8t(n,e,t,r){var i=[],a=[];return i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),n[0]=a[0]+t[0],n[1]=a[1]+t[1],n[2]=a[2]+t[2],n}function N8t(n,e,t,r){var i=[],a=[];return i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),n[0]=a[0]+t[0],n[1]=a[1]+t[1],n[2]=a[2]+t[2],n}function k8t(n,e,t,r){var i=[],a=[];return i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],n[0]=a[0]+t[0],n[1]=a[1]+t[1],n[2]=a[2]+t[2],n}function F8t(n,e){var t=n[0],r=n[1],i=n[2],a=e[0],o=e[1],s=e[2],l=Math.sqrt(t*t+r*r+i*i),u=Math.sqrt(a*a+o*o+s*s),h=l*u,c=h&&Voe(n,e)/h;return Math.acos(Math.min(Math.max(c,-1),1))}function B8t(n){return n[0]=0,n[1]=0,n[2]=0,n}function G8t(n){return"vec3("+n[0]+", "+n[1]+", "+n[2]+")"}function z8t(n,e){return n[0]===e[0]&&n[1]===e[1]&&n[2]===e[2]}function U8t(n,e){var t=n[0],r=n[1],i=n[2],a=e[0],o=e[1],s=e[2];return Math.abs(t-a)<=In*Math.max(1,Math.abs(t),Math.abs(a))&&Math.abs(r-o)<=In*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=In*Math.max(1,Math.abs(i),Math.abs(s))}var V8t=W9e,$8t=H9e,W8t=j9e,H8t=X9e,j8t=Y9e,K9e=$9e,X8t=q9e,Y8t=function(){var n=Uoe();return function(e,t,r,i,a,o){var s,l;for(t||(t=3),r||(r=0),i?l=Math.min(i*t+r,e.length):l=e.length,s=r;s0&&(o=1/Math.sqrt(o)),n[0]=t*o,n[1]=r*o,n[2]=i*o,n[3]=a*o,n}function c7e(n,e){return n[0]*e[0]+n[1]*e[1]+n[2]*e[2]+n[3]*e[3]}function iGt(n,e,t,r){var i=t[0]*r[1]-t[1]*r[0],a=t[0]*r[2]-t[2]*r[0],o=t[0]*r[3]-t[3]*r[0],s=t[1]*r[2]-t[2]*r[1],l=t[1]*r[3]-t[3]*r[1],u=t[2]*r[3]-t[3]*r[2],h=e[0],c=e[1],f=e[2],d=e[3];return n[0]=c*u-f*l+d*s,n[1]=-(h*u)+f*o-d*a,n[2]=h*l-c*o+d*i,n[3]=-(h*s)+c*a-f*i,n}function f7e(n,e,t,r){var i=e[0],a=e[1],o=e[2],s=e[3];return n[0]=i+r*(t[0]-i),n[1]=a+r*(t[1]-a),n[2]=o+r*(t[2]-o),n[3]=s+r*(t[3]-s),n}function aGt(n,e){e=e||1;var t,r,i,a,o,s;do t=i0()*2-1,r=i0()*2-1,o=t*t+r*r;while(o>=1);do i=i0()*2-1,a=i0()*2-1,s=i*i+a*a;while(s>=1);var l=Math.sqrt((1-o)/s);return n[0]=e*t,n[1]=e*r,n[2]=e*i*l,n[3]=e*a*l,n}function oGt(n,e,t){var r=e[0],i=e[1],a=e[2],o=e[3];return n[0]=t[0]*r+t[4]*i+t[8]*a+t[12]*o,n[1]=t[1]*r+t[5]*i+t[9]*a+t[13]*o,n[2]=t[2]*r+t[6]*i+t[10]*a+t[14]*o,n[3]=t[3]*r+t[7]*i+t[11]*a+t[15]*o,n}function sGt(n,e,t){var r=e[0],i=e[1],a=e[2],o=t[0],s=t[1],l=t[2],u=t[3],h=u*r+s*a-l*i,c=u*i+l*r-o*a,f=u*a+o*i-s*r,d=-o*r-s*i-l*a;return n[0]=h*u+d*-o+c*-l-f*-s,n[1]=c*u+d*-s+f*-o-h*-l,n[2]=f*u+d*-l+h*-s-c*-o,n[3]=e[3],n}function lGt(n){return n[0]=0,n[1]=0,n[2]=0,n[3]=0,n}function uGt(n){return"vec4("+n[0]+", "+n[1]+", "+n[2]+", "+n[3]+")"}function d7e(n,e){return n[0]===e[0]&&n[1]===e[1]&&n[2]===e[2]&&n[3]===e[3]}function v7e(n,e){var t=n[0],r=n[1],i=n[2],a=n[3],o=e[0],s=e[1],l=e[2],u=e[3];return Math.abs(t-o)<=In*Math.max(1,Math.abs(t),Math.abs(o))&&Math.abs(r-s)<=In*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-l)<=In*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(a-u)<=In*Math.max(1,Math.abs(a),Math.abs(u))}var hGt=i7e,cGt=a7e,fGt=o7e,dGt=l7e,vGt=u7e,pGt=$oe,gGt=Woe,yGt=function(){var n=J9e();return function(e,t,r,i,a,o){var s,l;for(t||(t=4),r||(r=0),i?l=Math.min(i*t+r,e.length):l=e.length,s=r;sIn?(n[0]=e[0]/r,n[1]=e[1]/r,n[2]=e[2]/r):(n[0]=1,n[1]=0,n[2]=0),t}function SGt(n,e){var t=joe(n,e);return Math.acos(2*t*t-1)}function g7e(n,e,t){var r=e[0],i=e[1],a=e[2],o=e[3],s=t[0],l=t[1],u=t[2],h=t[3];return n[0]=r*h+o*s+i*u-a*l,n[1]=i*h+o*l+a*s-r*u,n[2]=a*h+o*u+r*l-i*s,n[3]=o*h-r*s-i*l-a*u,n}function y7e(n,e,t){t*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(t),l=Math.cos(t);return n[0]=r*l+o*s,n[1]=i*l+a*s,n[2]=a*l-i*s,n[3]=o*l-r*s,n}function m7e(n,e,t){t*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(t),l=Math.cos(t);return n[0]=r*l-a*s,n[1]=i*l+o*s,n[2]=a*l+r*s,n[3]=o*l-i*s,n}function _7e(n,e,t){t*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(t),l=Math.cos(t);return n[0]=r*l+i*s,n[1]=i*l-r*s,n[2]=a*l+o*s,n[3]=o*l-a*s,n}function wGt(n,e){var t=e[0],r=e[1],i=e[2];return n[0]=t,n[1]=r,n[2]=i,n[3]=Math.sqrt(Math.abs(1-t*t-r*r-i*i)),n}function x7e(n,e){var t=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(t*t+r*r+i*i),s=Math.exp(a),l=o>0?s*Math.sin(o)/o:0;return n[0]=t*l,n[1]=r*l,n[2]=i*l,n[3]=s*Math.cos(o),n}function S7e(n,e){var t=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(t*t+r*r+i*i),s=o>0?Math.atan2(o,a)/o:0;return n[0]=t*s,n[1]=r*s,n[2]=i*s,n[3]=.5*Math.log(t*t+r*r+i*i+a*a),n}function bGt(n,e,t){return S7e(n,e),b7e(n,n,t),x7e(n,n),n}function GB(n,e,t,r){var i=e[0],a=e[1],o=e[2],s=e[3],l=t[0],u=t[1],h=t[2],c=t[3],f,d,v,p,g;return d=i*l+a*u+o*h+s*c,d<0&&(d=-d,l=-l,u=-u,h=-h,c=-c),1-d>In?(f=Math.acos(d),v=Math.sin(f),p=Math.sin((1-r)*f)/v,g=Math.sin(r*f)/v):(p=1-r,g=r),n[0]=p*i+g*l,n[1]=p*a+g*u,n[2]=p*o+g*h,n[3]=p*s+g*c,n}function EGt(n){var e=i0(),t=i0(),r=i0(),i=Math.sqrt(1-e),a=Math.sqrt(e);return n[0]=i*Math.sin(2*Math.PI*t),n[1]=i*Math.cos(2*Math.PI*t),n[2]=a*Math.sin(2*Math.PI*r),n[3]=a*Math.cos(2*Math.PI*r),n}function TGt(n,e){var t=e[0],r=e[1],i=e[2],a=e[3],o=t*t+r*r+i*i+a*a,s=o?1/o:0;return n[0]=-t*s,n[1]=-r*s,n[2]=-i*s,n[3]=a*s,n}function CGt(n,e){return n[0]=-e[0],n[1]=-e[1],n[2]=-e[2],n[3]=e[3],n}function w7e(n,e){var t=e[0]+e[4]+e[8],r;if(t>0)r=Math.sqrt(t+1),n[3]=.5*r,r=.5/r,n[0]=(e[5]-e[7])*r,n[1]=(e[6]-e[2])*r,n[2]=(e[1]-e[3])*r;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[i*3+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;r=Math.sqrt(e[i*3+i]-e[a*3+a]-e[o*3+o]+1),n[i]=.5*r,r=.5/r,n[3]=(e[a*3+o]-e[o*3+a])*r,n[a]=(e[a*3+i]+e[i*3+a])*r,n[o]=(e[o*3+i]+e[i*3+o])*r}return n}function AGt(n,e,t,r){var i=.5*Math.PI/180;e*=i,t*=i,r*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(t),l=Math.cos(t),u=Math.sin(r),h=Math.cos(r);return n[0]=a*l*h-o*s*u,n[1]=o*s*h+a*l*u,n[2]=o*l*u-a*s*h,n[3]=o*l*h+a*s*u,n}function MGt(n){return"quat("+n[0]+", "+n[1]+", "+n[2]+", "+n[3]+")"}var IGt=Q9e,LGt=e7e,Hoe=t7e,PGt=r7e,OGt=n7e,RGt=g7e,b7e=s7e,joe=c7e,DGt=f7e,Xoe=$oe,NGt=Xoe,Yoe=Woe,kGt=Yoe,qoe=h7e,FGt=d7e,BGt=v7e,GGt=function(){var n=Uoe(),e=PQ(1,0,0),t=PQ(0,1,0);return function(r,i,a){var o=Voe(i,a);return o<-.999999?(BB(n,e,i),K9e(n)<1e-6&&BB(n,t,i),Z9e(n,n),p7e(r,n,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(BB(n,i,a),r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=1+o,qoe(r,r))}}(),zGt=function(){var n=u9(),e=u9();return function(t,r,i,a,o,s){return GB(n,r,o,s),GB(e,i,a,s),GB(t,n,e,2*s*(1-s)),t}}(),UGt=function(){var n=P9e();return function(e,t,r,i){return n[0]=r[0],n[3]=r[1],n[6]=r[2],n[1]=i[0],n[4]=i[1],n[7]=i[2],n[2]=-t[0],n[5]=-t[1],n[8]=-t[2],qoe(e,w7e(e,n))}}();const VGt=Object.freeze(Object.defineProperty({__proto__:null,create:u9,identity:_Gt,setAxisAngle:p7e,getAxisAngle:xGt,getAngle:SGt,multiply:g7e,rotateX:y7e,rotateY:m7e,rotateZ:_7e,calculateW:wGt,exp:x7e,ln:S7e,pow:bGt,slerp:GB,random:EGt,invert:TGt,conjugate:CGt,fromMat3:w7e,fromEuler:AGt,str:MGt,clone:IGt,fromValues:LGt,copy:Hoe,set:PGt,add:OGt,mul:RGt,scale:b7e,dot:joe,lerp:DGt,length:Xoe,len:NGt,squaredLength:Yoe,sqrLen:kGt,normalize:qoe,exactEquals:FGt,equals:BGt,rotationTo:GGt,sqlerp:zGt,setAxes:UGt},Symbol.toStringTag,{value:"Module"}));function $Gt(){var n=new ca(8);return ca!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0,n[4]=0,n[5]=0,n[6]=0,n[7]=0),n[3]=1,n}function WGt(n){var e=new ca(8);return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e}function HGt(n,e,t,r,i,a,o,s){var l=new ca(8);return l[0]=n,l[1]=e,l[2]=t,l[3]=r,l[4]=i,l[5]=a,l[6]=o,l[7]=s,l}function jGt(n,e,t,r,i,a,o){var s=new ca(8);s[0]=n,s[1]=e,s[2]=t,s[3]=r;var l=i*.5,u=a*.5,h=o*.5;return s[4]=l*r+u*t-h*e,s[5]=u*r+h*n-l*t,s[6]=h*r+l*e-u*n,s[7]=-l*n-u*e-h*t,s}function E7e(n,e,t){var r=t[0]*.5,i=t[1]*.5,a=t[2]*.5,o=e[0],s=e[1],l=e[2],u=e[3];return n[0]=o,n[1]=s,n[2]=l,n[3]=u,n[4]=r*u+i*l-a*s,n[5]=i*u+a*o-r*l,n[6]=a*u+r*s-i*o,n[7]=-r*o-i*s-a*l,n}function XGt(n,e){return n[0]=0,n[1]=0,n[2]=0,n[3]=1,n[4]=e[0]*.5,n[5]=e[1]*.5,n[6]=e[2]*.5,n[7]=0,n}function YGt(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=0,n[5]=0,n[6]=0,n[7]=0,n}function qGt(n,e){var t=u9();G9e(t,e);var r=new ca(3);return F9e(r,e),E7e(n,t,r),n}function T7e(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n}function ZGt(n){return n[0]=0,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n[6]=0,n[7]=0,n}function KGt(n,e,t,r,i,a,o,s,l){return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n[4]=a,n[5]=o,n[6]=s,n[7]=l,n}var JGt=Hoe;function QGt(n,e){return n[0]=e[4],n[1]=e[5],n[2]=e[6],n[3]=e[7],n}var e9t=Hoe;function t9t(n,e){return n[4]=e[0],n[5]=e[1],n[6]=e[2],n[7]=e[3],n}function r9t(n,e){var t=e[4],r=e[5],i=e[6],a=e[7],o=-e[0],s=-e[1],l=-e[2],u=e[3];return n[0]=(t*u+a*o+r*l-i*s)*2,n[1]=(r*u+a*s+i*o-t*l)*2,n[2]=(i*u+a*l+t*s-r*o)*2,n}function n9t(n,e,t){var r=e[0],i=e[1],a=e[2],o=e[3],s=t[0]*.5,l=t[1]*.5,u=t[2]*.5,h=e[4],c=e[5],f=e[6],d=e[7];return n[0]=r,n[1]=i,n[2]=a,n[3]=o,n[4]=o*s+i*u-a*l+h,n[5]=o*l+a*s-r*u+c,n[6]=o*u+r*l-i*s+f,n[7]=-r*s-i*l-a*u+d,n}function i9t(n,e,t){var r=-e[0],i=-e[1],a=-e[2],o=e[3],s=e[4],l=e[5],u=e[6],h=e[7],c=s*o+h*r+l*a-u*i,f=l*o+h*i+u*r-s*a,d=u*o+h*a+s*i-l*r,v=h*o-s*r-l*i-u*a;return y7e(n,e,t),r=n[0],i=n[1],a=n[2],o=n[3],n[4]=c*o+v*r+f*a-d*i,n[5]=f*o+v*i+d*r-c*a,n[6]=d*o+v*a+c*i-f*r,n[7]=v*o-c*r-f*i-d*a,n}function a9t(n,e,t){var r=-e[0],i=-e[1],a=-e[2],o=e[3],s=e[4],l=e[5],u=e[6],h=e[7],c=s*o+h*r+l*a-u*i,f=l*o+h*i+u*r-s*a,d=u*o+h*a+s*i-l*r,v=h*o-s*r-l*i-u*a;return m7e(n,e,t),r=n[0],i=n[1],a=n[2],o=n[3],n[4]=c*o+v*r+f*a-d*i,n[5]=f*o+v*i+d*r-c*a,n[6]=d*o+v*a+c*i-f*r,n[7]=v*o-c*r-f*i-d*a,n}function o9t(n,e,t){var r=-e[0],i=-e[1],a=-e[2],o=e[3],s=e[4],l=e[5],u=e[6],h=e[7],c=s*o+h*r+l*a-u*i,f=l*o+h*i+u*r-s*a,d=u*o+h*a+s*i-l*r,v=h*o-s*r-l*i-u*a;return _7e(n,e,t),r=n[0],i=n[1],a=n[2],o=n[3],n[4]=c*o+v*r+f*a-d*i,n[5]=f*o+v*i+d*r-c*a,n[6]=d*o+v*a+c*i-f*r,n[7]=v*o-c*r-f*i-d*a,n}function s9t(n,e,t){var r=t[0],i=t[1],a=t[2],o=t[3],s=e[0],l=e[1],u=e[2],h=e[3];return n[0]=s*o+h*r+l*a-u*i,n[1]=l*o+h*i+u*r-s*a,n[2]=u*o+h*a+s*i-l*r,n[3]=h*o-s*r-l*i-u*a,s=e[4],l=e[5],u=e[6],h=e[7],n[4]=s*o+h*r+l*a-u*i,n[5]=l*o+h*i+u*r-s*a,n[6]=u*o+h*a+s*i-l*r,n[7]=h*o-s*r-l*i-u*a,n}function l9t(n,e,t){var r=e[0],i=e[1],a=e[2],o=e[3],s=t[0],l=t[1],u=t[2],h=t[3];return n[0]=r*h+o*s+i*u-a*l,n[1]=i*h+o*l+a*s-r*u,n[2]=a*h+o*u+r*l-i*s,n[3]=o*h-r*s-i*l-a*u,s=t[4],l=t[5],u=t[6],h=t[7],n[4]=r*h+o*s+i*u-a*l,n[5]=i*h+o*l+a*s-r*u,n[6]=a*h+o*u+r*l-i*s,n[7]=o*h-r*s-i*l-a*u,n}function u9t(n,e,t,r){if(Math.abs(r)0){t=Math.sqrt(t);var r=e[0]/t,i=e[1]/t,a=e[2]/t,o=e[3]/t,s=e[4],l=e[5],u=e[6],h=e[7],c=r*s+i*l+a*u+o*h;n[0]=r,n[1]=i,n[2]=a,n[3]=o,n[4]=(s-r*c)/t,n[5]=(l-i*c)/t,n[6]=(u-a*c)/t,n[7]=(h-o*c)/t}return n}function _9t(n){return"quat2("+n[0]+", "+n[1]+", "+n[2]+", "+n[3]+", "+n[4]+", "+n[5]+", "+n[6]+", "+n[7]+")"}function x9t(n,e){return n[0]===e[0]&&n[1]===e[1]&&n[2]===e[2]&&n[3]===e[3]&&n[4]===e[4]&&n[5]===e[5]&&n[6]===e[6]&&n[7]===e[7]}function S9t(n,e){var t=n[0],r=n[1],i=n[2],a=n[3],o=n[4],s=n[5],l=n[6],u=n[7],h=e[0],c=e[1],f=e[2],d=e[3],v=e[4],p=e[5],g=e[6],m=e[7];return Math.abs(t-h)<=In*Math.max(1,Math.abs(t),Math.abs(h))&&Math.abs(r-c)<=In*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(i-f)<=In*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(a-d)<=In*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(o-v)<=In*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(s-p)<=In*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(l-g)<=In*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(u-m)<=In*Math.max(1,Math.abs(u),Math.abs(m))}const w9t=Object.freeze(Object.defineProperty({__proto__:null,create:$Gt,clone:WGt,fromValues:HGt,fromRotationTranslationValues:jGt,fromRotationTranslation:E7e,fromTranslation:XGt,fromRotation:YGt,fromMat4:qGt,copy:T7e,identity:ZGt,set:KGt,getReal:JGt,getDual:QGt,setReal:e9t,setDual:t9t,getTranslation:r9t,translate:n9t,rotateX:i9t,rotateY:a9t,rotateZ:o9t,rotateByQuatAppend:s9t,rotateByQuatPrepend:l9t,rotateAroundAxis:u9t,add:h9t,multiply:C7e,mul:c9t,scale:f9t,dot:A7e,lerp:d9t,invert:v9t,conjugate:p9t,length:M7e,len:g9t,squaredLength:FU,sqrLen:y9t,normalize:m9t,str:_9t,exactEquals:x9t,equals:S9t},Symbol.toStringTag,{value:"Module"}));function I7e(){var n=new ca(2);return ca!=Float32Array&&(n[0]=0,n[1]=0),n}function b9t(n){var e=new ca(2);return e[0]=n[0],e[1]=n[1],e}function E9t(n,e){var t=new ca(2);return t[0]=n,t[1]=e,t}function T9t(n,e){return n[0]=e[0],n[1]=e[1],n}function C9t(n,e,t){return n[0]=e,n[1]=t,n}function Oh(n,e,t){return n[0]=e[0]+t[0],n[1]=e[1]+t[1],n}function L7e(n,e,t){return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n}function P7e(n,e,t){return n[0]=e[0]*t[0],n[1]=e[1]*t[1],n}function O7e(n,e,t){return n[0]=e[0]/t[0],n[1]=e[1]/t[1],n}function A9t(n,e){return n[0]=Math.ceil(e[0]),n[1]=Math.ceil(e[1]),n}function M9t(n,e){return n[0]=Math.floor(e[0]),n[1]=Math.floor(e[1]),n}function Ax(n,e,t){return n[0]=Math.min(e[0],t[0]),n[1]=Math.min(e[1],t[1]),n}function Mx(n,e,t){return n[0]=Math.max(e[0],t[0]),n[1]=Math.max(e[1],t[1]),n}function I9t(n,e){return n[0]=Math.round(e[0]),n[1]=Math.round(e[1]),n}function Gc(n,e,t){return n[0]=e[0]*t,n[1]=e[1]*t,n}function L9t(n,e,t,r){return n[0]=e[0]+t[0]*r,n[1]=e[1]+t[1]*r,n}function h9(n,e){var t=e[0]-n[0],r=e[1]-n[1];return Math.hypot(t,r)}function R7e(n,e){var t=e[0]-n[0],r=e[1]-n[1];return t*t+r*r}function D7e(n){var e=n[0],t=n[1];return Math.hypot(e,t)}function N7e(n){var e=n[0],t=n[1];return e*e+t*t}function P9t(n,e){return n[0]=-e[0],n[1]=-e[1],n}function O9t(n,e){return n[0]=1/e[0],n[1]=1/e[1],n}function SS(n,e){var t=e[0],r=e[1],i=t*t+r*r;return i>0&&(i=1/Math.sqrt(i)),n[0]=e[0]*i,n[1]=e[1]*i,n}function Zoe(n,e){return n[0]*e[0]+n[1]*e[1]}function R9t(n,e,t){var r=e[0]*t[1]-e[1]*t[0];return n[0]=n[1]=0,n[2]=r,n}function D9t(n,e,t,r){var i=e[0],a=e[1];return n[0]=i+r*(t[0]-i),n[1]=a+r*(t[1]-a),n}function N9t(n,e){e=e||1;var t=i0()*2*Math.PI;return n[0]=Math.cos(t)*e,n[1]=Math.sin(t)*e,n}function k9t(n,e,t){var r=e[0],i=e[1];return n[0]=t[0]*r+t[2]*i,n[1]=t[1]*r+t[3]*i,n}function F9t(n,e,t){var r=e[0],i=e[1];return n[0]=t[0]*r+t[2]*i+t[4],n[1]=t[1]*r+t[3]*i+t[5],n}function B9t(n,e,t){var r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n}function G9t(n,e,t){var r=e[0],i=e[1];return n[0]=t[0]*r+t[4]*i+t[12],n[1]=t[1]*r+t[5]*i+t[13],n}function z9t(n,e,t,r){var i=e[0]-t[0],a=e[1]-t[1],o=Math.sin(r),s=Math.cos(r);return n[0]=i*s-a*o+t[0],n[1]=i*o+a*s+t[1],n}function k7e(n,e){var t=n[0],r=n[1],i=e[0],a=e[1],o=Math.sqrt(t*t+r*r)*Math.sqrt(i*i+a*a),s=o&&(t*i+r*a)/o;return Math.acos(Math.min(Math.max(s,-1),1))}function U9t(n){return n[0]=0,n[1]=0,n}function V9t(n){return"vec2("+n[0]+", "+n[1]+")"}function Koe(n,e){return n[0]===e[0]&&n[1]===e[1]}function $9t(n,e){var t=n[0],r=n[1],i=e[0],a=e[1];return Math.abs(t-i)<=In*Math.max(1,Math.abs(t),Math.abs(i))&&Math.abs(r-a)<=In*Math.max(1,Math.abs(r),Math.abs(a))}var W9t=D7e,zB=L7e,H9t=P7e,j9t=O7e,X9t=h9,Y9t=R7e,q9t=N7e,Z9t=function(){var n=I7e();return function(e,t,r,i,a,o){var s,l;for(t||(t=2),r||(r=0),i?l=Math.min(i*t+r,e.length):l=e.length,s=r;s0&&d(S[0])}},m=0;m0;)f.push(l.pop());o.push(f)}}return o},z7e=function(e){for(var t=e.nodes,r=t===void 0?[]:t,i=e.edges,a=i===void 0?[]:i,o=[],s={},l={},u={},h=[],c=0,f=function g(m){l[m.id]=c,u[m.id]=c,c+=1,o.push(m),s[m.id]=!0;for(var y=cv(m.id,a,"target").filter(function(b){return r.map(function(E){return E.id}).indexOf(b)>-1}),_=function(E){var T=y[E];if(!l[T]&&l[T]!==0){var C=r.filter(function(A){return A.id===T});C.length>0&&g(C[0]),u[m.id]=Math.min(u[m.id],u[T])}else s[T]&&(u[m.id]=Math.min(u[m.id],l[T]))},x=0;x0;){var w=o.pop();if(s[w.id]=!1,S.push(w),w===m)break}S.length>0&&h.push(S)}},d=0,v=r;d0;)for(var g=d.pop(),m=g.id,y=cv(m,e.edges),_=function(w){var b,E=y[w],T=e.nodes.find(function(k){return k.id===E});if(E===m)o.push((b={},b[E]=g,b));else if(!(E in p))v[E]=g,d.push(T),p[E]=new Set([g]);else if(!p[m].has(T)){for(var C=!0,A=[T,g],M=v[m];p[E].size&&!p[E].has(M)&&(A.push(M),M!==v[M.id]);)M=v[M.id];if(A.push(M),t&&r?(C=!1,A.findIndex(function(k){return t.indexOf(k.id)>-1})>-1&&(C=!0)):t&&!r&&A.findIndex(function(k){return t.indexOf(k.id)>-1})>-1&&(C=!1),C){for(var I={},R=1;R0;){var R=I.pop();a.has(R)&&(a.delete(R),o[R.id].forEach(function(k){I.push(k)}),o[R.id].clear())}},c=function A(M,I,R){var k=!1;if(t&&r===!1&&t.indexOf(M.id)>-1)return k;i.push(M),a.add(M);for(var D=R[M.id],G=0;G-1});le-1)?s.push((I={},I[Y.id]=Y,I)):Z[Y.id].push(u[Q])}}return{component:j,adjList:Z,minIdx:k}},_=0;_=_}),S=z7e({nodes:x,edges:e.edges}).filter(function(A){return A.length>1});if(S.length===0)break;var w=y(S),b=w.minIdx,E=w.adjList,T=w.component;if(T.length>1){T.forEach(function(A){o[A.id]=new Set});var C=l[b];if(t&&r&&t.indexOf(C.id)===-1)return s;c(C,C,E),_=b+1}else break}return s},W7e=function(e,t,r,i){return i===void 0&&(i=!0),t?rse(e,r,i):tse(e,r,i)},u7t=function(e,t,r){for(var i=1/0,a,o=0;oh[x.id]+A?(h[C]=h[x.id]+A,c[C]=[x.id]):h[C]===h[x.id]+A&&c[C].push(x.id)})},v=0;v0&&h.length>0;){var d=h[h.length-1];if(d.length){var v=d.shift();v&&(l.push(v),u[v]=!0,f=i?cv(v,s,"target"):cv(v,s),h.push(f.filter(function(m){return!u[m]})))}else{var p=l.pop();u[p]=!1,h.pop();continue}if(l[l.length-1]===r){var g=l.map(function(y){return y});c.push(g);var p=l.pop();u[p]=!1,h.pop()}}return c},GD=function(e,t){for(var r=i2(e,t),i=[],a=r.length,o=0;oi[o][l]+i[l][s]&&(i[o][s]=i[o][l]+i[l][s]);return i},Y7e=function(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r="weight"),i===void 0&&(i=1e3);var a=e.nodes,o=a===void 0?[]:a,s=e.edges,l=s===void 0?[]:s,u={},h={};o.forEach(function(_,x){var S=B7e();_.clusterId=S,u[S]={id:S,nodes:[_]},h[_.id]={node:_,idx:x}});var c=i2(e,t),f={};c.forEach(function(_,x){var S=o[x].id;f[S]={},_.forEach(function(w,b){if(!!w){var E=o[b].id;f[S][E]=w}})});for(var d=0,v=function(){var x=!1;if(o.forEach(function(S){var w={};Object.keys(f[S.id]).forEach(function(R){var k=f[S.id][R],D=h[R].node,G=D.clusterId;w[G]||(w[G]=0),w[G]+=k});var b=-1/0,E=[];if(Object.keys(w).forEach(function(R){b=0&&E.splice(T,1),E&&E.length){x=!0;var C=u[S.clusterId],A=C.nodes.indexOf(S);C.nodes.splice(A,1);var M=Math.floor(Math.random()*E.length),I=u[E[M]];I.nodes.push(S),S.clusterId=I.id}}}),!x)return"break";d++};d0&&E>T&&E-TT&&(A=c.map(function(z){return{node:z,clusterId:z.clusterId}}),M=Xi(y),T=E),I||C>100)break;C++,Object.keys(y).forEach(function(z){var j=0;d.forEach(function(Z){var Y=Z.source,le=Z.target,H=_[Y].node.clusterId,Q=_[le].node.clusterId;(H===z&&Q!==z||Q===z&&H!==z)&&(j=j+(Z[r]||1))}),y[z].sumTot=j}),c.forEach(function(z,j){var Z=y[z.clusterId],Y=0,le,H=S[j]/(2*b),Q=0,ie=Z.nodes;ie.forEach(function(st){var Nt=_[st.id].idx;Q+=x[j][Nt]||0});var oe=Q-Z.sumTot*H,se=ie.filter(function(st){return st.id!==z.id});se.forEach(function(st,Nt){v[st.originIndex]});var me=TX(se,v)*u,Ce=w[z.id];if(Object.keys(Ce).forEach(function(st){var Nt=_[st].node,Zt=Nt.clusterId;if(Zt!==z.clusterId){var qe=y[Zt],ur=qe.nodes;if(!(!ur||!ur.length)){var Dt=0;ur.forEach(function(Tt){var Qe=_[Tt.id].idx;Dt+=x[j][Qe]||0});var ft=Dt-qe.sumTot*H,Oe=ur.concat([z]);Oe.forEach(function(Tt,Qe){v[Tt.originIndex]});var J=TX(Oe,v)*u,We=ft-oe;a&&(We=ft+J-(oe+me)),We>Y&&(Y=We,le=qe)}}}),Y>0){le.nodes.push(z);var Le=z.clusterId;z.clusterId=le.id;var re=Z.nodes.indexOf(z);Z.nodes.splice(re,1);var yt=0,je=0;d.forEach(function(st){var Nt=st.source,Zt=st.target,qe=_[Nt].node.clusterId,ur=_[Zt].node.clusterId;(qe===le.id&&ur!==le.id||ur===le.id&&qe!==le.id)&&(yt=yt+(st[r]||1)),(qe===Le&&ur!==Le||ur===Le&&qe!==Le)&&(je=je+(st[r]||1))}),le.sumTot=yt,Z.sumTot=je}})}var R={},k=0;Object.keys(M).forEach(function(z){var j=M[z];if(!j.nodes||!j.nodes.length){delete M[z];return}var Z=String(k+1);Z!==z&&(j.id=Z,j.nodes=j.nodes.map(function(Y){return{id:Y.id,clusterId:Z}}),M[Z]=j,R[z]=Z,delete M[z],k++)}),A.forEach(function(z){var j=z.node,Z=z.clusterId;!j||(j.clusterId=Z,j.clusterId&&R[j.clusterId]&&(j.clusterId=R[j.clusterId]))});var D=[],G={};d.forEach(function(z){var j=z.source,Z=z.target,Y=z[r]||1,le=_[j].node.clusterId,H=_[Z].node.clusterId;if(!(!le||!H)){var Q="".concat(le,"---").concat(H);if(G[Q])G[Q].weight+=Y,G[Q].count++;else{var ie={source:le,target:H,weight:Y,count:1};G[Q]=ie,D.push(ie)}}});var V=[];return Object.keys(M).forEach(function(z){V.push(M[z])}),{clusters:V,clusterEdges:D}},q7e=function(e,t,r,i,a,o,s,l){return t===void 0&&(t=!1),r===void 0&&(r="weight"),i===void 0&&(i=1e-4),a===void 0&&(a=void 0),o===void 0&&(o=[]),s===void 0&&(s=["id"]),l===void 0&&(l=1),ase(e,t,r,i,!0,a,o,s,l)},Z7e=function(e,t){var r;t===void 0&&(t=1);for(var i=Xi(e),a=i.nodes,o=a===void 0?[]:a,s=i.edges,l=s===void 0?[]:s,u=function(){var f=g_({nodes:o,edges:l}),d=Object.keys(f);d.sort(function(g,m){var y,_;return((y=f[g])===null||y===void 0?void 0:y.degree)-((_=f[m])===null||_===void 0?void 0:_.degree)});var v=d[0];if(!o.length||((r=f[v])===null||r===void 0?void 0:r.degree)>=t)return"break";var p=o.findIndex(function(g){return g.id===v});o.splice(p,1),l=l.filter(function(g){return!(g.source===v||g.target===v)})};;){var h=u();if(h==="break")break}return{nodes:o,edges:l}},uxe=function(e,t,r){var i=[];switch(e){case jg.EuclideanDistance:i=t[r];break;default:i=[];break}return i},K7e=function(e,t,r,i,a,o){t===void 0&&(t=3),r===void 0&&(r=void 0),i===void 0&&(i=[]),a===void 0&&(a=["id"]),o===void 0&&(o=jg.EuclideanDistance);var s=e.nodes,l=s===void 0?[]:s,u=e.edges,h=u===void 0?[]:u,c={clusters:[{id:"0",nodes:l}],clusterEdges:[]};if(o===jg.EuclideanDistance&&!l.every(function(Z){return Z.hasOwnProperty(r)}))return c;var f=[],d=[];if(o===jg.EuclideanDistance&&(f=nse(l,r),d=ise(f,i,a)),!d.length)return c;for(var v=kD(d.map(function(Z){return Z.join("")})),p=Math.min(t,l.length,v.length),g=0;gS&&!m.find(function(se){return HS(se,uxe(o,d,l[le].originIndex))})&&(S=oe,w=le)}},E=0;E=0;R--)_[Number(l[g].clusterId)][R].id===l[g].id&&_[Number(l[g].clusterId)].splice(R,1);l[g].clusterId=String(C),_[C].push(l[g])}}for(var k=!1,g=0;g<_.length;g++){for(var D=_[g],G=new Ip([]),M=0;M=1e3)break}var z=[],j={};return h.forEach(function(Z){var Y,le,H=Z.source,Q=Z.target,ie=(Y=l.find(function(Ce){return Ce.id===H}))===null||Y===void 0?void 0:Y.clusterId,oe=(le=l.find(function(Ce){return Ce.id===Q}))===null||le===void 0?void 0:le.clusterId,se="".concat(ie,"---").concat(oe);if(j[se])j[se].count++;else{var me={source:ie,target:oe,count:1};j[se]=me,z.push(me)}}),{clusters:_,clusterEdges:z}},ose=function(e,t){var r=new Ip(t),i=r.norm2(),a=new Ip(e),o=a.norm2(),s=r.dot(a),l=i*o,u=l?s/l:0;return u},J7e=function(e,t,r,i,a){e===void 0&&(e=[]),r===void 0&&(r=void 0),i===void 0&&(i=[]),a===void 0&&(a=[]);var o=Xi(e.filter(function(f){return f.id!==t.id})),s=e.findIndex(function(f){return f.id===t.id}),l=nse(e,r),u=ise(l,i,a),h=u[s],c=[];return o.forEach(function(f,d){if(f.id!==t.id){var v=u[d],p=ose(v,h);c.push(p),f.cosineSimilarity=p}}),o.sort(function(f,d){return d.cosineSimilarity-f.cosineSimilarity}),{allCosineSimilarity:c,similarNodes:o}},c7t=function(){function n(e){this.count=e.length,this.parent={};for(var t=0,r=e;t0&&(this.list[0]=t,this.moveDown(0)),e},n.prototype.insert=function(e){if(e!==null){this.list.push(e);var t=this.list.length-1;return this.moveUp(t),!0}return!1},n.prototype.moveUp=function(e){for(var t=this.getParent(e);e&&e>0&&this.compareFn(this.list[t],this.list[e])>0;){var r=this.list[t];this.list[t]=this.list[e],this.list[e]=r,e=t,t=this.getParent(e)}},n.prototype.moveDown=function(e){var t,r=e,i=this.getLeft(e),a=this.getRight(e),o=this.list.length;i!==null&&i0?r=i:a!==null&&a0&&(r=a),e!==r&&(t=[this.list[r],this.list[e]],this.list[e]=t[0],this.list[r]=t[1],this.moveDown(r))},n}(),v7t=function(e,t){var r=[],i=e.nodes,a=i===void 0?[]:i,o=e.edges,s=o===void 0?[]:o;if(a.length===0)return r;var l=a[0],u=new Set;u.add(l);var h=function(g,m){return t?g.weight-m.weight:0},c=new d7t(h);for(UB(l.id,s).forEach(function(p){c.insert(p)});!c.isEmpty();){var f=c.delMin(),d=f.source,v=f.target;u.has(d)&&u.has(v)||(r.push(f),u.has(d)||(u.add(d),UB(d,s).forEach(function(p){c.insert(p)})),u.has(v)||(u.add(v),UB(v,s).forEach(function(p){c.insert(p)})))}return r},hxe=function(e,t){var r=[],i=e.nodes,a=i===void 0?[]:i,o=e.edges,s=o===void 0?[]:o;if(a.length===0)return r;var l=s.map(function(d){return d});t&&l.sort(function(d,v){return d.weight-v.weight});for(var u=new c7t(a.map(function(d){return d.id}));l.length>0;){var h=l.shift(),c=h.source,f=h.target;u.connected(c,f)||(r.push(h),u.union(c,f))}return r},Q7e=function(e,t,r){var i={prim:v7t,kruskal:hxe};return r?i[r](e,t):hxe(e,t)},eze=function(e,t,r){typeof t!="number"&&(t=1e-6),typeof r!="number"&&(r=.85);for(var i=1,a=0,o=1e3,s=e.nodes,l=s===void 0?[]:s,u=e.edges,h=u===void 0?[]:u,c=l.length,f,d={},v={},p=0;p0&&i>t;){a=0;for(var p=0;p0&&(f+=v[S]/w)}d[m]=r*f,a+=d[m]}}a=(1-a)/c,i=0;for(var p=0;p=0;r--){var i=this.dfsEdgeList[r],a=i.fromNode,o=i.toNode;ad||i.hasNode(o[f.to])||(t.label_;S--){var w=x(S);if(w==="break")break}if(m){var b=e.findMinLabel(g);o.dfsEdgeList.push(new Fb(p,y,Gy,b.edgeLabel,Gy));var E=o.dfsEdgeList.length-1;return e.dfsCode.dfsEdgeList[E]!==o.dfsEdgeList[E]?!1:c(g[b.edgeLabel].projected)}var T={};m=!1;var C=0;f.forEach(function(D){var G=new i5(D),V=e.findForwardPureEdges(i,G.edges[d[0]],v,G);V.length>0&&(m=!0,C=p,V.forEach(function(z){var j="".concat(z.label,"-").concat(a[z.to].label);T[j]||(T[j]={projected:[],edgeLabel:z.label,nodeLabel2:a[z.to].label}),T[j].projected.push({graphId:i.id,edge:z,preNode:D})}))});for(var A=d.length,M=function(G){if(m)return"break";var V=d[G];f.forEach(function(z){var j=new i5(z),Z=e.findForwardRmpathEdges(i,j.edges[V],v,j);Z.length>0&&(m=!0,C=o.dfsEdgeList[V].fromNode,Z.forEach(function(Y){var le="".concat(Y.label,"-").concat(a[Y.to].label);T[le]||(T[le]={projected:[],edgeLabel:Y.label,nodeLabel2:a[Y.to].label}),T[le].projected.push({graphId:i.id,edge:Y,preNode:z})}))})},S=0;S=0;v--){var p=t.findBackwardEdge(c,d.edges[a[v]],d.edges[a[0]],d);if(p){var g="".concat(t.dfsCode.dfsEdgeList[a[v]].fromNode,"-").concat(p.label);u[g]||(u[g]={projected:[],toNodeId:t.dfsCode.dfsEdgeList[a[v]].fromNode,edgeLabel:p.label}),u[g].projected.push({graphId:h.graphId,edge:p,preNode:h})}}if(!(i>=t.maxNodeNum)){var m=t.findForwardPureEdges(c,d.edges[a[0]],s,d);m.forEach(function(_){var x="".concat(o,"-").concat(_.label,"-").concat(f[_.to].label);l[x]||(l[x]={projected:[],fromNodeId:o,edgeLabel:_.label,nodeLabel2:f[_.to].label}),l[x].projected.push({graphId:h.graphId,edge:_,preNode:h})});for(var y=function(x){var S=t.findForwardRmpathEdges(c,d.edges[a[x]],s,d);S.forEach(function(w){var b="".concat(t.dfsCode.dfsEdgeList[a[x]].fromNode,"-").concat(w.label,"-").concat(f[w.to].label);l[b]||(l[b]={projected:[],fromNodeId:t.dfsCode.dfsEdgeList[a[x]].fromNode,edgeLabel:w.label,nodeLabel2:f[w.to].label}),l[b].projected.push({graphId:h.graphId,edge:w,preNode:h})})},v=0;vy){var _=y;y=m,m=_}var x=g.label,S="".concat(m,"-").concat(x,"-").concat(y);if(!o[S]){var w=o[S]||0;w++,o[S]=w}})})}),Object.keys(a).forEach(function(l){var u=a[l];if(!(u2*t)););if(g<2*t&&(s["".concat(h,"-").concat(p)]={start:h,end:p,distance:a[h][p]},c++,l++,l>=r))return s;if(f++,f>2*t)break}if(cf&&(l=f);var d=r[c.id].inDegree;u>d&&(u=d);var v=r[c.id].outDegree;h>v&&(h=v)}),e[t]={degree:l,inDegree:u,outDegree:h}),{minPatternNodeLabelDegree:l,minPatternNodeLabelInDegree:u,minPatternNodeLabelOutDegree:h}},aze=function(e,t,r,i,a,o,s){var l;if(r===void 0&&(r=!1),o===void 0&&(o="cluster"),s===void 0&&(s="cluster"),!(!e||!e.nodes)){var u=e.nodes.length;if(!!u){var h=GD(e,r),c=GD(t,r),f=yxe(e.nodes,h,r),d=yxe(t.nodes,c,r),v=pxe(e.nodes,o),p=v.nodeMap,g=v.nodeLabelMap,m=pxe(t.nodes,o),y=m.nodeMap,_=m.nodeLabelMap;gxe(e.edges,s,p);var x=gxe(t.edges,s,y).edgeLabelMap,S=[];c==null||c.forEach(function(ft){S=S.concat(ft)}),a||(a=Math.max.apply(Math,_v(_v([],S,!1),[2],!1))),i||(i=a);var w=vxe(e,h,o,i),b=vxe(t,c,o,i),E=Math.min(100,u*(u-1)/2),T=S7t(i,u,E,w,h),C=VB(T,w,e),A=10,M=1,I=1,R=4,k={graphs:C,nodeLabelProp:o,edgeLabelProp:s,minSupport:M,minNodeNum:I,maxNodeNum:R,directed:r},D=x7t(k).slice(0,A),G=D.length,V=[];D.forEach(function(ft,Oe){V[Oe]={},Object.keys(C).forEach(function(J){var We=C[J],Tt=$B(We,ft,o,s);V[Oe][J]=Tt})});var z=w7t(V,G,D),j=z.structure,Z=z.structureCountMap,Y=t.nodes[0],le=[],H=(l=t.nodes[0])===null||l===void 0?void 0:l[o],Q=-1/0;t.nodes.forEach(function(ft){var Oe=ft[o],J=g[Oe];(J==null?void 0:J.length)>Q&&(Q=J.length,le=J,H=Oe,Y=ft)});var ie={},oe={},se={},me={},Ce={},Le={};Object.keys(_).forEach(function(ft,Oe){Ce[ft]=[],r&&(Le[ft]=[]);var J=_[ft],We={};J.forEach(function(wt){var pt=d["".concat(Y.id,"-").concat(wt.id)];if(pt&&Ce[ft].push(pt),We["".concat(Y.id,"-").concat(wt.id)]={start:0,end:y[wt.id].idx,distance:pt},r){var ar=d["".concat(wt.id,"-").concat(Y.id)];ar&&Le[ft].push(ar)}}),Ce[ft]=Ce[ft].sort(function(wt,pt){return wt-pt}),r&&(Le[ft]=Le[ft].sort(function(wt,pt){return wt-pt})),oe=VB(We,b,t,oe);var Tt=[];if(Object.keys(We).forEach(function(wt){if(se[wt]){Tt.push(se[wt]);return}var pt=oe[wt];se[wt]=$B(pt,j,o,s),Tt.push(se[wt])}),Tt=Tt.sort(function(wt,pt){return pt-wt}),me["".concat(Y.id,"-").concat(ft)]=Tt,ft!==H)for(var Qe=(le==null?void 0:le.length)||0,zt=function(pt){var ar=le[pt],kt=w[p[ar.id].idx],Dr=kt.nodeLabelCountMap[ft],Sr=_[ft].length;if(!Dr||Dr.countCe[ft][pn]){jr=!0;break}if(jr)return le.splice(pt,1),"continue";var Jn={};kt.neighbors.forEach(function(yn){var Oi=f["".concat(ar.id,"-").concat(yn.id)];Jn["".concat(ar.id,"-").concat(yn.id)]={start:p[ar.id].idx,end:p[yn.id].idx,distance:Oi}}),C=VB(Jn,w,e,C);var Rn=[];Object.keys(Jn).forEach(function(yn){if(Z[yn]){Rn.push(Z[yn]);return}var Oi=C[yn];Z[yn]=$B(Oi,j,o,s),Rn.push(Z[yn])}),Rn=Rn.sort(function(yn,Oi){return Oi-yn});for(var hi=!1,pn=0;pn=0;mt--)zt(mt)});var re=[];le==null||le.forEach(function(ft){for(var Oe=p[ft.id].idx,J=ize(e.nodes,h[Oe],Oe,o,a),We=J.neighbors,Tt=We.length,Qe=!1,zt=Tt-1;zt>=0;zt--){if(We.length+1Dr){We.splice(zt,1);continue}if(r){var Sr="".concat(mt.id,"-").concat(ft.id),jr=f[Sr];kt=Le[wt].length-1;var pn=Le[wt][kt];if(jr>pn){We.splice(zt,1);continue}}var Jn=Z[pt]?Z[pt]:b7t(e,ft,mt,p,ar,w,j,o,s,Z,C),Rn="".concat(Y.id,"-").concat(wt),hi=me[Rn][me[Rn].length-1];if(Jn=0;ar--){var pn=jr(ar);if(pn==="break")break}if(Sr)return re.splice(Oe,1),"continue";J.edges=zt;var Jn=BD(J,J.nodes[0].id,!1).length;if(Object.keys(Jn).reverse().forEach(function(ue){if(!(ue===J.nodes[0].id||Sr)){if(Jn[ue]===1/0){var xe=Qe[ue].node[o];if(Tt[xe]--,Tt[xe]<_[xe].length){Sr=!0;return}var ce=J.nodes.indexOf(Qe[ue].node);J.nodes.splice(ce,1),Qe[ue]=void 0;return}var pe=p[ue].node[o];if(!je[pe]||!je[pe].length||Jn[ue]>je[pe][je[pe].length-1]){var xe=Qe[ue].node[o];if(Tt[xe]--,Tt[xe]<_[xe].length){Sr=!0;return}var ce=J.nodes.indexOf(Qe[ue].node);J.nodes.splice(ce,1),Qe[ue]=void 0}}}),Sr)return re.splice(Oe,1),"continue";for(var Rn=!0,hi=0;Rn&&!Sr;){Rn=!1;var yn=r?Qe[We.id].degree=0;oi--){var Gi=J.nodes[oi],ws=Qe[Gi.id].degree,xl=Qe[Gi.id].inDegree,Os=Qe[Gi.id].outDegree,no=Gi[o],vo=mxe(ie,no,y,_),No=vo.minPatternNodeLabelDegree,Ko=vo.minPatternNodeLabelInDegree,Lo=vo.minPatternNodeLabelOutDegree,hs=r?ws=0;Rs--){var Pn=zt[Rs];if(!Qe[Pn.source]||!Qe[Pn.target]){zt.splice(Rs,1);var mo=Pn[s];if(mt[mo]--,Qe[Pn.source]&&(Qe[Pn.source].degree--,Qe[Pn.source].outDegree--),Qe[Pn.target]&&(Qe[Pn.target].degree--,Qe[Pn.target].inDegree--),x[mo]&&mt[mo]=0;Zt--){var qe=Nt(Zt);if(qe==="break")break}for(var ur=re.length,Dt=function(Oe){var J=re[Oe],We={};J.edges.forEach(function(zt){var mt="".concat(zt.source,"-").concat(zt.target,"-").concat(zt.label);We[mt]?We[mt]++:We[mt]=1});for(var Tt=function(mt){var wt=re[mt],pt={};wt.edges.forEach(function(kt){var Dr="".concat(kt.source,"-").concat(kt.target,"-").concat(kt.label);pt[Dr]?pt[Dr]++:pt[Dr]=1});var ar=!0;Object.keys(pt).length!==Object.keys(We).length?ar=!1:Object.keys(We).forEach(function(kt){pt[kt]!==We[kt]&&(ar=!1)}),ar&&re.splice(mt,1)},Qe=ur-1;Qe>Oe;Qe--)Tt(Qe);ur=re.length},Zt=0;Zt<=ur-1;Zt++)Dt(Zt);return re}}},pA=function(){function n(e){e===void 0&&(e=10),this.linkedList=new F7e,this.maxStep=e}return Object.defineProperty(n.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),n.prototype.isEmpty=function(){return!this.linkedList.head},n.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},n.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},n.prototype.push=function(e){this.linkedList.prepend(e),this.length>this.maxStep&&this.linkedList.deleteTail()},n.prototype.pop=function(){var e=this.linkedList.deleteHead();return e?e.value:null},n.prototype.toArray=function(){return this.linkedList.toArray().map(function(e){return e.value})},n.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},n}(),oze=ese;const E7t={getAdjMatrix:i2,breadthFirstSearch:G7e,connectedComponent:Joe,getDegree:g_,getInDegree:U7e,getOutDegree:V7e,detectCycle:ese,detectDirectedCycle:oze,detectAllCycles:W7e,detectAllDirectedCycle:rse,detectAllUndirectedCycle:tse,depthFirstSearch:Qoe,dijkstra:BD,findAllPath:X7e,findShortestPath:j7e,floydWarshall:GD,labelPropagation:Y7e,louvain:ase,iLouvain:q7e,kCore:Z7e,kMeans:K7e,cosineSimilarity:ose,nodesCosineSimilarity:J7e,minimumSpanningTree:Q7e,pageRank:eze,getNeighbors:cv,Stack:pA,GADDI:aze},T7t=Object.freeze(Object.defineProperty({__proto__:null,getAdjMatrix:i2,breadthFirstSearch:G7e,connectedComponent:Joe,getDegree:g_,getInDegree:U7e,getOutDegree:V7e,detectCycle:ese,detectDirectedCycle:oze,detectAllCycles:W7e,detectAllDirectedCycle:rse,detectAllUndirectedCycle:tse,depthFirstSearch:Qoe,dijkstra:BD,findAllPath:X7e,findShortestPath:j7e,floydWarshall:GD,labelPropagation:Y7e,louvain:ase,iLouvain:q7e,kCore:Z7e,kMeans:K7e,cosineSimilarity:ose,nodesCosineSimilarity:J7e,minimumSpanningTree:Q7e,pageRank:eze,getNeighbors:cv,Stack:pA,GADDI:aze,default:E7t},Symbol.toStringTag,{value:"Module"}));var f9=sg,C7t=function(e){return function(t,r){return t[e]-r[e]}},_xe=function(e,t,r){return e>=t&&e<=r},BU=function(e,t,r,i){var a=1e-4,o={x:r.x-e.x,y:r.y-e.y},s={x:t.x-e.x,y:t.y-e.y},l={x:i.x-r.x,y:i.y-r.y},u=s.x*l.y-s.y*l.x,h=u*u,c=1/u,f=s.x*s.x+s.y*s.y,d=l.x*l.x+l.y*l.y;if(h>a*f*d){var v=(o.x*l.y-o.y*l.x)*c,p=(o.x*s.y-o.y*s.x)*c;return!_xe(v,0,1)||!_xe(p,0,1)?null:{x:e.x+v*s.x,y:e.y+v*s.y}}return null},sze=function(e,t){var r=e.x,i=e.y,a=e.width,o=e.height,s=r+a/2,l=i+o/2,u=[],h={x:s,y:l};u.push({x:r,y:i}),u.push({x:r+a,y:i}),u.push({x:r+a,y:i+o}),u.push({x:r,y:i+o}),u.push({x:r,y:i});for(var c=null,f=1;ft[i][o]+t[o][a]&&(t[i][a]=t[i][o]+t[o][a]);return t},I7t=function(e,t){var r=e.nodes,i=e.edges,a=[],o={};if(!r)throw new Error("invalid nodes data!");return r&&r.forEach(function(s,l){o[s.id]=l;var u=[];a.push(u)}),i&&i.forEach(function(s){var l=s.source,u=s.target,h=o[l],c=o[u];a[h][c]=1,t||(a[c][h]=1)}),a},cze=function(e,t){e.translate(t.x,t.y)},RQ=function(e,t,r,i){i===void 0&&(i={duration:500});var a=e.getMatrix();a||(a=[1,0,0,0,1,0,0,0,1]);var o=e.getCanvasBBox(),s=t.x-o.minX,l=t.y-o.minY;if(r){var u=s*a[0],h=l*a[4],c=0,f=0,d=0,v=0;e.animate(function(g){return d=u*g,v=h*g,a=f9(a,[["t",d-c,v-f]]),c=d,f=v,{matrix:a}},i)}else{var p=f9(a,[["t",s,l]]);e.setMatrix(p)}},L7t=function(e,t){var r=e.getMatrix();r||(r=[1,0,0,0,1,0,0,0,1]);var i=t;vn(t)||(i=[t,t]),vn(t)&&t.length===1&&(i=[t[0],t[0]]),r=f9(r,[["s",i[0],i[1]]]),e.setMatrix(r)},P7t=function(e,t){var r=e.getMatrix();r||(r=[1,0,0,0,1,0,0,0,1]),r=f9(r,[["r",t]]),e.setMatrix(r)},O7t=function(e,t,r){for(var i=[],a=0;a0!=s(h[1]-r)>0&&s(t-(r-u[1])*(u[0]-h[0])/(u[1]-h[1])-u[0])<0&&(i=!i)}return i},fze=function(e,t){return!(t.minX>e.maxX||t.maxXe.maxY||t.maxY1){var y=f[0],_=f[v-1];d.push({from:{x:_[0],y:_[1]},to:{x:y[0],y:y[1]}})}return d};if(e.length<2||t.length<2)return!1;var a=r(e),o=r(t);if(!fze(a,o))return!1;var s=!1;if(At(t,function(c){if(zD(e,c[0],c[1]))return s=!0,!1}),s||(At(e,function(c){if(zD(t,c[0],c[1]))return s=!0,!1}),s))return!0;var l=i(e),u=i(t),h=!1;return At(u,function(c){if(D7t(l,c))return h=!0,!1}),h},a2=function(){function n(e,t,r,i){this.x1=e,this.y1=t,this.x2=r,this.y2=i}return n.prototype.getBBox=function(){var e=Math.min(this.x1,this.x2),t=Math.min(this.y1,this.y2),r=Math.max(this.x1,this.x2),i=Math.max(this.y1,this.y2),a={x:e,y:t,minX:e,minY:t,maxX:r,maxY:i,width:r-e,height:i-t};return a},n}(),sse=function(e,t){var r={top:[e.minX,e.minY,e.maxX,e.minY],left:[e.minX,e.minY,e.minX,e.maxY],bottom:[e.minX,e.maxY,e.maxX,e.maxY],right:[e.maxX,e.minY,e.maxX,e.maxY]};return r[t]},N7t=function(e,t){var r=(t.x2-t.x1)*(e.y1-t.y1)-(t.y2-t.y1)*(e.x1-t.x1),i=(e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1),a=(t.y2-t.y1)*(e.x2-e.x1)-(t.x2-t.x1)*(e.y2-e.y1);if(a){var o=r/a,s=i/a;if(o>=0&&o<=1&&s>=0&&s<=1)return o}return Number.POSITIVE_INFINITY},vze=function(e,t){for(var r=["top","left","bottom","right"],i=e.getBBox(),a=0,o=[],s=0;s<4;s++){var l=sse(i,r[s]),u=l[0],h=l[1],c=l[2],f=l[3];o[s]=BU({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},{x:u,y:h},{x:c,y:f}),o[s]&&(a+=1)}return[o,a]},lse=function(e,t){for(var r=["top","left","bottom","right"],i=e.getBBox(),a=Number.POSITIVE_INFINITY,o=0,s=0;s<4;s++){var l=sse(i,r[s]),u=l[0],h=l[1],c=l[2],f=l[3],d=N7t(t,new a2(u,h,c,f));d=Math.abs(d-.5),d>=0&&d<=1&&(o+=1,a=d0){for(var i=0,a=e;it.x+t.width,a=e.y>t.y+t.height,o=e.y":.604998779296875,"/":.5,"?":.53699951171875};var _y=Math.PI,kQ=Math.sin,FQ=Math.cos,bh=kQ(_y/8),Eh=FQ(_y/8),p9=function(e,t){var r=e.getBBox(),i={x:r.minX,y:r.minY},a={x:r.maxX,y:r.maxY};if(t){var o=t.getMatrix();o||(o=[1,0,0,0,1,0,0,0,1]),i=VA(i,o),a=VA(a,o)}var s=i.x,l=i.y,u=a.x,h=a.y;return{x:s,y:l,minX:s,minY:l,maxX:u,maxY:h,width:u-s,height:h-l}},_ze=function(e){var t=e.sourceNode||e.targetNode,r=t.get("group"),i=r.getMatrix();i||(i=[1,0,0,0,1,0,0,0,1]);var a=t.getKeyShape(),o=a.getBBox(),s=e.loopCfg||{},l=s.dist||Math.max(o.width,o.height)*2,u=s.position||tn.defaultLoopPosition,h=[(o.minX+o.maxX)/2+i[6],(o.minY+o.maxY)/2+i[7]],c=[e.startPoint.x,e.startPoint.y],f=[e.endPoint.x,e.endPoint.y],d=o.height/2,v=o.width/2,p=d,g=d,m=p*bh,y=p*Eh,_=g*bh,x=g*Eh,S=a.get("type"),w=Math.min(d/2,v/2),b=Math.min(d,v),E=s!=null&&s.pointPadding?Math.min(b,s==null?void 0:s.pointPadding):w;if(c[0]===f[0]&&c[1]===f[1]){switch(u){case"top":S==="circle"?(c=[h[0]-m,h[1]-y],f=[h[0]+_,h[1]-x]):(c=[h[0]-E,h[1]-d],f=[h[0]+E,h[1]-d]);break;case"top-right":p=d,g=v,S==="circle"?(m=p*bh,y=p*Eh,_=g*bh,x=g*Eh,c=[h[0]+m,h[1]-y],f=[h[0]+x,h[1]-_]):(c=[h[0]+v-E,h[1]-d],f=[h[0]+v,h[1]-d+E]);break;case"right":p=v,g=v,S==="circle"?(m=p*bh,y=p*Eh,_=g*bh,x=g*Eh,c=[h[0]+y,h[1]-m],f=[h[0]+x,h[1]+_]):(c=[h[0]+v,h[1]-E],f=[h[0]+v,h[1]+E]);break;case"bottom-right":p=v,g=d,S==="circle"?(m=p*bh,y=p*Eh,_=g*bh,x=g*Eh,c=[h[0]+y,h[1]+m],f=[h[0]+_,h[1]+x]):(c=[h[0]+v,h[1]+d-E],f=[h[0]+v-E,h[1]+d]);break;case"bottom":p=d,g=d,S==="circle"?(m=p*bh,y=p*Eh,_=g*bh,x=g*Eh,c=[h[0]+m,h[1]+y],f=[h[0]-_,h[1]+x]):(c=[h[0]-E,h[1]+d],f=[h[0]+E,h[1]+d]);break;case"bottom-left":p=d,g=v,S==="circle"?(m=p*bh,y=p*Eh,_=g*bh,x=g*Eh,c=[h[0]-m,h[1]+y],f=[h[0]-x,h[1]+_]):(c=[h[0]-v,h[1]+d-E],f=[h[0]-v+E,h[1]+d]);break;case"left":p=v,g=v,S==="circle"?(m=p*bh,y=p*Eh,_=g*bh,x=g*Eh,c=[h[0]-y,h[1]+m],f=[h[0]-x,h[1]-_]):(c=[h[0]-v,h[1]-E],f=[h[0]-v,h[1]+E]);break;case"top-left":p=v,g=d,S==="circle"?(m=p*bh,y=p*Eh,_=g*bh,x=g*Eh,c=[h[0]-y,h[1]-m],f=[h[0]-_,h[1]-x]):(c=[h[0]-v+E,h[1]-d],f=[h[0]-v,h[1]-d+E]);break;default:p=v,g=v,m=p*bh,y=p*Eh,_=g*bh,x=g*Eh,c=[h[0]-m,h[1]-y],f=[h[0]+_,h[1]-x]}if(s.clockwise===!1){var T=[c[0],c[1]];c=[f[0],f[1]],f=[T[0],T[1]]}}var C=[c[0]-h[0],c[1]-h[1]],A=(p+l)/p,M=(g+l)/g;s.clockwise===!1&&(A=(g+l)/g,M=(p+l)/p);var I=Gc([0,0],C,A),R=[h[0]+I[0],h[1]+I[1]],k=[f[0]-h[0],f[1]-h[1]],D=Gc([0,0],k,M),G=[h[0]+D[0],h[1]+D[1]];return e.startPoint={x:c[0],y:c[1]},e.endPoint={x:f[0],y:f[1]},e.controlPoints=[{x:R[0],y:R[1]},{x:G[0],y:G[1]}],e},xze=function(e,t,r,i,a){var o=1e-4,s=[],l=e==null?void 0:e.getPoint(t);if(!l)return{x:0,y:0,angle:0};if(t1-o)s=e.getEndTangent();else{var u=e==null?void 0:e.getPoint(t+o);s.push([l.x,l.y]),s.push([u.x,u.y])}var h=Math.atan2(s[1][1]-s[0][1],s[1][0]-s[0][0]);if(h<0&&(h+=_y*2),r&&(l.x+=FQ(h)*r,l.y+=kQ(h)*r),i){var c=h-_y/2;h>1/2*_y&&h<3*1/2*_y&&(c-=_y),l.x+=FQ(c)*i,l.y+=kQ(c)*i}var f={x:l.x,y:l.y,angle:h};return a?(h>.5*_y&&h<1.5*_y&&(h-=_y),ve({rotate:h},f)):f},$7t=function n(e,t,r,i){if(i(e,t,r)===!1)return!1;if(e&&e.children){for(var a=e.children.length-1;a>=0;a--)if(!n(e.children[a],e,a,i))return!1}return!0},W7t=function n(e,t,r,i){if(e&&e.children){for(var a=e.children.length-1;a>=0;a--)if(!n(e.children[a],e,a,i))return}return i(e,t,r)!==!1},Fc=function(e,t){typeof t=="function"&&$7t(e,null,-1,t)},xy=function(e,t){typeof t=="function"&&W7t(e,null,-1,t)},Sze=function(e,t){return t*(V7t[e]||1)},wze=function(e,t){var r=0,i=new RegExp("[\u4E00-\u9FA5]+");return e.split("").forEach(function(a){i.test(a)?r+=t:r+=Sze(a,t)}),[r,t]},bze=function(e,t){return typeof t!="number"||t<=0||t>=e.length?e:e.substring(0,t)+"..."},BQ=function(e,t){var r=[],i={},a={};e.forEach(function(l){a[l.id]=l}),e.forEach(function(l,u){var h=Xi(l);h.itemType="combo",h.children=void 0,h.parentId===h.id?(console.warn("The parentId for combo ".concat(h.id," can not be the same as the combo's id")),delete h.parentId):h.parentId&&!a[h.parentId]&&(console.warn("The parent combo for combo ".concat(h.id," does not exist!")),delete h.parentId);var c=i[h.id];if(c){if(h.children=c.children,i[h.id]=h,c=h,!c.parentId){r.push(c);return}var f=i[c.parentId];if(f)f.children?f.children.push(h):f.children=[h];else{var d={id:c.parentId,children:[c]};i[c.parentId]=d,i[h.id]=h}return}if(rr(l.parentId)){var v=i[l.parentId];if(v)v.children?v.children.push(h):v.children=[h],i[h.id]=h;else{var p={id:l.parentId,children:[h]};i[p.id]=p,i[h.id]=h}}else r.push(h),i[h.id]=h});var o={};(t||[]).forEach(function(l){o[l.id]=l;var u=i[l.comboId];if(u){var h={id:l.id,comboId:l.comboId};u.children?u.children.push(h):u.children=[h],h.itemType="node",i[l.id]=h}});var s=0;return r.forEach(function(l){l.depth=s+10,Fc(l,function(u){var h,c=i[u.id].itemType;c==="node"?h=i[u.comboId]:h=i[u.parentId],h&&c==="node"?u.depth=s+1:u.depth=s+10,s-1&&a.splice(h,1),l||(o={id:t,itemType:"node",comboId:r},s[t]={children:void 0}),t){var c=!1;if(r){var f=0;(e||[]).forEach(function(v){c||Fc(v,function(p){return r===p.id?(c=!0,p.children?p.children.push(o):p.children=[o],f=p.depth,o.itemType==="node"?o.depth=f+2:o.depth=f+1,!1):!0})})}else(!r||!c)&&o.itemType!=="node"&&e.push(o);var d=o.depth;Fc(o,function(v){return v.itemType==="node"?d+=2:d+=1,v.depth=d,!0})}return e},WB=function(e,t,r){var i={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,x:void 0,y:void 0,width:void 0,height:void 0,centerX:void 0,centerY:void 0};if(!e||e.length===0){var a=r==null?void 0:r.getModel(),o=a||{},s=o.x,l=o.y,u=o.fixSize,h=o.collapsed,c=o.fixCollapseSize,f=h?c:u,d=vn(f)?f:[f,f],v=d[0],p=d[1],g=[v/2,p/2];return{minX:s-g[0],minY:l-g[1],maxX:s+g[0],maxY:l+g[1],x:s,y:l,width:v,height:p}}return e.forEach(function(m){var y=t.findById(m.id);if(!(!y||!y.isVisible())){y.set("bboxCanvasCache",void 0);var _=y.getCanvasBBox();_.x&&i.minX>_.minX&&(i.minX=_.minX),_.y&&i.minY>_.minY&&(i.minY=_.minY),_.x&&i.maxX<_.maxX&&(i.maxX=_.maxX),_.y&&i.maxY<_.maxY&&(i.maxY=_.maxY)}}),i.x=(i.minX+i.maxX)/2,i.y=(i.minY+i.maxY)/2,i.width=i.maxX-i.minX,i.height=i.maxY-i.minY,i.centerX=(i.minX+i.maxX)/2,i.centerY=(i.minY+i.maxY)/2,(r==null?void 0:r.getKeyShape().get("type"))==="circle"&&(i.width=Math.hypot(i.height,i.width),i.height=i.width),Object.keys(i).forEach(function(m){(i[m]===1/0||i[m]===-1/0)&&(i[m]=void 0)}),i},H7t=function(e){var t=on(e.x)||on(e.y)||e.type||e.anchorPoints||e.size;return e.style&&(t=t||on(e.style.r)||on(e.style.width)||on(e.style.height)||on(e.style.rx)||on(e.style.ry)),t},HB=function(e){var t={};return Object.keys(e).forEach(function(r){var i=e[r];if(!(r==="img"&&!rr(i)))if(Wh(i)&&!vn(i)){var a={};Object.keys(i).forEach(function(o){var s=i[o];o==="img"&&!rr(s)||(a[o]=Xi(s))}),t[r]=a}else t[r]=Xi(i)}),t},UD=function(e){var t=e.animateCfg,r=e.callback,i;if(!t)i={duration:500,callback:r};else if(i=Xi(t),t.callback){var a=t.callback;i.callback=function(){r(),a()}}else i.callback=r;return i};const j7t=Object.freeze(Object.defineProperty({__proto__:null,getBBox:p9,getLoopCfgs:_ze,getLabelPosition:xze,traverseTree:Fc,traverseTreeUp:xy,getLetterWidth:Sze,getTextSize:wze,truncateLabelByLength:bze,plainCombosToTrees:BQ,reconstructTree:GQ,getComboBBox:WB,shouldRefreshEdge:H7t,cloneBesidesImg:HB,getAnimateCfgWithCallback:UD},Symbol.toStringTag,{value:"Module"}));var Exe=function(e){if(!e)return console.error("G6 Error Tips: the data must be defined"),!1;var t=e.nodes,r=e.edges,i=e.combos,a=i===void 0?[]:i;if(!t&&!r){var o=!0;return Fc(e,function(f){return rr(f.id)?!0:(o=!1,!1)}),o}var s=(t||[]).find(function(f){return!rr(f.id)});if(s)return console.warn("G6 Warning Tips: missing 'id' property, or %c".concat(s.id,"%c is not a string."),"font-size: 20px; color: red;",""),!1;var l=(t||[]).map(function(f){return f.id}),u=a==null?void 0:a.map(function(f){return f.id}),h=_v(_v([],l,!0),u,!0),c=(r||[]).find(function(f){return!h.includes(f.source)||!h.includes(f.target)});return c?(console.warn("G6 Warning Tips: The source %c".concat(c.source,"%c or the target %c").concat(c.target,"%c of the edge do not exist in the nodes or combos."),"font-size: 20px; color: red;","","font-size: 20px; color: red;",""),!1):!0},X7t=function(e,t){if(e==="node"||e==="combo"){if(t.id&&!rr(t.id))return console.warn("G6 Warning Tips: missing 'id' property, or the 'id' %c".concat(t.id,"%c is not a string."),"font-size: 20px; color: red;",""),!1}else if(e==="edge"&&(!t.source||!t.target))return console.warn("G6 Warning Tips: missing 'source' or 'target' for the edge."),!1;return!0},Y7t=function(){function n(e){this.graph=e,this.destroyed=!1,this.modes=e.get("modes")||{default:[]},this.formatModes(),this.mode=e.get("defaultMode")||"default",this.currentBehaves=[],this.setMode(this.mode)}return n.prototype.formatModes=function(){var e=this.modes;At(e,function(t){At(t,function(r,i){rr(r)&&(t[i]={type:r})})})},n.prototype.setBehaviors=function(e){var t=this.graph,r=this.modes[e],i=[],a;At(r||[],function(o){var s=koe.getBehavior(o.type||o);!s||(a=new s(o),a&&(a.bind(t),i.push(a)))}),this.currentBehaves=i},n.mergeBehaviors=function(e,t){return At(t,function(r){e.indexOf(r)<0&&(rr(r)&&(r={type:r}),e.push(r))}),e},n.filterBehaviors=function(e,t){var r=[];return e.forEach(function(i){var a="";rr(i)?a=i:a=i.type,t.indexOf(a)<0&&r.push(i)}),r},n.prototype.setMode=function(e){var t=this,r=t.modes,i=t.graph,a=e,o=r[a];!o||(i.emit("beforemodechange",{mode:e}),At(this.currentBehaves,function(s){s.delegate&&s.delegate.remove(),s.unbind(i)}),this.setBehaviors(a),i.emit("aftermodechange",{mode:e}),this.mode=e)},n.prototype.getMode=function(){return this.mode},n.prototype.manipulateBehaviors=function(e,t,r){var i=this,a;if(vn(e)?a=e:a=[e],vn(t))return At(t,function(s){i.modes[s]?r?i.modes[s]=n.mergeBehaviors(i.modes[s]||[],a):i.modes[s]=n.filterBehaviors(i.modes[s]||[],a):r&&(i.modes[s]=a)}),this;var o=t;return t||(o=this.mode),this.modes[o]||r&&(this.modes[o]=a),r?this.modes[o]=n.mergeBehaviors(this.modes[o]||[],a):this.modes[o]=n.filterBehaviors(this.modes[o]||[],a),this.formatModes(),this.setMode(this.mode),this},n.prototype.updateBehavior=function(e,t,r){rr(e)&&(e={type:e});var i=[];if(!r||r===this.mode||r==="default"){if(i=this.currentBehaves,!i||!i.length)return console.warn("Update behavior failed! There is no behaviors in this mode on the graph."),this;for(var a=i.length,o=0;o2&&(t.push([i].concat(o.splice(0,2))),s="l",i=i==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([i,o[0]]),s==="r")t.push([i].concat(o));else for(;o.length>=e[s]&&(t.push([i].concat(o.splice(0,e[s]))),!!e[s]););return n}),t},zQ=function(n,e){for(var t=[],r=0,i=n.length;i-2*!e>r;r+=2){var a=[{x:+n[r-2],y:+n[r-1]},{x:+n[r],y:+n[r+1]},{x:+n[r+2],y:+n[r+3]},{x:+n[r+4],y:+n[r+5]}];e?r?i-4===r?a[3]={x:+n[0],y:+n[1]}:i-2===r&&(a[2]={x:+n[0],y:+n[1]},a[3]={x:+n[2],y:+n[3]}):a[0]={x:+n[i-2],y:+n[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+n[r],y:+n[r+1]}),t.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return t},s5=function(n,e,t,r,i){var a=[];if(i===null&&r===null&&(r=t),n=+n,e=+e,t=+t,r=+r,i!==null){var o=Math.PI/180,s=n+t*Math.cos(-r*o),l=n+t*Math.cos(-i*o),u=e+t*Math.sin(-r*o),h=e+t*Math.sin(-i*o);a=[["M",s,u],["A",t,t,0,+(i-r>180),0,l,h]]}else a=[["M",n,e],["m",0,-r],["a",t,r,0,1,1,0,2*r],["a",t,r,0,1,1,0,-2*r],["z"]];return a},UQ=function(n){if(n=gA(n),!n||!n.length)return[["M",0,0]];var e=[],t=0,r=0,i=0,a=0,o=0,s,l;n[0][0]==="M"&&(t=+n[0][1],r=+n[0][2],i=t,a=r,o++,e[0]=["M",t,r]);for(var u=n.length===3&&n[0][0]==="M"&&n[1][0].toUpperCase()==="R"&&n[2][0].toUpperCase()==="Z",h=void 0,c=void 0,f=o,d=n.length;f1&&(S=Math.sqrt(S),t=S*t,r=S*r);var w=t*t,b=r*r,E=(a===o?-1:1)*Math.sqrt(Math.abs((w*b-w*x*x-b*_*_)/(w*x*x+b*_*_)));g=E*t*x/r+(n+s)/2,m=E*-r*_/t+(e+l)/2,v=Math.asin(((e-m)/r).toFixed(9)),p=Math.asin(((l-m)/r).toFixed(9)),v=np&&(v=v-Math.PI*2),!o&&p>v&&(p=p-Math.PI*2)}var T=p-v;if(Math.abs(T)>h){var C=p,A=s,M=l;p=v+h*(o&&p>v?1:-1),s=g+t*Math.cos(p),l=m+r*Math.sin(p),f=Eze(s,l,t,r,i,0,o,A,M,[p,C,g,m])}T=p-v;var I=Math.cos(v),R=Math.sin(v),k=Math.cos(p),D=Math.sin(p),G=Math.tan(T/4),V=4/3*t*G,z=4/3*r*G,j=[n,e],Z=[n+V*R,e-z*I],Y=[s+V*D,l-z*k],le=[s,l];if(Z[0]=2*j[0]-Z[0],Z[1]=2*j[1]-Z[1],u)return[Z,Y,le].concat(f);f=[Z,Y,le].concat(f).join().split(",");for(var H=[],Q=0,ie=f.length;Q7){_[x].shift();for(var S=_[x];S.length;)o[x]="A",r&&(s[x]="A"),_.splice(x++,0,["C"].concat(S.splice(0,6)));_.splice(x,1),h=Math.max(t.length,r&&r.length||0)}},d=function(_,x,S,w,b){_&&x&&_[b][0]==="M"&&x[b][0]!=="M"&&(x.splice(b,0,["M",w.x,w.y]),S.bx=0,S.by=0,S.x=_[b][1],S.y=_[b][2],h=Math.max(t.length,r&&r.length||0))};h=Math.max(t.length,r&&r.length||0);for(var v=0;v1?1:l<0?0:l;for(var u=l/2,h=12,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,v=0;v0&&d<1&&l.push(d);continue}var p=c*c-4*f*h,g=Math.sqrt(p);if(!(p<0)){var m=(-c+g)/(2*h);m>0&&m<1&&l.push(m);var y=(-c-g)/(2*h);y>0&&y<1&&l.push(y)}}for(var _=l.length,x=_,S;_--;)d=l[_],S=1-d,u[0][_]=S*S*S*n+3*S*S*d*t+3*S*d*d*i+d*d*d*o,u[1][_]=S*S*S*e+3*S*S*d*r+3*S*d*d*a+d*d*d*s;return u[0][x]=n,u[1][x]=e,u[0][x+1]=o,u[1][x+1]=s,u[0].length=u[1].length=x+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}},Q7t=function(n,e,t,r,i,a,o,s){if(!(Math.max(n,t)Math.max(i,o)||Math.max(e,r)Math.max(a,s))){var l=(n*r-e*t)*(i-o)-(n-t)*(i*s-a*o),u=(n*r-e*t)*(a-s)-(e-r)*(i*s-a*o),h=(n-t)*(a-s)-(e-r)*(i-o);if(!!h){var c=l/h,f=u/h,d=+c.toFixed(2),v=+f.toFixed(2);if(!(d<+Math.min(n,t).toFixed(2)||d>+Math.max(n,t).toFixed(2)||d<+Math.min(i,o).toFixed(2)||d>+Math.max(i,o).toFixed(2)||v<+Math.min(e,r).toFixed(2)||v>+Math.max(e,r).toFixed(2)||v<+Math.min(a,s).toFixed(2)||v>+Math.max(a,s).toFixed(2)))return{x:c,y:f}}}},dx=function(n,e,t){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},Cze=function(n,e,t,r,i){if(i)return[["M",+n+ +i,e],["l",t-i*2,0],["a",i,i,0,0,1,i,i],["l",0,r-i*2],["a",i,i,0,0,1,-i,i],["l",i*2-t,0],["a",i,i,0,0,1,-i,-i],["l",0,i*2-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",n,e],["l",t,0],["l",0,r],["l",-t,0],["z"]];return a.parsePathArray=Tze,a},$Q=function(n,e,t,r){return n===null&&(n=e=t=r=0),e===null&&(e=n.y,t=n.width,r=n.height,n=n.x),{x:n,y:e,width:t,w:t,height:r,h:r,x2:n+t,y2:e+r,cx:n+t/2,cy:e+r/2,r1:Math.min(t,r)/2,r2:Math.max(t,r)/2,r0:Math.sqrt(t*t+r*r)/2,path:Cze(n,e,t,r),vb:[n,e,t,r].join(" ")}},ezt=function(n,e){return n=$Q(n),e=$Q(e),dx(e,n.x,n.y)||dx(e,n.x2,n.y)||dx(e,n.x,n.y2)||dx(e,n.x2,n.y2)||dx(n,e.x,e.y)||dx(n,e.x2,e.y)||dx(n,e.x,e.y2)||dx(n,e.x2,e.y2)||(n.xe.x||e.xn.x)&&(n.ye.y||e.yn.y)},Mxe=function(n,e,t,r,i,a,o,s){vn(n)||(n=[n,e,t,r,i,a,o,s]);var l=J7t.apply(null,n);return $Q(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},Ixe=function(n,e,t,r,i,a,o,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,v=h*n+c*3*l*t+u*3*l*l*i+d*o,p=h*e+c*3*l*r+u*3*l*l*a+d*s,g=n+2*l*(t-n)+f*(i-2*t+n),m=e+2*l*(r-e)+f*(a-2*r+e),y=t+2*l*(i-t)+f*(o-2*i+t),_=r+2*l*(a-r)+f*(s-2*a+r),x=u*n+l*t,S=u*e+l*r,w=u*i+l*o,b=u*a+l*s,E=90-Math.atan2(g-y,m-_)*180/Math.PI;return{x:v,y:p,m:{x:g,y:m},n:{x:y,y:_},start:{x,y:S},end:{x:w,y:b},alpha:E}},tzt=function(n,e,t){var r=Mxe(n),i=Mxe(e);if(!ezt(r,i))return t?0:[];for(var a=Axe.apply(0,n),o=Axe.apply(0,e),s=~~(a/8),l=~~(o/8),u=[],h=[],c={},f=t?0:[],d=0;d=0&&b<=1&&E>=0&&E<=1&&(t?f+=1:f.push({x:w.x,y:w.y,t1:b,t2:E}))}}return f},rzt=function(n,e,t){n=VQ(n),e=VQ(e);for(var r,i,a,o,s,l,u,h,c,f,d=t?0:[],v=0,p=n.length;v=3&&(c.length===3&&f.push("Q"),f=f.concat(c[1])),c.length===2&&f.push("L"),f=f.concat(c[c.length-1]),f});return h}var ozt=function(n,e,t){if(t===1)return[[].concat(n)];var r=[];if(e[0]==="L"||e[0]==="C"||e[0]==="Q")r=r.concat(azt(n,e,t));else{var i=[].concat(n);i[0]==="M"&&(i[0]="L");for(var a=0;a<=t-1;a++)r.push(i)}return r},szt=function(n,e){if(n.length===1)return n;var t=n.length-1,r=e.length-1,i=t/r,a=[];if(n.length===1&&n[0][0]==="M"){for(var o=0;o=0;l--)o=a[l].index,a[l].type==="add"?n.splice(o,0,[].concat(n[o])):n.splice(o,1)}r=n.length;var c=i-r;if(r0)t=AX(t,n[r-1],1);else{n[r]=e[r];break}n[r]=["Q"].concat(t.reduce(function(i,a){return i.concat(a)},[]));break;case"T":n[r]=["T"].concat(t[0]);break;case"C":if(t.length<3)if(r>0)t=AX(t,n[r-1],2);else{n[r]=e[r];break}n[r]=["C"].concat(t.reduce(function(i,a){return i.concat(a)},[]));break;case"S":if(t.length<2)if(r>0)t=AX(t,n[r-1],1);else{n[r]=e[r];break}n[r]=["S"].concat(t.reduce(function(i,a){return i.concat(a)},[]));break;default:n[r]=e[r]}return n};const czt=Object.freeze(Object.defineProperty({__proto__:null,catmullRomToBezier:zQ,fillPath:szt,fillPathByDiff:Aze,formatPath:WQ,intersection:nzt,parsePathArray:Tze,parsePathString:gA,pathToAbsolute:UQ,pathToCurve:VQ,rectPath:Cze},Symbol.toStringTag,{value:"Module"}));var Ize=function(){function n(e,t){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=e,this.name=e,this.originalEvent=t,this.timeStamp=t.timeStamp}return n.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},n.prototype.stopPropagation=function(){this.propagationStopped=!0},n.prototype.toString=function(){var e=this.type;return"[Event (type="+e+")]"},n.prototype.save=function(){},n.prototype.restore=function(){},n}();function Lze(n,e){var t=n.indexOf(e);t!==-1&&n.splice(t,1)}var Lxe=typeof window<"u"&&typeof window.document<"u";function Pze(n,e){if(n.isCanvas())return!0;for(var t=e.getParent(),r=!1;t;){if(t===n){r=!0;break}t=t.getParent()}return r}function HQ(n){return n.cfg.visible&&n.cfg.capture}var fzt=function(n){Kn(e,n);function e(t){var r=n.call(this)||this;r.destroyed=!1;var i=r.getDefaultCfg();return r.cfg=_n(i,t),r}return e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,r){this.cfg[t]=r},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(C9e),Pxe=globalThis&&globalThis.__spreadArray||function(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,a;r"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new yzt:typeof navigator<"u"?Dxe(navigator.userAgent):bzt()}function Szt(n){return n!==""&&xzt.reduce(function(e,t){var r=t[0],i=t[1];if(e)return e;var a=i.exec(n);return!!a&&[r,a]},!1)}function Dxe(n){var e=Szt(n);if(!e)return null;var t=e[0],r=e[1];if(t==="searchbot")return new gzt;var i=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);i?i.lengtho.delay&&At(e.toAttrs,function(s,l){a.call(o.toAttrs,l)&&(delete o.toAttrs[l],delete o.fromAttrs[l])})}),n}var Dze=function(n){Kn(e,n);function e(t){var r=n.call(this,t)||this;r.attrs={};var i=r.getDefaultAttrs();return _n(i,t.attrs),r.attrs=i,r.initAttrs(i),r.initAnimate(),r}return e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,r=[],i=0;i0?a=Ozt(a,x):i.addAnimator(this),a.push(x),this.set("animations",a),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var r=this;t===void 0&&(t=!0);var i=this.get("animations");At(i,function(a){t&&(a.onFrame?r.attr(a.onFrame(1)):r.attr(a.toAttrs)),a.callback&&a.callback()}),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),r=this.get("animations"),i=t.getTime();return At(r,function(a){a._paused=!0,a._pauseTime=i,a.pauseCallback&&a.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:i}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline"),r=t.getTime(),i=this.get("animations"),a=this.get("_pause").pauseTime;return At(i,function(o){o.startTime=o.startTime+(r-a),o._paused=!1,o._pauseTime=null,o.resumeCallback&&o.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",i),this},e.prototype.emitDelegation=function(t,r){var i=this,a=r.propagationPath;this.getEvents();var o;t==="mouseenter"?o=r.fromShape:t==="mouseleave"&&(o=r.toShape);for(var s=function(c){var f=a[c],d=f.get("name");if(d){if((f.isGroup()||f.isCanvas&&f.isCanvas())&&o&&Pze(f,o))return"break";vn(d)?At(d,function(v){i.emitDelegateEvent(f,v,r)}):l.emitDelegateEvent(f,d,r)}},l=this,u=0;u0)});o.length>0?At(o,function(l){var u=l.getBBox(),h=u.minX,c=u.maxX,f=u.minY,d=u.maxY;hr&&(r=c),fa&&(a=d)}):(t=0,r=0,i=0,a=0);var s={x:t,y:i,minX:t,minY:i,maxX:r,maxY:a,width:r-t,height:a-i};return s},e.prototype.getCanvasBBox=function(){var t=1/0,r=-1/0,i=1/0,a=-1/0,o=this.getChildren().filter(function(l){return l.get("visible")&&(!l.isGroup()||l.isGroup()&&l.getChildren().length>0)});o.length>0?At(o,function(l){var u=l.getCanvasBBox(),h=u.minX,c=u.maxX,f=u.minY,d=u.maxY;hr&&(r=c),fa&&(a=d)}):(t=0,r=0,i=0,a=0);var s={x:t,y:i,minX:t,minY:i,maxX:r,maxY:a,width:r-t,height:a-i};return s},e.prototype.getDefaultCfg=function(){var t=n.prototype.getDefaultCfg.call(this);return t.children=[],t},e.prototype.onAttrChange=function(t,r,i){if(n.prototype.onAttrChange.call(this,t,r,i),t==="matrix"){var a=this.getTotalMatrix();this._applyChildrenMarix(a)}},e.prototype.applyMatrix=function(t){var r=this.getTotalMatrix();n.prototype.applyMatrix.call(this,t);var i=this.getTotalMatrix();i!==r&&this._applyChildrenMarix(i)},e.prototype._applyChildrenMarix=function(t){var r=this.getChildren();At(r,function(i){i.applyMatrix(t)})},e.prototype.addShape=function(){for(var t=[],r=0;r=0;s--){var l=t[s];if(HQ(l)&&(l.isGroup()?o=l.getShape(r,i,a):l.isHit(r,i)&&(o=l)),o)break}return o},e.prototype.add=function(t){var r=this.getCanvas(),i=this.getChildren(),a=this.get("timeline"),o=t.getParent();o&&Rzt(o,t,!1),t.set("parent",this),r&&Nze(t,r),a&&kze(t,a),i.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var r=this.getTotalMatrix();r&&t.applyMatrix(r)},e.prototype.getChildren=function(){return this.get("children")||[]},e.prototype.sort=function(){var t=this.getChildren();At(t,function(r,i){return r[jQ]=i,r}),t.sort(Dzt(function(r,i){return r.get("zIndex")-i.get("zIndex")})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),r=t.length-1;r>=0;r--)t[r].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),n.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){var r=this.getChildren();return r[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var r=this.getChildren();return r.indexOf(t)>-1},e.prototype.removeChild=function(t,r){r===void 0&&(r=!0),this.contain(t)&&t.remove(r)},e.prototype.findAll=function(t){var r=[],i=this.getChildren();return At(i,function(a){t(a)&&r.push(a),a.isGroup()&&(r=r.concat(a.findAll(t)))}),r},e.prototype.find=function(t){var r=null,i=this.getChildren();return At(i,function(a){if(t(a)?r=a:a.isGroup()&&(r=a.find(t)),r)return!1}),r},e.prototype.findById=function(t){return this.find(function(r){return r.get("id")===t})},e.prototype.findByClassName=function(t){return this.find(function(r){return r.get("className")===t})},e.prototype.findAllByName=function(t){return this.findAll(function(r){return r.get("name")===t})},e}(Dze),EM=0,pO=0,yP=0,Bze=1e3,g9,gO,y9=0,o2=0,GU=0,VD=typeof performance=="object"&&performance.now?performance:Date,Gze=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function zze(){return o2||(Gze(Nzt),o2=VD.now()+GU)}function Nzt(){o2=0}function XQ(){this._call=this._time=this._next=null}XQ.prototype=hse.prototype={constructor:XQ,restart:function(n,e,t){if(typeof n!="function")throw new TypeError("callback is not a function");t=(t==null?zze():+t)+(e==null?0:+e),!this._next&&gO!==this&&(gO?gO._next=this:g9=this,gO=this),this._call=n,this._time=t,YQ()},stop:function(){this._call&&(this._call=null,this._time=1/0,YQ())}};function hse(n,e,t){var r=new XQ;return r.restart(n,e,t),r}function kzt(){zze(),++EM;for(var n=g9,e;n;)(e=o2-n._time)>=0&&n._call.call(null,e),n=n._next;--EM}function Fxe(){o2=(y9=VD.now())+GU,EM=pO=0;try{kzt()}finally{EM=0,Bzt(),o2=0}}function Fzt(){var n=VD.now(),e=n-y9;e>Bze&&(GU-=e,y9=n)}function Bzt(){for(var n,e=g9,t,r=1/0;e;)e._call?(r>e._time&&(r=e._time),n=e,e=e._next):(t=e._next,e._next=null,e=n?n._next=t:g9=t);gO=n,YQ(r)}function YQ(n){if(!EM){pO&&(pO=clearTimeout(pO));var e=n-o2;e>24?(n<1/0&&(pO=setTimeout(Fxe,n-VD.now()-GU)),yP&&(yP=clearInterval(yP))):(yP||(y9=VD.now(),yP=setInterval(Fzt,Bze)),EM=1,Gze(Fxe))}}function cse(n,e,t){n.prototype=e.prototype=t,t.constructor=n}function Uze(n,e){var t=Object.create(n.prototype);for(var r in e)t[r]=e[r];return t}function V3(){}var $D=.7,m9=1/$D,$A="\\s*([+-]?\\d+)\\s*",WD="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Gzt=/^#([0-9a-f]{3,8})$/,zzt=new RegExp(`^rgb\\(${$A},${$A},${$A}\\)$`),Uzt=new RegExp(`^rgb\\(${Jy},${Jy},${Jy}\\)$`),Vzt=new RegExp(`^rgba\\(${$A},${$A},${$A},${WD}\\)$`),$zt=new RegExp(`^rgba\\(${Jy},${Jy},${Jy},${WD}\\)$`),Wzt=new RegExp(`^hsl\\(${WD},${Jy},${Jy}\\)$`),Hzt=new RegExp(`^hsla\\(${WD},${Jy},${Jy},${WD}\\)$`),Bxe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};cse(V3,HD,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:Gxe,formatHex:Gxe,formatHex8:jzt,formatHsl:Xzt,formatRgb:zxe,toString:zxe});function Gxe(){return this.rgb().formatHex()}function jzt(){return this.rgb().formatHex8()}function Xzt(){return Vze(this).formatHsl()}function zxe(){return this.rgb().formatRgb()}function HD(n){var e,t;return n=(n+"").trim().toLowerCase(),(e=Gzt.exec(n))?(t=e[1].length,e=parseInt(e[1],16),t===6?Uxe(e):t===3?new pd(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):t===8?u5(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):t===4?u5(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=zzt.exec(n))?new pd(e[1],e[2],e[3],1):(e=Uzt.exec(n))?new pd(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Vzt.exec(n))?u5(e[1],e[2],e[3],e[4]):(e=$zt.exec(n))?u5(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Wzt.exec(n))?Wxe(e[1],e[2]/100,e[3]/100,1):(e=Hzt.exec(n))?Wxe(e[1],e[2]/100,e[3]/100,e[4]):Bxe.hasOwnProperty(n)?Uxe(Bxe[n]):n==="transparent"?new pd(NaN,NaN,NaN,0):null}function Uxe(n){return new pd(n>>16&255,n>>8&255,n&255,1)}function u5(n,e,t,r){return r<=0&&(n=e=t=NaN),new pd(n,e,t,r)}function Yzt(n){return n instanceof V3||(n=HD(n)),n?(n=n.rgb(),new pd(n.r,n.g,n.b,n.opacity)):new pd}function qQ(n,e,t,r){return arguments.length===1?Yzt(n):new pd(n,e,t,r==null?1:r)}function pd(n,e,t,r){this.r=+n,this.g=+e,this.b=+t,this.opacity=+r}cse(pd,qQ,Uze(V3,{brighter(n){return n=n==null?m9:Math.pow(m9,n),new pd(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?$D:Math.pow($D,n),new pd(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new pd(NE(this.r),NE(this.g),NE(this.b),_9(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Vxe,formatHex:Vxe,formatHex8:qzt,formatRgb:$xe,toString:$xe}));function Vxe(){return`#${fE(this.r)}${fE(this.g)}${fE(this.b)}`}function qzt(){return`#${fE(this.r)}${fE(this.g)}${fE(this.b)}${fE((isNaN(this.opacity)?1:this.opacity)*255)}`}function $xe(){const n=_9(this.opacity);return`${n===1?"rgb(":"rgba("}${NE(this.r)}, ${NE(this.g)}, ${NE(this.b)}${n===1?")":`, ${n})`}`}function _9(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function NE(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function fE(n){return n=NE(n),(n<16?"0":"")+n.toString(16)}function Wxe(n,e,t,r){return r<=0?n=e=t=NaN:t<=0||t>=1?n=e=NaN:e<=0&&(n=NaN),new Zg(n,e,t,r)}function Vze(n){if(n instanceof Zg)return new Zg(n.h,n.s,n.l,n.opacity);if(n instanceof V3||(n=HD(n)),!n)return new Zg;if(n instanceof Zg)return n;n=n.rgb();var e=n.r/255,t=n.g/255,r=n.b/255,i=Math.min(e,t,r),a=Math.max(e,t,r),o=NaN,s=a-i,l=(a+i)/2;return s?(e===a?o=(t-r)/s+(t0&&l<1?0:o,new Zg(o,s,l,n.opacity)}function Zzt(n,e,t,r){return arguments.length===1?Vze(n):new Zg(n,e,t,r==null?1:r)}function Zg(n,e,t,r){this.h=+n,this.s=+e,this.l=+t,this.opacity=+r}cse(Zg,Zzt,Uze(V3,{brighter(n){return n=n==null?m9:Math.pow(m9,n),new Zg(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?$D:Math.pow($D,n),new Zg(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,e=isNaN(n)||isNaN(this.s)?0:this.s,t=this.l,r=t+(t<.5?t:1-t)*e,i=2*t-r;return new pd(IX(n>=240?n-240:n+120,i,r),IX(n,i,r),IX(n<120?n+240:n-120,i,r),this.opacity)},clamp(){return new Zg(Hxe(this.h),h5(this.s),h5(this.l),_9(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=_9(this.opacity);return`${n===1?"hsl(":"hsla("}${Hxe(this.h)}, ${h5(this.s)*100}%, ${h5(this.l)*100}%${n===1?")":`, ${n})`}`}}));function Hxe(n){return n=(n||0)%360,n<0?n+360:n}function h5(n){return Math.max(0,Math.min(1,n||0))}function IX(n,e,t){return(n<60?e+(t-e)*n/60:n<180?t:n<240?e+(t-e)*(240-n)/60:e)*255}const fse=n=>()=>n;function Kzt(n,e){return function(t){return n+t*e}}function Jzt(n,e,t){return n=Math.pow(n,t),e=Math.pow(e,t)-n,t=1/t,function(r){return Math.pow(n+r*e,t)}}function Qzt(n){return(n=+n)==1?$ze:function(e,t){return t-e?Jzt(e,t,n):fse(isNaN(e)?t:e)}}function $ze(n,e){var t=e-n;return t?Kzt(n,t):fse(isNaN(n)?e:n)}const jxe=function n(e){var t=Qzt(e);function r(i,a){var o=t((i=qQ(i)).r,(a=qQ(a)).r),s=t(i.g,a.g),l=t(i.b,a.b),u=$ze(i.opacity,a.opacity);return function(h){return i.r=o(h),i.g=s(h),i.b=l(h),i.opacity=u(h),i+""}}return r.gamma=n,r}(1);function Wze(n,e){e||(e=[]);var t=n?Math.min(e.length,n.length):0,r=e.slice(),i;return function(a){for(i=0;it&&(a=e.slice(t,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:ZQ(r,i)})),t=LX.lastIndex;return tu.length?(l=gA(a[s]),u=gA(i[s]),u=Aze(u,l),u=WQ(u,l),e.fromAttrs.path=u,e.toAttrs.path=l):e.pathFormatted||(l=gA(a[s]),u=gA(i[s]),u=WQ(u,l),e.fromAttrs.path=u,e.toAttrs.path=l,e.pathFormatted=!0),r[s]=[];for(var h=0;h0){for(var s=e.animators.length-1;s>=0;s--){if(r=e.animators[s],r.destroyed){e.removeAnimator(s);continue}if(!r.isAnimatePaused()){i=r.get("animations");for(var l=i.length-1;l>=0;l--)a=i[l],t=GUt(r,a,o),t&&(i.splice(l,1),t=!1,a.callback&&a.callback())}i.length===0&&e.removeAnimator(s)}var u=e.canvas.get("autoDraw");u||e.canvas.draw()}})},n.prototype.addAnimator=function(e){this.animators.push(e)},n.prototype.removeAnimator=function(e){this.animators.splice(e,1)},n.prototype.isAnimating=function(){return!!this.animators.length},n.prototype.stop=function(){this.timer&&this.timer.stop()},n.prototype.stopAllAnimations=function(e){e===void 0&&(e=!0),this.animators.forEach(function(t){t.stopAnimate(e)}),this.animators=[],this.canvas.draw()},n.prototype.getTime=function(){return this.current},n}(),UUt=40,rSe=0,nSe=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function iSe(n,e,t){t.name=e,t.target=n,t.currentTarget=n,t.delegateTarget=n,n.emit(e,t)}function VUt(n,e,t){if(t.bubbles){var r=void 0,i=!1;if(e==="mouseenter"?(r=t.fromShape,i=!0):e==="mouseleave"&&(i=!0,r=t.toShape),n.isCanvas()&&i)return;if(r&&Pze(n,r)){t.bubbles=!1;return}t.name=e,t.currentTarget=n,t.delegateTarget=n,n.emit(e,t)}}var $Ut=function(){function n(e){var t=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(r){var i=r.type;t._triggerEvent(i,r)},this._onDocumentMove=function(r){var i=t.canvas,a=i.get("el");if(a!==r.target&&(t.dragging||t.currentShape)){var o=t._getPointInfo(r);t.dragging&&t._emitEvent("drag",r,o,t.draggingShape)}},this._onDocumentMouseUp=function(r){var i=t.canvas,a=i.get("el");if(a!==r.target&&t.dragging){var o=t._getPointInfo(r);t.draggingShape&&t._emitEvent("drop",r,o,null),t._emitEvent("dragend",r,o,t.draggingShape),t._afterDrag(t.draggingShape,o,r)}},this.canvas=e.canvas}return n.prototype.init=function(){this._bindEvents()},n.prototype._bindEvents=function(){var e=this,t=this.canvas.get("el");At(nSe,function(r){t.addEventListener(r,e._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},n.prototype._clearEvents=function(){var e=this,t=this.canvas.get("el");At(nSe,function(r){t.removeEventListener(r,e._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},n.prototype._getEventObj=function(e,t,r,i,a,o){var s=new Ize(e,t);return s.fromShape=a,s.toShape=o,s.x=r.x,s.y=r.y,s.clientX=r.clientX,s.clientY=r.clientY,s.propagationPath.push(i),s},n.prototype._getShape=function(e,t){return this.canvas.getShape(e.x,e.y,t)},n.prototype._getPointInfo=function(e){var t=this.canvas,r=t.getClientByEvent(e),i=t.getPointByEvent(e);return{x:i.x,y:i.y,clientX:r.x,clientY:r.y}},n.prototype._triggerEvent=function(e,t){var r=this._getPointInfo(t),i=this._getShape(r,t),a=this["_on"+e],o=!1;if(a)a.call(this,r,i,t);else{var s=this.currentShape;e==="mouseenter"||e==="dragenter"||e==="mouseover"?(this._emitEvent(e,t,r,null,null,i),i&&this._emitEvent(e,t,r,i,null,i),e==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",t,r,null)):e==="mouseleave"||e==="dragleave"||e==="mouseout"?(o=!0,s&&this._emitEvent(e,t,r,s,s,null),this._emitEvent(e,t,r,null,s,null),e==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",t,r,null)):this._emitEvent(e,t,r,i,null,null)}if(o||(this.currentShape=i),i&&!i.get("destroyed")){var l=this.canvas,u=l.get("el");u.style.cursor=i.attr("cursor")||l.get("cursor")}},n.prototype._onmousedown=function(e,t,r){r.button===rSe&&(this.mousedownShape=t,this.mousedownPoint=e,this.mousedownTimeStamp=r.timeStamp),this._emitEvent("mousedown",r,e,t,null,null)},n.prototype._emitMouseoverEvents=function(e,t,r,i){var a=this.canvas.get("el");r!==i&&(r&&(this._emitEvent("mouseout",e,t,r,r,i),this._emitEvent("mouseleave",e,t,r,r,i),(!i||i.get("destroyed"))&&(a.style.cursor=this.canvas.get("cursor"))),i&&(this._emitEvent("mouseover",e,t,i,r,i),this._emitEvent("mouseenter",e,t,i,r,i)))},n.prototype._emitDragoverEvents=function(e,t,r,i,a){i?(i!==r&&(r&&this._emitEvent("dragleave",e,t,r,r,i),this._emitEvent("dragenter",e,t,i,r,i)),a||this._emitEvent("dragover",e,t,i)):r&&this._emitEvent("dragleave",e,t,r,r,i),a&&this._emitEvent("dragover",e,t,i)},n.prototype._afterDrag=function(e,t,r){e&&(e.set("capture",!0),this.draggingShape=null),this.dragging=!1;var i=this._getShape(t,r);i!==e&&this._emitMouseoverEvents(r,t,e,i),this.currentShape=i},n.prototype._onmouseup=function(e,t,r){if(r.button===rSe){var i=this.draggingShape;this.dragging?(i&&this._emitEvent("drop",r,e,t),this._emitEvent("dragend",r,e,i),this._afterDrag(i,e,r)):(this._emitEvent("mouseup",r,e,t),t===this.mousedownShape&&this._emitEvent("click",r,e,t),this.mousedownShape=null,this.mousedownPoint=null)}},n.prototype._ondragover=function(e,t,r){r.preventDefault();var i=this.currentShape;this._emitDragoverEvents(r,e,i,t,!0)},n.prototype._onmousemove=function(e,t,r){var i=this.canvas,a=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(r,e,a,t,!1),this._emitEvent("drag",r,e,o);else{var s=this.mousedownPoint;if(s){var l=this.mousedownShape,u=r.timeStamp,h=u-this.mousedownTimeStamp,c=s.clientX-e.clientX,f=s.clientY-e.clientY,d=c*c+f*f;h>120||d>UUt?l&&l.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",r,e,o),this.mousedownShape=null,this.mousedownPoint=null):!l&&i.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",r,e,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(r,e,a,t),this._emitEvent("mousemove",r,e,t)):(this._emitMouseoverEvents(r,e,a,t),this._emitEvent("mousemove",r,e,t))}else this._emitMouseoverEvents(r,e,a,t),this._emitEvent("mousemove",r,e,t)}},n.prototype._emitEvent=function(e,t,r,i,a,o){var s=this._getEventObj(e,t,r,i,a,o);if(i){s.shape=i,iSe(i,e,s);for(var l=i.getParent();l;)l.emitDelegation(e,s),s.propagationStopped||VUt(l,e,s),s.propagationPath.push(l),l=l.getParent()}else{var u=this.canvas;iSe(u,e,s)}},n.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},n}(),aSe="px",oSe=Oze(),WUt=oSe&&oSe.name==="firefox",qze=function(n){Kn(e,n);function e(t){var r=n.call(this,t)||this;return r.initContainer(),r.initDom(),r.initEvents(),r.initTimeline(),r}return e.prototype.getDefaultCfg=function(){var t=n.prototype.getDefaultCfg.call(this);return t.cursor="default",t.supportCSSTransform=!1,t},e.prototype.initContainer=function(){var t=this.get("container");rr(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var r=this.get("container");r.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new $Ut({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new zUt(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,r){var i=this.get("el");Lxe&&(i.style.width=t+aSe,i.style.height=r+aSe)},e.prototype.changeSize=function(t,r){this.setDOMSize(t,r),this.set("width",t),this.set("height",r),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var r=this.get("el");Lxe&&r&&(r.style.cursor=t)},e.prototype.getPointByEvent=function(t){var r=this.get("supportCSSTransform");if(r){if(WUt&&!an(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!an(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var i=this.getClientByEvent(t),a=i.x,o=i.y;return this.getPointByClient(a,o)},e.prototype.getClientByEvent=function(t){var r=t;return t.touches&&(t.type==="touchend"?r=t.changedTouches[0]:r=t.touches[0]),{x:r.clientX,y:r.clientY}},e.prototype.getPointByClient=function(t,r){var i=this.get("el"),a=i.getBoundingClientRect();return{x:t-a.left,y:r-a.top}},e.prototype.getClientByPoint=function(t,r){var i=this.get("el"),a=i.getBoundingClientRect();return{x:t+a.left,y:r+a.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){var t=this.get("eventController");t.destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var t=this.get("timeline");this.get("destroyed")||(this.clear(),t&&t.stop(),this.clearEvents(),this.removeDom(),n.prototype.destroy.call(this))},e}(Fze),Zze=function(n){Kn(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var t=n.prototype.clone.call(this),r=this.getChildren(),i=0;i=t&&i.minY<=r&&i.maxY>=r},e.prototype.afterAttrsChange=function(t){n.prototype.afterAttrsChange.call(this,t),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(t){n.prototype.applyMatrix.call(this,t),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),r=this.getTotalMatrix(),i=t.minX,a=t.minY,o=t.maxX,s=t.maxY;if(r){var l=cE(r,[t.minX,t.minY]),u=cE(r,[t.maxX,t.minY]),h=cE(r,[t.minX,t.maxY]),c=cE(r,[t.maxX,t.maxY]);i=Math.min(l[0],u[0],h[0],c[0]),o=Math.max(l[0],u[0],h[0],c[0]),a=Math.min(l[1],u[1],h[1],c[1]),s=Math.max(l[1],u[1],h[1],c[1])}var f=this.attrs;if(f.shadowColor){var d=f.shadowBlur,v=d===void 0?0:d,p=f.shadowOffsetX,g=p===void 0?0:p,m=f.shadowOffsetY,y=m===void 0?0:m,_=i-v+g,x=o+v+g,S=a-v+y,w=s+v+y;i=Math.min(i,_),o=Math.max(o,x),a=Math.min(a,S),s=Math.max(s,w)}return{x:i,y:a,minX:i,minY:a,maxX:o,maxY:s,width:o-i,height:s-a}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,r){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,r){var i=this.get("startArrowShape"),a=this.get("endArrowShape"),o=[t,r,1];o=this.invertFromMatrix(o);var s=o[0],l=o[1],u=this._isInBBox(s,l);return this.isOnlyHitBox()?u:!!(u&&!this.isClipped(s,l)&&(this.isInShape(s,l)||i&&i.isHit(s,l)||a&&a.isHit(s,l)))},e}(Dze),Jze=new Map;function Rm(n,e){Jze.set(n,e)}function Qze(n){return Jze.get(n)}function eUe(n){var e=n.attr(),t=e.x,r=e.y,i=e.width,a=e.height;return{x:t,y:r,width:i,height:a}}function tUe(n){var e=n.attr(),t=e.x,r=e.y,i=e.r;return{x:t-i,y:r-i,width:i*2,height:i*2}}function Hc(n,e,t,r){var i=n-t,a=e-r;return Math.sqrt(i*i+a*a)}function jB(n,e){return Math.abs(n-e)<.001}function jI(n,e){var t=dm(n),r=dm(e),i=fm(n),a=fm(e);return{x:t,y:r,width:i-t,height:a-r}}function zU(n){return(n+Math.PI*2)%(Math.PI*2)}const Fh={box:function(n,e,t,r){return jI([n,t],[e,r])},length:function(n,e,t,r){return Hc(n,e,t,r)},pointAt:function(n,e,t,r,i){return{x:(1-i)*n+i*t,y:(1-i)*e+i*r}},pointDistance:function(n,e,t,r,i,a){var o=(t-n)*(i-n)+(r-e)*(a-e);if(o<0)return Hc(n,e,i,a);var s=(t-n)*(t-n)+(r-e)*(r-e);return o>s?Hc(t,r,i,a):this.pointToLine(n,e,t,r,i,a)},pointToLine:function(n,e,t,r,i,a){var o=[t-n,r-e];if(Koe(o,[0,0]))return Math.sqrt((i-n)*(i-n)+(a-e)*(a-e));var s=[-o[1],o[0]];SS(s,s);var l=[i-n,a-e];return Math.abs(Zoe(l,s))},tangentAngle:function(n,e,t,r){return Math.atan2(r-e,t-n)}};var HUt=1e-4;function rUe(n,e,t,r,i,a){var o,s=1/0,l=[t,r],u=20;a&&a>200&&(u=a/10);for(var h=1/u,c=h/10,f=0;f<=u;f++){var d=f*h,v=[i.apply(null,n.concat([d])),i.apply(null,e.concat([d]))],p=Hc(l[0],l[1],v[0],v[1]);p=0&&p=0?[i]:[]}function lSe(n,e,t,r){return 2*(1-r)*(e-n)+2*r*(t-e)}function nUe(n,e,t,r,i,a,o){var s=Fx(n,t,i,o),l=Fx(e,r,a,o),u=Fh.pointAt(n,e,t,r,o),h=Fh.pointAt(t,r,i,a,o);return[[n,e,u.x,u.y,s,l],[s,l,h.x,h.y,i,a]]}function QQ(n,e,t,r,i,a,o){if(o===0)return(Hc(n,e,t,r)+Hc(t,r,i,a)+Hc(n,e,i,a))/2;var s=nUe(n,e,t,r,i,a,.5),l=s[0],u=s[1];return l.push(o-1),u.push(o-1),QQ.apply(null,l)+QQ.apply(null,u)}const iUe={box:function(n,e,t,r,i,a){var o=sSe(n,t,i)[0],s=sSe(e,r,a)[0],l=[n,i],u=[e,a];return o!==void 0&&l.push(Fx(n,t,i,o)),s!==void 0&&u.push(Fx(e,r,a,s)),jI(l,u)},length:function(n,e,t,r,i,a){return QQ(n,e,t,r,i,a,3)},nearestPoint:function(n,e,t,r,i,a,o,s){return rUe([n,t,i],[e,r,a],o,s,Fx)},pointDistance:function(n,e,t,r,i,a,o,s){var l=this.nearestPoint(n,e,t,r,i,a,o,s);return Hc(l.x,l.y,o,s)},interpolationAt:Fx,pointAt:function(n,e,t,r,i,a,o){return{x:Fx(n,t,i,o),y:Fx(e,r,a,o)}},divide:function(n,e,t,r,i,a,o){return nUe(n,e,t,r,i,a,o)},tangentAngle:function(n,e,t,r,i,a,o){var s=lSe(n,t,i,o),l=lSe(e,r,a,o),u=Math.atan2(l,s);return zU(u)}};function Bx(n,e,t,r,i){var a=1-i;return a*a*a*n+3*e*i*a*a+3*t*i*i*a+r*i*i*i}function uSe(n,e,t,r,i){var a=1-i;return 3*(a*a*(e-n)+2*a*i*(t-e)+i*i*(r-t))}function PX(n,e,t,r){var i=-3*n+9*e-9*t+3*r,a=6*n-12*e+6*t,o=3*e-3*n,s=[],l,u,h;if(jB(i,0))jB(a,0)||(l=-o/a,l>=0&&l<=1&&s.push(l));else{var c=a*a-4*i*o;jB(c,0)?s.push(-a/(2*i)):c>0&&(h=Math.sqrt(c),l=(-a+h)/(2*i),u=(-a-h)/(2*i),l>=0&&l<=1&&s.push(l),u>=0&&u<=1&&s.push(u))}return s}function aUe(n,e,t,r,i,a,o,s,l){var u=Bx(n,t,i,o,l),h=Bx(e,r,a,s,l),c=Fh.pointAt(n,e,t,r,l),f=Fh.pointAt(t,r,i,a,l),d=Fh.pointAt(i,a,o,s,l),v=Fh.pointAt(c.x,c.y,f.x,f.y,l),p=Fh.pointAt(f.x,f.y,d.x,d.y,l);return[[n,e,c.x,c.y,v.x,v.y,u,h],[u,h,p.x,p.y,d.x,d.y,o,s]]}function eee(n,e,t,r,i,a,o,s,l){if(l===0)return jUt([n,t,i,o],[e,r,a,s]);var u=aUe(n,e,t,r,i,a,o,s,.5),h=u[0],c=u[1];return h.push(l-1),c.push(l-1),eee.apply(null,h)+eee.apply(null,c)}const vR={extrema:PX,box:function(n,e,t,r,i,a,o,s){for(var l=[n,o],u=[e,s],h=PX(n,t,i,o),c=PX(e,r,a,s),f=0;f0?t:t*-1}const XUt={box:function(n,e,t,r){return{x:n-t,y:e-r,width:t*2,height:r*2}},length:function(n,e,t,r){return Math.PI*(3*(t+r)-Math.sqrt((3*t+r)*(t+3*r)))},nearestPoint:function(n,e,t,r,i,a){var o=t,s=r;if(o===0||s===0)return{x:n,y:e};for(var l=i-n,u=a-e,h=Math.abs(l),c=Math.abs(u),f=o*o,d=s*s,v=Math.PI/4,p,g,m=0;m<4;m++){p=o*Math.cos(v),g=s*Math.sin(v);var y=(f-d)*Math.pow(Math.cos(v),3)/o,_=(d-f)*Math.pow(Math.sin(v),3)/s,x=p-y,S=g-_,w=h-y,b=c-_,E=Math.hypot(S,x),T=Math.hypot(b,w),C=E*Math.asin((x*b-S*w)/(E*T)),A=C/Math.sqrt(f+d-p*p-g*g);v+=A,v=Math.min(Math.PI/2,Math.max(0,v))}return{x:n+hSe(p,l),y:e+hSe(g,u)}},pointDistance:function(n,e,t,r,i,a){var o=this.nearestPoint(n,e,t,r,i,a);return Hc(o.x,o.y,i,a)},pointAt:function(n,e,t,r,i){var a=2*Math.PI*i;return{x:n+t*Math.cos(a),y:e+r*Math.sin(a)}},tangentAngle:function(n,e,t,r,i){var a=2*Math.PI*i,o=Math.atan2(r*Math.cos(a),-t*Math.sin(a));return zU(o)}};function YUt(n,e,t,r,i,a,o,s){return-1*t*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}function qUt(n,e,t,r,i,a,o,s){return-1*t*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}function ZUt(n,e,t){return Math.atan(-e/n*Math.tan(t))}function KUt(n,e,t){return Math.atan(e/(n*Math.tan(t)))}function cSe(n,e,t,r,i,a){return t*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+n}function fSe(n,e,t,r,i,a){return t*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+e}function JUt(n,e,t,r){var i=Math.atan2(r*n,t*e);return(i+Math.PI*2)%(Math.PI*2)}function dSe(n,e,t){return{x:n*Math.cos(t),y:e*Math.sin(t)}}function vSe(n,e,t){var r=Math.cos(t),i=Math.sin(t);return[n*r-e*i,n*i+e*r]}const QUt={box:function(n,e,t,r,i,a,o){for(var s=ZUt(t,r,i),l=1/0,u=-1/0,h=[a,o],c=-Math.PI*2;c<=Math.PI*2;c+=Math.PI){var f=s+c;au&&(u=d)}for(var v=KUt(t,r,i),p=1/0,g=-1/0,m=[a,o],c=-Math.PI*2;c<=Math.PI*2;c+=Math.PI){var y=v+c;ag&&(g=_)}return{x:l,y:p,width:u-l,height:g-p}},length:function(n,e,t,r,i,a,o){},nearestPoint:function(n,e,t,r,i,a,o,s,l){var u=vSe(s-n,l-e,-i),h=u[0],c=u[1],f=XUt.nearestPoint(0,0,t,r,h,c),d=JUt(t,r,f.x,f.y);do&&(f=dSe(t,r,o));var v=vSe(f.x,f.y,i);return{x:v[0]+n,y:v[1]+e}},pointDistance:function(n,e,t,r,i,a,o,s,l){var u=this.nearestPoint(n,e,t,r,s,l);return Hc(u.x,u.y,s,l)},pointAt:function(n,e,t,r,i,a,o,s){var l=(o-a)*s+a;return{x:cSe(n,e,t,r,i,l),y:fSe(n,e,t,r,i,l)}},tangentAngle:function(n,e,t,r,i,a,o,s){var l=(o-a)*s+a,u=YUt(n,e,t,r,i,a,o,l),h=qUt(n,e,t,r,i,a,o,l);return zU(Math.atan2(h,u))}};function oUe(n){for(var e=0,t=[],r=0;r1||e<0||n.length<2)return null;var t=oUe(n),r=t.segments,i=t.totalLength;if(i===0)return{x:n[0][0],y:n[0][1]};for(var a=0,o=null,s=0;s=a&&e<=a+c){var f=(e-a)/c;o=Fh.pointAt(u[0],u[1],h[0],h[1],f);break}a+=c}return o}function rVt(n,e){if(e>1||e<0||n.length<2)return 0;for(var t=oUe(n),r=t.segments,i=t.totalLength,a=0,o=0,s=0;s=a&&e<=a+c){o=Math.atan2(h[1]-u[1],h[0]-u[0]);break}a+=c}return o}function nVt(n,e,t){for(var r=1/0,i=0;i1){var i=oVt(e,t);return e*r+i*(r-1)}return e}function oVt(n,e){return e?e-n:n*.14}function sVt(n,e){var t=lUe(),r=0;if(an(n)||n==="")return r;if(t.save(),t.font=e,rr(n)&&n.includes(` +`)){var i=n.split(` +`);At(i,function(a){var o=t.measureText(a).width;r1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}At(t,function(a,o){isNaN(a)||(t[o]=+a)}),e[r]=t}),e}function fVt(n,e,t,r){var i=[],a=!!r,o,s,l,u,h,c,f;if(a){l=r[0],u=r[1];for(var d=0,v=n.length;d2&&(t.push([i].concat(o.splice(0,2))),s="l",i=i==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([i,o[0]]),s==="r")t.push([i].concat(o));else for(;o.length>=e[s]&&(t.push([i].concat(o.splice(0,e[s]))),!!e[s]););return""}),t}var pVt=/[a-z]/;function gSe(n,e){return[e[0]+(e[0]-n[0]),e[1]+(e[1]-n[1])]}function fUe(n){var e=tee(n);if(!e||!e.length)return[["M",0,0]];for(var t=!1,r=0;r=0){t=!0;break}}if(!t)return e;var a=[],o=0,s=0,l=0,u=0,h=0,c=e[0];(c[0]==="M"||c[0]==="m")&&(o=+c[1],s=+c[2],l=o,u=s,h++,a[0]=["M",o,s]);for(var r=h,f=e.length;r1&&(t*=Math.sqrt(d),r*=Math.sqrt(d));var v=t*t*(f*f)+r*r*(c*c),p=v?Math.sqrt((t*t*(r*r)-v)/v):1;a===o&&(p*=-1),isNaN(p)&&(p=0);var g=r?p*t*f/r:0,m=t?p*-r*c/t:0,y=(s+u)/2+Math.cos(i)*g-Math.sin(i)*m,_=(l+h)/2+Math.sin(i)*g+Math.cos(i)*m,x=[(c-g)/t,(f-m)/r],S=[(-1*c-g)/t,(-1*f-m)/r],w=ySe([1,0],x),b=ySe(x,S);return ree(x,S)<=-1&&(b=Math.PI),ree(x,S)>=1&&(b=0),o===0&&b>0&&(b=b-2*Math.PI),o===1&&b<0&&(b=b+2*Math.PI),{cx:y,cy:_,rx:nee(n,[u,h])?0:t,ry:nee(n,[u,h])?0:r,startAngle:w,endAngle:w+b,xRotation:i,arcFlag:a,sweepFlag:o}}function mSe(n,e){return[e[0]+(e[0]-n[0]),e[1]+(e[1]-n[1])]}function dUe(n){n=cVt(n);for(var e=[],t=null,r=null,i=null,a=0,o=n.length,s=0;sMath.PI/2?Math.PI-u:u,h=h>Math.PI/2?Math.PI-h:h;var c={xExtra:Math.cos(l/2-u)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(h-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0};return c}function mVt(n){var e=n.attr(),t=e.path,r=e.stroke,i=r?e.lineWidth:0,a=n.get("segments")||dUe(t),o=yVt(a,i),s=o.x,l=o.y,u=o.width,h=o.height,c={minX:s,minY:l,maxX:s+u,maxY:l+h};return c=yse(n,c),{x:c.minX,y:c.minY,width:c.maxX-c.minX,height:c.maxY-c.minY}}function _Vt(n){var e=n.attr(),t=e.x1,r=e.y1,i=e.x2,a=e.y2,o=Math.min(t,i),s=Math.max(t,i),l=Math.min(r,a),u=Math.max(r,a),h={minX:o,maxX:s,minY:l,maxY:u};return h=yse(n,h),{x:h.minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}function xVt(n){var e=n.attr(),t=e.x,r=e.y,i=e.rx,a=e.ry;return{x:t-i,y:r-a,width:i*2,height:a*2}}Rm("rect",eUe);Rm("image",eUe);Rm("circle",tUe);Rm("marker",tUe);Rm("polyline",iVt);Rm("polygon",aVt);Rm("text",lVt);Rm("path",mVt);Rm("line",_Vt);Rm("ellipse",xVt);var SVt=function(n){Kn(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.item=r.item,i.canvasX=r.canvasX,i.canvasY=r.canvasY,i.wheelDelta=r.wheelDelta,i.detail=r.detail,i}return e}(Ize),iee=function(e){return"".concat(e,"-").concat(Math.random()).concat(Date.now())},mse=function(e){if(vn(e))switch(e.length){case 4:return e;case 3:return e.push(e[1]),e;case 2:return e.concat(e);case 1:return[e[0],e[0],e[0],e[0]];default:return[0,0,0,0]}if(on(e))return[e,e,e,e];if(rr(e)){var t=parseInt(e,10);return[t,t,t,t]}return[0,0,0,0]},wVt=function(e){var t=new SVt(e.type,e);return t.clientX=e.clientX,t.clientY=e.clientY,t.x=e.x,t.y=e.y,t.target=e.target,t.currentTarget=e.currentTarget,t.bubbles=!0,t.item=e.item,t},bVt=function(e){if(!e)return!1;for(var t=9,r=[1,0,0,0,1,0,0,0,1],i=0;ir&&(r=c),f>a&&(a=f)}var d=Math.floor(t),v=Math.floor(i),p=Math.ceil(r)-Math.floor(t),g=Math.ceil(a)-Math.floor(i);return{x:d,y:v,width:p,height:g,minX:t,minY:i,maxX:r,maxY:a}},EVt=function(e,t,r,i,a){t===void 0&&(t=15),r===void 0&&(r="quadratic"),i===void 0&&(i=void 0),a===void 0&&(a=void 0);for(var o=e.length,s=t*2,l=["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],u={},h=[],c={},f=0;f=0;return t?i?Math.PI*2-r:r:i?r:Math.PI*2-r}Ew.angleTo=IVt;function LVt(n,e,t){return t?(n[0]=e[1],n[1]=-1*e[0]):(n[0]=-1*e[1],n[1]=e[0]),n}Ew.vertical=LVt;var PVt=function(){function n(e){this.destroyed=!1,this.graph=e,this.destroyed=!1}return n.prototype.getViewCenter=function(){var e=this.getFormatPadding(),t=this.graph,r=this.graph.get("width"),i=t.get("height");return{x:(r-e[1]-e[3])/2+e[3],y:(i-e[0]-e[2])/2+e[0]}},n.prototype.fitCenter=function(e,t){var r=this.graph,i=r.get("group"),a,o=r.getNodes();if(o.length>r.get("optimizeThreshold")){var s=1/0,l=1/0,u=-1/0,h=-1/0;o.forEach(function(x){var S=x.getModel(),w=S.x,b=S.y;s>w&&(s=w),l>b&&(l=b),ug&&(m=g,console.warn("fitview failed, ratio out of range, ratio: %f",s,"graph maxzoom has been used instead"));var y=_Se(d,[["t",-a.x,-a.y],["s",m,m],["t",a.x,a.y]]),_=UD({animateCfg:r,callback:function(){e.setMatrix(y),u.emit("viewportchange",{action:"translate",matrix:d}),u.emit("viewportchange",{action:"zoom",matrix:y})}});e.stopAnimate(),e.setMatrix(t),e.animate(function(x){return{matrix:NQ(t,y,x)}},_)}},n.prototype.fitView=function(e,t){var r=this.graph,i=this.getFormatPadding(),a=r.get("width"),o=r.get("height"),s=r.get("group"),l=s.getMatrix()||[1,0,0,0,1,0,0,0,1];s.resetMatrix();var u,h=r.getNodes();if(h.length>r.get("optimizeThreshold")){var c=1/0,f=1/0,d=-1/0,v=-1/0;h.forEach(function(w){var b=w.getModel(),E=b.x,T=b.y;c>E&&(c=E),f>T&&(f=T),dy&&(_=y),e)this.animatedFitView(s,l,t,u,p,g,_,!0);else{var x=p.x-g.x,S=p.y-g.y;if(Py(x)||Py(S))return;r.translate(x,S),r.zoom(_,p)||console.warn("zoom failed, ratio out of range, ratio: %f",_)}}},n.prototype.fitViewByRules=function(e,t,r){var i=e.onlyOutOfViewPort,a=i===void 0?!1:i,o=e.direction,s=o===void 0?"both":o,l=e.ratioRule,u=l===void 0?"min":l,h=this.graph,c=this.getFormatPadding(),f=h.get("width"),d=h.get("height"),v=h.get("group"),p=v.getMatrix()||[1,0,0,0,1,0,0,0,1];v.resetMatrix();var g,m=h.getNodes();if(m.length>h.get("optimizeThreshold")){var y=1/0,_=1/0,x=-1/0,S=-1/0;m.forEach(function(R){var k=R.getModel(),D=k.x,G=k.y;y>D&&(y=D),_>G&&(_=G),xc.maxX&&(c.maxX=p.maxX),p.maxY>c.maxY&&(c.maxY=p.maxY)}if(c.x=c.minX,c.y=c.minY,c.width=c.maxX-c.minX,c.height=c.maxY-c.minY,!(c.width===0||c.height===0)){var g=this.getViewCenter(),m={x:c.x+c.width/2,y:c.y+c.height/2},y=(s-o[1]-o[3])/c.width,_=(l-o[0]-o[2])/c.height,x=y;y>_&&(x=_),r?this.animatedFitView(u,h,i,c,g,m,x,t):(a.translate(g.x-m.x,g.y-m.y),t&&!a.zoom(x,g)&&console.warn("zoom failed, ratio out of range, ratio: %f",x))}}},n.prototype.changeSize=function(e,t){var r=this.graph;if(!on(e)||!on(t))throw Error("invalid canvas width & height, please make sure width & height type is number");r.set({width:e,height:t});var i=r.get("canvas");i.changeSize(e,t);var a=r.get("plugins");a.forEach(function(o){o.get("gridContainer")&&o.positionInit()})},n.prototype.destroy=function(){this.graph=null,this.destroyed=!1},n}();function aee(n){return aee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aee(n)}function xSe(n){if(typeof n!="string")return n;var e=function(b){if(typeof b!="string")return b;try{return JSON.parse(b.trim())}catch{return b.trim()}},t=e(n);if(typeof t!="string")return t;for(var r=function(b){return b[b.length-1]},i=n.trim(),a=[],o=[],s=function(){for(var b=[],E=0;E=0&&(a.height=o),s>=0&&(a.width=s),i.marginTop&&(a.y+=i.marginTop),i.marginLeft&&(a.x+=i.marginLeft),a}function xUe(n,e){var t;e===void 0&&(e={x:0,y:0});var r=ve({x:0,y:0,width:0,height:0},e);if(!((t=n.children)===null||t===void 0)&&t.length){var i=n.attrs,a=i===void 0?{}:i,o=a.marginTop,s=ve({},e);o&&(s.y+=o);for(var l=0;lr.width&&(r.width=h.width+h.x),h.height+h.y>r.height&&(r.height=h.height+h.y)}}}return n.bbox=DVt(n,e,r),n.attrs=ve(ve({},n.attrs),n.bbox),n}function SUe(n,e){var t,r,i,a,o=(n||{}).type,s=((e==null?void 0:e.attrs)||{}).key;if(s&&n&&(n.attrs.key=s),!n&&e)return{action:"delete",val:e,type:o,key:s};if(n&&!e)return{action:"add",val:n,type:o};if(!n&&!e)return{action:"same",type:o};var l=[];if(((t=n.children)===null||t===void 0?void 0:t.length)>0||((r=e.children)===null||r===void 0?void 0:r.length)>0)for(var u=Math.max((i=n.children)===null||i===void 0?void 0:i.length,(a=e.children)===null||a===void 0?void 0:a.length),h=e.children||[],c=n.children||[],f=0;f"u"?i=iee(a):typeof i!="string"&&(i=String(i)),this.get("model").id=i,this.set("id",i);var o=e.group;o&&(o.set("item",this),o.set("id",i)),this.init(),this.draw();var s=r.shape||r.type||(a==="edge"?"line":"circle"),l=this.get("shapeFactory");if(l&&l[s]){var u=l[s].options;if(u&&u.stateStyles){var h=this.get("styles")||r.stateStyles;h=ms({},u.stateStyles,h),this.set("styles",h)}}}return n.prototype.calculateBBox=function(){var e=this.get("keyShape"),t=this.get("group"),r=p9(e,t);return r.x=r.minX,r.y=r.minY,r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r.centerX=(r.minX+r.maxX)/2,r.centerY=(r.minY+r.maxY)/2,r},n.prototype.calculateCanvasBBox=function(){var e=this.get("keyShape"),t=this.get("group"),r=p9(e,t);return r.x=r.minX,r.y=r.minY,r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r.centerX=(r.minX+r.maxX)/2,r.centerY=(r.minY+r.maxY)/2,r},n.prototype.drawInner=function(){var e=this,t=e.get("shapeFactory"),r=e.get("group"),i=e.get("model");r.clear();var a=i.visible;if(a!==void 0&&!a&&e.changeVisibility(a),!!t){e.updatePosition(i);var o=e.getShapeCfg(i),s=o.type,l=t.draw(s,o,r);l&&(e.set("keyShape",l),l.set("isKeyShape",!0),l.set("draggable",!0)),this.setOriginStyle(),this.set("currentShape",s),this.restoreStates(t,s)}},n.prototype.setOriginStyle=function(){var e=this.get("group"),t=e.get("children"),r=this.getKeyShape(),i=this,a=r.get("name");if(this.get("originStyle")){var d=this.get("originStyle");a&&!d[a]&&(d[a]={});for(var v=this.getCurrentStatesStyle(),p=function(m){var y=t[m],_=y.get("name"),x=y.attr();if(_&&_!==a){var S=v[_];d[_]||(d[_]={}),S?Object.keys(x).forEach(function(E){var T=x[E];T!==S[E]&&(d[_][E]=T)}):d[_]=y.get("type")!=="image"?Xi(x):i.getShapeStyleByName(_)}else{var w=y.attr(),b={};Object.keys(v).forEach(function(E){var T=v[E];(E===a||!kh(T))&&(b[E]=T)}),Object.keys(w).forEach(function(E){var T=w[E];b[E]!==T&&(a?d[a][E]=T:d[E]=T)})}},s=0;s-1)return;r.push(a)}else l>-1&&r.splice(l,1)}else if(rr(t)){var u=r.filter(function(f){return f.includes(o)});u.length>0&&this.clearStates(u),s=s.filter(function(f){return!f.includes(o)}),s.push(a),this.set("states",s)}if(i){var h=this.get("model"),c=h.type;i.setState(c,e,t,this)}},n.prototype.clearStates=function(e){var t=this,r=t.getStates(),i=t.get("shapeFactory"),a=t.get("model"),o=a.type;e||(e=r),rr(e)&&(e=[e]);var s=r.filter(function(l){return e.indexOf(l)===-1});t.set("states",s),e.forEach(function(l){i.setState(o,l,!1,t)})},n.prototype.setOptimize=function(e){this.optimize=e},n.prototype.getContainer=function(){return this.get("group")},n.prototype.getKeyShape=function(){return this.get("keyShape")},n.prototype.getModel=function(){return this.get("model")},n.prototype.getType=function(){return this.get("type")},n.prototype.getID=function(){return this.get("id")},n.prototype.isItem=function(){return!0},n.prototype.getStates=function(){return this.get("states")},n.prototype.hasState=function(e){var t=this.getStates();return t.indexOf(e)>=0},n.prototype.refresh=function(e){var t=this.get("model");this.updatePosition(t),this.updateShape(e),this.afterUpdate(),this.clearCache()},n.prototype.getUpdateType=function(e){},n.prototype.update=function(e,t){t===void 0&&(t=void 0);var r=this.get("model");if(t==="move")this.updatePosition(e);else{var i=r.visible,a=e.visible;i!==a&&a!==void 0&&this.changeVisibility(a);var o={x:r.x,y:r.y};e.x=isNaN(+e.x)?r.x:+e.x,e.y=isNaN(+e.y)?r.y:+e.y;var s=this.get("styles");if(e.stateStyles){var l=e.stateStyles;_n(s,l),delete e.stateStyles}Object.assign(r,e),(o.x!==e.x||o.y!==e.y)&&this.updatePosition(e),this.updateShape(t)}this.afterUpdate(),this.clearCache()},n.prototype.updateShape=function(e){var t=this.get("shapeFactory"),r=this.get("model"),i=r.type;if(t.shouldUpdate(i)&&i===this.get("currentShape")){var a=this.getShapeCfg(r,e);t.baseUpdate(i,a,this,e),e!=="move"&&this.setOriginStyle()}else this.draw();this.restoreStates(t,i)},n.prototype.updatePosition=function(e){var t=this.get("model"),r=isNaN(+e.x)?+t.x:+e.x,i=isNaN(+e.y)?+t.y:+e.y,a=this.get("group");if(isNaN(r)||isNaN(i))return!1;t.x=r,t.y=i;var o=a.getMatrix();return o&&o[6]===r&&o[7]===i?!1:(a.resetMatrix(),cze(a,{x:r,y:i}),this.clearCache(),!0)},n.prototype.getBBox=function(){var e=this.get(NX);return e||(e=this.calculateBBox(),this.set(NX,e)),e},n.prototype.getCanvasBBox=function(){var e=this.get(kX);return e||(e=this.calculateCanvasBBox(),this.set(kX,e)),e},n.prototype.toFront=function(){var e=this.get("group");e.toFront()},n.prototype.toBack=function(){var e=this.get("group");e.toBack()},n.prototype.show=function(){this.changeVisibility(!0)},n.prototype.hide=function(){this.changeVisibility(!1)},n.prototype.changeVisibility=function(e){var t=this.get("group");e?t.show():t.hide(),this.set("visible",e)},n.prototype.isVisible=function(){return this.get("visible")},n.prototype.enableCapture=function(e){var t=this.get("group");t&&t.set("capture",e)},n.prototype.destroy=function(){if(!this.destroyed){var e=this.get("animate"),t=this.get("group");e&&t.stopAnimate(),t.shapeMap={},this.clearCache(),t.remove(),this._cfg=null,this.destroyed=!0}},n}(),v5={source:"start",target:"end"},iy="Node",lC="Point",kVt="Anchor",bUe=function(n){Kn(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}},e.prototype.setEnd=function(t,r){var i=v5[t]+lC,a=t+iy,o=this.get(a);o&&!o.destroyed&&o.removeEdge(this),kh(r)?(this.set(i,r),this.set(a,null)):r&&(r.addEdge(this),this.set(a,r),this.set(i,null))},e.prototype.getLinkPoint=function(t,r,i){var a=v5[t]+lC,o=t+iy,s=this.get(a);if(!s){var l=this.get(o),u=t+kVt,h=this.getPrePoint(t,i),c=r[u];an(c)||(s=l.getLinkPointByAnchor(c)),s=s||l.getLinkPoint(h),an(s.index)||this.set("".concat(t,"AnchorIndex"),s.index)}return s},e.prototype.getPrePoint=function(t,r){if(r&&r.length){var i=t==="source"?0:r.length-1;return r[i]}var a=t==="source"?"target":"source";return this.getEndPoint(a)},e.prototype.getEndPoint=function(t){var r=t+iy,i=v5[t]+lC,a=this.get(r);return a&&!a.destroyed?a.get("model"):this.get(i)},e.prototype.getControlPointsByCenter=function(t){var r=this.getEndPoint("source"),i=this.getEndPoint("target"),a=this.get("shapeFactory"),o=t.type;return a.getControlPoints(o,{startPoint:r,endPoint:i})},e.prototype.getEndCenter=function(t){var r=t+iy,i=v5[t]+lC,a=this.get(r);if(a){var o=a.getBBox();return{x:o.centerX,y:o.centerY}}return this.get(i)},e.prototype.init=function(){n.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"))},e.prototype.getShapeCfg=function(t,r){var i=this,a=i.get("linkCenter"),o=r!=null&&r.includes("move")?t:n.prototype.getShapeCfg.call(this,t);if(a)o.startPoint=i.getEndCenter("source"),o.endPoint=i.getEndCenter("target");else{var s=o.controlPoints||i.getControlPointsByCenter(o);o.startPoint=i.getLinkPoint("source",t,s),o.endPoint=i.getLinkPoint("target",t,s)}return o.sourceNode=i.get("sourceNode"),o.targetNode=i.get("targetNode"),o},e.prototype.getModel=function(){var t=this.get("model"),r=this.get("source".concat(iy)),i=this.get("target".concat(iy));return r?delete t["source".concat(iy)]:t.source=this.get("start".concat(lC)),i?delete t["target".concat(iy)]:t.target=this.get("end".concat(lC)),!rr(t.source)&&!kh(t.source)&&(t.source=t.source.getID()),!rr(t.target)&&!kh(t.target)&&(t.target=t.target.getID()),t},e.prototype.setSource=function(t){this.setEnd("source",t),this.set("source",t)},e.prototype.setTarget=function(t){this.setEnd("target",t),this.set("target",t)},e.prototype.getSource=function(){return this.get("source")},e.prototype.getTarget=function(){return this.get("target")},e.prototype.updatePosition=function(){return!1},e.prototype.update=function(t,r){r===void 0&&(r=void 0);var i=this.get("model"),a=i.visible,o=t.visible;a!==o&&o!==void 0&&this.changeVisibility(o);var s=this.get("source"),l=this.get("target");if(!(!s||s.destroyed||!l||l.destroyed)){var u=this.get("styles");if(t.stateStyles){var h=t.stateStyles;_n(u,h),delete t.stateStyles}Object.assign(i,t),this.updateShape(r),this.afterUpdate(),this.clearCache()}},e.prototype.destroy=function(){var t=this.get("source".concat(iy)),r=this.get("target".concat(iy));t&&!t.destroyed&&t.removeEdge(this),r&&!r.destroyed&&r.removeEdge(this),n.prototype.destroy.call(this)},e}(wUe),FX="anchorPointsCache",FVt="bboxCache",_se=function(n){Kn(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getNearestPoint=function(t,r){for(var i=0,a=t[0],o=d9(t[0],r),s=0;s-1&&r.splice(i,1)},e.prototype.clearCache=function(){this.set(FVt,null),this.set(FX,null)},e.prototype.getUpdateType=function(t){var r,i,a,o,s;if(!!t){var l=!an(t.x),u=!an(t.y),h=Object.keys(t);if(h.length===1&&(l||u)||h.length===2&&l&&u)return"move";if(on(t.x)||on(t.y)||t.type||t.anchorPoints||t.size||(t==null?void 0:t.style)&&(((r=t==null?void 0:t.style)===null||r===void 0?void 0:r.r)||((i=t==null?void 0:t.style)===null||i===void 0?void 0:i.width)||((a=t==null?void 0:t.style)===null||a===void 0?void 0:a.height)||((o=t==null?void 0:t.style)===null||o===void 0?void 0:o.rx)||((s=t==null?void 0:t.style)===null||s===void 0?void 0:s.ry)))return"bbox|label";var c=h.includes("label")||h.includes("labelCfg");return c?"style|label":"style"}},e.prototype.setState=function(t,r){var i=this;if(this.optimize){n.prototype.setState.call(this,t,r);return}this.runWithBBoxAffected(function(){return n.prototype.setState.call(i,t,r)})},e.prototype.clearStates=function(t){var r=this;if(this.optimize){n.prototype.clearStates.call(this,t);return}this.runWithBBoxAffected(function(){return n.prototype.clearStates.call(r,t)})},e.prototype.runWithBBoxAffected=function(t){var r=["r","width","height","rx","ry","lineWidth"],i=this.getKeyShape().attr(),a={};Object.keys(this.getKeyShape().attr()).forEach(function(u){r.includes(u)&&(a[u]=i[u])}),t();for(var o=this.getKeyShape().attr(),s=0;s-1?(r.splice(i,1),!0):!1}},e.prototype.removeNode=function(t){if(!!t){var r=this.getNodes(),i=r.indexOf(t);return i>-1?(r.splice(i,1),!0):!1}},e.prototype.getUpdateType=function(t){},e.prototype.getBBox=function(){this.set(ESe,null);var t=this.calculateCanvasBBox();return t},e.prototype.clearCache=function(){this.set(bSe,null),this.set(ESe,null),this.set(TSe,null)},e.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),r=this.get("group");t&&r.stopAnimate(),r.shapeMap={},this.clearCache(),this.set(p5,null),this.set("bbox",null),r.remove(),this._cfg=null,this.destroyed=!0}},e}(_se),g5="node",y5="edge",CSe="vedge",mP="combo",BVt="default",ASe="Mapper",Jm="stateStyles",GVt=function(){function n(e){var t=this;this.edgeToBeUpdateMap={},this.throttleRefresh=FD(function(r){var i=t.graph;if(!(!i||i.get("destroyed"))){var a=t.edgeToBeUpdateMap;if(!!a){var o=Object.values(a);!o.length||(o.forEach(function(s){var l=s.edge;if(!(!l||l.destroyed)){var u=l.getSource(),h=l.getTarget();!u||u.destroyed||!h||h.destroyed||l.refresh(s.updateType)}}),t.edgeToBeUpdateMap={})}}},16,{trailing:!0,leading:!0}),this.graph=e,this.destroyed=!1}return n.prototype.addItem=function(e,t){var r=this.graph,i=e===CSe?y5:e,a=r.get("".concat(i,"Group"))||r.get("group"),o=bM(i),s=null,l=r.get(i+bM(Jm))||{},u=r.get(BVt+o);t[Jm]&&(l=t[Jm]),u&&At(u,function(w,b){Wh(w)&&!vn(w)?t[b]=ms({},w,t[b]):vn(w)?t[b]=t[b]||Xi(u[b]):t[b]=t[b]||u[b]});var h=r.get(i+ASe);if(h){var c=h(t);c[Jm]&&(l=c[Jm],delete c[Jm]),At(c,function(w,b){Wh(w)&&!vn(w)?t[b]=ms({},t[b],w):t[b]=c[b]||t[b]})}if(r.emit("beforeadditem",{type:e,model:t}),e===y5||e===CSe){var f=void 0,d=void 0;if(f=t.source,d=t.target,f&&rr(f)&&(f=r.findById(f)),d&&rr(d)&&(d=r.findById(d)),!f||!d){console.warn("The source or target node of edge ".concat(t.id," does not exist!"));return}f.getType&&f.getType()==="combo"&&(t.isComboEdge=!0),d.getType&&d.getType()==="combo"&&(t.isComboEdge=!0),s=new bUe({model:t,source:f,target:d,styles:l,linkCenter:r.get("linkCenter"),group:a.addGroup()})}else if(e===g5)s=new _se({model:t,styles:l,group:a.addGroup()});else if(e===mP){var v=t.children,p=WB(v,r),g=void 0,m=void 0;if(isNaN(p.x)?isNaN(t.x)&&(g=Math.random()*100):g=p.x,isNaN(p.y)?isNaN(t.y)&&(m=Math.random()*100):m=p.y,isNaN(t.x)||isNaN(t.y))t.x=g,t.y=m;else{var y=t.x-g,_=t.y-m;this.updateComboSucceeds(t.id,y,_,v)}var x=a.addGroup();x.setZIndex(t.depth),s=new EUe({model:t,styles:l,animate:r.get("animate"),bbox:t.collapsed?WB([],r):p,group:x}),!t.collapsed&&s.getKeyShape().get("type")==="circle"&&(p.width=Math.hypot(p.height,p.width),p.height=p.width,s.set("bbox",p),s.refresh());var S=s.getModel();(v||[]).forEach(function(w){var b=r.findById(w.id);s.addChild(b),w.depth=S.depth+2})}if(s)return s.setOptimize(r.getNodes().length>r.get("optimizeThreshold")),r.get("".concat(e,"s")).push(s),r.get("itemMap")[s.get("id")]=s,r.emit("afteradditem",{item:s,model:t}),s},n.prototype.updateItem=function(e,t){var r=this,i,a,o=this.graph;if(rr(e)&&(e=o.findById(e)),!(!e||e.destroyed)){var s="";e.getType&&(s=e.getType());var l=o.get(s+ASe),u=e.getModel(),h=u.x,c=u.y,f=e.getUpdateType(t);if(l){var d=ms({},u,t),v=l(d),p=ms({},u,v,t);v[Jm]&&(e.set("styles",p[Jm]),delete p[Jm]),At(p,function(C,A){t[A]=C})}else At(t,function(C,A){u[A]&&Wh(C)&&!vn(C)&&(t[A]=ve(ve({},u[A]),t[A]))});if(o.emit("beforeupdateitem",{item:e,cfg:t}),s===y5){if(t.source){var g=t.source;rr(g)&&(g=o.findById(g)),e.setSource(g)}if(t.target){var m=t.target;rr(m)&&(m=o.findById(m)),e.setTarget(m)}e.update(t)}else if(s===g5){e.update(t,f);var y=e.getEdges();f==="move"?At(y,function(C){r.edgeToBeUpdateMap[C.getID()]={edge:C,updateType:f},r.throttleRefresh()}):f!=null&&f.includes("bbox")&&At(y,function(C){C.refresh(f)})}else if(s===mP){if(e.update(t,f),!isNaN(t.x)||!isNaN(t.y)){var _=t.x-h||0,x=t.y-c||0;this.updateComboSucceeds(u.id,_,x)}var S=e.getEdges(),w=(f==null?void 0:f.includes("bbox"))||f==="move";if(w&&s===mP){var b=e.get("shapeFactory"),E=u.type||"circle",T=u.animate===void 0||t.animate===void 0?(a=(i=b[E])===null||i===void 0?void 0:i.options)===null||a===void 0?void 0:a.animate:u.animate||t.animate;T?setTimeout(function(){if(!(!e||e.destroyed)){var C=e.getKeyShape();!C||C.destroyed||At(S,function(A){A&&!A.destroyed&&A.refresh()})}},201):At(S,function(C){C.refresh()})}}e.setOptimize(o.getNodes().length>o.get("optimizeThreshold")),o.emit("afterupdateitem",{item:e,cfg:t})}},n.prototype.updateCombo=function(e,t,r){var i=this,a,o,s=this.graph;if(rr(e)&&(e=s.findById(e)),!(!e||e.destroyed)){var l=e.getModel(),u=WB(t,s,e),h=u.x,c=u.y;e.set("bbox",u);var f=h,d=c;r?(f=isNaN(l.x)?h:l.x,d=isNaN(l.y)?c:l.y):(f=isNaN(h)?l.x:h,d=isNaN(c)?l.y:c),e.update({x:f,y:d});var v=e.get("shapeFactory"),p=l.type||"circle",g=l.animate===void 0?(o=(a=v[p])===null||a===void 0?void 0:a.options)===null||o===void 0?void 0:o.animate:l.animate;g?setTimeout(function(){if(!(!e||e.destroyed)){var m=e.getKeyShape();!m||m.destroyed||(e.getShapeCfg(l),i.updateComboEdges(e))}},201):this.updateComboEdges(e)}},n.prototype.updateComboEdges=function(e){for(var t,r,i=e.getEdges()||[],a=0;a-1&&o.splice(s,1),a===y5){var l=r.get("v".concat(a,"s")),u=l.indexOf(e);u>-1&&l.splice(u,1)}var h=e.get("id"),c=r.get("itemMap");delete c[h];var f=r.get("comboTrees"),d=e.get("id");if(a===g5){var v=e.getModel().comboId;if(f&&v){var p=f,g=!1;f.forEach(function(w){g||Fc(w,function(b){if(b.id===d&&p){var E=p.indexOf(b);return p.splice(E,1),g=!0,!1}return p=b.children,!0})})}for(var m=e.getEdges(),y=m.length-1;y>=0;y--)r.removeItem(m[y],!1);v&&r.updateCombo(v)}else if(a===mP){var _=e.getModel().parentId,x,S=!1;(f||[]).forEach(function(b){S||Fc(b,function(E){return E.id===d?(x=E,S=!0,!1):!0})}),x.removed=!0,x&&x.children&&x.children.forEach(function(b){t.removeItem(b.id)});for(var m=e.getEdges(),y=m.length;y>=0;y--)r.removeItem(m[y],!1);_&&r.updateCombo(_)}e.destroy(),r.emit("afterremoveitem",{item:i,type:a})}},n.prototype.setItemState=function(e,t,r){var i=this.graph,a=t;rr(r)&&(a="".concat(t,":").concat(r)),!(e.hasState(a)===r&&r||rr(r)&&e.hasState(a))&&(i.emit("beforeitemstatechange",{item:e,state:a,enabled:r}),e.setState(t,r),i.autoPaint(),i.emit("afteritemstatechange",{item:e,state:a,enabled:r}))},n.prototype.priorityState=function(e,t){var r=this.graph,i=e;rr(e)&&(i=r.findById(e)),this.setItemState(i,t,!1),this.setItemState(i,t,!0)},n.prototype.clearItemStates=function(e,t){var r=this.graph;rr(e)&&(e=r.findById(e)),r.emit("beforeitemstatesclear",{item:e,states:t}),e.clearStates(t),r.emit("afteritemstatesclear",{item:e,states:t})},n.prototype.refreshItem=function(e){var t=this.graph;rr(e)&&(e=t.findById(e)),t.emit("beforeitemrefresh",{item:e}),e.refresh(),t.emit("afteritemrefresh",{item:e})},n.prototype.addCombos=function(e,t){var r=this,i=this.graph;(e||[]).forEach(function(o){xy(o,function(s){var l;return t.forEach(function(u){u.id===s.id&&(u.children=s.children,u.depth=s.depth,l=u)}),l&&r.addItem("combo",l),!0})});var a=i.get("comboGroup");a&&a.sort()},n.prototype.changeItemVisibility=function(e,t){var r=this,i=this.graph;if(rr(e)&&(e=i.findById(e)),!e){console.warn("The item to be shown or hidden does not exist!");return}if(i.emit("beforeitemvisibilitychange",{item:e,visible:t}),e.changeVisibility(t),e.getType&&e.getType()===g5){var a=e.getEdges();At(a,function(h){t&&!(h.get("source").isVisible()&&h.get("target").isVisible())||r.changeItemVisibility(h,t)})}else if(e.getType&&e.getType()===mP){var o=i.get("comboTrees"),s=e.get("id"),l=[],u=!1;(o||[]).forEach(function(c){u||!c.children||c.children.length===0||Fc(c,function(f){return f.id===s?(l=f.children,u=!0,!1):!0})}),l&&(!t||t&&!e.getModel().collapsed)&&l.forEach(function(c){var f=i.findById(c.id);r.changeItemVisibility(f,t)});var a=e.getEdges();At(a,function(c){t&&!(c.get("source").isVisible()&&c.get("target").isVisible())||r.changeItemVisibility(c,t)})}return i.emit("afteritemvisibilitychange",{item:e,visible:t}),e},n.prototype.destroy=function(){this.graph=null,this.destroyed=!0},n}(),zVt=function(){function n(e){this.graph=e,this.destroyed=!1}return n.prototype.updateState=function(e,t,r){var i=this.graph.get("states"),a=t;rr(r)&&(a="".concat(t,":").concat(r)),i[a]||(i[a]=[]),r?i[a].push(e):i[a]=i[a].filter(function(o){return o!==e}),this.graph.set("states",i),this.graph.emit("graphstatechange",{states:i})},n.prototype.updateStates=function(e,t,r){var i=this.graph.get("states"),a=rr(t)?[t]:t;a.forEach(function(o){var s=o;i[s]||(i[s]=[]),rr(r)&&(s="".concat(o,":").concat(r)),r?i[s].push(e):i[s]=i[s].filter(function(l){return l!==e})}),this.graph.set("states",i),this.graph.emit("graphstatechange",{states:t})},n.prototype.destroy=function(){this.graph=null,this.destroyed=!0},n}(),UVt=function(e,t){return!e||!t?e:e.replace(/\\?\{([^{}]+)\}/g,function(r,i){if(r.charAt(0)==="\\")return r.slice(1);var a=t[i];return a===0&&(a="0"),a||""})},TUe=function(e){var t=[];if(e.length<2)throw new Error("point length must largn than 2, now it's ".concat(e.length));for(var r=0,i=e;r0?o-1:t-1,l=SS([0,0],Oh([0,0],a[s].v,Gc([0,0],a[o].v,-1)));a[o].p=Oh([0,0],a[o].p,Gc([0,0],l,e))}return a.map(function(u){var h=u.p;return{x:h[0],y:h[1]}})}var $Vt=function(e,t){for(var r=[],i=0;i<5;i++){var a=Math.cos((18+72*i)/180*Math.PI)*e,o=Math.sin((18+72*i)/180*Math.PI)*e,s=Math.cos((54+72*i)/180*Math.PI)*t,l=Math.sin((54+72*i)/180*Math.PI)*t;i===0?r.push(["M",a,-o]):r.push(["L",a,-o]),r.push(["L",s,-l])}return r.push(["Z"]),r};const WVt=Object.freeze(Object.defineProperty({__proto__:null,getSpline:TUe,getControlPoint:S9,pointsToPolygon:VVt,pathToPoints:oee,getClosedSpline:see,roundedHull:lee,paddedHull:CUe,getStarPath:$Vt},Symbol.toStringTag,{value:"Module"}));var PSe=function(e,t,r){return(e.y-r.y)*(t.x-r.x)-(e.x-r.x)*(t.y-r.y)},OSe=function(e){var t=e.map(function(c){return{x:c.getModel().x,y:c.getModel().y}});t.sort(function(c,f){return c.x===f.x?c.y-f.y:c.x-f.x});for(var r={},i=t.length-1;i>=0;i--){var a=t[i],o=a.x,s=a.y;r["".concat(o,"-").concat(s)]&&t.splice(i,1),r["".concat(o,"-").concat(s)]=!0}if(t.length===1)return t;for(var l=[],i=0;i=2&&PSe(l[l.length-2],l[l.length-1],t[i])<=0;)l.pop();l.push(t[i])}for(var u=[],i=t.length-1;i>=0;i--){for(;u.length>=2&&PSe(u[u.length-2],u[u.length-1],t[i])<=0;)u.pop();u.push(t[i])}u.pop(),l.pop();var h=l.concat(u);return h},HVt={maxRoutingIterations:100,maxMarchingIterations:100,pixelGroupSize:2,edgeR0:10,edgeR1:10,nodeR0:5,nodeR1:10,morphBuffer:5,threshold:.001,skip:16,nodeInfluenceFactor:1,edgeInfluenceFactor:1,negativeNodeInfluenceFactor:-.5};function jVt(n,e,t){var r=!1,i=function(l,u){return e.cells[l+u*e.width]},a=function(l,u){var h=0;return i(l-1,u-1)>=t&&(h+=1),i(l,u-1)>t&&(h+=2),i(l-1,u)>t&&(h+=4),i(l,u)>t&&(h+=8),h},o=function(l,u){for(var h=l,c=u,f,d,v=0;v-1){if(!(n[0].x!==h||n[0].y!==c))return!0}else n.push({x:h,y:c});var p=a(h,c);switch(p){case-1:return console.warn("Marched out of bounds"),!0;case 0:case 3:case 2:case 7:h++;break;case 12:case 14:case 4:h--;break;case 6:f===0&&(d===-1?h-=1:h+=1);break;case 1:case 13:case 5:c--;break;case 9:f===1&&(d===0?c-=1:c+=1);break;case 10:case 8:case 11:c++;break;default:return console.warn("Marching squares invalid state: ".concat(p)),!0}}};this.march=function(){for(var s=0;st&&a(s,l)!==15&&(r=o(s,l));return r}}var XVt=function(e,t,r){var i=Math.ceil(e/r),a=Math.ceil(t/r),o=new Float32Array(Math.max(0,i*a)).fill(0);return{cells:o,width:i,height:a}},YVt=function(e,t,r){var i=null,a=Number.POSITIVE_INFINITY;return t.forEach(function(o){var s={x:e.getModel().x,y:e.getModel().y},l={x:o.getModel().x,y:o.getModel().y},u=v9(s,l),h=new a2(s.x,s.y,l.x,l.y),c=r.reduce(function(f,d){return lse(d,h)>0?f+1:f},0);u*Math.pow(c+1,2)=0&&o=1;)S/=1.5,w=RSe(v,S,g,x),b=u(w,o)||u(w,a),E=h(w,t);w&&!b&&(!x||!E)&&(o.push(new a2(d.x1,d.y1,w.x,w.y)),o.push(new a2(w.x,w.y,d.x2,d.y2)),s=!0)};y(!0),s||y(!1)}}s||a.push(d),l+=1};!s&&o.length;)c()}for(;o.length;)a.push(o.pop());return a};function ZVt(n,e,t,r,i){var a=YVt(n,t,e);if(a===null)return[];var o=function(c){for(var f=[];c.length>0;){var d=c.pop();if(c.length===0){f.push(d);break}var v=c.pop(),p=new a2(d.x1,d.y1,v.x2,v.y2),g=AUe(e,p);g?(f.push(d),c.push(v)):c.push(p)}return f},s=new a2(n.getModel().x,n.getModel().y,a.getModel().x,a.getModel().y),l=qVt(s,e,r,i),u=o(l);return u}var KVt=function(e,t,r){var i=Object.assign(HVt,r),a=pze(e.map(function(y){return{x:y.getModel().x,y:y.getModel().y}}));e=e.sort(function(y,_){return v9({x:y.getModel().x,y:y.getModel().y},a)-v9({x:_.getModel().x,y:_.getModel().y},a)});var o=[],s=[];e.forEach(function(y){var _=ZVt(y,t,o,i.maxRoutingIterations,i.morphBuffer);_.forEach(function(x){s.push(x)}),o.push(y)});for(var l=JVt(e,s,i.nodeR0),u=XVt(l.width,l.height,i.pixelGroupSize),h=[],c=[],f=0;f1)for(v=Math.floor(d.length/i.skip);v<3&&i.skip>1;)i.skip-=1,v=Math.floor(d.length/i.skip);for(var p=0,g=0;g0)i.nonMemberInfluenceFactor*=.8;else break}return c};function JVt(n,e,t){var r={minX:Number.POSITIVE_INFINITY,minY:Number.POSITIVE_INFINITY,maxX:Number.NEGATIVE_INFINITY,maxY:Number.NEGATIVE_INFINITY,width:0,height:0,x:0,y:0},i=[];n.forEach(function(l){i.push(l.getBBox())}),e.forEach(function(l){i.push(l.getBBox())});for(var a=0,o=i;ar.maxX?s.maxX:r.maxX)+t,r.maxY=(s.maxY>r.maxY?s.maxY:r.maxY)+t}return r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r.x=r.minX,r.y=r.minY,r}function QVt(n,e,t,r,i,a){function o(d,v){var p=Math.floor((d-v)/a.pixelGroupSize);return p<0?0:p}function s(d,v){return d*a.pixelGroupSize+v}var l=(a.nodeR0-a.nodeR1)*(a.nodeR0-a.nodeR1),u=(a.edgeR0-a.edgeR1)*(a.edgeR0-a.edgeR1),h=function(v,p){var g=Math.min(o(v.minX,p+r.minX),i.width),m=Math.min(o(v.minY,p+r.minY),i.height),y=Math.min(o(v.maxX,-p+r.minX),i.width),_=Math.min(o(v.maxY,-p+r.minY),i.height);return[g,m,y,_]},c=function(v,p){for(var g=v.getBBox(),m=h(g,a.nodeR1),y=m[0],_=m[1],x=m[2],S=m[3],w=_;wl.y?r?u.topLeft:u.bottomRight:r?u.topRight:u.bottomLeft:o.ys.x?r?u.topLeft:u.bottomRight:r?u.bottomLeft:u.topRight:a.x0?this.cfg.padding+e:10+e,this.cfg.bubbleCfg={nodeR0:this.padding-e,nodeR1:this.padding-e,morphBuffer:this.padding-e}},n.prototype.setType=function(){this.type=this.cfg.type,this.members.length<3&&(this.type="round-convex"),this.type!=="round-convex"&&this.type!=="smooth-convex"&&this.type!=="bubble"&&(console.warn("The hull type should be either round-convex, smooth-convex or bubble, round-convex is used by default."),this.type="round-convex")},n.prototype.calcPath=function(e,t){var r,i,a;switch(this.type){case"round-convex":r=OSe(e),a=lee(r.map(function(o){return[o.x,o.y]}),this.padding),i=tee(a);break;case"smooth-convex":r=OSe(e),r.length===2?(a=lee(r.map(function(o){return[o.x,o.y]}),this.padding),i=tee(a)):r.length>2&&(a=CUe(r.map(function(o){return[o.x,o.y]}),this.padding),i=see(a));break;case"bubble":r=KVt(e,t,this.cfg.bubbleCfg),i=r.length>=2&&see(r);break}return i},n.prototype.render=function(){this.group.addShape("path",{attrs:ve({path:this.path},this.cfg.style),id:this.id,name:this.cfg.id,capture:!1}),this.group.toBack()},n.prototype.addMember=function(e){if(!!e){rr(e)&&(e=this.graph.findById(e)),this.members.push(e);var t=this.nonMembers.indexOf(e);return t>-1&&this.nonMembers.splice(t,1),this.updateData(this.members,this.nonMembers),!0}},n.prototype.addNonMember=function(e){if(!!e){rr(e)&&(e=this.graph.findById(e)),this.nonMembers.push(e);var t=this.members.indexOf(e);return t>-1&&this.members.splice(t,1),this.updateData(this.members,this.nonMembers),!0}},n.prototype.removeMember=function(e){if(!!e){rr(e)&&(e=this.graph.findById(e));var t=this.members.indexOf(e);return t>-1?(this.members.splice(t,1),this.updateData(this.members,this.nonMembers),!0):!1}},n.prototype.removeNonMember=function(e){if(!!e){rr(e)&&(e=this.graph.findById(e));var t=this.nonMembers.indexOf(e);return t>-1?(this.nonMembers.splice(t,1),this.updateData(this.members,this.nonMembers),!0):!1}},n.prototype.updateData=function(e,t){var r=this;this.group.findById(this.id).remove(),e&&(this.members=e.map(function(i){return rr(i)?r.graph.findById(i):i})),t&&(this.nonMembers=t.map(function(i){return rr(i)?r.graph.findById(i):i})),this.path=this.calcPath(this.members,this.nonMembers),this.render()},n.prototype.updateStyle=function(e){var t=this.group.findById(this.id);t.attr(ve({},e))},n.prototype.updateCfg=function(e){var t=this;this.cfg=ms(this.cfg,e),this.id=this.cfg.id,this.group=this.cfg.group,e.members&&(this.members=this.cfg.members.map(function(r){return rr(r)?t.graph.findById(r):r})),e.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map(function(r){return rr(r)?t.graph.findById(r):r})),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()},n.prototype.contain=function(e){var t=this,r;rr(e)?r=this.graph.findById(e):r=e;var i,a=r.getKeyShape();if(r.get("type")==="path")i=oee(a.attr("path"));else{var o=a.getCanvasBBox();i=[[o.minX,o.minY],[o.maxX,o.minY],[o.maxX,o.maxY],[o.minX,o.maxY]]}return i=i.map(function(s){var l=t.graph.getPointByCanvas(s[0],s[1]);return[l.x,l.y]}),dze(i,oee(this.path))},n.prototype.destroy=function(){this.group.remove(),this.cfg=null},n}(),_P=sg,e$t="node",IUe=function(n){Kn(e,n);function e(t){var r=n.call(this)||this;return r.sortCombos=U3(function(){var i=r.get("comboSorted");if(!(!r||r.destroyed||i)){r.set("comboSorted",!0);var a=[],o={},s=r.get("comboTrees");(s||[]).forEach(function(u){Fc(u,function(h){return a[h.depth]?a[h.depth].push(h.id):a[h.depth]=[h.id],o[h.id]=h.depth,!0})});var l=r.getEdges().concat(r.get("vedges"));(l||[]).forEach(function(u){var h=u.getModel(),c=o[h.source]||0,f=o[h.target]||0,d=Math.max(c,f);a[d]?a[d].push(h.id):a[d]=[h.id]}),a.forEach(function(u){if(!(!u||!u.length))for(var h=u.length-1;h>=0;h--){var c=r.findById(u[h]);c&&c.toFront()}})}},500,!1),r.cfg=ms(r.getDefaultCfg(),t),r.init(),r.animating=!1,r.destroyed=!1,r.cfg.enabledStack&&(r.undoStack=new pA(r.cfg.maxStep),r.redoStack=new pA(r.cfg.maxStep)),r}return e.prototype.init=function(){this.initCanvas();var t=new PVt(this),r=new Y7t(this),i=new GVt(this),a=new zVt(this);this.set({viewController:t,modeController:r,itemController:i,stateController:a}),this.initLayoutController(),this.initEventController(),this.initGroups(),this.initPlugins()},e.prototype.initGroups=function(){var t=this.get("canvas");if(!!t){var r=t.get("el"),i=(r||{}).id,a=i===void 0?"g6":i,o=t.addGroup({id:"".concat(a,"-root"),className:tn.rootContainerClassName});if(this.get("groupByTypes")){var s=o.addGroup({id:"".concat(a,"-edge"),className:tn.edgeContainerClassName}),l=o.addGroup({id:"".concat(a,"-node"),className:tn.nodeContainerClassName}),u=o.addGroup({id:"".concat(a,"-combo"),className:tn.comboContainerClassName});u.toBack(),this.set({nodeGroup:l,edgeGroup:s,comboGroup:u})}var h=o.addGroup({id:"".concat(a,"-delegate"),className:tn.delegateContainerClassName});this.set({delegateGroup:h}),this.set("group",o)}},e.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.02,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,enabledStack:!1,maxStep:10,tooltips:[],optimizeThreshold:1e3}},e.prototype.set=function(t,r){return kh(t)?this.cfg=ve(ve({},this.cfg),t):this.cfg[t]=r,t==="enabledStack"&&r&&!this.undoStack&&!this.redoStack&&(this.undoStack=new pA(this.cfg.maxStep),this.redoStack=new pA(this.cfg.maxStep)),this},e.prototype.get=function(t){var r;return(r=this.cfg)===null||r===void 0?void 0:r[t]},e.prototype.getGroup=function(){return this.get("group")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.getMinZoom=function(){return this.get("minZoom")},e.prototype.setMinZoom=function(t){return this.set("minZoom",t)},e.prototype.getMaxZoom=function(){return this.get("maxZoom")},e.prototype.setMaxZoom=function(t){return this.set("maxZoom",t)},e.prototype.getWidth=function(){return this.get("width")},e.prototype.getHeight=function(){return this.get("height")},e.prototype.clearItemStates=function(t,r){rr(t)&&(t=this.findById(t));var i=this.get("itemController");r||(r=t.get("states")),i.clearItemStates(t,r);var a=this.get("stateController");a.updateStates(t,r,!1)},e.prototype.node=function(t){typeof t=="function"&&this.set("nodeMapper",t)},e.prototype.edge=function(t){typeof t=="function"&&this.set("edgeMapper",t)},e.prototype.combo=function(t){typeof t=="function"&&this.set("comboMapper",t)},e.prototype.findById=function(t){return this.get("itemMap")[t]},e.prototype.find=function(t,r){var i,a=this.get("".concat(t,"s"));return At(a,function(o,s){if(r(o,s))return i=o,i}),i},e.prototype.findAll=function(t,r){var i=[];return At(this.get("".concat(t,"s")),function(a,o){r(a,o)&&i.push(a)}),i},e.prototype.findAllByState=function(t,r,i){return i?this.findAll(t,function(a){return a.hasState(r)&&i(a)}):this.findAll(t,function(a){return a.hasState(r)})},e.prototype.translate=function(t,r,i,a){var o=this,s=this.get("group"),l=Xi(s.getMatrix());if(l||(l=[1,0,0,0,1,0,0,0,1]),i){var u=UD({animateCfg:a,callback:function(){return o.emit("viewportchange",{action:"translate",matrix:s.getMatrix()})}});RQ(s,{x:s.getCanvasBBox().x+t,y:s.getCanvasBBox().y+r},i,u||{duration:500,easing:"easeCubic"})}else l=_P(l,[["t",t,r]]),s.setMatrix(l),this.emit("viewportchange",{action:"translate",matrix:l}),this.autoPaint()},e.prototype.moveTo=function(t,r,i,a){var o=this.get("group");RQ(o,{x:t,y:r},i,a||{duration:500,easing:"easeCubic"}),this.emit("viewportchange",{action:"move",matrix:o.getMatrix()})},e.prototype.fitView=function(t,r,i,a){t&&this.set("fitViewPadding",t);var o=this.get("viewController");r?o.fitViewByRules(r,i,a):o.fitView(i,a),this.autoPaint()},e.prototype.fitCenter=function(t,r){var i=this.get("viewController");i.fitCenter(t,r),this.autoPaint()},e.prototype.addBehaviors=function(t,r){var i=this.get("modeController");return i.manipulateBehaviors(t,r,!0),this},e.prototype.removeBehaviors=function(t,r){var i=this.get("modeController");return i.manipulateBehaviors(t,r,!1),this},e.prototype.updateBehavior=function(t,r,i){var a=this.get("modeController");return a.updateBehavior(t,r,i),this},e.prototype.zoom=function(t,r,i,a){var o=this,s=this.get("group"),l=Xi(s.getMatrix())||[1,0,0,0,1,0,0,0,1],u=this.get("minZoom"),h=this.get("maxZoom"),c=this.getZoom()||1,f=c*t,d=t,v=!1;if(u&&fh&&(d=h/c,v=!0),r?l=_P(l,[["t",-r.x,-r.y],["s",d,d],["t",r.x,r.y]]):l=_P(l,[["s",d,d]]),i){var p=Xi(s.getMatrix());p||(p=[1,0,0,0,1,0,0,0,1]);var g=p[0],m=g*d,y=UD({animateCfg:a,callback:function(){return o.emit("viewportchange",{action:"zoom",matrix:s.getMatrix()})}});s.animate(function(_){if(_===1)p=l;else{var x=use(g,m,_)/p[0];r?p=_P(p,[["t",-r.x,-r.y],["s",x,x],["t",r.x,r.y]]):p=_P(p,[["s",x,x]])}return{matrix:p}},y)}else s.setMatrix(l),this.emit("viewportchange",{action:"zoom",matrix:l}),this.autoPaint();return!v},e.prototype.zoomTo=function(t,r,i,a){var o=t/this.getZoom();return this.zoom(o,r,i,a)},e.prototype.focusItem=function(t,r,i){var a=this.get("viewController"),o=!1;r?o=!0:r===void 0&&(o=this.get("animate"));var s={};i?s=i:i===void 0&&(s=this.get("animateCfg")),a.focus(t,o,s),this.autoPaint()},e.prototype.focusItems=function(t,r,i,a){var o=this.get("viewController");o.focusItems(t,r,i,a)},e.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint()},e.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")},e.prototype.getPointByClient=function(t,r){var i=this.get("viewController");return i.getPointByClient(t,r)},e.prototype.getClientByPoint=function(t,r){var i=this.get("viewController");return i.getClientByPoint(t,r)},e.prototype.getPointByCanvas=function(t,r){var i=this.get("viewController");return i.getPointByCanvas(t,r)},e.prototype.getCanvasByPoint=function(t,r){var i=this.get("viewController");return i.getCanvasByPoint(t,r)},e.prototype.getGraphCenterPoint=function(){var t=this.get("group").getCanvasBBox();return{x:(t.minX+t.maxX)/2,y:(t.minY+t.maxY)/2}},e.prototype.getViewPortCenterPoint=function(){return this.getPointByCanvas(this.get("width")/2,this.get("height")/2)},e.prototype.showItem=function(t,r){r===void 0&&(r=!0);var i=this.get("itemController"),a=i.changeItemVisibility(t,!0);if(r&&this.get("enabledStack")){var o=a.getID(),s=a.getType(),l={},u={};switch(s){case"node":l.nodes=[{id:o,visible:!1}],u.nodes=[{id:o,visible:!0}];break;case"edge":l.nodes=[{id:o,visible:!1}],u.edges=[{id:o,visible:!0}];break;case"combo":l.nodes=[{id:o,visible:!1}],u.combos=[{id:o,visible:!0}];break}this.pushStack("visible",{before:l,after:u})}},e.prototype.hideItem=function(t,r){r===void 0&&(r=!0);var i=this.get("itemController"),a=i.changeItemVisibility(t,!1);if(r&&this.get("enabledStack")){var o=a.getID(),s=a.getType(),l={},u={};switch(s){case"node":l.nodes=[{id:o,visible:!0}],u.nodes=[{id:o,visible:!1}];break;case"edge":l.nodes=[{id:o,visible:!0}],u.edges=[{id:o,visible:!1}];break;case"combo":l.nodes=[{id:o,visible:!0}],u.combos=[{id:o,visible:!1}];break}this.pushStack("visible",{before:l,after:u})}},e.prototype.refreshItem=function(t){var r=this.get("itemController");r.refreshItem(t)},e.prototype.setAutoPaint=function(t){var r=this;r.set("autoPaint",t);var i=r.get("canvas");i.set("autoDraw",t)},e.prototype.remove=function(t,r){r===void 0&&(r=!0),this.removeItem(t,r)},e.prototype.removeItem=function(t,r){r===void 0&&(r=!0);var i=t;if(rr(t)&&(i=this.findById(t)),!i&&rr(t))console.warn("The item ".concat(t," to be removed does not exist!"));else if(i){var a="";if(i.getType&&(a=i.getType()),r&&this.get("enabledStack")){var o=ve(ve({},i.getModel()),{itemType:a}),s={};switch(a){case"node":{s.nodes=[o],s.edges=[];for(var l=i.getEdges(),u=l.length-1;u>=0;u--)s.edges.push(ve(ve({},l[u].getModel()),{itemType:"edge"}));break}case"edge":s.edges=[o];break;case"combo":s.combos=[o];break}this.pushStack("delete",{before:s,after:{}})}if(a==="node"){var h=i.getModel();h.comboId&&this.updateComboTree(i,void 0,!1)}var c=this.get("itemController");if(c.removeItem(i),a==="combo"){var f=GQ(this.get("comboTrees"));this.set("comboTrees",f)}}},e.prototype.innerAddItem=function(t,r,i){if(!X7t(t,r))return!1;if(r.id&&this.findById(r.id)){console.warn("This item exists already. Be sure the id %c".concat(r.id,"%c is unique."),"font-size: 20px; color: red;","");return}var a,o=this.get("comboTrees")||[];if(t==="combo"){var s=this.get("itemMap"),l=!1;if(o.forEach(function(v){l||xy(v,function(p){if(r.parentId===p.id){l=!0;var g=ve({id:r.id,depth:p.depth+2},r);p.children?p.children.push(g):p.children=[g],r.depth=g.depth,a=i.addItem(t,r)}var m=s[p.id];return l&&m&&m.getType&&m.getType()==="combo"&&i.updateCombo(m,p.children),!0})}),!l){var u=ve({id:r.id,depth:0},r);r.depth=u.depth,o.push(u),a=i.addItem(t,r)}this.set("comboTrees",o),r.collapsed&&(this.collapseCombo(a,!1),this.updateCombo(a))}else if(t==="node"&&rr(r.comboId)&&o){var h=this.findById(r.comboId);h&&h.getType&&h.getType()!=="combo"&&console.warn("'".concat(r.comboId,"' is not a id of a combo in the graph, the node will be added without combo.")),a=i.addItem(t,r);var c=this.get("itemMap"),f=!1,d=!1;o.forEach(function(v){d||f||xy(v,function(p){if(p.id===r.id)return d=!0,!1;if(r.comboId===p.id&&!d){f=!0;var g=Xi(r);g.itemType="node",p.children?p.children.push(g):p.children=[g],g.depth=p.depth+1}return f&&c[p.id].getType&&c[p.id].getType()==="combo"&&i.updateCombo(c[p.id],p.children),!0})})}else a=i.addItem(t,r);if(t==="node"&&r.comboId||t==="combo"&&r.parentId){var h=this.findById(r.comboId||r.parentId);h&&h.getType&&h.getType()==="combo"&&h.addChild(a)}return a},e.prototype.addItem=function(t,r,i,a){i===void 0&&(i=!0),a===void 0&&(a=!0);var o=this.get("comboSorted");this.set("comboSorted",o&&!a);var s=this.get("itemController"),l=this.innerAddItem(t,r,s);if(l===!1||l===!0)return l;var u=this.get("combos");if(u&&u.length>0&&this.sortCombos(),this.autoPaint(),i&&this.get("enabledStack")){var h=ve(ve({},l.getModel()),{itemType:t}),c={};switch(t){case"node":c.nodes=[h];break;case"edge":c.edges=[h];break;case"combo":c.combos=[h];break}this.pushStack("add",{before:{},after:c})}return l},e.prototype.addItems=function(t,r,i){t===void 0&&(t=[]),r===void 0&&(r=!0),i===void 0&&(i=!0);var a=this.get("comboSorted");this.set("comboSorted",a&&!i);for(var o=this.get("itemController"),s=[],l=0;l0&&this.sortCombos()}if(this.autoPaint(),r&&this.get("enabledStack")){for(var c={nodes:[],edges:[],combos:[]},l=0;l=0;g--)v[g].destroyed&&v.splice(g,1);f&&(o.addCombos(f),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",c,s.edges),At(h,function(x,S){x.getType&&(x.getType()==="node"||x.getType()==="combo")||c.edges.indexOf(x)<0&&(delete h[S],o.remove(x,!1))}),(this.get("comboTrees")||[]).forEach(function(x){xy(x,function(S){var w=i.findById(S.id);return w.getType()==="combo"&&S.collapsed&&i.collapseCombo(S.id,!1),!0})}),this.set({nodes:c.nodes,edges:c.edges});var m=(this.get("layout")||{}).relayoutAtChangeData,y=m===void 0?!0:m,_=this.get("layoutController");return y&&_&&(_.changeData(function(){setTimeout(function(){var x;(x=o.getCombos())===null||x===void 0||x.forEach(function(S){S.set("animate",!0)})},0)}),o.get("animate")&&!_.getLayoutType()?(o.positionsAnimate(),(a=o.getCombos())===null||a===void 0||a.forEach(function(x){return x.set("animate",!0)})):o.autoPaint()),setTimeout(function(){l.set("localRefresh",u)},16),this.set("data",s),this.emit("afterchangedata"),this},e.prototype.addCombos=function(t){var r=this,i=r.get("comboTrees"),a=this.get("itemController");a.addCombos(i,t)},e.prototype.createCombo=function(t,r,i){var a=this;i===void 0&&(i=!0);var o=this.get("itemController");this.set("comboSorted",!1);var s="",l;if(!!t){if(rr(t))s=t,l={id:t};else{if(s=t.id,!s){console.warn("Create combo failed. Please assign a unique string id for the adding combo.");return}l=t}var u=i&&this.get("enabledStack"),h={nodes:[],combos:[]};u&&r.forEach(function(m){var y=a.findById(m),_=y.getType();if(!(_!=="node"&&_!=="combo")){var x=y.getModel();h["".concat(_,"s")].push({id:m,parentId:_==="node"?x.comboId:x.parentId})}});var c=this.get("comboTrees"),f=new Set(r),d=new Map;c&&(c.forEach(function(m){xy(m,function(y,_,x){if(f.has(y.id)){if(_){var S=a.findById(_.id),w=a.findById(y.id);_.children.splice(x,1),S.removeChild(w),o.updateCombo(S,_.children)}y.itemType==="combo"&&d.set(y.id,y)}return!0})}),c=c.filter(function(m){return!f.has(m.id)}),this.set("comboTrees",c));var v={nodes:[],combos:[]},p=r.map(function(m){var y=a.findById(m),_=y.getModel(),x="";y.getType&&(x=y.getType());var S=d.get(m)||{id:y.getID(),itemType:x};return x==="combo"?(S.parentId=s,_.parentId=s):x==="node"&&(S.comboId=s,_.comboId=s),u&&v["".concat(x,"s")].push({id:_.id,parentId:s}),S});l.children=p,this.addItem("combo",l,!1),this.set("comboSorted",!1),c&&(c.forEach(function(m){Fc(m,function(y){return y.id===s?(y.itemType="combo",y.children=p,!1):!0})}),this.sortCombos()),u&&(v.combos.push(l),this.pushStack("createCombo",{before:h,after:v}));var g=this.findById(s);!g.getModel().parentId&&g.getChildren().combos.length&&this.updateComboTree(g,void 0,!1),setTimeout(function(){g.set("animate",!0)},0)}},e.prototype.uncombo=function(t,r){var i=this,a,o;r===void 0&&(r=!0);var s=this,l=t;if(rr(t)&&(l=this.findById(t)),!l||l.getType&&l.getType()!=="combo"){console.warn("The item is not a combo!");return}var u=l.getModel(),h=l.getModel().parentId,c=s.get("comboTrees");c||(c=[]);var f=this.get("itemMap"),d=l.get("id"),v,p=[],g=this.get("combos"),m=this.findById(h),y=r&&this.get("enabledStack"),_={};if(y&&(_=Xi(u),_.children=[]),c.forEach(function(b){v||xy(b,function(E){var T;if(E.id===d){v=E;var C=l.getEdges().map(function(I){return I.getID()});C.forEach(function(I){i.removeItem(I,!1)});var A=g.indexOf(l);g.splice(A,1),delete f[d];var M=Xi(l.getModel());l.destroy(),i.emit("afterremoveitem",{item:M,type:"combo"})}if(h&&v&&E.id===h){m.removeCombo(l),p=E.children;var A=p.indexOf(v);return A!==-1&&p.splice(A,1),(T=v.children)===null||T===void 0||T.forEach(function(R){var k=i.findById(R.id),D=k.getModel();k.getType&&k.getType()==="combo"?(R.parentId=h,delete R.comboId,D.parentId=h,delete D.comboId):k.getType&&k.getType()==="node"&&(R.comboId=h,D.comboId=h),m.addChild(k),p.push(R)}),i.updateCombo(m),!1}return!0})}),!h&&v){var x=c.indexOf(v);c.splice(x,1),(a=v.children)===null||a===void 0||a.forEach(function(b){b.parentId=void 0;var E=i.findById(b.id).getModel();delete E.parentId,delete E.comboId,b.itemType!=="node"&&c.push(b)})}if(y){var S={nodes:[],combos:[]},w={nodes:[],combos:[]};(o=v.children)===null||o===void 0||o.forEach(function(b){var E=i.findById(b.id),T=E.getType();T!=="node"&&T!=="combo"||(S["".concat(T,"s")].push({id:b.id,parentId:d}),w["".concat(T,"s")].push({id:b.id,parentId:h}))}),S.combos.push(_),this.pushStack("uncombo",{before:S,after:w})}},e.prototype.updateCombos=function(t){var r=this;t===void 0&&(t=!1);var i=this,a=this.get("comboTrees"),o=i.get("itemController"),s=i.get("itemMap");(a||[]).forEach(function(l){xy(l,function(u){var h;if(!u)return!0;var c=s[u.id];if(((h=c==null?void 0:c.getType)===null||h===void 0?void 0:h.call(c))==="combo"){var f=_v([],c.getStates(),!0);At(f,function(d){return r.setItemState(c,d,!1)}),o.updateCombo(c,u.children,t),At(f,function(d){return r.setItemState(c,d,!0)})}return!0})}),i.sortCombos()},e.prototype.updateCombo=function(t){var r=this,i=this,a=t,o;if(rr(t)&&(a=this.findById(t)),!a||a.getType&&a.getType()!=="combo"){console.warn("The item to be updated is not a combo!");return}o=a.get("id");var s=this.get("comboTrees"),l=i.get("itemController"),u=i.get("itemMap");(s||[]).forEach(function(h){xy(h,function(c){if(!c)return!0;var f=u[c.id];if(o===c.id&&f&&f.getType&&f.getType()==="combo"){var d=_v([],f.getStates(),!0);At(d,function(v){f.getStateStyle(v)&&r.setItemState(f,v,!1)}),l.updateCombo(f,c.children),At(d,function(v){f.getStateStyle(v)&&r.setItemState(f,v,!0)}),o&&(o=c.parentId)}return!0})})},e.prototype.updateComboTree=function(t,r,i){i===void 0&&(i=!0);var a=this;this.set("comboSorted",!1);var o;rr(t)?o=a.findById(t):o=t;var s=o.getModel(),l=s.comboId||s.parentId,u="";if(o.getType&&(u=o.getType()),r&&u==="combo"){var h=this.get("comboTrees"),c=!0,f;if((h||[]).forEach(function(y){f||Fc(y,function(_){if(!f)return _.id===o.getID()&&(f=_),!0})}),Fc(f,function(y){return y.id===r?(c=!1,!1):!0}),!c){console.warn("Failed to update the combo tree! The parentId points to a descendant of the combo!");return}}if(i&&this.get("enabledStack")){var d={},v={};u==="combo"?(d.combos=[{id:s.id,parentId:s.parentId}],v.combos=[{id:s.id,parentId:r}]):u==="node"&&(d.nodes=[{id:s.id,parentId:s.comboId}],v.nodes=[{id:s.id,parentId:r}]),this.pushStack("updateComboTree",{before:d,after:v})}if(s.parentId||s.comboId){var p=this.findById(s.parentId||s.comboId);p&&p.removeChild(o)}if(u==="combo"?s.parentId=r:u==="node"&&(s.comboId=r),r){var g=this.findById(r);g&&g.addChild(o)}if(l){var g=this.findById(l);g&&g.removeChild(o)}var m=GQ(this.get("comboTrees"),s.id,r);this.set("comboTrees",m),this.updateCombos()},e.prototype.save=function(){var t=[],r=[],i=[];return At(this.get("nodes"),function(a){t.push(a.getModel())}),At(this.get("edges"),function(a){r.push(a.getModel())}),At(this.get("combos"),function(a){i.push(a.getModel())}),{nodes:t,edges:r,combos:i}},e.prototype.changeSize=function(t,r){var i=this.get("viewController");return i.changeSize(t,r),this},e.prototype.refresh=function(){var t=this;if(t.emit("beforegraphrefresh"),t.get("animate"))t.positionsAnimate();else{var r=t.get("nodes"),i=t.get("edges"),a=t.get("edges");At(r,function(o){o.refresh()}),At(i,function(o){o.refresh()}),At(a,function(o){o.refresh()})}t.emit("aftergraphrefresh"),t.autoPaint()},e.prototype.getNodes=function(){return this.get("nodes")},e.prototype.getEdges=function(){return this.get("edges")},e.prototype.getCombos=function(){return this.get("combos")},e.prototype.getComboChildren=function(t){if(rr(t)&&(t=this.findById(t)),!t||t.getType&&t.getType()!=="combo"){console.warn("The combo does not exist!");return}return t.getChildren()},e.prototype.positionsAnimate=function(t){var r=this;r.emit("beforeanimate");var i=r.get("animateCfg"),a=i.onFrame,o=t?r.getNodes().concat(r.getCombos()):r.getNodes(),s=o.map(function(u){var h=u.getModel();return{id:h.id,x:h.x,y:h.y}});r.stopAnimate();var l=r.get("canvas");r.animating=!0,setTimeout(function(){l.animate(function(u){At(s,function(h){var c=r.findById(h.id);if(!(!c||c.destroyed)){var f=c.get("originAttrs"),d=c.get("model"),v=c.getContainer().getMatrix();if(f==null&&(v&&(f={x:v[6],y:v[7]}),c.set("originAttrs",f||0)),a){var p=a(c,u,h,f||{x:0,y:0});c.set("model",Object.assign(d,p))}else f?(d.x=f.x+(h.x-f.x)*u,d.y=f.y+(h.y-f.y)*u):(d.x=h.x,d.y=h.y)}}),r.refreshPositions(t)},{duration:i.duration,easing:i.easing,callback:function(){At(o,function(h){h.set("originAttrs",null)}),i.callback&&i.callback(),r.emit("afteranimate"),r.animating=!1}})},0)},e.prototype.refreshPositions=function(t){var r=this;r.emit("beforegraphrefreshposition");var i=r.get("nodes"),a=r.get("edges"),o=r.get("vedges"),s=r.get("combos"),l,u={},h=function(f){At(f,function(d){l=d.getModel();var v=d.get("originAttrs");if(!(v&&l.x===v.x&&l.y===v.y)){var p=d.updatePosition({x:l.x,y:l.y});u[l.id]=p,l.comboId&&(u[l.comboId]=u[l.comboId]||p),l.parentId&&(u[l.parentId]=u[l.parentId]||p)}})};h(s),h(i),s&&s.length!==0&&(t&&h(s),r.updateCombos()),At(a,function(c){var f=c.getSource().getModel(),d=c.getTarget();if(!kh(d)){var v=d.getModel();(u[f.id]||u[v.id]||c.getModel().isComboEdge)&&c.refresh()}}),At(o,function(c){c.refresh()}),r.emit("aftergraphrefreshposition"),r.autoPaint()},e.prototype.stopAnimate=function(){var t=this.get("canvas"),r=t.cfg.timeline;r&&r.stopAllAnimations()},e.prototype.isAnimating=function(){return this.animating},e.prototype.getZoom=function(){var t=this.get("group").getMatrix();return t?t[0]:1},e.prototype.getCurrentMode=function(){var t=this.get("modeController");return t.getMode()},e.prototype.setMode=function(t){var r=this.get("modeController");return r.setMode(t),this},e.prototype.clear=function(t){var r;return t===void 0&&(t=!1),(r=this.get("canvas"))===null||r===void 0||r.clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],vedges:[],groups:[],combos:[],comboTrees:[]}),t||this.emit("afterrender"),this},e.prototype.updateLayout=function(t,r,i,a){var o=this;t===void 0&&(t={}),a===void 0&&(a=!0);var s=this.get("layoutController");if(rr(t)&&(t={type:t}),r){var l=i;l||(r==="begin"?l={x:0,y:0}:l={x:this.getWidth()/2,y:this.getHeight()/2}),l=this.getPointByCanvas(l.x,l.y);var u=["force","gForce","fruchterman","force2"];u.includes(t.type)||!t.type&&u.includes(s==null?void 0:s.layoutType)?t.center=[l.x,l.y]:this.once("afterlayout",function(f){var d=o.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];l.x=l.x*d[0]+d[6],l.y=l.y*d[0]+d[7];var v=o.getGroup().getCanvasBBox(),p=v.minX,g=v.maxX,m=v.minY,y=v.maxY,_={x:(p+g)/2,y:(m+y)/2};r==="begin"&&(_.x=p,_.y=m),o.translate(l.x-_.x,l.y-_.y)})}var h=ve({},this.get("layout")),c={};Object.assign(c,h,t),t.pipes&&!t.type?delete c.type:!t.pipes&&c.type&&delete c.pipes,this.set("layout",c),s&&(s.isLayoutTypeSame(c)&&c.gpuEnabled===h.gpuEnabled?s.updateLayoutCfg(c):s.changeLayout(c),a&&this.get("enabledStack")&&this.pushStack("layout",{before:h,after:c}))},e.prototype.destroyLayout=function(){var t=this.get("layoutController");t==null||t.destroyLayout()},e.prototype.layout=function(){var t,r=this.get("layoutController"),i=this.get("layout");if(!(!i||!r)){if(i.workerEnabled){r.layout();return}!((t=r.layoutMethods)===null||t===void 0)&&t.length?r.relayout(!0):r.layout()}},e.prototype.collapseCombo=function(t,r){var i=this;if(r===void 0&&(r=!0),!this.destroyed){if(rr(t)&&(t=this.findById(t)),!t){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"collapse",item:t});var a=t.getModel(),o=this.get("itemController");o.collapseCombo(t,r),a.collapsed=!0;var s=this.getEdges().concat(this.get("vedges")),l=[],u=this.get("comboTrees"),h=!1;(u||[]).forEach(function(f){h||Fc(f,function(d){if(h&&d.depth<=a.depth)return!1;if(a.id===d.id&&(h=!0),h){var v=i.findById(d.id);v&&v.getType&&v.getType()==="combo"&&(l=l.concat(v.getNodes()),l=l.concat(v.getCombos()))}return!0})});var c={};s.forEach(function(f){var d=f.getModel(),v=d.isVEdge,p=d.size,g=p===void 0?1:p;if(!(f.isVisible()&&!v)){var m=f.getSource(),y=f.getTarget(),_=null,x;if(m.getModel().id===a.id||l.includes(m)&&!l.includes(y)?(_=y,x=!1):(y.getModel().id===a.id||!l.includes(m)&&l.includes(y))&&(_=m,x=!0),_){if(v){i.removeItem(f,!1);return}for(var S=_.getModel();!_.isVisible();){var w=S.parentId,b=S.comboId,E=w||b;if(_=i.findById(E),!_||!E)return;S=_.getModel()}var T=S.id,C=x?{source:T,target:a.id,size:g,isVEdge:!0}:{source:a.id,target:T,size:g,isVEdge:!0},A="".concat(C.source,"-").concat(C.target);if(c[A]){c[A].size+=g;return}c[A]=C}}}),this.addItems(Object.values(c).map(function(f){return{type:"vedge",model:f}}),!1),this.emit("aftercollapseexpandcombo",{action:"collapse",item:t})}},e.prototype.expandCombo=function(t,r){var i=this;if(r===void 0&&(r=!0),rr(t)&&(t=this.findById(t)),!t||t.getType&&t.getType()!=="combo"){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"expand",item:t});var a=t.getModel(),o=this.get("itemController");o.expandCombo(t,r),a.collapsed=!1;var s=this.getEdges().concat(this.get("vedges")),l=[],u=this.get("comboTrees"),h=!1;(u||[]).forEach(function(f){h||Fc(f,function(d){if(h&&d.depth<=a.depth)return!1;if(a.id===d.id&&(h=!0),h){var v=i.findById(d.id);v&&v.getType&&v.getType()==="combo"&&(l=l.concat(v.getNodes()),l=l.concat(v.getCombos()))}return!0})});var c={};s.forEach(function(f){if(!(f.isVisible()&&!f.getModel().isVEdge)){var d=f.getSource(),v=f.getTarget(),p=d.get("id"),g=v.get("id"),m=null,y;if(p===a.id||l.includes(d)&&!l.includes(v)?(m=v,y=!1):g===a.id||!l.includes(d)&&l.includes(v)?(m=d,y=!0):l.includes(d)&&l.includes(v)&&d.isVisible()&&v.isVisible()&&f.show(),m){var _=f.getModel(),x=_.isVEdge,S=_.size,w=S===void 0?1:S;if(x){i.removeItem(f,!1);return}for(var b=m.getModel();!m.isVisible();){var E=b.parentId,T=b.comboId,C=E||T;if(m=i.findById(C),!m||!C)return;b=m.getModel()}for(var A=b.id,M=y?v:d,I=M.getModel();!M.isVisible();){var R=I.parentId,k=I.comboId,D=R||k;if(M=i.findById(D),!M||!D)return;if(I.comboId===a.id||I.parentId===a.id)break;I=M.getModel()}var G=I.id;if(A){var V=y?{source:A,target:G,isVEdge:!0,size:w}:{source:G,target:A,isVEdge:!0,size:w},z="".concat(V.source,"-").concat(V.target);if(c[z]){c[z].size+=w;return}c[z]=V}}}}),this.addItems(Object.values(c).map(function(f){return{type:"vedge",model:f}}),!1),this.emit("aftercollapseexpandcombo",{action:"expand",item:t})},e.prototype.collapseExpandCombo=function(t,r){if(r===void 0&&(r=!0),rr(t)&&(t=this.findById(t)),!(!t||t.getType&&t.getType()!=="combo")){for(var i=t.getModel(),a=this.findById(i.parentId);a;){var o=a.getModel();if(o.collapsed){console.warn("Fail to expand the combo since it's ancestor combo is collapsed."),a=void 0;return}a=this.findById(o.parentId)}var s=i.collapsed;s?this.expandCombo(t,r):this.collapseCombo(t,r),this.updateCombo(t)}},e.prototype.getNeighbors=function(t,r){var i=t;return rr(t)&&(i=this.findById(t)),i.getNeighbors(r)},e.prototype.getNodeDegree=function(t,r,i){r===void 0&&(r=void 0),i===void 0&&(i=!1);var a=t;rr(t)&&(a=this.findById(t));var o=this.get("degrees");(!o||i)&&(o=g_(this.save()),this.set("degrees",o));var s=o[a.getID()],l=0;if(!s)return 0;switch(r){case"in":l=s.inDegree;break;case"out":l=s.outDegree;break;case"all":l=s;break;default:l=s.degree;break}return l},e.prototype.getUndoStack=function(){return this.undoStack},e.prototype.getRedoStack=function(){return this.redoStack},e.prototype.getStackData=function(){return this.get("enabledStack")?{undoStack:this.undoStack.toArray(),redoStack:this.redoStack.toArray()}:null},e.prototype.clearStack=function(){this.get("enabledStack")&&(this.undoStack.clear(),this.redoStack.clear(),this.emit("stackchange",{undoStack:this.undoStack,redoStack:this.redoStack}))},e.prototype.pushStack=function(t,r,i){if(t===void 0&&(t="update"),i===void 0&&(i="undo"),!this.get("enabledStack")){console.warn("\u8BF7\u5148\u542F\u7528 undo & redo \u529F\u80FD\uFF0C\u5728\u5B9E\u4F8B\u5316 Graph \u65F6\u5019\u914D\u7F6E enabledStack: true !");return}var a=r?Xi(r):{before:{},after:Xi(this.save())};i==="redo"?this.redoStack.push({action:t,data:a}):this.undoStack.push({action:t,data:a}),this.emit("stackchange",{action:t,stackType:i,undoStack:this.undoStack,redoStack:this.redoStack})},e.prototype.getAdjMatrix=function(t,r){t===void 0&&(t=!0),r===void 0&&(r=this.get("directed"));var i=this.get("adjMatrix");return(!i||!t)&&(i=i2(this.save(),r),this.set("adjMatrix",i)),i},e.prototype.getShortestPathMatrix=function(t,r){t===void 0&&(t=!0),r===void 0&&(r=this.get("directed"));var i=this.get("adjMatrix"),a=this.get("shortestPathMatrix");return(!i||!t)&&(i=i2(this.save(),r),this.set("adjMatrix",i)),(!a||!t)&&(a=GD(this.save(),r),this.set("shortestPathMatrix",a)),a},e.prototype.on=function(t,r,i){return n.prototype.on.call(this,t,r,i)},e.prototype.destroy=function(){var t,r,i,a,o;this.emit("beforedestroy"),this.clear(),this.clearStack(),(t=this.get("itemController"))===null||t===void 0||t.destroy(),(r=this.get("modeController"))===null||r===void 0||r.destroy(),(i=this.get("viewController"))===null||i===void 0||i.destroy(),(a=this.get("stateController"))===null||a===void 0||a.destroy(),(o=this.get("canvas"))===null||o===void 0||o.destroy(),this.cfg=null,this.destroyed=!0,this.redoStack=null,this.undoStack=null,this.emit("afterdestroy")},e.prototype.createHull=function(t){if(!t.members||t.members.length<1){console.warn("Create hull failed! The members is empty.");return}var r=this.get("hullGroup"),i=this.get("hullMap");if(i||(i={},this.set("hullMap",i)),(!r||r.get("destroyed"))&&(r=this.get("group").addGroup({id:"hullGroup"}),r.toBack(),this.set("hullGroup",r)),i[t.id])return console.warn("Existed hull id."),i[t.id];var a=r.addGroup({id:"".concat(t.id,"-container")}),o=new MUe(this,ve(ve({},t),{group:a})),s=o.id;return i[s]=o,o},e.prototype.getHulls=function(){return this.get("hullMap")},e.prototype.getHullById=function(t){return this.get("hullMap")[t]},e.prototype.removeHull=function(t){var r,i;rr(t)?i=this.getHullById(t):i=t,(r=this.get("hullMap"))===null||r===void 0||delete r[i.id],i.destroy()},e.prototype.removeHulls=function(){var t=this.getHulls();!t||!Object.keys(t).length||(Object.keys(t).forEach(function(r){var i=t[r];i.destroy()}),this.set("hullMap",{}))},e}(C9e);function uee(n){return uee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uee(n)}var uC=sg,DSe="-shape",BX="-label",m5=["startArrow","endArrow"],NSe={lineWidth:1,stroke:void 0,fill:void 0,lineAppendWidth:1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,x:0,y:0,r:10,width:20,height:20,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},t$t={lineWidth:1,stroke:"#000",lineDash:void 0,startArrow:!1,endArrow:!1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},_5={edge:t$t,node:NSe,combo:NSe},hee="-label-bg",xse={options:{labelCfg:{style:{fontFamily:tn.windowFontFamily}},descriptionCfg:{style:{fontFamily:tn.windowFontFamily}}},itemType:"",type:"",getCustomConfig:function(e){return{}},getOptions:function(e,t){return t==="move"||(t==null?void 0:t.includes("bbox"))?e:ms({},this.options,this.getCustomConfig(e)||{},e)},draw:function(e,t){t.shapeMap={},this.mergeStyle=this.getOptions(e);var r=this.drawShape(e,t);if(r.set("className",this.itemType+DSe),t.shapeMap[this.itemType+DSe]=r,e.label){var i=this.drawLabel(e,t);i.set("className",this.itemType+BX),t.shapeMap[this.itemType+BX]=i}return r},afterDraw:function(e,t,r){},drawShape:function(e,t){return null},drawLabel:function(e,t){var r=(this.mergeStyle||this.getOptions(e)||{}).labelCfg,i=r||{},a=this.getLabelStyle(e,i,t),o=a.rotate;delete a.rotate;var s=t.addShape("text",{attrs:a,draggable:!0,className:"text-shape",name:"text-shape",labelRelated:!0});if(t.shapeMap["text-shape"]=s,!isNaN(o)&&o!==""){var l=s.getBBox(),u=[1,0,0,0,1,0,0,0,1];if(a.rotateCenter)switch(a.rotateCenter){case"center":u=uC(u,[["t",-l.width/2,-l.height/2],["r",o],["t",l.width/2,l.height/2]]);break;case"lefttop":u=uC(u,[["t",-a.x,-a.y],["r",o],["t",a.x,a.y]]);break;case"leftcenter":u=uC(u,[["t",-a.x,-a.y-l.height/2],["r",o],["t",a.x,a.y+l.height/2]]);break;default:u=uC(u,[["t",-l.width/2,-l.height/2],["r",o],["t",l.width/2,l.height/2]]);break}else u=uC(u,[["t",-a.x,-a.y-l.height/2],["r",o],["t",a.x,a.y+l.height/2]]);s.setMatrix(u)}if(a.background){var h=this.drawLabelBg(e,t,s),c=this.itemType+hee;h.set("classname",c),t.shapeMap[c]=h,s.toFront()}return s},drawLabelBg:function(e,t,r){var i=this.options.labelCfg,a=_n({},i,e.labelCfg),o=this.getLabelBgStyleByPosition(r,a),s=t.addShape("rect",{name:"text-bg-shape",attrs:o,labelRelated:!0});return t.shapeMap["text-bg-shape"]=s,s},getLabelStyleByPosition:function(e,t,r){return{text:e.label}},getLabelBgStyleByPosition:function(e,t){return{}},getLabelStyle:function(e,t,r){var i=this.getLabelStyleByPosition(e,t,r),a="".concat(this.itemType,"Label"),o=tn[a]?tn[a].style:null;return ve(ve(ve({},o),i),t.style)},getShapeStyle:function(e){return e.style},update:function(e,t,r){this.updateShapeStyle(e,t,r),this.updateLabel(e,t,r)},updateShapeStyle:function(e,t,r){var i,a=t.getContainer(),o=t.getKeyShape(),s=_n({},o.attr(),e.style),l=function(c){var f,d=s[c];if(kh(d)){var v=((i=a.shapeMap)===null||i===void 0?void 0:i[c])||a.find(function(p){return p.get("name")===c});v==null||v.attr(d)}else o.attr((f={},f[c]=d,f))};for(var u in s)l(u)},updateLabel:function(e,t,r){var i,a,o=t.getContainer(),s=(this.mergeStyle||this.getOptions({},r)||{}).labelCfg,l=s===void 0?{}:s,u=this.itemType+BX,h=o.shapeMap[u]||o.find(function(x){return x.get("className")===u}),c=this.itemType+hee,f=o.shapeMap[c]||o.find(function(x){return x.get("className")===c});if(h&&e.label===void 0&&(o.removeChild(h),delete o.shapeMap[u],f&&(o.removeChild(f),delete o.shapeMap[c])),e.label||e.label==="")if(h){(!r||r==="bbox|label"||this.itemType==="edge"&&r!=="style")&&(l=ms(l,e.labelCfg));var v=this.getLabelStyleByPosition(e,l,o),p=(i=e.labelCfg)===null||i===void 0?void 0:i.style,g=ve(ve({},v),p),m=g.rotate;if(delete g.rotate,!isNaN(m)&&m!==""){var y=[1,0,0,0,1,0,0,0,1];y=uC(y,[["t",-g.x,-g.y],["r",m],["t",g.x,g.y]]),g.matrix=y,h.attr(g)}else((a=h.getMatrix())===null||a===void 0?void 0:a[4])!==1&&h.resetMatrix(),h.attr(g);if(!f)g.background&&(f=this.drawLabelBg(e,o,h),f.set("classname",c),o.shapeMap[c]=f,h.toFront());else if(g.background){var _=this.getLabelBgStyleByPosition(h,l);f.attr(_)}else o.removeChild(f)}else{var d=this.drawLabel(e,o);d.set("className",u),o.shapeMap[u]=d}},afterUpdate:function(e,t){},setState:function(e,t,r){var i,a,o,s=r.get("keyShape");if(!(!s||s.destroyed)){var l=r.getType(),u=z3(t)?e:"".concat(e,":").concat(t),h=this.getStateStyle(u,r),c=r.getStateStyle(u);if(!(!c&&!h)){var f=_n({},c||h),d=r.getContainer(),v={x:1,y:1,cx:1,cy:1,matrix:1};if(l==="combo"&&(v.r=1,v.width=1,v.height=1),t){var p=function(D){var G,V=f[D];if(kh(V)&&!m5.includes(D)){var z=((o=d.shapeMap)===null||o===void 0?void 0:o[D])||d.find(function(j){return j.get("name")===D});z==null||z.attr(V)}else s.attr((G={},G[D]=V,G))};for(var g in f)p(g)}else{var m=HB(r.getCurrentStatesStyle()),y=r.getModel(),_=_n({},y.style,HB(r.getOriginStyle())),x=s.get("name"),S=s.attr(),w={};Object.keys(S).forEach(function(k){if(k!=="img"){var D=S[k];D&&uee(D)==="object"?w[k]=Xi(D):w[k]=D}});var b={},E=function(D){var G=f[D];if(kh(G)&&!m5.includes(D)){var V=d.shapeMap[D]||d.find(function(Z){return Z.get("name")===D});if(V){var z=HB(V.attr());At(G,function(Z,Y){if(D===x&&w[Y]&&!v[Y]){delete w[Y];var le=_[D][Y]||_5[l][Y];s.attr(Y,le)}else if(z[Y]||z[Y]===0){delete z[Y];var H=_[D][Y]||_5[l][Y];V.attr(Y,H)}}),b[D]=z}}else if(w[D]&&!v[D]){delete w[D];var j=_[D]||(_[x]?_[x][D]:void 0)||_5[l][D];s.attr(D,j)}};for(var T in f)E(T);x?b[x]=w:_n(b,w);for(var g in m)if(!v[g]){var C=m[g];(!kh(C)||m5.includes(g))&&(x?(_n(_[x],(a={},a[g]=C,a)),delete _[g]):_n(_,(i={},i[g]=C,i)),delete m[g])}var A={};ms(A,_,b,m);var M=!1,I=function(D){var G,V,z=A[D];if(kh(z)&&!m5.includes(D)){var j=d.shapeMap[D]||d.find(function(Y){return Y.get("name")===D});j&&((j.get("type")==="text"||j.get("labelRelated"))&&(delete z.x,delete z.y,delete z.matrix),D===x&&(l==="combo"&&(delete z.r,delete z.width,delete z.height),M=!0),j.attr(z))}else if(!M){var Z=z||_5[l][D];l==="combo"?x||s.attr((G={},G[D]=Z,G)):s.attr((V={},V[D]=Z,V))}};for(var R in A)I(R)}}}},getStateStyle:function(e,t){var r=t.getModel(),i=t.getType(),a=this.getOptions(r),o=a.stateStyles,s=a.style,l=s===void 0?{}:s,u=r.stateStyles?r.stateStyles[e]:o&&o[e];return i==="combo"?Xi(u):_n({},l,u)},getControlPoints:function(e){return e.controlPoints},getAnchorPoints:function(e){var t,r,i=(e==null?void 0:e.anchorPoints)||((t=this.getCustomConfig(e))===null||t===void 0?void 0:t.anchorPoints)||((r=this.options)===null||r===void 0?void 0:r.anchorPoints);return i}},r$t={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:tn.nodeLabel.offset,getSize:function(e){var t,r=((t=this.mergeStyle)===null||t===void 0?void 0:t.size)||e.size||this.getOptions({}).size||tn.defaultNode.size;return vn(r)&&r.length===1&&(r=[r[0],r[0]]),vn(r)||(r=[r,r]),r},getLabelStyleByPosition:function(e,t){var r=t.maxLength,i=e.label;r&&(i=bze(i,r));var a=t.position||this.labelPosition;if(a==="center")return{x:0,y:0,text:i,textBaseline:"middle",textAlign:"center"};var o=t.offset;an(o)&&(o=this.offset);var s=this.getSize(e),l;switch(a){case"top":l={x:0,y:-s[1]/2-o,textBaseline:"bottom",textAlign:"center"};break;case"bottom":l={x:0,y:s[1]/2+o,textBaseline:"top",textAlign:"center"};break;case"left":l={x:-s[0]/2-o,y:0,textBaseline:"middle",textAlign:"right"};break;default:l={x:s[0]/2+o,y:0,textBaseline:"middle",textAlign:"left"};break}return l.text=i,l},getLabelBgStyleByPosition:function(e,t){var r;if(!e)return{};var i=(r=t.style)===null||r===void 0?void 0:r.background;if(!i)return{};var a=e.getBBox(),o=mse(i.padding),s=a.width+o[1]+o[3],l=a.height+o[0]+o[2];return ve(ve({x:a.minX-o[3],y:a.minY-o[0]},i),{width:s,height:l})},drawShape:function(e,t){var r=this.shapeType,i=this.getShapeStyle(e),a=t.addShape(r,{attrs:i,draggable:!0,name:"node-shape"});return t.shapeMap["node-shape"]=a,a},updateLinkPoints:function(e,t){var r=(this.mergeStyle||this.getOptions(e)).linkPoints,i=t.shapeMap["link-point-left"]||t.find(function(A){return A.get("className")==="link-point-left"}),a=t.shapeMap["link-point-right"]||t.find(function(A){return A.get("className")==="link-point-right"}),o=t.shapeMap["link-point-top"]||t.find(function(A){return A.get("className")==="link-point-top"}),s=t.shapeMap["link-point-bottom"]||t.find(function(A){return A.get("className")==="link-point-bottom"}),l;i&&(l=i.attr()),a&&!l&&(l=a.attr()),o&&!l&&(l=o.attr()),s&&!l&&(l=s.attr()),l||(l=r);var u=_n({},l,e.linkPoints),h=u.fill,c=u.stroke,f=u.lineWidth,d=u.size/2;d||(d=u.r);var v=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},p=v.left,g=v.right,m=v.top,y=v.bottom,_=this.getSize(e),x=_[0],S=_[1],w={r:d,fill:h,stroke:c,lineWidth:f};if(i)!p&&p!==void 0?(i.remove(),delete t.shapeMap["link-point-left"]):i.attr(ve(ve({},w),{x:-x/2,y:0}));else if(p){var b="link-point-left";t.shapeMap[b]=t.addShape("circle",{attrs:ve(ve({},w),{x:-x/2,y:0}),className:b,name:b,isAnchorPoint:!0})}if(a)!g&&g!==void 0&&(a.remove(),delete t.shapeMap["link-point-right"]),a.attr(ve(ve({},w),{x:x/2,y:0}));else if(g){var E="link-point-right";t.shapeMap[E]=t.addShape("circle",{attrs:ve(ve({},w),{x:x/2,y:0}),className:E,name:E,isAnchorPoint:!0})}if(o)!m&&m!==void 0&&(o.remove(),delete t.shapeMap["link-point-top"]),o.attr(ve(ve({},w),{x:0,y:-S/2}));else if(m){var T="link-point-top";t.shapeMap[T]=t.addShape("circle",{attrs:ve(ve({},w),{x:0,y:-S/2}),className:T,name:T,isAnchorPoint:!0})}if(s)!y&&y!==void 0?(s.remove(),delete t.shapeMap["link-point-bottom"]):s.attr(ve(ve({},w),{x:0,y:S/2}));else if(y){var C="link-point-bottom";t.shapeMap[C]=t.addShape("circle",{attrs:ve(ve({},w),{x:0,y:S/2}),className:C,name:C,isAnchorPoint:!0})}},updateShape:function(e,t,r,i,a){var o=t.get("keyShape");o.attr(ve({},r)),this.updateLabel(e,t,a),i&&this.updateIcon(e,t)},updateIcon:function(e,t){var r=this,i=t.getContainer(),a=(this.mergeStyle||this.getOptions(e)).icon,o=e.icon?e.icon:{show:void 0,text:void 0},s=o.show,l=o.text,u=i.shapeMap["".concat(this.type,"-icon")]||i.find(function(m){return m.get("name")==="".concat(r.type,"-icon")});if(u)if(s||s===void 0){var h=_n({},u.attr(),a),c=h.width,f=c===void 0?20:c,d=h.height,v=d===void 0?20:d;(h.fontFamily==="iconfont"||h.hasOwnProperty("text"))&&(f=0,v=0),u.attr(ve(ve({},h),{x:-f/2,y:-v/2}))}else u.remove(),delete i.shapeMap["".concat(this.type,"-icon")];else if(s){var p="".concat(this.type,"-icon");if(l)i.shapeMap[p]=i.addShape("text",{attrs:ve({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:p,name:p});else{var f=a.width,v=a.height;i.shapeMap[p]=i.addShape("image",{attrs:ve(ve({},a),{x:-f/2,y:-v/2}),className:p,name:p})}var g=i.shapeMap["node-label"]||i.find(function(m){return m.get("name")==="node-label"});g&&g.toFront()}}},n$t=ve(ve({},xse),r$t);_s.registerNode("single-node",n$t);var x5="edge-shape";function i$t(n){var e=n;return n==="start"?e="end":n==="end"&&(e="start"),e}var a$t={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:tn.defaultEdge.size,style:{x:0,y:0,stroke:tn.defaultEdge.style.stroke,lineAppendWidth:tn.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:tn.edgeLabel.style.fill,fontSize:tn.edgeLabel.style.fontSize,fontFamily:tn.windowFontFamily}},stateStyles:ve({},tn.edgeStateStyles)},getPath:function(e){var t=[];return At(e,function(r,i){i===0?t.push(["M",r.x,r.y]):t.push(["L",r.x,r.y])}),t},getShapeStyle:function(e){var t=this.options.style,r={stroke:e.color},i=_n({},t,r,e.style),a=e.size||tn.defaultEdge.size;e=this.getPathPoints(e);var o=e.startPoint,s=e.endPoint,l=this.getControlPoints(e),u=[o];l&&(u=u.concat(l)),u.push(s);var h=this.getPath(u),c=_n({},tn.defaultEdge.style,{stroke:tn.defaultEdge.color,lineWidth:a,path:h},i);return c},updateShapeStyle:function(e,t,r){var i,a=t.getContainer(),o=((i=t.getKeyShape)===null||i===void 0?void 0:i.call(t))||a.shapeMap["edge-shape"],s=e.size;e=this.getPathPoints(e);var l=e.startPoint,u=e.endPoint,h=this.getControlPoints(e),c=[l];h&&(c=c.concat(h)),c.push(u);var f=o.attr(),d=e.style||{};d.stroke===void 0&&(d.stroke=e.color);var v=e.sourceNode,p=e.targetNode,g={radius:d.radius};h||(g={source:v,target:p,offset:d.offset,radius:d.radius});var m=this.getPath(c,g),y={};r==="move"?y={path:m}:(f.endArrow&&d.endArrow===!1&&(e.style.endArrow={path:""}),f.startArrow&&d.startArrow===!1&&(e.style.startArrow={path:""}),y=ve({},e.style),y.lineWidth===void 0&&(y.lineWidth=(on(s)?s:s==null?void 0:s[0])||f.lineWidth),y.path===void 0&&(y.path=m),y.stroke===void 0&&(y.stroke=f.stroke||e.color)),o&&o.attr(y)},getLabelStyleByPosition:function(e,t,r){var i=t.position||this.labelPosition,a={},o=r==null?void 0:r.shapeMap[x5],s;i==="start"?s=0:i==="end"?s=1:s=.5;var l=t.refX||this.refX,u=t.refY||this.refY;if(e.startPoint.x===e.endPoint.x&&e.startPoint.y===e.endPoint.y)return a.x=e.startPoint.x+l,a.y=e.startPoint.y+u,a.text=e.label,a;var h;an(t.autoRotate)?h=this.labelAutoRotate:h=t.autoRotate;var c=xze(o,s,l,u,h);return a.x=c.x,a.y=c.y,a.rotate=c.rotate,a.textAlign=this._getTextAlign(i,c.angle),a.text=e.label,a},getLabelBgStyleByPosition:function(e,t){if(!e)return{};var r=e.getBBox(),i=t.style&&t.style.background;if(!i)return{};var a=i.padding,o=r.width+a[1]+a[3],s=r.height+a[0]+a[2],l=ve(ve({},i),{width:o,height:s,x:r.minX-a[3],y:r.minY-a[0],matrix:[1,0,0,0,1,0,0,0,1]}),u;return an(t.autoRotate)?u=this.labelAutoRotate:u=t.autoRotate,u&&(l.matrix=e.attr("matrix")||[1,0,0,0,1,0,0,0,1]),l},_getTextAlign:function(e,t){var r="center";return t?(t=t%(Math.PI*2),e!=="center"&&(t>=0&&t<=Math.PI/2||t>=3/2*Math.PI&&t<2*Math.PI?r=e:r=i$t(e)),r):e},getControlPoints:function(e){return e.controlPoints},getPathPoints:function(e){return e},drawShape:function(e,t){var r=this.getShapeStyle(e),i=t.addShape("path",{className:x5,name:x5,attrs:r});return t.shapeMap[x5]=i,i},drawLabel:function(e,t){var r=this.options.labelCfg,i=ms({},r,e.labelCfg),a=this.getLabelStyle(e,i,t),o=a.rotate;delete a.rotate;var s=t.addShape("text",{attrs:a,name:"text-shape",labelRelated:!0,draggable:!0});if(t.shapeMap["text-shape"]=s,!isNaN(o)&&o!==""&&s.rotateAtStart(o),a.background){var l=this.drawLabelBg(e,t,s,a,o),u=this.itemType+hee;l.set("classname",u),t.shapeMap[u]=l,s.toFront()}return s},drawLabelBg:function(e,t,r,i,a){var o=this.options.labelCfg,s=ms({},o,e.labelCfg),l=this.getLabelBgStyleByPosition(r,s),u=t.addShape("rect",{name:"text-bg-shape",attrs:l,labelRelated:!0});return t.shapeMap["text-bg-shape"]=u,u}},o$t=ve(ve({},xse),a$t);_s.registerEdge("single-edge",o$t);_s.registerEdge("line",{getControlPoints:function(){}},"single-edge");_s.registerEdge("spline",{getPath:function(e){var t=TUe(e);return t}},"single-edge");_s.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(e){var t=e.startPoint,r=e.endPoint,i={x:(t.x+r.x)/2,y:(t.y+r.y)/2},a,o;if(e.controlPoints!==void 0){if(o=e.controlPoints[0],a=OQ(t,o,r),t.x<=r.x&&t.y>r.y?this.clockwise=a.x>o.x?0:1:t.x<=r.x&&t.yo.x?1:0:t.x>r.x&&t.y<=r.y?this.clockwise=a.y0&&d(S[0])}},m=0;m0;)f.push(l.pop());o.push(f)}}return o};qS.detectConnectedComponents=GUe;var zUe=function(e){for(var t=e.nodes,r=t===void 0?[]:t,i=e.edges,a=i===void 0?[]:i,o=[],s={},l={},u={},h=[],c=0,f=function g(m){l[m.id]=c,u[m.id]=c,c+=1,o.push(m),s[m.id]=!0;for(var y=(0,BUe.getNeighbors)(m.id,a,"target").filter(function(b){return r.map(function(E){return E.id}).indexOf(b)>-1}),_=function(E){var T=y[E];if(!l[T]&&l[T]!==0){var C=r.filter(function(A){return A.id===T});C.length>0&&g(C[0]),u[m.id]=Math.min(u[m.id],u[T])}else s[T]&&(u[m.id]=Math.min(u[m.id],l[T]))},x=0;x0;){var w=o.pop();if(s[w.id]=!1,S.push(w),w===m)break}S.length>0&&h.push(S)}},d=0,v=r;d0;)for(var g=d.pop(),m=g.id,y=(0,$Ue.getNeighbors)(m,e.edges),_=function(w){var b,E=y[w],T=e.nodes.find(function(k){return k.id===E});if(E===m)o.push((b={},b[E]=g,b));else if(!(E in p))v[E]=g,d.push(T),p[E]=new Set([g]);else if(!p[m].has(T)){for(var C=!0,A=[T,g],M=v[m];p[E].size&&!p[E].has(M)&&(A.push(M),M!==v[M.id]);)M=v[M.id];if(A.push(M),t&&r?(C=!1,A.findIndex(function(k){return t.indexOf(k.id)>-1})>-1&&(C=!0)):t&&!r&&A.findIndex(function(k){return t.indexOf(k.id)>-1})>-1&&(C=!1),C){for(var I={},R=1;R0;){var R=I.pop();a.has(R)&&(a.delete(R),o[R.id].forEach(function(k){I.push(k)}),o[R.id].clear())}},c=function A(M,I,R){var k=!1;if(t&&r===!1&&t.indexOf(M.id)>-1)return k;i.push(M),a.add(M);for(var D=R[M.id],G=0;G-1});le-1)?s.push((I={},I[Y.id]=Y,I)):Z[Y.id].push(u[Q])}}return{component:j,adjList:Z,minIdx:k}},_=0;_=_}),S=(0,VUe.detectStrongConnectComponents)({nodes:x,edges:e.edges}).filter(function(A){return A.length>1});if(S.length===0)break;var w=y(S),b=w.minIdx,E=w.adjList,T=w.component;if(T.length>1){T.forEach(function(A){o[A.id]=new Set});var C=l[b];if(t&&r&&t.indexOf(C.id)===-1)return s;c(C,C,E),_=b+1}else break}return s};zy.detectAllDirectedCycle=jUe;var j$t=function(e,t,r,i){return i===void 0&&(i=!0),t?jUe(e,r,i):HUe(e,r,i)};zy.detectAllCycles=j$t;var X$t=H$t;zy.default=X$t;var XI={};const XUe=Nd(z4t),$3=Nd(J5t);Object.defineProperty(XI,"__esModule",{value:!0});XI.default=void 0;var kSe=XUe,Y$t=$3,FSe=Du,q$t=function(e,t,r){for(var i=1/0,a,o=0;oh[x.id]+A?(h[C]=h[x.id]+A,c[C]=[x.id]):h[C]===h[x.id]+A&&c[C].push(x.id)})},v=0;v0&&h.length>0;){var d=h[h.length-1];if(d.length){var v=d.shift();v&&(l.push(v),u[v]=!0,f=i?(0,S5.getNeighbors)(v,s,"target"):(0,S5.getNeighbors)(v,s),h.push(f.filter(function(m){return!u[m]})))}else{var p=l.pop();u[p]=!1,h.pop();continue}if(l[l.length-1]===r){var g=l.map(function(y){return y});c.push(g);var p=l.pop();u[p]=!1,h.pop()}}return c};AM.findAllPath=tWt;var W3={};Object.defineProperty(W3,"__esModule",{value:!0});W3.default=void 0;var rWt=nWt(aT);function nWt(n){return n&&n.__esModule?n:{default:n}}var iWt=function(e,t){for(var r=(0,rWt.default)(e,t),i=[],a=r.length,o=0;oi[o][l]+i[l][s]&&(i[o][s]=i[o][l]+i[l][s]);return i},aWt=iWt;W3.default=aWt;var jU={};Object.defineProperty(jU,"__esModule",{value:!0});jU.default=void 0;var oWt=lWt(aT),sWt=Du;function lWt(n){return n&&n.__esModule?n:{default:n}}var uWt=function(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r="weight"),i===void 0&&(i=1e3);var a=e.nodes,o=a===void 0?[]:a,s=e.edges,l=s===void 0?[]:s,u={},h={};o.forEach(function(_,x){var S=(0,sWt.uniqueId)();_.clusterId=S,u[S]={id:S,nodes:[_]},h[_.id]={node:_,idx:x}});var c=(0,oWt.default)(e,t),f={};c.forEach(function(_,x){var S=o[x].id;f[S]={},_.forEach(function(w,b){if(!!w){var E=o[b].id;f[S][E]=w}})});for(var d=0,v=function(){var x=!1;if(o.forEach(function(S){var w={};Object.keys(f[S.id]).forEach(function(R){var k=f[S.id][R],D=h[R].node,G=D.clusterId;w[G]||(w[G]=0),w[G]+=k});var b=-1/0,E=[];if(Object.keys(w).forEach(function(R){b=0&&E.splice(T,1),E&&E.length){x=!0;var C=u[S.clusterId],A=C.nodes.indexOf(S);C.nodes.splice(A,1);var M=Math.floor(Math.random()*E.length),I=u[E[M]];I.nodes.push(S),S.clusterId=I.id}}}),!x)return"break";d++};d0&&E>T&&E-TT&&(A=c.map(function(z){return{node:z,clusterId:z.clusterId}}),M=(0,xWt.clone)(y),T=E),I||C>100)break;C++,Object.keys(y).forEach(function(z){var j=0;d.forEach(function(Z){var Y=Z.source,le=Z.target,H=_[Y].node.clusterId,Q=_[le].node.clusterId;(H===z&&Q!==z||Q===z&&H!==z)&&(j=j+(Z[r]||1))}),y[z].sumTot=j}),c.forEach(function(z,j){var Z=y[z.clusterId],Y=0,le,H=S[j]/(2*b),Q=0,ie=Z.nodes;ie.forEach(function(st){var Nt=_[st.id].idx;Q+=x[j][Nt]||0});var oe=Q-Z.sumTot*H,se=ie.filter(function(st){return st.id!==z.id});se.forEach(function(st,Nt){v[st.originIndex]});var me=GX(se,v)*u,Ce=w[z.id];if(Object.keys(Ce).forEach(function(st){var Nt=_[st].node,Zt=Nt.clusterId;if(Zt!==z.clusterId){var qe=y[Zt],ur=qe.nodes;if(!(!ur||!ur.length)){var Dt=0;ur.forEach(function(Tt){var Qe=_[Tt.id].idx;Dt+=x[j][Qe]||0});var ft=Dt-qe.sumTot*H,Oe=ur.concat([z]);Oe.forEach(function(Tt,Qe){v[Tt.originIndex]});var J=GX(Oe,v)*u,We=ft-oe;a&&(We=ft+J-(oe+me)),We>Y&&(Y=We,le=qe)}}}),Y>0){le.nodes.push(z);var Le=z.clusterId;z.clusterId=le.id;var re=Z.nodes.indexOf(z);Z.nodes.splice(re,1);var yt=0,je=0;d.forEach(function(st){var Nt=st.source,Zt=st.target,qe=_[Nt].node.clusterId,ur=_[Zt].node.clusterId;(qe===le.id&&ur!==le.id||ur===le.id&&qe!==le.id)&&(yt=yt+(st[r]||1)),(qe===Le&&ur!==Le||ur===Le&&qe!==Le)&&(je=je+(st[r]||1))}),le.sumTot=yt,Z.sumTot=je}})}var R={},k=0;Object.keys(M).forEach(function(z){var j=M[z];if(!j.nodes||!j.nodes.length){delete M[z];return}var Z=String(k+1);Z!==z&&(j.id=Z,j.nodes=j.nodes.map(function(Y){return{id:Y.id,clusterId:Z}}),M[Z]=j,R[z]=Z,delete M[z],k++)}),A.forEach(function(z){var j=z.node,Z=z.clusterId;!j||(j.clusterId=Z,j.clusterId&&R[j.clusterId]&&(j.clusterId=R[j.clusterId]))});var D=[],G={};d.forEach(function(z){var j=z.source,Z=z.target,Y=z[r]||1,le=_[j].node.clusterId,H=_[Z].node.clusterId;if(!(!le||!H)){var Q="".concat(le,"---").concat(H);if(G[Q])G[Q].weight+=Y,G[Q].count++;else{var ie={source:le,target:H,weight:Y,count:1};G[Q]=ie,D.push(ie)}}});var V=[];return Object.keys(M).forEach(function(z){V.push(M[z])}),{clusters:V,clusterEdges:D}},TWt=EWt;XU.default=TWt;var YU={},qU={};Object.defineProperty(qU,"__esModule",{value:!0});qU.default=void 0;var CWt=function(){function n(e){this.count=e.length,this.parent={};for(var t=0,r=e;t0&&(this.list[0]=t,this.moveDown(0)),e},n.prototype.insert=function(e){if(e!==null){this.list.push(e);var t=this.list.length-1;return this.moveUp(t),!0}return!1},n.prototype.moveUp=function(e){for(var t=this.getParent(e);e&&e>0&&this.compareFn(this.list[t],this.list[e])>0;){var r=this.list[t];this.list[t]=this.list[e],this.list[e]=r,e=t,t=this.getParent(e)}},n.prototype.moveDown=function(e){var t,r=e,i=this.getLeft(e),a=this.getRight(e),o=this.list.length;i!==null&&i0?r=i:a!==null&&a0&&(r=a),e!==r&&(t=[this.list[r],this.list[e]],this.list[e]=t[0],this.list[r]=t[1],this.moveDown(r))},n}(),LWt=IWt;ZU.default=LWt;Object.defineProperty(YU,"__esModule",{value:!0});YU.default=void 0;var PWt=eVe(qU),OWt=eVe(ZU),zX=Du;function eVe(n){return n&&n.__esModule?n:{default:n}}var RWt=function(e,t){var r=[],i=e.nodes,a=i===void 0?[]:i,o=e.edges,s=o===void 0?[]:o;if(a.length===0)return r;var l=a[0],u=new Set;u.add(l);var h=function(g,m){return t?g.weight-m.weight:0},c=new OWt.default(h);for((0,zX.getEdgesByNodeId)(l.id,s).forEach(function(p){c.insert(p)});!c.isEmpty();){var f=c.delMin(),d=f.source,v=f.target;u.has(d)&&u.has(v)||(r.push(f),u.has(d)||(u.add(d),(0,zX.getEdgesByNodeId)(d,s).forEach(function(p){c.insert(p)})),u.has(v)||(u.add(v),(0,zX.getEdgesByNodeId)(v,s).forEach(function(p){c.insert(p)})))}return r},$Se=function(e,t){var r=[],i=e.nodes,a=i===void 0?[]:i,o=e.edges,s=o===void 0?[]:o;if(a.length===0)return r;var l=s.map(function(d){return d});t&&l.sort(function(d,v){return d.weight-v.weight});for(var u=new PWt.default(a.map(function(d){return d.id}));l.length>0;){var h=l.shift(),c=h.source,f=h.target;u.connected(c,f)||(r.push(h),u.union(c,f))}return r},DWt=function(e,t,r){var i={prim:RWt,kruskal:$Se};return r?i[r](e,t):$Se(e,t)},NWt=DWt;YU.default=NWt;var KU={};Object.defineProperty(KU,"__esModule",{value:!0});KU.default=void 0;var kWt=BWt(q1),FWt=Du;function BWt(n){return n&&n.__esModule?n:{default:n}}var GWt=function(e,t,r){typeof t!="number"&&(t=1e-6),typeof r!="number"&&(r=.85);for(var i=1,a=0,o=1e3,s=e.nodes,l=s===void 0?[]:s,u=e.edges,h=u===void 0?[]:u,c=l.length,f,d={},v={},p=0;p0&&i>t;){a=0;for(var p=0;p0&&(f+=v[S]/w)}d[m]=r*f,a+=d[m]}}a=(1-a)/c,i=0;for(var p=0;p=0;r--){var i=this.dfsEdgeList[r],a=i.fromNode,o=i.toNode;ad||i.hasNode(o[f.to])||(t.label_;S--){var w=x(S);if(w==="break")break}if(m){var b=e.findMinLabel(g);o.dfsEdgeList.push(new Bb(p,y,cd.VACANT_NODE_LABEL,b.edgeLabel,cd.VACANT_NODE_LABEL));var E=o.dfsEdgeList.length-1;return e.dfsCode.dfsEdgeList[E]!==o.dfsEdgeList[E]?!1:c(g[b.edgeLabel].projected)}var T={};m=!1;var C=0;f.forEach(function(D){var G=new w5(D),V=e.findForwardPureEdges(i,G.edges[d[0]],v,G);V.length>0&&(m=!0,C=p,V.forEach(function(z){var j="".concat(z.label,"-").concat(a[z.to].label);T[j]||(T[j]={projected:[],edgeLabel:z.label,nodeLabel2:a[z.to].label}),T[j].projected.push({graphId:i.id,edge:z,preNode:D})}))});for(var A=d.length,M=function(G){if(m)return"break";var V=d[G];f.forEach(function(z){var j=new w5(z),Z=e.findForwardRmpathEdges(i,j.edges[V],v,j);Z.length>0&&(m=!0,C=o.dfsEdgeList[V].fromNode,Z.forEach(function(Y){var le="".concat(Y.label,"-").concat(a[Y.to].label);T[le]||(T[le]={projected:[],edgeLabel:Y.label,nodeLabel2:a[Y.to].label}),T[le].projected.push({graphId:i.id,edge:Y,preNode:z})}))})},S=0;S=0;v--){var p=t.findBackwardEdge(c,d.edges[a[v]],d.edges[a[0]],d);if(p){var g="".concat(t.dfsCode.dfsEdgeList[a[v]].fromNode,"-").concat(p.label);u[g]||(u[g]={projected:[],toNodeId:t.dfsCode.dfsEdgeList[a[v]].fromNode,edgeLabel:p.label}),u[g].projected.push({graphId:h.graphId,edge:p,preNode:h})}}if(!(i>=t.maxNodeNum)){var m=t.findForwardPureEdges(c,d.edges[a[0]],s,d);m.forEach(function(_){var x="".concat(o,"-").concat(_.label,"-").concat(f[_.to].label);l[x]||(l[x]={projected:[],fromNodeId:o,edgeLabel:_.label,nodeLabel2:f[_.to].label}),l[x].projected.push({graphId:h.graphId,edge:_,preNode:h})});for(var y=function(x){var S=t.findForwardRmpathEdges(c,d.edges[a[x]],s,d);S.forEach(function(w){var b="".concat(t.dfsCode.dfsEdgeList[a[x]].fromNode,"-").concat(w.label,"-").concat(f[w.to].label);l[b]||(l[b]={projected:[],fromNodeId:t.dfsCode.dfsEdgeList[a[x]].fromNode,edgeLabel:w.label,nodeLabel2:f[w.to].label}),l[b].projected.push({graphId:h.graphId,edge:w,preNode:h})})},v=0;vy){var _=y;y=m,m=_}var x=g.label,S="".concat(m,"-").concat(x,"-").concat(y);if(!o[S]){var w=o[S]||0;w++,o[S]=w}})})}),Object.keys(a).forEach(function(l){var u=a[l];if(!(u2*t)););if(g<2*t&&(s["".concat(h,"-").concat(p)]={start:h,end:p,distance:a[h][p]},c++,l++,l>=r))return s;if(f++,f>2*t)break}if(cf&&(l=f);var d=r[c.id].inDegree;u>d&&(u=d);var v=r[c.id].outDegree;h>v&&(h=v)}),e[t]={degree:l,inDegree:u,outDegree:h}),{minPatternNodeLabelDegree:l,minPatternNodeLabelInDegree:u,minPatternNodeLabelOutDegree:h}},tHt=function(e,t,r,i,a,o,s){var l;if(r===void 0&&(r=!1),o===void 0&&(o="cluster"),s===void 0&&(s="cluster"),!(!e||!e.nodes)){var u=e.nodes.length;if(!!u){var h=(0,XSe.default)(e,r),c=(0,XSe.default)(t,r),f=JSe(e.nodes,h,r),d=JSe(t.nodes,c,r),v=ZSe(e.nodes,o),p=v.nodeMap,g=v.nodeLabelMap,m=ZSe(t.nodes,o),y=m.nodeMap,_=m.nodeLabelMap;KSe(e.edges,s,p);var x=KSe(t.edges,s,y).edgeLabelMap,S=[];c==null||c.forEach(function(ft){S=S.concat(ft)}),a||(a=Math.max.apply(Math,(0,jSe.__spreadArray)((0,jSe.__spreadArray)([],S,!1),[2],!1))),i||(i=a);var w=qSe(e,h,o,i),b=qSe(t,c,o,i),E=Math.min(100,u*(u-1)/2),T=JWt(i,u,E,w,h),C=XB(T,w,e),A=10,M=1,I=1,R=4,k={graphs:C,nodeLabelProp:o,edgeLabelProp:s,minSupport:M,minNodeNum:I,maxNodeNum:R,directed:r},D=(0,ZWt.default)(k).slice(0,A),G=D.length,V=[];D.forEach(function(ft,Oe){V[Oe]={},Object.keys(C).forEach(function(J){var We=C[J],Tt=YB(We,ft,o,s);V[Oe][J]=Tt})});var z=QWt(V,G,D),j=z.structure,Z=z.structureCountMap,Y=t.nodes[0],le=[],H=(l=t.nodes[0])===null||l===void 0?void 0:l[o],Q=-1/0;t.nodes.forEach(function(ft){var Oe=ft[o],J=g[Oe];(J==null?void 0:J.length)>Q&&(Q=J.length,le=J,H=Oe,Y=ft)});var ie={},oe={},se={},me={},Ce={},Le={};Object.keys(_).forEach(function(ft,Oe){Ce[ft]=[],r&&(Le[ft]=[]);var J=_[ft],We={};J.forEach(function(wt){var pt=d["".concat(Y.id,"-").concat(wt.id)];if(pt&&Ce[ft].push(pt),We["".concat(Y.id,"-").concat(wt.id)]={start:0,end:y[wt.id].idx,distance:pt},r){var ar=d["".concat(wt.id,"-").concat(Y.id)];ar&&Le[ft].push(ar)}}),Ce[ft]=Ce[ft].sort(function(wt,pt){return wt-pt}),r&&(Le[ft]=Le[ft].sort(function(wt,pt){return wt-pt})),oe=XB(We,b,t,oe);var Tt=[];if(Object.keys(We).forEach(function(wt){if(se[wt]){Tt.push(se[wt]);return}var pt=oe[wt];se[wt]=YB(pt,j,o,s),Tt.push(se[wt])}),Tt=Tt.sort(function(wt,pt){return pt-wt}),me["".concat(Y.id,"-").concat(ft)]=Tt,ft!==H)for(var Qe=(le==null?void 0:le.length)||0,zt=function(pt){var ar=le[pt],kt=w[p[ar.id].idx],Dr=kt.nodeLabelCountMap[ft],Sr=_[ft].length;if(!Dr||Dr.countCe[ft][pn]){jr=!0;break}if(jr)return le.splice(pt,1),"continue";var Jn={};kt.neighbors.forEach(function(yn){var Oi=f["".concat(ar.id,"-").concat(yn.id)];Jn["".concat(ar.id,"-").concat(yn.id)]={start:p[ar.id].idx,end:p[yn.id].idx,distance:Oi}}),C=XB(Jn,w,e,C);var Rn=[];Object.keys(Jn).forEach(function(yn){if(Z[yn]){Rn.push(Z[yn]);return}var Oi=C[yn];Z[yn]=YB(Oi,j,o,s),Rn.push(Z[yn])}),Rn=Rn.sort(function(yn,Oi){return Oi-yn});for(var hi=!1,pn=0;pn=0;mt--)zt(mt)});var re=[];le==null||le.forEach(function(ft){for(var Oe=p[ft.id].idx,J=aVe(e.nodes,h[Oe],Oe,o,a),We=J.neighbors,Tt=We.length,Qe=!1,zt=Tt-1;zt>=0;zt--){if(We.length+1Dr){We.splice(zt,1);continue}if(r){var Sr="".concat(mt.id,"-").concat(ft.id),jr=f[Sr];kt=Le[wt].length-1;var pn=Le[wt][kt];if(jr>pn){We.splice(zt,1);continue}}var Jn=Z[pt]?Z[pt]:eHt(e,ft,mt,p,ar,w,j,o,s,Z,C),Rn="".concat(Y.id,"-").concat(wt),hi=me[Rn][me[Rn].length-1];if(Jn=0;ar--){var pn=jr(ar);if(pn==="break")break}if(Sr)return re.splice(Oe,1),"continue";J.edges=zt;var Jn=(0,YSe.default)(J,J.nodes[0].id,!1).length;if(Object.keys(Jn).reverse().forEach(function(ue){if(!(ue===J.nodes[0].id||Sr)){if(Jn[ue]===1/0){var xe=Qe[ue].node[o];if(Tt[xe]--,Tt[xe]<_[xe].length){Sr=!0;return}var ce=J.nodes.indexOf(Qe[ue].node);J.nodes.splice(ce,1),Qe[ue]=void 0;return}var pe=p[ue].node[o];if(!je[pe]||!je[pe].length||Jn[ue]>je[pe][je[pe].length-1]){var xe=Qe[ue].node[o];if(Tt[xe]--,Tt[xe]<_[xe].length){Sr=!0;return}var ce=J.nodes.indexOf(Qe[ue].node);J.nodes.splice(ce,1),Qe[ue]=void 0}}}),Sr)return re.splice(Oe,1),"continue";for(var Rn=!0,hi=0;Rn&&!Sr;){Rn=!1;var yn=r?Qe[We.id].degree=0;oi--){var Gi=J.nodes[oi],ws=Qe[Gi.id].degree,xl=Qe[Gi.id].inDegree,Os=Qe[Gi.id].outDegree,no=Gi[o],vo=QSe(ie,no,y,_),No=vo.minPatternNodeLabelDegree,Ko=vo.minPatternNodeLabelInDegree,Lo=vo.minPatternNodeLabelOutDegree,hs=r?ws=0;Rs--){var Pn=zt[Rs];if(!Qe[Pn.source]||!Qe[Pn.target]){zt.splice(Rs,1);var mo=Pn[s];if(mt[mo]--,Qe[Pn.source]&&(Qe[Pn.source].degree--,Qe[Pn.source].outDegree--),Qe[Pn.target]&&(Qe[Pn.target].degree--,Qe[Pn.target].inDegree--),x[mo]&&mt[mo]=0;Zt--){var qe=Nt(Zt);if(qe==="break")break}for(var ur=re.length,Dt=function(Oe){var J=re[Oe],We={};J.edges.forEach(function(zt){var mt="".concat(zt.source,"-").concat(zt.target,"-").concat(zt.label);We[mt]?We[mt]++:We[mt]=1});for(var Tt=function(mt){var wt=re[mt],pt={};wt.edges.forEach(function(kt){var Dr="".concat(kt.source,"-").concat(kt.target,"-").concat(kt.label);pt[Dr]?pt[Dr]++:pt[Dr]=1});var ar=!0;Object.keys(pt).length!==Object.keys(We).length?ar=!1:Object.keys(We).forEach(function(kt){pt[kt]!==We[kt]&&(ar=!1)}),ar&&re.splice(mt,1)},Qe=ur-1;Qe>Oe;Qe--)Tt(Qe);ur=re.length},Zt=0;Zt<=ur-1;Zt++)Dt(Zt);return re}}},rHt=tHt;JU.default=rHt;(function(n){function e(x){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},e(x)}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"GADDI",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(n,"breadthFirstSearch",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"connectedComponent",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"depthFirstSearch",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"detectCycle",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"dijkstra",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"findAllPath",{enumerable:!0,get:function(){return u.findAllPath}}),Object.defineProperty(n,"findShortestPath",{enumerable:!0,get:function(){return u.findShortestPath}}),Object.defineProperty(n,"floydWarshall",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(n,"getAdjMatrix",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(n,"getDegree",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"getInDegree",{enumerable:!0,get:function(){return a.getInDegree}}),Object.defineProperty(n,"getNeighbors",{enumerable:!0,get:function(){return g.getNeighbors}}),Object.defineProperty(n,"getOutDegree",{enumerable:!0,get:function(){return a.getOutDegree}}),Object.defineProperty(n,"labelPropagation",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(n,"louvain",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(n,"minimumSpanningTree",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(n,"pageRank",{enumerable:!0,get:function(){return v.default}});var t=_(aT),r=_($U),i=_(qS),a=y(q1),o=_(zy),s=_(HU),l=_(XI),u=AM,h=_(W3),c=_(jU),f=_(XU),d=_(YU),v=_(KU),p=_(JU),g=Du;function m(x){if(typeof WeakMap!="function")return null;var S=new WeakMap,w=new WeakMap;return(m=function(E){return E?w:S})(x)}function y(x,S){if(!S&&x&&x.__esModule)return x;if(x===null||e(x)!=="object"&&typeof x!="function")return{default:x};var w=m(S);if(w&&w.has(x))return w.get(x);var b={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in x)if(T!=="default"&&Object.prototype.hasOwnProperty.call(x,T)){var C=E?Object.getOwnPropertyDescriptor(x,T):null;C&&(C.get||C.set)?Object.defineProperty(b,T,C):b[T]=x[T]}return b.default=x,w&&w.set(x,b),b}function _(x){return x&&x.__esModule?x:{default:x}}})(FUe);function pee(n){return pee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pee(n)}Object.defineProperty(VU,"__esModule",{value:!0});VU.default=void 0;var UX=nHt(FUe),ewe=YS;function oVe(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(oVe=function(i){return i?t:e})(n)}function nHt(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||pee(n)!=="object"&&typeof n!="function")return{default:n};var t=oVe(e);if(t&&t.has(n))return t.get(n);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in n)if(a!=="default"&&Object.prototype.hasOwnProperty.call(n,a)){var o=i?Object.getOwnPropertyDescriptor(n,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=n[a]}return r.default=n,t&&t.set(n,r),r}var VX=typeof self<"u"?self:{};VX.onmessage=function(n){var e=n.data,t=e._algorithmType,r=e.data;if(!!t){if(typeof UX[t]=="function"){var i=UX[t].apply(UX,r);VX.postMessage({_algorithmType:ewe.MESSAGE.SUCCESS,data:i});return}VX.postMessage({_algorithmType:ewe.MESSAGE.FAILURE})}};var iHt=null;VU.default=iHt;Object.defineProperty(UU,"__esModule",{value:!0});UU.default=void 0;var aHt=YS,oHt=sHt(VU);function sHt(n){return n&&n.__esModule?n:{default:n}}var lHt=function(e){return function(){for(var t=[],r=0;r=n&&i<=n+t&&a>=e&&a<=e+r}function qD(n,e){return!(e.minX>n.maxX||e.maxXn.maxY||e.maxY=0&&i<1/2*Math.PI?(s={x:o.minX,y:o.minY},l={x:o.maxX,y:o.maxY}):1/2*Math.PI<=i&&i1&&(t*=Math.sqrt(d),r*=Math.sqrt(d));var v=t*t*(f*f)+r*r*(c*c),p=v?Math.sqrt((t*t*(r*r)-v)/v):1;a===o&&(p*=-1),isNaN(p)&&(p=0);var g=r?p*t*f/r:0,m=t?p*-r*c/t:0,y=(s+u)/2+Math.cos(i)*g-Math.sin(i)*m,_=(l+h)/2+Math.sin(i)*g+Math.cos(i)*m,x=[(c-g)/t,(f-m)/r],S=[(-1*c-g)/t,(-1*f-m)/r],w=rwe([1,0],x),b=rwe(x,S);return gee(x,S)<=-1&&(b=Math.PI),gee(x,S)>=1&&(b=0),o===0&&b>0&&(b=b-2*Math.PI),o===1&&b<0&&(b=b+2*Math.PI),{cx:y,cy:_,rx:twe(n,[u,h])?0:t,ry:twe(n,[u,h])?0:r,startAngle:w,endAngle:w+b,xRotation:i,arcFlag:a,sweepFlag:o}}var w9=Math.sin,b9=Math.cos,Tse=Math.atan2,E5=Math.PI;function hVe(n,e,t,r,i,a,o){var s=e.stroke,l=e.lineWidth,u=t-i,h=r-a,c=Tse(h,u),f=new Ise({type:"path",canvas:n.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*b9(E5/6)+","+10*w9(E5/6)+" L0,0 L"+10*b9(E5/6)+",-"+10*w9(E5/6),stroke:s,lineWidth:l}});f.translate(i,a),f.rotateAtPoint(i,a,c),n.set(o?"startArrowShape":"endArrowShape",f)}function cVe(n,e,t,r,i,a,o){var s=e.startArrow,l=e.endArrow,u=e.stroke,h=e.lineWidth,c=o?s:l,f=c.d,d=c.fill,v=c.stroke,p=c.lineWidth,g=rh(c,["d","fill","stroke","lineWidth"]),m=t-i,y=r-a,_=Tse(y,m);f&&(i=i-b9(_)*f,a=a-w9(_)*f);var x=new Ise({type:"path",canvas:n.get("canvas"),isArrowShape:!0,attrs:ve(ve({},g),{stroke:v||u,lineWidth:p||h,fill:d})});x.translate(i,a),x.rotateAtPoint(i,a,_),n.set(o?"startArrowShape":"endArrowShape",x)}function kE(n,e,t,r,i){var a=Tse(r-e,t-n);return{dx:b9(a)*i,dy:w9(a)*i}}function Cse(n,e,t,r,i,a){typeof e.startArrow=="object"?cVe(n,e,t,r,i,a,!0):e.startArrow?hVe(n,e,t,r,i,a,!0):n.set("startArrowShape",null)}function Ase(n,e,t,r,i,a){typeof e.endArrow=="object"?cVe(n,e,t,r,i,a,!1):e.endArrow?hVe(n,e,t,r,i,a,!1):n.set("startArrowShape",null)}var iwe={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function IM(n,e){var t=e.attr();for(var r in t){var i=t[r],a=iwe[r]?iwe[r]:r;a==="matrix"&&i?n.transform(i[0],i[1],i[3],i[4],i[6],i[7]):a==="lineDash"&&n.setLineDash?vn(i)&&n.setLineDash(i):(a==="strokeStyle"||a==="fillStyle"?i=zHt(n,e,i):a==="globalAlpha"&&(i=i*n.globalAlpha),n[a]=i)}}function yee(n,e,t){for(var r=0;rS?x:S,A=x>S?1:x/S,M=x>S?S/x:1;e.translate(y,_),e.rotate(E),e.scale(A,M),e.arc(0,0,C,w,b,1-T),e.scale(1/A,1/M),e.rotate(-E),e.translate(-y,-_)}break}case"Z":e.closePath();break}if(f==="Z")s=l;else{var I=c.length;s=[c[I-2],c[I-1]]}}}}function vVe(n,e){var t=n.get("canvas");t&&(e==="remove"&&(n._cacheCanvasBBox=n.get("cacheCanvasBBox")),n.get("hasChanged")||(n.set("hasChanged",!0),n.cfg.parent&&n.cfg.parent.get("hasChanged")||(t.refreshElement(n,e,t),t.get("autoDraw")&&t.draw())))}function WHt(n){var e;if(n.destroyed)e=n._cacheCanvasBBox;else{var t=n.get("cacheCanvasBBox"),r=t&&!!(t.width&&t.height),i=n.getCanvasBBox(),a=i&&!!(i.width&&i.height);r&&a?e=RHt(t,i):r?e=t:a&&(e=i)}return e}function HHt(n){if(!n.length)return null;var e=[],t=[],r=[],i=[];return At(n,function(a){var o=WHt(a);o&&(e.push(o.minX),t.push(o.minY),r.push(o.maxX),i.push(o.maxY))}),{minX:dm(e),minY:dm(t),maxX:fm(r),maxY:fm(i)}}function jHt(n,e){return!n||!e||!qD(n,e)?null:{minX:Math.max(n.minX,e.minX),minY:Math.max(n.minY,e.minY),maxX:Math.min(n.maxX,e.maxX),maxY:Math.min(n.maxY,e.maxY)}}var pVe=function(n){Kn(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onCanvasChange=function(t){vVe(this,t)},e.prototype.getShapeBase=function(){return pne},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,r){r&&(t.save(),IM(t,r),r.createPath(t),t.restore(),t.clip(),r._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,r=[],i=[];At(t,function(f){var d=f.cfg.cacheCanvasBBox;d&&f.cfg.isInView&&(r.push(d.minX,d.maxX),i.push(d.minY,d.maxY))});var a=null;if(r.length){var o=dm(r),s=fm(r),l=dm(i),u=fm(i);a={minX:o,minY:l,x:o,y:l,maxX:s,maxY:u,width:s-o,height:u-l};var h=this.cfg.canvas;if(h){var c=h.getViewRange();this.set("isInView",qD(a,c))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",a)},e.prototype.draw=function(t,r){var i=this.cfg.children,a=r?this.cfg.refresh:!0;i.length&&a&&(t.save(),IM(t,this),this._applyClip(t,this.getClip()),yee(t,i,r),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(Zze),XHt=function(n){Kn(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=n.prototype.getDefaultAttrs.call(this);return ve(ve({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return pne},e.prototype.getGroupBase=function(){return pVe},e.prototype.onCanvasChange=function(t){vVe(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),r=this.getHitLineWidth(),i=Qze(t),a=i(this),o=r/2,s=a.x-o,l=a.y-o,u=a.x+a.width+o,h=a.y+a.height+o;return{x:s,minX:s,y:l,minY:l,width:a.width+r,height:a.height+r,maxX:u,maxY:h}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,r){r&&(t.save(),IM(t,r),r.createPath(t),t.restore(),t.clip(),r._afterDraw())},e.prototype.draw=function(t,r){var i=this.cfg.clipShape;if(r){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var a=this.getCanvasBBox();if(!qD(r,a)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}t.save(),IM(t,this),this._applyClip(t,i),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var r=this.getCanvasBBox(),i=qD(r,t);this.set("isInView",i),i?this.set("cacheCanvasBBox",r):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var r=this.attrs,i=r.lineWidth,a=r.opacity,o=r.strokeOpacity,s=r.fillOpacity;this.isFill()&&(!an(s)&&s!==1?(t.globalAlpha=s,this.fill(t),t.globalAlpha=a):this.fill(t)),this.isStroke()&&i>0&&(!an(o)&&o!==1&&(t.globalAlpha=o),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,r){var i=this.isStroke(),a=this.isFill(),o=this.getHitLineWidth();return this.isInStrokeOrPath(t,r,i,a,o)},e.prototype.isInStrokeOrPath=function(t,r,i,a,o){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(Kze);const F0=XHt;var YHt=function(n){Kn(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=n.prototype.getDefaultAttrs.call(this);return ve(ve({},t),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,r,i,a,o){var s=this.attr(),l=s.x,u=s.y,h=s.r,c=o/2,f=sVe(l,u,t,r);return a&&i?f<=h+c:a?f<=h:i?f>=h-c&&f<=h+c:!1},e.prototype.createPath=function(t){var r=this.attr(),i=r.x,a=r.y,o=r.r;t.beginPath(),t.arc(i,a,o,0,Math.PI*2,!1),t.closePath()},e}(F0);const qHt=YHt;function T5(n,e,t,r){return n/(t*t)+e/(r*r)}var ZHt=function(n){Kn(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=n.prototype.getDefaultAttrs.call(this);return ve(ve({},t),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,r,i,a,o){var s=this.attr(),l=o/2,u=s.x,h=s.y,c=s.rx,f=s.ry,d=(t-u)*(t-u),v=(r-h)*(r-h);return a&&i?T5(d,v,c+l,f+l)<=1:a?T5(d,v,c,f)<=1:i?T5(d,v,c-l,f-l)>=1&&T5(d,v,c+l,f+l)<=1:!1},e.prototype.createPath=function(t){var r=this.attr(),i=r.x,a=r.y,o=r.rx,s=r.ry;if(t.beginPath(),t.ellipse)t.ellipse(i,a,o,s,0,0,Math.PI*2,!1);else{var l=o>s?o:s,u=o>s?1:o/s,h=o>s?s/o:1;t.save(),t.translate(i,a),t.scale(u,h),t.arc(0,0,l,0,Math.PI*2),t.restore(),t.closePath()}},e}(F0);const KHt=ZHt;function awe(n){return n instanceof HTMLElement&&rr(n.nodeName)&&n.nodeName.toUpperCase()==="CANVAS"}var JHt=function(n){Kn(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=n.prototype.getDefaultAttrs.call(this);return ve(ve({},t),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var r=this,i=this.attrs;if(rr(t)){var a=new Image;a.onload=function(){if(r.destroyed)return!1;r.attr("img",a),r.set("loading",!1),r._afterLoading();var o=r.get("callback");o&&o.call(r)},a.crossOrigin="Anonymous",a.src=t,this.set("loading",!0)}else t instanceof Image?(i.width||(i.width=t.width),i.height||(i.height=t.height)):awe(t)&&(i.width||(i.width=Number(t.getAttribute("width"))),i.height||(i.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(t,r,i){n.prototype.onAttrChange.call(this,t,r,i),t==="img"&&this._setImage(r)},e.prototype.createPath=function(t){if(this.get("loading")){this.set("toDraw",!0),this.set("context",t);return}var r=this.attr(),i=r.x,a=r.y,o=r.width,s=r.height,l=r.sx,u=r.sy,h=r.swidth,c=r.sheight,f=r.img;(f instanceof Image||awe(f))&&(!an(l)&&!an(u)&&!an(h)&&!an(c)?t.drawImage(f,l,u,h,c,i,a,o,s):t.drawImage(f,i,a,o,s))},e}(F0);const QHt=JHt;function oS(n,e,t,r,i,a,o){var s=Math.min(n,t),l=Math.max(n,t),u=Math.min(e,r),h=Math.max(e,r),c=i/2;return a>=s-c&&a<=l+c&&o>=u-c&&o<=h+c?Fh.pointToLine(n,e,t,r,a,o)<=i/2:!1}var ejt=function(n){Kn(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=n.prototype.getDefaultAttrs.call(this);return ve(ve({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(t,r,i){n.prototype.onAttrChange.call(this,t,r,i),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),r=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.startArrow,l=t.endArrow;s&&Cse(this,t,a,o,r,i),l&&Ase(this,t,r,i,a,o)},e.prototype.isInStrokeOrPath=function(t,r,i,a,o){if(!i||!o)return!1;var s=this.attr(),l=s.x1,u=s.y1,h=s.x2,c=s.y2;return oS(l,u,h,c,o,t,r)},e.prototype.createPath=function(t){var r=this.attr(),i=r.x1,a=r.y1,o=r.x2,s=r.y2,l=r.startArrow,u=r.endArrow,h={dx:0,dy:0},c={dx:0,dy:0};l&&l.d&&(h=kE(i,a,o,s,r.startArrow.d)),u&&u.d&&(c=kE(i,a,o,s,r.endArrow.d)),t.beginPath(),t.moveTo(i+h.dx,a+h.dy),t.lineTo(o-c.dx,s-c.dy)},e.prototype.afterDrawPath=function(t){var r=this.get("startArrowShape"),i=this.get("endArrowShape");r&&r.draw(t),i&&i.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),r=t.x1,i=t.y1,a=t.x2,o=t.y2;return Fh.length(r,i,a,o)},e.prototype.getPoint=function(t){var r=this.attr(),i=r.x1,a=r.y1,o=r.x2,s=r.y2;return Fh.pointAt(i,a,o,s,t)},e}(F0);const tjt=ejt;var rjt={circle:function(n,e,t){return[["M",n-t,e],["A",t,t,0,1,0,n+t,e],["A",t,t,0,1,0,n-t,e]]},square:function(n,e,t){return[["M",n-t,e-t],["L",n+t,e-t],["L",n+t,e+t],["L",n-t,e+t],["Z"]]},diamond:function(n,e,t){return[["M",n-t,e],["L",n,e-t],["L",n+t,e],["L",n,e+t],["Z"]]},triangle:function(n,e,t){var r=t*Math.sin(.3333333333333333*Math.PI);return[["M",n-t,e+r],["L",n,e-r],["L",n+t,e+r],["Z"]]},"triangle-down":function(n,e,t){var r=t*Math.sin(.3333333333333333*Math.PI);return[["M",n-t,e-r],["L",n+t,e-r],["L",n,e+r],["Z"]]}},njt=function(n){Kn(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(t,r,i){n.prototype.onAttrChange.call(this,t,r,i),["symbol","x","y","r","radius"].indexOf(t)!==-1&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return an(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t=this.attr(),r=t.x,i=t.y,a=t.symbol||"circle",o=this._getR(t),s,l;if(nl(a))s=a,l=s(r,i,o),l=fUe(l);else{if(s=e.Symbols[a],!s)return console.warn(a+" marker is not supported."),null;l=s(r,i,o)}return l},e.prototype.createPath=function(t){var r=this._getPath(),i=this.get("paramsCache");dVe(this,t,{path:r},i)},e.Symbols=rjt,e}(F0);const ijt=njt;function gVe(n,e,t){var r=lUe();return n.createPath(r),r.isPointInPath(e,t)}var ajt=1e-6;function $X(n){return Math.abs(n)0!=$X(s[1]-t)>0&&$X(e-(t-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(r=!r)}return r}function yO(n,e,t,r,i,a,o,s){var l=(Math.atan2(s-e,o-n)+Math.PI*2)%(Math.PI*2);if(li)return!1;var u={x:n+t*Math.cos(l),y:e+t*Math.sin(l)};return sVe(u.x,u.y,o,s)<=a/2}var sjt=sg;function ljt(n){for(var e=!1,t=n.length,r=0;r_?y:_,T=y>_?1:y/_,C=y>_?_/y:1,A=sjt(null,[["t",-g,-m],["r",-w],["s",1/T,1/C]]);kU(b,b,A),a=yO(0,0,E,x,S,e,b[0],b[1]);break}if(a)break}}return a}function hjt(n){for(var e=n.length,t=[],r=[],i=[],a=0;a0&&r.push(i),{polygons:t,polylines:r}}const C5=ve({hasArc:ljt,extractPolygons:hjt,isPointInStroke:ujt},czt);function owe(n,e,t){for(var r=!1,i=0;i=h[0]&&t<=h[1]&&(i=(t-h[0])/(h[1]-h[0]),a=c)});var s=o[a];if(an(s)||an(a))return null;var l=s.length,u=o[a+1];return vR.pointAt(s[l-2],s[l-1],u[1],u[2],u[3],u[4],u[5],u[6],i)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",C5.pathToCurve(t))},e.prototype._setTcache=function(){var t=0,r=0,i=[],a,o,s,l,u=this.get("curve");if(!!u){if(At(u,function(h,c){s=u[c+1],l=h.length,s&&(t+=vR.length(h[l-2],h[l-1],s[1],s[2],s[3],s[4],s[5],s[6])||0)}),this.set("totalLength",t),t===0){this.set("tCache",[]);return}At(u,function(h,c){s=u[c+1],l=h.length,s&&(a=[],a[0]=r/t,o=vR.length(h[l-2],h[l-1],s[1],s[2],s[3],s[4],s[5],s[6]),r+=o||0,a[1]=r/t,i.push(a))}),this.set("tCache",i)}},e.prototype.getStartTangent=function(){var t=this.getSegments(),r;if(t.length>1){var i=t[0].currentPoint,a=t[1].currentPoint,o=t[1].startTangent;r=[],o?(r.push([i[0]-o[0],i[1]-o[1]]),r.push([i[0],i[1]])):(r.push([a[0],a[1]]),r.push([i[0],i[1]]))}return r},e.prototype.getEndTangent=function(){var t=this.getSegments(),r=t.length,i;if(r>1){var a=t[r-2].currentPoint,o=t[r-1].currentPoint,s=t[r-1].endTangent;i=[],s?(i.push([o[0]-s[0],o[1]-s[1]]),i.push([o[0],o[1]])):(i.push([a[0],a[1]]),i.push([o[0],o[1]]))}return i},e}(F0);const Ise=cjt;function mVe(n,e,t,r,i){var a=n.length;if(a<2)return!1;for(var o=0;o=s[0]&&t<=s[1]&&(a=(t-s[0])/(s[1]-s[0]),o=l)}),Fh.pointAt(r[o][0],r[o][1],r[o+1][0],r[o+1][1],a)},e.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var r=this.getTotalLength();if(!(r<=0)){var i=0,a=[],o,s;At(t,function(l,u){t[u+1]&&(o=[],o[0]=i/r,s=Fh.length(l[0],l[1],t[u+1][0],t[u+1][1]),i+=s,o[1]=i/r,a.push(o))}),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,r=[];return r.push([t[1][0],t[1][1]]),r.push([t[0][0],t[0][1]]),r},e.prototype.getEndTangent=function(){var t=this.attr().points,r=t.length-1,i=[];return i.push([t[r-1][0],t[r-1][1]]),i.push([t[r][0],t[r][1]]),i},e}(F0);const pjt=vjt;function gjt(n,e,t,r,i,a,o){var s=i/2;return dE(n-s,e-s,t,i,a,o)||dE(n+t-s,e-s,i,r,a,o)||dE(n+s,e+r-s,t,i,a,o)||dE(n-s,e+s,i,r,a,o)}function yjt(n,e,t,r,i,a,o,s){return oS(n+i,e,n+t-i,e,a,o,s)||oS(n+t,e+i,n+t,e+r-i,a,o,s)||oS(n+t-i,e+r,n+i,e+r,a,o,s)||oS(n,e+r-i,n,e+i,a,o,s)||yO(n+t-i,e+i,i,1.5*Math.PI,2*Math.PI,a,o,s)||yO(n+t-i,e+r-i,i,0,.5*Math.PI,a,o,s)||yO(n+i,e+r-i,i,.5*Math.PI,Math.PI,a,o,s)||yO(n+i,e+i,i,Math.PI,1.5*Math.PI,a,o,s)}var mjt=function(n){Kn(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=n.prototype.getDefaultAttrs.call(this);return ve(ve({},t),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,r,i,a,o){var s=this.attr(),l=s.x,u=s.y,h=s.width,c=s.height,f=s.radius;if(f){var v=!1;return i&&(v=yjt(l,u,h,c,f,o,t,r)),!v&&a&&(v=gVe(this,t,r)),v}else{var d=o/2;if(a&&i)return dE(l-d,u-d,h+d,c+d,t,r);if(a)return dE(l,u,h,c,t,r);if(i)return gjt(l,u,h,c,o,t,r)}},e.prototype.createPath=function(t){var r=this.attr(),i=r.x,a=r.y,o=r.width,s=r.height,l=r.radius;if(t.beginPath(),l===0)t.rect(i,a,o,s);else{var u=UHt(l),h=u[0],c=u[1],f=u[2],d=u[3];t.moveTo(i+h,a),t.lineTo(i+o-c,a),c!==0&&t.arc(i+o-c,a+c,c,-Math.PI/2,0),t.lineTo(i+o,a+s-f),f!==0&&t.arc(i+o-f,a+s-f,f,0,Math.PI/2),t.lineTo(i+d,a+s),d!==0&&t.arc(i+d,a+s-d,d,Math.PI/2,Math.PI),t.lineTo(i,a+h),h!==0&&t.arc(i+h,a+h,h,Math.PI,Math.PI*1.5),t.closePath()}},e}(F0);const _jt=mjt;var xjt=function(n){Kn(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=n.prototype.getDefaultAttrs.call(this);return ve(ve({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=hUe(t)},e.prototype._setText=function(t){var r=null;rr(t)&&t.indexOf(` +`)!==-1&&(r=t.split(` +`)),this.set("textArr",r)},e.prototype.onAttrChange=function(t,r,i){n.prototype.onAttrChange.call(this,t,r,i),t.startsWith("font")&&this._assembleFont(),t==="text"&&this._setText(r)},e.prototype._getSpaceingY=function(){var t=this.attrs,r=t.lineHeight,i=t.fontSize*1;return r?r-i:i*.14},e.prototype._drawTextArr=function(t,r,i){var a=this.attrs,o=a.textBaseline,s=a.x,l=a.y,u=a.fontSize*1,h=this._getSpaceingY(),c=uUe(a.text,a.fontSize,a.lineHeight),f;At(r,function(d,v){f=l+v*(h+u)-c+u,o==="middle"&&(f+=c-u-(c-u)/2),o==="top"&&(f+=c-u),an(d)||(i?t.fillText(d,s,f):t.strokeText(d,s,f))})},e.prototype._drawText=function(t,r){var i=this.attr(),a=i.x,o=i.y,s=this.get("textArr");if(s)this._drawTextArr(t,s,r);else{var l=i.text;an(l)||(r?t.fillText(l,a,o):t.strokeText(l,a,o))}},e.prototype.strokeAndFill=function(t){var r=this.attrs,i=r.lineWidth,a=r.opacity,o=r.strokeOpacity,s=r.fillOpacity;this.isStroke()&&i>0&&(!an(o)&&o!==1&&(t.globalAlpha=a),this.stroke(t)),this.isFill()&&(!an(s)&&s!==1?(t.globalAlpha=s,this.fill(t),t.globalAlpha=a):this.fill(t)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(F0);const Sjt=xjt;function wjt(n,e){if(e){var t=Rze(e);return cE(t,n)}return n}function _Ve(n,e,t){var r=n.getTotalMatrix();if(r){var i=wjt([e,t,1],r),a=i[0],o=i[1];return[a,o]}return[e,t]}function swe(n,e,t){if(n.isCanvas&&n.isCanvas())return!0;if(!HQ(n)||n.cfg.isInView===!1)return!1;if(n.cfg.clipShape){var r=_Ve(n,e,t),i=r[0],a=r[1];if(n.isClipped(i,a))return!1}var o=n.cfg.cacheCanvasBBox||n.getCanvasBBox();return e>=o.minX&&e<=o.maxX&&t>=o.minY&&t<=o.maxY}function xVe(n,e,t){if(!swe(n,e,t))return null;for(var r=null,i=n.getChildren(),a=i.length,o=a-1;o>=0;o--){var s=i[o];if(s.isGroup())r=xVe(s,e,t);else if(swe(s,e,t)){var l=s,u=_Ve(s,e,t),h=u[0],c=u[1];l.isInShape(h,c)&&(r=s)}if(r)break}return r}var M1=function(n){Kn(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=n.prototype.getDefaultCfg.call(this);return t.renderer="canvas",t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},e.prototype.onCanvasChange=function(t){(t==="attr"||t==="sort"||t==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return pne},e.prototype.getGroupBase=function(){return pVe},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||OHt();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),r=t.getContext("2d");return this.set("context",r),t},e.prototype.setDOMSize=function(t,r){n.prototype.setDOMSize.call(this,t,r);var i=this.get("context"),a=this.get("el"),o=this.getPixelRatio();a.width=o*t,a.height=o*r,o>1&&i.scale(o,o)},e.prototype.clear=function(){n.prototype.clear.call(this),this._clearFrame();var t=this.get("context"),r=this.get("el");t.clearRect(0,0,r.width,r.height)},e.prototype.getShape=function(t,r){var i;return this.get("quickHit")?i=xVe(this,t,r):i=n.prototype.getShape.call(this,t,r,null),i},e.prototype._getRefreshRegion=function(){var t=this.get("refreshElements"),r=this.getViewRange(),i;if(t.length&&t[0]===this)i=r;else if(i=HHt(t),i){i.minX=Math.floor(i.minX),i.minY=Math.floor(i.minY),i.maxX=Math.ceil(i.maxX),i.maxY=Math.ceil(i.maxY),i.maxY+=1;var a=this.get("clipView");a&&(i=jHt(i,r))}return i},e.prototype.refreshElement=function(t){var r=this.get("refreshElements");r.push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(S9e(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),r=this.get("el"),i=this.getChildren();t.clearRect(0,0,r.width,r.height),IM(t,this),yee(t,i),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),r=this.get("refreshElements"),i=this.getChildren(),a=this._getRefreshRegion();a?(t.clearRect(a.minX,a.minY,a.maxX-a.minX,a.maxY-a.minY),t.save(),t.beginPath(),t.rect(a.minX,a.minY,a.maxX-a.minX,a.maxY-a.minY),t.clip(),IM(t,this),VHt(this,i,a),yee(t,i,a),t.restore()):r.length&&fVe(r),At(r,function(o){o.get("hasChanged")&&o.set("hasChanged",!1)}),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,r=this.get("drawFrame"),i=this.get("drawFrameCallback");r||(r=x9e(function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null),i&&i()}),this.set("drawFrame",r))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(qze),_ee={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},Qa={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function $p(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function SVe(n){var e=_ee[n.type],t=n.getParent();if(!e)throw new Error("the type "+n.type+" is not supported by svg");var r=$p(e);if(n.get("id")&&(r.id=n.get("id")),n.set("el",r),n.set("attrs",{}),t){var i=t.get("el");i||(i=t.createDom(),t.set("el",i)),i.appendChild(r)}return r}function wVe(n,e){var t=n.get("el"),r=T9e(t.children).sort(e),i=document.createDocumentFragment();r.forEach(function(a){i.appendChild(a)}),t.appendChild(i)}function bjt(n,e){var t=n.parentNode,r=Array.from(t.childNodes).filter(function(s){return s.nodeType===1&&s.nodeName.toLowerCase()!=="defs"}),i=r[e],a=r.indexOf(n);if(i){if(a>e)t.insertBefore(n,i);else if(a0&&(r?"stroke"in i?this._setColor(t,"stroke",s):"strokeStyle"in i&&this._setColor(t,"stroke",l):this._setColor(t,"stroke",s||l),h&&f.setAttribute(Qa.strokeOpacity,h),c&&f.setAttribute(Qa.lineWidth,c))},e.prototype._setColor=function(t,r,i){var a=this.get("el");if(!i){a.setAttribute(Qa[r],"none");return}if(i=i.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(i)){var o=t.find("gradient",i);o||(o=t.addGradient(i)),a.setAttribute(Qa[r],"url(#"+o+")")}else if(/^[p,P]{1}[\s]*\(/.test(i)){var o=t.find("pattern",i);o||(o=t.addPattern(i)),a.setAttribute(Qa[r],"url(#"+o+")")}else a.setAttribute(Qa[r],i)},e.prototype.shadow=function(t,r){var i=this.attr(),a=r||i,o=a.shadowOffsetX,s=a.shadowOffsetY,l=a.shadowBlur,u=a.shadowColor;(o||s||l||u)&&Ejt(this,t)},e.prototype.transform=function(t){var r=this.attr(),i=(t||r).matrix;i&&X3(this)},e.prototype.isInShape=function(t,r){return this.isPointInPath(t,r)},e.prototype.isPointInPath=function(t,r){var i=this.get("el"),a=this.get("canvas"),o=a.get("el").getBoundingClientRect(),s=t+o.left,l=r+o.top,u=document.elementFromPoint(s,l);return!!(u&&u.isEqualNode(i))},e.prototype.getHitLineWidth=function(){var t=this.attrs,r=t.lineWidth,i=t.lineAppendWidth;return this.isStroke()?r+i:0},e}(Kze);const lg=Tjt;var Cjt=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=n.prototype.getDefaultAttrs.call(this);return ve(ve({},t),{x:0,y:0,r:0})},e.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");At(r||i,function(o,s){s==="x"||s==="y"?a.setAttribute("c"+s,o):Qa[s]&&a.setAttribute(Qa[s],o)})},e}(lg);const Ajt=Cjt;var Mjt=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return e.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");if(At(r||i,function(u,h){Qa[h]&&a.setAttribute(Qa[h],u)}),typeof i.html=="function"){var o=i.html.call(this,i);if(o instanceof Element||o instanceof HTMLDocument){for(var s=a.childNodes,l=s.length-1;l>=0;l--)a.removeChild(s[l]);a.appendChild(o)}else a.innerHTML=o}else a.innerHTML=i.html},e}(lg);const Ijt=Mjt;var Ljt=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=n.prototype.getDefaultAttrs.call(this);return ve(ve({},t),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");At(r||i,function(o,s){s==="x"||s==="y"?a.setAttribute("c"+s,o):Qa[s]&&a.setAttribute(Qa[s],o)})},e}(lg);const Pjt=Ljt;var Ojt=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return e.prototype.getDefaultAttrs=function(){var t=n.prototype.getDefaultAttrs.call(this);return ve(ve({},t),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,r){var i=this,a=this.attr(),o=this.get("el");At(r||a,function(s,l){l==="img"?i._setImage(a.img):Qa[l]&&o.setAttribute(Qa[l],s)})},e.prototype.setAttr=function(t,r){this.attrs[t]=r,t==="img"&&this._setImage(r)},e.prototype._setImage=function(t){var r=this.attr(),i=this.get("el");if(rr(t))i.setAttribute("href",t);else if(t instanceof window.Image)r.width||(i.setAttribute("width",t.width),this.attr("width",t.width)),r.height||(i.setAttribute("height",t.height),this.attr("height",t.height)),i.setAttribute("href",t.src);else if(t instanceof HTMLElement&&rr(t.nodeName)&&t.nodeName.toUpperCase()==="CANVAS")i.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",""+t.width),a.setAttribute("height",""+t.height),a.getContext("2d").putImageData(t,0,0),r.width||(i.setAttribute("width",""+t.width),this.attr("width",t.width)),r.height||(i.setAttribute("height",""+t.height),this.attr("height",t.height)),i.setAttribute("href",a.toDataURL())}},e}(lg);const Rjt=Ojt;var Djt=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=n.prototype.getDefaultAttrs.call(this);return ve(ve({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");At(r||i,function(o,s){if(s==="startArrow"||s==="endArrow")if(o){var l=Wh(o)?t.addArrow(i,Qa[s]):t.getDefaultArrow(i,Qa[s]);a.setAttribute(Qa[s],"url(#"+l+")")}else a.removeAttribute(Qa[s]);else Qa[s]&&a.setAttribute(Qa[s],o)})},e.prototype.getTotalLength=function(){var t=this.attr(),r=t.x1,i=t.y1,a=t.x2,o=t.y2;return Fh.length(r,i,a,o)},e.prototype.getPoint=function(t){var r=this.attr(),i=r.x1,a=r.y1,o=r.x2,s=r.y2;return Fh.pointAt(i,a,o,s,t)},e}(lg);const Njt=Djt;var A5={circle:function(n,e,t){return[["M",n,e],["m",-t,0],["a",t,t,0,1,0,t*2,0],["a",t,t,0,1,0,-t*2,0]]},square:function(n,e,t){return[["M",n-t,e-t],["L",n+t,e-t],["L",n+t,e+t],["L",n-t,e+t],["Z"]]},diamond:function(n,e,t){return[["M",n-t,e],["L",n,e-t],["L",n+t,e],["L",n,e+t],["Z"]]},triangle:function(n,e,t){var r=t*Math.sin(.3333333333333333*Math.PI);return[["M",n-t,e+r],["L",n,e-r],["L",n+t,e+r],["z"]]},triangleDown:function(n,e,t){var r=t*Math.sin(.3333333333333333*Math.PI);return[["M",n-t,e-r],["L",n+t,e-r],["L",n,e+r],["Z"]]}};const lwe={get:function(n){return A5[n]},register:function(n,e){A5[n]=e},remove:function(n){delete A5[n]},getAll:function(){return A5}};var kjt=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return e.prototype.createPath=function(t){var r=this.get("el");r.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return vn(t)?t.map(function(r){return r.join(" ")}).join(""):t},e.prototype._getPath=function(){var t=this.attr(),r=t.x,i=t.y,a=t.r||t.radius,o=t.symbol||"circle",s;return nl(o)?s=o:s=lwe.get(o),s?s(r,i,a):(console.warn(s+" symbol is not exist."),null)},e.symbolsFactory=lwe,e}(lg);const Fjt=kjt;var Bjt=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=n.prototype.getDefaultAttrs.call(this);return ve(ve({},t),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,r){var i=this,a=this.attr(),o=this.get("el");At(r||a,function(s,l){if(l==="path"&&vn(s))o.setAttribute("d",i._formatPath(s));else if(l==="startArrow"||l==="endArrow")if(s){var u=Wh(s)?t.addArrow(a,Qa[l]):t.getDefaultArrow(a,Qa[l]);o.setAttribute(Qa[l],"url(#"+u+")")}else o.removeAttribute(Qa[l]);else Qa[l]&&o.setAttribute(Qa[l],s)})},e.prototype._formatPath=function(t){var r=t.map(function(i){return i.join(" ")}).join("");return~r.indexOf("NaN")?"":r},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var r=this.get("el"),i=this.getTotalLength();if(i===0)return null;var a=r?r.getPointAtLength(t*i):null;return a?{x:a.x,y:a.y}:null},e}(lg);const Gjt=Bjt;var zjt=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return e.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");At(r||i,function(o,s){s==="points"&&vn(o)&&o.length>=2?a.setAttribute("points",o.map(function(l){return l[0]+","+l[1]}).join(" ")):Qa[s]&&a.setAttribute(Qa[s],o)})},e}(lg);const Ujt=zjt;var Vjt=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=n.prototype.getDefaultAttrs.call(this);return ve(ve({},t),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(t,r,i){n.prototype.onAttrChange.call(this,t,r,i),["points"].indexOf(t)!==-1&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");At(r||i,function(o,s){s==="points"&&vn(o)&&o.length>=2?a.setAttribute("points",o.map(function(l){return l[0]+","+l[1]}).join(" ")):Qa[s]&&a.setAttribute(Qa[s],o)})},e.prototype.getTotalLength=function(){var t=this.attr().points,r=this.get("totalLength");return an(r)?(this.set("totalLength",sUe.length(t)),this.get("totalLength")):r},e.prototype.getPoint=function(t){var r=this.attr().points,i=this.get("tCache");i||(this._setTcache(),i=this.get("tCache"));var a,o;return At(i,function(s,l){t>=s[0]&&t<=s[1]&&(a=(t-s[0])/(s[1]-s[0]),o=l)}),Fh.pointAt(r[o][0],r[o][1],r[o+1][0],r[o+1][1],a)},e.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var r=this.getTotalLength();if(!(r<=0)){var i=0,a=[],o,s;At(t,function(l,u){t[u+1]&&(o=[],o[0]=i/r,s=Fh.length(l[0],l[1],t[u+1][0],t[u+1][1]),i+=s,o[1]=i/r,a.push(o))}),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,r=[];return r.push([t[1][0],t[1][1]]),r.push([t[0][0],t[0][1]]),r},e.prototype.getEndTangent=function(){var t=this.attr().points,r=t.length-1,i=[];return i.push([t[r-1][0],t[r-1][1]]),i.push([t[r][0],t[r][1]]),i},e}(lg);const $jt=Vjt;function Wjt(n){var e=0,t=0,r=0,i=0;return vn(n)?n.length===1?e=t=r=i=n[0]:n.length===2?(e=r=n[0],t=i=n[1]):n.length===3?(e=n[0],t=i=n[1],r=n[2]):(e=n[0],t=n[1],r=n[2],i=n[3]):e=t=r=i=n,{r1:e,r2:t,r3:r,r4:i}}var Hjt=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=n.prototype.getDefaultAttrs.call(this);return ve(ve({},t),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,r){var i=this,a=this.attr(),o=this.get("el"),s=!1,l=["x","y","width","height","radius"];At(r||a,function(u,h){l.indexOf(h)!==-1&&!s?(o.setAttribute("d",i._assembleRect(a)),s=!0):l.indexOf(h)===-1&&Qa[h]&&o.setAttribute(Qa[h],u)})},e.prototype._assembleRect=function(t){var r=t.x,i=t.y,a=t.width,o=t.height,s=t.radius;if(!s)return"M "+r+","+i+" l "+a+",0 l 0,"+o+" l"+-a+" 0 z";var l=Wjt(s);vn(s)?s.length===1?l.r1=l.r2=l.r3=l.r4=s[0]:s.length===2?(l.r1=l.r3=s[0],l.r2=l.r4=s[1]):s.length===3?(l.r1=s[0],l.r2=l.r4=s[1],l.r3=s[2]):(l.r1=s[0],l.r2=s[1],l.r3=s[2],l.r4=s[3]):l.r1=l.r2=l.r3=l.r4=s;var u=[["M "+(r+l.r1)+","+i],["l "+(a-l.r1-l.r2)+",0"],["a "+l.r2+","+l.r2+",0,0,1,"+l.r2+","+l.r2],["l 0,"+(o-l.r2-l.r3)],["a "+l.r3+","+l.r3+",0,0,1,"+-l.r3+","+l.r3],["l "+(l.r3+l.r4-a)+",0"],["a "+l.r4+","+l.r4+",0,0,1,"+-l.r4+","+-l.r4],["l 0,"+(l.r4+l.r1-o)],["a "+l.r1+","+l.r1+",0,0,1,"+l.r1+","+-l.r1],["z"]];return u.join(" ")},e}(lg);const jjt=Hjt;var uwe=.3,Xjt={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},Yjt={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},qjt={left:"left",start:"left",center:"middle",right:"end",end:"end"},Zjt=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=n.prototype.getDefaultAttrs.call(this);return ve(ve({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,r){var i=this,a=this.attr(),o=this.get("el");this._setFont(),At(r||a,function(s,l){l==="text"?i._setText(""+s):l==="matrix"&&s?X3(i):Qa[l]&&o.setAttribute(Qa[l],s)}),o.setAttribute("paint-order","stroke"),o.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),r=this.attr(),i=r.textBaseline,a=r.textAlign,o=Oze();o&&o.name==="firefox"?t.setAttribute("dominant-baseline",Yjt[i]||"alphabetic"):t.setAttribute("alignment-baseline",Xjt[i]||"baseline"),t.setAttribute("text-anchor",qjt[a]||"left")},e.prototype._setText=function(t){var r=this.get("el"),i=this.attr(),a=i.x,o=i.textBaseline,s=o===void 0?"bottom":o;if(!t)r.innerHTML="";else if(~t.indexOf(` +`)){var l=t.split(` +`),u=l.length-1,h="";At(l,function(c,f){f===0?s==="alphabetic"?h+=''+c+"":s==="top"?h+=''+c+"":s==="middle"?h+=''+c+"":s==="bottom"?h+=''+c+"":s==="hanging"&&(h+=''+c+""):h+=''+c+""}),r.innerHTML=h}else r.innerHTML=t},e}(lg);const Kjt=Zjt;var Jjt=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Qjt=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,eXt=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function CVe(n){var e=n.match(eXt);if(!e)return"";var t="";return e.sort(function(r,i){return r=r.split(":"),i=i.split(":"),Number(r[0])-Number(i[0])}),At(e,function(r){r=r.split(":"),t+=''}),t}function tXt(n,e){var t=Jjt.exec(n),r=RU(DU(parseFloat(t[1])),Math.PI*2),i=t[2],a,o;r>=0&&r<.5*Math.PI?(a={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=r&&r`;t.innerHTML=r},n}(),hwe=function(){function n(e,t){this.cfg={};var r=$p("marker"),i=vm("marker_");r.setAttribute("id",i);var a=$p("path");a.setAttribute("stroke",e.stroke||"none"),a.setAttribute("fill",e.fill||"none"),r.appendChild(a),r.setAttribute("overflow","visible"),r.setAttribute("orient","auto-start-reverse"),this.el=r,this.child=a,this.id=i;var o=e[t==="marker-start"?"startArrow":"endArrow"];return this.stroke=e.stroke||"#000",o===!0?this._setDefaultPath(t,a):(this.cfg=o,this._setMarker(e.lineWidth,a)),this}return n.prototype.match=function(){return!1},n.prototype._setDefaultPath=function(e,t){var r=this.el;t.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),r.setAttribute("refX",""+10*Math.cos(Math.PI/6)),r.setAttribute("refY",""+5)},n.prototype._setMarker=function(e,t){var r=this.el,i=this.cfg.path,a=this.cfg.d;vn(i)&&(i=i.map(function(o){return o.join(" ")}).join("")),t.setAttribute("d",i),r.appendChild(t),a&&r.setAttribute("refX",""+a/e)},n.prototype.update=function(e){var t=this.child;t.attr?t.attr("fill",e):t.setAttribute("fill",e)},n}(),sXt=function(){function n(e){this.type="clip",this.cfg={};var t=$p("clipPath");this.el=t,this.id=vm("clip_"),t.id=this.id;var r=e.cfg.el;return t.appendChild(r),this.cfg=e,this}return n.prototype.match=function(){return!1},n.prototype.remove=function(){var e=this.el;e.parentNode.removeChild(e)},n}(),lXt=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,uXt=function(){function n(e){this.cfg={};var t=$p("pattern");t.setAttribute("patternUnits","userSpaceOnUse");var r=$p("image");t.appendChild(r);var i=vm("pattern_");t.id=i,this.el=t,this.id=i,this.cfg=e;var a=lXt.exec(e),o=a[2];r.setAttribute("href",o);var s=new Image;o.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=o;function l(){t.setAttribute("width",""+s.width),t.setAttribute("height",""+s.height)}return s.complete?l():(s.onload=l,s.src=s.src),this}return n.prototype.match=function(e,t){return this.cfg===t},n}(),hXt=function(){function n(e){var t=$p("defs"),r=vm("defs_");t.id=r,e.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=e}return n.prototype.find=function(e,t){for(var r=this.children,i=null,a=0;a]*>/,xee={tr:document.createElement("tbody"),tbody:mO,thead:mO,tfoot:mO,td:WX,th:WX,"*":document.createElement("div")}}function zs(n){mO||cXt();var e=AVe.test(n)&&RegExp.$1;(!e||!(e in xee))&&(e="*");var t=xee[e];n=typeof n=="string"?n.replace(/(^\s*)|(\s*$)/g,""):n,t.innerHTML=""+n;var r=t.childNodes[0];return r&&t.contains(r)&&t.removeChild(r),r}function Di(n,e){if(n)for(var t in e)e.hasOwnProperty(t)&&(n.style[t]=e[t]);return n}var MVe={exports:{}},IVe={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]},LVe={exports:{}},fXt=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},dXt=fXt,vXt=Array.prototype.concat,pXt=Array.prototype.slice,cwe=LVe.exports=function(e){for(var t=[],r=0,i=e.length;r=4&&n[3]!==1&&(e=", "+n[3]),"hwb("+n[0]+", "+n[1]+"%, "+n[2]+"%"+e+")"};fv.to.keyword=function(n){return OVe[n.slice(0,3)]};function wS(n,e,t){return Math.min(Math.max(e,n),t)}function I5(n){var e=Math.round(n).toString(16).toUpperCase();return e.length<2?"0"+e:e}var Lse={exports:{}},FE=IVe,RVe={};for(var jX in FE)FE.hasOwnProperty(jX)&&(RVe[FE[jX]]=jX);var Ln=Lse.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var td in Ln)if(Ln.hasOwnProperty(td)){if(!("channels"in Ln[td]))throw new Error("missing channels property: "+td);if(!("labels"in Ln[td]))throw new Error("missing channel labels property: "+td);if(Ln[td].labels.length!==Ln[td].channels)throw new Error("channel and label counts mismatch: "+td);var gXt=Ln[td].channels,yXt=Ln[td].labels;delete Ln[td].channels,delete Ln[td].labels,Object.defineProperty(Ln[td],"channels",{value:gXt}),Object.defineProperty(Ln[td],"labels",{value:yXt})}Ln.rgb.hsl=function(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,i=Math.min(e,t,r),a=Math.max(e,t,r),o=a-i,s,l,u;return a===i?s=0:e===a?s=(t-r)/o:t===a?s=2+(r-e)/o:r===a&&(s=4+(e-t)/o),s=Math.min(s*60,360),s<0&&(s+=360),u=(i+a)/2,a===i?l=0:u<=.5?l=o/(a+i):l=o/(2-a-i),[s,l*100,u*100]};Ln.rgb.hsv=function(n){var e,t,r,i,a,o=n[0]/255,s=n[1]/255,l=n[2]/255,u=Math.max(o,s,l),h=u-Math.min(o,s,l),c=function(f){return(u-f)/6/h+1/2};return h===0?i=a=0:(a=h/u,e=c(o),t=c(s),r=c(l),o===u?i=r-t:s===u?i=1/3+e-r:l===u&&(i=2/3+t-e),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,u*100]};Ln.rgb.hwb=function(n){var e=n[0],t=n[1],r=n[2],i=Ln.rgb.hsl(n)[0],a=1/255*Math.min(e,Math.min(t,r));return r=1-1/255*Math.max(e,Math.max(t,r)),[i,a*100,r*100]};Ln.rgb.cmyk=function(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,i,a,o,s;return s=Math.min(1-e,1-t,1-r),i=(1-e-s)/(1-s)||0,a=(1-t-s)/(1-s)||0,o=(1-r-s)/(1-s)||0,[i*100,a*100,o*100,s*100]};function mXt(n,e){return Math.pow(n[0]-e[0],2)+Math.pow(n[1]-e[1],2)+Math.pow(n[2]-e[2],2)}Ln.rgb.keyword=function(n){var e=RVe[n];if(e)return e;var t=1/0,r;for(var i in FE)if(FE.hasOwnProperty(i)){var a=FE[i],o=mXt(n,a);o.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var i=e*.4124+t*.3576+r*.1805,a=e*.2126+t*.7152+r*.0722,o=e*.0193+t*.1192+r*.9505;return[i*100,a*100,o*100]};Ln.rgb.lab=function(n){var e=Ln.rgb.xyz(n),t=e[0],r=e[1],i=e[2],a,o,s;return t/=95.047,r/=100,i/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=116*r-16,o=500*(t-r),s=200*(r-i),[a,o,s]};Ln.hsl.rgb=function(n){var e=n[0]/360,t=n[1]/100,r=n[2]/100,i,a,o,s,l;if(t===0)return l=r*255,[l,l,l];r<.5?a=r*(1+t):a=r+t-r*t,i=2*r-a,s=[0,0,0];for(var u=0;u<3;u++)o=e+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?l=i+(a-i)*6*o:2*o<1?l=a:3*o<2?l=i+(a-i)*(2/3-o)*6:l=i,s[u]=l*255;return s};Ln.hsl.hsv=function(n){var e=n[0],t=n[1]/100,r=n[2]/100,i=t,a=Math.max(r,.01),o,s;return r*=2,t*=r<=1?r:2-r,i*=a<=1?a:2-a,s=(r+t)/2,o=r===0?2*i/(a+i):2*t/(r+t),[e,o*100,s*100]};Ln.hsv.rgb=function(n){var e=n[0]/60,t=n[1]/100,r=n[2]/100,i=Math.floor(e)%6,a=e-Math.floor(e),o=255*r*(1-t),s=255*r*(1-t*a),l=255*r*(1-t*(1-a));switch(r*=255,i){case 0:return[r,l,o];case 1:return[s,r,o];case 2:return[o,r,l];case 3:return[o,s,r];case 4:return[l,o,r];case 5:return[r,o,s]}};Ln.hsv.hsl=function(n){var e=n[0],t=n[1]/100,r=n[2]/100,i=Math.max(r,.01),a,o,s;return s=(2-t)*r,a=(2-t)*i,o=t*i,o/=a<=1?a:2-a,o=o||0,s/=2,[e,o*100,s*100]};Ln.hwb.rgb=function(n){var e=n[0]/360,t=n[1]/100,r=n[2]/100,i=t+r,a,o,s,l;i>1&&(t/=i,r/=i),a=Math.floor(6*e),o=1-r,s=6*e-a,(a&1)!==0&&(s=1-s),l=t+s*(o-t);var u,h,c;switch(a){default:case 6:case 0:u=o,h=l,c=t;break;case 1:u=l,h=o,c=t;break;case 2:u=t,h=o,c=l;break;case 3:u=t,h=l,c=o;break;case 4:u=l,h=t,c=o;break;case 5:u=o,h=t,c=l;break}return[u*255,h*255,c*255]};Ln.cmyk.rgb=function(n){var e=n[0]/100,t=n[1]/100,r=n[2]/100,i=n[3]/100,a,o,s;return a=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),[a*255,o*255,s*255]};Ln.xyz.rgb=function(n){var e=n[0]/100,t=n[1]/100,r=n[2]/100,i,a,o;return i=e*3.2406+t*-1.5372+r*-.4986,a=e*-.9689+t*1.8758+r*.0415,o=e*.0557+t*-.204+r*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]};Ln.xyz.lab=function(n){var e=n[0],t=n[1],r=n[2],i,a,o;return e/=95.047,t/=100,r/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=116*t-16,a=500*(e-t),o=200*(t-r),[i,a,o]};Ln.lab.xyz=function(n){var e=n[0],t=n[1],r=n[2],i,a,o;a=(e+16)/116,i=t/500+a,o=a-r/200;var s=Math.pow(a,3),l=Math.pow(i,3),u=Math.pow(o,3);return a=s>.008856?s:(a-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]};Ln.lab.lch=function(n){var e=n[0],t=n[1],r=n[2],i,a,o;return i=Math.atan2(r,t),a=i*360/2/Math.PI,a<0&&(a+=360),o=Math.sqrt(t*t+r*r),[e,o,a]};Ln.lch.lab=function(n){var e=n[0],t=n[1],r=n[2],i,a,o;return o=r/360*2*Math.PI,i=t*Math.cos(o),a=t*Math.sin(o),[e,i,a]};Ln.rgb.ansi16=function(n){var e=n[0],t=n[1],r=n[2],i=1 in arguments?arguments[1]:Ln.rgb.hsv(n)[2];if(i=Math.round(i/50),i===0)return 30;var a=30+(Math.round(r/255)<<2|Math.round(t/255)<<1|Math.round(e/255));return i===2&&(a+=60),a};Ln.hsv.ansi16=function(n){return Ln.rgb.ansi16(Ln.hsv.rgb(n),n[2])};Ln.rgb.ansi256=function(n){var e=n[0],t=n[1],r=n[2];if(e===t&&t===r)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5);return i};Ln.ansi16.rgb=function(n){var e=n%10;if(e===0||e===7)return n>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var t=(~~(n>50)+1)*.5,r=(e&1)*t*255,i=(e>>1&1)*t*255,a=(e>>2&1)*t*255;return[r,i,a]};Ln.ansi256.rgb=function(n){if(n>=232){var e=(n-232)*10+8;return[e,e,e]}n-=16;var t,r=Math.floor(n/36)/5*255,i=Math.floor((t=n%36)/6)/5*255,a=t%6/5*255;return[r,i,a]};Ln.rgb.hex=function(n){var e=((Math.round(n[0])&255)<<16)+((Math.round(n[1])&255)<<8)+(Math.round(n[2])&255),t=e.toString(16).toUpperCase();return"000000".substring(t.length)+t};Ln.hex.rgb=function(n){var e=n.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var t=e[0];e[0].length===3&&(t=t.split("").map(function(s){return s+s}).join(""));var r=parseInt(t,16),i=r>>16&255,a=r>>8&255,o=r&255;return[i,a,o]};Ln.rgb.hcg=function(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,i=Math.max(Math.max(e,t),r),a=Math.min(Math.min(e,t),r),o=i-a,s,l;return o<1?s=a/(1-o):s=0,o<=0?l=0:i===e?l=(t-r)/o%6:i===t?l=2+(r-e)/o:l=4+(e-t)/o+4,l/=6,l%=1,[l*360,o*100,s*100]};Ln.hsl.hcg=function(n){var e=n[1]/100,t=n[2]/100,r=1,i=0;return t<.5?r=2*e*t:r=2*e*(1-t),r<1&&(i=(t-.5*r)/(1-r)),[n[0],r*100,i*100]};Ln.hsv.hcg=function(n){var e=n[1]/100,t=n[2]/100,r=e*t,i=0;return r<1&&(i=(t-r)/(1-r)),[n[0],r*100,i*100]};Ln.hcg.rgb=function(n){var e=n[0]/360,t=n[1]/100,r=n[2]/100;if(t===0)return[r*255,r*255,r*255];var i=[0,0,0],a=e%1*6,o=a%1,s=1-o,l=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-t)*r,[(t*i[0]+l)*255,(t*i[1]+l)*255,(t*i[2]+l)*255]};Ln.hcg.hsv=function(n){var e=n[1]/100,t=n[2]/100,r=e+t*(1-e),i=0;return r>0&&(i=e/r),[n[0],i*100,r*100]};Ln.hcg.hsl=function(n){var e=n[1]/100,t=n[2]/100,r=t*(1-e)+.5*e,i=0;return r>0&&r<.5?i=e/(2*r):r>=.5&&r<1&&(i=e/(2*(1-r))),[n[0],i*100,r*100]};Ln.hcg.hwb=function(n){var e=n[1]/100,t=n[2]/100,r=e+t*(1-e);return[n[0],(r-e)*100,(1-r)*100]};Ln.hwb.hcg=function(n){var e=n[1]/100,t=n[2]/100,r=1-t,i=r-e,a=0;return i<1&&(a=(r-i)/(1-i)),[n[0],i*100,a*100]};Ln.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]};Ln.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]};Ln.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]};Ln.gray.hsl=Ln.gray.hsv=function(n){return[0,0,n[0]]};Ln.gray.hwb=function(n){return[0,100,n[0]]};Ln.gray.cmyk=function(n){return[0,0,0,n[0]]};Ln.gray.lab=function(n){return[n[0],0,0]};Ln.gray.hex=function(n){var e=Math.round(n[0]/100*255)&255,t=(e<<16)+(e<<8)+e,r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};Ln.rgb.gray=function(n){var e=(n[0]+n[1]+n[2])/3;return[e/255*100]};var E9=Lse.exports;function _Xt(){for(var n={},e=Object.keys(E9),t=e.length,r=0;r1&&(t=Array.prototype.slice.call(arguments)),n(t))};return"conversion"in n&&(e.conversion=n.conversion),e}function AXt(n){var e=function(t){if(t==null)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=n(t);if(typeof r=="object")for(var i=r.length,a=0;a>16&255,n>>8&255,n&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(n);"alpha"in n&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof n.alpha=="number"?n.alpha:0);var s=o.sort().join("");if(!(s in wee))throw new Error("Unable to parse color from object: "+JSON.stringify(n));this.model=wee[s];var l=sv[this.model].labels,u=[];for(t=0;tt?(e+.05)/(t+.05):(t+.05)/(e+.05)},level:function(n){var e=this.contrast(n);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var n=this.rgb().color,e=(n[0]*299+n[1]*587+n[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var n=this.rgb(),e=0;e<3;e++)n.color[e]=255-n.color[e];return n},lighten:function(n){var e=this.hsl();return e.color[2]+=e.color[2]*n,e},darken:function(n){var e=this.hsl();return e.color[2]-=e.color[2]*n,e},saturate:function(n){var e=this.hsl();return e.color[1]+=e.color[1]*n,e},desaturate:function(n){var e=this.hsl();return e.color[1]-=e.color[1]*n,e},whiten:function(n){var e=this.hwb();return e.color[1]+=e.color[1]*n,e},blacken:function(n){var e=this.hwb();return e.color[2]+=e.color[2]*n,e},grayscale:function(){var n=this.rgb().color,e=n[0]*.3+n[1]*.59+n[2]*.11;return oc.rgb(e,e,e)},fade:function(n){return this.alpha(this.valpha-this.valpha*n)},opaquer:function(n){return this.alpha(this.valpha+this.valpha*n)},rotate:function(n){var e=this.hsl(),t=e.color[0];return t=(t+n)%360,t=t<0?360+t:t,e.color[0]=t,e},mix:function(n,e){if(!n||!n.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof n);var t=n.rgb(),r=this.rgb(),i=e===void 0?.5:e,a=2*i-1,o=t.alpha()-r.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,l=1-s;return oc.rgb(s*t.red()+l*r.red(),s*t.green()+l*r.green(),s*t.blue()+l*r.blue(),t.alpha()*i+r.alpha()*(1-i))}};Object.keys(sv).forEach(function(n){if(DVe.indexOf(n)===-1){var e=sv[n].channels;oc.prototype[n]=function(){if(this.model===n)return new oc(this);if(arguments.length)return new oc(arguments,n);var t=typeof arguments[e]=="number"?e:this.valpha;return new oc(PXt(sv[this.model][n].raw(this.color)).concat(t),n)},oc[n]=function(t){return typeof t=="number"&&(t=bee(Pse.call(arguments),e)),new oc(t,n)}}});function IXt(n,e){return Number(n.toFixed(e))}function LXt(n){return function(e){return IXt(e,n)}}function Gl(n,e,t){return n=Array.isArray(n)?n:[n],n.forEach(function(r){(T9[r]||(T9[r]=[]))[e]=t}),n=n[0],function(r){var i;return arguments.length?(t&&(r=t(r)),i=this[n](),i.color[e]=r,i):(i=this[n]().color[e],t&&(i=t(i)),i)}}function Yu(n){return function(e){return Math.max(0,Math.min(n,e))}}function PXt(n){return Array.isArray(n)?n:[n]}function bee(n,e){for(var t=0;t=0,a=!t&&i&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return a?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return On(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(VXt,arguments)},brighten:function(){return this._applyModification($Xt,arguments)},darken:function(){return this._applyModification(WXt,arguments)},desaturate:function(){return this._applyModification(GXt,arguments)},saturate:function(){return this._applyModification(zXt,arguments)},greyscale:function(){return this._applyModification(UXt,arguments)},spin:function(){return this._applyModification(HXt,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(YXt,arguments)},complement:function(){return this._applyCombination(jXt,arguments)},monochromatic:function(){return this._applyCombination(qXt,arguments)},splitcomplement:function(){return this._applyCombination(XXt,arguments)},triad:function(){return this._applyCombination(gwe,[3])},tetrad:function(){return this._applyCombination(gwe,[4])}};On.fromRatio=function(n,e){if(C9(n)=="object"){var t={};for(var r in n)n.hasOwnProperty(r)&&(r==="a"?t[r]=n[r]:t[r]=xO(n[r]));n=t}return On(n,e)};function DXt(n){var e={r:0,g:0,b:0},t=1,r=null,i=null,a=null,o=!1,s=!1;return typeof n=="string"&&(n=eYt(n)),C9(n)=="object"&&(Qm(n.r)&&Qm(n.g)&&Qm(n.b)?(e=NXt(n.r,n.g,n.b),o=!0,s=String(n.r).substr(-1)==="%"?"prgb":"rgb"):Qm(n.h)&&Qm(n.s)&&Qm(n.v)?(r=xO(n.s),i=xO(n.v),e=FXt(n.h,r,i),o=!0,s="hsv"):Qm(n.h)&&Qm(n.s)&&Qm(n.l)&&(r=xO(n.s),a=xO(n.l),e=kXt(n.h,r,a),o=!0,s="hsl"),n.hasOwnProperty("a")&&(t=n.a)),t=NVe(t),{ok:o,format:n.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}function NXt(n,e,t){return{r:ul(n,255)*255,g:ul(e,255)*255,b:ul(t,255)*255}}function fwe(n,e,t){n=ul(n,255),e=ul(e,255),t=ul(t,255);var r=Math.max(n,e,t),i=Math.min(n,e,t),a,o,s=(r+i)/2;if(r==i)a=o=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case n:a=(e-t)/l+(e1&&(c-=1),c<1/6?u+(h-u)*6*c:c<1/2?h:c<2/3?u+(h-u)*(2/3-c)*6:u}if(e===0)r=i=a=t;else{var s=t<.5?t*(1+e):t+e-t*e,l=2*t-s;r=o(l,s,n+1/3),i=o(l,s,n),a=o(l,s,n-1/3)}return{r:r*255,g:i*255,b:a*255}}function dwe(n,e,t){n=ul(n,255),e=ul(e,255),t=ul(t,255);var r=Math.max(n,e,t),i=Math.min(n,e,t),a,o,s=r,l=r-i;if(o=r===0?0:l/r,r==i)a=0;else{switch(r){case n:a=(e-t)/l+(e>1)+720)%360;--e;)r.h=(r.h+i)%360,a.push(On(r));return a}function qXt(n,e){e=e||6;for(var t=On(n).toHsv(),r=t.h,i=t.s,a=t.v,o=[],s=1/e;e--;)o.push(On({h:r,s:i,v:a})),a=(a+s)%1;return o}On.mix=function(n,e,t){t=t===0?0:t||50;var r=On(n).toRgb(),i=On(e).toRgb(),a=t/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return On(o)};On.readability=function(n,e){var t=On(n),r=On(e);return(Math.max(t.getLuminance(),r.getLuminance())+.05)/(Math.min(t.getLuminance(),r.getLuminance())+.05)};On.isReadable=function(n,e,t){var r=On.readability(n,e),i,a;switch(a=!1,i=tYt(t),i.level+i.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a};On.mostReadable=function(n,e,t){var r=null,i=0,a,o,s,l;t=t||{},o=t.includeFallbackColors,s=t.level,l=t.size;for(var u=0;ui&&(i=a,r=On(e[u]));return On.isReadable(n,r,{level:s,size:l})||!o?r:(t.includeFallbackColors=!1,On.mostReadable(n,["#fff","#000"],t))};var Eee=On.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ZXt=On.hexNames=KXt(Eee);function KXt(n){var e={};for(var t in n)n.hasOwnProperty(t)&&(e[n[t]]=t);return e}function NVe(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function ul(n,e){JXt(n)&&(n="100%");var t=QXt(n);return n=Math.min(e,Math.max(0,parseFloat(n))),t&&(n=parseInt(n*e,10)/100),Math.abs(n-e)<1e-6?1:n%e/parseFloat(e)}function eV(n){return Math.min(1,Math.max(0,n))}function Kd(n){return parseInt(n,16)}function JXt(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1}function QXt(n){return typeof n=="string"&&n.indexOf("%")!=-1}function a0(n){return n.length==1?"0"+n:""+n}function xO(n){return n<=1&&(n=n*100+"%"),n}function kVe(n){return Math.round(parseFloat(n)*255).toString(16)}function ywe(n){return Kd(n)/255}var Og=function(){var n="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",t="(?:"+e+")|(?:"+n+")",r="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",i="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Qm(n){return!!Og.CSS_UNIT.exec(n)}function eYt(n){n=n.replace(OXt,"").replace(RXt,"").toLowerCase();var e=!1;if(Eee[n])n=Eee[n],e=!0;else if(n=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=Og.rgb.exec(n))?{r:t[1],g:t[2],b:t[3]}:(t=Og.rgba.exec(n))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Og.hsl.exec(n))?{h:t[1],s:t[2],l:t[3]}:(t=Og.hsla.exec(n))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Og.hsv.exec(n))?{h:t[1],s:t[2],v:t[3]}:(t=Og.hsva.exec(n))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Og.hex8.exec(n))?{r:Kd(t[1]),g:Kd(t[2]),b:Kd(t[3]),a:ywe(t[4]),format:e?"name":"hex8"}:(t=Og.hex6.exec(n))?{r:Kd(t[1]),g:Kd(t[2]),b:Kd(t[3]),format:e?"name":"hex"}:(t=Og.hex4.exec(n))?{r:Kd(t[1]+""+t[1]),g:Kd(t[2]+""+t[2]),b:Kd(t[3]+""+t[3]),a:ywe(t[4]+""+t[4]),format:e?"name":"hex8"}:(t=Og.hex3.exec(n))?{r:Kd(t[1]+""+t[1]),g:Kd(t[2]+""+t[2]),b:Kd(t[3]+""+t[3]),format:e?"name":"hex"}:!1}function tYt(n){var e,t;return n=n||{level:"AA",size:"small"},e=(n.level||"AA").toUpperCase(),t=(n.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:e,size:t}}var L5=2,mwe=.16,rYt=.05,nYt=.05,iYt=.15,FVe=5,BVe=4,aYt=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function _we(n,e,t){var r;return Math.round(n.h)>=60&&Math.round(n.h)<=240?r=t?Math.round(n.h)-L5*e:Math.round(n.h)+L5*e:r=t?Math.round(n.h)+L5*e:Math.round(n.h)-L5*e,r<0?r+=360:r>=360&&(r-=360),r}function xwe(n,e,t){if(n.h===0&&n.s===0)return n.s;var r;return t?r=n.s-mwe*e:e===BVe?r=n.s+mwe:r=n.s+rYt*e,r>1&&(r=1),t&&e===FVe&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Swe(n,e,t){var r;return t?r=n.v+nYt*e:r=n.v-iYt*e,r>1&&(r=1),Number(r.toFixed(2))}function A9(n){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],r=On(n),i=FVe;i>0;i-=1){var a=r.toHsv(),o=On({h:_we(a,i,!0),s:xwe(a,i,!0),v:Swe(a,i,!0)}).toHexString();t.push(o)}t.push(r.toHexString());for(var s=1;s<=BVe;s+=1){var l=r.toHsv(),u=On({h:_we(l,s),s:xwe(l,s),v:Swe(l,s)}).toHexString();t.push(u)}return e.theme==="dark"?aYt.map(function(h){var c=h.index,f=h.opacity,d=On.mix(e.backgroundColor||"#141414",t[c],f*100).toHexString();return d}):t}var XX={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},YX={},qX={};Object.keys(XX).forEach(function(n){YX[n]=A9(XX[n]),YX[n].primary=YX[n][5],qX[n]=A9(XX[n],{theme:"dark",backgroundColor:"#141414"}),qX[n].primary=qX[n][5]});var Ju=function(e,t,r){var i=mR(e),a=mR(t);return mR([(1-r)*i.red()+r*a.red(),(1-r)*i.green()+r*a.green(),(1-r)*i.blue()+r*a.blue()]).rgb()},oYt=function(e,t,r){t===void 0&&(t="#fff"),r===void 0&&(r="rgb(150, 150, 150)");var i=Ju(t,e,.05).rgb().toString(),a=Ju(t,e,.1).rgb().toString(),o=Ju(t,e,.2).rgb().toString(),s=Ju(t,e,.4).rgb().toString(),l=Ju(t,r,.02).rgb().toString(),u=Ju(t,r,.05).rgb().toString(),h=Ju(t,r,.1).rgb().toString(),c=Ju(t,r,.2).rgb().toString(),f=Ju(t,r,.3).rgb().toString(),d=A9(e,{theme:"default",backgroundColor:t}),v=mR(e).hex().toLowerCase(),p=d.indexOf(v),g=e;return p!==-1&&(g=d[p+1]),{mainStroke:e,mainFill:a,activeStroke:e,activeFill:i,inactiveStroke:s,inactiveFill:i,selectedStroke:e,selectedFill:t,highlightStroke:g,highlightFill:o,disableStroke:f,disableFill:u,edgeMainStroke:f,edgeActiveStroke:e,edgeInactiveStroke:c,edgeSelectedStroke:e,edgeHighlightStroke:e,edgeDisableStroke:h,comboMainStroke:f,comboMainFill:l,comboActiveStroke:e,comboActiveFill:i,comboInactiveStroke:f,comboInactiveFill:l,comboSelectedStroke:e,comboSelectedFill:l,comboHighlightStroke:g,comboHighlightFill:l,comboDisableStroke:c,comboDisableFill:u}},sYt=function(e,t,r){t===void 0&&(t="#fff"),r===void 0&&(r="#777");var i=Ju(t,e,.2).rgb().toString(),a=Ju(t,e,.3).rgb().toString(),o=Ju(t,e,.6).rgb().toString(),s=Ju(t,e,.8).rgb().toString(),l=Ju(t,r,.2).rgb().toString(),u=Ju(t,r,.25).rgb().toString(),h=Ju(t,r,.3).rgb().toString(),c=Ju(t,r,.4).rgb().toString(),f=Ju(t,r,.5).rgb().toString(),d=A9(e,{theme:"dark",backgroundColor:t}),v=mR(e).hex().toLowerCase(),p=d.indexOf(v),g=e;return p!==-1&&(g=d[p+1]),{mainStroke:s,mainFill:i,activeStroke:e,activeFill:a,inactiveStroke:s,inactiveFill:i,selectedStroke:e,selectedFill:i,highlightStroke:e,highlightFill:o,disableStroke:f,disableFill:u,edgeMainStroke:r,edgeActiveStroke:e,edgeInactiveStroke:r,edgeSelectedStroke:e,edgeHighlightStroke:e,edgeDisableStroke:h,comboMainStroke:c,comboMainFill:u,comboActiveStroke:e,comboActiveFill:l,comboInactiveStroke:c,comboInactiveFill:u,comboSelectedStroke:e,comboSelectedFill:l,comboHighlightStroke:g,comboHighlightFill:u,comboDisableStroke:c,comboDisableFill:l}},Ose=function(e,t,r,i){return t===void 0&&(t="#fff"),r===void 0&&(r="default"),r==="default"?oYt(e,t,"rgb(150, 150, 150)"):sYt(e,t,"#777")},lYt=function(e,t,r,i){t===void 0&&(t="#fff"),r===void 0&&(r="default");var a=[];return e.forEach(function(o){a.push(Ose(o,t,r))}),a};const uYt=Object.freeze(Object.defineProperty({__proto__:null,mixColor:Ju,getColorsWithSubjectColor:Ose,getColorSetsBySubjectColors:lYt},Symbol.toStringTag,{value:"Module"}));var hYt="rgb(95, 149, 255)",cYt="rgb(255, 255, 255)",wwe="rgb(0, 0, 0)",da=Ose(hYt,cYt);const BE={version:"0.8.23",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",delegateContainerClassName:"delegate-container",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#000",fontSize:12,textAlign:"center",textBaseline:"middle"},offset:4},defaultNode:{type:"circle",style:{lineWidth:1,stroke:da.mainStroke,fill:da.mainFill},size:20,color:da.mainStroke,linkPoints:{size:8,lineWidth:1,fill:da.activeFill,stroke:da.activeStroke}},nodeStateStyles:{active:{fill:da.activeFill,stroke:da.activeStroke,lineWidth:2,shadowColor:da.mainStroke,shadowBlur:10},selected:{fill:da.selectedFill,stroke:da.selectedStroke,lineWidth:4,shadowColor:da.selectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:da.highlightFill,stroke:da.highlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:da.inactiveFill,stroke:da.inactiveStroke,lineWidth:1},disable:{fill:da.disableFill,stroke:da.disableStroke,lineWidth:1}},edgeLabel:{style:{fill:wwe,textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:da.edgeMainStroke,lineAppendWidth:2},color:da.edgeMainStroke},edgeStateStyles:{active:{stroke:da.edgeActiveStroke,lineWidth:1},selected:{stroke:da.edgeSelectedStroke,lineWidth:2,shadowColor:da.edgeSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:da.edgeHighlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:da.edgeInactiveStroke,lineWidth:1},disable:{stroke:da.edgeDisableStroke,lineWidth:1}},comboLabel:{style:{fill:wwe,textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:da.comboMainFill,lineWidth:1,stroke:da.comboMainStroke,r:5,width:20,height:10},size:[20,5],color:da.comboMainStroke,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:da.comboActiveStroke,lineWidth:1,fill:da.comboActiveFill},selected:{stroke:da.comboSelectedStroke,lineWidth:2,fill:da.comboSelectedFill,shadowColor:da.comboSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:da.comboHighlightStroke,lineWidth:2,fill:da.comboHighlightFill,"text-shape":{fontWeight:500}},inactive:{stroke:da.comboInactiveStroke,fill:da.comboInactiveFill,lineWidth:1},disable:{stroke:da.comboDisableStroke,fill:da.comboDisableFill,lineWidth:1}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"};var fYt=function(e){var t=e.clone();return GVe(e,t),t},GVe=function(e,t){var r;e.isGroup()&&t.isGroup()&&((r=e.get("children"))===null||r===void 0||r.forEach(function(s,l){var u=t.get("children")[l];GVe(s,u)}));var i=e.get("type"),a=t.get("type");if(!(i!=="image"||a!=="image")){var o=e.get("clipShape");o&&t.setClip({type:o.get("type"),attrs:o.attr()})}},dYt=gc.cloneEvent,vYt=gc.isViewportChanged,pYt=function(n){Kn(e,n);function e(t){var r=n.call(this,t)||this;return r.extendEvents=[],r.dragging=!1,r.mousedown=!1,r.preItem=null,r.destroy(),r.graph=t,r.destroyed=!1,r.initEvents(),r}return e.prototype.initEvents=function(){var t=this,r=t.graph,i=t.extendEvents,a=i===void 0?[]:i,o=r.get("canvas"),s=o.get("el"),l=hE(this,"onCanvasEvents"),u=hE(this,"onExtendEvents"),h=hE(this,"onWheelEvent");o.off("*").on("*",l),this.canvasHandler=l,a.push(M5(s,"wheel",h)),typeof window<"u"&&(a.push(M5(window,"keydown",u)),a.push(M5(window,"keyup",u)),a.push(M5(window,"focus",u))),this.resetHandler&&r.off("afterchangedata",this.resetHandler),this.resetHandler=hE(this,"resetStatus"),r.on("afterchangedata",this.resetHandler)},e.getItemRoot=function(t){for(;t&&!t.get("item");)t=t.get("parent");return t},e.prototype.onCanvasEvents=function(t){var r=this,i=this.graph,a=i.get("canvas"),o=t.target,s=t.type;switch(s){case"drag":this.onCanvasEvents(Object.assign({},t,{type:"mousemove"}));break;case"dragend":this.onCanvasEvents(Object.assign({},t,{type:"mouseup"}));break;case"mousedown":this.mousedown=!0;break;case"mouseup":setTimeout(function(){return r.mousedown=!1});break;case"click":if(!this.mousedown)return;break}t.canvasX=t.x,t.canvasY=t.y;var l={x:t.canvasX,y:t.canvasY},u=i.get("group"),h=u.getMatrix();if(h||(h=[1,0,0,0,1,0,0,0,1]),vYt(h)&&(l=i.getPointByClient(t.clientX,t.clientY)),t.x=l.x,t.y=l.y,t.currentTarget=i,o===a){(s==="mousemove"||s==="mouseleave")&&this.handleMouseMove(t,"canvas"),t.target=a,t.item=null,i.emit(s,t),i.emit("canvas:".concat(s),t);return}var c=e.getItemRoot(o);if(!c){i.emit(s,t);return}var f=c.get("item");if(!f.destroyed){var d=f.getType();if(t.target=o,t.item=f,t.canvasX===t.x&&t.canvasY===t.y){var v=i.getCanvasByPoint(t.x,t.y);t.canvasX=v.x,t.canvasY=v.y}t.name&&!t.name.includes(":")?(i.emit("".concat(d,":").concat(s),t),i.emit(s,t)):t.name&&i.emit(t.name,t),s==="dragstart"&&(this.dragging=!0),s==="dragend"&&(this.dragging=!1),s==="mousemove"&&this.handleMouseMove(t,d)}},e.prototype.onExtendEvents=function(t){this.graph.emit(t.type,t)},e.prototype.onWheelEvent=function(t){an(t.wheelDelta)&&(t.wheelDelta=-t.detail),this.graph.emit("wheel",t)},e.prototype.handleMouseMove=function(t,r){var i=this,a=i.graph,o=i.preItem,s=a.get("canvas"),l=t.target===s?null:t.item;t=dYt(t),o&&o!==l&&!o.destroyed&&(t.item=o,this.emitCustomEvent(o.getType(),"mouseleave",t),this.dragging&&this.emitCustomEvent(o.getType(),"dragleave",t)),l&&o!==l&&(t.item=l,this.emitCustomEvent(r,"mouseenter",t),this.dragging&&this.emitCustomEvent(r,"dragenter",t)),this.preItem=l},e.prototype.emitCustomEvent=function(t,r,i){i.type=r,this.graph.emit("".concat(t,":").concat(r),i)},e.prototype.resetStatus=function(){this.mousedown=!1,this.dragging=!1,this.preItem=null},e.prototype.destroy=function(){var t=this,r=t.graph,i=t.canvasHandler,a=t.extendEvents,o=r.get("canvas");o.off("*",i),At(a,function(s){s.remove()}),this.resetStatus(),this.extendEvents.length=0,this.canvasHandler=null,this.resetHandler=null,this.destroyed=!0},e}(DUe),Yi={},Z1={},Xl={};Object.defineProperty(Xl,"__esModule",{value:!0});Xl.Base=void 0;var gYt=function(){function n(){this.nodes=[],this.edges=[],this.combos=[],this.comboEdges=[],this.hiddenNodes=[],this.hiddenEdges=[],this.hiddenCombos=[],this.vedges=[],this.positions=[],this.destroyed=!1,this.onLayoutEnd=function(){}}return n.prototype.layout=function(e){return this.init(e),this.execute(!0)},n.prototype.init=function(e){this.nodes=e.nodes||[],this.edges=e.edges||[],this.combos=e.combos||[],this.comboEdges=e.comboEdges||[],this.hiddenNodes=e.hiddenNodes||[],this.hiddenEdges=e.hiddenEdges||[],this.hiddenCombos=e.hiddenCombos||[],this.vedges=e.vedges||[]},n.prototype.execute=function(e){},n.prototype.executeWithWorker=function(){},n.prototype.getDefaultCfg=function(){return{}},n.prototype.updateCfg=function(e){e&&Object.assign(this,e)},n.prototype.getType=function(){return"base"},n.prototype.destroy=function(){this.nodes=null,this.edges=null,this.combos=null,this.positions=null,this.destroyed=!0},n}();Xl.Base=gYt;var ZX={},LM={};Object.defineProperty(LM,"__esModule",{value:!0});LM.camelize=LM.isString=void 0;var yYt=function(n){return typeof n=="string"};LM.isString=yYt;var mYt=function(n){var e=Object.create(null);return function(t){var r=e[t];return r||(e[t]=n(t))}},_Yt=/-(\w)/g;LM.camelize=mYt(function(n){return n.replace(_Yt,function(e,t){return t?t.toUpperCase():""})});var q3={};Object.defineProperty(q3,"__esModule",{value:!0});q3.isArray=void 0;q3.isArray=Array.isArray;var tV={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.toNumber=n.isNaN=n.isNumber=void 0;var e=function(i){return typeof i=="number"};n.isNumber=e;var t=function(i){return Number.isNaN(Number(i))};n.isNaN=t;var r=function(i){var a=parseFloat(i);return(0,n.isNaN)(a)?i:a};n.toNumber=r})(tV);var rV={},Rse={};(function(n){var e=at&&at.__assign||function(){return e=Object.assign||function(i){for(var a,o=1,s=arguments.length;o_[S][b]+_[b][w]&&(_[S][w]=_[S][b]+_[b][w]);return _};n.floydWarshall=s;var l=function(y,_){var x=y.nodes,S=y.edges,w=[],b={};if(!x)throw new Error("invalid nodes data!");return x&&x.forEach(function(E,T){b[E.id]=T;var C=[];w.push(C)}),S==null||S.forEach(function(E){var T=(0,n.getEdgeTerminal)(E,"source"),C=(0,n.getEdgeTerminal)(E,"target"),A=b[T],M=b[C];A===void 0||M===void 0||(w[A][M]=1,_||(w[M][A]=1))}),w};n.getAdjMatrix=l;var u=function(y,_){var x=[];return y.forEach(function(S){var w=[];S.forEach(function(b){w.push(b*_)}),x.push(w)}),x};n.scaleMatrix=u;var h=function(y,_){if(y&&y.children){for(var x=y.children.length-1;x>=0;x--)if(!h(y.children[x],_))return}return!!_(y)},c=function(y,_){typeof _=="function"&&h(y,_)};n.traverseTreeUp=c;var f=function(y){var _=1/0,x=1/0,S=-1/0,w=-1/0;return y.forEach(function(b){var E=b.size;(0,e.isArray)(E)?E.length===1&&(E=[E[0],E[0]]):(0,t.isNumber)(E)?E=[E,E]:(E===void 0||isNaN(E))&&(E=[30,30]);var T=[E[0]/2,E[1]/2],C=b.x-T[0],A=b.x+T[0],M=b.y-T[1],I=b.y+T[1];_>C&&(_=C),x>M&&(x=M),Su.size[1]?u.size[0]:u.size[1]:(0,e.isObject)(u.size)?u.size.width>u.size.height?u.size.width:u.size.height:u.size:o}:(0,n.isFunction)(s)?s:(0,t.isNumber)(s)?function(){return s}:(0,e.isArray)(s)?function(){if(l){var u=Math.max.apply(Math,s);return isNaN(u)?o:u}return s}:(0,e.isObject)(s)?function(){if(l){var u=Math.max(s.width,s.height);return isNaN(u)?o:u}return[s.width,s.height]}:function(){return o}};n.getFuncByUnknownType=a}(KX)),KX}var Ewe;function Dl(){return Ewe||(Ewe=1,function(n){var e=at&&at.__createBinding||(Object.create?function(r,i,a,o){o===void 0&&(o=a);var s=Object.getOwnPropertyDescriptor(i,a);(!s||("get"in s?!i.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(r,o,s)}:function(r,i,a,o){o===void 0&&(o=a),r[o]=i[a]}),t=at&&at.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&e(i,r,a)};Object.defineProperty(n,"__esModule",{value:!0}),t(LM,n),t(q3,n),t(tV,n),t(rV,n),t(Rse,n),t(xYt(),n)}(ZX)),ZX}var SYt=at&&at.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(Z1,"__esModule",{value:!0});Z1.getLayoutByName=Z1.unRegisterLayout=Z1.registerLayout=void 0;var wYt=Xl,bYt=Dl(),sS=new Map,EYt=function(n,e){if(sS.get(n)&&console.warn("The layout with the name ".concat(n," exists already, it will be overridden")),(0,bYt.isObject)(e)){var t=function(r){SYt(i,r);function i(a){var o=this,s;o=r.call(this)||this;var l=o,u={},h=Object.assign({},l.getDefaultCfg(),((s=e.getDefaultCfg)===null||s===void 0?void 0:s.call(e))||{});return Object.assign(u,h,e,a),Object.keys(u).forEach(function(c){var f=u[c];l[c]=f}),o}return i}(wYt.Base);sS.set(n,t)}else sS.set(n,e);return sS.get(n)};Z1.registerLayout=EYt;var TYt=function(n){sS.has(n)&&sS.delete(n)};Z1.unRegisterLayout=TYt;var CYt=function(n){return sS.has(n)?sS.get(n):null};Z1.getLayoutByName=CYt;var JX={},Z3={},AYt=at&&at.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(Z3,"__esModule",{value:!0});Z3.GridLayout=void 0;var hC=Dl(),MYt=Xl,IYt=function(n){AYt(e,n);function e(t){var r=n.call(this)||this;return r.begin=[0,0],r.preventOverlap=!0,r.preventOverlapPadding=10,r.condense=!1,r.sortBy="degree",r.nodes=[],r.edges=[],r.width=300,r.height=300,r.row=0,r.col=0,r.cellWidth=0,r.cellHeight=0,r.cellUsed={},r.id2manPos={},r.onLayoutEnd=function(){},r.updateCfg(t),r}return e.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}},e.prototype.execute=function(){var t=this,r=t.nodes,i=t.edges,a=t.begin,o=r.length;if(o===0)return t.onLayoutEnd&&t.onLayoutEnd(),{nodes:r,edges:i};if(o===1)return r[0].x=a[0],r[0].y=a[1],t.onLayoutEnd&&t.onLayoutEnd(),{nodes:r,edges:i};var s=t.sortBy,l=t.width,u=t.height,h=t.condense,c=t.preventOverlapPadding,f=t.preventOverlap,d=t.nodeSpacing,v=t.nodeSize,p=[];r.forEach(function(M){p.push(M)});var g={};if(p.forEach(function(M,I){g[M.id]=I}),(s==="degree"||!(0,hC.isString)(s)||p[0][s]===void 0)&&(s="degree",(0,hC.isNaN)(r[0].degree))){var m=(0,hC.getDegree)(p.length,g,i);p.forEach(function(M,I){M.degree=m[I].all})}p.sort(function(M,I){return I[s]-M[s]}),!l&&typeof window<"u"&&(l=window.innerWidth),!u&&typeof window<"u"&&(u=window.innerHeight);var y=t.rows,_=t.cols!=null?t.cols:t.columns;if(t.cells=o,y!=null&&_!=null?(t.rows=y,t.cols=_):y!=null&&_==null?(t.rows=y,t.cols=Math.ceil(t.cells/t.rows)):y==null&&_!=null?(t.cols=_,t.rows=Math.ceil(t.cells/t.cols)):(t.splits=Math.sqrt(t.cells*t.height/t.width),t.rows=Math.round(t.splits),t.cols=Math.round(t.width/t.height*t.splits)),t.rows=Math.max(t.rows,1),t.cols=Math.max(t.cols,1),t.cols*t.rows>t.cells){var x=t.small(),S=t.large();(x-1)*S>=t.cells?t.small(x-1):(S-1)*x>=t.cells&&t.large(S-1)}else for(;t.cols*t.rows=t.cells?t.large(S+1):t.small(x+1)}if(t.cellWidth=l/t.cols,t.cellHeight=u/t.rows,h&&(t.cellWidth=0,t.cellHeight=0),f||d){var w=(0,hC.getFuncByUnknownType)(10,d),b=(0,hC.getFuncByUnknownType)(30,v,!1);p.forEach(function(M){(!M.x||!M.y)&&(M.x=0,M.y=0);var I=b(M)||30,R,k;(0,hC.isArray)(I)?(R=I[0],k=I[1]):(R=I,k=I);var D=w!==void 0?w(M):c,G=R+D,V=k+D;t.cellWidth=Math.max(t.cellWidth,G),t.cellHeight=Math.max(t.cellHeight,V)})}t.cellUsed={},t.row=0,t.col=0,t.id2manPos={};for(var E=0;E=r&&(t.col=0,t.row++)},e.prototype.getPos=function(t){var r=this,i=r.begin,a=r.cellWidth,o=r.cellHeight,s,l,u=r.id2manPos[t.id];if(u)s=u.col*a+a/2+i[0],l=u.row*o+o/2+i[1];else{for(;r.used(r.row,r.col);)r.moveToNextCell();s=r.col*a+a/2+i[0],l=r.row*o+o/2+i[1],r.use(r.row,r.col),r.moveToNextCell()}t.x=s,t.y=l},e.prototype.getType=function(){return"grid"},e}(MYt.Base);Z3.GridLayout=IYt;var K3={},LYt=at&&at.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(K3,"__esModule",{value:!0});K3.RandomLayout=void 0;var PYt=Xl,OYt=function(n){LYt(e,n);function e(t){var r=n.call(this)||this;return r.center=[0,0],r.width=300,r.height=300,r.nodes=[],r.edges=[],r.onLayoutEnd=function(){},r.updateCfg(t),r}return e.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},e.prototype.execute=function(){var t=this,r=t.nodes,i=.9,a=t.center;return!t.width&&typeof window<"u"&&(t.width=window.innerWidth),!t.height&&typeof window<"u"&&(t.height=window.innerHeight),r&&r.forEach(function(o){o.x=(Math.random()-.5)*i*t.width+a[0],o.y=(Math.random()-.5)*i*t.height+a[1]}),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:r,edges:this.edges}},e.prototype.getType=function(){return"random"},e}(PYt.Base);K3.RandomLayout=OYt;var J3={},RYt=at&&at.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(J3,"__esModule",{value:!0});J3.GForceLayout=void 0;var DYt=Xl,Ic=Dl(),QX=function(n,e){var t;return n?(0,Ic.isNumber)(n)?t=function(r){return n}:t=n:t=function(r){return e||1},t},NYt=function(n){RYt(e,n);function e(t){var r=n.call(this)||this;return r.maxIteration=500,r.workerEnabled=!1,r.edgeStrength=200,r.nodeStrength=1e3,r.coulombDisScale=.005,r.damping=.9,r.maxSpeed=1e3,r.minMovement=.5,r.interval=.02,r.factor=1,r.linkDistance=1,r.gravity=10,r.preventOverlap=!0,r.collideStrength=1,r.tick=function(){},r.nodes=[],r.edges=[],r.width=300,r.height=300,r.nodeMap={},r.nodeIdxMap={},r.animate=!0,r.updateCfg(t),r}return e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var t,r,i=this,a=i.nodes;if(i.timeInterval!==void 0&&typeof window<"u"&&window.clearInterval(i.timeInterval),!a||a.length===0){(t=i.onLayoutEnd)===null||t===void 0||t.call(i);return}!i.width&&typeof window<"u"&&(i.width=window.innerWidth),!i.height&&typeof window<"u"&&(i.height=window.innerHeight),i.center||(i.center=[i.width/2,i.height/2]);var o=i.center;if(a.length===1){a[0].x=o[0],a[0].y=o[1],(r=i.onLayoutEnd)===null||r===void 0||r.call(i);return}var s={},l={};a.forEach(function(v,p){(0,Ic.isNumber)(v.x)||(v.x=Math.random()*i.width),(0,Ic.isNumber)(v.y)||(v.y=Math.random()*i.height),s[v.id]=v,l[v.id]=p}),i.nodeMap=s,i.nodeIdxMap=l,i.linkDistance=QX(i.linkDistance,1),i.nodeStrength=QX(i.nodeStrength,1),i.edgeStrength=QX(i.edgeStrength,1);var u=i.nodeSize,h;if(i.preventOverlap){var c=i.nodeSpacing,f;(0,Ic.isNumber)(c)?f=function(){return c}:(0,Ic.isFunction)(c)?f=c:f=function(){return 0},u?(0,Ic.isArray)(u)?h=function(v){return Math.max(u[0],u[1])+f(v)}:h=function(v){return u+f(v)}:h=function(v){return v.size?(0,Ic.isArray)(v.size)?Math.max(v.size[0],v.size[1])+f(v):(0,Ic.isObject)(v.size)?Math.max(v.size.width,v.size.height)+f(v):v.size+f(v):10+f(v)}}i.nodeSize=h;var d=i.edges;i.degrees=(0,Ic.getDegree)(a.length,i.nodeIdxMap,d),i.getMass||(i.getMass=function(v){var p=v.mass||i.degrees[i.nodeIdxMap[v.id]].all||1;return p}),i.run()},e.prototype.run=function(){var t,r=this,i=r.maxIteration,a=r.nodes,o=r.workerEnabled,s=r.minMovement,l=r.animate;if(!!a)if(o||!l){for(var u=0;u"u")return;var c=0;this.timeInterval=window.setInterval(function(){var f,d;if(!!a){var v=r.runOneStep(c)||[];r.reachMoveThreshold(a,v,s)&&((f=r.onLayoutEnd)===null||f===void 0||f.call(r),window.clearInterval(r.timeInterval)),c++,c>=i&&((d=r.onLayoutEnd)===null||d===void 0||d.call(r),window.clearInterval(r.timeInterval))}},0)}},e.prototype.reachMoveThreshold=function(t,r,i){var a=0;return t.forEach(function(o,s){var l=o.x-r[s].x,u=o.y-r[s].y;a+=Math.sqrt(l*l+u*u)}),a/=t.length,a=m)){var y=d.x-g.x,_=d.y-g.y;y===0&&_===0&&(y=Math.random()*.01,_=Math.random()*.01);var x=y*y+_*_,S=Math.sqrt(x),w=(S+.1)*s,b=y/S,E=_/S,T=(c(d)+c(g))*.5*o/(w*w),C=a?a(g):1;if(t[2*v]+=b*T,t[2*v+1]+=E*T,t[2*m]-=b*T,t[2*m+1]-=E*T,l&&(f(d)+f(g))/2>S){var A=h*(c(d)+c(g))*.5/x;t[2*v]+=b*A/p,t[2*v+1]+=E*A/p,t[2*m]-=b*A/C,t[2*m+1]-=E*A/C}}})})},e.prototype.calAttractive=function(t,r){var i=this,a=i.nodeMap,o=i.nodeIdxMap,s=i.linkDistance,l=i.edgeStrength,u=i.nodeSize,h=i.getMass;r.forEach(function(c,f){var d=(0,Ic.getEdgeTerminal)(c,"source"),v=(0,Ic.getEdgeTerminal)(c,"target"),p=a[d],g=a[v],m=g.x-p.x,y=g.y-p.y;m===0&&y===0&&(m=Math.random()*.01,y=Math.random()*.01);var _=Math.sqrt(m*m+y*y),x=m/_,S=y/_,w=s(c,p,g)||1+(u(p)+u(g)||0)/2,b=w-_,E=b*l(c),T=o[d],C=o[v],A=h?h(p):1,M=h?h(g):1;t[2*T]-=x*E/A,t[2*T+1]-=S*E/A,t[2*C]+=x*E/M,t[2*C+1]+=S*E/M})},e.prototype.calGravity=function(t,r){for(var i=this,a=i.center,o=i.gravity,s=i.degrees,l=r.length,u=0;uo.maxSpeed){var d=o.maxSpeed/f;h=d*h,c=d*c}r[2*u]=h,r[2*u+1]=c})},e.prototype.updatePosition=function(t,r,i){i.forEach(function(a,o){if((0,Ic.isNumber)(a.fx)&&(0,Ic.isNumber)(a.fy)){a.x=a.fx,a.y=a.fy;return}var s=t[2*o]*r,l=t[2*o+1]*r;a.x+=s,a.y+=l})},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"gForce"},e}(DYt.Base);J3.GForceLayout=NYt;var Q3={},nV={};function kYt(n){const e=+this._x.call(null,n),t=+this._y.call(null,n);return zVe(this.cover(e,t),e,t,n)}function zVe(n,e,t,r){if(isNaN(e)||isNaN(t))return n;var i,a=n._root,o={data:r},s=n._x0,l=n._y0,u=n._x1,h=n._y1,c,f,d,v,p,g,m,y;if(!a)return n._root=o,n;for(;a.length;)if((p=e>=(c=(s+u)/2))?s=c:u=c,(g=t>=(f=(l+h)/2))?l=f:h=f,i=a,!(a=a[m=g<<1|p]))return i[m]=o,n;if(d=+n._x.call(null,a.data),v=+n._y.call(null,a.data),e===d&&t===v)return o.next=a,i?i[m]=o:n._root=o,n;do i=i?i[m]=new Array(4):n._root=new Array(4),(p=e>=(c=(s+u)/2))?s=c:u=c,(g=t>=(f=(l+h)/2))?l=f:h=f;while((m=g<<1|p)===(y=(v>=f)<<1|d>=c));return i[y]=a,i[m]=o,n}function FYt(n){var e,t,r=n.length,i,a,o=new Array(r),s=new Array(r),l=1/0,u=1/0,h=-1/0,c=-1/0;for(t=0;th&&(h=i),ac&&(c=a));if(l>h||u>c)return this;for(this.cover(l,u).cover(h,c),t=0;tn||n>=i||r>e||e>=a;)switch(u=(eh||(s=v.y0)>c||(l=v.x1)=m)<<1|n>=g)&&(v=f[f.length-1],f[f.length-1]=f[f.length-1-p],f[f.length-1-p]=v)}else{var y=n-+this._x.call(null,d.data),_=e-+this._y.call(null,d.data),x=y*y+_*_;if(x=(f=(o+l)/2))?o=f:l=f,(p=c>=(d=(s+u)/2))?s=d:u=d,e=t,!(t=t[g=p<<1|v]))return this;if(!t.length)break;(e[g+1&3]||e[g+2&3]||e[g+3&3])&&(r=e,m=g)}for(;t.data!==n;)if(i=t,!(t=t.next))return this;return(a=t.next)&&delete t.next,i?(a?i.next=a:delete i.next,this):e?(a?e[g]=a:delete e[g],(t=e[0]||e[1]||e[2]||e[3])&&t===(e[3]||e[2]||e[1]||e[0])&&!t.length&&(r?r[m]=t:this._root=t),this):(this._root=a,this)}function $Yt(n){for(var e=0,t=n.length;e1&&(E=(0,qu.getAvgNodePosition)(C))}else E=void 0;return{x:E==null?void 0:E.x,y:E==null?void 0:E.y}}}}if(i){c||(c=this.getSameTypeLeafMap());var d=Array.from(new Set(o.map(function(_,x){return _[a]}))).filter(function(_){return _!==void 0}),v={};d.forEach(function(_){var x=o.filter(function(S){return S[a]===_}).map(function(S){return s[S.id]});v[_]=(0,qu.getAvgNodePosition)(x)}),h={single:function(_){return u(_)},leaf:function(_){return u(_)},others:function(_){return u(_)},center:function(_,x,S){var w=v[_[a]];return{x:w==null?void 0:w.x,y:w==null?void 0:w.y}}}}this.centripetalOptions=kg(kg({},this.centripetalOptions),h);var p=this.centripetalOptions,g=p.leaf,m=p.single,y=p.others;g&&typeof g!="function"&&(this.centripetalOptions.leaf=function(){return g}),m&&typeof m!="function"&&(this.centripetalOptions.single=function(){return m}),y&&typeof y!="function"&&(this.centripetalOptions.others=function(){return y})},e.prototype.updateCfg=function(t){t&&Object.assign(this,t)},e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var t=this;t.stop();var r=t.nodes,i=t.edges,a=t.defSpringLen;if(t.judgingDistance=0,!r||r.length===0){t.onLayoutEnd([]);return}!t.width&&typeof window<"u"&&(t.width=window.innerWidth),!t.height&&typeof window<"u"&&(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]);var o=t.center;if(r.length===1){r[0].x=o[0],r[0].y=o[1],t.onLayoutEnd([kg({},r[0])]);return}t.degreesMap=(0,qu.getDegreeMap)(r,i),t.propsGetMass?t.getMass=t.propsGetMass:t.getMass=function(d){var v=1;(0,qu.isNumber)(d.mass)&&(v=d.mass);var p=t.degreesMap[d.id].all;return!p||p<5?v:p*5*v};var s=t.nodeSize,l;if(t.preventOverlap){var u=t.nodeSpacing,h;(0,qu.isNumber)(u)?h=function(){return u}:(0,qu.isFunction)(u)?h=u:h=function(){return 0},s?(0,qu.isArray)(s)?l=function(d){return Math.max(s[0],s[1])+h(d)}:l=function(d){return s+h(d)}:l=function(d){return d.size?(0,qu.isArray)(d.size)?Math.max(d.size[0],d.size[1])+h(d):(0,qu.isObject)(d.size)?Math.max(d.size.width,d.size.height)+h(d):d.size+h(d):10+h(d)}}t.nodeSize=l,t.linkDistance=eY(t.linkDistance,1),t.nodeStrength=eY(t.nodeStrength,1),t.edgeStrength=eY(t.edgeStrength,1);var c={},f={};r.forEach(function(d,v){(0,qu.isNumber)(d.x)||(d.x=Math.random()*t.width),(0,qu.isNumber)(d.y)||(d.y=Math.random()*t.height);var p=t.degreesMap[d.id];c[d.id]=kg(kg({},d),{data:kg(kg({},d.data),{size:t.nodeSize(d)||30,layout:{inDegree:p.in,outDegree:p.out,degree:p.all,tDegree:p.in,sDegree:p.out,force:{mass:t.getMass(d),nodeStrength:t.nodeStrength(d,i)}}})}),f[d.id]=v}),t.nodeMap=c,t.nodeIdxMap=f,t.edgeInfos=[],i==null||i.forEach(function(d){var v=c[d.source],p=c[d.target];!v||!p?elf.edgeInfos.push({}):t.edgeInfos.push({edgeStrength:t.edgeStrength(d),linkDistance:a?a(kg(kg({},d),{source:v,target:p}),v,p):t.linkDistance(d,v,p)||1+(s(v)+s(v)||0)/2})}),this.getCentripetalOptions(),t.onLayoutEnd=t.onLayoutEnd||function(){},t.run()},e.prototype.run=function(){var t=this,r=t.maxIteration,i=t.nodes,a=t.edges,o=t.workerEnabled,s=t.minMovement,l=t.animate,u=t.nodeMap,h=t.height;if(t.currentMinY=0,t.currentMaxY=h,!!i){var c=[];if(i.forEach(function(m,y){c[2*y]=0,c[2*y+1]=0}),this.defSideCoe&&typeof this.defSideCoe=="function"){var f={};a.forEach(function(m){var y=m.source,_=m.target;f[y]=f[y]||[],f[y].push(m),f[_]=f[_]||[],f[_].push(m)}),this.relatedEdges=f}var d=r,v=!l;if(o||v){for(var p=0;(t.judgingDistance>s||p<1)&&p"u")return;var g=0;this.timeInterval=window.setInterval(function(){!i||(t.runOneStep(g,c),g++,(g>=d||t.judgingDistancel){var v=l/d;c=v*c,f=v*f}r[2*h]=c,r[2*h+1]=f})},e.prototype.updatePosition=function(t,r){var i=this,a=i.nodes,o=i.distanceThresholdMode,s=i.nodeMap;if(!(a!=null&&a.length)){this.judgingDistance=0;return}var l=0;o==="max"?i.judgingDistance=-1/0:o==="min"&&(i.judgingDistance=1/0);var u=1/0,h=-1/0;a.forEach(function(c,f){var d=s[c.id];if((0,qu.isNumber)(c.fx)&&(0,qu.isNumber)(c.fy)){c.x=c.fx,c.y=c.fy,d.x=c.x,d.y=c.y;return}var v=t[2*f]*r,p=t[2*f+1]*r;c.x+=v,c.y+=p,d.x=c.x,d.y=c.y,c.yh&&(h=c.y);var g=Math.sqrt(v*v+p*p);switch(o){case"max":i.judgingDistanceg&&(i.judgingDistance=g);break;default:l=l+g;break}}),this.currentMinY=u,this.currentMaxY=h,(!o||o==="mean")&&(i.judgingDistance=l/a.length)},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"force2"},e.prototype.getSameTypeLeafMap=function(){var t=this,r=t.nodeClusterBy,i=t.nodes,a=t.edges,o=t.nodeMap,s=t.degreesMap;if(!!(i!=null&&i.length)){var l={};return i.forEach(function(u,h){var c=s[u.id].all;c===1&&(l[u.id]=(0,qu.getCoreNodeAndRelativeLeafNodes)("leaf",u,a,r,s,o))}),l}},e}(sqt.Base);Q3.Force2Layout=uqt;var Nse={},aV={};function hqt(n,e){var t,r=1;n==null&&(n=0),e==null&&(e=0);function i(){var a,o=t.length,s,l=0,u=0;for(a=0;af.index){var A=d-E.x-E.vx,M=v-E.y-E.vy,I=A*A+M*M;Id+C||wv+C||bu.r&&(u.r=u[h].r)}function l(){if(!!e){var u,h=e.length,c;for(t=new Array(h),u=0;u[e(S,w,o),S])),x;for(g=0,s=new Array(m);g{}};function UVe(){for(var n=0,e=arguments.length,t={},r;n=0&&(r=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:r}})}qB.prototype=UVe.prototype={constructor:qB,on:function(n,e){var t=this._,r=yqt(n+"",t),i,a=-1,o=r.length;if(arguments.length<2){for(;++a0)for(var t=new Array(i),r=0,i,a;r(n=(_qt*n+xqt)%Iwe)/Iwe}function wqt(n){return n.x}function bqt(n){return n.y}var Eqt=10,Tqt=Math.PI*(3-Math.sqrt(5));function Cqt(n){var e,t=1,r=.001,i=1-Math.pow(r,1/300),a=0,o=.6,s=new Map,l=hse(c),u=UVe("tick","end"),h=Sqt();n==null&&(n=[]);function c(){f(),u.call("tick",e),t1?(g==null?s.delete(p):s.set(p,v(g)),e):s.get(p)},find:function(p,g,m){var y=0,_=n.length,x,S,w,b,E;for(m==null?m=1/0:m*=m,y=0;y<_;++y)b=n[y],x=p-b.x,S=g-b.y,w=x*x+S*S,w1?(u.on(p,g),e):u.on(p)}}}function Aqt(){var n,e,t,r,i=ah(-30),a,o=1,s=1/0,l=.81;function u(d){var v,p=n.length,g=iV(n,wqt,bqt).visitAfter(c);for(r=d,v=0;v=s)return;(d.data!==e||d.next)&&(m===0&&(m=lS(t),x+=m*m),y===0&&(y=lS(t),x+=y*y),x-1||(o[l]=a[l])}),o}),r.ticking=!1},e.prototype.execute=function(t){var r=this,i=r.nodes,a=r.edges;if(!r.ticking){var o=r.forceSimulation,s=r.alphaMin,l=r.alphaDecay,u=r.alpha;if(o){if(t){if(r.clustering&&r.clusterForce&&(r.clusterForce.nodes(i),r.clusterForce.links(a)),o.nodes(i),a&&r.edgeForce)r.edgeForce.links(a);else if(a&&!r.edgeForce){var f=fC.forceLink().id(function(g){return g.id}).links(a);r.edgeStrength&&f.strength(r.edgeStrength),r.linkDistance&&f.distance(r.linkDistance),r.edgeForce=f,o.force("link",f)}}r.preventOverlap&&r.overlapProcess(o),o.alpha(u).restart(),this.ticking=!0}else try{var h=fC.forceManyBody();if(r.nodeStrength&&h.strength(r.nodeStrength),o=fC.forceSimulation().nodes(i),r.clustering){var c=(0,Uqt.default)();c.centerX(r.center[0]).centerY(r.center[1]).template("force").strength(r.clusterFociStrength),a&&c.links(a),i&&c.nodes(i),c.forceLinkDistance(r.clusterEdgeDistance).forceLinkStrength(r.clusterEdgeStrength).forceCharge(r.clusterNodeStrength).forceNodeSize(r.clusterNodeSize),r.clusterForce=c,o.force("group",c)}if(o.force("center",fC.forceCenter(r.center[0],r.center[1])).force("charge",h).alpha(u).alphaDecay(l).alphaMin(s),r.preventOverlap&&r.overlapProcess(o),a){var f=fC.forceLink().id(function(p){return p.id}).links(a);r.edgeStrength&&f.strength(r.edgeStrength),r.linkDistance&&f.distance(r.linkDistance),r.edgeForce=f,o.force("link",f)}if(r.workerEnabled&&!jqt()&&(r.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),!r.workerEnabled)o.on("tick",function(){r.tick()}).on("end",function(){r.ticking=!1,r.onLayoutEnd&&r.onLayoutEnd()}),r.ticking=!0;else{o.stop();for(var d=Hqt(o),v=1;v<=d;v++)o.tick(),postMessage({nodes:i,currentTick:v,totalTicks:d,type:$qt.LAYOUT_MESSAGE.TICK},void 0);r.ticking=!1}r.forceSimulation=o,r.ticking=!0}catch(p){r.ticking=!1,console.warn(p)}}},e.prototype.overlapProcess=function(t){var r=this,i=r.nodeSize,a=r.nodeSpacing,o,s,l=r.collideStrength;if((0,vb.isNumber)(a)?s=function(){return a}:(0,vb.isFunction)(a)?s=a:s=function(){return 0},!i)o=function(f){if(f.size){if((0,vb.isArray)(f.size)){var d=f.size[0]>f.size[1]?f.size[0]:f.size[1];return d/2+s(f)}if((0,vb.isObject)(f.size)){var d=f.size.width>f.size.height?f.size.width:f.size.height;return d/2+s(f)}return f.size/2+s(f)}return 10+s(f)};else if((0,vb.isFunction)(i))o=function(f){var d=i(f);return d+s(f)};else if((0,vb.isArray)(i)){var u=i[0]>i[1]?i[0]:i[1],h=u/2;o=function(f){return h+s(f)}}else if((0,vb.isNumber)(i)){var c=i/2;o=function(f){return c+s(f)}}else o=function(){return 10};t.force("collisionForce",fC.forceCollide(o).strength(l))},e.prototype.updateCfg=function(t){var r=this;r.ticking&&(r.forceSimulation.stop(),r.ticking=!1),r.forceSimulation=null,Object.assign(r,t)},e.prototype.destroy=function(){var t=this;t.ticking&&(t.forceSimulation.stop(),t.ticking=!1),t.nodes=null,t.edges=null,t.destroyed=!0},e}(Vqt.Base);aV.ForceLayout=Wqt;function Hqt(n){var e=n.alphaMin(),t=n.alphaTarget(),r=n.alpha(),i=Math.log((e-t)/(r-t))/Math.log(1-n.alphaDecay()),a=Math.ceil(i);return a}function jqt(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}(function(n){var e=at&&at.__createBinding||(Object.create?function(r,i,a,o){o===void 0&&(o=a);var s=Object.getOwnPropertyDescriptor(i,a);(!s||("get"in s?!i.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(r,o,s)}:function(r,i,a,o){o===void 0&&(o=a),r[o]=i[a]}),t=at&&at.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&e(i,r,a)};Object.defineProperty(n,"__esModule",{value:!0}),t(aV,n)})(Nse);var ek={},Xqt=at&&at.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(ek,"__esModule",{value:!0});ek.CircularLayout=void 0;var Yqt=Xl,$y=Dl();function qqt(n,e,t,r){n.forEach(function(i,a){n[a].children=[],n[a].parent=[]}),r?e.forEach(function(i){var a=(0,$y.getEdgeTerminal)(i,"source"),o=(0,$y.getEdgeTerminal)(i,"target"),s=0;a&&(s=t[a]);var l=0;o&&(l=t[o]);var u=n[s].children,h=n[l].parent;u.push(n[l].id),h.push(n[s].id)}):e.forEach(function(i){var a=(0,$y.getEdgeTerminal)(i,"source"),o=(0,$y.getEdgeTerminal)(i,"target"),s=0;a&&(s=t[a]);var l=0;o&&(l=t[o]);var u=n[s].children,h=n[l].children;u.push(n[l].id),h.push(n[s].id)})}function Zqt(n,e,t){for(var r=t.length,i=0;ir?1:0}var Jqt=function(n){Xqt(e,n);function e(t){var r=n.call(this)||this;return r.radius=null,r.nodeSize=void 0,r.startRadius=null,r.endRadius=null,r.startAngle=0,r.endAngle=2*Math.PI,r.clockwise=!0,r.divisions=1,r.ordering=null,r.angleRatio=1,r.nodes=[],r.edges=[],r.nodeMap={},r.degrees=[],r.width=300,r.height=300,r.updateCfg(t),r}return e.prototype.getDefaultCfg=function(){return{radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},e.prototype.execute=function(){var t,r=this,i=r.nodes,a=r.edges,o=i.length;if(o===0){r.onLayoutEnd&&r.onLayoutEnd();return}!r.width&&typeof window<"u"&&(r.width=window.innerWidth),!r.height&&typeof window<"u"&&(r.height=window.innerHeight),r.center||(r.center=[r.width/2,r.height/2]);var s=r.center;if(o===1){i[0].x=s[0],i[0].y=s[1],r.onLayoutEnd&&r.onLayoutEnd();return}var l=r.radius,u=r.startRadius,h=r.endRadius,c=r.divisions,f=r.startAngle,d=r.endAngle,v=r.angleRatio,p=r.ordering,g=r.clockwise,m=r.nodeSpacing,y=r.nodeSize,_=(d-f)/o,x={};i.forEach(function(D,G){x[D.id]=G}),r.nodeMap=x;var S=(0,$y.getDegree)(i.length,x,a);if(r.degrees=S,m){var w=(0,$y.getFuncByUnknownType)(10,m),b=(0,$y.getFuncByUnknownType)(10,y),E=-1/0;i.forEach(function(D){var G=b(D);Er.width?r.width/2:r.height/2:!u&&h?u=h:u&&!h&&(h=u);var C=_*v,A=[];p==="topology"?A=r.topologyOrdering():p==="topology-directed"?A=r.topologyOrdering(!0):p==="degree"?A=r.degreeOrdering():A=i;for(var M=Math.ceil(o/c),I=0;I0?n.set(e,t):n.delete(e))}function VVe(n,e,t,r){var i=String(e),a=String(t);if(!n&&i>a){var o=i;i=a,a=o}return i+WA.EDGE_KEY_DELIM+a+WA.EDGE_KEY_DELIM+(r===void 0?WA.DEFAULT_EDGE_NAME:r)}function Rwe(n,e,t,r){var i=String(e),a=String(t),o={v:e,w:t};if(!n&&i>a){var s=o.v;o.v=o.w,o.w=s}return r!==void 0&&(o.name=r),o}function tY(n,e){return VVe(n,e.v,e.w,e.name)}function Dwe(n){return typeof n=="function"}var tZt=function(e){return e.nodes().map(function(t){var r=e.node(t),i=e.parent(t),a={id:t,value:r,parent:i};return a.value===void 0&&delete a.value,a.parent===void 0&&delete a.parent,a})},rZt=function(e){return e.edges().map(function(t){var r=e.edge(t),i={v:t.v,w:t.w,value:r,name:t.name};return i.name===void 0&&delete i.name,i.value===void 0&&delete i.value,i})},nZt=function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:tZt(e),edges:rZt(e),value:e.graph()};return t.value===void 0&&delete t.value,t},iZt=function(e){var t=new oT(e.options);return e.value!==void 0&&t.setGraph(e.value),e.nodes.forEach(function(r){t.setNode(r.id,r.value),r.parent&&t.setParent(r.id,r.parent)}),e.edges.forEach(function(r){t.setEdge(r.v,r.w,r.value,r.name)}),t};function Nwe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function kwe(n){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};oZt(this,n),this.directed=!0,this.multigraph=!1,this.compound=!1,this.GRAPH_NODE=WA.GRAPH_NODE,this.label=void 0,this.nodeCountNum=0,this.edgeCountNum=0,this.defaultNodeLabelFn=function(){},this.defaultEdgeLabelFn=function(){},this.parentMap=void 0,this.childrenMap=void 0,this.nodesLabelMap=new Map,this.inEdgesMap=new Map,this.outEdgesMap=new Map,this.predecessorsMap=new Map,this.successorsMap=new Map,this.edgesMap=new Map,this.edgesLabelsMap=new Map,this.isDirected=function(){return e.directed},this.isMultigraph=function(){return e.multigraph},this.isCompound=function(){return e.compound},this.setGraph=function(i){return e.label=i,e},this.graph=function(){return e.label},this.setDefaultNodeLabel=function(i){return Dwe(i)?e.defaultNodeLabelFn=i:e.defaultNodeLabelFn=function(){return i},e},this.nodeCount=function(){return e.nodeCountNum},this.node=function(i){return e.nodesLabelMap.get(i)},this.nodes=function(){return Array.from(e.nodesLabelMap.keys())},this.sources=function(){return e.nodes().filter(function(i){var a;return!(!((a=e.inEdgesMap.get(i))===null||a===void 0)&&a.size)})},this.sinks=function(){return e.nodes().filter(function(i){var a;return!(!((a=e.outEdgesMap.get(i))===null||a===void 0)&&a.size)})},this.setNodes=function(i,a){return i.map(function(o){return e.setNode(o,a)}),e},this.hasNode=function(i){return e.nodesLabelMap.has(i)},this.checkCompound=function(){if(!e.isCompound())throw new Error("Cannot construct parent-children relations in a non-compound graph")},this.parent=function(i){if(e.isCompound()){var a,o=(a=e.parentMap)===null||a===void 0?void 0:a.get(i);if(o!==e.GRAPH_NODE)return o}},this.removeFromParentsChildList=function(i){var a=e.parentMap.get(i);e.childrenMap.get(a).delete(i)},this.setParent=function(i,a){var o,s;e.checkCompound();for(var l=a===void 0?e.GRAPH_NODE:a,u=e.parent(l);u;){if(i===u)throw new Error("Setting "+a+" as parent of "+i+" would create a cycle");u=e.parent(u)}a&&e.setNode(a),e.setNode(i),e.removeFromParentsChildList(i),(o=e.parentMap)===null||o===void 0||o.set(i,l);var h=e.childrenMap.get(l);return h.set(i,!0),(s=e.childrenMap)===null||s===void 0||s.set(l,h),e},this.children=function(i){var a=i===void 0?e.GRAPH_NODE:i;if(e.isCompound()){var o,s=(o=e.childrenMap)===null||o===void 0?void 0:o.get(a);return s?Array.from(s.keys()):void 0}if(a===e.GRAPH_NODE)return e.nodes();if(i&&e.hasNode(i))return[]},this.predecessors=function(i){var a=e.predecessorsMap.get(i);return a?Array.from(a.keys()):void 0},this.successors=function(i){var a=e.successorsMap.get(i);return a?Array.from(a.keys()):void 0},this.neighbors=function(i){var a;if(!!e.hasNode(i))return Array.from(new Set((a=e.predecessors(i))===null||a===void 0?void 0:a.concat(e.successors(i))))},this.isLeaf=function(i){var a;if(e.isDirected()){var o;return!(!((o=e.successors(i))===null||o===void 0)&&o.length)}return!(!((a=e.neighbors(i))===null||a===void 0)&&a.length)},this.filterNodes=function(i){var a=e.directed,o=e.multigraph,s=e.compound,l=new n({directed:a,multigraph:o,compound:s});if(l.setGraph(e.graph()),e.nodes().forEach(function(h){i(h)&&l.setNode(h,e.node(h))}),e.edges().forEach(function(h){l.hasNode(h.v)&&l.hasNode(h.w)&&l.setEdgeObj(h,e.edge(h))}),s){var u=function(c){for(var f=e.parent(c);f!==void 0&&!l.hasNode(f);)f=e.parent(f);return f};l.nodes().forEach(function(h){l.setParent(h,u(h))})}return l},this.setDefaultEdgeLabel=function(i){return Dwe(i)?e.defaultEdgeLabelFn=i:e.defaultEdgeLabelFn=function(){return i},e},this.edgeCount=function(){return e.edgeCountNum},this.setEdgeObj=function(i,a){return e.setEdge(i.v,i.w,a,i.name)},this.setPath=function(i,a){return i.reduce(function(o,s){return e.setEdge(o,s,a),s}),e},this.edgeFromArgs=function(i,a,o){return e.edge({v:i,w:a,name:o})},this.edge=function(i){return e.edgesLabelsMap.get(tY(e.isDirected(),i))},this.hasEdge=function(i,a,o){return e.edgesLabelsMap.has(tY(e.isDirected(),{v:i,w:a,name:o}))},this.removeEdgeObj=function(i){var a=i.v,o=i.w,s=i.name;return e.removeEdge(a,o,s)},this.edges=function(){return Array.from(e.edgesMap.values())},this.inEdges=function(i,a){var o=e.inEdgesMap.get(i);if(o)return Array.from(o.values()).filter(function(s){return!a||s.v===a})},this.outEdges=function(i,a){var o=e.outEdgesMap.get(i);if(o)return Array.from(o.values()).filter(function(s){return!a||s.w===a})},this.nodeEdges=function(i,a){var o;if(!!e.hasNode(i))return(o=e.inEdges(i,a))===null||o===void 0?void 0:o.concat(e.outEdges(i,a))},this.toJSON=function(){return nZt(e)},this.nodeInDegree=function(i){var a=e.inEdgesMap.get(i);return a?a.size:0},this.nodeOutDegree=function(i){var a=e.outEdgesMap.get(i);return a?a.size:0},this.nodeDegree=function(i){return e.nodeInDegree(i)+e.nodeOutDegree(i)},this.source=function(i){return i.v},this.target=function(i){return i.w};var r=kwe(kwe({},lZt),t);this.compound=r.compound,this.directed=r.directed,this.multigraph=r.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map)}return sZt(n,[{key:"setNode",value:function(t,r){var i=this.nodesLabelMap,a=this.defaultNodeLabelFn,o=this.isCompound,s=this.parentMap,l=this.childrenMap,u=this.inEdgesMap,h=this.outEdgesMap,c=this.predecessorsMap,f=this.successorsMap;if(i.has(t))return r!==void 0&&i.set(t,r),this;if(i.set(t,r||a(t)),o()){var d;s==null||s.set(t,this.GRAPH_NODE),l==null||l.set(t,new Map),l!=null&&l.has(this.GRAPH_NODE)||l==null||l.set(this.GRAPH_NODE,new Map),l==null||(d=l.get(this.GRAPH_NODE))===null||d===void 0||d.set(t,!0)}return[u,h,c,f].forEach(function(v){return v.set(t,new Map)}),this.nodeCountNum+=1,this}},{key:"removeNode",value:function(t){var r=this;if(this.hasNode(t)){var i=function(g){r.removeEdge(g.v,g.w,g.name)},a=this.inEdgesMap,o=this.outEdgesMap,s=this.predecessorsMap,l=this.successorsMap,u=this.nodesLabelMap;if(this.isCompound()){var h,c,f;this.removeFromParentsChildList(t),(h=this.parentMap)===null||h===void 0||h.delete(t),(c=this.children(t))===null||c===void 0||c.forEach(function(p){return r.setParent(p)}),(f=this.childrenMap)===null||f===void 0||f.delete(t)}var d=a.get(t),v=o.get(t);Array.from(d.values()).forEach(function(p){return i(p)}),Array.from(v.values()).forEach(function(p){return i(p)}),u.delete(t),a.delete(t),o.delete(t),s.delete(t),l.delete(t),this.nodeCountNum-=1}return this}},{key:"setEdge",value:function(t,r,i,a){var o,s,l=Rwe(this.isDirected(),t,r,a),u=tY(this.isDirected(),l),h=l.v,c=l.w;if(this.edgesLabelsMap.has(u))return this.edgesLabelsMap.set(u,i),this;if(a!==void 0&&!this.isMultigraph())throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(h),this.setNode(c),this.edgesLabelsMap.set(u,i||this.defaultEdgeLabelFn(h,c,a)),Object.freeze(l),this.edgesMap.set(u,l);var f=this.predecessorsMap.get(c),d=this.successorsMap.get(h);return Pwe(f,h),Pwe(d,c),(o=this.inEdgesMap.get(c))===null||o===void 0||o.set(u,l),(s=this.outEdgesMap.get(h))===null||s===void 0||s.set(u,l),this.edgeCountNum+=1,this}},{key:"removeEdge",value:function(t,r,i){var a=VVe(this.isDirected(),t,r,i),o=this.edgesMap.get(a);if(o){var s=Rwe(this.isDirected(),t,r,i),l=s.v,u=s.w;this.edgesLabelsMap.delete(a),this.edgesMap.delete(a);var h=this.predecessorsMap.get(u),c=this.successorsMap.get(l);Owe(h,l),Owe(c,u),this.inEdgesMap.get(u).delete(a),this.outEdgesMap.get(l).delete(a),this.edgeCountNum-=1}return this}}]),n}();oT.fromJSON=iZt;function Tee(n){return Tee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tee(n)}function uZt(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Bwe(n,e){for(var t=0;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function D1(n){return D1=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},D1(n)}var yZt=function(n){fZt(t,n);var e=dZt(t);function t(){var r;uZt(this,t);for(var i=arguments.length,a=new Array(i),o=0;o-1&&this.eventPool[i].splice(o,1)}}},{key:"emitEvent",value:function(i){for(var a=arguments.length,o=new Array(a>1?a-1:0),s=1;s>1,((s=r[a])===null||s===void 0?void 0:s.priority)e.arr[i].priority)throw new Error("New priority is greater than current priority.Key: ".concat(t," Old: + ").concat(e.arr[i].priority," New: ").concat(r));e.arr[i].priority=r,e.innerDecrease(i)}}),xZt=function(e,t){var r=new oT,i=new Map,a=new $Ve,o;function s(h){var c=h.v===o?h.w:h.v,f=a.priority(c);if(f!==void 0){var d=t(h);d0;){var u;if(o=a.removeMin(),i.has(o))r.setEdge(o,i.get(o));else{if(l)throw new Error("Input graph is not connected: "+e.graph());l=!0}(u=e.nodeEdges(o))===null||u===void 0||u.forEach(s)}return r},SZt=function(e){var t=new Set,r=[],i=e.nodes();return i.forEach(function(a){for(var o=[],s=[a];s.length>0;){var l=s.pop();if(!t.has(l)){var u,h;t.add(l),o.push(l),(u=e.successors(l))===null||u===void 0||u.forEach(function(c){return s.push(c)}),(h=e.predecessors(l))===null||h===void 0||h.forEach(function(c){return s.push(c)})}}o.length&&r.push(o)}),r},wZt=function n(e,t,r,i,a,o){i.includes(t)||(i.push(t),r||o.push(t),a(t).forEach(function(s){return n(e,s,r,i,a,o)}),r&&o.push(t))},$se=function(e,t,r){var i=Array.isArray(t)?t:[t],a=function(u){return e.isDirected()?e.successors(u):e.neighbors(u)},o=[],s=[];return i.forEach(function(l){if(e.hasNode(l))wZt(e,l,r==="post",s,a,o);else throw new Error("Graph does not have node: "+l)}),o};function bZt(n,e){return AZt(n)||CZt(n,e)||TZt(n,e)||EZt()}function EZt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TZt(n,e){if(!!n){if(typeof n=="string")return zwe(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return zwe(n,e)}}function zwe(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t0&&(s=o.removeMin(),l=a.get(s),!(l&&l.distance===Number.POSITIVE_INFINITY));)i(s).forEach(u);var h={};return Array.from(a.entries()).forEach(function(c){var f=bZt(c,2),d=f[0],v=f[1];return h[String(d)]=v,h}),h},LZt=function(e,t,r){var i={};return e.nodes().forEach(function(a){return i[String(a)]=WVe(e,a,t,r),i}),i},HVe=function(e){var t=0,r=[],i=new Map,a=[];function o(s){var l,u={onStack:!0,lowlink:t,index:t};if(i.set(s,u),t+=1,r.push(s),(l=e.successors(s))===null||l===void 0||l.forEach(function(d){var v;if(i.has(d)){if(!((v=i.get(d))===null||v===void 0)&&v.onStack){var g=i.get(d);u.lowlink=Math.min(u.lowlink,g.index)}}else{o(d);var p=i.get(d);u.lowlink=Math.min(u.lowlink,p.lowlink)}}),u.lowlink===u.index){var h=[],c;do{c=r.pop();var f=i.get(c);f.onStack=!1,h.push(c)}while(s!==c);a.push(h)}}return e.nodes().forEach(function(s){i.has(s)||o(s)}),a},PZt=function(e){return HVe(e).filter(function(t){return t.length>1||t.length===1&&e.hasEdge(t[0],t[0])})};function Aee(n){return Aee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Aee(n)}function Uwe(n,e){for(var t=0;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function BZt(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function KD(n,e){return KD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},KD(n,e)}function JD(n){return JD=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},JD(n)}var Iee=function(n){DZt(t,n);var e=NZt(t);function t(){return RZt(this,t),e.apply(this,arguments)}return OZt(t)}(Mee(Error));function XVe(n){var e=new Set,t=new Set,r=[];function i(a){if(t.has(a))throw new Iee;if(!e.has(a)){var o;t.add(a),e.add(a),(o=n.predecessors(a))===null||o===void 0||o.forEach(i),t.delete(a),r.push(a)}}if(n.sinks().forEach(i),e.size!==n.nodeCount())throw new Iee;return r}var GZt=function(e){try{XVe(e)}catch(t){if(t instanceof Iee)return!1;throw t}return!0},zZt=function(e,t){return $se(e,t,"post")},UZt=function(e,t){return $se(e,t,"pre")},VZt=function(){return 1};function $Zt(n,e,t){return WZt(n,e||VZt,t||function(r){return n.outEdges(r)})}function WZt(n,e,t){var r={},i=n.nodes();return i.forEach(function(a){var o=String(a);r[o]={},r[o][o]={distance:0},i.forEach(function(s){a!==s&&(r[o][String(s)]={distance:Number.POSITIVE_INFINITY})}),t(a).forEach(function(s){var l=s.v===a?s.w:s.v,u=e(s);r[o][String(l)]={distance:u,predecessor:a}})}),i.forEach(function(a){var o=String(a),s=r[o];i.forEach(function(l){var u=String(l),h=r[u];i.forEach(function(c){var f=String(c),d=h[o],v=s[f],p=h[f],g=d.distance+v.distance;gn.length)&&(e=n.length);for(var t=0,r=new Array(e);t0;--s)if(o=e[s].dequeue(),o){r=r.concat(rY(n,e,t,o,!0));break}}}return r},rY=function(n,e,t,r,i){var a,o,s=[];return(a=n.inEdges(r.v))===null||a===void 0||a.forEach(function(l){var u=n.edge(l),h=n.node(l.v);i&&s.push({v:l.v,w:l.w,in:0,out:0}),h.out===void 0&&(h.out=0),h.out-=u,Lee(e,t,h)}),(o=n.outEdges(r.v))===null||o===void 0||o.forEach(function(l){var u=n.edge(l),h=l.w,c=n.node(h);c.in===void 0&&(c.in=0),c.in-=u,Lee(e,t,c)}),n.removeNode(r.v),i?s:void 0},yKt=function(n,e){var t=new dKt,r=0,i=0;n.nodes().forEach(function(u){t.setNode(u,{v:u,in:0,out:0})}),n.edges().forEach(function(u){var h=t.edge(u)||0,c=(e==null?void 0:e(u))||1,f=h+c;t.setEdge(u.v,u.w,f),i=Math.max(i,t.node(u.v).out+=c),r=Math.max(r,t.node(u.w).in+=c)});for(var a=[],o=i+r+3,s=0;sMath.abs(E)*A?(T<0&&(A=-A),M=A*E/T,I=A):(E<0&&(C=-C),M=C,I=C*T/E),{x:w+M,y:b+I}};n.intersectRect=h;var c=function(x){for(var S=[],w=(0,n.maxRank)(x)+1,b=0;bS)&&(S=E)}),S||(S=0),S};n.maxRank=p;var g=function(x,S){var w={lhs:[],rhs:[]};return x==null||x.forEach(function(b){S(b)?w.lhs.push(b):w.rhs.push(b)}),w};n.partition=g;var m=function(x,S){var w=Date.now();try{return S()}finally{console.log("".concat(x," time: ").concat(Date.now()-w,"ms"))}};n.time=m;var y=function(x,S){return S()};n.notime=y;var _=function(x,S){return x.reduce(function(w,b){var E=S(w),T=S(b);return E>T?b:w})};n.minBy=_})(Nv);Object.defineProperty(Hse,"__esModule",{value:!0});var CKt=Nv,AKt=function(n){n.graph().dummyChains=[],n.edges().forEach(function(e){return MKt(n,e)})},MKt=function(n,e){var t=e.v,r=n.node(t).rank,i=e.w,a=n.node(i).rank,o=e.name,s=n.edge(e),l=s.labelRank;if(a!==r+1){n.removeEdgeObj(e);var u=n.graph(),h,c,f;for(f=0,++r;rT.lim&&(C=T,A=!0);var M=x.edges().filter(function(I){return A===y(_,_.node(I.v),C)&&A!==y(_,_.node(I.w),C)});return(0,r.minBy)(M,function(I){return(0,t.slack)(x,I)})};n.enterEdge=v;var p=function(_,x,S,w){var b=S.v,E=S.w;_.removeEdge(b,E),_.setEdge(w.v,w.w,{}),(0,n.initLowLimValues)(_),(0,n.initCutValues)(_,x),g(_,x)};n.exchangeEdges=p;var g=function(_,x){var S=_.nodes().find(function(b){var E;return!(!((E=x.node(b))===null||E===void 0)&&E.parent)}),w=a(_,S);w=w==null?void 0:w.slice(1),w==null||w.forEach(function(b){var E=_.node(b).parent,T=x.edgeFromArgs(b,E),C=!1;T||(T=x.edgeFromArgs(E,b),C=!0),x.node(b).rank=x.node(E).rank+(C?T.minlen:-T.minlen)})},m=function(_,x,S){return _.hasEdge(x,S)},y=function(_,x,S){return S.low<=x.lim&&x.lim<=S.lim};n.default=s})(s$e);var RKt=at&&at.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(jse,"__esModule",{value:!0});var l$e=c0,DKt=ZS,NKt=RKt(s$e),kKt=function(n){switch(n.graph().ranker){case"network-simplex":BKt(n);break;case"tight-tree":$we(n);break;case"longest-path":FKt(n);break;default:$we(n)}},FKt=l$e.longestPath,$we=function(n){(0,l$e.longestPathWithLayer)(n),(0,DKt.feasibleTreeWithLayer)(n)},BKt=function(n){(0,NKt.default)(n)};jse.default=kKt;var Xse={};Object.defineProperty(Xse,"__esModule",{value:!0});var GKt=function(n){var e,t={},r=0,i=function(a){var o,s=r;(o=n.children(a))===null||o===void 0||o.forEach(i),t[a]={low:s,lim:r++}};return(e=n.children())===null||e===void 0||e.forEach(i),t},zKt=function(n,e,t,r){var i=[],a=[],o=Math.min(e[t].low,e[r].low),s=Math.max(e[t].lim,e[r].lim),l,u;l=t;do l=n.parent(l),i.push(l);while(l&&(e[l].low>o||s>e[l].lim));for(u=l,l=r;l&&l!==u;)a.push(l),l=n.parent(l);return{lca:u,path:i.concat(a.reverse())}},UKt=function(n){var e,t=GKt(n);(e=n.graph().dummyChains)===null||e===void 0||e.forEach(function(r){var i,a,o=r,s=n.node(o),l=s.edgeObj;if(!!l)for(var u=zKt(n,t,l.v,l.w),h=u.path,c=u.lca,f=0,d=h[f],v=!0;o!==l.w;){if(s=n.node(o),v){for(;d!==c&&((i=n.node(d))===null||i===void 0?void 0:i.maxRank)-1:!1};const I9=QKt;var eJt=function(n,e){if(!Td(n))return n;for(var t=[],r=0;r-1;)yJt.call(n,a,1);return n};const xJt=_Jt;var SJt=Array.prototype.splice,wJt=function(e,t){if(!Td(e))return[];for(var r=e?t.length:0,i=r-1;r--;){var a=void 0,o=t[r];(r===i||o!==a)&&(a=o,SJt.call(e,o,1))}return e};const x$e=wJt;var bJt=function(n,e,t){if(!ju(n)&&!OM(n))return n;var r=t;return PM(n,function(i,a){r=e(r,i,a)}),r};const S$e=bJt;var EJt=function(n,e){var t=[];if(!Td(n))return t;for(var r=-1,i=[],a=n.length;++ra[s])return 1;if(i[s]t?t:n};const HJt=WJt;var jJt=function(n,e){var t=e.toString(),r=t.indexOf(".");if(r===-1)return Math.round(n);var i=t.substr(r+1).length;return i>20&&(i=20),parseFloat(n.toFixed(i))};const XJt=jJt;function U_(n){return typeof n=="number"}function YJt(n){return U_(n)&&n%1!==0}function qJt(n){return U_(n)&&n%2===0}function ZJt(n){return U_(n)&&n%1===0}function KJt(n){return U_(n)&&n<0}var JJt=1e-5;function QJt(n,e,t){return t===void 0&&(t=JJt),n===e||Math.abs(n-e)0};const rQt=tQt,nQt=function(n,e){if(!!ju(n)){for(var t,r=-1/0,i=0;ir&&(t=a,r=o)}return t}},iQt=function(n,e){if(!!ju(n)){for(var t,r=1/0,i=0;ii&&(r=t,o(1),++e),t[s]=l}function o(s){e=0,t=Object.create(null),s||(r=Object.create(null))}return o(),{clear:o,has:function(s){return t[s]!==void 0||r[s]!==void 0},get:function(s){var l=t[s];if(l!==void 0)return l;if((l=r[s])!==void 0)return a(s,l),l},set:function(s,l){t[s]!==void 0?t[s]=l:a(s,l)}}}var sY=new Map;function M$e(n,e,t){t===void 0&&(t=128);var r=function(){for(var i=[],a=0;ae?(r&&(clearTimeout(r),r=null),s=h,o=n.apply(i,a),r||(i=a=null)):!r&&t.trailing!==!1&&(r=setTimeout(l,c)),o};return u.cancel=function(){clearTimeout(r),s=0,r=i=a=null},u},yer=function(n){return Td(n)?Array.prototype.slice.call(n):[]};var O5={};const mer=function(n){return n=n||"g",O5[n]?O5[n]+=1:O5[n]=1,n+O5[n]},_er=function(){},xer=function(n){return n};function Ser(n){return Tw(n)?0:Td(n)?n.length:Object.keys(n).length}var wer=function(){function n(){this.map={}}return n.prototype.has=function(e){return this.map[e]!==void 0},n.prototype.get=function(e,t){var r=this.map[e];return r===void 0?t:r},n.prototype.set=function(e,t){this.map[e]=t},n.prototype.clear=function(){this.map={}},n.prototype.delete=function(e){delete this.map[e]},n.prototype.size=function(){return Object.keys(this.map).length},n}();const ber=wer;var Eer=/rgba?\(([\s.,0-9]+)\)/;function Ter(){var n=document.getElementById("antv-web-colour-picker");return n||(n=document.createElement("i"),n.id="antv-web-colour-picker",n.title="Web Colour Picker",n.style.display="none",document.body.appendChild(n),n)}function Cer(n){if(n[0]==="#"&&n.length===7)return n;var e=Ter();e.style.color=n;var t=document.defaultView.getComputedStyle(e,"").getPropertyValue("color"),r=Eer.exec(t),i=r[1].split(/\s*,\s*/).map(function(a){return Number(a)});return t=f$e(i),t}var P$e=M$e(Cer,function(n){return n},256);function lY(n,e,t,r){return n[r]+(e[r]-n[r])*t}function Aer(n,e){var t=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=n.length-1,i=Math.floor(r*t),a=r*t-i,o=n[i],s=i===r?o:n[i+1];return f$e([lY(o,s,a,0),lY(o,s,a,1),lY(o,s,a,2)])}function Mer(n){var e=typeof n=="string"?n.split("-"):n,t=e.map(function(r){return c$e(r.indexOf("#")===-1?P$e(r):r)});return function(r){return Aer(t,r)}}var Ier=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Ler=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Per=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function Oer(n){return/^[r,R,L,l]{1}[\s]*\(/.test(n)}function Rer(n){if(Oer(n)){var e,t=void 0;if(n[0]==="l"){var r=Ier.exec(n),i=+r[1]+90;t=r[2],e="linear-gradient(".concat(i,"deg, ")}else if(n[0]==="r"){e="radial-gradient(";var r=Ler.exec(n);t=r[4]}var a=t.match(Per);return a.forEach(function(o,s){var l=o.split(":");e+="".concat(l[1]," ").concat(Number(l[0])*100,"%"),s!==a.length-1&&(e+=", ")}),e+=")",e}return n}function Der(n,e,t){var r=[0,0,0,0,0,0,0,0,0];return Boe(r,t),Om(n,r,e)}function Ner(n,e,t){var r=[0,0,0,0,0,0,0,0,0];return Goe(r,t),Om(n,r,e)}function ker(n,e,t){var r=[0,0,0,0,0,0,0,0,0];return zoe(r,t),Om(n,r,e)}function Fer(n,e,t){return Om(n,t,e)}function Ber(n,e){for(var t=n?[].concat(n):[1,0,0,0,1,0,0,0,1],r=0,i=e.length;r=0;return t?i?Math.PI*2-r:r:i?r:Math.PI*2-r}function zer(n,e,t){return t?(n[0]=e[1],n[1]=-1*e[0]):(n[0]=-1*e[1],n[1]=e[0]),n}function Uer(n,e){if(e==="off")return[].concat(n);var t=typeof e=="number"&&e>=1?Math.pow(10,e):1;return n.map(function(r){var i=r.slice(1).map(Number).map(function(a){return e?Math.round(a*t)/t:Math.round(a)});return[r[0]].concat(i)})}function Ver(n,e){return e===void 0&&(e="off"),Uer(n,e).map(function(t){return t[0]+t.slice(1).join(" ")}).join("")}var R$e={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function $er(n,e,t){if(n[t].length>7){n[t].shift();for(var r=n[t],i=t;r.length;)e[t]="A",n.splice(i+=1,0,["C"].concat(r.splice(0,6)));n.splice(t,1)}}var _R={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function D$e(n){return Array.isArray(n)&&n.every(function(e){var t=e[0].toLowerCase();return _R[t]===e.length-1&&"achlmqstvz".includes(t)})}function N$e(n){return D$e(n)&&n.every(function(e){var t=e[0];return t===t.toUpperCase()})}function k$e(n){return N$e(n)&&n.every(function(e){var t=e[0];return"ACLMQZ".includes(t)})}function Ywe(n){for(var e=n.pathValue[n.segmentStart],t=e.toLowerCase(),r=n.data;r.length>=_R[t]&&(t==="m"&&r.length>2?(n.segments.push([e].concat(r.splice(0,2))),t="l",e=e==="m"?"l":"L"):n.segments.push([e].concat(r.splice(0,_R[t]))),!!_R[t]););}function Wer(n){var e=n.index,t=n.pathValue,r=t.charCodeAt(e);if(r===48){n.param=0,n.index+=1;return}if(r===49){n.param=1,n.index+=1;return}n.err='[path-util]: invalid Arc flag "'.concat(t[e],'", expecting 0 or 1 at index ').concat(e)}function Her(n){return n>=48&&n<=57||n===43||n===45||n===46}function dC(n){return n>=48&&n<=57}function jer(n){var e=n.max,t=n.pathValue,r=n.index,i=r,a=!1,o=!1,s=!1,l=!1,u;if(i>=e){n.err="[path-util]: Invalid path value at index ".concat(i,', "pathValue" is missing param');return}if(u=t.charCodeAt(i),(u===43||u===45)&&(i+=1,u=t.charCodeAt(i)),!dC(u)&&u!==46){n.err="[path-util]: Invalid path value at index ".concat(i,', "').concat(t[i],'" is not a number');return}if(u!==46){if(a=u===48,i+=1,u=t.charCodeAt(i),a&&i=5760&&e.includes(n)}function KB(n){for(var e=n.pathValue,t=n.max;n.index0;o-=1){if(qer(i)&&(o===3||o===4)?Wer(n):jer(n),n.err.length)return;n.data.push(n.param),KB(n),n.index=n.max||!Her(t.charCodeAt(n.index)))break}Ywe(n)}var Ker=function(){function n(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return n}();function uV(n){if(D$e(n))return[].concat(n);var e=new Ker(n);for(KB(e);e.index1&&(C=Math.sqrt(C),f*=C,d*=C);var A=f*f,M=d*d,I=(a===o?-1:1)*Math.sqrt(Math.abs((A*M-A*T*T-M*E*E)/(A*T*T+M*E*E)));w=I*f*T/d+(h+v)/2,b=I*-d*E/f+(c+p)/2,x=Math.asin(((c-b)/d*Math.pow(10,9)>>0)/Math.pow(10,9)),S=Math.asin(((p-b)/d*Math.pow(10,9)>>0)/Math.pow(10,9)),x=hS&&(x-=Math.PI*2),!o&&S>x&&(S-=Math.PI*2)}var R=S-x;if(Math.abs(R)>g){var k=S,D=v,G=p;S=x+g*(o&&S>x?1:-1),v=w+f*Math.cos(S),p=b+d*Math.sin(S),y=Qse(v,p,f,d,i,0,o,D,G,[S,k,w,b])}R=S-x;var V=Math.cos(x),z=Math.sin(x),j=Math.cos(S),Z=Math.sin(S),Y=Math.tan(R/4),le=4/3*f*Y,H=4/3*d*Y,Q=[h,c],ie=[h+le*z,c-H*V],oe=[v+le*Z,p-H*j],se=[v,p];if(ie[0]=2*Q[0]-ie[0],ie[1]=2*Q[1]-ie[1],u)return ie.concat(oe,se,y);y=ie.concat(oe,se,y);for(var me=[],Ce=0,Le=y.length;Ce=a)o={x:t,y:r};else{var s=Gx([n,e],[t,r],i/a),l=s[0],u=s[1];o={x:l,y:u}}return{length:a,point:o,min:{x:Math.min(n,t),y:Math.min(e,r)},max:{x:Math.max(n,t),y:Math.max(e,r)}}}function Zwe(n,e){var t=n.x,r=n.y,i=e.x,a=e.y,o=t*i+r*a,s=Math.sqrt((Math.pow(t,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(a,2))),l=t*a-r*i<0?-1:1,u=l*Math.acos(o/s);return u}function atr(n,e,t,r,i,a,o,s,l,u){var h=Math.abs,c=Math.sin,f=Math.cos,d=Math.sqrt,v=Math.PI,p=h(t),g=h(r),m=(i%360+360)%360,y=m*(v/180);if(n===s&&e===l)return{x:n,y:e};if(p===0||g===0)return Dee(n,e,s,l,u).point;var _=(n-s)/2,x=(e-l)/2,S={x:f(y)*_+c(y)*x,y:-c(y)*_+f(y)*x},w=Math.pow(S.x,2)/Math.pow(p,2)+Math.pow(S.y,2)/Math.pow(g,2);w>1&&(p*=d(w),g*=d(w));var b=Math.pow(p,2)*Math.pow(g,2)-Math.pow(p,2)*Math.pow(S.y,2)-Math.pow(g,2)*Math.pow(S.x,2),E=Math.pow(p,2)*Math.pow(S.y,2)+Math.pow(g,2)*Math.pow(S.x,2),T=b/E;T=T<0?0:T;var C=(a!==o?1:-1)*d(T),A={x:C*(p*S.y/g),y:C*(-(g*S.x)/p)},M={x:f(y)*A.x-c(y)*A.y+(n+s)/2,y:c(y)*A.x+f(y)*A.y+(e+l)/2},I={x:(S.x-A.x)/p,y:(S.y-A.y)/g},R=Zwe({x:1,y:0},I),k={x:(-S.x-A.x)/p,y:(-S.y-A.y)/g},D=Zwe(I,k);!o&&D>0?D-=2*v:o&&D<0&&(D+=2*v),D%=2*v;var G=R+D*u,V=p*f(G),z=g*c(G),j={x:f(y)*V-c(y)*z+M.x,y:c(y)*V+f(y)*z+M.y};return j}function otr(n,e,t,r,i,a,o,s,l,u,h){var c,f=h.bbox,d=f===void 0?!0:f,v=h.length,p=v===void 0?!0:v,g=h.sampleSize,m=g===void 0?30:g,y=typeof u=="number",_=n,x=e,S=0,w=[_,x,S],b=[_,x],E=0,T={x:0,y:0},C=[{x:_,y:x}];y&&u<=0&&(T={x:_,y:x});for(var A=0;A<=m;A+=1){if(E=A/m,c=atr(n,e,t,r,i,a,o,s,l,E),_=c.x,x=c.y,d&&C.push({x:_,y:x}),p&&(S+=ZI(b,[_,x])),b=[_,x],y&&S>=u&&u>w[2]){var M=(S-u)/(S-w[2]);T={x:b[0]*(1-M)+w[0]*M,y:b[1]*(1-M)+w[1]*M}}w=[_,x,S]}return y&&u>=S&&(T={x:s,y:l}),{length:S,point:T,min:{x:Math.min.apply(null,C.map(function(I){return I.x})),y:Math.min.apply(null,C.map(function(I){return I.y}))},max:{x:Math.max.apply(null,C.map(function(I){return I.x})),y:Math.max.apply(null,C.map(function(I){return I.y}))}}}function str(n,e,t,r,i,a,o,s,l){var u=1-l;return{x:Math.pow(u,3)*n+3*Math.pow(u,2)*l*t+3*u*Math.pow(l,2)*i+Math.pow(l,3)*o,y:Math.pow(u,3)*e+3*Math.pow(u,2)*l*r+3*u*Math.pow(l,2)*a+Math.pow(l,3)*s}}function G$e(n,e,t,r,i,a,o,s,l,u){var h,c=u.bbox,f=c===void 0?!0:c,d=u.length,v=d===void 0?!0:d,p=u.sampleSize,g=p===void 0?10:p,m=typeof l=="number",y=n,_=e,x=0,S=[y,_,x],w=[y,_],b=0,E={x:0,y:0},T=[{x:y,y:_}];m&&l<=0&&(E={x:y,y:_});for(var C=0;C<=g;C+=1){if(b=C/g,h=str(n,e,t,r,i,a,o,s,b),y=h.x,_=h.y,f&&T.push({x:y,y:_}),v&&(x+=ZI(w,[y,_])),w=[y,_],m&&x>=l&&l>S[2]){var A=(x-l)/(x-S[2]);E={x:w[0]*(1-A)+S[0]*A,y:w[1]*(1-A)+S[1]*A}}S=[y,_,x]}return m&&l>=x&&(E={x:o,y:s}),{length:x,point:E,min:{x:Math.min.apply(null,T.map(function(M){return M.x})),y:Math.min.apply(null,T.map(function(M){return M.y}))},max:{x:Math.max.apply(null,T.map(function(M){return M.x})),y:Math.max.apply(null,T.map(function(M){return M.y}))}}}function ltr(n,e,t,r,i,a,o){var s=1-o;return{x:Math.pow(s,2)*n+2*s*o*t+Math.pow(o,2)*i,y:Math.pow(s,2)*e+2*s*o*r+Math.pow(o,2)*a}}function utr(n,e,t,r,i,a,o,s){var l,u=s.bbox,h=u===void 0?!0:u,c=s.length,f=c===void 0?!0:c,d=s.sampleSize,v=d===void 0?10:d,p=typeof o=="number",g=n,m=e,y=0,_=[g,m,y],x=[g,m],S=0,w={x:0,y:0},b=[{x:g,y:m}];p&&o<=0&&(w={x:g,y:m});for(var E=0;E<=v;E+=1){if(S=E/v,l=ltr(n,e,t,r,i,a,S),g=l.x,m=l.y,h&&b.push({x:g,y:m}),f&&(y+=ZI(x,[g,m])),x=[g,m],p&&y>=o&&o>_[2]){var T=(y-o)/(y-_[2]);w={x:x[0]*(1-T)+_[0]*T,y:x[1]*(1-T)+_[1]*T}}_=[g,m,y]}return p&&o>=y&&(w={x:i,y:a}),{length:y,point:w,min:{x:Math.min.apply(null,b.map(function(C){return C.x})),y:Math.min.apply(null,b.map(function(C){return C.y}))},max:{x:Math.max.apply(null,b.map(function(C){return C.x})),y:Math.max.apply(null,b.map(function(C){return C.y}))}}}function cV(n,e,t){for(var r,i,a,o,s,l,u=hV(n),h=typeof e=="number",c,f=[],d,v=0,p=0,g=0,m=0,y,_=[],x=[],S=0,w={x:0,y:0},b=w,E=w,T=w,C=0,A=0,M=u.length;A=e&&(T=E),x.push(b),_.push(w),C+=S,l=d!=="Z"?y.slice(-2):[g,m],v=l[0],p=l[1];return h&&e>=C&&(T={x:v,y:p}),{length:C,point:T,min:{x:Math.min.apply(null,_.map(function(I){return I.x})),y:Math.min.apply(null,_.map(function(I){return I.y}))},max:{x:Math.max.apply(null,x.map(function(I){return I.x})),y:Math.max.apply(null,x.map(function(I){return I.y}))}}}function htr(n,e){if(!n)return{x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var t=cV(n,void 0,ve(ve({},e),{length:!1})),r=t.min,i=r.x,a=r.y,o=t.max,s=o.x,l=o.y,u=s-i,h=l-a;return{width:u,height:h,x:i,y:a,x2:s,y2:l,cx:i+u/2,cy:a+h/2,cz:Math.max(u,h)+Math.min(u,h)/2}}function xR(n,e){return cV(n,void 0,ve(ve({},e),{bbox:!1,length:!0})).length}function ctr(n,e){if(!n)return{length:0,x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var t=cV(n,void 0,ve(ve({},e),{bbox:!0,length:!0})),r=t.length,i=t.min,a=i.x,o=i.y,s=t.max,l=s.x,u=s.y,h=l-a,c=u-o;return{length:r,width:h,height:c,x:a,y:o,x2:l,y2:u,cx:a+h/2,cy:o+c/2,cz:Math.max(h,c)+Math.min(h,c)/2}}function ftr(n){var e=n.length,t=e-1;return n.map(function(r,i){return n.map(function(a,o){var s=i+o,l;return o===0||n[s]&&n[s][0]==="M"?(l=n[s],["M"].concat(l.slice(-2))):(s>=e&&(s-=t),n[s])})})}function dtr(n,e){var t=n.length-1,r=[],i=0,a=0,o=ftr(n);return o.forEach(function(s,l){n.slice(1).forEach(function(u,h){a+=ZI(n[(l+h)%t].slice(-2),e[h%t].slice(-2))}),r[l]=a,a=0}),i=r.indexOf(Math.min.apply(null,r)),o[i]}function vtr(n,e,t,r,i,a,o,s){return 3*((s-e)*(t+i)-(o-n)*(r+a)+r*(n-i)-t*(e-a)+s*(i+n/3)-o*(a+e/3))/20}function z$e(n){var e=0,t=0,r=0;return B$e(n).map(function(i){var a;switch(i[0]){case"M":return e=i[1],t=i[2],0;default:var o=i.slice(1),s=o[0],l=o[1],u=o[2],h=o[3],c=o[4],f=o[5];return r=vtr(e,t,s,l,u,h,c,f),a=i.slice(-2),e=a[0],t=a[1],r}}).reduce(function(i,a){return i+a},0)}function ptr(n){return z$e(n)>=0}function JB(n,e,t){return cV(n,e,ve(ve({},t),{bbox:!1,length:!0})).point}function gtr(n,e){var t=uV(n);if(typeof t=="string")throw TypeError(t);var r=t.slice(),i=xR(r),a=r.length-1,o=0,s=0,l=t[0],u=l.slice(-2),h=u[0],c=u[1],f={x:h,y:c};if(a<=0||!e||!Number.isFinite(e))return{segment:l,index:0,length:s,point:f,lengthAtSegment:o};if(e>=i)return r=t.slice(0,-1),o=xR(r),s=i-o,{segment:t[a],index:a,length:s,lengthAtSegment:o};for(var d=[];a>0;)l=r[a],r=r.slice(0,-1),o=xR(r),s=i-o,i=o,d.push({segment:l,index:a,length:s,lengthAtSegment:o}),a-=1;return d.find(function(v){var p=v.lengthAtSegment;return p<=e})}function ytr(n,e){for(var t=uV(n),r=hV(t),i=xR(t),a=function(S){var w=S.x-e.x,b=S.y-e.y;return w*w+b*b},o=8,s,l=0,u,h=0,c=1/0,f=0;f<=i;f+=o)s=JB(r,f),l=a(s),l.5;)p=h-o,d=JB(r,p),m=a(d),g=h+o,v=JB(r,g),y=a(v),p>=0&&m=f[m],d[m]-=v?1:0,v?y.ss:[y.s]}).flat()});return p[0].length===p[1].length?p:U$e(p[0],p[1],c)}var xtr=1e-6;function uY(n){return Math.abs(n)0!=uY(s[1]-t)>0&&uY(e-(t-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(r=!r)}return r}var Jwe=function(n,e,t){return n>=e&&n<=t};function wtr(n,e,t,r){var i=.001,a={x:t.x-n.x,y:t.y-n.y},o={x:e.x-n.x,y:e.y-n.y},s={x:r.x-t.x,y:r.y-t.y},l=o.x*s.y-o.y*s.x,u=l*l,h=o.x*o.x+o.y*o.y,c=s.x*s.x+s.y*s.y,f=null;if(u>i*h*c){var d=(a.x*s.y-a.y*s.x)/l,v=(a.x*o.y-a.y*o.x)/l;Jwe(d,0,1)&&Jwe(v,0,1)&&(f={x:n.x+d*o.x,y:n.y+d*o.y})}return f}function Qwe(n){for(var e=[],t=n.length,r=0;r1){var o=n[0],s=n[t-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function btr(n,e){var t=!1;return n.forEach(function(r){if(wtr(r.from,r.to,e.from,e.to))return t=!0,!1}),t}function ebe(n){var e=n.map(function(r){return r[0]}),t=n.map(function(r){return r[1]});return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,t),maxY:Math.max.apply(null,t)}}function Etr(n,e){return!(e.minX>n.maxX||e.maxXn.maxY||e.maxY0;)c%2&&(f+=l[c+1]),c=c-1>>1,l[c]+=h.weight;u+=h.weight*f}}),u},Rtr=function(n,e){for(var t=0,r=1;r<(e==null?void 0:e.length);r+=1)t+=Otr(n,e[r-1],e[r]);return t};ele.default=Rtr;var tle={};Object.defineProperty(tle,"__esModule",{value:!0});var Dtr=z_,Ntr=function(n,e,t){var r=ktr(n),i=new Dtr.Graph({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(a){return n.node(a)});return n.nodes().forEach(function(a){var o,s=n.node(a),l=n.parent(a);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(i.setNode(a),i.setParent(a,l||r),(o=n[t](a))===null||o===void 0||o.forEach(function(u){var h=u.v===a?u.w:u.v,c=i.edgeFromArgs(h,a),f=c!==void 0?c.weight:0;i.setEdge(h,a,{weight:n.edge(u).weight+f})}),s.hasOwnProperty("minRank")&&i.setNode(a,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))}),i},ktr=function(n){for(var e;n.hasNode(e="_root".concat(Math.random())););return e};tle.default=Ntr;var rle={};Object.defineProperty(rle,"__esModule",{value:!0});var Ftr=function(n,e,t){var r={},i;t==null||t.forEach(function(a){for(var o=n.parent(a),s,l;o;){if(s=n.parent(o),s?(l=r[s],r[s]=o):(l=i,i=o),l&&l!==o){e.setEdge(l,o);return}o=s}})};rle.default=Ftr;var nle={},ile={};Object.defineProperty(ile,"__esModule",{value:!0});var Btr=function(n,e){return e.map(function(t){var r=n.inEdges(t);if(!(r!=null&&r.length))return{v:t};{var i={sum:0,weight:0};return r==null||r.forEach(function(a){var o=n.edge(a),s=n.node(a.v);i.sum+=o.weight*s.order,i.weight+=o.weight}),{v:t,barycenter:i.sum/i.weight,weight:i.weight}}})};ile.default=Btr;var ale={};Object.defineProperty(ale,"__esModule",{value:!0});var Gtr=function(n,e){var t,r,i,a={};n==null||n.forEach(function(s,l){a[s.v]={i:l,indegree:0,in:[],out:[],vs:[s.v]};var u=a[s.v];s.barycenter!==void 0&&(u.barycenter=s.barycenter,u.weight=s.weight)}),(t=e.edges())===null||t===void 0||t.forEach(function(s){var l=a[s.v],u=a[s.w];l!==void 0&&u!==void 0&&(u.indegree++,l.out.push(a[s.w]))});var o=(i=(r=Object.values(a)).filter)===null||i===void 0?void 0:i.call(r,function(s){return!s.indegree});return ztr(o)},ztr=function(n){for(var e,t,r=[],i=function(u){return function(h){h.merged||(h.barycenter===void 0||u.barycenter===void 0||h.barycenter>=u.barycenter)&&Utr(u,h)}},a=function(u){return function(h){h.in.push(u),--h.indegree===0&&n.push(h)}},o=function(){var u=n.pop();r.push(u),(e=u.in.reverse())===null||e===void 0||e.forEach(function(h){return i(u)(h)}),(t=u.out)===null||t===void 0||t.forEach(function(h){return a(u)(h)})};n!=null&&n.length;)o();var s=r.filter(function(u){return!u.merged}),l=["vs","i","barycenter","weight"];return s.map(function(u){var h={};return l==null||l.forEach(function(c){u[c]!==void 0&&(h[c]=u[c])}),h})},Utr=function(n,e){var t,r=0,i=0;n.weight&&(r+=n.barycenter*n.weight,i+=n.weight),e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),n.vs=(t=e.vs)===null||t===void 0?void 0:t.concat(n.vs),n.barycenter=r/i,n.weight=i,n.i=Math.min(e.i,n.i),e.merged=!0};ale.default=Gtr;var ole={};Object.defineProperty(ole,"__esModule",{value:!0});var Vtr=Nv,$tr=function(n,e,t,r){var i=(0,Vtr.partition)(n,function(f){var d=f.hasOwnProperty("fixorder")&&!isNaN(f.fixorder);return r?!d&&f.hasOwnProperty("barycenter"):d||f.hasOwnProperty("barycenter")}),a=i.lhs,o=i.rhs.sort(function(f,d){return-f.i- -d.i}),s=[],l=0,u=0,h=0;a==null||a.sort(Wtr(!!e,!!t)),h=tbe(s,o,h),a==null||a.forEach(function(f){var d;h+=(d=f.vs)===null||d===void 0?void 0:d.length,s.push(f.vs),l+=f.barycenter*f.weight,u+=f.weight,h=tbe(s,o,h)});var c={vs:s.flat()};return u&&(c.barycenter=l/u,c.weight=u),c},tbe=function(n,e,t){for(var r=t,i;e.length&&(i=e[e.length-1]).i<=r;)e.pop(),n==null||n.push(i.vs),r++;return r},Wtr=function(n,e){return function(t,r){if(t.fixorder!==void 0&&r.fixorder!==void 0)return t.fixorder-r.fixorder;if(t.barycenterr.barycenter)return 1;if(e&&t.order!==void 0&&r.order!==void 0){if(t.orderr.order)return 1}return n?r.i-t.i:t.i-r.i}};ole.default=$tr;var sle=at&&at.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(nle,"__esModule",{value:!0});var Htr=sle(ile),jtr=sle(ale),Xtr=sle(ole),$$e=function(n,e,t,r,i,a){var o,s,l,u,h=n.children(e),c=n.node(e),f=c?c.borderLeft:void 0,d=c?c.borderRight:void 0,v={};f&&(h=h==null?void 0:h.filter(function(x){return x!==f&&x!==d}));var p=(0,Htr.default)(n,h||[]);p==null||p.forEach(function(x){var S;if(!((S=n.children(x.v))===null||S===void 0)&&S.length){var w=$$e(n,x.v,t,r,a);v[x.v]=w,w.hasOwnProperty("barycenter")&&qtr(x,w)}});var g=(0,jtr.default)(p,t);Ytr(g,v),(o=g.filter(function(x){return x.vs.length>0}))===null||o===void 0||o.forEach(function(x){var S=n.node(x.vs[0]);S&&(x.fixorder=S.fixorder,x.order=S.order)});var m=(0,Xtr.default)(g,r,i,a);if(f&&(m.vs=[f,m.vs,d].flat(),!((s=n.predecessors(f))===null||s===void 0)&&s.length)){var y=n.node(((l=n.predecessors(f))===null||l===void 0?void 0:l[0])||""),_=n.node(((u=n.predecessors(d))===null||u===void 0?void 0:u[0])||"");m.hasOwnProperty("barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+y.order+_.order)/(m.weight+2),m.weight+=2}return m},Ytr=function(n,e){n==null||n.forEach(function(t){var r,i=(r=t.vs)===null||r===void 0?void 0:r.map(function(a){return e[a]?e[a].vs:a});t.vs=i.flat()})},qtr=function(n,e){n.barycenter!==void 0?(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight):(n.barycenter=e.barycenter,n.weight=e.weight)};nle.default=$$e;var rk=at&&at.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Kse,"__esModule",{value:!0});var rbe=rk(Jse),nbe=rk(ele),Ztr=rk(tle),Ktr=rk(rle),Jtr=rk(nle),ibe=Dl(),Qtr=z_,hY=Nv,err=function(n,e){for(var t=(0,hY.maxRank)(n),r=[],i=[],a=1;a-1;a--)i.push(a);var o=abe(n,r,"inEdges"),s=abe(n,i,"outEdges"),l=(0,rbe.default)(n);cY(n,l);for(var u=Number.POSITIVE_INFINITY,h,a=0,c=0;c<4;++a,++c){obe(a%2?o:s,a%4>=2,!1,e),l=(0,hY.buildLayerMatrix)(n);var f=(0,nbe.default)(n,l);f=2,!0,e),l=(0,hY.buildLayerMatrix)(n);var f=(0,nbe.default)(n,l);fk)&&(0,n.addConflict)(w,j,V)}))}function E(A){return JSON.stringify(A.slice(1))}function T(A,M){var I=E(A);M.get(I)||(b.apply(void 0,A),M.set(I,!0))}var C=function(A,M){var I=-1,R,k=0,D=new Map;return M==null||M.forEach(function(G,V){var z;if(((z=x.node(G))===null||z===void 0?void 0:z.dummy)==="border"){var j=x.predecessors(G)||[];j.length&&(R=x.node(j[0]).order,T([M,k,V,I,R],D),k=V,I=R)}T([M,k,M.length,R,A.length],D)}),M};return S!=null&&S.length&&S.reduce(C),w};n.findType2Conflicts=s;var l=function(x,S){var w,b;if(!((w=x.node(S))===null||w===void 0)&&w.dummy)return(b=x.predecessors(S))===null||b===void 0?void 0:b.find(function(E){return x.node(E).dummy})};n.findOtherInnerSegmentNode=l;var u=function(x,S,w){var b=S,E=w;if(b>E){var T=b;b=E,E=T}var C=x[b];C||(x[b]=C={}),C[E]=!0};n.addConflict=u;var h=function(x,S,w){var b=S,E=w;if(b>E){var T=S;b=E,E=T}return!!x[b]};n.hasConflict=h;var c=function(x,S,w,b){var E={},T={},C={};return S==null||S.forEach(function(A){A==null||A.forEach(function(M,I){E[M]=M,T[M]=M,C[M]=I})}),S==null||S.forEach(function(A){var M=-1;A==null||A.forEach(function(I){var R=b(I);if(R.length){R=R.sort(function(z,j){return C[z]-C[j]});for(var k=(R.length-1)/2,D=Math.floor(k),G=Math.ceil(k);D<=G;++D){var V=R[D];T[I]===I&&MJ.x&&(k=J.x),D>J.y&&(D=J.y)}),_.edges().forEach(function(Oe){var J,We=_.edge(Oe);(J=We.points)===null||J===void 0||J.forEach(function(Tt){k>Tt.x&&(k=Tt.x),D>Tt.y&&(D=Tt.y)})}),R[0]=f[0]-k,R[1]=f[1]-D}var G=h==="LR"||h==="RL";if(d){var V=this,z=V.focusNode,j=V.ranksep,Z=V.getRadialPos,Y=(0,Zd.isString)(z)?z:z==null?void 0:z.id,le=Y?(o=_.node(Y))===null||o===void 0?void 0:o._rank:0,H=[],Q=G?"y":"x",ie=G?"height":"width",oe=1/0,se=-1/0;_.nodes().forEach(function(Oe){var J=_.node(Oe);if(!!s.nodeMap[Oe]){var We=T(s.nodeMap[Oe]);if(le===0)H[J._rank]||(H[J._rank]={nodes:[],totalWidth:0,maxSize:-1/0}),H[J._rank].nodes.push(Oe),H[J._rank].totalWidth+=We*2+J[ie],H[J._rank].maxSizese&&(se=mt)}});var me=j||50,Ce={},Le=(se-oe)/.9,re=[(oe+se-Le)*.5,(oe+se+Le)*.5],yt=function(Oe,J,We,Tt){We===void 0&&(We=-1/0),Tt===void 0&&(Tt=[0,1]);var Qe=We;return Oe.forEach(function(zt){var mt=_.node(zt);Ce[zt]=J;var wt=Z(mt[Q],re,Le,J,Tt),pt=wt.x,ar=wt.y;if(!!s.nodeMap[zt]){s.nodeMap[zt].x=pt+R[0],s.nodeMap[zt].y=ar+R[1],s.nodeMap[zt]._order=mt._order;var kt=E(s.nodeMap[zt]);Qe=Qe})}:function(Oe,J,We){var Tt=Math.max(J.x,We.x),Qe=Math.min(J.x,We.x);return Oe.filter(function(zt){return zt.x<=Tt&&zt.x>=Qe})};_.edges().forEach(function(Oe){var J,We=_.edge(Oe),Tt=y.findIndex(function(mt){var wt=(0,Zd.getEdgeTerminal)(mt,"source"),pt=(0,Zd.getEdgeTerminal)(mt,"target");return wt===Oe.v&&pt===Oe.w});if(!(Tt<=-1)&&s.edgeLabelSpace&&s.controlPoints&&y[Tt].type!=="loop"){(J=We==null?void 0:We.points)===null||J===void 0||J.forEach(function(mt){mt.x+=R[0],mt.y+=R[1]});var Qe=s.nodeMap[Oe.v],zt=s.nodeMap[Oe.w];y[Tt].controlPoints=Vrr(We==null?void 0:We.points,Qe,zt,ur,G,Dt,ft)}})}return s.onLayoutEnd&&s.onLayoutEnd(),{nodes:l,edges:y}}},e.prototype.getRadialPos=function(t,r,i,a,o){o===void 0&&(o=[0,1]);var s=(t-r[0])/i;s=s*(o[1]-o[0])+o[0];var l=s*2*Math.PI;return{x:Math.cos(l)*a,y:Math.sin(l)*a}},e.prototype.getType=function(){return"dagre"},e}(zrr.Base);YI.DagreLayout=Urr;var Vrr=function(n,e,t,r,i,a,o){var s=(n==null?void 0:n.slice(1,n.length-1))||[];if(e&&t){var l=e.x,u=e.y,h=t.x,c=t.y;if(i&&(l=e.y,u=e.x,h=t.y,c=t.x),c!==u&&l!==h){var f=r.indexOf(u),d=r[f+1];if(d){var v=s[0],p=i?{x:(u+d)/2,y:(v==null?void 0:v.y)||h}:{x:(v==null?void 0:v.x)||h,y:(u+d)/2};(!v||a(v,p))&&s.unshift(p)}var g=r.indexOf(c),m=Math.abs(g-f);if(m===1)s=o(s,e,t),s.length||s.push(i?{x:(u+c)/2,y:l}:{x:l,y:(u+c)/2});else if(m>1){var y=r[g-1];if(y){var _=s[s.length-1],x=i?{x:(c+y)/2,y:(_==null?void 0:_.y)||h}:{x:(_==null?void 0:_.x)||l,y:(c+y)/2};(!_||a(_,x))&&s.push(x)}}}}return s},nk={};const O9={graph:{meta:{rankDir:"TB",nodeSep:50,rankSep:50,edgeSep:5,align:void 0}},subScene:{meta:{paddingTop:20,paddingBottom:20,paddingLeft:20,paddingRight:20,labelHeight:20}},nodeSize:{meta:{width:100,maxLabelWidth:0,height:20},node:{width:80,height:20,labelOffset:10,maxLabelWidth:40},bridge:{width:5,height:5,radius:2,labelOffset:0}}};function kee(n={},e=O9){var t,r,i,a;const o=JSON.parse(JSON.stringify(e)),s=((t=n==null?void 0:n.graph)===null||t===void 0?void 0:t.meta)||{},l=((r=n==null?void 0:n.subScene)===null||r===void 0?void 0:r.meta)||{},u=((i=n==null?void 0:n.nodeSize)===null||i===void 0?void 0:i.meta)||{},h=((a=n==null?void 0:n.nodeSize)===null||a===void 0?void 0:a.node)||{},c=o.nodeSize.bridge;return{graph:{meta:Object.assign(o.graph.meta,s)},subScene:{meta:Object.assign(o.subScene.meta,l)},nodeSize:{meta:Object.assign(o.nodeSize.meta,u),node:Object.assign(o.nodeSize.node,h),bridge:c}}}function H$e(n){return`\u25EC${n}\u25EC`}const RM=H$e("ROOT"),j$e=H$e("BRIDGE_GRAPH");var fd,l2,DM,Fee;(function(n){n[n.META=0]="META",n[n.NODE=1]="NODE",n[n.BRIDGE=2]="BRIDGE"})(fd||(fd={})),function(n){n[n.INCLUDE=0]="INCLUDE",n[n.EXCLUDE=1]="EXCLUDE",n[n.UNSPECIFIED=2]="UNSPECIFIED"}(l2||(l2={})),function(n){n[n.META=0]="META",n[n.CORE=1]="CORE",n[n.BRIDGE=2]="BRIDGE"}(DM||(DM={})),function(n){n[n.META=0]="META",n[n.OP=1]="OP",n[n.SERIES=2]="SERIES"}(Fee||(Fee={}));var D5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cle(n,e){return n(e={exports:{}},e.exports),e.exports}var $rr=function(){this.__data__=[],this.size=0},KI=function(n,e){return n===e||n!=n&&e!=e},fV=function(n,e){for(var t=n.length;t--;)if(KI(n[t][0],e))return t;return-1},Wrr=Array.prototype.splice,Hrr=function(n){var e=this.__data__,t=fV(e,n);return!(t<0)&&(t==e.length-1?e.pop():Wrr.call(e,t,1),--this.size,!0)},jrr=function(n){var e=this.__data__,t=fV(e,n);return t<0?void 0:e[t][1]},Xrr=function(n){return fV(this.__data__,n)>-1},Yrr=function(n,e){var t=this.__data__,r=fV(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this};function jC(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e-1&&n%1==0&&n-1&&n%1==0&&n<=9007199254740991},Ys={};Ys["[object Float32Array]"]=Ys["[object Float64Array]"]=Ys["[object Int8Array]"]=Ys["[object Int16Array]"]=Ys["[object Int32Array]"]=Ys["[object Uint8Array]"]=Ys["[object Uint8ClampedArray]"]=Ys["[object Uint16Array]"]=Ys["[object Uint32Array]"]=!0,Ys["[object Arguments]"]=Ys["[object Array]"]=Ys["[object ArrayBuffer]"]=Ys["[object Boolean]"]=Ys["[object DataView]"]=Ys["[object Date]"]=Ys["[object Error]"]=Ys["[object Function]"]=Ys["[object Map]"]=Ys["[object Number]"]=Ys["[object Object]"]=Ys["[object RegExp]"]=Ys["[object Set]"]=Ys["[object String]"]=Ys["[object WeakMap]"]=!1;var Nnr=function(n){return S0(n)&&dle(n.length)&&!!Ys[Cw(n)]},_V=function(n){return function(e){return n(e)}},kM=cle(function(n,e){var t=e&&!e.nodeType&&e,r=t&&n&&!n.nodeType&&n,i=r&&r.exports===t&&X$e.process,a=function(){try{var o=r&&r.require&&r.require("util").types;return o||i&&i.binding&&i.binding("util")}catch{}}();n.exports=a}),_be=kM&&kM.isTypedArray,ok=_be?_V(_be):Nnr,knr=Object.prototype.hasOwnProperty,Z$e=function(n,e){var t=jl(n),r=!t&&NM(n),i=!t&&!r&&u2(n),a=!t&&!r&&!i&&ok(n),o=t||r||i||a,s=o?Lnr(n.length,String):[],l=s.length;for(var u in n)!e&&!knr.call(n,u)||o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||mV(u,l))||s.push(u);return s},Fnr=Object.prototype,xV=function(n){var e=n&&n.constructor;return n===(typeof e=="function"&&e.prototype||Fnr)},K$e=function(n,e){return function(t){return n(e(t))}},Bnr=K$e(Object.keys,Object),Gnr=Object.prototype.hasOwnProperty,vle=function(n){if(!xV(n))return Bnr(n);var e=[];for(var t in Object(n))Gnr.call(n,t)&&t!="constructor"&&e.push(t);return e},V_=function(n){return n!=null&&dle(n.length)&&!ik(n)},Aw=function(n){return V_(n)?Z$e(n):vle(n)},znr=function(n,e){return n&&ak(e,Aw(e),n)},Unr=function(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e},Vnr=Object.prototype.hasOwnProperty,$nr=function(n){if(!Cd(n))return Unr(n);var e=xV(n),t=[];for(var r in n)(r!="constructor"||!e&&Vnr.call(n,r))&&t.push(r);return t},uT=function(n){return V_(n)?Z$e(n,!0):$nr(n)},Wnr=function(n,e){return n&&ak(e,uT(e),n)},J$e=cle(function(n,e){var t=e&&!e.nodeType&&e,r=t&&n&&!n.nodeType&&n,i=r&&r.exports===t?B0.Buffer:void 0,a=i?i.allocUnsafe:void 0;n.exports=function(o,s){if(s)return o.slice();var l=o.length,u=a?a(l):new o.constructor(l);return o.copy(u),u}}),Q$e=function(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++ts))return!1;var u=a.get(n),h=a.get(e);if(u&&h)return u==e&&h==n;var c=-1,f=!0,d=2&t?new cWe:void 0;for(a.set(n,e),a.set(e,n);++c0&&r(l)?t>1?n(l,t-1,r,i,a):gle(a,l):i||(a[a.length]=l)}return a},ear=function(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)},Rbe=Math.max,LWe=function(n,e,t){return e=Rbe(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,a=Rbe(r.length-e,0),o=Array(a);++i0){if(++e>=800)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}(tar),TV=function(n,e){return PWe(LWe(n,e,hT),n+"")},OWe=function(n,e,t,r){for(var i=n.length,a=t+(r?1:-1);r?a--:++a-1},sar=function(n,e,t){for(var r=-1,i=n==null?0:n.length;++r=200){var u=e?null:uar(n);if(u)return Sle(u);o=!1,i=fWe,l=new cWe}else l=e?[]:s;e:for(;++ra){var o=i;i=a,a=o}return i+""+a+""+(Hr.isUndefined(r)?"\0":r)}function dar(n,e,t,r){var i=""+e,a=""+t;if(!n&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function mY(n,e){return SO(n,e.v,e.w,e.name)}Xa.prototype._nodeCount=0,Xa.prototype._edgeCount=0,Xa.prototype.isDirected=function(){return this._isDirected},Xa.prototype.isMultigraph=function(){return this._isMultigraph},Xa.prototype.isCompound=function(){return this._isCompound},Xa.prototype.setGraph=function(n){return this._label=n,this},Xa.prototype.graph=function(){return this._label},Xa.prototype.setDefaultNodeLabel=function(n){return Hr.isFunction(n)||(n=Hr.constant(n)),this._defaultNodeLabelFn=n,this},Xa.prototype.nodeCount=function(){return this._nodeCount},Xa.prototype.nodes=function(){return Hr.keys(this._nodes)},Xa.prototype.sources=function(){var n=this;return Hr.filter(this.nodes(),function(e){return Hr.isEmpty(n._in[e])})},Xa.prototype.sinks=function(){var n=this;return Hr.filter(this.nodes(),function(e){return Hr.isEmpty(n._out[e])})},Xa.prototype.setNodes=function(n,e){var t=arguments,r=this;return Hr.each(n,function(i){t.length>1?r.setNode(i,e):r.setNode(i)}),this},Xa.prototype.setNode=function(n,e){return Hr.has(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=e),this):(this._nodes[n]=arguments.length>1?e:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]="\0",this._children[n]={},this._children["\0"][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)},Xa.prototype.node=function(n){return this._nodes[n]},Xa.prototype.hasNode=function(n){return Hr.has(this._nodes,n)},Xa.prototype.removeNode=function(n){var e=this;if(Hr.has(this._nodes,n)){var t=function(r){e.removeEdge(e._edgeObjs[r])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],Hr.each(this.children(n),function(r){e.setParent(r)}),delete this._children[n]),Hr.each(Hr.keys(this._in[n]),t),delete this._in[n],delete this._preds[n],Hr.each(Hr.keys(this._out[n]),t),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this},Xa.prototype.setParent=function(n,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Hr.isUndefined(e))e="\0";else{for(var t=e+="";!Hr.isUndefined(t);t=this.parent(t))if(t===n)throw new Error("Setting "+e+" as parent of "+n+" would create a cycle");this.setNode(e)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=e,this._children[e][n]=!0,this},Xa.prototype._removeFromParentsChildList=function(n){delete this._children[this._parent[n]][n]},Xa.prototype.parent=function(n){if(this._isCompound){var e=this._parent[n];if(e!=="\0")return e}},Xa.prototype.children=function(n){if(Hr.isUndefined(n)&&(n="\0"),this._isCompound){var e=this._children[n];if(e)return Hr.keys(e)}else{if(n==="\0")return this.nodes();if(this.hasNode(n))return[]}},Xa.prototype.predecessors=function(n){var e=this._preds[n];if(e)return Hr.keys(e)},Xa.prototype.successors=function(n){var e=this._sucs[n];if(e)return Hr.keys(e)},Xa.prototype.neighbors=function(n){var e=this.predecessors(n);if(e)return Hr.union(e,this.successors(n))},Xa.prototype.isLeaf=function(n){return(this.isDirected()?this.successors(n):this.neighbors(n)).length===0},Xa.prototype.filterNodes=function(n){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var t=this;Hr.each(this._nodes,function(a,o){n(o)&&e.setNode(o,a)}),Hr.each(this._edgeObjs,function(a){e.hasNode(a.v)&&e.hasNode(a.w)&&e.setEdge(a,t.edge(a))});var r={};function i(a){var o=t.parent(a);return o===void 0||e.hasNode(o)?(r[a]=o,o):o in r?r[o]:i(o)}return this._isCompound&&Hr.each(e.nodes(),function(a){e.setParent(a,i(a))}),e},Xa.prototype.setDefaultEdgeLabel=function(n){return Hr.isFunction(n)||(n=Hr.constant(n)),this._defaultEdgeLabelFn=n,this},Xa.prototype.edgeCount=function(){return this._edgeCount},Xa.prototype.edges=function(){return Hr.values(this._edgeObjs)},Xa.prototype.setPath=function(n,e){var t=this,r=arguments;return Hr.reduce(n,function(i,a){return r.length>1?t.setEdge(i,a,e):t.setEdge(i,a),a}),this},Xa.prototype.setEdge=function(){var n,e,t,r,i=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(n=a.v,e=a.w,t=a.name,arguments.length===2&&(r=arguments[1],i=!0)):(n=a,e=arguments[1],t=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),n=""+n,e=""+e,Hr.isUndefined(t)||(t=""+t);var o=SO(this._isDirected,n,e,t);if(Hr.has(this._edgeLabels,o))return i&&(this._edgeLabels[o]=r),this;if(!Hr.isUndefined(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(e),this._edgeLabels[o]=i?r:this._defaultEdgeLabelFn(n,e,t);var s=dar(this._isDirected,n,e,t);return n=s.v,e=s.w,Object.freeze(s),this._edgeObjs[o]=s,Dbe(this._preds[e],n),Dbe(this._sucs[n],e),this._in[e][o]=s,this._out[n][o]=s,this._edgeCount++,this},Xa.prototype.edge=function(n,e,t){var r=arguments.length===1?mY(this._isDirected,arguments[0]):SO(this._isDirected,n,e,t);return this._edgeLabels[r]},Xa.prototype.hasEdge=function(n,e,t){var r=arguments.length===1?mY(this._isDirected,arguments[0]):SO(this._isDirected,n,e,t);return Hr.has(this._edgeLabels,r)},Xa.prototype.removeEdge=function(n,e,t){var r=arguments.length===1?mY(this._isDirected,arguments[0]):SO(this._isDirected,n,e,t),i=this._edgeObjs[r];return i&&(n=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],Nbe(this._preds[e],n),Nbe(this._sucs[n],e),delete this._in[e][r],delete this._out[n][r],this._edgeCount--),this},Xa.prototype.inEdges=function(n,e){var t=this._in[n];if(t){var r=Hr.values(t);return e?Hr.filter(r,function(i){return i.v===e}):r}},Xa.prototype.outEdges=function(n,e){var t=this._out[n];if(t){var r=Hr.values(t);return e?Hr.filter(r,function(i){return i.w===e}):r}},Xa.prototype.nodeEdges=function(n,e){var t=this.inEdges(n,e);if(t)return t.concat(this.outEdges(n,e))};var kbe={Graph:Tle,version:"2.1.8"},par={write:function(n){var e={options:{directed:n.isDirected(),multigraph:n.isMultigraph(),compound:n.isCompound()},nodes:gar(n),edges:yar(n)};return Hr.isUndefined(n.graph())||(e.value=Hr.clone(n.graph())),e},read:function(n){var e=new Tle(n.options).setGraph(n.value);return Hr.each(n.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),Hr.each(n.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}};function gar(n){return Hr.map(n.nodes(),function(e){var t=n.node(e),r=n.parent(e),i={v:e};return Hr.isUndefined(t)||(i.value=t),Hr.isUndefined(r)||(i.parent=r),i})}function yar(n){return Hr.map(n.edges(),function(e){var t=n.edge(e),r={v:e.v,w:e.w};return Hr.isUndefined(e.name)||(r.name=e.name),Hr.isUndefined(t)||(r.value=t),r})}var mar=function(n){var e,t={},r=[];function i(a){Hr.has(t,a)||(t[a]=!0,e.push(a),Hr.each(n.successors(a),i),Hr.each(n.predecessors(a),i))}return Hr.each(n.nodes(),function(a){e=[],i(a),e.length&&r.push(e)}),r},NWe=np;function np(){this._arr=[],this._keyIndices={}}np.prototype.size=function(){return this._arr.length},np.prototype.keys=function(){return this._arr.map(function(n){return n.key})},np.prototype.has=function(n){return Hr.has(this._keyIndices,n)},np.prototype.priority=function(n){var e=this._keyIndices[n];if(e!==void 0)return this._arr[e].priority},np.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},np.prototype.add=function(n,e){var t=this._keyIndices;if(n=String(n),!Hr.has(t,n)){var r=this._arr,i=r.length;return t[n]=i,r.push({key:n,priority:e}),this._decrease(i),!0}return!1},np.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key},np.prototype.decrease=function(n,e){var t=this._keyIndices[n];if(e>this._arr[t].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[t].priority+" New: "+e);this._arr[t].priority=e,this._decrease(t)},np.prototype._heapify=function(n){var e=this._arr,t=2*n,r=t+1,i=n;t>1].priority0&&(l=c.removeMin(),(u=h[l]).distance!==Number.POSITIVE_INFINITY);)s(l).forEach(f);return h}(n,String(e),t||_ar,r||function(i){return n.outEdges(i)})},_ar=Hr.constant(1),xar=function(n,e,t){return Hr.transform(n.nodes(),function(r,i){r[i]=kWe(n,i,e,t)},{})},FWe=function(n){var e=0,t=[],r={},i=[];function a(o){var s=r[o]={onStack:!0,lowlink:e,index:e++};if(t.push(o),n.successors(o).forEach(function(h){Hr.has(r,h)?r[h].onStack&&(s.lowlink=Math.min(s.lowlink,r[h].index)):(a(h),s.lowlink=Math.min(s.lowlink,r[h].lowlink))}),s.lowlink===s.index){var l,u=[];do l=t.pop(),r[l].onStack=!1,u.push(l);while(o!==l);i.push(u)}}return n.nodes().forEach(function(o){Hr.has(r,o)||a(o)}),i},Sar=function(n){return Hr.filter(FWe(n),function(e){return e.length>1||e.length===1&&n.hasEdge(e[0],e[0])})},war=function(n,e,t){return function(r,i,a){var o={},s=r.nodes();return s.forEach(function(l){o[l]={},o[l][l]={distance:0},s.forEach(function(u){l!==u&&(o[l][u]={distance:Number.POSITIVE_INFINITY})}),a(l).forEach(function(u){var h=u.v===l?u.w:u.v,c=i(u);o[l][h]={distance:c,predecessor:l}})}),s.forEach(function(l){var u=o[l];s.forEach(function(h){var c=o[h];s.forEach(function(f){var d=c[l],v=u[f],p=c[f],g=d.distance+v.distance;g0;){if(t=a.removeMin(),Hr.has(i,t))r.setEdge(t,i[t]);else{if(s)throw new Error("Input graph is not connected: "+n);s=!0}n.nodeEdges(t).forEach(o)}return r},tarjan:FWe,topsort:_Y},version:kbe.version};try{F9=Ear}catch{}F9||(F9=window.graphlib);var G0=F9,Tar=function(n){return sWe(n,5)},tN=function(n,e,t){if(!Cd(t))return!1;var r=typeof e;return!!(r=="number"?V_(t)&&mV(e,t.length):r=="string"&&e in t)&&KI(t[e],n)},zWe=Object.prototype,Car=zWe.hasOwnProperty,Aar=TV(function(n,e){n=Object(n);var t=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&tN(e[0],e[1],i)&&(r=1);++t-1?i[a?e[o]:o]:void 0}},Iar=/^\s+|\s+$/g,Lar=/^[-+]0x[0-9a-f]+$/i,Par=/^0b[01]+$/i,Oar=/^0o[0-7]+$/i,Rar=parseInt,Dar=function(n){if(typeof n=="number")return n;if(c2(n))return NaN;if(Cd(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=Cd(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=n.replace(Iar,"");var t=Par.test(n);return t||Oar.test(n)?Rar(n.slice(2),t?2:8):Lar.test(n)?NaN:+n},e8=function(n){return n?(n=Dar(n))===1/0||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:n===0?n:0},Nar=function(n){var e=e8(n),t=e%1;return e==e?t?e-t:e:0},kar=Math.max,Far=Mar(function(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var i=t==null?0:Nar(t);return i<0&&(i=kar(r+i,0)),OWe(n,$_(e),i)}),UWe=function(n){return n!=null&&n.length?Ele(n,1):[]},Bar=function(n,e){return n==null?n:_le(n,lWe(e),uT)},Gar=function(n){var e=n==null?0:n.length;return e?n[e-1]:void 0},zar=function(n,e){var t={};return e=$_(e),xle(n,function(r,i,a){gV(t,i,e(r,i,a))}),t},Cle=function(n,e,t){for(var r=-1,i=n.length;++re},Var=function(n){return n&&n.length?Cle(n,hT,Uar):void 0},Wee=function(n,e,t){(t!==void 0&&!KI(n[e],t)||t===void 0&&!(e in n))&&gV(n,e,t)},$ar=Function.prototype,War=Object.prototype,VWe=$ar.toString,Har=War.hasOwnProperty,jar=VWe.call(Object),Xar=function(n){if(!S0(n)||Cw(n)!="[object Object]")return!1;var e=SV(n);if(e===null)return!0;var t=Har.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&VWe.call(t)==jar},Hee=function(n,e){if((e!=="constructor"||typeof n[e]!="function")&&e!="__proto__")return n[e]},Yar=function(n){return ak(n,uT(n))},qar=function(n,e,t,r,i,a,o){var s=Hee(n,t),l=Hee(e,t),u=o.get(l);if(u)Wee(n,t,u);else{var h=a?a(s,l,t+"",n,e,o):void 0,c=h===void 0;if(c){var f=jl(l),d=!f&&u2(l),v=!f&&!d&&ok(l);h=l,f||d||v?jl(s)?h=s:RWe(s)?h=Q$e(s):d?(c=!1,h=J$e(l,!0)):v?(c=!1,h=iWe(l,!0)):h=[]:Xar(l)||NM(l)?(h=s,NM(s)?h=Yar(s):Cd(s)&&!ik(s)||(h=oWe(l))):c=!1}c&&(o.set(l,h),i(h,l,r,a,o),o.delete(l)),Wee(n,t,h)}},Zar=function n(e,t,r,i,a){e!==t&&_le(t,function(o,s){if(a||(a=new jA),Cd(o))qar(e,t,s,r,n,i,a);else{var l=i?i(Hee(e,s),o,s+"",e,t,a):void 0;l===void 0&&(l=o),Wee(e,s,l)}},uT)},Kar=function(n){return TV(function(e,t){var r=-1,i=t.length,a=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(a=n.length>3&&typeof a=="function"?(i--,a):void 0,o&&tN(t[0],t[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++re||a&&o&&l&&!s&&!u||r&&o&&l||!t&&l||!i)return 1;if(!r&&!a&&!u&&n=s?l:l*(t[r]=="desc"?-1:1)}return n.index-e.index},dor=function(n,e,t){e=e.length?YA(e,function(a){return jl(a)?function(o){return EV(o,a.length===1?a[0]:a)}:a}):[hT];var r=-1;e=YA(e,_V($_));var i=EWe(n,function(a,o,s){return{criteria:YA(e,function(l){return l(a)}),index:++r,value:a}});return uor(i,function(a,o){return cor(a,o,t)})},vor=TV(function(n,e){if(n==null)return[];var t=e.length;return t>1&&tN(n,e[0],e[1])?e=[]:t>2&&tN(e[0],e[1],e[2])&&(e=[e[0]]),dor(n,Ele(e,1),[])}),por=0,gor=function(n){var e=++por;return yWe(n)+e},yor=function(n,e,t){for(var r=-1,i=n.length,a=e.length,o={};++r0;--c)if(s=a[c].dequeue()){l=l.concat(xY(i,a,o,s,!0));break}}}return l}(t.graph,t.buckets,t.zeroIdx);return ke.flatten(ke.map(r,function(i){return n.outEdges(i.v,i.w)}),!0)},bor=ke.constant(1);function xY(n,e,t,r,i){var a=i?[]:void 0;return ke.forEach(n.inEdges(r.v),function(o){var s=n.edge(o),l=n.node(o.v);i&&a.push({v:o.v,w:o.w}),l.out-=s,jee(e,t,l)}),ke.forEach(n.outEdges(r.v),function(o){var s=n.edge(o),l=o.w,u=n.node(l);u.in-=s,jee(e,t,u)}),n.removeNode(r.v),a}function jee(n,e,t){t.out?t.in?n[t.out-t.in+e].enqueue(t):n[n.length-1].enqueue(t):n[0].enqueue(t)}var Gbe={run:function(n){var e=n.graph().acyclicer==="greedy"?wor(n,function(t){return function(r){return t.edge(r).weight}}(n)):function(t){var r=[],i={},a={};function o(s){ke.has(a,s)||(a[s]=!0,i[s]=!0,ke.forEach(t.outEdges(s),function(l){ke.has(i,l.w)?r.push(l):o(l.w)}),delete i[s])}return ke.forEach(t.nodes(),o),r}(n);ke.forEach(e,function(t){var r=n.edge(t);n.removeEdge(t),r.forwardName=t.name,r.reversed=!0,n.setEdge(t.w,t.v,r,ke.uniqueId("rev"))})},undo:function(n){ke.forEach(n.edges(),function(e){var t=n.edge(e);if(t.reversed){n.removeEdge(e);var r=t.forwardName;delete t.reversed,delete t.forwardName,n.setEdge(e.w,e.v,t,r)}})}},zbe=G0.Graph,Hh={addDummyNode:Ube,simplify:function(n){var e=new zbe().setGraph(n.graph());return ke.forEach(n.nodes(),function(t){e.setNode(t,n.node(t))}),ke.forEach(n.edges(),function(t){var r=e.edge(t.v,t.w)||{weight:0,minlen:1},i=n.edge(t);e.setEdge(t.v,t.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e},asNonCompoundGraph:function(n){var e=new zbe({multigraph:n.isMultigraph()}).setGraph(n.graph());return ke.forEach(n.nodes(),function(t){n.children(t).length||e.setNode(t,n.node(t))}),ke.forEach(n.edges(),function(t){e.setEdge(t,n.edge(t))}),e},successorWeights:function(n){var e=ke.map(n.nodes(),function(t){var r={};return ke.forEach(n.outEdges(t),function(i){r[i.w]=(r[i.w]||0)+n.edge(i).weight}),r});return ke.zipObject(n.nodes(),e)},predecessorWeights:function(n){var e=ke.map(n.nodes(),function(t){var r={};return ke.forEach(n.inEdges(t),function(i){r[i.v]=(r[i.v]||0)+n.edge(i).weight}),r});return ke.zipObject(n.nodes(),e)},intersectRect:function(n,e){var t,r,i=n.x,a=n.y,o=e.x-i,s=e.y-a,l=n.width/2,u=n.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*l>Math.abs(o)*u?(s<0&&(u=-u),t=u*o/s,r=u):(o<0&&(l=-l),t=l,r=l*s/o),{x:i+t,y:a+r}},buildLayerMatrix:function(n){var e=ke.map(ke.range(Vbe(n)+1),function(){return[]});return ke.forEach(n.nodes(),function(t){var r=n.node(t),i=r.rank;ke.isUndefined(i)||(e[i][r.order]=t)}),e},normalizeRanks:function(n){var e=ke.min(ke.map(n.nodes(),function(t){return n.node(t).rank}));ke.forEach(n.nodes(),function(t){var r=n.node(t);ke.has(r,"rank")&&(r.rank-=e)})},removeEmptyRanks:function(n){var e=ke.min(ke.map(n.nodes(),function(a){return n.node(a).rank})),t=[];ke.forEach(n.nodes(),function(a){var o=n.node(a).rank-e;t[o]||(t[o]=[]),t[o].push(a)});var r=0,i=n.graph().nodeRankFactor;ke.forEach(t,function(a,o){ke.isUndefined(a)&&o%i!=0?--r:r&&ke.forEach(a,function(s){n.node(s).rank+=r})})},addBorderNode:function(n,e,t,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=t,i.order=r),Ube(n,"border",i,e)},maxRank:Vbe,partition:function(n,e){var t={lhs:[],rhs:[]};return ke.forEach(n,function(r){e(r)?t.lhs.push(r):t.rhs.push(r)}),t},time:function(n,e){var t=ke.now();try{return e()}finally{console.log(n+" time: "+(ke.now()-t)+"ms")}},notime:function(n,e){return e()}};function Ube(n,e,t,r){var i;do i=ke.uniqueId(r);while(n.hasNode(i));return t.dummy=e,n.setNode(i,t),i}function Vbe(n){return ke.max(ke.map(n.nodes(),function(e){var t=n.node(e).rank;if(!ke.isUndefined(t))return t}))}var $be={run:function(n){n.graph().dummyChains=[],ke.forEach(n.edges(),function(e){(function(t,r){var i,a,o,s=r.v,l=t.node(s).rank,u=r.w,h=t.node(u).rank,c=r.name,f=t.edge(r),d=f.labelRank;if(h!==l+1){for(t.removeEdge(r),o=0,++l;lo.lim&&(s=o,l=!0);var u=ke.filter(e.edges(),function(h){return l===Wbe(n,n.node(h.v),s)&&l!==Wbe(n,n.node(h.w),s)});return ke.minBy(u,function(h){return Mor(e,h)})}function KWe(n,e,t,r){var i=t.v,a=t.w;n.removeEdge(i,a),n.setEdge(r.v,r.w,{}),Mle(n),Ale(n,e),function(o,s){var l=ke.find(o.nodes(),function(h){return!s.node(h).parent}),u=Lor(o,l);u=u.slice(1),ke.forEach(u,function(h){var c=o.node(h).parent,f=s.edge(h,c),d=!1;f||(f=s.edge(c,h),d=!0),s.node(h).rank=s.node(c).rank+(d?f.minlen:-f.minlen)})}(n,e)}function Wbe(n,e,t){return t.low<=e.lim&&e.lim<=t.lim}zb.initLowLimValues=Mle,zb.initCutValues=Ale,zb.calcCutValue=XWe,zb.leaveEdge=qWe,zb.enterEdge=ZWe,zb.exchangeEdges=KWe;var JWe=WWe,Dor=function(n){switch(n.graph().ranker){case"network-simplex":Hbe(n);break;case"tight-tree":(function(e){JWe(e),jWe(e)})(n);break;case"longest-path":Nor(n);break;default:Hbe(n)}},Nor=JWe;function Hbe(n){Ror(n)}var kor=function(n){var e=function(t){var r={},i=0;function a(o){var s=i;ke.forEach(t.children(o),a),r[o]={low:s,lim:i++}}return ke.forEach(t.children(),a),r}(n);ke.forEach(n.graph().dummyChains,function(t){for(var r=n.node(t),i=r.edgeObj,a=function(c,f,d,v){var p,g,m=[],y=[],_=Math.min(f[d].low,f[v].low),x=Math.max(f[d].lim,f[v].lim);p=d;do p=c.parent(p),m.push(p);while(p&&(f[p].low>_||x>f[p].lim));for(g=p,p=v;(p=c.parent(p))!==g;)y.push(p);return{path:m.concat(y.reverse()),lca:g}}(n,e,i.v,i.w),o=a.path,s=a.lca,l=0,u=o[l],h=!0;t!==i.w;){if(r=n.node(t),h){for(;(u=o[l])!==s&&n.node(u).maxRank0;)h%2&&(c+=s[h+1]),s[h=h-1>>1]+=u.weight;l+=u.weight*c})),l}var Uor=function(n,e){return ke.map(e,function(t){var r=n.inEdges(t);if(r.length){var i=ke.reduce(r,function(a,o){var s=n.edge(o),l=n.node(o.v);return{sum:a.sum+s.weight*l.order,weight:a.weight+s.weight}},{sum:0,weight:0});return{v:t,barycenter:i.sum/i.weight,weight:i.weight}}return{v:t}})},Vor=function(n,e){var t={};return ke.forEach(n,function(r,i){var a=t[r.v]={indegree:0,in:[],out:[],vs:[r.v],i};ke.isUndefined(r.barycenter)||(a.barycenter=r.barycenter,a.weight=r.weight)}),ke.forEach(e.edges(),function(r){var i=t[r.v],a=t[r.w];ke.isUndefined(i)||ke.isUndefined(a)||(a.indegree++,i.out.push(t[r.w]))}),function(r){var i=[];function a(l){return function(u){u.merged||(ke.isUndefined(u.barycenter)||ke.isUndefined(l.barycenter)||u.barycenter>=l.barycenter)&&function(h,c){var f=0,d=0;h.weight&&(f+=h.barycenter*h.weight,d+=h.weight),c.weight&&(f+=c.barycenter*c.weight,d+=c.weight),h.vs=c.vs.concat(h.vs),h.barycenter=f/d,h.weight=d,h.i=Math.min(c.i,h.i),c.merged=!0}(l,u)}}function o(l){return function(u){u.in.push(l),--u.indegree==0&&r.push(u)}}for(;r.length;){var s=r.pop();i.push(s),ke.forEach(s.in.reverse(),a(s)),ke.forEach(s.out,o(s))}return ke.map(ke.filter(i,function(l){return!l.merged}),function(l){return ke.pick(l,["vs","i","barycenter","weight"])})}(ke.filter(t,function(r){return!r.indegree}))},$or=function(n,e){var t=Hh.partition(n,function(c){return ke.has(c,"barycenter")}),r=t.lhs,i=ke.sortBy(t.rhs,function(c){return-c.i}),a=[],o=0,s=0,l=0;r.sort((u=!!e,function(c,f){return c.barycenterf.barycenter?1:u?f.i-c.i:c.i-f.i})),l=Kbe(a,i,l),ke.forEach(r,function(c){l+=c.vs.length,a.push(c.vs),o+=c.barycenter*c.weight,s+=c.weight,l=Kbe(a,i,l)});var u,h={vs:ke.flatten(a,!0)};return s&&(h.barycenter=o/s,h.weight=s),h};function Kbe(n,e,t){for(var r;e.length&&(r=ke.last(e)).i<=t;)e.pop(),n.push(r.vs),t++;return t}var Wor=function n(e,t,r,i){var a=e.children(t),o=e.node(t),s=o?o.borderLeft:void 0,l=o?o.borderRight:void 0,u={};s&&(a=ke.filter(a,function(p){return p!==s&&p!==l}));var h=Uor(e,a);ke.forEach(h,function(p){if(e.children(p.v).length){var g=n(e,p.v,r,i);u[p.v]=g,ke.has(g,"barycenter")&&(m=p,y=g,ke.isUndefined(m.barycenter)?(m.barycenter=y.barycenter,m.weight=y.weight):(m.barycenter=(m.barycenter*m.weight+y.barycenter*y.weight)/(m.weight+y.weight),m.weight+=y.weight))}var m,y});var c=Vor(h,r);(function(p,g){ke.forEach(p,function(m){m.vs=ke.flatten(m.vs.map(function(y){return g[y]?g[y].vs:y}),!0)})})(c,u);var f=$or(c,i);if(s&&(f.vs=ke.flatten([s,f.vs,l],!0),e.predecessors(s).length)){var d=e.node(e.predecessors(s)[0]),v=e.node(e.predecessors(l)[0]);ke.has(f,"barycenter")||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+d.order+v.order)/(f.weight+2),f.weight+=2}return f},Hor=G0.Graph,jor=function(n,e,t){var r=function(a){for(var o;a.hasNode(o=ke.uniqueId("_root")););return o}(n),i=new Hor({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(a){return n.node(a)});return ke.forEach(n.nodes(),function(a){var o=n.node(a),s=n.parent(a);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||r),ke.forEach(n[t](a),function(l){var u=l.v===a?l.w:l.v,h=i.edge(u,a),c=ke.isUndefined(h)?0:h.weight;i.setEdge(u,a,{weight:n.edge(l).weight+c})}),ke.has(o,"minRank")&&i.setNode(a,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))}),i},Xor=function(n,e,t){var r,i={};ke.forEach(t,function(a){for(var o,s,l=n.parent(a);l;){if((o=n.parent(l))?(s=i[o],i[o]=l):(s=r,r=l),s&&s!==l)return void e.setEdge(s,l);l=o}})},Yor=G0.Graph,qor=function(n){var e=Hh.maxRank(n),t=Jbe(n,ke.range(1,e+1),"inEdges"),r=Jbe(n,ke.range(e-1,-1,-1),"outEdges"),i=Bor(n);Qbe(n,i);for(var a,o=Number.POSITIVE_INFINITY,s=0,l=0;l<4;++s,++l){Zor(s%2?t:r,s%4>=2),i=Hh.buildLayerMatrix(n);var u=Gor(n,i);ul)&&eHe(t,c,u)})})}return ke.reduce(e,function(i,a){var o,s=-1,l=0;return ke.forEach(a,function(u,h){if(n.node(u).dummy==="border"){var c=n.predecessors(u);c.length&&(o=n.node(c[0]).order,r(a,l,h,s,o),l=h,s=o)}r(a,l,a.length,o,i.length)}),a}),t}function eHe(n,e,t){if(e>t){var r=e;e=t,t=r}var i=n[e];i||(n[e]=i={}),i[t]=!0}function tsr(n,e,t){if(e>t){var r=e;e=t,t=r}return ke.has(n[e],t)}function rsr(n,e,t,r){var i={},a={},o={};return ke.forEach(e,function(s){ke.forEach(s,function(l,u){i[l]=l,a[l]=l,o[l]=u})}),ke.forEach(e,function(s){var l=-1;ke.forEach(s,function(u){var h=r(u);if(h.length)for(var c=((h=ke.sortBy(h,function(p){return o[p]})).length-1)/2,f=Math.floor(c),d=Math.ceil(c);f<=d;++f){var v=h[f];a[u]===u&&lnew Esr(t)).forEach(t=>{e.nodes[t.name]=t,t.inputs.forEach(r=>{(function(i,a,o){o.name!==a.name&&i.edges.push(Object.assign(Object.assign({},o.attr),{v:o.name,w:a.name}))})(e,t,r)})}),e}class Asr{constructor(e,t={}){this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=l2.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=fd.META,this.path=[],this.name=e,this.metaGraph=Ile(e,DM.META,t)}getFirstChild(){return this.metaGraph.node(this.metaGraph.nodes()[0])}getChildren(){return this.metaGraph.nodes().map(e=>this.metaGraph.node(e))}leaves(){let e,t=[],r=[this];for(;r.length;){let i=r.shift();i.isGroupNode?(e=i.metaGraph,e.nodes().forEach(a=>r.push(e.node(a)))):t.push(i.name)}return t}}class Msr{constructor(e,t){this.v=e,this.w=t,this.baseEdgeList=[],this.inbound=null,this.name=null}addBaseEdge(e,t){this.baseEdgeList.push(e)}}function rHe(n,e={}){return new Asr(n,e)}function nHe(n,e){return new Msr(n,e)}function Ile(n,e,t){const r=t||{},i=new wsr.Graph(r);return i.setGraph({name:n,rankdir:r.rankdir,type:e,align:r.align}),i}class Isr{constructor(e={}){this.graphOptions=e,this.index={},this.graphOptions.compound=!0,this.root=rHe(RM,this.graphOptions),this.index[RM]=this.root}getNodeMap(){return this.index}node(e){return this.index[e]}setNode(e,t){this.index[e]=t}getBridgeGraph(e){const t=this.index[e];if(!t)throw Error("Could not find node in hierarchy: "+e);if(!("metaGraph"in t))return null;const r=t;if(r.bridgeGraph)return r.bridgeGraph;const i=Ile(j$e,DM.BRIDGE,this.graphOptions);if(r.bridgeGraph=i,!t.parentNode||!("metaGraph"in t.parentNode))return i;const a=t.parentNode;return[a.metaGraph,this.getBridgeGraph(a.name)].forEach(o=>{o.edges().filter(s=>s.v===e||s.w===e).forEach(s=>{const l=s.w===e;o.edge(s).baseEdgeList.forEach(u=>{const[h,c]=l?[u.w,s.v]:[u.v,s.w],f=this.getChildName(e,h),d={v:l?c:f,w:l?f:c};let v=i.edge(d);v||(v=nHe(d.v,d.w),v.inbound=l,i.setEdge(d.v,d.w,v)),v.addBaseEdge(u,this)})})}),i}getChildName(e,t){let r=this.index[t];for(;r;){if(r.parentNode&&r.parentNode.name===e)return r.name;r=r.parentNode}throw Error("Could not find immediate child for descendant: "+t)}getPredecessors(e){const t=this.index[e];if(!t)throw Error("Could not find node with name: "+e);return this.getOneWayEdges(t,!0)}getSuccessors(e){const t=this.index[e];if(!t)throw Error("Could not find node with name: "+e);return this.getOneWayEdges(t,!1)}getOneWayEdges(e,t){const r=[];if(!e.parentNode||!e.parentNode.isGroupNode)return r;const i=e.parentNode,a=i.metaGraph,o=this.getBridgeGraph(i.name);return eEe(a,e,t,r),eEe(o,e,t,r),r}}function Lsr(n,e){const{rankDirection:t,align:r}=e,i=new Isr({rankdir:t,align:r});return function(a,o){Object.keys(o.nodes).forEach(s=>{const l=o.nodes[s],u=l.path;let h=a.root;h.depth=Math.max(u.length,h.depth);for(let c=0;c{let d=0;for(;c;)f[d++]=c.name,c=c.parentNode;return d-1};o.edges.forEach(c=>{l=[],u=[];let f=h(o.nodes[c.v],l),d=h(o.nodes[c.w],u);for(;l[f]===u[d];)if(f--,d--,f<0||d<0)throw Error("No difference found between ancestor paths.");const v=s[l[f+1]],p=l[f],g=u[d];let m=v.metaGraph.edge(p,g);m||(m=nHe(p,g),v.metaGraph.setEdge(p,g,m)),m.addBaseEdge(c,a)})}(i,n),i}function eEe(n,e,t,r){(t?n.inEdges(e.name):n.outEdges(e.name)).forEach(i=>{const a=n.edge(i);r.push(a)})}class Psr{constructor(e){this.hierarchy=e,this.index={},this.hasSubHierarchy={},this.root=new rEe(this.hierarchy.root,this.hierarchy.graphOptions),this.index[e.root.name]=this.root,this.buildSubHierarchy(e.root.name),this.root.expanded=!0}getRenderInfoNodes(){return Object.values(this.index)}getSubHierarchy(){return this.hasSubHierarchy}buildSubHierarchy(e){if(e in this.hasSubHierarchy)return;this.hasSubHierarchy[e]=!0;const t=this.index[e];if(t.node.type!==fd.META)return;const r=t,i=r.node.metaGraph,a=r.coreGraph;i.nodes().forEach(h=>{const c=this.getOrCreateRenderNodeByName(h);a.setNode(h,c)}),i.edges().forEach(h=>{const c=i.edge(h),f=new tEe(c);a.setEdge(h.v,h.w,f)});const o=r.node.parentNode;if(!o)return;const s=this.getRenderNodeByName(o.name),l=(h,...c)=>c.concat([h?"IN":"OUT"]).join("~~"),u=this.hierarchy.getBridgeGraph(e);u.edges().forEach(h=>{const c=u.edge(h),f=!!i.node(h.w),[d,v]=f?[h.w,h.v]:[h.v,h.w],p=S=>{const w=f?{v:S,w:e}:{v:e,w:S};return s.coreGraph.edge(w)};let g=p(v);g||(g=p(l(f,v,o.name)));const m=l(f,e),y=l(f,v,e);let _=a.node(y);if(!_){let S=a.node(m);if(!S){const b={name:m,type:fd.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:l2.UNSPECIFIED,inbound:f,attr:{}};S=new r8(b),this.index[m]=S,a.setNode(m,S)}const w={name:y,type:fd.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:l2.UNSPECIFIED,inbound:f,attr:{}};_=new r8(w),this.index[y]=_,a.setNode(y,_),a.setParent(y,m),S.node.cardinality++}const x=new tEe(c);x.adjoiningMetaEdge=g,f?a.setEdge(y,d,x):a.setEdge(d,y,x)})}getOrCreateRenderNodeByName(e){if(!e)return null;if(e in this.index)return this.index[e];const t=this.getNodeByName(e);return t?(this.index[e]=t.isGroupNode?new rEe(t,this.hierarchy.graphOptions):new r8(t),this.index[e]):null}getRenderNodeByName(e){return this.index[e]}getNodeByName(e){return this.hierarchy.node(e)}}class r8{constructor(e){this.node=e,this.expanded=!1,this.x=0,this.y=0,this.coreBox={width:0,height:0},this.outboxWidth=0,this.labelOffset=0,this.radius=0,this.labelHeight=0,this.paddingTop=0,this.paddingLeft=0,this.paddingRight=0,this.paddingBottom=0,this.width=e.width||0,this.height=e.height||0,this.displayName=e.name,this.attr=e.attr}}class tEe{constructor(e){this.metaEdge=e,this.adjoiningMetaEdge=null,this.weight=1,this.points=[]}}class rEe extends r8{constructor(e,t){super(e);const r=e.metaGraph.graph();t.compound=!0,this.coreGraph=Ile(r.name,DM.CORE,t)}}function iHe(n,e){n.node.isGroupNode&&function(t,r){const i=kee(r);t.coreGraph.nodes().map(a=>t.coreGraph.node(a)).forEach(a=>{var o,s,l,u,h,c;const{height:f,width:d}=a;switch(a.node.type){case fd.NODE:Object.assign(a,i.nodeSize.node),a.height=f||i.nodeSize.node.height,a.width=d||i.nodeSize.node.width;break;case fd.BRIDGE:Object.assign(a,i.nodeSize.bridge);break;case fd.META:a.expanded?iHe(a,r):(Object.assign(a,i.nodeSize.meta),a.height=i.nodeSize.meta.height,a.width=i.nodeSize.meta.width);break;default:throw Error("Unrecognized node type: "+a.node.type)}if(!a.expanded){const v=a.attr;(function(p,g=!1){if(p.coreBox.width=p.width,p.coreBox.height=p.height,!g){const m=`${p.displayName}`.length,y=3;p.width=Math.max(p.coreBox.width,m*y)}})(a,r&&(a.node.type===0&&!!(!((s=(o=r==null?void 0:r.nodeSize)===null||o===void 0?void 0:o.meta)===null||s===void 0)&&s.width)||a.node.type===1&&(!!(!((u=(l=r==null?void 0:r.nodeSize)===null||l===void 0?void 0:l.node)===null||u===void 0)&&u.width)||!!v.width)||a.node.type===2&&!!(!((c=(h=r==null?void 0:r.nodeSize)===null||h===void 0?void 0:h.bridge)===null||c===void 0)&&c.width)))}})}(n,e),n.node.type===fd.META&&function(t,r){const i=kee(r),a=i.subScene.meta;Object.assign(t,a);const{nodeSep:o,rankSep:s,edgeSep:l,align:u}=i.graph.meta,h={nodesep:o,ranksep:s,edgesep:l,align:u};Object.assign(t.coreBox,function(d,v){const{ranksep:p,nodesep:g,edgesep:m,align:y}=v;Object.assign(d.graph(),{ranksep:p,nodesep:g,edgesep:m,align:y});const _=[];if(d.nodes().forEach(E=>{d.node(E).node.type!==fd.BRIDGE&&_.push(E)}),!_.length)return{width:0,height:0};bsr(d);let x=1/0,S=1/0,w=-1/0,b=-1/0;return _.forEach(E=>{const T=d.node(E),C=.5*T.width,A=T.x-C,M=T.x+C;x=Aw?M:w;const I=.5*T.height,R=T.y-I,k=T.y+I;S=Rb?k:b}),d.edges().forEach(E=>{const T=d.edge(E),C=d.node(T.metaEdge.v),A=d.node(T.metaEdge.w);if(T.points.length===3&&function(R){let k=nEe(R[0],R[1]);for(let D=1;D1)return!1;k=G}return!0}(T.points)){if(C!=null){const R=C.expanded?C.x:Xee(C);T.points[0].x=R}if(A!=null){const R=A.expanded?A.x:Xee(A);T.points[2].x=R}T.points=[T.points[0],T.points[1]]}const M=T.points[T.points.length-2];A!=null&&(T.points[T.points.length-1]=iEe(M,A));const I=T.points[1];C!=null&&(T.points[0]=iEe(I,C)),T.points.forEach(R=>{x=R.xw?R.x:w,S=R.yb?R.y:b})}),d.nodes().forEach(E=>{const T=d.node(E);T.x-=x,T.y-=S}),d.edges().forEach(E=>{d.edge(E).points.forEach(T=>{T.x-=x,T.y-=S})}),{width:w-x,height:b-S}}(t.coreGraph,h));let c=0;t.coreGraph.nodeCount()>0&&c++;const f=c<=1?0:c;t.coreBox.width+=f+f,t.coreBox.height=a.labelHeight+t.coreBox.height,t.width=t.coreBox.width+a.paddingLeft+a.paddingRight,t.height=t.paddingTop+t.coreBox.height+t.paddingBottom}(n,e)}function nEe(n,e){const t=e.x-n.x,r=e.y-n.y;return 180*Math.atan(r/t)/Math.PI}function Xee(n){return n.expanded?n.x:n.x-n.width/2+0+n.coreBox.width/2}function iEe(n,e){const t=e.expanded?e.x:Xee(e),r=e.y,i=n.x-t,a=n.y-r;let o,s,l=e.expanded?e.width:e.coreBox.width,u=e.expanded?e.height:e.coreBox.height;return Math.abs(a)*l/2>Math.abs(i)*u/2?(a<0&&(u=-u),o=a===0?0:u/2*i/a,s=u/2):(i<0&&(l=-l),o=l/2,s=i===0?0:l/2*a/i),{x:t+o,y:r+s}}function Osr(n,e,t){var r,i,a,o;const s=n.nodes.filter((c,f,d)=>d.findIndex(v=>v.id===c.id)!==f).map(c=>c.id);if(s.length)throw new Error(`Duplicated ids found: ${s.join(", ")}`);const l=function(c){const f={nodes:[]},d=c.compound,v=Object.keys(d||{}),p=new Map,g=(y,_=[])=>{if(p.has(y))return p.get(y);for(let x=0;xc.edges.filter(_=>_.w===y).map(_=>({name:_.v}));return c.nodes.forEach(y=>{const _=y.id,x=[...g(_),_];let S=m(_);f.nodes.push({name:_,path:x,inputs:S,width:y.width,height:y.height,attr:Object.assign({},y)})}),f}(n),u=function(c,f){const d=(p,g)=>{for(let m of g.values())if(m.includes(p))return!0;return!1},v=(p,g=[])=>{if(Object.keys(p).length===0)return[...new Set(g)];const m=new Map(Object.keys(p).map(_=>[_,p[_]])),y={};for(let[_,x]of m)d(_,m)?y[_]=x:g=g.concat(_,x);return v(y,g)};return v(c).filter(p=>f.includes(p))}(n.compound||{},(e==null?void 0:e.expanded)||[]),h=function(c,f){return function(d){return new Psr(d)}(Lsr(Csr(c),f))}(l,{rankDirection:((i=(r=t==null?void 0:t.graph)===null||r===void 0?void 0:r.meta)===null||i===void 0?void 0:i.rankDir)||(e==null?void 0:e.rankDirection)||O9.graph.meta.rankDir,align:((o=(a=t==null?void 0:t.graph)===null||a===void 0?void 0:a.meta)===null||o===void 0?void 0:o.align)||O9.graph.meta.align});return function(c,f){f.forEach(d=>{const v=c.getRenderInfoNodes().find(m=>m.displayName===d);let p=v&&v.node&&v.node.name||"";const g=c.getRenderNodeByName(p);if(!g)throw new Error(`No nodes found: ${p}`);g.expanded=!0,c.buildSubHierarchy(p)})}(h,u),iHe(h.root,t),aHe(h.root)}function Rsr(n,e=!1){const t=JSON.parse(JSON.stringify(n)),r={nodes:[t],edges:[...t.edges]};return t.nodes.forEach(function i(a){(a.type===0||a.type===1)&&r.nodes.push(a),a.type===0&&(r.edges=r.edges.concat(a.edges)),Array.isArray(a.nodes)&&a.nodes.forEach(i)}),e&&r.nodes.forEach(i=>{const a=r.nodes.find(o=>o.id===i.parentNodeName);if(a){const o=a.x-a.width/2+a.paddingLeft,s=a.y-a.height/2+a.labelHeight+a.paddingTop;a.id!==RM&&(i.x+=o,i.y+=s),i.type===0&&i.edges.forEach(l=>{l.points.forEach(u=>{u.x+=i.x-i.width/2+i.paddingLeft,u.y+=i.y-i.height/2+i.labelHeight+i.paddingTop})})}}),r}function Dsr(n,e,t,r){var i,a;let o=[];const s=((i=t.find(c=>c.id===n))===null||i===void 0?void 0:i.path)||[],l=((a=t.find(c=>c.id===e))===null||a===void 0?void 0:a.path)||[],u=[RM,...s].slice(0,s.length).reverse(),h=[RM,...l].slice(0,l.length);return u.forEach(c=>{const f=t.find(d=>d.id===c);o=o.concat(f.edges.filter(d=>d.baseEdgeList.some(v=>v.v===((r==null?void 0:r.v)||n)&&v.w===((r==null?void 0:r.w)||e))))}),h.filter(c=>!u.includes(c)).forEach(c=>{const f=t.find(d=>d.id===c);o=o.concat(f.edges.filter(d=>d.baseEdgeList.some(v=>v.v===((r==null?void 0:r.v)||n)&&v.w===((r==null?void 0:r.w)||e))))}),o}function aHe(n){const e=n.coreGraph.nodes().map(r=>n.coreGraph.node(r));return Object.assign(Object.assign({},aEe(n)),{expanded:n.expanded,nodes:n.expanded?(t=e,t.map(r=>r.node.type===fd.META?aHe(r):aEe(r))):[],edges:n.expanded?Nsr(n):[]});var t}function aEe(n){return{id:n.node.name,name:n.node.name,type:n.node.type,cardinality:n.node.cardinality,attr:n.attr,parentNodeName:n.node.parentNode?n.node.parentNode.name:null,coreBox:Object.assign({},n.coreBox),x:n.x,y:n.y,width:n.width,height:n.height,radius:n.radius,labelHeight:n.labelHeight,labelOffset:n.labelOffset,outboxWidth:n.outboxWidth,paddingLeft:n.paddingLeft,paddingTop:n.paddingTop,paddingRight:n.paddingRight,paddingBottom:n.paddingBottom,path:n.node.path}}function Nsr(n){return n.coreGraph.edges().map(e=>({renderInfoEdge:n.coreGraph.edge(e),edge:e})).filter(({renderInfoEdge:e})=>e.metaEdge).map(({edge:e,renderInfoEdge:t})=>{const r=function(i,a){const o=a.points.map(s=>Object.assign({},s));if(a.adjoiningMetaEdge){const s=a.adjoiningMetaEdge.points,l=a.metaEdge.inbound,u=l?s[s.length-1]:s[0],h=o[l?0:o.length-1],c=i.x-i.width/2,f=i.y-i.height/2,d=u.x-c,v=u.y-f,p=-i.paddingLeft,g=-(i.paddingTop+i.labelHeight);h.x=d+p,h.y=v+g}return o}(n,t);return{adjoiningEdge:t.adjoiningMetaEdge?{w:t.adjoiningMetaEdge.metaEdge.w,v:t.adjoiningMetaEdge.metaEdge.v}:null,inbound:t.metaEdge.inbound,w:e.w,v:e.v,points:r,weight:t.weight,baseEdgeList:t.metaEdge.baseEdgeList,parentNodeName:n.node.name}})}const ksr=Object.freeze(Object.defineProperty({__proto__:null,BRIDGE_GRAPH_NAME:j$e,get GraphType(){return DM},get HierarchyNodeType(){return Fee},get InclusionType(){return l2},LAYOUT_CONFIG:O9,get NodeType(){return fd},ROOT_NAME:RM,buildGraph:Osr,flatGraph:Rsr,getEdges:Dsr,mergeConfig:kee},Symbol.toStringTag,{value:"Module"})),Fsr=Nd(ksr);var Bsr=at&&at.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Fg=at&&at.__assign||function(){return Fg=Object.assign||function(n){for(var e,t=1,r=arguments.length;tu.x&&(s=u.x),l>u.y&&(l=u.y)}),r.forEach(function(u){u.points.forEach(function(h){s>h.x&&(s=h.x),l>h.y&&(l=h.y)})}),o[0]=a[0]-s,o[1]=a[1]-l}return o},e.prototype.updateNodePosition=function(t,r){var i=this,a=i.combos,o=i.nodes,s=i.edges,l=i.anchorPoint,u=i.graphSettings,h=this.getBegin(t,r);t.forEach(function(c){var f,d=c.x,v=c.y,p=c.id,g=c.type,m=c.coreBox;if(g===Kv.HierarchyNodeType.META&&p!==Kv.ROOT_NAME){var y=a.findIndex(function(b){return b.id===p}),_=(f=u==null?void 0:u.subScene)===null||f===void 0?void 0:f.meta;a[y].offsetX=d+h[0],a[y].offsetY=v+h[1],a[y].fixSize=[m.width,m.height],a[y].fixCollapseSize=[m.width,m.height],c.expanded?a[y].padding=[_==null?void 0:_.paddingTop,_==null?void 0:_.paddingRight,_==null?void 0:_.paddingBottom,_==null?void 0:_.paddingLeft]:a[y].padding=[0,0,0,0]}else if(g===Kv.HierarchyNodeType.OP){var y=o.findIndex(function(E){return E.id===p});if(o[y].x=d+h[0],o[y].y=v+h[1],l){var x=[],S=r.filter(function(E){return E.v===p}),w=r.filter(function(E){return E.w===p});S.length>0&&S.forEach(function(E){var T=E.points[0],C=(T.x-d)/c.width+.5,A=(T.y-v)/c.height+.5;x.push([C,A]),E.baseEdgeList.forEach(function(M){var I=s.find(function(R){return R.source===M.v&&R.target===M.w});I&&(I.sourceAnchor=x.length-1)})}),w.length>0&&w.forEach(function(E){var T=E.points[E.points.length-1],C=(T.x-d)/c.width+.5,A=(T.y-v)/c.height+.5;x.push([C,A]),E.baseEdgeList.forEach(function(M){var I=s.find(function(R){return R.source===M.v&&R.target===M.w});I&&(I.targetAnchor=x.length-1)})}),o[y].anchorPoints=x.length>0?x:o[y].anchorPoints||[]}}})},e.prototype.updateEdgePosition=function(t,r){var i=this,a=i.combos,o=i.edges,s=i.controlPoints,l=this.getBegin(t,r);s&&(a.forEach(function(u){u.inEdges=[],u.outEdges=[]}),o.forEach(function(u){var h,c,f,d,v=t.find(function(b){return b.id===u.source}),p=t.find(function(b){return b.id===u.target}),g=[],m=[];if(v&&p)m=(0,Kv.getEdges)(v==null?void 0:v.id,p==null?void 0:p.id,t);else if(!v||!p){var y=i.getNodePath(u.source),_=i.getNodePath(u.target),x=y.reverse().slice(v?0:1).find(function(b){return t.find(function(E){return E.id===b})}),S=_.reverse().slice(p?0:1).find(function(b){return t.find(function(E){return E.id===b})});v=t.find(function(b){return b.id===x}),p=t.find(function(b){return b.id===S}),m=(0,Kv.getEdges)(v==null?void 0:v.id,p==null?void 0:p.id,t,{v:u.source,w:u.target})}if(g=m.reduce(function(b,E){return vC(vC([],b,!0),E.points.map(function(T){return Fg(Fg({},T),{x:T.x+l[0],y:T.y+l[1]})}),!0)},[]),g=g.slice(1,-1),u.controlPoints=g,(p==null?void 0:p.type)===Kv.NodeType.META){var w=a.findIndex(function(b){return b.id===(p==null?void 0:p.id)});if(!a[w]||((h=a[w].inEdges)===null||h===void 0?void 0:h.some(function(b){return b.source===v.id&&b.target===p.id})))return;(c=a[w].inEdges)===null||c===void 0||c.push({source:v.id,target:p.id,controlPoints:g})}if((v==null?void 0:v.type)===Kv.NodeType.META){var w=a.findIndex(function(E){return E.id===(v==null?void 0:v.id)});if(!a[w]||((f=a[w].outEdges)===null||f===void 0?void 0:f.some(function(E){return E.source===v.id&&E.target===p.id})))return;(d=a[w].outEdges)===null||d===void 0||d.push({source:v.id,target:p.id,controlPoints:g})}}))},e.prototype.getType=function(){return"dagreCompound"},e.prototype.getDataByOrder=function(t){return t.every(function(r){return r.layoutOrder!==void 0})||t.forEach(function(r,i){r.layoutOrder=i}),t.sort(function(r,i){return r.layoutOrder-i.layoutOrder})},e}(Gsr.Base);nk.DagreCompoundLayout=zsr;var Lle={},CV={},Ple={};const Usr=Object.prototype.toString;function z9(n){const e=Usr.call(n);return e.endsWith("Array]")&&!e.includes("Big")}function Vsr(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!z9(n))throw new TypeError("input must be an array");if(n.length===0)throw new TypeError("input must not be empty");var t=e.fromIndex,r=t===void 0?0:t,i=e.toIndex,a=i===void 0?n.length:i;if(r<0||r>=n.length||!Number.isInteger(r))throw new Error("fromIndex must be a positive integer smaller than length");if(a<=r||a>n.length||!Number.isInteger(a))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=n[r],s=r+1;so&&(o=n[s]);return o}function $sr(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!z9(n))throw new TypeError("input must be an array");if(n.length===0)throw new TypeError("input must not be empty");var t=e.fromIndex,r=t===void 0?0:t,i=e.toIndex,a=i===void 0?n.length:i;if(r<0||r>=n.length||!Number.isInteger(r))throw new Error("fromIndex must be a positive integer smaller than length");if(a<=r||a>n.length||!Number.isInteger(a))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=n[r],s=r+1;s1&&arguments[1]!==void 0?arguments[1]:{};if(z9(n)){if(n.length===0)throw new TypeError("input must not be empty")}else throw new TypeError("input must be an array");var t;if(e.output!==void 0){if(!z9(e.output))throw new TypeError("output option must be an array if specified");t=e.output}else t=new Array(n.length);var r=$sr(n),i=Vsr(n);if(r===i)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var a=e.min,o=a===void 0?e.autoMinMax?r:0:a,s=e.max,l=s===void 0?e.autoMinMax?i:1:s;if(o>=l)throw new RangeError("min option must be smaller than max option");for(var u=(l-o)/(i-r),h=0;h>r);return this},n.prototype.signPropagatingRightShiftM=function(r){if(r=e.checkMatrix(r),this.rows!==r.rows||this.columns!==r.columns)throw new RangeError("Matrices dimensions must be equal");for(let i=0;i>r.get(i,a));return this},n.signPropagatingRightShift=function(r,i){return new e(r).signPropagatingRightShift(i)},n.prototype.rightShift=function(r){return typeof r=="number"?this.rightShiftS(r):this.rightShiftM(r)},n.prototype.rightShiftS=function(r){for(let i=0;i>>r);return this},n.prototype.rightShiftM=function(r){if(r=e.checkMatrix(r),this.rows!==r.rows||this.columns!==r.columns)throw new RangeError("Matrices dimensions must be equal");for(let i=0;i>>r.get(i,a));return this},n.rightShift=function(r,i){return new e(r).rightShift(i)},n.prototype.zeroFillRightShift=n.prototype.rightShift,n.prototype.zeroFillRightShiftS=n.prototype.rightShiftS,n.prototype.zeroFillRightShiftM=n.prototype.rightShiftM,n.zeroFillRightShift=n.rightShift,n.prototype.not=function(){for(let r=0;rr)throw new RangeError("Row index out of range")}function fp(n,e,t){let r=t?n.columns:n.columns-1;if(e<0||e>r)throw new RangeError("Column index out of range")}function ZC(n,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==n.columns)throw new RangeError("vector size must be the same as the number of columns");return e}function KC(n,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==n.rows)throw new RangeError("vector size must be the same as the number of rows");return e}function lHe(n,e,t){return{row:uHe(n,e),column:hHe(n,t)}}function uHe(n,e){if(typeof e!="object")throw new TypeError("unexpected type for row indices");if(e.some(r=>r<0||r>=n.rows))throw new RangeError("row indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function hHe(n,e){if(typeof e!="object")throw new TypeError("unexpected type for column indices");if(e.some(r=>r<0||r>=n.columns))throw new RangeError("column indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function Yee(n,e,t,r,i){if(arguments.length!==5)throw new RangeError("expected 4 arguments");if(F5("startRow",e),F5("endRow",t),F5("startColumn",r),F5("endColumn",i),e>t||r>i||e<0||e>=n.rows||t<0||t>=n.rows||r<0||r>=n.columns||i<0||i>=n.columns)throw new RangeError("Submatrix indices are out of range")}function AV(n,e=0){let t=[];for(let r=0;r=a)throw new RangeError("min must be smaller than max");let s=a-i,l=new ln(e,t);for(let u=0;ur?(a=!0,r=t):(i=!1,a=!0);e++}return i}isReducedEchelonForm(){let e=0,t=0,r=-1,i=!0,a=!1;for(;er?(a=!0,r=t):(i=!1,a=!0);for(let o=t+1;oe.get(i,r)&&(i=a);if(e.get(i,r)===0)r++;else{e.swapRows(t,i);let a=e.get(t,r);for(let o=r;o=0;)if(e.maxRow(i)===0)i--;else{let a=0,o=!1;for(;ae&&(e=this.get(t,r));return e}maxIndex(){let e=this.get(0,0),t=[0,0];for(let r=0;re&&(e=this.get(r,i),t[0]=r,t[1]=i);return t}min(){let e=this.get(0,0);for(let t=0;tt&&(t=this.get(e,r));return t}maxRowIndex(e){cp(this,e);let t=this.get(e,0),r=[e,0];for(let i=1;it&&(t=this.get(e,i),r[1]=i);return r}minRow(e){cp(this,e);let t=this.get(e,0);for(let r=1;rt&&(t=this.get(r,e));return t}maxColumnIndex(e){fp(this,e);let t=this.get(0,e),r=[0,e];for(let i=1;it&&(t=this.get(i,e),r[0]=i);return r}minColumn(e){fp(this,e);let t=this.get(0,e);for(let r=1;r=r)throw new RangeError("min must be smaller than max");let i=new ln(this.rows,this.columns);for(let a=0;a=r)throw new RangeError("min must be smaller than max");let i=new ln(this.rows,this.columns);for(let a=0;ar||t<0||t>=this.columns||r<0||r>=this.columns)throw new RangeError("Argument out of range");let i=new ln(e.length,r-t+1);for(let a=0;a=this.rows)throw new RangeError(`Row index out of range: ${e[a]}`);i.set(a,o-t,this.get(e[a],o))}return i}subMatrixColumn(e,t,r){if(t===void 0&&(t=0),r===void 0&&(r=this.rows-1),t>r||t<0||t>=this.rows||r<0||r>=this.rows)throw new RangeError("Argument out of range");let i=new ln(r-t+1,e.length);for(let a=0;a=this.columns)throw new RangeError(`Column index out of range: ${e[a]}`);i.set(o-t,a,this.get(o,e[a]))}return i}setSubMatrix(e,t,r){e=ln.checkMatrix(e);let i=t+e.rows-1,a=r+e.columns-1;Yee(this,t,i,r,a);for(let o=0;o0)if(this.data=[],Number.isInteger(t)&&t>0)for(let r=0;r"u"&&(t=e,e=this.columns),fp(this,e,!0),t=KC(this,t);for(let r=0;rMath.abs(v[h])&&(h=s);if(h!==l){for(u=0;u=0;u--){for(l=0;lo?i.set(a,o,e.get(a,o)):a===o?i.set(a,o,1):i.set(a,o,0);return i}get upperTriangularMatrix(){let e=this.LU,t=e.rows,r=e.columns,i=new ln(t,r);for(let a=0;aMath.abs(e)?(t=e/n,Math.abs(n)*Math.sqrt(1+t*t)):e!==0?(t=n/e,Math.abs(e)*Math.sqrt(1+t*t)):0}class qee{constructor(e){e=Av.checkMatrix(e);let t=e.clone(),r=e.rows,i=e.columns,a=new Float64Array(i),o,s,l,u;for(l=0;l=0;u--){for(l=0;l=0;s--){for(a=0;a=0;C--)if(v[C]!==0){for(let A=C+1;A=0;C--){if(C0;){let C,A;for(C=b-2;C>=-1&&C!==-1;C--){const M=Number.MIN_VALUE+T*Math.abs(v[C]+Math.abs(v[C+1]));if(Math.abs(m[C])<=M||Number.isNaN(m[C])){m[C]=0;break}}if(C===b-2)A=4;else{let M;for(M=b-1;M>=C&&M!==C;M--){let I=(M!==b?Math.abs(m[M]):0)+(M!==C+1?Math.abs(m[M-1]):0);if(Math.abs(v[M])<=T*I){v[M]=0;break}}M===C?A=3:M===b-1?A=1:(A=2,C=M)}switch(C++,A){case 1:{let M=m[b-2];m[b-2]=0;for(let I=b-2;I>=C;I--){let R=x1(v[I],M),k=v[I]/R,D=M/R;if(v[I]=R,I!==C&&(M=-D*m[I-1],m[I-1]=k*m[I-1]),u)for(let G=0;G=v[C+1]);){let M=v[C];if(v[C]=v[C+1],v[C+1]=M,u&&Ct&&a.set(h,c,e.get(h,c)/this.s[c]);let o=this.U,s=o.rows,l=o.columns,u=new ln(r,s);for(let h=0;he&&t++;return t}get diagonal(){return Array.from(this.s)}get threshold(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}get leftSingularVectors(){return this.U}get rightSingularVectors(){return this.V}get diagonalMatrix(){return ln.diag(this.s)}}function Slr(n,e=!1){return n=Av.checkMatrix(n),e?new FM(n).inverse():fHe(n,ln.eye(n.rows))}function fHe(n,e,t=!1){return n=Av.checkMatrix(n),e=Av.checkMatrix(e),t?new FM(n).solve(e):n.isSquare()?new U9(n).solve(e):new qee(n).solve(e)}function i8(n){if(n=ln.checkMatrix(n),n.isSquare()){let e,t,r,i;if(n.columns===2)return e=n.get(0,0),t=n.get(0,1),r=n.get(1,0),i=n.get(1,1),e*i-t*r;if(n.columns===3){let a,o,s;return a=new n8(n,[1,2],[1,2]),o=new n8(n,[1,2],[0,2]),s=new n8(n,[1,2],[0,1]),e=n.get(0,0),t=n.get(0,1),r=n.get(0,2),e*i8(a)-t*i8(o)+r*i8(s)}else return new U9(n).determinant}else throw Error("determinant can only be calculated for a square matrix")}function wlr(n,e){let t=[];for(let r=0;ri)return new Array(e.rows+1).fill(0);{let a=e.addRow(t,[0]);for(let o=0;oe?a[o]=1/a[o]:a[o]=0;return i.mmul(ln.diag(a).mmul(r.transpose()))}function Clr(n,e=n,t={}){n=new ln(n);let r=!1;if(typeof e=="object"&&!ln.isMatrix(e)&&!Array.isArray(e)?(t=e,e=n,r=!0):e=new ln(e),n.rows!==e.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:i=!0}=t;i&&(n=n.center("column"),r||(e=e.center("column")));const a=n.transpose().mmul(e);for(let o=0;o0?i.set(a,a+1,t[a]):t[a]<0&&i.set(a,a-1,t[a])}return i}}function Mlr(n,e,t,r){let i,a,o,s,l,u,h,c;for(l=0;l0;s--){for(c=0,o=0,u=0;u0&&(a=-a),e[s]=c*a,o=o-i*a,t[s-1]=i-a,l=0;lu)do{for(i=t[u],c=(t[u+1]-i)/(2*e[u]),f=x1(c,1),c<0&&(f=-f),t[u]=e[u]/(c+f),t[u+1]=e[u]*(c+f),d=t[u+1],a=i-t[u],o=u+2;o=u;o--)for(g=p,p=v,_=y,i=v*e[o],a=v*c,f=x1(c,e[o]),e[o+1]=y*f,y=e[o]/f,v=c/f,c=v*t[o]-y*i,t[o+1]=a+y*(v*i+y*t[o]),l=0;lw*S);t[u]=t[u]+x,e[u]=0}for(o=0;o=c;u--)t[u]=e.get(u,c-1)/f,l+=t[u]*t[u];for(s=Math.sqrt(l),t[c]>0&&(s=-s),l=l-t[c]*s,t[c]=t[c]-s,h=c;h=c;u--)o+=t[u]*e.get(u,h);for(o=o/l,u=c;u<=a;u++)e.set(u,h,e.get(u,h)-o*t[u])}for(u=0;u<=a;u++){for(o=0,h=a;h>=c;h--)o+=t[h]*e.get(u,h);for(o=o/l,h=c;h<=a;h++)e.set(u,h,e.get(u,h)-o*t[h])}t[c]=f*t[c],e.set(c,c-1,f*s)}}for(u=0;u=i+1;c--)if(e.get(c,c-1)!==0){for(u=c+1;u<=a;u++)t[u]=e.get(u,c-1);for(h=c;h<=a;h++){for(s=0,u=c;u<=a;u++)s+=t[u]*r.get(u,h);for(s=s/t[c]/e.get(c,c-1),u=c;u<=a;u++)r.set(u,h,r.get(u,h)+s*t[u])}}}function Plr(n,e,t,r,i){let a=n-1,o=0,s=n-1,l=Number.EPSILON,u=0,h=0,c=0,f=0,d=0,v=0,p=0,g=0,m,y,_,x,S,w,b,E,T,C,A,M,I,R,k;for(m=0;ms)&&(t[m]=i.get(m,m),e[m]=0),y=Math.max(m-1,0);y=o;){for(x=a;x>o&&(v=Math.abs(i.get(x-1,x-1))+Math.abs(i.get(x,x)),v===0&&(v=h),!(Math.abs(i.get(x,x-1))=0){for(p=c>=0?c+p:c-p,t[a-1]=E+p,t[a]=t[a-1],p!==0&&(t[a]=E-b/p),e[a-1]=0,e[a]=0,E=i.get(a,a-1),v=Math.abs(E)+Math.abs(p),c=E/v,f=p/v,d=Math.sqrt(c*c+f*f),c=c/d,f=f/d,y=a-1;y0)){for(v=Math.sqrt(v),T=x&&(p=i.get(S,S),d=E-p,v=T-p,c=(d*v-b)/i.get(S+1,S)+i.get(S,S+1),f=i.get(S+1,S+1)-p-d-v,d=i.get(S+2,S+1),v=Math.abs(c)+Math.abs(f)+Math.abs(d),c=c/v,f=f/v,d=d/v,!(S===x||Math.abs(i.get(S,S-1))*(Math.abs(f)+Math.abs(d))S+2&&i.set(m,m-3,0);for(_=S;_<=a-1&&(R=_!==a-1,_!==S&&(c=i.get(_,_-1),f=i.get(_+1,_-1),d=R?i.get(_+2,_-1):0,E=Math.abs(c)+Math.abs(f)+Math.abs(d),E!==0&&(c=c/E,f=f/E,d=d/E)),E!==0);_++)if(v=Math.sqrt(c*c+f*f+d*d),c<0&&(v=-v),v!==0){for(_!==S?i.set(_,_-1,-v*E):x!==S&&i.set(_,_-1,-i.get(_,_-1)),c=c+v,E=c/v,T=f/v,p=d/v,f=f/c,d=d/c,y=_;y=0;a--)if(c=t[a],f=e[a],f===0)for(x=a,i.set(a,a,1),m=a-1;m>=0;m--){for(b=i.get(m,m)-c,d=0,y=x;y<=a;y++)d=d+i.get(m,y)*i.get(y,a);if(e[m]<0)p=b,v=d;else if(x=m,e[m]===0?i.set(m,a,b!==0?-d/b:-d/(l*h)):(E=i.get(m,m+1),T=i.get(m+1,m),f=(t[m]-c)*(t[m]-c)+e[m]*e[m],w=(E*v-p*d)/f,i.set(m,a,w),i.set(m+1,a,Math.abs(E)>Math.abs(p)?(-d-b*w)/E:(-v-T*w)/p)),w=Math.abs(i.get(m,a)),l*w*w>1)for(y=m;y<=a;y++)i.set(y,a,i.get(y,a)/w)}else if(f<0)for(x=a-1,Math.abs(i.get(a,a-1))>Math.abs(i.get(a-1,a))?(i.set(a-1,a-1,f/i.get(a,a-1)),i.set(a-1,a,-(i.get(a,a)-c)/i.get(a,a-1))):(k=B5(0,-i.get(a-1,a),i.get(a-1,a-1)-c,f),i.set(a-1,a-1,k[0]),i.set(a-1,a,k[1])),i.set(a,a-1,0),i.set(a,a,1),m=a-2;m>=0;m--){for(C=0,A=0,y=x;y<=a;y++)C=C+i.get(m,y)*i.get(y,a-1),A=A+i.get(m,y)*i.get(y,a);if(b=i.get(m,m)-c,e[m]<0)p=b,d=C,v=A;else if(x=m,e[m]===0?(k=B5(-C,-A,b,f),i.set(m,a-1,k[0]),i.set(m,a,k[1])):(E=i.get(m,m+1),T=i.get(m+1,m),M=(t[m]-c)*(t[m]-c)+e[m]*e[m]-f*f,I=(t[m]-c)*2*f,M===0&&I===0&&(M=l*h*(Math.abs(b)+Math.abs(f)+Math.abs(E)+Math.abs(T)+Math.abs(p))),k=B5(E*d-p*C+f*A,E*v-p*A-f*C,M,I),i.set(m,a-1,k[0]),i.set(m,a,k[1]),Math.abs(E)>Math.abs(p)+Math.abs(f)?(i.set(m+1,a-1,(-C-b*i.get(m,a-1)+f*i.get(m,a))/E),i.set(m+1,a,(-A-b*i.get(m,a)-f*i.get(m,a-1))/E)):(k=B5(-d-T*i.get(m,a-1),-v-T*i.get(m,a),p,f),i.set(m+1,a-1,k[0]),i.set(m+1,a,k[1]))),w=Math.max(Math.abs(i.get(m,a-1)),Math.abs(i.get(m,a))),l*w*w>1)for(y=m;y<=a;y++)i.set(y,a-1,i.get(y,a-1)/w),i.set(y,a,i.get(y,a)/w)}for(m=0;ms)for(y=m;y=o;y--)for(m=o;m<=s;m++){for(p=0,_=o;_<=Math.min(y,s);_++)p=p+r.get(m,_)*i.get(_,y);r.set(m,y,p)}}}function B5(n,e,t,r){let i,a;return Math.abs(t)>Math.abs(r)?(i=r/t,a=t+i*r,[(n+i*e)/a,(e-i*n)/a]):(i=t/r,a=r+i*t,[(i*n+e)/a,(i*e-n)/a])}class uEe{constructor(e){if(e=Av.checkMatrix(e),!e.isSymmetric())throw new Error("Matrix is not symmetric");let t=e,r=t.rows,i=new ln(r,r),a=!0,o,s,l;for(s=0;s0,i.set(s,s,Math.sqrt(Math.max(u,0))),l=s+1;l=0;l--)for(s=0;so;d++)c=e.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0)),c=c.div(c.norm()),u=e.mmul(c).div(c.transpose().mmul(c).get(0,0)),d>0&&(l=u.clone().sub(f).pow(2).sum()),f=u.clone(),r?(h=r.transpose().mmul(u).div(u.transpose().mmul(u).get(0,0)),h=h.div(h.norm()),s=r.mmul(h).div(h.transpose().mmul(h).get(0,0))):s=u;if(r){let d=e.transpose().mmul(u).div(u.transpose().mmul(u).get(0,0));d=d.div(d.norm());let v=e.clone().sub(u.clone().mmul(d.transpose())),p=s.transpose().mmul(u).div(u.transpose().mmul(u).get(0,0)),g=r.clone().sub(u.clone().mulS(p.get(0,0)).mmul(h.transpose()));this.t=u,this.p=d.transpose(),this.w=c.transpose(),this.q=h,this.u=s,this.s=u.transpose().mmul(u),this.xResidual=v,this.yResidual=g,this.betas=p}else this.w=c.transpose(),this.s=u.transpose().mmul(u).sqrt(),i?this.t=u.clone().div(this.s.get(0,0)):this.t=u,this.xResidual=e.sub(u.mmul(c.transpose()))}}const Olr=Object.freeze(Object.defineProperty({__proto__:null,AbstractMatrix:Ji,default:ln,Matrix:ln,wrap:xlr,WrapperMatrix1D:cHe,WrapperMatrix2D:Av,solve:fHe,inverse:Slr,determinant:i8,linearDependencies:Elr,pseudoInverse:Tlr,covariance:Clr,correlation:Alr,SingularValueDecomposition:FM,SVD:FM,EigenvalueDecomposition:lEe,EVD:lEe,CholeskyDecomposition:uEe,CHO:uEe,LuDecomposition:U9,LU:U9,QrDecomposition:qee,QR:qee,Nipals:hEe,NIPALS:hEe,MatrixColumnView:flr,MatrixColumnSelectionView:dlr,MatrixFlipColumnView:vlr,MatrixFlipRowView:plr,MatrixRowView:glr,MatrixRowSelectionView:ylr,MatrixSelectionView:n8,MatrixSubView:mlr,MatrixTransposeView:_lr},Symbol.toStringTag,{value:"Module"})),dHe=Nd(Olr);Object.defineProperty(Ple,"__esModule",{value:!0});var wP=dHe,Rlr=function(){function n(e){this.distances=e.distances,this.dimension=e.dimension||2,this.linkDistance=e.linkDistance}return n.prototype.layout=function(){var e=this,t=e.dimension,r=e.distances,i=e.linkDistance;try{var a=wP.Matrix.mul(wP.Matrix.pow(r,2),-.5),o=a.mean("row"),s=a.mean("column"),l=a.mean();a.add(l).subRowVector(o).subColumnVector(s);var u=new wP.SingularValueDecomposition(a),h=wP.Matrix.sqrt(u.diagonalMatrix).diagonal();return u.leftSingularVectors.toJSON().map(function(p){return wP.Matrix.mul([p],[h]).toJSON()[0].splice(0,t)})}catch{for(var c=[],f=0;fh?1:-1;c=.01*v,f=.01*v}if(dMath.PI/2&&(m-=Math.PI/2,v*=-1,p*=-1);var y=Math.cos(m)*g;u.x=v*y,u.y=p*y});var l=e.radii;t.forEach(function(u,h){if(h!==o){var c=Math.sqrt(r[h].x*r[h].x+r[h].y*r[h].y);if(c>0&&h!==o){var f=Math.min(s*(i/Dlr),c);if(u[0]+=r[h].x/c*f,u[1]+=r[h].y/c*f,a){var d=u[0]-t[o][0],v=u[1]-t[o][1],p=Math.sqrt(d*d+v*v);d=d/p*l[h],v=v/p*l[h],u[0]=t[o][0]+d,u[1]=t[o][1]+v}}}})},n}();Ole.default=Nlr;var klr=at&&at.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),vHe=at&&at.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(CV,"__esModule",{value:!0});CV.RadialLayout=void 0;var Jv=Dl(),Flr=Xl,Blr=vHe(Ple),Glr=vHe(Ole);function zlr(n){for(var e=n.length,t=n[0].length,r=[],i=0;ia[0]?a[0]:p-a[0],y=g-a[1]>a[1]?a[1]:g-a[1];m===0&&(m=p/2),y===0&&(y=g/2);var _=y>m?m:y,x=Math.max.apply(Math,v),S=[];v.forEach(function(V,z){t.unitRadius||(t.unitRadius=_/x),S[z]=V*t.unitRadius}),t.radii=S;var w=t.eIdealDisMatrix();t.eIdealDistances=w;var b=zlr(w);t.weights=b;var E=new Blr.default({linkDistance:o,distances:w}),T=E.layout();T.forEach(function(V){(0,Jv.isNaN)(V[0])&&(V[0]=Math.random()*o),(0,Jv.isNaN)(V[1])&&(V[1]=Math.random()*o)}),t.positions=T,T.forEach(function(V,z){r[z].x=V[0]+a[0],r[z].y=V[1]+a[1]}),T.forEach(function(V){V[0]-=T[h][0],V[1]-=T[h][1]}),t.run();var C=t.preventOverlap,A=t.nodeSize,M,I=t.strictRadial;if(C){var R=t.nodeSpacing,k;(0,Jv.isNumber)(R)?k=function(){return R}:(0,Jv.isFunction)(R)?k=R:k=function(){return 0},A?(0,Jv.isArray)(A)?M=function(V){var z=A[0]>A[1]?A[0]:A[1];return z+k(V)}:M=function(V){return A+k(V)}:M=function(V){if(V.size){if((0,Jv.isArray)(V.size)){var z=V.size[0]>V.size[1]?V.size[0]:V.size[1];return z+k(V)}if((0,Jv.isObject)(V.size)){var z=V.size.width>V.size.height?V.size.width:V.size.height;return z+k(V)}return V.size+k(V)}return 10+k(V)};var D={nodes:r,nodeSizeFunc:M,adjMatrix:c,positions:T,radii:S,height:g,width:p,strictRadial:I,focusID:h,iterations:t.maxPreventOverlapIteration||200,k:T.length/4.5},G=new Glr.default(D);T=G.layout()}return T.forEach(function(V,z){r[z].x=V[0]+a[0],r[z].y=V[1]+a[1]}),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:r,edges:i}},e.prototype.run=function(){for(var t=this,r=t.maxIteration,i=t.positions||[],a=t.weights||[],o=t.eIdealDistances||[],s=t.radii||[],l=0;l<=r;l++){var u=l/r;t.oneIteration(u,i,s,o,a)}},e.prototype.oneIteration=function(t,r,i,a,o){var s=this,l=1-t,u=s.focusIndex;r.forEach(function(h,c){var f=cEe(h,[0,0]),d=f===0?0:1/f;if(c!==u){var v=0,p=0,g=0;r.forEach(function(y,_){if(c!==_){var x=cEe(h,y),S=x===0?0:1/x,w=a[_][c];g+=o[c][_],v+=o[c][_]*(y[0]+w*(h[0]-y[0])*S),p+=o[c][_]*(y[1]+w*(h[1]-y[1])*S)}});var m=i[c]===0?0:1/i[c];g*=l,g+=t*m*m,v*=l,v+=t*m*h[0]*d,h[0]=v/g,p*=l,p+=t*m*h[1]*d,h[1]=p/g}})},e.prototype.eIdealDisMatrix=function(){var t=this,r=t.nodes;if(!r)return[];var i=t.distances,a=t.linkDistance,o=t.radii||[],s=t.unitRadius||50,l=[];return i&&i.forEach(function(u,h){var c=[];u.forEach(function(f,d){if(h===d)c.push(0);else if(o[h]===o[d])if(t.sortBy==="data")c.push(f*(Math.abs(h-d)*t.sortStrength)/(o[h]/s));else if(t.sortBy){var v=r[h][t.sortBy]||0,p=r[d][t.sortBy]||0;(0,Jv.isString)(v)&&(v=v.charCodeAt(0)),(0,Jv.isString)(p)&&(p=p.charCodeAt(0)),c.push(f*(Math.abs(v-p)*t.sortStrength)/(o[h]/s))}else c.push(f*a/(o[h]/s));else{var g=(a+s)/2;c.push(f*g)}}),l.push(c)}),l},e.prototype.handleInfinity=function(t,r,i){for(var a=t.length,o=0;oi?t[r][a]:i);return i},e.prototype.getType=function(){return"radial"},e}(Flr.Base);CV.RadialLayout=Vlr;(function(n){var e=at&&at.__createBinding||(Object.create?function(r,i,a,o){o===void 0&&(o=a);var s=Object.getOwnPropertyDescriptor(i,a);(!s||("get"in s?!i.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(r,o,s)}:function(r,i,a,o){o===void 0&&(o=a),r[o]=i[a]}),t=at&&at.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&e(i,r,a)};Object.defineProperty(n,"__esModule",{value:!0}),t(CV,n)})(Lle);var lk={},$lr=at&&at.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(lk,"__esModule",{value:!0});lk.ConcentricLayout=void 0;var ay=Dl(),Wlr=Xl,Hlr=function(n){$lr(e,n);function e(t){var r=n.call(this)||this;return r.nodeSize=30,r.minNodeSpacing=10,r.nodeSpacing=10,r.preventOverlap=!1,r.equidistant=!1,r.startAngle=3/2*Math.PI,r.clockwise=!0,r.sortBy="degree",r.nodes=[],r.edges=[],r.width=300,r.height=300,r.onLayoutEnd=function(){},r.updateCfg(t),r}return e.prototype.getDefaultCfg=function(){return{nodeSize:30,minNodeSpacing:10,nodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:3/2*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"}},e.prototype.execute=function(){var t,r,i=this,a=i.nodes,o=i.edges,s=a.length;if(s===0){(t=i.onLayoutEnd)===null||t===void 0||t.call(i);return}!i.width&&typeof window<"u"&&(i.width=window.innerWidth),!i.height&&typeof window<"u"&&(i.height=window.innerHeight),i.center||(i.center=[i.width/2,i.height/2]);var l=i.center;if(s===1){a[0].x=l[0],a[0].y=l[1],(r=i.onLayoutEnd)===null||r===void 0||r.call(i);return}var u=i.nodeSize,h=i.nodeSpacing,c=[],f,d=0;(0,ay.isArray)(u)?f=Math.max(u[0],u[1]):f=u,(0,ay.isArray)(h)?d=Math.max(h[0],h[1]):(0,ay.isNumber)(h)&&(d=h),a.forEach(function(I){c.push(I);var R=f;(0,ay.isArray)(I.size)?R=Math.max(I.size[0],I.size[1]):(0,ay.isNumber)(I.size)?R=I.size:(0,ay.isObject)(I.size)&&(R=Math.max(I.size.width,I.size.height)),f=Math.max(f,R),(0,ay.isFunction)(h)&&(d=Math.max(h(I),d))}),i.clockwise=i.counterclockwise!==void 0?!i.counterclockwise:i.clockwise;var v={},p={};if(c.forEach(function(I,R){v[I.id]=I,p[I.id]=R}),(i.sortBy==="degree"||!(0,ay.isString)(i.sortBy)||c[0][i.sortBy]===void 0)&&(i.sortBy="degree",!(0,ay.isNumber)(a[0].degree))){var g=(0,ay.getDegree)(a.length,p,o);c.forEach(function(I,R){I.degree=g[R].all})}c.sort(function(I,R){return R[i.sortBy]-I[i.sortBy]}),i.maxValueNode=c[0],i.maxLevelDiff=i.maxLevelDiff||i.maxValueNode[i.sortBy]/4;var m=[[]],y=m[0];c.forEach(function(I){if(y.length>0){var R=Math.abs(y[0][i.sortBy]-I[i.sortBy]);i.maxLevelDiff&&R>=i.maxLevelDiff&&(y=[],m.push(y))}y.push(I)});var _=f+(d||i.minNodeSpacing);if(!i.preventOverlap){var x=m.length>0&&m[0].length>1,S=Math.min(i.width,i.height)/2-_,w=S/(m.length+(x?1:0));_=Math.min(_,w)}var b=0;if(m.forEach(function(I){var R=i.sweep;R===void 0&&(R=2*Math.PI-2*Math.PI/I.length);var k=I.dTheta=R/Math.max(1,I.length-1);if(I.length>1&&i.preventOverlap){var D=Math.cos(k)-Math.cos(0),G=Math.sin(k)-Math.sin(0),V=Math.sqrt(_*_/(D*D+G*G));b=Math.max(V,b)}I.r=b,b+=_}),i.equidistant){for(var E=0,T=0,C=0;C"u")return;var f=0;this.timeInterval=window.setInterval(function(){var d;r.runOneStep(h),f++,f>=o&&((d=r.onLayoutEnd)===null||d===void 0||d.call(r),window.clearInterval(r.timeInterval))},0)}return{nodes:i,edges:a}}},e.prototype.runOneStep=function(t){var r,i=this,a=i.nodes;if(!!a){var o=i.edges,s=i.center,l=i.gravity,u=i.speed,h=i.clustering,c=i.height*i.width,f=Math.sqrt(c)/10,d=c/(a.length+1),v=Math.sqrt(d),p=[];if(a.forEach(function(y,_){p[_]={x:0,y:0}}),i.applyCalculate(a,o,p,v,d),h){for(var g in t)t[g].cx=0,t[g].cy=0,t[g].count=0;a.forEach(function(y){var _=t[y.cluster];(0,zl.isNumber)(y.x)&&(_.cx+=y.x),(0,zl.isNumber)(y.y)&&(_.cy+=y.y),_.count++});for(var g in t)t[g].cx/=t[g].count,t[g].cy/=t[g].count;var m=i.clusterGravity||l;a.forEach(function(y,_){if(!(!(0,zl.isNumber)(y.x)||!(0,zl.isNumber)(y.y))){var x=t[y.cluster],S=Math.sqrt((y.x-x.cx)*(y.x-x.cx)+(y.y-x.cy)*(y.y-x.cy)),w=v*m;p[_].x-=w*(y.x-x.cx)/S,p[_].y-=w*(y.y-x.cy)/S}})}a.forEach(function(y,_){if(!(!(0,zl.isNumber)(y.x)||!(0,zl.isNumber)(y.y))){var x=.01*v*l;p[_].x-=x*(y.x-s[0]),p[_].y-=x*(y.y-s[1])}}),a.forEach(function(y,_){if((0,zl.isNumber)(y.fx)&&(0,zl.isNumber)(y.fy)){y.x=y.fx,y.y=y.fy;return}if(!(!(0,zl.isNumber)(y.x)||!(0,zl.isNumber)(y.y))){var x=Math.sqrt(p[_].x*p[_].x+p[_].y*p[_].y);if(x>0){var S=Math.min(f*(u/Klr),x);y.x+=p[_].x/x*S,y.y+=p[_].y/x*S}}}),(r=i.tick)===null||r===void 0||r.call(i)}},e.prototype.applyCalculate=function(t,r,i,a,o){var s=this;s.calRepulsive(t,i,o),r&&s.calAttractive(r,i,a)},e.prototype.calRepulsive=function(t,r,i){t.forEach(function(a,o){r[o]={x:0,y:0},t.forEach(function(s,l){if(o!==l&&!(!(0,zl.isNumber)(a.x)||!(0,zl.isNumber)(s.x)||!(0,zl.isNumber)(a.y)||!(0,zl.isNumber)(s.y))){var u=a.x-s.x,h=a.y-s.y,c=u*u+h*h;if(c===0){c=1;var f=o>l?1:-1;u=.01*f,h=.01*f}var d=i/c;r[o].x+=u*d,r[o].y+=h*d}})})},e.prototype.calAttractive=function(t,r,i){var a=this;t.forEach(function(o){var s=(0,zl.getEdgeTerminal)(o,"source"),l=(0,zl.getEdgeTerminal)(o,"target");if(!(!s||!l)){var u=a.nodeIdxMap[s],h=a.nodeIdxMap[l];if(u!==h){var c=a.nodeMap[s],f=a.nodeMap[l];if(!(!(0,zl.isNumber)(f.x)||!(0,zl.isNumber)(c.x)||!(0,zl.isNumber)(f.y)||!(0,zl.isNumber)(c.y))){var d=f.x-c.x,v=f.y-c.y,p=Math.sqrt(d*d+v*v),g=p*p/i;r[h].x-=d/p*g,r[h].y-=v/p*g,r[u].x+=d/p*g,r[u].y+=v/p*g}}}})},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"fruchterman"},e}(Zlr.Base);hk.FruchtermanLayout=Jlr;var ck={};function fEe(n,e,t,r,i,a,o){try{var s=n[a](o),l=s.value}catch(u){return void t(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function Vc(n){return function(){var e=this,t=arguments;return new Promise(function(r,i){var a=n.apply(e,t);function o(l){fEe(a,r,i,o,s,"next",l)}function s(l){fEe(a,r,i,o,s,"throw",l)}o(void 0)})}}function BM(n){return BM=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BM(n)}function Qlr(n,e){if(BM(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(BM(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function pHe(n){var e=Qlr(n,"string");return BM(e)=="symbol"?e:e+""}function Lr(n,e,t){return(e=pHe(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function z0(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function dEe(n,e){for(var t=0;t-1&&n%1==0&&n<=xur}var wur=Sur;function bur(n){return n!=null&&typeof n=="object"}var Dle=bur,Eur=Rle,Tur=wur,Cur=Dle,Aur="[object Arguments]",Mur="[object Array]",Iur="[object Boolean]",Lur="[object Date]",Pur="[object Error]",Our="[object Function]",Rur="[object Map]",Dur="[object Number]",Nur="[object Object]",kur="[object RegExp]",Fur="[object Set]",Bur="[object String]",Gur="[object WeakMap]",zur="[object ArrayBuffer]",Uur="[object DataView]",Vur="[object Float32Array]",$ur="[object Float64Array]",Wur="[object Int8Array]",Hur="[object Int16Array]",jur="[object Int32Array]",Xur="[object Uint8Array]",Yur="[object Uint8ClampedArray]",qur="[object Uint16Array]",Zur="[object Uint32Array]",qs={};qs[Vur]=qs[$ur]=qs[Wur]=qs[Hur]=qs[jur]=qs[Xur]=qs[Yur]=qs[qur]=qs[Zur]=!0;qs[Aur]=qs[Mur]=qs[zur]=qs[Iur]=qs[Uur]=qs[Lur]=qs[Pur]=qs[Our]=qs[Rur]=qs[Dur]=qs[Nur]=qs[kur]=qs[Fur]=qs[Bur]=qs[Gur]=!1;function Kur(n){return Cur(n)&&Tur(n.length)&&!!qs[Eur(n)]}var Jur=Kur;function Qur(n){return function(e){return n(e)}}var ehr=Qur,Zee={exports:{}};(function(n,e){var t=gHe,r=e&&!e.nodeType&&e,i=r&&!0&&n&&!n.nodeType&&n,a=i&&i.exports===r,o=a&&t.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();n.exports=s})(Zee,Zee.exports);var thr=Jur,rhr=ehr,yEe=Zee.exports,mEe=yEe&&yEe.isTypedArray,nhr=mEe?rhr(mEe):thr,V9=nhr,ihr=Rle,ahr=Dle,ohr="[object Number]";function shr(n){return typeof n=="number"||ahr(n)&&ihr(n)==ohr}var lhr=shr,uhr=Array.isArray,hhr=uhr,_He={exports:{}},Nle={exports:{}};(function(n){function e(t,r){this.v=t,this.k=r}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(Nle);var kle={exports:{}},Fle={exports:{}};(function(n){function e(t,r,i,a){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}n.exports=e=function(l,u,h,c){if(u)o?o(l,u,{value:h,enumerable:!c,configurable:!c,writable:!c}):l[u]=h;else{var f=function(v,p){e(l,v,function(g){return this._invoke(v,p,g)})};f("next",0),f("throw",1),f("return",2)}},n.exports.__esModule=!0,n.exports.default=n.exports,e(t,r,i,a)}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(Fle);(function(n){var e=Fle.exports;function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var r,i,a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",s=a.toStringTag||"@@toStringTag";function l(g,m,y,_){var x=m&&m.prototype instanceof h?m:h,S=Object.create(x.prototype);return e(S,"_invoke",function(w,b,E){var T,C,A,M=0,I=E||[],R=!1,k={p:0,n:0,v:r,a:D,f:D.bind(r,4),d:function(V,z){return T=V,C=0,A=r,k.n=z,u}};function D(G,V){for(C=G,A=V,i=0;!R&&M&&!z&&i3?(z=Y===V)&&(A=j[(C=j[4])?5:(C=3,3)],j[4]=j[5]=r):j[0]<=Z&&((z=G<2&&ZV||V>Y)&&(j[4]=G,j[5]=V,k.n=Y,C=0))}if(z||G>1)return u;throw R=!0,V}return function(G,V,z){if(M>1)throw TypeError("Generator is already running");for(R&&V===1&&D(V,z),C=V,A=z;(i=C<2?r:A)||!R;){T||(C?C<3?(C>1&&(k.n=-1),D(C,A)):k.n=A:k.v=A);try{if(M=2,T){if(C||(G="next"),i=T[G]){if(!(i=i.call(T,A)))throw TypeError("iterator result is not an object");if(!i.done)return i;A=i.value,C<2&&(C=0)}else C===1&&(i=T.return)&&i.call(T),C<2&&(A=TypeError("The iterator does not provide a '"+G+"' method"),C=1);T=r}else if((i=(R=k.n<0)?A:w.call(b,k))!==u)break}catch(j){T=r,C=1,A=j}finally{M=1}}return{value:i,done:R}}}(g,y,_),!0),S}var u={};function h(){}function c(){}function f(){}i=Object.getPrototypeOf;var d=[][o]?i(i([][o]())):(e(i={},o,function(){return this}),i),v=f.prototype=h.prototype=Object.create(d);function p(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,f):(g.__proto__=f,e(g,s,"GeneratorFunction")),g.prototype=Object.create(v),g}return c.prototype=f,e(v,"constructor",f),e(f,"constructor",c),c.displayName="GeneratorFunction",e(f,s,"GeneratorFunction"),e(v),e(v,s,"Generator"),e(v,o,function(){return this}),e(v,"toString",function(){return"[object Generator]"}),(n.exports=t=function(){return{w:l,m:p}},n.exports.__esModule=!0,n.exports.default=n.exports)()}n.exports=t,n.exports.__esModule=!0,n.exports.default=n.exports})(kle);var xHe={exports:{}},Ble={exports:{}},Gle={exports:{}};(function(n){var e=Nle.exports,t=Fle.exports;function r(i,a){function o(l,u,h,c){try{var f=i[l](u),d=f.value;return d instanceof e?a.resolve(d.v).then(function(v){o("next",v,h,c)},function(v){o("throw",v,h,c)}):a.resolve(d).then(function(v){f.value=v,h(f)},function(v){return o("throw",v,h,c)})}catch(v){c(v)}}var s;this.next||(t(r.prototype),t(r.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),t(this,"_invoke",function(l,u,h){function c(){return new a(function(f,d){o(l,h,f,d)})}return s=s?s.then(c,c):c()},!0)}n.exports=r,n.exports.__esModule=!0,n.exports.default=n.exports})(Gle);(function(n){var e=kle.exports,t=Gle.exports;function r(i,a,o,s,l){return new t(e().w(i,a,o,s),l||Promise)}n.exports=r,n.exports.__esModule=!0,n.exports.default=n.exports})(Ble);(function(n){var e=Ble.exports;function t(r,i,a,o,s){var l=e(r,i,a,o,s);return l.next().then(function(u){return u.done?u.value:l.next()})}n.exports=t,n.exports.__esModule=!0,n.exports.default=n.exports})(xHe);var SHe={exports:{}};(function(n){function e(t){var r=Object(t),i=[];for(var a in r)i.unshift(a);return function o(){for(;i.length;)if((a=i.pop())in r)return o.value=a,o.done=!1,o;return o.done=!0,o}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(SHe);var wHe={exports:{}},bHe={exports:{}};(function(n){function e(t){return n.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},n.exports.__esModule=!0,n.exports.default=n.exports,e(t)}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(bHe);(function(n){var e=bHe.exports.default;function t(r){if(r!=null){var i=r[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],a=0;if(i)return i.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length))return{next:function(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}}}throw new TypeError(e(r)+" is not iterable")}n.exports=t,n.exports.__esModule=!0,n.exports.default=n.exports})(wHe);(function(n){var e=Nle.exports,t=kle.exports,r=xHe.exports,i=Ble.exports,a=Gle.exports,o=SHe.exports,s=wHe.exports;function l(){var u=t(),h=u.m(l),c=(Object.getPrototypeOf?Object.getPrototypeOf(h):h.__proto__).constructor;function f(p){var g=typeof p=="function"&&p.constructor;return!!g&&(g===c||(g.displayName||g.name)==="GeneratorFunction")}var d={throw:1,return:2,break:3,continue:3};function v(p){var g,m;return function(y){g||(g={stop:function(){return m(y.a,2)},catch:function(){return y.v},abrupt:function(x,S){return m(y.a,d[x],S)},delegateYield:function(x,S,w){return g.resultName=S,m(y.d,s(x),w)},finish:function(x){return m(y.f,x)}},m=function(x,S,w){y.p=g.prev,y.n=g.next;try{return x(S,w)}finally{g.next=y.n}}),g.resultName&&(g[g.resultName]=y.v,g.resultName=void 0),g.sent=y.v,g.next=y.n;try{return p.call(this,g)}finally{y.p=g.prev,y.n=g.next}}}return(n.exports=l=function(){return{wrap:function(m,y,_,x){return u.w(v(m),y,_,x&&x.reverse())},isGeneratorFunction:f,mark:u.m,awrap:function(m,y){return new e(m,y)},AsyncIterator:a,async:function(m,y,_,x,S){return(f(y)?i:r)(v(m),y,_,x,S)},keys:o,values:s}},n.exports.__esModule=!0,n.exports.default=n.exports)()}n.exports=l,n.exports.__esModule=!0,n.exports.default=n.exports})(_He);var a8=_He.exports(),Rc=a8;try{regeneratorRuntime=a8}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=a8:Function("r","regeneratorRuntime = r")(a8)}var chr=1;function EHe(){return chr++}var Qt;(function(n){n[n.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",n[n.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",n[n.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",n[n.POINTS=0]="POINTS",n[n.LINES=1]="LINES",n[n.LINE_LOOP=2]="LINE_LOOP",n[n.LINE_STRIP=3]="LINE_STRIP",n[n.TRIANGLES=4]="TRIANGLES",n[n.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",n[n.TRIANGLE_FAN=6]="TRIANGLE_FAN",n[n.ZERO=0]="ZERO",n[n.ONE=1]="ONE",n[n.SRC_COLOR=768]="SRC_COLOR",n[n.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",n[n.SRC_ALPHA=770]="SRC_ALPHA",n[n.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",n[n.DST_ALPHA=772]="DST_ALPHA",n[n.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",n[n.DST_COLOR=774]="DST_COLOR",n[n.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",n[n.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",n[n.FUNC_ADD=32774]="FUNC_ADD",n[n.BLEND_EQUATION=32777]="BLEND_EQUATION",n[n.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",n[n.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",n[n.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",n[n.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",n[n.MAX_EXT=32776]="MAX_EXT",n[n.MIN_EXT=32775]="MIN_EXT",n[n.BLEND_DST_RGB=32968]="BLEND_DST_RGB",n[n.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",n[n.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",n[n.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",n[n.CONSTANT_COLOR=32769]="CONSTANT_COLOR",n[n.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",n[n.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",n[n.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",n[n.BLEND_COLOR=32773]="BLEND_COLOR",n[n.ARRAY_BUFFER=34962]="ARRAY_BUFFER",n[n.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",n[n.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",n[n.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",n[n.STREAM_DRAW=35040]="STREAM_DRAW",n[n.STATIC_DRAW=35044]="STATIC_DRAW",n[n.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",n[n.BUFFER_SIZE=34660]="BUFFER_SIZE",n[n.BUFFER_USAGE=34661]="BUFFER_USAGE",n[n.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",n[n.FRONT=1028]="FRONT",n[n.BACK=1029]="BACK",n[n.FRONT_AND_BACK=1032]="FRONT_AND_BACK",n[n.CULL_FACE=2884]="CULL_FACE",n[n.BLEND=3042]="BLEND",n[n.DITHER=3024]="DITHER",n[n.STENCIL_TEST=2960]="STENCIL_TEST",n[n.DEPTH_TEST=2929]="DEPTH_TEST",n[n.SCISSOR_TEST=3089]="SCISSOR_TEST",n[n.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",n[n.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",n[n.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",n[n.NO_ERROR=0]="NO_ERROR",n[n.INVALID_ENUM=1280]="INVALID_ENUM",n[n.INVALID_VALUE=1281]="INVALID_VALUE",n[n.INVALID_OPERATION=1282]="INVALID_OPERATION",n[n.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",n[n.CW=2304]="CW",n[n.CCW=2305]="CCW",n[n.LINE_WIDTH=2849]="LINE_WIDTH",n[n.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",n[n.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",n[n.CULL_FACE_MODE=2885]="CULL_FACE_MODE",n[n.FRONT_FACE=2886]="FRONT_FACE",n[n.DEPTH_RANGE=2928]="DEPTH_RANGE",n[n.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",n[n.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",n[n.DEPTH_FUNC=2932]="DEPTH_FUNC",n[n.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",n[n.STENCIL_FUNC=2962]="STENCIL_FUNC",n[n.STENCIL_FAIL=2964]="STENCIL_FAIL",n[n.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",n[n.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",n[n.STENCIL_REF=2967]="STENCIL_REF",n[n.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",n[n.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",n[n.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",n[n.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",n[n.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",n[n.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",n[n.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",n[n.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",n[n.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",n[n.VIEWPORT=2978]="VIEWPORT",n[n.SCISSOR_BOX=3088]="SCISSOR_BOX",n[n.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",n[n.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",n[n.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",n[n.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",n[n.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",n[n.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",n[n.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",n[n.RED_BITS=3410]="RED_BITS",n[n.GREEN_BITS=3411]="GREEN_BITS",n[n.BLUE_BITS=3412]="BLUE_BITS",n[n.ALPHA_BITS=3413]="ALPHA_BITS",n[n.DEPTH_BITS=3414]="DEPTH_BITS",n[n.STENCIL_BITS=3415]="STENCIL_BITS",n[n.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",n[n.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",n[n.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",n[n.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",n[n.SAMPLES=32937]="SAMPLES",n[n.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",n[n.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",n[n.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",n[n.DONT_CARE=4352]="DONT_CARE",n[n.FASTEST=4353]="FASTEST",n[n.NICEST=4354]="NICEST",n[n.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",n[n.BYTE=5120]="BYTE",n[n.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",n[n.SHORT=5122]="SHORT",n[n.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",n[n.INT=5124]="INT",n[n.UNSIGNED_INT=5125]="UNSIGNED_INT",n[n.FLOAT=5126]="FLOAT",n[n.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",n[n.ALPHA=6406]="ALPHA",n[n.RGB=6407]="RGB",n[n.RGBA=6408]="RGBA",n[n.LUMINANCE=6409]="LUMINANCE",n[n.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",n[n.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",n[n.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",n[n.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",n[n.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",n[n.VERTEX_SHADER=35633]="VERTEX_SHADER",n[n.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",n[n.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",n[n.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",n[n.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",n[n.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",n[n.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",n[n.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",n[n.SHADER_TYPE=35663]="SHADER_TYPE",n[n.DELETE_STATUS=35712]="DELETE_STATUS",n[n.LINK_STATUS=35714]="LINK_STATUS",n[n.VALIDATE_STATUS=35715]="VALIDATE_STATUS",n[n.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",n[n.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",n[n.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",n[n.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",n[n.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",n[n.NEVER=512]="NEVER",n[n.LESS=513]="LESS",n[n.EQUAL=514]="EQUAL",n[n.LEQUAL=515]="LEQUAL",n[n.GREATER=516]="GREATER",n[n.NOTEQUAL=517]="NOTEQUAL",n[n.GEQUAL=518]="GEQUAL",n[n.ALWAYS=519]="ALWAYS",n[n.KEEP=7680]="KEEP",n[n.REPLACE=7681]="REPLACE",n[n.INCR=7682]="INCR",n[n.DECR=7683]="DECR",n[n.INVERT=5386]="INVERT",n[n.INCR_WRAP=34055]="INCR_WRAP",n[n.DECR_WRAP=34056]="DECR_WRAP",n[n.VENDOR=7936]="VENDOR",n[n.RENDERER=7937]="RENDERER",n[n.VERSION=7938]="VERSION",n[n.NEAREST=9728]="NEAREST",n[n.LINEAR=9729]="LINEAR",n[n.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",n[n.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",n[n.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",n[n.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",n[n.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",n[n.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",n[n.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",n[n.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",n[n.TEXTURE_2D=3553]="TEXTURE_2D",n[n.TEXTURE=5890]="TEXTURE",n[n.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",n[n.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",n[n.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",n[n.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",n[n.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",n[n.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",n[n.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",n[n.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",n[n.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",n[n.TEXTURE0=33984]="TEXTURE0",n[n.TEXTURE1=33985]="TEXTURE1",n[n.TEXTURE2=33986]="TEXTURE2",n[n.TEXTURE3=33987]="TEXTURE3",n[n.TEXTURE4=33988]="TEXTURE4",n[n.TEXTURE5=33989]="TEXTURE5",n[n.TEXTURE6=33990]="TEXTURE6",n[n.TEXTURE7=33991]="TEXTURE7",n[n.TEXTURE8=33992]="TEXTURE8",n[n.TEXTURE9=33993]="TEXTURE9",n[n.TEXTURE10=33994]="TEXTURE10",n[n.TEXTURE11=33995]="TEXTURE11",n[n.TEXTURE12=33996]="TEXTURE12",n[n.TEXTURE13=33997]="TEXTURE13",n[n.TEXTURE14=33998]="TEXTURE14",n[n.TEXTURE15=33999]="TEXTURE15",n[n.TEXTURE16=34e3]="TEXTURE16",n[n.TEXTURE17=34001]="TEXTURE17",n[n.TEXTURE18=34002]="TEXTURE18",n[n.TEXTURE19=34003]="TEXTURE19",n[n.TEXTURE20=34004]="TEXTURE20",n[n.TEXTURE21=34005]="TEXTURE21",n[n.TEXTURE22=34006]="TEXTURE22",n[n.TEXTURE23=34007]="TEXTURE23",n[n.TEXTURE24=34008]="TEXTURE24",n[n.TEXTURE25=34009]="TEXTURE25",n[n.TEXTURE26=34010]="TEXTURE26",n[n.TEXTURE27=34011]="TEXTURE27",n[n.TEXTURE28=34012]="TEXTURE28",n[n.TEXTURE29=34013]="TEXTURE29",n[n.TEXTURE30=34014]="TEXTURE30",n[n.TEXTURE31=34015]="TEXTURE31",n[n.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",n[n.REPEAT=10497]="REPEAT",n[n.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",n[n.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",n[n.FLOAT_VEC2=35664]="FLOAT_VEC2",n[n.FLOAT_VEC3=35665]="FLOAT_VEC3",n[n.FLOAT_VEC4=35666]="FLOAT_VEC4",n[n.INT_VEC2=35667]="INT_VEC2",n[n.INT_VEC3=35668]="INT_VEC3",n[n.INT_VEC4=35669]="INT_VEC4",n[n.BOOL=35670]="BOOL",n[n.BOOL_VEC2=35671]="BOOL_VEC2",n[n.BOOL_VEC3=35672]="BOOL_VEC3",n[n.BOOL_VEC4=35673]="BOOL_VEC4",n[n.FLOAT_MAT2=35674]="FLOAT_MAT2",n[n.FLOAT_MAT3=35675]="FLOAT_MAT3",n[n.FLOAT_MAT4=35676]="FLOAT_MAT4",n[n.SAMPLER_2D=35678]="SAMPLER_2D",n[n.SAMPLER_CUBE=35680]="SAMPLER_CUBE",n[n.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",n[n.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",n[n.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",n[n.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",n[n.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",n[n.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",n[n.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",n[n.COMPILE_STATUS=35713]="COMPILE_STATUS",n[n.LOW_FLOAT=36336]="LOW_FLOAT",n[n.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",n[n.HIGH_FLOAT=36338]="HIGH_FLOAT",n[n.LOW_INT=36339]="LOW_INT",n[n.MEDIUM_INT=36340]="MEDIUM_INT",n[n.HIGH_INT=36341]="HIGH_INT",n[n.FRAMEBUFFER=36160]="FRAMEBUFFER",n[n.RENDERBUFFER=36161]="RENDERBUFFER",n[n.RGBA4=32854]="RGBA4",n[n.RGB5_A1=32855]="RGB5_A1",n[n.RGB565=36194]="RGB565",n[n.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",n[n.STENCIL_INDEX=6401]="STENCIL_INDEX",n[n.STENCIL_INDEX8=36168]="STENCIL_INDEX8",n[n.DEPTH_STENCIL=34041]="DEPTH_STENCIL",n[n.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",n[n.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",n[n.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",n[n.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",n[n.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",n[n.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",n[n.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",n[n.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",n[n.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",n[n.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",n[n.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",n[n.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",n[n.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",n[n.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",n[n.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",n[n.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",n[n.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",n[n.NONE=0]="NONE",n[n.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",n[n.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",n[n.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",n[n.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",n[n.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",n[n.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",n[n.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",n[n.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",n[n.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",n[n.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",n[n.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",n[n.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",n[n.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",n[n.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",n[n.COPY_SRC=1]="COPY_SRC",n[n.COPY_DST=2]="COPY_DST",n[n.SAMPLED=4]="SAMPLED",n[n.STORAGE=8]="STORAGE",n[n.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"})(Qt||(Qt={}));var fhr=function(){function n(){z0(this,n),this.config=void 0}return U0(n,[{key:"get",value:function(){return this.config}},{key:"set",value:function(t){this.config=t}}]),n}();typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent);var rN;(function(n){n.Void="Void",n.Boolean="Boolean",n.Float="Float",n.Uint32="Uint32",n.Int32="Int32",n.Vector="Vector",n.Vector2Float="vec2",n.Vector3Float="vec3",n.Vector4Float="vec4",n.Vector2Boolean="vec2",n.Vector3Boolean="vec3",n.Vector4Boolean="vec4",n.Vector2Uint="vec2",n.Vector3Uint="vec3",n.Vector4Uint="vec4",n.Vector2Int="vec2",n.Vector3Int="vec3",n.Vector4Int="vec4",n.Matrix="Matrix",n.Matrix3x3Float="mat3x3",n.Matrix4x4Float="mat4x4",n.Struct="Struct",n.FloatArray="Float[]",n.Vector4FloatArray="vec4[]"})(rN||(rN={}));var _Ee;(function(n){n.Program="Program",n.Identifier="Identifier",n.VariableDeclaration="VariableDeclaration",n.BlockStatement="BlockStatement",n.ReturnStatement="ReturnStatement",n.FunctionDeclaration="FunctionDeclaration",n.VariableDeclarator="VariableDeclarator",n.AssignmentExpression="AssignmentExpression",n.LogicalExpression="LogicalExpression",n.BinaryExpression="BinaryExpression",n.ArrayExpression="ArrayExpression",n.UnaryExpression="UnaryExpression",n.UpdateExpression="UpdateExpression",n.FunctionExpression="FunctionExpression",n.MemberExpression="MemberExpression",n.ConditionalExpression="ConditionalExpression",n.ExpressionStatement="ExpressionStatement",n.CallExpression="CallExpression",n.NumThreadStatement="NumThreadStatement",n.StorageStatement="StorageStatement",n.DoWhileStatement="DoWhileStatement",n.WhileStatement="WhileStatement",n.ForStatement="ForStatement",n.BreakStatement="BreakStatement",n.ContinueStatement="ContinueStatement",n.IfStatement="IfStatement",n.ImportedFunctionStatement="ImportedFunctionStatement"})(_Ee||(_Ee={}));var GM;(function(n){n.Input="Input",n.Output="Output",n.Uniform="Uniform",n.Workgroup="Workgroup",n.UniformConstant="UniformConstant",n.Image="Image",n.StorageBuffer="StorageBuffer",n.Private="Private",n.Function="Function"})(GM||(GM={}));var SR;(function(n){n.GLSL100="GLSL100",n.GLSL450="GLSL450",n.WGSL="WGSL"})(SR||(SR={}));var dhr="__DefineValuePlaceholder__";function vhr(){if(typeof document<"u")return document.createElement("canvas");throw new Error("Cannot create a canvas in this context")}function xEe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function SEe(n){for(var e=1;e0&&s[0]!==void 0?s[0]:1,!this.dirty){u.next=6;break}return this.compiledBundle.context&&(a>1?this.compiledBundle.context.maxIteration=a:this.compiledBundle.context.maxIteration++),u.next=5,this.compile();case 5:this.dirty=!1;case 6:for(this.engine.beginFrame(),this.engine.clear({}),this.compiledBundle.context&&this.compiledBundle.context.uniforms.filter(function(h){var c=h.isReferer;return c}).forEach(function(h){var c=h.data,f=h.name;i.model.confirmInput(c.model,f)}),o=0;o"u";case"symbol":return typeof K=="symbol"}}function f(K,ge,Pe){c(K,ge)||o("invalid parameter type"+l(Pe)+". expected "+ge+", got "+typeof K)}function d(K,ge){K>=0&&(K|0)===K||o("invalid parameter type, ("+K+")"+l(ge)+". must be a nonnegative integer")}function v(K,ge,Pe){ge.indexOf(K)<0&&o("invalid value"+l(Pe)+". must be one of: "+ge)}var p=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function g(K){Object.keys(K).forEach(function(ge){p.indexOf(ge)<0&&o('invalid regl constructor argument "'+ge+'". must be one of '+p)})}function m(K,ge){for(K=K+"";K.length0&&ge.push(new x("unknown",0,Pe))}}),ge}function T(K,ge){ge.forEach(function(Pe){var ct=K[Pe.file];if(ct){var Ot=ct.index[Pe.line];if(Ot){Ot.errors.push(Pe),ct.hasErrors=!0;return}}K.unknown.hasErrors=!0,K.unknown.lines[0].errors.push(Pe)})}function C(K,ge,Pe,ct,Ot){if(!K.getShaderParameter(ge,K.COMPILE_STATUS)){var lt=K.getShaderInfoLog(ge),xt=ct===K.FRAGMENT_SHADER?"fragment":"vertex";G(Pe,"string",xt+" shader source must be a string",Ot);var Kt=b(Pe,Ot),er=E(lt);T(Kt,er),Object.keys(Kt).forEach(function(lr){var tr=Kt[lr];if(!tr.hasErrors)return;var dr=[""],Er=[""];function Jt(pr,Ye){dr.push(pr),Er.push(Ye||"")}Jt("file number "+lr+": "+tr.name+` +`,"color:red;text-decoration:underline;font-weight:bold"),tr.lines.forEach(function(pr){if(pr.errors.length>0){Jt(m(pr.number,4)+"| ","background-color:yellow; font-weight:bold"),Jt(pr.line+i,"color:red; background-color:yellow; font-weight:bold");var Ye=0;pr.errors.forEach(function(St){var or=St.message,Mr=/^\s*'(.*)'\s*:\s*(.*)$/.exec(or);if(Mr){var Wt=Mr[1];switch(or=Mr[2],Wt){case"assign":Wt="=";break}Ye=Math.max(pr.line.indexOf(Wt,Ye),0)}else Ye=0;Jt(m("| ",6)),Jt(m("^^^",Ye+3)+i,"font-weight:bold"),Jt(m("| ",6)),Jt(or+i,"font-weight:bold")}),Jt(m("| ",6)+i)}else Jt(m(pr.number,4)+"| "),Jt(pr.line+i,"color:red")}),typeof document<"u"&&!window.chrome?(Er[0]=dr.join("%c"),console.log.apply(console,Er)):console.log(dr.join(""))}),s.raise("Error compiling "+xt+" shader, "+Kt[0].name)}}function A(K,ge,Pe,ct,Ot){if(!K.getProgramParameter(ge,K.LINK_STATUS)){var lt=K.getProgramInfoLog(ge),xt=b(Pe,Ot),Kt=b(ct,Ot),er='Error linking program with vertex shader, "'+Kt[0].name+'", and fragment shader "'+xt[0].name+'"';typeof document<"u"?console.log("%c"+er+i+"%c"+lt,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(er+i+lt),s.raise(er)}}function M(K){K._commandRef=S()}function I(K,ge,Pe,ct){M(K);function Ot(er){return er?ct.id(er):0}K._fragId=Ot(K.static.frag),K._vertId=Ot(K.static.vert);function lt(er,lr){Object.keys(lr).forEach(function(tr){er[ct.id(tr)]=!0})}var xt=K._uniformSet={};lt(xt,ge.static),lt(xt,ge.dynamic);var Kt=K._attributeSet={};lt(Kt,Pe.static),lt(Kt,Pe.dynamic),K._hasCount="count"in K.static||"count"in K.dynamic||"elements"in K.static||"elements"in K.dynamic}function R(K,ge){var Pe=w();o(K+" in command "+(ge||S())+(Pe==="unknown"?"":" called from "+Pe))}function k(K,ge,Pe){K||R(ge,Pe||S())}function D(K,ge,Pe,ct){K in ge||R("unknown parameter ("+K+")"+l(Pe)+". possible values: "+Object.keys(ge).join(),ct||S())}function G(K,ge,Pe,ct){c(K,ge)||R("invalid parameter type"+l(Pe)+". expected "+ge+", got "+typeof K,ct||S())}function V(K){K()}function z(K,ge,Pe){K.texture?v(K.texture._texture.internalformat,ge,"unsupported texture format for attachment"):v(K.renderbuffer._renderbuffer.format,Pe,"unsupported renderbuffer format for attachment")}var j=33071,Z=9728,Y=9984,le=9985,H=9986,Q=9987,ie=5120,oe=5121,se=5122,me=5123,Ce=5124,Le=5125,re=5126,yt=32819,je=32820,st=33635,Nt=34042,Zt=36193,qe={};qe[ie]=qe[oe]=1,qe[se]=qe[me]=qe[Zt]=qe[st]=qe[yt]=qe[je]=2,qe[Ce]=qe[Le]=qe[re]=qe[Nt]=4;function ur(K,ge){return K===je||K===yt||K===st?2:K===Nt?4:qe[K]*ge}function Dt(K){return!(K&K-1)&&!!K}function ft(K,ge,Pe){var ct,Ot=ge.width,lt=ge.height,xt=ge.channels;s(Ot>0&&Ot<=Pe.maxTextureSize&<>0&<<=Pe.maxTextureSize,"invalid texture shape"),(K.wrapS!==j||K.wrapT!==j)&&s(Dt(Ot)&&Dt(lt),"incompatible wrap mode for texture, both width and height must be power of 2"),ge.mipmask===1?Ot!==1&<!==1&&s(K.minFilter!==Y&&K.minFilter!==H&&K.minFilter!==le&&K.minFilter!==Q,"min filter requires mipmap"):(s(Dt(Ot)&&Dt(lt),"texture must be a square power of 2 to support mipmapping"),s(ge.mipmask===(Ot<<1)-1,"missing or incomplete mipmap data")),ge.type===re&&(Pe.extensions.indexOf("oes_texture_float_linear")<0&&s(K.minFilter===Z&&K.magFilter===Z,"filter not supported, must enable oes_texture_float_linear"),s(!K.genMipmaps,"mipmap generation not supported with float textures"));var Kt=ge.images;for(ct=0;ct<16;++ct)if(Kt[ct]){var er=Ot>>ct,lr=lt>>ct;s(ge.mipmask&1<0&&Ot<=ct.maxTextureSize&<>0&<<=ct.maxTextureSize,"invalid texture shape"),s(Ot===lt,"cube map must be square"),s(ge.wrapS===j&&ge.wrapT===j,"wrap mode not supported by cube map");for(var Kt=0;Kt>tr,Jt=lt>>tr;s(er.mipmask&1<1&&ge===Pe&&(ge==='"'||ge==="'"))return['"'+wt(K.substr(1,K.length-2))+'"'];var ct=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(K);if(ct)return pt(K.substr(0,ct.index)).concat(pt(ct[1])).concat(pt(K.substr(ct.index+ct[0].length)));var Ot=K.split(".");if(Ot.length===1)return['"'+wt(K)+'"'];for(var lt=[],xt=0;xtSr(Pe,ge+"["+ct+"]")));if(K instanceof mt)return K;J(!1,"invalid option type in uniform "+ge)}var jr={DynamicVariable:mt,define:kt,isDynamic:Dr,unbox:Sr,accessor:ar},pn={next:typeof requestAnimationFrame=="function"?function(K){return requestAnimationFrame(K)}:function(K){return setTimeout(K,16)},cancel:typeof cancelAnimationFrame=="function"?function(K){return cancelAnimationFrame(K)}:clearTimeout},Jn=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function Rn(){var K={"":0},ge=[""];return{id:function(Pe){var ct=K[Pe];return ct||(ct=K[Pe]=ge.length,ge.push(Pe),ct)},str:function(Pe){return ge[Pe]}}}function hi(K,ge,Pe){var ct=document.createElement("canvas");r(ct.style,{border:0,margin:0,padding:0,top:0,left:0}),K.appendChild(ct),K===document.body&&(ct.style.position="absolute",r(K.style,{margin:0,padding:0}));function Ot(){var Kt=window.innerWidth,er=window.innerHeight;if(K!==document.body){var lr=K.getBoundingClientRect();Kt=lr.right-lr.left,er=lr.bottom-lr.top}ct.width=Pe*Kt,ct.height=Pe*er,r(ct.style,{width:Kt+"px",height:er+"px"})}var lt;K!==document.body&&typeof ResizeObserver=="function"?(lt=new ResizeObserver(function(){setTimeout(Ot)}),lt.observe(K)):window.addEventListener("resize",Ot,!1);function xt(){lt?lt.disconnect():window.removeEventListener("resize",Ot),K.removeChild(ct)}return Ot(),{canvas:ct,onDestroy:xt}}function yn(K,ge){function Pe(ct){try{return K.getContext(ct,ge)}catch{return null}}return Pe("webgl")||Pe("experimental-webgl")||Pe("webgl-experimental")}function Oi(K){return typeof K.nodeName=="string"&&typeof K.appendChild=="function"&&typeof K.getBoundingClientRect=="function"}function oi(K){return typeof K.drawArrays=="function"||typeof K.drawElements=="function"}function Gi(K){return typeof K=="string"?K.split():(J(Array.isArray(K),"invalid extension array"),K)}function ws(K){return typeof K=="string"?(J(typeof document<"u","not supported outside of DOM"),document.querySelector(K)):K}function xl(K){var ge=K||{},Pe,ct,Ot,lt,xt={},Kt=[],er=[],lr=typeof window>"u"?1:window.devicePixelRatio,tr=!1,dr=function(pr){pr&&J.raise(pr)},Er=function(){};if(typeof ge=="string"?(J(typeof document<"u","selector queries only supported in DOM enviroments"),Pe=document.querySelector(ge),J(Pe,"invalid query string for element")):typeof ge=="object"?Oi(ge)?Pe=ge:oi(ge)?(lt=ge,Ot=lt.canvas):(J.constructor(ge),"gl"in ge?lt=ge.gl:"canvas"in ge?Ot=ws(ge.canvas):"container"in ge&&(ct=ws(ge.container)),"attributes"in ge&&(xt=ge.attributes,J.type(xt,"object","invalid context attributes")),"extensions"in ge&&(Kt=Gi(ge.extensions)),"optionalExtensions"in ge&&(er=Gi(ge.optionalExtensions)),"onDone"in ge&&(J.type(ge.onDone,"function","invalid or missing onDone callback"),dr=ge.onDone),"profile"in ge&&(tr=!!ge.profile),"pixelRatio"in ge&&(lr=+ge.pixelRatio,J(lr>0,"invalid pixel ratio"))):J.raise("invalid arguments to regl"),Pe&&(Pe.nodeName.toLowerCase()==="canvas"?Ot=Pe:ct=Pe),!lt){if(!Ot){J(typeof document<"u","must manually specify webgl context outside of DOM environments");var Jt=hi(ct||document.body,dr,lr);if(!Jt)return null;Ot=Jt.canvas,Er=Jt.onDestroy}xt.premultipliedAlpha===void 0&&(xt.premultipliedAlpha=!0),lt=yn(Ot,xt)}return lt?{gl:lt,canvas:Ot,container:ct,extensions:Kt,optionalExtensions:er,pixelRatio:lr,profile:tr,onDone:dr,onDestroy:Er}:(Er(),dr("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function Os(K,ge){var Pe={};function ct(xt){J.type(xt,"string","extension name must be string");var Kt=xt.toLowerCase(),er;try{er=Pe[Kt]=K.getExtension(Kt)}catch{}return!!er}for(var Ot=0;Ot65535)<<4,K>>>=ge,Pe=(K>255)<<3,K>>>=Pe,ge|=Pe,Pe=(K>15)<<2,K>>>=Pe,ge|=Pe,Pe=(K>3)<<1,K>>>=Pe,ge|=Pe,ge|K>>1}function xe(){var K=no(8,function(){return[]});function ge(lt){var xt=mo(lt),Kt=K[ue(xt)>>2];return Kt.length>0?Kt.pop():new ArrayBuffer(xt)}function Pe(lt){K[ue(lt.byteLength)>>2].push(lt)}function ct(lt,xt){var Kt=null;switch(lt){case vo:Kt=new Int8Array(ge(xt),0,xt);break;case No:Kt=new Uint8Array(ge(xt),0,xt);break;case Ko:Kt=new Int16Array(ge(2*xt),0,xt);break;case Lo:Kt=new Uint16Array(ge(2*xt),0,xt);break;case hs:Kt=new Int32Array(ge(4*xt),0,xt);break;case Rs:Kt=new Uint32Array(ge(4*xt),0,xt);break;case Pn:Kt=new Float32Array(ge(4*xt),0,xt);break;default:return null}return Kt.length!==xt?Kt.subarray(0,xt):Kt}function Ot(lt){Pe(lt.buffer)}return{alloc:ge,free:Pe,allocType:ct,freeType:Ot}}var ce=xe();ce.zero=xe();var pe=3408,we=3410,Me=3411,nt=3412,It=3413,ot=3414,ht=3415,ut=33901,qt=33902,fr=3379,Wr=3386,gr=34921,Ar=36347,$n=36348,bi=35661,qa=35660,Jo=34930,Ds=36349,af=34076,mh=34024,Zl=7936,jd=7937,Nl=7938,ec=35724,js=34047,fg=36063,dg=34852,Xd=3553,Yd=34067,vg=34069,Yf=33984,qf=6408,pg=5126,Zf=5121,of=36160,X0=36053,Y0=36064,Kl=16384,sf=function(K,ge){var Pe=1;ge.ext_texture_filter_anisotropic&&(Pe=K.getParameter(js));var ct=1,Ot=1;ge.webgl_draw_buffers&&(ct=K.getParameter(dg),Ot=K.getParameter(fg));var lt=!!ge.oes_texture_float;if(lt){var xt=K.createTexture();K.bindTexture(Xd,xt),K.texImage2D(Xd,0,qf,1,1,0,qf,pg,null);var Kt=K.createFramebuffer();if(K.bindFramebuffer(of,Kt),K.framebufferTexture2D(of,Y0,Xd,xt,0),K.bindTexture(Xd,null),K.checkFramebufferStatus(of)!==X0)lt=!1;else{K.viewport(0,0,1,1),K.clearColor(1,0,0,1),K.clear(Kl);var er=ce.allocType(pg,4);K.readPixels(0,0,1,1,qf,pg,er),K.getError()?lt=!1:(K.deleteFramebuffer(Kt),K.deleteTexture(xt),lt=er[0]===1),ce.freeType(er)}}var lr=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),tr=!0;if(!lr){var dr=K.createTexture(),Er=ce.allocType(Zf,36);K.activeTexture(Yf),K.bindTexture(Yd,dr),K.texImage2D(vg,0,qf,3,3,0,qf,Zf,Er),ce.freeType(Er),K.bindTexture(Yd,null),K.deleteTexture(dr),tr=!K.getError()}return{colorBits:[K.getParameter(we),K.getParameter(Me),K.getParameter(nt),K.getParameter(It)],depthBits:K.getParameter(ot),stencilBits:K.getParameter(ht),subpixelBits:K.getParameter(pe),extensions:Object.keys(ge).filter(function(Jt){return!!ge[Jt]}),maxAnisotropic:Pe,maxDrawbuffers:ct,maxColorAttachments:Ot,pointSizeDims:K.getParameter(ut),lineWidthDims:K.getParameter(qt),maxViewportDims:K.getParameter(Wr),maxCombinedTextureUnits:K.getParameter(bi),maxCubeMapSize:K.getParameter(af),maxRenderbufferSize:K.getParameter(mh),maxTextureUnits:K.getParameter(Jo),maxTextureSize:K.getParameter(fr),maxAttributes:K.getParameter(gr),maxVertexUniforms:K.getParameter(Ar),maxVertexTextureUnits:K.getParameter(qa),maxVaryingVectors:K.getParameter($n),maxFragmentUniforms:K.getParameter(Ds),glsl:K.getParameter(ec),renderer:K.getParameter(jd),vendor:K.getParameter(Zl),version:K.getParameter(Nl),readFloat:lt,npotTextureCube:tr}};function mu(K){return!!K&&typeof K=="object"&&Array.isArray(K.shape)&&Array.isArray(K.stride)&&typeof K.offset=="number"&&K.shape.length===K.stride.length&&(Array.isArray(K.data)||t(K.data))}var bs=function(K){return Object.keys(K).map(function(ge){return K[ge]})},lf={shape:tc,flatten:q0};function gg(K,ge,Pe){for(var ct=0;ct0){var yr;if(Array.isArray(St[0])){Xt=_g(St);for(var jt=1,mr=1;mr0)if(typeof jt[0]=="number"){var Tr=ce.allocType(Wt.dtype,jt.length);U(Tr,jt),Xt(Tr,cn),ce.freeType(Tr)}else if(Array.isArray(jt[0])||t(jt[0])){Hn=_g(jt);var hr=$v(jt,Hn,Wt.dtype);Xt(hr,cn),ce.freeType(hr)}else J.raise("invalid buffer data")}else if(mu(jt)){Hn=jt.shape;var Ut=jt.stride,Nn=0,ci=0,Ur=0,Ei=0;Hn.length===1?(Nn=Hn[0],ci=1,Ur=Ut[0],Ei=0):Hn.length===2?(Nn=Hn[0],ci=Hn[1],Ur=Ut[0],Ei=Ut[1]):J.raise("invalid shape");var Xn=Array.isArray(jt.data)?Wt.dtype:N(jt.data),xi=ce.allocType(Xn,Nn*ci);X(xi,jt.data,Nn,ci,Ur,Ei,jt.offset),Xt(xi,cn),ce.freeType(xi)}else J.raise("invalid data for buffer subdata");return Nr}return or||Nr(Ye),Nr._reglType="buffer",Nr._buffer=Wt,Nr.subdata=yr,Pe.profile&&(Nr.stats=Wt.stats),Nr.destroy=function(){Er(Wt)},Nr}function pr(){bs(lt).forEach(function(Ye){Ye.buffer=K.createBuffer(),K.bindBuffer(Ye.type,Ye.buffer),K.bufferData(Ye.type,Ye.persistentData||Ye.byteLength,Ye.usage)})}return Pe.profile&&(ge.getTotalBufferSize=function(){var Ye=0;return Object.keys(lt).forEach(function(St){Ye+=lt[St].stats.size}),Ye}),{create:Jt,createStream:er,destroyStream:lr,clear:function(){bs(lt).forEach(Er),Kt.forEach(Er)},getBuffer:function(Ye){return Ye&&Ye._buffer instanceof xt?Ye._buffer:null},restore:pr,_initBuffer:dr}}var Ae=0,Re=0,Be=1,Je=1,Xe=4,_t=4,rt={points:Ae,point:Re,lines:Be,line:Je,triangles:Xe,triangle:_t,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ht=0,Yt=1,ne=4,ye=5120,Ue=5121,Bt=5122,$t=5123,ee=5124,Se=5125,Ze=34963,Ct=35040,vr=35044;function Cr(K,ge,Pe,ct){var Ot={},lt=0,xt={uint8:Ue,uint16:$t};ge.oes_element_index_uint&&(xt.uint32=Se);function Kt(pr){this.id=lt++,Ot[this.id]=this,this.buffer=pr,this.primType=ne,this.vertCount=0,this.type=0}Kt.prototype.bind=function(){this.buffer.bind()};var er=[];function lr(pr){var Ye=er.pop();return Ye||(Ye=new Kt(Pe.create(null,Ze,!0,!1)._buffer)),dr(Ye,pr,Ct,-1,-1,0,0),Ye}function tr(pr){er.push(pr)}function dr(pr,Ye,St,or,Mr,Wt,Nr){pr.buffer.bind();var Xt;if(Ye){var yr=Nr;!Nr&&(!t(Ye)||mu(Ye)&&!t(Ye.data))&&(yr=ge.oes_element_index_uint?Se:$t),Pe._initBuffer(pr.buffer,Ye,St,yr,3)}else K.bufferData(Ze,Wt,St),pr.buffer.dtype=Xt||Ue,pr.buffer.usage=St,pr.buffer.dimension=3,pr.buffer.byteLength=Wt;if(Xt=Nr,!Nr){switch(pr.buffer.dtype){case Ue:case ye:Xt=Ue;break;case $t:case Bt:Xt=$t;break;case Se:case ee:Xt=Se;break;default:J.raise("unsupported type for element array")}pr.buffer.dtype=Xt}pr.type=Xt,J(Xt!==Se||!!ge.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var jt=Mr;jt<0&&(jt=pr.buffer.byteLength,Xt===$t?jt>>=1:Xt===Se&&(jt>>=2)),pr.vertCount=jt;var mr=or;if(or<0){mr=ne;var cn=pr.buffer.dimension;cn===1&&(mr=Ht),cn===2&&(mr=Yt),cn===3&&(mr=ne)}pr.primType=mr}function Er(pr){ct.elementsCount--,J(pr.buffer!==null,"must not double destroy elements"),delete Ot[pr.id],pr.buffer.destroy(),pr.buffer=null}function Jt(pr,Ye){var St=Pe.create(null,Ze,!0),or=new Kt(St._buffer);ct.elementsCount++;function Mr(Wt){if(!Wt)St(),or.primType=ne,or.vertCount=0,or.type=Ue;else if(typeof Wt=="number")St(Wt),or.primType=ne,or.vertCount=Wt|0,or.type=Ue;else{var Nr=null,Xt=vr,yr=-1,jt=-1,mr=0,cn=0;Array.isArray(Wt)||t(Wt)||mu(Wt)?Nr=Wt:(J.type(Wt,"object","invalid arguments for elements"),"data"in Wt&&(Nr=Wt.data,J(Array.isArray(Nr)||t(Nr)||mu(Nr),"invalid data for element buffer")),"usage"in Wt&&(J.parameter(Wt.usage,_u,"invalid element buffer usage"),Xt=_u[Wt.usage]),"primitive"in Wt&&(J.parameter(Wt.primitive,rt,"invalid element buffer primitive"),yr=rt[Wt.primitive]),"count"in Wt&&(J(typeof Wt.count=="number"&&Wt.count>=0,"invalid vertex count for elements"),jt=Wt.count|0),"type"in Wt&&(J.parameter(Wt.type,xt,"invalid buffer type"),cn=xt[Wt.type]),"length"in Wt?mr=Wt.length|0:(mr=jt,cn===$t||cn===Bt?mr*=2:(cn===Se||cn===ee)&&(mr*=4))),dr(or,Nr,Xt,yr,jt,mr,cn)}return Mr}return Mr(pr),Mr._reglType="elements",Mr._elements=or,Mr.subdata=function(Wt,Nr){return St.subdata(Wt,Nr),Mr},Mr.destroy=function(){Er(or)},Mr}return{create:Jt,createStream:lr,destroyStream:tr,getElements:function(pr){return typeof pr=="function"&&pr._elements instanceof Kt?pr._elements:null},clear:function(){bs(Ot).forEach(Er)}}}var Jr=new Float32Array(1),nn=new Uint32Array(Jr.buffer),Dn=5123;function si(K){for(var ge=ce.allocType(Dn,K.length),Pe=0;Pe>>31<<15,lt=(ct<<1>>>24)-127,xt=ct>>13&(1<<10)-1;if(lt<-24)ge[Pe]=Ot;else if(lt<-14){var Kt=-14-lt;ge[Pe]=Ot+(xt+(1<<10)>>Kt)}else lt>15?ge[Pe]=Ot+31744:ge[Pe]=Ot+(lt+15<<10)+xt}return ge}function An(K){return Array.isArray(K)||t(K)}var qi=function(K){return!(K&K-1)&&!!K},_o=34467,cs=3553,Sl=34067,xu=34069,fa=6408,Ft=6406,nr=6407,Wn=6409,Zi=6410,Ts=32854,ko=32855,Fo=36194,Su=32819,Kf=32820,xg=33635,sF=34042,X$=6402,lF=34041,Y$=35904,q$=35906,CT=36193,Z$=33776,K$=33777,J$=33778,Q$=33779,Zce=35986,Kce=35987,Jce=34798,Qce=35840,efe=35841,tfe=35842,rfe=35843,nfe=36196,AT=5121,eW=5123,tW=5125,AL=5126,$Qe=10242,WQe=10243,HQe=10497,rW=33071,jQe=33648,XQe=10240,YQe=10241,nW=9728,qQe=9729,iW=9984,ife=9985,afe=9986,aW=9987,ZQe=33170,uF=4352,KQe=4353,JQe=4354,QQe=34046,eet=3317,tet=37440,ret=37441,net=37443,ofe=37444,ML=33984,iet=[iW,afe,ife,aW],hF=[0,Wn,Zi,nr,fa],Wv={};Wv[Wn]=Wv[Ft]=Wv[X$]=1,Wv[lF]=Wv[Zi]=2,Wv[nr]=Wv[Y$]=3,Wv[fa]=Wv[q$]=4;function MT(K){return"[object "+K+"]"}var sfe=MT("HTMLCanvasElement"),lfe=MT("OffscreenCanvas"),ufe=MT("CanvasRenderingContext2D"),hfe=MT("ImageBitmap"),cfe=MT("HTMLImageElement"),ffe=MT("HTMLVideoElement"),aet=Object.keys(Xs).concat([sfe,lfe,ufe,hfe,cfe,ffe]),IT=[];IT[AT]=1,IT[AL]=4,IT[CT]=2,IT[eW]=2,IT[tW]=4;var xh=[];xh[Ts]=2,xh[ko]=2,xh[Fo]=2,xh[lF]=4,xh[Z$]=.5,xh[K$]=.5,xh[J$]=1,xh[Q$]=1,xh[Zce]=.5,xh[Kce]=1,xh[Jce]=1,xh[Qce]=.5,xh[efe]=.25,xh[tfe]=.5,xh[rfe]=.25,xh[nfe]=.5;function dfe(K){return Array.isArray(K)&&(K.length===0||typeof K[0]=="number")}function vfe(K){if(!Array.isArray(K))return!1;var ge=K.length;return!(ge===0||!An(K[0]))}function Nw(K){return Object.prototype.toString.call(K)}function pfe(K){return Nw(K)===sfe}function gfe(K){return Nw(K)===lfe}function oet(K){return Nw(K)===ufe}function set(K){return Nw(K)===hfe}function uet(K){return Nw(K)===cfe}function het(K){return Nw(K)===ffe}function oW(K){if(!K)return!1;var ge=Nw(K);return aet.indexOf(ge)>=0?!0:dfe(K)||vfe(K)||mu(K)}function yfe(K){return Xs[Object.prototype.toString.call(K)]|0}function cet(K,ge){var Pe=ge.length;switch(K.type){case AT:case eW:case tW:case AL:var ct=ce.allocType(K.type,Pe);ct.set(ge),K.data=ct;break;case CT:K.data=si(ge);break;default:J.raise("unsupported texture type, must specify a typed array")}}function mfe(K,ge){return ce.allocType(K.type===CT?AL:K.type,ge)}function _fe(K,ge){K.type===CT?(K.data=si(ge),ce.freeType(ge)):K.data=ge}function fet(K,ge,Pe,ct,Ot,lt){for(var xt=K.width,Kt=K.height,er=K.channels,lr=xt*Kt*er,tr=mfe(K,lr),dr=0,Er=0;Er=1;)Kt+=xt*er*er,er/=2;return Kt}else return xt*Pe*ct}function det(K,ge,Pe,ct,Ot,lt,xt){var Kt={"don't care":uF,"dont care":uF,nice:JQe,fast:KQe},er={repeat:HQe,clamp:rW,mirror:jQe},lr={nearest:nW,linear:qQe},tr=r({mipmap:aW,"nearest mipmap nearest":iW,"linear mipmap nearest":ife,"nearest mipmap linear":afe,"linear mipmap linear":aW},lr),dr={none:0,browser:ofe},Er={uint8:AT,rgba4:Su,rgb565:xg,"rgb5 a1":Kf},Jt={alpha:Ft,luminance:Wn,"luminance alpha":Zi,rgb:nr,rgba:fa,rgba4:Ts,"rgb5 a1":ko,rgb565:Fo},pr={};ge.ext_srgb&&(Jt.srgb=Y$,Jt.srgba=q$),ge.oes_texture_float&&(Er.float32=Er.float=AL),ge.oes_texture_half_float&&(Er.float16=Er["half float"]=CT),ge.webgl_depth_texture&&(r(Jt,{depth:X$,"depth stencil":lF}),r(Er,{uint16:eW,uint32:tW,"depth stencil":sF})),ge.webgl_compressed_texture_s3tc&&r(pr,{"rgb s3tc dxt1":Z$,"rgba s3tc dxt1":K$,"rgba s3tc dxt3":J$,"rgba s3tc dxt5":Q$}),ge.webgl_compressed_texture_atc&&r(pr,{"rgb atc":Zce,"rgba atc explicit alpha":Kce,"rgba atc interpolated alpha":Jce}),ge.webgl_compressed_texture_pvrtc&&r(pr,{"rgb pvrtc 4bppv1":Qce,"rgb pvrtc 2bppv1":efe,"rgba pvrtc 4bppv1":tfe,"rgba pvrtc 2bppv1":rfe}),ge.webgl_compressed_texture_etc1&&(pr["rgb etc1"]=nfe);var Ye=Array.prototype.slice.call(K.getParameter(_o));Object.keys(pr).forEach(function(Ie){var vt=pr[Ie];Ye.indexOf(vt)>=0&&(Jt[Ie]=vt)});var St=Object.keys(Jt);Pe.textureFormats=St;var or=[];Object.keys(Jt).forEach(function(Ie){var vt=Jt[Ie];or[vt]=Ie});var Mr=[];Object.keys(Er).forEach(function(Ie){var vt=Er[Ie];Mr[vt]=Ie});var Wt=[];Object.keys(lr).forEach(function(Ie){var vt=lr[Ie];Wt[vt]=Ie});var Nr=[];Object.keys(tr).forEach(function(Ie){var vt=tr[Ie];Nr[vt]=Ie});var Xt=[];Object.keys(er).forEach(function(Ie){var vt=er[Ie];Xt[vt]=Ie});var yr=St.reduce(function(Ie,vt){var it=Jt[vt];return it===Wn||it===Ft||it===Wn||it===Zi||it===X$||it===lF||ge.ext_srgb&&(it===Y$||it===q$)?Ie[it]=it:it===ko||vt.indexOf("rgba")>=0?Ie[it]=fa:Ie[it]=nr,Ie},{});function jt(){this.internalformat=fa,this.format=fa,this.type=AT,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=ofe,this.width=0,this.height=0,this.channels=0}function mr(Ie,vt){Ie.internalformat=vt.internalformat,Ie.format=vt.format,Ie.type=vt.type,Ie.compressed=vt.compressed,Ie.premultiplyAlpha=vt.premultiplyAlpha,Ie.flipY=vt.flipY,Ie.unpackAlignment=vt.unpackAlignment,Ie.colorSpace=vt.colorSpace,Ie.width=vt.width,Ie.height=vt.height,Ie.channels=vt.channels}function cn(Ie,vt){if(!(typeof vt!="object"||!vt)){if("premultiplyAlpha"in vt&&(J.type(vt.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),Ie.premultiplyAlpha=vt.premultiplyAlpha),"flipY"in vt&&(J.type(vt.flipY,"boolean","invalid texture flip"),Ie.flipY=vt.flipY),"alignment"in vt&&(J.oneOf(vt.alignment,[1,2,4,8],"invalid texture unpack alignment"),Ie.unpackAlignment=vt.alignment),"colorSpace"in vt&&(J.parameter(vt.colorSpace,dr,"invalid colorSpace"),Ie.colorSpace=dr[vt.colorSpace]),"type"in vt){var it=vt.type;J(ge.oes_texture_float||!(it==="float"||it==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),J(ge.oes_texture_half_float||!(it==="half float"||it==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),J(ge.webgl_depth_texture||!(it==="uint16"||it==="uint32"||it==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),J.parameter(it,Er,"invalid texture type"),Ie.type=Er[it]}var Br=Ie.width,Ti=Ie.height,be=Ie.channels,de=!1;"shape"in vt?(J(Array.isArray(vt.shape)&&vt.shape.length>=2,"shape must be an array"),Br=vt.shape[0],Ti=vt.shape[1],vt.shape.length===3&&(be=vt.shape[2],J(be>0&&be<=4,"invalid number of channels"),de=!0),J(Br>=0&&Br<=Pe.maxTextureSize,"invalid width"),J(Ti>=0&&Ti<=Pe.maxTextureSize,"invalid height")):("radius"in vt&&(Br=Ti=vt.radius,J(Br>=0&&Br<=Pe.maxTextureSize,"invalid radius")),"width"in vt&&(Br=vt.width,J(Br>=0&&Br<=Pe.maxTextureSize,"invalid width")),"height"in vt&&(Ti=vt.height,J(Ti>=0&&Ti<=Pe.maxTextureSize,"invalid height")),"channels"in vt&&(be=vt.channels,J(be>0&&be<=4,"invalid number of channels"),de=!0)),Ie.width=Br|0,Ie.height=Ti|0,Ie.channels=be|0;var Ne=!1;if("format"in vt){var He=vt.format;J(ge.webgl_depth_texture||!(He==="depth"||He==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),J.parameter(He,Jt,"invalid texture format");var Ke=Ie.internalformat=Jt[He];Ie.format=yr[Ke],He in Er&&("type"in vt||(Ie.type=Er[He])),He in pr&&(Ie.compressed=!0),Ne=!0}!de&&Ne?Ie.channels=Wv[Ie.format]:de&&!Ne?Ie.channels!==hF[Ie.format]&&(Ie.format=Ie.internalformat=hF[Ie.channels]):Ne&&de&&J(Ie.channels===Wv[Ie.format],"number of channels inconsistent with specified format")}}function Hn(Ie){K.pixelStorei(tet,Ie.flipY),K.pixelStorei(ret,Ie.premultiplyAlpha),K.pixelStorei(net,Ie.colorSpace),K.pixelStorei(eet,Ie.unpackAlignment)}function Tr(){jt.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function hr(Ie,vt){var it=null;if(oW(vt)?it=vt:vt&&(J.type(vt,"object","invalid pixel data type"),cn(Ie,vt),"x"in vt&&(Ie.xOffset=vt.x|0),"y"in vt&&(Ie.yOffset=vt.y|0),oW(vt.data)&&(it=vt.data)),J(!Ie.compressed||it instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),vt.copy){J(!it,"can not specify copy and data field for the same texture");var Br=Ot.viewportWidth,Ti=Ot.viewportHeight;Ie.width=Ie.width||Br-Ie.xOffset,Ie.height=Ie.height||Ti-Ie.yOffset,Ie.needsCopy=!0,J(Ie.xOffset>=0&&Ie.xOffset=0&&Ie.yOffset0&&Ie.width<=Br&&Ie.height>0&&Ie.height<=Ti,"copy texture read out of bounds")}else if(!it)Ie.width=Ie.width||1,Ie.height=Ie.height||1,Ie.channels=Ie.channels||4;else if(t(it))Ie.channels=Ie.channels||4,Ie.data=it,!("type"in vt)&&Ie.type===AT&&(Ie.type=yfe(it));else if(dfe(it))Ie.channels=Ie.channels||4,cet(Ie,it),Ie.alignment=1,Ie.needsFree=!0;else if(mu(it)){var be=it.data;!Array.isArray(be)&&Ie.type===AT&&(Ie.type=yfe(be));var de=it.shape,Ne=it.stride,He,Ke,Ge,Fe,ze,Ee;de.length===3?(Ge=de[2],Ee=Ne[2]):(J(de.length===2,"invalid ndarray pixel data, must be 2 or 3D"),Ge=1,Ee=1),He=de[0],Ke=de[1],Fe=Ne[0],ze=Ne[1],Ie.alignment=1,Ie.width=He,Ie.height=Ke,Ie.channels=Ge,Ie.format=Ie.internalformat=hF[Ge],Ie.needsFree=!0,fet(Ie,be,Fe,ze,Ee,it.offset)}else if(pfe(it)||gfe(it)||oet(it))pfe(it)||gfe(it)?Ie.element=it:Ie.element=it.canvas,Ie.width=Ie.element.width,Ie.height=Ie.element.height,Ie.channels=4;else if(set(it))Ie.element=it,Ie.width=it.width,Ie.height=it.height,Ie.channels=4;else if(uet(it))Ie.element=it,Ie.width=it.naturalWidth,Ie.height=it.naturalHeight,Ie.channels=4;else if(het(it))Ie.element=it,Ie.width=it.videoWidth,Ie.height=it.videoHeight,Ie.channels=4;else if(vfe(it)){var De=Ie.width||it[0].length,_e=Ie.height||it.length,Ve=Ie.channels;An(it[0][0])?Ve=Ve||it[0][0].length:Ve=Ve||1;for(var et=lf.shape(it),Lt=1,Rt=0;Rt=0,"oes_texture_float extension not enabled"):Ie.type===CT&&J(Pe.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function Ut(Ie,vt,it){var Br=Ie.element,Ti=Ie.data,be=Ie.internalformat,de=Ie.format,Ne=Ie.type,He=Ie.width,Ke=Ie.height;Hn(Ie),Br?K.texImage2D(vt,it,de,de,Ne,Br):Ie.compressed?K.compressedTexImage2D(vt,it,be,He,Ke,0,Ti):Ie.needsCopy?(ct(),K.copyTexImage2D(vt,it,de,Ie.xOffset,Ie.yOffset,He,Ke,0)):K.texImage2D(vt,it,de,He,Ke,0,de,Ne,Ti||null)}function Nn(Ie,vt,it,Br,Ti){var be=Ie.element,de=Ie.data,Ne=Ie.internalformat,He=Ie.format,Ke=Ie.type,Ge=Ie.width,Fe=Ie.height;Hn(Ie),be?K.texSubImage2D(vt,Ti,it,Br,He,Ke,be):Ie.compressed?K.compressedTexSubImage2D(vt,Ti,it,Br,Ne,Ge,Fe,de):Ie.needsCopy?(ct(),K.copyTexSubImage2D(vt,Ti,it,Br,Ie.xOffset,Ie.yOffset,Ge,Fe)):K.texSubImage2D(vt,Ti,it,Br,Ge,Fe,He,Ke,de)}var ci=[];function Ur(){return ci.pop()||new Tr}function Ei(Ie){Ie.needsFree&&ce.freeType(Ie.data),Tr.call(Ie),ci.push(Ie)}function Xn(){jt.call(this),this.genMipmaps=!1,this.mipmapHint=uF,this.mipmask=0,this.images=Array(16)}function xi(Ie,vt,it){var Br=Ie.images[0]=Ur();Ie.mipmask=1,Br.width=Ie.width=vt,Br.height=Ie.height=it,Br.channels=Ie.channels=4}function Wa(Ie,vt){var it=null;if(oW(vt))it=Ie.images[0]=Ur(),mr(it,Ie),hr(it,vt),Ie.mipmask=1;else if(cn(Ie,vt),Array.isArray(vt.mipmap))for(var Br=vt.mipmap,Ti=0;Ti>=Ti,it.height>>=Ti,hr(it,Br[Ti]),Ie.mipmask|=1<=0&&!("faces"in vt)&&(Ie.genMipmaps=!0)}if("mag"in vt){var Br=vt.mag;J.parameter(Br,lr),Ie.magFilter=lr[Br]}var Ti=Ie.wrapS,be=Ie.wrapT;if("wrap"in vt){var de=vt.wrap;typeof de=="string"?(J.parameter(de,er),Ti=be=er[de]):Array.isArray(de)&&(J.parameter(de[0],er),J.parameter(de[1],er),Ti=er[de[0]],be=er[de[1]])}else{if("wrapS"in vt){var Ne=vt.wrapS;J.parameter(Ne,er),Ti=er[Ne]}if("wrapT"in vt){var He=vt.wrapT;J.parameter(He,er),be=er[He]}}if(Ie.wrapS=Ti,Ie.wrapT=be,"anisotropic"in vt){var Ke=vt.anisotropic;J(typeof Ke=="number"&&Ke>=1&&Ke<=Pe.maxAnisotropic,"aniso samples must be between 1 and "),Ie.anisotropic=vt.anisotropic}if("mipmap"in vt){var Ge=!1;switch(typeof vt.mipmap){case"string":J.parameter(vt.mipmap,Kt,"invalid mipmap hint"),Ie.mipmapHint=Kt[vt.mipmap],Ie.genMipmaps=!0,Ge=!0;break;case"boolean":Ge=Ie.genMipmaps=vt.mipmap;break;case"object":J(Array.isArray(vt.mipmap),"invalid mipmap type"),Ie.genMipmaps=!1,Ge=!0;break;default:J.raise("invalid mipmap type")}Ge&&!("min"in vt)&&(Ie.minFilter=iW)}}function Ql(Ie,vt){K.texParameteri(vt,YQe,Ie.minFilter),K.texParameteri(vt,XQe,Ie.magFilter),K.texParameteri(vt,$Qe,Ie.wrapS),K.texParameteri(vt,WQe,Ie.wrapT),ge.ext_texture_filter_anisotropic&&K.texParameteri(vt,QQe,Ie.anisotropic),Ie.genMipmaps&&(K.hint(ZQe,Ie.mipmapHint),K.generateMipmap(vt))}var eu=0,Xu={},Sh=Pe.maxTextureUnits,wl=Array(Sh).map(function(){return null});function fi(Ie){jt.call(this),this.mipmask=0,this.internalformat=fa,this.id=eu++,this.refCount=1,this.target=Ie,this.texture=K.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new fs,xt.profile&&(this.stats={size:0})}function wh(Ie){K.activeTexture(ML),K.bindTexture(Ie.target,Ie.texture)}function io(){var Ie=wl[0];Ie?K.bindTexture(Ie.target,Ie.texture):K.bindTexture(cs,null)}function bn(Ie){var vt=Ie.texture;J(vt,"must not double destroy texture");var it=Ie.unit,Br=Ie.target;it>=0&&(K.activeTexture(ML+it),K.bindTexture(Br,null),wl[it]=null),K.deleteTexture(vt),Ie.texture=null,Ie.params=null,Ie.pixels=null,Ie.refCount=0,delete Xu[Ie.id],lt.textureCount--}r(fi.prototype,{bind:function(){var Ie=this;Ie.bindCount+=1;var vt=Ie.unit;if(vt<0){for(var it=0;it0)continue;Br.unit=-1}wl[it]=Ie,vt=it;break}vt>=Sh&&J.raise("insufficient number of texture units"),xt.profile&<.maxTextureUnits>ze)-Ge,Ee.height=Ee.height||(it.height>>ze)-Fe,J(it.type===Ee.type&&it.format===Ee.format&&it.internalformat===Ee.internalformat,"incompatible format for texture.subimage"),J(Ge>=0&&Fe>=0&&Ge+Ee.width<=it.width&&Fe+Ee.height<=it.height,"texture.subimage write out of bounds"),J(it.mipmask&1<>Ge;++Ge){var Fe=He>>Ge,ze=Ke>>Ge;if(!Fe||!ze)break;K.texImage2D(cs,Ge,it.format,Fe,ze,0,it.format,it.type,null)}return io(),xt.profile&&(it.stats.size=cF(it.internalformat,it.type,He,Ke,!1,!1)),Br}return Br(Ie,vt),Br.subimage=Ti,Br.resize=be,Br._reglType="texture2d",Br._texture=it,xt.profile&&(Br.stats=it.stats),Br.destroy=function(){it.decRef()},Br}function ia(Ie,vt,it,Br,Ti,be){var de=new fi(Sl);Xu[de.id]=de,lt.cubeCount++;var Ne=new Array(6);function He(Fe,ze,Ee,De,_e,Ve){var et,Lt=de.texInfo;for(fs.call(Lt),et=0;et<6;++et)Ne[et]=Ri();if(typeof Fe=="number"||!Fe){var Rt=Fe|0||1;for(et=0;et<6;++et)xi(Ne[et],Rt,Rt)}else if(typeof Fe=="object")if(ze)Wa(Ne[0],Fe),Wa(Ne[1],ze),Wa(Ne[2],Ee),Wa(Ne[3],De),Wa(Ne[4],_e),Wa(Ne[5],Ve);else if(Bl(Lt,Fe),cn(de,Fe),"faces"in Fe){var bt=Fe.faces;for(J(Array.isArray(bt)&&bt.length===6,"cube faces must be a length 6 array"),et=0;et<6;++et)J(typeof bt[et]=="object"&&!!bt[et],"invalid input for cube map face"),mr(Ne[et],de),Wa(Ne[et],bt[et])}else for(et=0;et<6;++et)Wa(Ne[et],Fe);else J.raise("invalid arguments to cube map");for(mr(de,Ne[0]),Pe.npotTextureCube||J(qi(de.width)&&qi(de.height),"your browser does not support non power or two texture dimensions"),Lt.genMipmaps?de.mipmask=(Ne[0].width<<1)-1:de.mipmask=Ne[0].mipmask,J.textureCube(de,Lt,Ne,Pe),de.internalformat=Ne[0].internalformat,He.width=Ne[0].width,He.height=Ne[0].height,wh(de),et=0;et<6;++et)Fl(Ne[et],xu+et);for(Ql(Lt,Sl),io(),xt.profile&&(de.stats.size=cF(de.internalformat,de.type,He.width,He.height,Lt.genMipmaps,!0)),He.format=or[de.internalformat],He.type=Mr[de.type],He.mag=Wt[Lt.magFilter],He.min=Nr[Lt.minFilter],He.wrapS=Xt[Lt.wrapS],He.wrapT=Xt[Lt.wrapT],et=0;et<6;++et)Jl(Ne[et]);return He}function Ke(Fe,ze,Ee,De,_e){J(!!ze,"must specify image data"),J(typeof Fe=="number"&&Fe===(Fe|0)&&Fe>=0&&Fe<6,"invalid face");var Ve=Ee|0,et=De|0,Lt=_e|0,Rt=Ur();return mr(Rt,de),Rt.width=0,Rt.height=0,hr(Rt,ze),Rt.width=Rt.width||(de.width>>Lt)-Ve,Rt.height=Rt.height||(de.height>>Lt)-et,J(de.type===Rt.type&&de.format===Rt.format&&de.internalformat===Rt.internalformat,"incompatible format for texture.subimage"),J(Ve>=0&&et>=0&&Ve+Rt.width<=de.width&&et+Rt.height<=de.height,"texture.subimage write out of bounds"),J(de.mipmask&1<>De;++De)K.texImage2D(xu+Ee,De,de.format,ze>>De,ze>>De,0,de.format,de.type,null);return io(),xt.profile&&(de.stats.size=cF(de.internalformat,de.type,He.width,He.height,!1,!0)),He}}return He(Ie,vt,it,Br,Ti,be),He.subimage=Ke,He.resize=Ge,He._reglType="textureCube",He._texture=de,xt.profile&&(He.stats=de.stats),He.destroy=function(){de.decRef()},He}function bl(){for(var Ie=0;Ie>Br,it.height>>Br,0,it.internalformat,it.type,null);else for(var Ti=0;Ti<6;++Ti)K.texImage2D(xu+Ti,Br,it.internalformat,it.width>>Br,it.height>>Br,0,it.internalformat,it.type,null);Ql(it.texInfo,it.target)})}function Vw(){for(var Ie=0;Ie=2,"invalid renderbuffer shape"),Nr=mr[0]|0,Xt=mr[1]|0}else"radius"in jt&&(Nr=Xt=jt.radius|0),"width"in jt&&(Nr=jt.width|0),"height"in jt&&(Xt=jt.height|0);"format"in jt&&(J.parameter(jt.format,lt,"invalid renderbuffer format"),yr=lt[jt.format])}else typeof Mr=="number"?(Nr=Mr|0,typeof Wt=="number"?Xt=Wt|0:Xt=Nr):Mr?J.raise("invalid arguments to renderbuffer constructor"):Nr=Xt=1;if(J(Nr>0&&Xt>0&&Nr<=Pe.maxRenderbufferSize&&Xt<=Pe.maxRenderbufferSize,"invalid renderbuffer size"),!(Nr===Ye.width&&Xt===Ye.height&&yr===Ye.format))return St.width=Ye.width=Nr,St.height=Ye.height=Xt,Ye.format=yr,K.bindRenderbuffer(K_,Ye.renderbuffer),K.renderbufferStorage(K_,yr,Nr,Xt),J(K.getError()===0,"invalid render buffer format"),Ot.profile&&(Ye.stats.size=Ife(Ye.format,Ye.width,Ye.height)),St.format=xt[Ye.format],St}function or(Mr,Wt){var Nr=Mr|0,Xt=Wt|0||Nr;return Nr===Ye.width&&Xt===Ye.height||(J(Nr>0&&Xt>0&&Nr<=Pe.maxRenderbufferSize&&Xt<=Pe.maxRenderbufferSize,"invalid renderbuffer size"),St.width=Ye.width=Nr,St.height=Ye.height=Xt,K.bindRenderbuffer(K_,Ye.renderbuffer),K.renderbufferStorage(K_,Ye.format,Nr,Xt),J(K.getError()===0,"invalid render buffer format"),Ot.profile&&(Ye.stats.size=Ife(Ye.format,Ye.width,Ye.height))),St}return St(Jt,pr),St.resize=or,St._reglType="renderbuffer",St._renderbuffer=Ye,Ot.profile&&(St.stats=Ye.stats),St.destroy=function(){Ye.decRef()},St}Ot.profile&&(ct.getTotalRenderbufferSize=function(){var Jt=0;return Object.keys(er).forEach(function(pr){Jt+=er[pr].stats.size}),Jt});function Er(){bs(er).forEach(function(Jt){Jt.renderbuffer=K.createRenderbuffer(),K.bindRenderbuffer(K_,Jt.renderbuffer),K.renderbufferStorage(K_,Jt.format,Jt.width,Jt.height)}),K.bindRenderbuffer(K_,null)}return{create:dr,clear:function(){bs(er).forEach(tr)},restore:Er}},jm=36160,sW=36161,kw=3553,dF=34069,Lfe=36064,Pfe=36096,Ofe=36128,Rfe=33306,Dfe=36053,pet=36054,get=36055,yet=36057,met=36061,_et=36193,xet=5121,wet=5126,Nfe=6407,kfe=6408,bet=6402,Eet=[Nfe,kfe],lW=[];lW[kfe]=4,lW[Nfe]=3;var vF=[];vF[xet]=1,vF[wet]=4,vF[_et]=2;var Tet=32854,Cet=32855,Aet=36194,Met=33189,Iet=36168,Ffe=34041,Let=35907,Pet=34836,Oet=34842,Ret=34843,Det=[Tet,Cet,Aet,Let,Oet,Ret,Pet],LT={};LT[Dfe]="complete",LT[pet]="incomplete attachment",LT[yet]="incomplete dimensions",LT[get]="incomplete, missing attachment",LT[met]="unsupported";function Net(K,ge,Pe,ct,Ot,lt){var xt={cur:null,next:null,dirty:!1,setFBO:null},Kt=["rgba"],er=["rgba4","rgb565","rgb5 a1"];ge.ext_srgb&&er.push("srgba"),ge.ext_color_buffer_half_float&&er.push("rgba16f","rgb16f"),ge.webgl_color_buffer_float&&er.push("rgba32f");var lr=["uint8"];ge.oes_texture_half_float&&lr.push("half float","float16"),ge.oes_texture_float&&lr.push("float","float32");function tr(Tr,hr,Ut){this.target=Tr,this.texture=hr,this.renderbuffer=Ut;var Nn=0,ci=0;hr?(Nn=hr.width,ci=hr.height):Ut&&(Nn=Ut.width,ci=Ut.height),this.width=Nn,this.height=ci}function dr(Tr){Tr&&(Tr.texture&&Tr.texture._texture.decRef(),Tr.renderbuffer&&Tr.renderbuffer._renderbuffer.decRef())}function Er(Tr,hr,Ut){if(!!Tr)if(Tr.texture){var Nn=Tr.texture._texture,ci=Math.max(1,Nn.width),Ur=Math.max(1,Nn.height);J(ci===hr&&Ur===Ut,"inconsistent width/height for supplied texture"),Nn.refCount+=1}else{var Ei=Tr.renderbuffer._renderbuffer;J(Ei.width===hr&&Ei.height===Ut,"inconsistent width/height for renderbuffer"),Ei.refCount+=1}}function Jt(Tr,hr){hr&&(hr.texture?K.framebufferTexture2D(jm,Tr,hr.target,hr.texture._texture.texture,0):K.framebufferRenderbuffer(jm,Tr,sW,hr.renderbuffer._renderbuffer.renderbuffer))}function pr(Tr){var hr=kw,Ut=null,Nn=null,ci=Tr;typeof Tr=="object"&&(ci=Tr.data,"target"in Tr&&(hr=Tr.target|0)),J.type(ci,"function","invalid attachment data");var Ur=ci._reglType;return Ur==="texture2d"?(Ut=ci,J(hr===kw)):Ur==="textureCube"?(Ut=ci,J(hr>=dF&&hr=2,"invalid shape for framebuffer"),xi=wh[0],Wa=wh[1]}else"radius"in fi&&(xi=Wa=fi.radius),"width"in fi&&(xi=fi.width),"height"in fi&&(Wa=fi.height);("color"in fi||"colors"in fi)&&(Ri=fi.color||fi.colors,Array.isArray(Ri)&&J(Ri.length===1||ge.webgl_draw_buffers,"multiple render targets not supported")),Ri||("colorCount"in fi&&(Ql=fi.colorCount|0,J(Ql>0,"invalid color buffer count")),"colorTexture"in fi&&(Jl=!!fi.colorTexture,fs="rgba4"),"colorType"in fi&&(Bl=fi.colorType,Jl?(J(ge.oes_texture_float||!(Bl==="float"||Bl==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),J(ge.oes_texture_half_float||!(Bl==="half float"||Bl==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):Bl==="half float"||Bl==="float16"?(J(ge.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),fs="rgba16f"):(Bl==="float"||Bl==="float32")&&(J(ge.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),fs="rgba32f"),J.oneOf(Bl,lr,"invalid color type")),"colorFormat"in fi&&(fs=fi.colorFormat,Kt.indexOf(fs)>=0?Jl=!0:er.indexOf(fs)>=0?Jl=!1:Jl?J.oneOf(fi.colorFormat,Kt,"invalid color format for texture"):J.oneOf(fi.colorFormat,er,"invalid color format for renderbuffer"))),("depthTexture"in fi||"depthStencilTexture"in fi)&&(wl=!!(fi.depthTexture||fi.depthStencilTexture),J(!wl||ge.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in fi&&(typeof fi.depth=="boolean"?Fl=fi.depth:(eu=fi.depth,wu=!1)),"stencil"in fi&&(typeof fi.stencil=="boolean"?wu=fi.stencil:(Xu=fi.stencil,Fl=!1)),"depthStencil"in fi&&(typeof fi.depthStencil=="boolean"?Fl=wu=fi.depthStencil:(Sh=fi.depthStencil,Fl=!1,wu=!1))}var io=null,bn=null,Mi=null,ia=null;if(Array.isArray(Ri))io=Ri.map(pr);else if(Ri)io=[pr(Ri)];else for(io=new Array(Ql),Xn=0;Xn=0||io[Xn].renderbuffer&&Det.indexOf(io[Xn].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+Xn+" is invalid"),io[Xn]&&io[Xn].texture){var K0=lW[io[Xn].texture._texture.format]*vF[io[Xn].texture._texture.type];bl===null?bl=K0:J(bl===K0,"all color attachments much have the same number of bits per pixel.")}return Er(bn,xi,Wa),J(!bn||bn.texture&&bn.texture._texture.format===bet||bn.renderbuffer&&bn.renderbuffer._renderbuffer.format===Met,"invalid depth attachment for framebuffer object"),Er(Mi,xi,Wa),J(!Mi||Mi.renderbuffer&&Mi.renderbuffer._renderbuffer.format===Iet,"invalid stencil attachment for framebuffer object"),Er(ia,xi,Wa),J(!ia||ia.texture&&ia.texture._texture.format===Ffe||ia.renderbuffer&&ia.renderbuffer._renderbuffer.format===Ffe,"invalid depth-stencil attachment for framebuffer object"),Xt(Ut),Ut.width=xi,Ut.height=Wa,Ut.colorAttachments=io,Ut.depthAttachment=bn,Ut.stencilAttachment=Mi,Ut.depthStencilAttachment=ia,Nn.color=io.map(St),Nn.depth=St(bn),Nn.stencil=St(Mi),Nn.depthStencil=St(ia),Nn.width=Ut.width,Nn.height=Ut.height,jt(Ut),Nn}function ci(Ur,Ei){J(xt.next!==Ut,"can not resize a framebuffer which is currently in use");var Xn=Math.max(Ur|0,1),xi=Math.max(Ei|0||Xn,1);if(Xn===Ut.width&&xi===Ut.height)return Nn;for(var Wa=Ut.colorAttachments,Fl=0;Fl=2,"invalid shape for framebuffer"),J(Jl[0]===Jl[1],"cube framebuffer must be square"),Xn=Jl[0]}else"radius"in Ri&&(Xn=Ri.radius|0),"width"in Ri?(Xn=Ri.width|0,"height"in Ri&&J(Ri.height===Xn,"must be square")):"height"in Ri&&(Xn=Ri.height|0);("color"in Ri||"colors"in Ri)&&(xi=Ri.color||Ri.colors,Array.isArray(xi)&&J(xi.length===1||ge.webgl_draw_buffers,"multiple render targets not supported")),xi||("colorCount"in Ri&&(wu=Ri.colorCount|0,J(wu>0,"invalid color buffer count")),"colorType"in Ri&&(J.oneOf(Ri.colorType,lr,"invalid color type"),Fl=Ri.colorType),"colorFormat"in Ri&&(Wa=Ri.colorFormat,J.oneOf(Ri.colorFormat,Kt,"invalid color format for texture"))),"depth"in Ri&&(Ei.depth=Ri.depth),"stencil"in Ri&&(Ei.stencil=Ri.stencil),"depthStencil"in Ri&&(Ei.depthStencil=Ri.depthStencil)}var fs;if(xi)if(Array.isArray(xi))for(fs=[],Ur=0;Ur0&&(Ei.depth=hr[0].depth,Ei.stencil=hr[0].stencil,Ei.depthStencil=hr[0].depthStencil),hr[Ur]?hr[Ur](Ei):hr[Ur]=mr(Ei)}return r(Ut,{width:Xn,height:Xn,color:fs})}function Nn(ci){var Ur,Ei=ci|0;if(J(Ei>0&&Ei<=Pe.maxCubeMapSize,"invalid radius for cube fbo"),Ei===Ut.width)return Ut;var Xn=Ut.color;for(Ur=0;Ur0,"must specify at least one attribute");var cn={},Hn=yr.attributes;Hn.length=mr.length;for(var Tr=0;Tr=Nn.byteLength?ci.subdata(Nn):(ci.destroy(),yr.buffers[Tr]=null)),yr.buffers[Tr]||(ci=yr.buffers[Tr]=Ot.create(hr,Bfe,!1,!0)),Ut.buffer=Ot.getBuffer(ci),Ut.size=Ut.buffer.dimension|0,Ut.normalized=!1,Ut.type=Ut.buffer.dtype,Ut.offset=0,Ut.stride=0,Ut.divisor=0,Ut.state=1,cn[Tr]=1}else Ot.getBuffer(hr)?(Ut.buffer=Ot.getBuffer(hr),Ut.size=Ut.buffer.dimension|0,Ut.normalized=!1,Ut.type=Ut.buffer.dtype,Ut.offset=0,Ut.stride=0,Ut.divisor=0,Ut.state=1):Ot.getBuffer(hr.buffer)?(Ut.buffer=Ot.getBuffer(hr.buffer),Ut.size=(+hr.size||Ut.buffer.dimension)|0,Ut.normalized=!!hr.normalized||!1,"type"in hr?(J.parameter(hr.type,_h,"invalid buffer type"),Ut.type=_h[hr.type]):Ut.type=Ut.buffer.dtype,Ut.offset=(hr.offset||0)|0,Ut.stride=(hr.stride||0)|0,Ut.divisor=(hr.divisor||0)|0,Ut.state=1,J(Ut.size>=1&&Ut.size<=4,"size must be between 1 and 4"),J(Ut.offset>=0,"invalid offset"),J(Ut.stride>=0&&Ut.stride<=255,"stride must be between 0 and 255"),J(Ut.divisor>=0,"divisor must be positive"),J(!Ut.divisor||!!ge.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in hr?(J(Tr>0,"first attribute must not be a constant"),Ut.x=+hr.x||0,Ut.y=+hr.y||0,Ut.z=+hr.z||0,Ut.w=+hr.w||0,Ut.state=2):J(!1,"invalid attribute spec for location "+Tr)}for(var Ur=0;Ur1)for(var Hn=0;HnYe&&(Ye=St.stats.uniformsCount)}),Ye},Pe.getMaxAttributesCount=function(){var Ye=0;return tr.forEach(function(St){St.stats.attributesCount>Ye&&(Ye=St.stats.attributesCount)}),Ye});function pr(){Ot={},lt={};for(var Ye=0;Ye=0,"missing vertex shader",or),J.command(St>=0,"missing fragment shader",or);var Wt=lr[St];Wt||(Wt=lr[St]={});var Nr=Wt[Ye];if(Nr&&(Nr.refCount++,!Mr))return Nr;var Xt=new Er(St,Ye);return Pe.shaderCount++,Jt(Xt,or,Mr),Nr||(Wt[Ye]=Xt),tr.push(Xt),r(Xt,{destroy:function(){if(Xt.refCount--,Xt.refCount<=0){K.deleteProgram(Xt.program);var yr=tr.indexOf(Xt);tr.splice(yr,1),Pe.shaderCount--}Wt[Xt.vertId].refCount<=0&&(K.deleteShader(lt[Xt.vertId]),delete lt[Xt.vertId],delete lr[Xt.fragId][Xt.vertId]),Object.keys(lr[Xt.fragId]).length||(K.deleteShader(Ot[Xt.fragId]),delete Ot[Xt.fragId],delete lr[Xt.fragId])}})},restore:pr,shader:er,frag:-1,vert:-1}}var Vet=6408,IL=5121,$et=3333,pF=5126;function Wet(K,ge,Pe,ct,Ot,lt,xt){function Kt(tr){var dr;ge.next===null?(J(Ot.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),dr=IL):(J(ge.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),dr=ge.next.colorAttachments[0].texture._texture.type,lt.oes_texture_float?(J(dr===IL||dr===pF,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),dr===pF&&J(xt.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):J(dr===IL,"Reading from a framebuffer is only allowed for the type 'uint8'"));var Er=0,Jt=0,pr=ct.framebufferWidth,Ye=ct.framebufferHeight,St=null;t(tr)?St=tr:tr&&(J.type(tr,"object","invalid arguments to regl.read()"),Er=tr.x|0,Jt=tr.y|0,J(Er>=0&&Er=0&&Jt0&&pr+Er<=ct.framebufferWidth,"invalid width for read pixels"),J(Ye>0&&Ye+Jt<=ct.framebufferHeight,"invalid height for read pixels"),Pe();var or=pr*Ye*4;return St||(dr===IL?St=new Uint8Array(or):dr===pF&&(St=St||new Float32Array(or))),J.isTypedArray(St,"data buffer for regl.read() must be a typedarray"),J(St.byteLength>=or,"data buffer for regl.read() too small"),K.pixelStorei($et,4),K.readPixels(Er,Jt,pr,Ye,Vet,dr,St),St}function er(tr){var dr;return ge.setFBO({framebuffer:tr.framebuffer},function(){dr=Kt(tr)}),dr}function lr(tr){return!tr||!("framebuffer"in tr)?Kt(tr):er(tr)}return lr}function PT(K){return Array.prototype.slice.call(K)}function OT(K){return PT(K).join("")}function Het(){var K=0,ge=[],Pe=[];function ct(dr){for(var Er=0;Er0&&(dr.push(Ye,"="),dr.push.apply(dr,PT(arguments)),dr.push(";")),Ye}return r(Er,{def:pr,toString:function(){return OT([Jt.length>0?"var "+Jt.join(",")+";":"",OT(dr)])}})}function lt(){var dr=Ot(),Er=Ot(),Jt=dr.toString,pr=Er.toString;function Ye(St,or){Er(St,or,"=",dr.def(St,or),";")}return r(function(){dr.apply(dr,PT(arguments))},{def:dr.def,entry:dr,exit:Er,save:Ye,set:function(St,or,Mr){Ye(St,or),dr(St,or,"=",Mr,";")},toString:function(){return Jt()+pr()}})}function xt(){var dr=OT(arguments),Er=lt(),Jt=lt(),pr=Er.toString,Ye=Jt.toString;return r(Er,{then:function(){return Er.apply(Er,PT(arguments)),this},else:function(){return Jt.apply(Jt,PT(arguments)),this},toString:function(){var St=Ye();return St&&(St="else{"+St+"}"),OT(["if(",dr,"){",pr(),"}",St])}})}var Kt=Ot(),er={};function lr(dr,Er){var Jt=[];function pr(){var Wt="a"+Jt.length;return Jt.push(Wt),Wt}Er=Er||0;for(var Ye=0;Ye":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Q_={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},pde={frag:Zet,vert:Ket},LW={cw:ude,ccw:IW};function IF(K){return Array.isArray(K)||t(K)||mu(K)}function gde(K){return K.sort(function(ge,Pe){return ge===Xm?-1:Pe===Xm?1:ge=1,ct>=2,ge)}else if(Pe===gF){var Ot=K.data;return new cf(Ot.thisDep,Ot.contextDep,Ot.propDep,ge)}else{if(Pe===Ufe)return new cf(!1,!1,!1,ge);if(Pe===Vfe){for(var lt=!1,xt=!1,Kt=!1,er=0;er=1&&(xt=!0),tr>=2&&(Kt=!0)}else lr.type===gF&&(lt=lt||lr.data.thisDep,xt=xt||lr.data.contextDep,Kt=Kt||lr.data.propDep)}return new cf(lt,xt,Kt,ge)}else return new cf(Pe===vW,Pe===dW,Pe===fW,ge)}}var yde=new cf(!1,!1,!1,function(){});function dtt(K,ge,Pe,ct,Ot,lt,xt,Kt,er,lr,tr,dr,Er,Jt,pr){var Ye=lr.Record,St={add:32774,subtract:32778,"reverse subtract":32779};Pe.ext_blend_minmax&&(St.min=ltt,St.max=utt);var or=Pe.angle_instanced_arrays,Mr=Pe.webgl_draw_buffers,Wt={dirty:!0,profile:pr.profile},Nr={},Xt=[],yr={},jt={};function mr(be){return be.replace(".","_")}function cn(be,de,Ne){var He=mr(be);Xt.push(be),Nr[He]=Wt[He]=!!Ne,yr[He]=de}function Hn(be,de,Ne){var He=mr(be);Xt.push(be),Array.isArray(Ne)?(Wt[He]=Ne.slice(),Nr[He]=Ne.slice()):Wt[He]=Nr[He]=Ne,jt[He]=de}cn($fe,ttt),cn(Wfe,ett),Hn(Hfe,"blendColor",[0,0,0,0]),Hn(pW,"blendEquationSeparate",[fde,fde]),Hn(gW,"blendFuncSeparate",[cde,hde,cde,hde]),cn(jfe,ntt,!0),Hn(Xfe,"depthFunc",ctt),Hn(Yfe,"depthRange",[0,1]),Hn(qfe,"depthMask",!0),Hn(yW,yW,[!0,!0,!0,!0]),cn(Zfe,Qet),Hn(Kfe,"cullFace",Uw),Hn(mW,mW,IW),Hn(_W,_W,1),cn(Jfe,att),Hn(xW,"polygonOffset",[0,0]),cn(Qfe,ott),cn(ede,stt),Hn(SW,"sampleCoverage",[1,!1]),cn(tde,rtt),Hn(rde,"stencilMask",-1),Hn(wW,"stencilFunc",[htt,0,-1]),Hn(bW,"stencilOpSeparate",[zL,J_,J_,J_]),Hn(LL,"stencilOpSeparate",[Uw,J_,J_,J_]),cn(nde,itt),Hn(yF,"scissor",[0,0,K.drawingBufferWidth,K.drawingBufferHeight]),Hn(Xm,Xm,[0,0,K.drawingBufferWidth,K.drawingBufferHeight]);var Tr={gl:K,context:Er,strings:ge,next:Nr,current:Wt,draw:dr,elements:lt,buffer:Ot,shader:tr,attributes:lr.state,vao:lr,uniforms:er,framebuffer:Kt,extensions:Pe,timer:Jt,isBufferArgs:IF},hr={primTypes:rt,compareFuncs:BT,blendFuncs:Z0,blendEquations:St,stencilOps:Q_,glTypes:_h,orientationType:LW};J.optional(function(){Tr.isArrayLike=An}),Mr&&(hr.backBuffer=[Uw],hr.drawBuffer=no(ct.maxDrawbuffers,function(be){return be===0?[0]:no(be,function(de){return ftt+de})}));var Ut=0;function Nn(){var be=Het(),de=be.link,Ne=be.global;be.id=Ut++,be.batchId="0";var He=de(Tr),Ke=be.shared={props:"a0"};Object.keys(Tr).forEach(function(De){Ke[De]=Ne.def(He,".",De)}),J.optional(function(){be.CHECK=de(J),be.commandStr=J.guessCommand(),be.command=de(be.commandStr),be.assert=function(De,_e,Ve){De("if(!(",_e,"))",this.CHECK,".commandRaise(",de(Ve),",",this.command,");")},hr.invalidBlendCombinations=vde});var Ge=be.next={},Fe=be.current={};Object.keys(jt).forEach(function(De){Array.isArray(Wt[De])&&(Ge[De]=Ne.def(Ke.next,".",De),Fe[De]=Ne.def(Ke.current,".",De))});var ze=be.constants={};Object.keys(hr).forEach(function(De){ze[De]=Ne.def(JSON.stringify(hr[De]))}),be.invoke=function(De,_e){switch(_e.type){case cW:var Ve=["this",Ke.context,Ke.props,be.batchId];return De.def(de(_e.data),".call(",Ve.slice(0,Math.max(_e.data.length+1,4)),")");case fW:return De.def(Ke.props,_e.data);case dW:return De.def(Ke.context,_e.data);case vW:return De.def("this",_e.data);case gF:return _e.data.append(be,De),_e.data.ref;case Ufe:return _e.data.toString();case Vfe:return _e.data.map(function(et){return be.invoke(De,et)})}},be.attribCache={};var Ee={};return be.scopeAttrib=function(De){var _e=ge.id(De);if(_e in Ee)return Ee[_e];var Ve=lr.scope[_e];Ve||(Ve=lr.scope[_e]=new Ye);var et=Ee[_e]=de(Ve);return et},be}function ci(be){var de=be.static,Ne=be.dynamic,He;if(PL in de){var Ke=!!de[PL];He=kl(function(Fe,ze){return Ke}),He.enable=Ke}else if(PL in Ne){var Ge=Ne[PL];He=Jf(Ge,function(Fe,ze){return Fe.invoke(ze,Ge)})}return He}function Ur(be,de){var Ne=be.static,He=be.dynamic;if(Fw in Ne){var Ke=Ne[Fw];return Ke?(Ke=Kt.getFramebuffer(Ke),J.command(Ke,"invalid framebuffer object"),kl(function(Fe,ze){var Ee=Fe.link(Ke),De=Fe.shared;ze.set(De.framebuffer,".next",Ee);var _e=De.context;return ze.set(_e,"."+NT,Ee+".width"),ze.set(_e,"."+kT,Ee+".height"),Ee})):kl(function(Fe,ze){var Ee=Fe.shared;ze.set(Ee.framebuffer,".next","null");var De=Ee.context;return ze.set(De,"."+NT,De+"."+ade),ze.set(De,"."+kT,De+"."+ode),"null"})}else if(Fw in He){var Ge=He[Fw];return Jf(Ge,function(Fe,ze){var Ee=Fe.invoke(ze,Ge),De=Fe.shared,_e=De.framebuffer,Ve=ze.def(_e,".getFramebuffer(",Ee,")");J.optional(function(){Fe.assert(ze,"!"+Ee+"||"+Ve,"invalid framebuffer object")}),ze.set(_e,".next",Ve);var et=De.context;return ze.set(et,"."+NT,Ve+"?"+Ve+".width:"+et+"."+ade),ze.set(et,"."+kT,Ve+"?"+Ve+".height:"+et+"."+ode),Ve})}else return null}function Ei(be,de,Ne){var He=be.static,Ke=be.dynamic;function Ge(Ee){if(Ee in He){var De=He[Ee];J.commandType(De,"object","invalid "+Ee,Ne.commandStr);var _e=!0,Ve=De.x|0,et=De.y|0,Lt,Rt;return"width"in De?(Lt=De.width|0,J.command(Lt>=0,"invalid "+Ee,Ne.commandStr)):_e=!1,"height"in De?(Rt=De.height|0,J.command(Rt>=0,"invalid "+Ee,Ne.commandStr)):_e=!1,new cf(!_e&&de&&de.thisDep,!_e&&de&&de.contextDep,!_e&&de&&de.propDep,function(en,di){var Vr=en.shared.context,Mn=Lt;"width"in De||(Mn=di.def(Vr,".",NT,"-",Ve));var Qn=Rt;return"height"in De||(Qn=di.def(Vr,".",kT,"-",et)),[Ve,et,Mn,Qn]})}else if(Ee in Ke){var bt=Ke[Ee],ir=Jf(bt,function(en,di){var Vr=en.invoke(di,bt);J.optional(function(){en.assert(di,Vr+"&&typeof "+Vr+'==="object"',"invalid "+Ee)});var Mn=en.shared.context,Qn=di.def(Vr,".x|0"),Ha=di.def(Vr,".y|0"),sl=di.def('"width" in ',Vr,"?",Vr,".width|0:","(",Mn,".",NT,"-",Qn,")"),ff=di.def('"height" in ',Vr,"?",Vr,".height|0:","(",Mn,".",kT,"-",Ha,")");return J.optional(function(){en.assert(di,sl+">=0&&"+ff+">=0","invalid "+Ee)}),[Qn,Ha,sl,ff]});return de&&(ir.thisDep=ir.thisDep||de.thisDep,ir.contextDep=ir.contextDep||de.contextDep,ir.propDep=ir.propDep||de.propDep),ir}else return de?new cf(de.thisDep,de.contextDep,de.propDep,function(en,di){var Vr=en.shared.context;return[0,0,di.def(Vr,".",NT),di.def(Vr,".",kT)]}):null}var Fe=Ge(Xm);if(Fe){var ze=Fe;Fe=new cf(Fe.thisDep,Fe.contextDep,Fe.propDep,function(Ee,De){var _e=ze.append(Ee,De),Ve=Ee.shared.context;return De.set(Ve,"."+jet,_e[2]),De.set(Ve,"."+Xet,_e[3]),_e})}return{viewport:Fe,scissor_box:Ge(yF)}}function Xn(be,de){var Ne=be.static,He=typeof Ne[RL]=="string"&&typeof Ne[OL]=="string";if(He){if(Object.keys(de.dynamic).length>0)return null;var Ke=de.static,Ge=Object.keys(Ke);if(Ge.length>0&&typeof Ke[Ge[0]]=="number"){for(var Fe=[],ze=0;ze=0,"invalid "+_e,de.commandStr),kl(function(Rt,bt){return Ve&&(Rt.OFFSET=et),et})}else if(_e in He){var Lt=He[_e];return Jf(Lt,function(Rt,bt){var ir=Rt.invoke(bt,Lt);return Ve&&(Rt.OFFSET=ir,J.optional(function(){Rt.assert(bt,ir+">=0","invalid "+_e)})),ir})}else if(Ve&&Ge)return kl(function(Rt,bt){return Rt.OFFSET="0",0});return null}var Ee=ze(mF,!0);function De(){if(zw in Ne){var _e=Ne[zw]|0;return J.command(typeof _e=="number"&&_e>=0,"invalid vertex count",de.commandStr),kl(function(){return _e})}else if(zw in He){var Ve=He[zw];return Jf(Ve,function(Rt,bt){var ir=Rt.invoke(bt,Ve);return J.optional(function(){Rt.assert(bt,"typeof "+ir+'==="number"&&'+ir+">=0&&"+ir+"===("+ir+"|0)","invalid vertex count")}),ir})}else if(Ge)if(ex(Ge)){if(Ge)return Ee?new cf(Ee.thisDep,Ee.contextDep,Ee.propDep,function(Rt,bt){var ir=bt.def(Rt.ELEMENTS,".vertCount-",Rt.OFFSET);return J.optional(function(){Rt.assert(bt,ir+">=0","invalid vertex offset/element buffer too small")}),ir}):kl(function(Rt,bt){return bt.def(Rt.ELEMENTS,".vertCount")});var et=kl(function(){return-1});return J.optional(function(){et.MISSING=!0}),et}else{var Lt=new cf(Ge.thisDep||Ee.thisDep,Ge.contextDep||Ee.contextDep,Ge.propDep||Ee.propDep,function(Rt,bt){var ir=Rt.ELEMENTS;return Rt.OFFSET?bt.def(ir,"?",ir,".vertCount-",Rt.OFFSET,":-1"):bt.def(ir,"?",ir,".vertCount:-1")});return J.optional(function(){Lt.DYNAMIC=!0}),Lt}return null}return{elements:Ge,primitive:Fe(),count:De(),instances:ze(_F,!1),offset:Ee}}function Fl(be,de){var Ne=be.static,He=be.dynamic,Ke={};return Xt.forEach(function(Ge){var Fe=mr(Ge);function ze(Ee,De){if(Ge in Ne){var _e=Ee(Ne[Ge]);Ke[Fe]=kl(function(){return _e})}else if(Ge in He){var Ve=He[Ge];Ke[Fe]=Jf(Ve,function(et,Lt){return De(et,Lt,et.invoke(Lt,Ve))})}}switch(Ge){case Zfe:case Wfe:case $fe:case tde:case jfe:case nde:case Jfe:case Qfe:case ede:case qfe:return ze(function(Ee){return J.commandType(Ee,"boolean",Ge,de.commandStr),Ee},function(Ee,De,_e){return J.optional(function(){Ee.assert(De,"typeof "+_e+'==="boolean"',"invalid flag "+Ge,Ee.commandStr)}),_e});case Xfe:return ze(function(Ee){return J.commandParameter(Ee,BT,"invalid "+Ge,de.commandStr),BT[Ee]},function(Ee,De,_e){var Ve=Ee.constants.compareFuncs;return J.optional(function(){Ee.assert(De,_e+" in "+Ve,"invalid "+Ge+", must be one of "+Object.keys(BT))}),De.def(Ve,"[",_e,"]")});case Yfe:return ze(function(Ee){return J.command(An(Ee)&&Ee.length===2&&typeof Ee[0]=="number"&&typeof Ee[1]=="number"&&Ee[0]<=Ee[1],"depth range is 2d array",de.commandStr),Ee},function(Ee,De,_e){J.optional(function(){Ee.assert(De,Ee.shared.isArrayLike+"("+_e+")&&"+_e+".length===2&&typeof "+_e+'[0]==="number"&&typeof '+_e+'[1]==="number"&&'+_e+"[0]<="+_e+"[1]","depth range must be a 2d array")});var Ve=De.def("+",_e,"[0]"),et=De.def("+",_e,"[1]");return[Ve,et]});case gW:return ze(function(Ee){J.commandType(Ee,"object","blend.func",de.commandStr);var De="srcRGB"in Ee?Ee.srcRGB:Ee.src,_e="srcAlpha"in Ee?Ee.srcAlpha:Ee.src,Ve="dstRGB"in Ee?Ee.dstRGB:Ee.dst,et="dstAlpha"in Ee?Ee.dstAlpha:Ee.dst;return J.commandParameter(De,Z0,Fe+".srcRGB",de.commandStr),J.commandParameter(_e,Z0,Fe+".srcAlpha",de.commandStr),J.commandParameter(Ve,Z0,Fe+".dstRGB",de.commandStr),J.commandParameter(et,Z0,Fe+".dstAlpha",de.commandStr),J.command(vde.indexOf(De+", "+Ve)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+De+", "+Ve+")",de.commandStr),[Z0[De],Z0[Ve],Z0[_e],Z0[et]]},function(Ee,De,_e){var Ve=Ee.constants.blendFuncs;J.optional(function(){Ee.assert(De,_e+"&&typeof "+_e+'==="object"',"invalid blend func, must be an object")});function et(Vr,Mn){var Qn=De.def('"',Vr,Mn,'" in ',_e,"?",_e,".",Vr,Mn,":",_e,".",Vr);return J.optional(function(){Ee.assert(De,Qn+" in "+Ve,"invalid "+Ge+"."+Vr+Mn+", must be one of "+Object.keys(Z0))}),Qn}var Lt=et("src","RGB"),Rt=et("dst","RGB");J.optional(function(){var Vr=Ee.constants.invalidBlendCombinations;Ee.assert(De,Vr+".indexOf("+Lt+'+", "+'+Rt+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var bt=De.def(Ve,"[",Lt,"]"),ir=De.def(Ve,"[",et("src","Alpha"),"]"),en=De.def(Ve,"[",Rt,"]"),di=De.def(Ve,"[",et("dst","Alpha"),"]");return[bt,en,ir,di]});case pW:return ze(function(Ee){if(typeof Ee=="string")return J.commandParameter(Ee,St,"invalid "+Ge,de.commandStr),[St[Ee],St[Ee]];if(typeof Ee=="object")return J.commandParameter(Ee.rgb,St,Ge+".rgb",de.commandStr),J.commandParameter(Ee.alpha,St,Ge+".alpha",de.commandStr),[St[Ee.rgb],St[Ee.alpha]];J.commandRaise("invalid blend.equation",de.commandStr)},function(Ee,De,_e){var Ve=Ee.constants.blendEquations,et=De.def(),Lt=De.def(),Rt=Ee.cond("typeof ",_e,'==="string"');return J.optional(function(){function bt(ir,en,di){Ee.assert(ir,di+" in "+Ve,"invalid "+en+", must be one of "+Object.keys(St))}bt(Rt.then,Ge,_e),Ee.assert(Rt.else,_e+"&&typeof "+_e+'==="object"',"invalid "+Ge),bt(Rt.else,Ge+".rgb",_e+".rgb"),bt(Rt.else,Ge+".alpha",_e+".alpha")}),Rt.then(et,"=",Lt,"=",Ve,"[",_e,"];"),Rt.else(et,"=",Ve,"[",_e,".rgb];",Lt,"=",Ve,"[",_e,".alpha];"),De(Rt),[et,Lt]});case Hfe:return ze(function(Ee){return J.command(An(Ee)&&Ee.length===4,"blend.color must be a 4d array",de.commandStr),no(4,function(De){return+Ee[De]})},function(Ee,De,_e){return J.optional(function(){Ee.assert(De,Ee.shared.isArrayLike+"("+_e+")&&"+_e+".length===4","blend.color must be a 4d array")}),no(4,function(Ve){return De.def("+",_e,"[",Ve,"]")})});case rde:return ze(function(Ee){return J.commandType(Ee,"number",Fe,de.commandStr),Ee|0},function(Ee,De,_e){return J.optional(function(){Ee.assert(De,"typeof "+_e+'==="number"',"invalid stencil.mask")}),De.def(_e,"|0")});case wW:return ze(function(Ee){J.commandType(Ee,"object",Fe,de.commandStr);var De=Ee.cmp||"keep",_e=Ee.ref||0,Ve="mask"in Ee?Ee.mask:-1;return J.commandParameter(De,BT,Ge+".cmp",de.commandStr),J.commandType(_e,"number",Ge+".ref",de.commandStr),J.commandType(Ve,"number",Ge+".mask",de.commandStr),[BT[De],_e,Ve]},function(Ee,De,_e){var Ve=Ee.constants.compareFuncs;J.optional(function(){function bt(){Ee.assert(De,Array.prototype.join.call(arguments,""),"invalid stencil.func")}bt(_e+"&&typeof ",_e,'==="object"'),bt('!("cmp" in ',_e,")||(",_e,".cmp in ",Ve,")")});var et=De.def('"cmp" in ',_e,"?",Ve,"[",_e,".cmp]",":",J_),Lt=De.def(_e,".ref|0"),Rt=De.def('"mask" in ',_e,"?",_e,".mask|0:-1");return[et,Lt,Rt]});case bW:case LL:return ze(function(Ee){J.commandType(Ee,"object",Fe,de.commandStr);var De=Ee.fail||"keep",_e=Ee.zfail||"keep",Ve=Ee.zpass||"keep";return J.commandParameter(De,Q_,Ge+".fail",de.commandStr),J.commandParameter(_e,Q_,Ge+".zfail",de.commandStr),J.commandParameter(Ve,Q_,Ge+".zpass",de.commandStr),[Ge===LL?Uw:zL,Q_[De],Q_[_e],Q_[Ve]]},function(Ee,De,_e){var Ve=Ee.constants.stencilOps;J.optional(function(){Ee.assert(De,_e+"&&typeof "+_e+'==="object"',"invalid "+Ge)});function et(Lt){return J.optional(function(){Ee.assert(De,'!("'+Lt+'" in '+_e+")||("+_e+"."+Lt+" in "+Ve+")","invalid "+Ge+"."+Lt+", must be one of "+Object.keys(Q_))}),De.def('"',Lt,'" in ',_e,"?",Ve,"[",_e,".",Lt,"]:",J_)}return[Ge===LL?Uw:zL,et("fail"),et("zfail"),et("zpass")]});case xW:return ze(function(Ee){J.commandType(Ee,"object",Fe,de.commandStr);var De=Ee.factor|0,_e=Ee.units|0;return J.commandType(De,"number",Fe+".factor",de.commandStr),J.commandType(_e,"number",Fe+".units",de.commandStr),[De,_e]},function(Ee,De,_e){J.optional(function(){Ee.assert(De,_e+"&&typeof "+_e+'==="object"',"invalid "+Ge)});var Ve=De.def(_e,".factor|0"),et=De.def(_e,".units|0");return[Ve,et]});case Kfe:return ze(function(Ee){var De=0;return Ee==="front"?De=zL:Ee==="back"&&(De=Uw),J.command(!!De,Fe,de.commandStr),De},function(Ee,De,_e){return J.optional(function(){Ee.assert(De,_e+'==="front"||'+_e+'==="back"',"invalid cull.face")}),De.def(_e,'==="front"?',zL,":",Uw)});case _W:return ze(function(Ee){return J.command(typeof Ee=="number"&&Ee>=ct.lineWidthDims[0]&&Ee<=ct.lineWidthDims[1],"invalid line width, must be a positive number between "+ct.lineWidthDims[0]+" and "+ct.lineWidthDims[1],de.commandStr),Ee},function(Ee,De,_e){return J.optional(function(){Ee.assert(De,"typeof "+_e+'==="number"&&'+_e+">="+ct.lineWidthDims[0]+"&&"+_e+"<="+ct.lineWidthDims[1],"invalid line width")}),_e});case mW:return ze(function(Ee){return J.commandParameter(Ee,LW,Fe,de.commandStr),LW[Ee]},function(Ee,De,_e){return J.optional(function(){Ee.assert(De,_e+'==="cw"||'+_e+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),De.def(_e+'==="cw"?'+ude+":"+IW)});case yW:return ze(function(Ee){return J.command(An(Ee)&&Ee.length===4,"color.mask must be length 4 array",de.commandStr),Ee.map(function(De){return!!De})},function(Ee,De,_e){return J.optional(function(){Ee.assert(De,Ee.shared.isArrayLike+"("+_e+")&&"+_e+".length===4","invalid color.mask")}),no(4,function(Ve){return"!!"+_e+"["+Ve+"]"})});case SW:return ze(function(Ee){J.command(typeof Ee=="object"&&Ee,Fe,de.commandStr);var De="value"in Ee?Ee.value:1,_e=!!Ee.invert;return J.command(typeof De=="number"&&De>=0&&De<=1,"sample.coverage.value must be a number between 0 and 1",de.commandStr),[De,_e]},function(Ee,De,_e){J.optional(function(){Ee.assert(De,_e+"&&typeof "+_e+'==="object"',"invalid sample.coverage")});var Ve=De.def('"value" in ',_e,"?+",_e,".value:1"),et=De.def("!!",_e,".invert");return[Ve,et]})}}),Ke}function wu(be,de){var Ne=be.static,He=be.dynamic,Ke={};return Object.keys(Ne).forEach(function(Ge){var Fe=Ne[Ge],ze;if(typeof Fe=="number"||typeof Fe=="boolean")ze=kl(function(){return Fe});else if(typeof Fe=="function"){var Ee=Fe._reglType;Ee==="texture2d"||Ee==="textureCube"?ze=kl(function(De){return De.link(Fe)}):Ee==="framebuffer"||Ee==="framebufferCube"?(J.command(Fe.color.length>0,'missing color attachment for framebuffer sent to uniform "'+Ge+'"',de.commandStr),ze=kl(function(De){return De.link(Fe.color[0])})):J.commandRaise('invalid data for uniform "'+Ge+'"',de.commandStr)}else An(Fe)?ze=kl(function(De){var _e=De.global.def("[",no(Fe.length,function(Ve){return J.command(typeof Fe[Ve]=="number"||typeof Fe[Ve]=="boolean","invalid uniform "+Ge,De.commandStr),Fe[Ve]}),"]");return _e}):J.commandRaise('invalid or missing data for uniform "'+Ge+'"',de.commandStr);ze.value=Fe,Ke[Ge]=ze}),Object.keys(He).forEach(function(Ge){var Fe=He[Ge];Ke[Ge]=Jf(Fe,function(ze,Ee){return ze.invoke(Ee,Fe)})}),Ke}function Ri(be,de){var Ne=be.static,He=be.dynamic,Ke={};return Object.keys(Ne).forEach(function(Ge){var Fe=Ne[Ge],ze=ge.id(Ge),Ee=new Ye;if(IF(Fe))Ee.state=DT,Ee.buffer=Ot.getBuffer(Ot.create(Fe,FT,!1,!0)),Ee.type=0;else{var De=Ot.getBuffer(Fe);if(De)Ee.state=DT,Ee.buffer=De,Ee.type=0;else if(J.command(typeof Fe=="object"&&Fe,"invalid data for attribute "+Ge,de.commandStr),"constant"in Fe){var _e=Fe.constant;Ee.buffer="null",Ee.state=hW,typeof _e=="number"?Ee.x=_e:(J.command(An(_e)&&_e.length>0&&_e.length<=4,"invalid constant for attribute "+Ge,de.commandStr),RT.forEach(function(en,di){di<_e.length&&(Ee[en]=_e[di])}))}else{IF(Fe.buffer)?De=Ot.getBuffer(Ot.create(Fe.buffer,FT,!1,!0)):De=Ot.getBuffer(Fe.buffer),J.command(!!De,'missing buffer for attribute "'+Ge+'"',de.commandStr);var Ve=Fe.offset|0;J.command(Ve>=0,'invalid offset for attribute "'+Ge+'"',de.commandStr);var et=Fe.stride|0;J.command(et>=0&&et<256,'invalid stride for attribute "'+Ge+'", must be integer betweeen [0, 255]',de.commandStr);var Lt=Fe.size|0;J.command(!("size"in Fe)||Lt>0&&Lt<=4,'invalid size for attribute "'+Ge+'", must be 1,2,3,4',de.commandStr);var Rt=!!Fe.normalized,bt=0;"type"in Fe&&(J.commandParameter(Fe.type,_h,"invalid type for attribute "+Ge,de.commandStr),bt=_h[Fe.type]);var ir=Fe.divisor|0;"divisor"in Fe&&(J.command(ir===0||or,'cannot specify divisor for attribute "'+Ge+'", instancing not supported',de.commandStr),J.command(ir>=0,'invalid divisor for attribute "'+Ge+'"',de.commandStr)),J.optional(function(){var en=de.commandStr,di=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(Fe).forEach(function(Vr){J.command(di.indexOf(Vr)>=0,'unknown parameter "'+Vr+'" for attribute pointer "'+Ge+'" (valid parameters are '+di+")",en)})}),Ee.buffer=De,Ee.state=DT,Ee.size=Lt,Ee.normalized=Rt,Ee.type=bt||De.dtype,Ee.offset=Ve,Ee.stride=et,Ee.divisor=ir}}Ke[Ge]=kl(function(en,di){var Vr=en.attribCache;if(ze in Vr)return Vr[ze];var Mn={isStream:!1};return Object.keys(Ee).forEach(function(Qn){Mn[Qn]=Ee[Qn]}),Ee.buffer&&(Mn.buffer=en.link(Ee.buffer),Mn.type=Mn.type||Mn.buffer+".dtype"),Vr[ze]=Mn,Mn})}),Object.keys(He).forEach(function(Ge){var Fe=He[Ge];function ze(Ee,De){var _e=Ee.invoke(De,Fe),Ve=Ee.shared,et=Ee.constants,Lt=Ve.isBufferArgs,Rt=Ve.buffer;J.optional(function(){Ee.assert(De,_e+"&&(typeof "+_e+'==="object"||typeof '+_e+'==="function")&&('+Lt+"("+_e+")||"+Rt+".getBuffer("+_e+")||"+Rt+".getBuffer("+_e+".buffer)||"+Lt+"("+_e+'.buffer)||("constant" in '+_e+"&&(typeof "+_e+'.constant==="number"||'+Ve.isArrayLike+"("+_e+".constant))))",'invalid dynamic attribute "'+Ge+'"')});var bt={isStream:De.def(!1)},ir=new Ye;ir.state=DT,Object.keys(ir).forEach(function(Mn){bt[Mn]=De.def(""+ir[Mn])});var en=bt.buffer,di=bt.type;De("if(",Lt,"(",_e,")){",bt.isStream,"=true;",en,"=",Rt,".createStream(",FT,",",_e,");",di,"=",en,".dtype;","}else{",en,"=",Rt,".getBuffer(",_e,");","if(",en,"){",di,"=",en,".dtype;",'}else if("constant" in ',_e,"){",bt.state,"=",hW,";","if(typeof "+_e+'.constant === "number"){',bt[RT[0]],"=",_e,".constant;",RT.slice(1).map(function(Mn){return bt[Mn]}).join("="),"=0;","}else{",RT.map(function(Mn,Qn){return bt[Mn]+"="+_e+".constant.length>"+Qn+"?"+_e+".constant["+Qn+"]:0;"}).join(""),"}}else{","if(",Lt,"(",_e,".buffer)){",en,"=",Rt,".createStream(",FT,",",_e,".buffer);","}else{",en,"=",Rt,".getBuffer(",_e,".buffer);","}",di,'="type" in ',_e,"?",et.glTypes,"[",_e,".type]:",en,".dtype;",bt.normalized,"=!!",_e,".normalized;");function Vr(Mn){De(bt[Mn],"=",_e,".",Mn,"|0;")}return Vr("size"),Vr("offset"),Vr("stride"),Vr("divisor"),De("}}"),De.exit("if(",bt.isStream,"){",Rt,".destroyStream(",en,");","}"),bt}Ke[Ge]=Jf(Fe,ze)}),Ke}function Jl(be,de){var Ne=be.static,He=be.dynamic;if(DL in Ne){var Ke=Ne[DL];return Ke!==null&&lr.getVAO(Ke)===null&&(Ke=lr.createVAO(Ke)),kl(function(Fe){return Fe.link(lr.getVAO(Ke))})}else if(DL in He){var Ge=He[DL];return Jf(Ge,function(Fe,ze){var Ee=Fe.invoke(ze,Ge);return ze.def(Fe.shared.vao+".getVAO("+Ee+")")})}return null}function fs(be){var de=be.static,Ne=be.dynamic,He={};return Object.keys(de).forEach(function(Ke){var Ge=de[Ke];He[Ke]=kl(function(Fe,ze){return typeof Ge=="number"||typeof Ge=="boolean"?""+Ge:Fe.link(Ge)})}),Object.keys(Ne).forEach(function(Ke){var Ge=Ne[Ke];He[Ke]=Jf(Ge,function(Fe,ze){return Fe.invoke(ze,Ge)})}),He}function Bl(be,de,Ne,He,Ke){var Ge=be.static,Fe=be.dynamic;J.optional(function(){var Vr=[Fw,OL,RL,Bw,Gw,mF,zw,_F,PL,DL].concat(Xt);function Mn(Qn){Object.keys(Qn).forEach(function(Ha){J.command(Vr.indexOf(Ha)>=0,'unknown parameter "'+Ha+'"',Ke.commandStr)})}Mn(Ge),Mn(Fe)});var ze=Xn(be,de),Ee=Ur(be),De=Ei(be,Ee,Ke),_e=Wa(be,Ke),Ve=Fl(be,Ke),et=xi(be,Ke,ze);function Lt(Vr){var Mn=De[Vr];Mn&&(Ve[Vr]=Mn)}Lt(Xm),Lt(mr(yF));var Rt=Object.keys(Ve).length>0,bt={framebuffer:Ee,draw:_e,shader:et,state:Ve,dirty:Rt,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(bt.profile=ci(be),bt.uniforms=wu(Ne,Ke),bt.drawVAO=bt.scopeVAO=Jl(be),!bt.drawVAO&&et.program&&!ze&&Pe.angle_instanced_arrays){var ir=!0,en=et.program.attributes.map(function(Vr){var Mn=de.static[Vr];return ir=ir&&!!Mn,Mn});if(ir&&en.length>0){var di=lr.getVAO(lr.createVAO(en));bt.drawVAO=new cf(null,null,null,function(Vr,Mn){return Vr.link(di)}),bt.useVAO=!0}}return ze?bt.useVAO=!0:bt.attributes=Ri(de,Ke),bt.context=fs(He),bt}function Ql(be,de,Ne){var He=be.shared,Ke=He.context,Ge=be.scope();Object.keys(Ne).forEach(function(Fe){de.save(Ke,"."+Fe);var ze=Ne[Fe],Ee=ze.append(be,de);Array.isArray(Ee)?Ge(Ke,".",Fe,"=[",Ee.join(),"];"):Ge(Ke,".",Fe,"=",Ee,";")}),de(Ge)}function eu(be,de,Ne,He){var Ke=be.shared,Ge=Ke.gl,Fe=Ke.framebuffer,ze;Mr&&(ze=de.def(Ke.extensions,".webgl_draw_buffers"));var Ee=be.constants,De=Ee.drawBuffer,_e=Ee.backBuffer,Ve;Ne?Ve=Ne.append(be,de):Ve=de.def(Fe,".next"),He||de("if(",Ve,"!==",Fe,".cur){"),de("if(",Ve,"){",Ge,".bindFramebuffer(",dde,",",Ve,".framebuffer);"),Mr&&de(ze,".drawBuffersWEBGL(",De,"[",Ve,".colorAttachments.length]);"),de("}else{",Ge,".bindFramebuffer(",dde,",null);"),Mr&&de(ze,".drawBuffersWEBGL(",_e,");"),de("}",Fe,".cur=",Ve,";"),He||de("}")}function Xu(be,de,Ne){var He=be.shared,Ke=He.gl,Ge=be.current,Fe=be.next,ze=He.current,Ee=He.next,De=be.cond(ze,".dirty");Xt.forEach(function(_e){var Ve=mr(_e);if(!(Ve in Ne.state)){var et,Lt;if(Ve in Fe){et=Fe[Ve],Lt=Ge[Ve];var Rt=no(Wt[Ve].length,function(ir){return De.def(et,"[",ir,"]")});De(be.cond(Rt.map(function(ir,en){return ir+"!=="+Lt+"["+en+"]"}).join("||")).then(Ke,".",jt[Ve],"(",Rt,");",Rt.map(function(ir,en){return Lt+"["+en+"]="+ir}).join(";"),";"))}else{et=De.def(Ee,".",Ve);var bt=be.cond(et,"!==",ze,".",Ve);De(bt),Ve in yr?bt(be.cond(et).then(Ke,".enable(",yr[Ve],");").else(Ke,".disable(",yr[Ve],");"),ze,".",Ve,"=",et,";"):bt(Ke,".",jt[Ve],"(",et,");",ze,".",Ve,"=",et,";")}}}),Object.keys(Ne.state).length===0&&De(ze,".dirty=false;"),de(De)}function Sh(be,de,Ne,He){var Ke=be.shared,Ge=be.current,Fe=Ke.current,ze=Ke.gl;gde(Object.keys(Ne)).forEach(function(Ee){var De=Ne[Ee];if(!(He&&!He(De))){var _e=De.append(be,de);if(yr[Ee]){var Ve=yr[Ee];ex(De)?_e?de(ze,".enable(",Ve,");"):de(ze,".disable(",Ve,");"):de(be.cond(_e).then(ze,".enable(",Ve,");").else(ze,".disable(",Ve,");")),de(Fe,".",Ee,"=",_e,";")}else if(An(_e)){var et=Ge[Ee];de(ze,".",jt[Ee],"(",_e,");",_e.map(function(Lt,Rt){return et+"["+Rt+"]="+Lt}).join(";"),";")}else de(ze,".",jt[Ee],"(",_e,");",Fe,".",Ee,"=",_e,";")}})}function wl(be,de){or&&(be.instancing=de.def(be.shared.extensions,".angle_instanced_arrays"))}function fi(be,de,Ne,He,Ke){var Ge=be.shared,Fe=be.stats,ze=Ge.current,Ee=Ge.timer,De=Ne.profile;function _e(){return typeof performance>"u"?"Date.now()":"performance.now()"}var Ve,et;function Lt(Vr){Ve=de.def(),Vr(Ve,"=",_e(),";"),typeof Ke=="string"?Vr(Fe,".count+=",Ke,";"):Vr(Fe,".count++;"),Jt&&(He?(et=de.def(),Vr(et,"=",Ee,".getNumPendingQueries();")):Vr(Ee,".beginQuery(",Fe,");"))}function Rt(Vr){Vr(Fe,".cpuTime+=",_e(),"-",Ve,";"),Jt&&(He?Vr(Ee,".pushScopeStats(",et,",",Ee,".getNumPendingQueries(),",Fe,");"):Vr(Ee,".endQuery();"))}function bt(Vr){var Mn=de.def(ze,".profile");de(ze,".profile=",Vr,";"),de.exit(ze,".profile=",Mn,";")}var ir;if(De){if(ex(De)){De.enable?(Lt(de),Rt(de.exit),bt("true")):bt("false");return}ir=De.append(be,de),bt(ir)}else ir=de.def(ze,".profile");var en=be.block();Lt(en),de("if(",ir,"){",en,"}");var di=be.block();Rt(di),de.exit("if(",ir,"){",di,"}")}function wh(be,de,Ne,He,Ke){var Ge=be.shared;function Fe(Ee){switch(Ee){case xF:case bF:case CF:return 2;case SF:case EF:case AF:return 3;case wF:case TF:case MF:return 4;default:return 1}}function ze(Ee,De,_e){var Ve=Ge.gl,et=de.def(Ee,".location"),Lt=de.def(Ge.attributes,"[",et,"]"),Rt=_e.state,bt=_e.buffer,ir=[_e.x,_e.y,_e.z,_e.w],en=["buffer","normalized","offset","stride"];function di(){de("if(!",Lt,".buffer){",Ve,".enableVertexAttribArray(",et,");}");var Mn=_e.type,Qn;if(_e.size?Qn=de.def(_e.size,"||",De):Qn=De,de("if(",Lt,".type!==",Mn,"||",Lt,".size!==",Qn,"||",en.map(function(sl){return Lt+"."+sl+"!=="+_e[sl]}).join("||"),"){",Ve,".bindBuffer(",FT,",",bt,".buffer);",Ve,".vertexAttribPointer(",[et,Qn,Mn,_e.normalized,_e.stride,_e.offset],");",Lt,".type=",Mn,";",Lt,".size=",Qn,";",en.map(function(sl){return Lt+"."+sl+"="+_e[sl]+";"}).join(""),"}"),or){var Ha=_e.divisor;de("if(",Lt,".divisor!==",Ha,"){",be.instancing,".vertexAttribDivisorANGLE(",[et,Ha],");",Lt,".divisor=",Ha,";}")}}function Vr(){de("if(",Lt,".buffer){",Ve,".disableVertexAttribArray(",et,");",Lt,".buffer=null;","}if(",RT.map(function(Mn,Qn){return Lt+"."+Mn+"!=="+ir[Qn]}).join("||"),"){",Ve,".vertexAttrib4f(",et,",",ir,");",RT.map(function(Mn,Qn){return Lt+"."+Mn+"="+ir[Qn]+";"}).join(""),"}")}Rt===DT?di():Rt===hW?Vr():(de("if(",Rt,"===",DT,"){"),di(),de("}else{"),Vr(),de("}"))}He.forEach(function(Ee){var De=Ee.name,_e=Ne.attributes[De],Ve;if(_e){if(!Ke(_e))return;Ve=_e.append(be,de)}else{if(!Ke(yde))return;var et=be.scopeAttrib(De);J.optional(function(){be.assert(de,et+".state","missing attribute "+De)}),Ve={},Object.keys(new Ye).forEach(function(Lt){Ve[Lt]=de.def(et,".",Lt)})}ze(be.link(Ee),Fe(Ee.info.type),Ve)})}function io(be,de,Ne,He,Ke){for(var Ge=be.shared,Fe=Ge.gl,ze,Ee=0;Ee1?de(no(Mn,function(ff){return Array.isArray(bt)?bt[ff]:bt+"["+ff+"]"})):(J(!Array.isArray(bt),"uniform value must not be an array"),de(bt));de(");")}}function bn(be,de,Ne,He){var Ke=be.shared,Ge=Ke.gl,Fe=Ke.draw,ze=He.draw;function Ee(){var Qn=ze.elements,Ha,sl=de;return Qn?((Qn.contextDep&&He.contextDynamic||Qn.propDep)&&(sl=Ne),Ha=Qn.append(be,sl)):Ha=sl.def(Fe,".",Bw),Ha&&sl("if("+Ha+")"+Ge+".bindBuffer("+qet+","+Ha+".buffer.buffer);"),Ha}function De(){var Qn=ze.count,Ha,sl=de;return Qn?((Qn.contextDep&&He.contextDynamic||Qn.propDep)&&(sl=Ne),Ha=Qn.append(be,sl),J.optional(function(){Qn.MISSING&&be.assert(de,"false","missing vertex count"),Qn.DYNAMIC&&be.assert(sl,Ha+">=0","missing vertex count")})):(Ha=sl.def(Fe,".",zw),J.optional(function(){be.assert(sl,Ha+">=0","missing vertex count")})),Ha}var _e=Ee();function Ve(Qn){var Ha=ze[Qn];return Ha?Ha.contextDep&&He.contextDynamic||Ha.propDep?Ha.append(be,Ne):Ha.append(be,de):de.def(Fe,".",Qn)}var et=Ve(Gw),Lt=Ve(mF),Rt=De();if(typeof Rt=="number"){if(Rt===0)return}else Ne("if(",Rt,"){"),Ne.exit("}");var bt,ir;or&&(bt=Ve(_F),ir=be.instancing);var en=_e+".type",di=ze.elements&&ex(ze.elements);function Vr(){function Qn(){Ne(ir,".drawElementsInstancedANGLE(",[et,Rt,en,Lt+"<<(("+en+"-"+zfe+")>>1)",bt],");")}function Ha(){Ne(ir,".drawArraysInstancedANGLE(",[et,Lt,Rt,bt],");")}_e?di?Qn():(Ne("if(",_e,"){"),Qn(),Ne("}else{"),Ha(),Ne("}")):Ha()}function Mn(){function Qn(){Ne(Ge+".drawElements("+[et,Rt,en,Lt+"<<(("+en+"-"+zfe+")>>1)"]+");")}function Ha(){Ne(Ge+".drawArrays("+[et,Lt,Rt]+");")}_e?di?Qn():(Ne("if(",_e,"){"),Qn(),Ne("}else{"),Ha(),Ne("}")):Ha()}or&&(typeof bt!="number"||bt>=0)?typeof bt=="string"?(Ne("if(",bt,">0){"),Vr(),Ne("}else if(",bt,"<0){"),Mn(),Ne("}")):Vr():Mn()}function Mi(be,de,Ne,He,Ke){var Ge=Nn(),Fe=Ge.proc("body",Ke);return J.optional(function(){Ge.commandStr=de.commandStr,Ge.command=Ge.link(de.commandStr)}),or&&(Ge.instancing=Fe.def(Ge.shared.extensions,".angle_instanced_arrays")),be(Ge,Fe,Ne,He),Ge.compile().body}function ia(be,de,Ne,He){wl(be,de),Ne.useVAO?Ne.drawVAO?de(be.shared.vao,".setVAO(",Ne.drawVAO.append(be,de),");"):de(be.shared.vao,".setVAO(",be.shared.vao,".targetVAO);"):(de(be.shared.vao,".setVAO(null);"),wh(be,de,Ne,He.attributes,function(){return!0})),io(be,de,Ne,He.uniforms,function(){return!0}),bn(be,de,de,Ne)}function bl(be,de){var Ne=be.proc("draw",1);wl(be,Ne),Ql(be,Ne,de.context),eu(be,Ne,de.framebuffer),Xu(be,Ne,de),Sh(be,Ne,de.state),fi(be,Ne,de,!1,!0);var He=de.shader.progVar.append(be,Ne);if(Ne(be.shared.gl,".useProgram(",He,".program);"),de.shader.program)ia(be,Ne,de,de.shader.program);else{Ne(be.shared.vao,".setVAO(null);");var Ke=be.global.def("{}"),Ge=Ne.def(He,".id"),Fe=Ne.def(Ke,"[",Ge,"]");Ne(be.cond(Fe).then(Fe,".call(this,a0);").else(Fe,"=",Ke,"[",Ge,"]=",be.link(function(ze){return Mi(ia,be,de,ze,1)}),"(",He,");",Fe,".call(this,a0);"))}Object.keys(de.state).length>0&&Ne(be.shared.current,".dirty=true;")}function K0(be,de,Ne,He){be.batchId="a1",wl(be,de);function Ke(){return!0}wh(be,de,Ne,He.attributes,Ke),io(be,de,Ne,He.uniforms,Ke),bn(be,de,de,Ne)}function Vw(be,de,Ne,He){wl(be,de);var Ke=Ne.contextDep,Ge=de.def(),Fe="a0",ze="a1",Ee=de.def();be.shared.props=Ee,be.batchId=Ge;var De=be.scope(),_e=be.scope();de(De.entry,"for(",Ge,"=0;",Ge,"<",ze,";++",Ge,"){",Ee,"=",Fe,"[",Ge,"];",_e,"}",De.exit);function Ve(en){return en.contextDep&&Ke||en.propDep}function et(en){return!Ve(en)}if(Ne.needsContext&&Ql(be,_e,Ne.context),Ne.needsFramebuffer&&eu(be,_e,Ne.framebuffer),Sh(be,_e,Ne.state,Ve),Ne.profile&&Ve(Ne.profile)&&fi(be,_e,Ne,!1,!0),He)Ne.useVAO?Ne.drawVAO?Ve(Ne.drawVAO)?_e(be.shared.vao,".setVAO(",Ne.drawVAO.append(be,_e),");"):De(be.shared.vao,".setVAO(",Ne.drawVAO.append(be,De),");"):De(be.shared.vao,".setVAO(",be.shared.vao,".targetVAO);"):(De(be.shared.vao,".setVAO(null);"),wh(be,De,Ne,He.attributes,et),wh(be,_e,Ne,He.attributes,Ve)),io(be,De,Ne,He.uniforms,et),io(be,_e,Ne,He.uniforms,Ve),bn(be,De,_e,Ne);else{var Lt=be.global.def("{}"),Rt=Ne.shader.progVar.append(be,_e),bt=_e.def(Rt,".id"),ir=_e.def(Lt,"[",bt,"]");_e(be.shared.gl,".useProgram(",Rt,".program);","if(!",ir,"){",ir,"=",Lt,"[",bt,"]=",be.link(function(en){return Mi(K0,be,Ne,en,2)}),"(",Rt,");}",ir,".call(this,a0[",Ge,"],",Ge,");")}}function Ie(be,de){var Ne=be.proc("batch",2);be.batchId="0",wl(be,Ne);var He=!1,Ke=!0;Object.keys(de.context).forEach(function(Lt){He=He||de.context[Lt].propDep}),He||(Ql(be,Ne,de.context),Ke=!1);var Ge=de.framebuffer,Fe=!1;Ge?(Ge.propDep?He=Fe=!0:Ge.contextDep&&He&&(Fe=!0),Fe||eu(be,Ne,Ge)):eu(be,Ne,null),de.state.viewport&&de.state.viewport.propDep&&(He=!0);function ze(Lt){return Lt.contextDep&&He||Lt.propDep}Xu(be,Ne,de),Sh(be,Ne,de.state,function(Lt){return!ze(Lt)}),(!de.profile||!ze(de.profile))&&fi(be,Ne,de,!1,"a1"),de.contextDep=He,de.needsContext=Ke,de.needsFramebuffer=Fe;var Ee=de.shader.progVar;if(Ee.contextDep&&He||Ee.propDep)Vw(be,Ne,de,null);else{var De=Ee.append(be,Ne);if(Ne(be.shared.gl,".useProgram(",De,".program);"),de.shader.program)Vw(be,Ne,de,de.shader.program);else{Ne(be.shared.vao,".setVAO(null);");var _e=be.global.def("{}"),Ve=Ne.def(De,".id"),et=Ne.def(_e,"[",Ve,"]");Ne(be.cond(et).then(et,".call(this,a0,a1);").else(et,"=",_e,"[",Ve,"]=",be.link(function(Lt){return Mi(Vw,be,de,Lt,2)}),"(",De,");",et,".call(this,a0,a1);"))}}Object.keys(de.state).length>0&&Ne(be.shared.current,".dirty=true;")}function vt(be,de){var Ne=be.proc("scope",3);be.batchId="a2";var He=be.shared,Ke=He.current;Ql(be,Ne,de.context),de.framebuffer&&de.framebuffer.append(be,Ne),gde(Object.keys(de.state)).forEach(function(Fe){var ze=de.state[Fe],Ee=ze.append(be,Ne);An(Ee)?Ee.forEach(function(De,_e){Ne.set(be.next[Fe],"["+_e+"]",De)}):Ne.set(He.next,"."+Fe,Ee)}),fi(be,Ne,de,!0,!0),[Bw,mF,zw,_F,Gw].forEach(function(Fe){var ze=de.draw[Fe];!ze||Ne.set(He.draw,"."+Fe,""+ze.append(be,Ne))}),Object.keys(de.uniforms).forEach(function(Fe){var ze=de.uniforms[Fe].append(be,Ne);Array.isArray(ze)&&(ze="["+ze.join()+"]"),Ne.set(He.uniforms,"["+ge.id(Fe)+"]",ze)}),Object.keys(de.attributes).forEach(function(Fe){var ze=de.attributes[Fe].append(be,Ne),Ee=be.scopeAttrib(Fe);Object.keys(new Ye).forEach(function(De){Ne.set(Ee,"."+De,ze[De])})}),de.scopeVAO&&Ne.set(He.vao,".targetVAO",de.scopeVAO.append(be,Ne));function Ge(Fe){var ze=de.shader[Fe];ze&&Ne.set(He.shader,"."+Fe,ze.append(be,Ne))}Ge(OL),Ge(RL),Object.keys(de.state).length>0&&(Ne(Ke,".dirty=true;"),Ne.exit(Ke,".dirty=true;")),Ne("a1(",be.shared.context,",a0,",be.batchId,");")}function it(be){if(!(typeof be!="object"||An(be))){for(var de=Object.keys(be),Ne=0;Ne=0;--bn){var Mi=Ut[bn];Mi&&Mi(Jt,null,0)}Pe.flush(),lr&&lr.update()}function xi(){!Ei&&Ut.length>0&&(Ei=pn.next(Xn))}function Wa(){Ei&&(pn.cancel(Xn),Ei=null)}function Fl(bn){bn.preventDefault(),Ot=!0,Wa(),Nn.forEach(function(Mi){Mi()})}function wu(bn){Pe.getError(),Ot=!1,lt.restore(),Xt.restore(),or.restore(),yr.restore(),jt.restore(),mr.restore(),Mr.restore(),lr&&lr.restore(),cn.procs.refresh(),xi(),ci.forEach(function(Mi){Mi()})}hr&&(hr.addEventListener(_de,Fl,!1),hr.addEventListener(xde,wu,!1));function Ri(){Ut.length=0,Wa(),hr&&(hr.removeEventListener(_de,Fl),hr.removeEventListener(xde,wu)),Xt.clear(),mr.clear(),jt.clear(),yr.clear(),Nr.clear(),or.clear(),Mr.clear(),lr&&lr.clear(),Ur.forEach(function(bn){bn()})}function Jl(bn){J(!!bn,"invalid args to regl({...})"),J.type(bn,"object","invalid args to regl({...})");function Mi(Ke){var Ge=r({},Ke);delete Ge.uniforms,delete Ge.attributes,delete Ge.context,delete Ge.vao,"stencil"in Ge&&Ge.stencil.op&&(Ge.stencil.opBack=Ge.stencil.opFront=Ge.stencil.op,delete Ge.stencil.op);function Fe(ze){if(ze in Ge){var Ee=Ge[ze];delete Ge[ze],Object.keys(Ee).forEach(function(De){Ge[ze+"."+De]=Ee[De]})}}return Fe("blend"),Fe("depth"),Fe("cull"),Fe("stencil"),Fe("polygonOffset"),Fe("scissor"),Fe("sample"),"vao"in Ke&&(Ge.vao=Ke.vao),Ge}function ia(Ke,Ge){var Fe={},ze={};return Object.keys(Ke).forEach(function(Ee){var De=Ke[Ee];if(jr.isDynamic(De)){ze[Ee]=jr.unbox(De,Ee);return}else if(Ge&&Array.isArray(De)){for(var _e=0;_e0)return Ti.call(this,Ne(Ke|0),Ke|0)}else if(Array.isArray(Ke)){if(Ke.length)return Ti.call(this,Ke,Ke.length)}else return Br.call(this,Ke)}return r(He,{stats:vt,destroy:function(){it.destroy()}})}var fs=mr.setFBO=Jl({framebuffer:jr.define.call(null,Sde,"framebuffer")});function Bl(bn,Mi){var ia=0;cn.procs.poll();var bl=Mi.color;bl&&(Pe.clearColor(+bl[0]||0,+bl[1]||0,+bl[2]||0,+bl[3]||0),ia|=mtt),"depth"in Mi&&(Pe.clearDepth(+Mi.depth),ia|=_tt),"stencil"in Mi&&(Pe.clearStencil(Mi.stencil|0),ia|=xtt),J(!!ia,"called regl.clear with no buffer specified"),Pe.clear(ia)}function Ql(bn){if(J(typeof bn=="object"&&bn,"regl.clear() takes an object as input"),"framebuffer"in bn)if(bn.framebuffer&&bn.framebuffer_reglType==="framebufferCube")for(var Mi=0;Mi<6;++Mi)fs(r({framebuffer:bn.framebuffer.faces[Mi]},bn),Bl);else fs(bn,Bl);else Bl(null,bn)}function eu(bn){J.type(bn,"function","regl.frame() callback must be a function"),Ut.push(bn);function Mi(){var ia=wde(Ut,bn);J(ia>=0,"cannot cancel a frame twice");function bl(){var K0=wde(Ut,bl);Ut[K0]=Ut[Ut.length-1],Ut.length-=1,Ut.length<=0&&Wa()}Ut[ia]=bl}return xi(),{cancel:Mi}}function Xu(){var bn=Tr.viewport,Mi=Tr.scissor_box;bn[0]=bn[1]=Mi[0]=Mi[1]=0,Jt.viewportWidth=Jt.framebufferWidth=Jt.drawingBufferWidth=bn[2]=Mi[2]=Pe.drawingBufferWidth,Jt.viewportHeight=Jt.framebufferHeight=Jt.drawingBufferHeight=bn[3]=Mi[3]=Pe.drawingBufferHeight}function Sh(){Jt.tick+=1,Jt.time=fi(),Xu(),cn.procs.poll()}function wl(){yr.refresh(),Xu(),cn.procs.refresh(),lr&&lr.update()}function fi(){return(Jn()-tr)/1e3}wl();function wh(bn,Mi){J.type(Mi,"function","listener callback must be a function");var ia;switch(bn){case"frame":return eu(Mi);case"lost":ia=Nn;break;case"restore":ia=ci;break;case"destroy":ia=Ur;break;default:J.raise("invalid event, must be one of frame,lost,restore,destroy")}return ia.push(Mi),{cancel:function(){for(var bl=0;bl=0},read:Hn,destroy:Ri,_gl:Pe,_refresh:wl,poll:function(){Sh(),lr&&lr.update()},now:fi,stats:Kt});return ge.onDone(null,io),io}return Ett})})(CHe);const phr=CHe.exports;var ghr=function(){function n(e,t){z0(this,n),this.attribute=void 0,this.buffer=void 0;var r=t.buffer,i=t.offset,a=t.stride,o=t.normalized,s=t.size,l=t.divisor;this.buffer=r,this.attribute={buffer:r.get(),offset:i||0,stride:a||0,normalized:o||!1,divisor:l||0},s&&(this.attribute.size=s)}return U0(n,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(t){this.buffer.subData(t)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),n}(),e1,TP,t1,Qv,CP,px,AP,G5,oy,gb,rc,sy,ly,z5,yhr=(e1={},Lr(e1,Qt.POINTS,"points"),Lr(e1,Qt.LINES,"lines"),Lr(e1,Qt.LINE_LOOP,"line loop"),Lr(e1,Qt.LINE_STRIP,"line strip"),Lr(e1,Qt.TRIANGLES,"triangles"),Lr(e1,Qt.TRIANGLE_FAN,"triangle fan"),Lr(e1,Qt.TRIANGLE_STRIP,"triangle strip"),e1),AHe=(TP={},Lr(TP,Qt.STATIC_DRAW,"static"),Lr(TP,Qt.DYNAMIC_DRAW,"dynamic"),Lr(TP,Qt.STREAM_DRAW,"stream"),TP),zle=(t1={},Lr(t1,Qt.BYTE,"int8"),Lr(t1,Qt.UNSIGNED_INT,"int16"),Lr(t1,Qt.INT,"int32"),Lr(t1,Qt.UNSIGNED_BYTE,"uint8"),Lr(t1,Qt.UNSIGNED_SHORT,"uint16"),Lr(t1,Qt.UNSIGNED_INT,"uint32"),Lr(t1,Qt.FLOAT,"float"),t1),mhr=(Qv={},Lr(Qv,Qt.ALPHA,"alpha"),Lr(Qv,Qt.LUMINANCE,"luminance"),Lr(Qv,Qt.LUMINANCE_ALPHA,"luminance alpha"),Lr(Qv,Qt.RGB,"rgb"),Lr(Qv,Qt.RGBA,"rgba"),Lr(Qv,Qt.RGBA4,"rgba4"),Lr(Qv,Qt.RGB5_A1,"rgb5 a1"),Lr(Qv,Qt.RGB565,"rgb565"),Lr(Qv,Qt.DEPTH_COMPONENT,"depth"),Lr(Qv,Qt.DEPTH_STENCIL,"depth stencil"),Qv),_hr=(CP={},Lr(CP,Qt.DONT_CARE,"dont care"),Lr(CP,Qt.NICEST,"nice"),Lr(CP,Qt.FASTEST,"fast"),CP),wEe=(px={},Lr(px,Qt.NEAREST,"nearest"),Lr(px,Qt.LINEAR,"linear"),Lr(px,Qt.LINEAR_MIPMAP_LINEAR,"mipmap"),Lr(px,Qt.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),Lr(px,Qt.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),Lr(px,Qt.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),px),bEe=(AP={},Lr(AP,Qt.REPEAT,"repeat"),Lr(AP,Qt.CLAMP_TO_EDGE,"clamp"),Lr(AP,Qt.MIRRORED_REPEAT,"mirror"),AP),xhr=(G5={},Lr(G5,Qt.NONE,"none"),Lr(G5,Qt.BROWSER_DEFAULT_WEBGL,"browser"),G5),Shr=(oy={},Lr(oy,Qt.NEVER,"never"),Lr(oy,Qt.ALWAYS,"always"),Lr(oy,Qt.LESS,"less"),Lr(oy,Qt.LEQUAL,"lequal"),Lr(oy,Qt.GREATER,"greater"),Lr(oy,Qt.GEQUAL,"gequal"),Lr(oy,Qt.EQUAL,"equal"),Lr(oy,Qt.NOTEQUAL,"notequal"),oy),EEe=(gb={},Lr(gb,Qt.FUNC_ADD,"add"),Lr(gb,Qt.MIN_EXT,"min"),Lr(gb,Qt.MAX_EXT,"max"),Lr(gb,Qt.FUNC_SUBTRACT,"subtract"),Lr(gb,Qt.FUNC_REVERSE_SUBTRACT,"reverse subtract"),gb),U5=(rc={},Lr(rc,Qt.ZERO,"zero"),Lr(rc,Qt.ONE,"one"),Lr(rc,Qt.SRC_COLOR,"src color"),Lr(rc,Qt.ONE_MINUS_SRC_COLOR,"one minus src color"),Lr(rc,Qt.SRC_ALPHA,"src alpha"),Lr(rc,Qt.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),Lr(rc,Qt.DST_COLOR,"dst color"),Lr(rc,Qt.ONE_MINUS_DST_COLOR,"one minus dst color"),Lr(rc,Qt.DST_ALPHA,"dst alpha"),Lr(rc,Qt.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),Lr(rc,Qt.CONSTANT_COLOR,"constant color"),Lr(rc,Qt.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),Lr(rc,Qt.CONSTANT_ALPHA,"constant alpha"),Lr(rc,Qt.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),Lr(rc,Qt.SRC_ALPHA_SATURATE,"src alpha saturate"),rc),whr=(sy={},Lr(sy,Qt.NEVER,"never"),Lr(sy,Qt.ALWAYS,"always"),Lr(sy,Qt.LESS,"less"),Lr(sy,Qt.LEQUAL,"lequal"),Lr(sy,Qt.GREATER,"greater"),Lr(sy,Qt.GEQUAL,"gequal"),Lr(sy,Qt.EQUAL,"equal"),Lr(sy,Qt.NOTEQUAL,"notequal"),sy),pC=(ly={},Lr(ly,Qt.ZERO,"zero"),Lr(ly,Qt.KEEP,"keep"),Lr(ly,Qt.REPLACE,"replace"),Lr(ly,Qt.INVERT,"invert"),Lr(ly,Qt.INCR,"increment"),Lr(ly,Qt.DECR,"decrement"),Lr(ly,Qt.INCR_WRAP,"increment wrap"),Lr(ly,Qt.DECR_WRAP,"decrement wrap"),ly),bhr=(z5={},Lr(z5,Qt.FRONT,"front"),Lr(z5,Qt.BACK,"back"),z5),Ehr=function(){function n(e,t){z0(this,n),this.buffer=void 0;var r=t.data,i=t.usage,a=t.type;this.buffer=e.buffer({data:r,usage:AHe[i||Qt.STATIC_DRAW],type:zle[a||Qt.UNSIGNED_BYTE]})}return U0(n,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){}},{key:"subData",value:function(t){var r=t.data,i=t.offset;this.buffer.subdata(r,i)}}]),n}();function Kee(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t16)throw new Error("invalid data type ".concat(c));i[h]=function(){return u.data}}});var a=this.getOuputDataTexture(),o=a.textureWidth,s=a.texelCount;i.u_OutputTextureSize=[o,o],i.u_OutputTexelCount=s,this.context.output.textureSize=[o,o];var l={attributes:{a_Position:[[-1,1,0],[-1,-1,0],[1,1,0],[1,-1,0]],a_TexCoord:[[0,1],[0,0],[1,1],[1,0]]},frag:`#ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; +#else + precision mediump float; +#endif +`.concat(this.context.shader),uniforms:i,vert:Lhr,primitive:"triangle strip",count:4};this.computeCommand=this.reGl(l)}return U0(n,[{key:"run",value:function(){var t=this;this.context.maxIteration>1&&this.context.needPingpong&&(this.compiledPingpong=!0),(this.compiledPingpong||this.dynamicPingpong)&&this.swap(),this.texFBO=this.reGl.framebuffer({color:this.getOuputDataTexture().texture}),this.texFBO.use(function(){t.computeCommand()})}},{key:"readData",value:function(){var e=Vc(Rc.mark(function r(){var i=this,a,o,s,l,u,h,c,f;return Rc.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(this.reGl({framebuffer:this.texFBO})(function(){a=i.reGl.read()}),!a){v.next=6;break}if(o=this.getOuputDataTexture(),s=o.originalDataLength,l=o.elementsPerTexel,u=o.typedArrayConstructor,h=u===void 0?Float32Array:u,c=[],l!==4)for(f=0;f0&&arguments[0]!==void 0?arguments[0]:{},r=new n;return r.setConfig(t),r.setEngine(new Khr),r}}]),n}();const Qhr=Object.freeze(Object.defineProperty({__proto__:null,World:Jhr,Kernel:THe},Symbol.toStringTag,{value:"Module"})),IHe=Nd(Qhr);var lv={};Object.defineProperty(lv,"__esModule",{value:!0});lv.arrayToTextureData=lv.attributesToTextureData=lv.buildTextureDataWithTwoEdgeAttr=lv.buildTextureData=lv.proccessToFunc=void 0;var ecr=Dl(),$9=rV,tcr=function(n,e){var t;return n?(0,ecr.isNumber)(n)?t=function(){return n}:t=n:t=function(){return e||1},t};lv.proccessToFunc=tcr;var rcr=function(n,e){var t=[],r=[],i={},a=0;for(a=0;a 0.0) { + dx += param * xDist; + dy += param * yDist; + if (xDist == 0 && yDist == 0) { + const sign = i < j ? 1 : -1; + dx += param * sign; + dy += param * sign; + } + } + } + } + return [dx, dy]; + } + calcGravity(currentNode: vec4, nodeAttributes: vec4): vec2 { // + let dx = 0, dy = 0; + const vx = currentNode[0] - this.u_Center[0]; + const vy = currentNode[1] - this.u_Center[1]; + const gf = 0.01 * this.u_K * this.u_Gravity; + dx = gf * vx; + dy = gf * vy; + if (this.u_Clustering == 1) { + const clusterIdx = int(nodeAttributes[0]); + const center = this.u_ClusterCenters[clusterIdx]; + const cvx = currentNode[0] - center[0]; + const cvy = currentNode[1] - center[1]; + const dist = sqrt(cvx * cvx + cvy * cvy) + 0.01; + const parma = this.u_K * this.u_ClusterGravity / dist; + dx += parma * cvx; + dy += parma * cvy; + } + return [dx, dy]; + } + calcAttractive(i: int, currentNode: vec4): vec2 { + let dx = 0, dy = 0; + const arr_offset = int(floor(currentNode[2] + 0.5)); + const length = int(floor(currentNode[3] + 0.5)); + const node_buffer: vec4; + for (let p = 0; p < MAX_EDGE_PER_VERTEX; p++) { + if (p >= length) break; + const arr_idx = arr_offset + p; + // when arr_idx % 4 == 0 update currentNodedx_buffer + const buf_offset = arr_idx - arr_idx / 4 * 4; + if (p == 0 || buf_offset == 0) { + node_buffer = this.u_Data[int(arr_idx / 4)]; + } + const float_j = buf_offset == 0 ? node_buffer[0] : + buf_offset == 1 ? node_buffer[1] : + buf_offset == 2 ? node_buffer[2] : + node_buffer[3]; + const nextNode = this.u_Data[int(float_j)]; + const xDist = currentNode[0] - nextNode[0]; + const yDist = currentNode[1] - nextNode[1]; + const dist = sqrt(xDist * xDist + yDist * yDist) + 0.01; + let attractiveF = dist / this.u_K; + + if (dist > 0.0) { + dx -= xDist * attractiveF; + dy -= yDist * attractiveF; + if (xDist == 0 && yDist == 0) { + const sign = i < int(float_j) ? 1 : -1; + dx -= sign * attractiveF; + dy -= sign * attractiveF; + } + } + } + return [dx, dy]; + } + @main + compute() { + const i = globalInvocationID.x; + const currentNode = this.u_Data[i]; + let dx = 0, dy = 0; + if (i >= VERTEX_COUNT) { + this.u_Data[i] = currentNode; + return; + } + + // [gravity, fx, fy, 0] + const nodeAttributes = this.u_AttributeArray[i]; + + if (nodeAttributes[1] != 0 && nodeAttributes[2] != 0) { + // the node is fixed + this.u_Data[i] = [ + nodeAttributes[1], + nodeAttributes[2], + currentNode[2], + currentNode[3] + ]; + return; + } + + // repulsive + const repulsive = this.calcRepulsive(i, currentNode); + dx += repulsive[0]; + dy += repulsive[1]; + // attractive + const attractive = this.calcAttractive(i, currentNode); + dx += attractive[0]; + dy += attractive[1]; + // gravity + const gravity = this.calcGravity(currentNode, nodeAttributes); + dx -= gravity[0]; + dy -= gravity[1]; + // speed + dx *= this.u_Speed; + dy *= this.u_Speed; + + // move + const distLength = sqrt(dx * dx + dy * dy); + if (distLength > 0.0) { + const limitedDist = min(this.u_MaxDisplace * this.u_Speed, distLength); + this.u_Data[i] = [ + currentNode[0] + dx / distLength * limitedDist, + currentNode[1] + dy / distLength * limitedDist, + currentNode[2], + currentNode[3] + ]; + } + } +} +`;Wy.fruchtermanBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_K;\\nuniform float u_K2;\\nuniform vec2 u_Center;\\nuniform float u_Gravity;\\nuniform float u_ClusterGravity;\\nuniform float u_Speed;\\nuniform float u_MaxDisplace;\\nuniform float u_Clustering;\\nuniform sampler2D u_AttributeArray;\\nuniform vec2 u_AttributeArraySize;\\nvec4 getDatau_AttributeArray(vec2 address2D) {\\n return vec4(texture2D(u_AttributeArray, address2D).rgba);\\n}\\nvec4 getDatau_AttributeArray(float address1D) {\\n return getDatau_AttributeArray(addrTranslation_1Dto2D(address1D, u_AttributeArraySize));\\n}\\nvec4 getDatau_AttributeArray(int address1D) {\\n return getDatau_AttributeArray(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat param = u_K2 / dist;\\nif (dist > 0.0) {dx += param * xDist;\\ndy += param * yDist;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < j) ? (1.0) : (-1.0);\\ndx += param * sign;\\ndy += param * sign;}}}}\\nreturn vec2(dx, dy);}\\nvec2 calcGravity(vec4 currentNode, vec4 nodeAttributes) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfloat vx = currentNode.x - u_Center.x;\\nfloat vy = currentNode.y - u_Center.y;\\nfloat gf = (0.01 * u_K) * u_Gravity;\\ndx = gf * vx;\\ndy = gf * vy;\\nif (u_Clustering == 1.0) {int clusterIdx = int(nodeAttributes.x);\\nvec4 center = getDatau_ClusterCenters(clusterIdx);\\nfloat cvx = currentNode.x - center.x;\\nfloat cvy = currentNode.y - center.y;\\nfloat dist = sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\nfloat parma = (u_K * u_ClusterGravity) / dist;\\ndx += parma * cvx;\\ndy += parma * cvy;}\\nreturn vec2(dx, dy);}\\nvec2 calcAttractive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nint arr_offset = int(floor(currentNode.z + 0.5));\\nint length = int(floor(currentNode.w + 0.5));\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + int(p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = (buf_offset == 0) ? (node_buffer.x) : ((buf_offset == 1) ? (node_buffer.y) : ((buf_offset == 2) ? (node_buffer.z) : (node_buffer.w)));\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat attractiveF = dist / u_K;\\nif (dist > 0.0) {dx -= xDist * attractiveF;\\ndy -= yDist * attractiveF;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < int(float_j)) ? (1.0) : (-1.0);\\ndx -= sign * attractiveF;\\ndy -= sign * attractiveF;}}}\\nreturn vec2(dx, dy);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nif (i >= VERTEX_COUNT) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes = getDatau_AttributeArray(i);\\nif ((nodeAttributes.y != 0.0) && (nodeAttributes.z != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes.y, nodeAttributes.z, currentNode.z, currentNode.w));\\nreturn ;}\\nvec2 repulsive = calcRepulsive(i, currentNode);\\ndx += repulsive.x;\\ndy += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode);\\ndx += attractive.x;\\ndy += attractive.y;\\nvec2 gravity = calcGravity(currentNode, nodeAttributes);\\ndx -= gravity.x;\\ndy -= gravity.y;\\ndx *= u_Speed;\\ndy *= u_Speed;\\nfloat distLength = sqrt((dx * dx) + (dy * dy));\\nif (distLength > 0.0) {float limitedDist = min(u_MaxDisplace * u_Speed, distLength);\\ngl_FragColor = vec4(vec4(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_K","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_K2","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Center","type":"vec2","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Gravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterGravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Speed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_MaxDisplace","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Clustering","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AttributeArray","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}';Wy.clusterCode=` +import { globalInvocationID } from 'g-webgpu'; +const VERTEX_COUNT; +const CLUSTER_COUNT; +@numthreads(1, 1, 1) +class CalcCenter { + @in + u_Data: vec4[]; + @in + u_NodeAttributes: vec4[]; // [[clusterIdx, 0, 0, 0], ...] + @in @out + u_ClusterCenters: vec4[]; // [[cx, cy, nodeCount, clusterIdx], ...] + @main + compute() { + const i = globalInvocationID.x; + const center = this.u_ClusterCenters[i]; + let sumx = 0; + let sumy = 0; + let count = 0; + for (let j = 0; j < VERTEX_COUNT; j++) { + const attributes = this.u_NodeAttributes[j]; + const clusterIdx = int(attributes[0]); + const vertex = this.u_Data[j]; + if (clusterIdx == i) { + sumx += vertex.x; + sumy += vertex.y; + count += 1; + } + } + this.u_ClusterCenters[i] = [ + sumx / count, + sumy / count, + count, + i + ]; + } +} +`;Wy.clusterBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define CLUSTER_COUNT __DefineValuePlaceholder__CLUSTER_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributes;\\nuniform vec2 u_NodeAttributesSize;\\nvec4 getDatau_NodeAttributes(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributes, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributes(float address1D) {\\n return getDatau_NodeAttributes(addrTranslation_1Dto2D(address1D, u_NodeAttributesSize));\\n}\\nvec4 getDatau_NodeAttributes(int address1D) {\\n return getDatau_NodeAttributes(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 center = getDatau_ClusterCenters(i);\\nfloat sumx = 0.0;\\nfloat sumy = 0.0;\\nfloat count = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 attributes = getDatau_NodeAttributes(j);\\nint clusterIdx = int(attributes.x);\\nvec4 vertex = getDatau_Data(j);\\nif (clusterIdx == i) {sumx += vertex.x;\\nsumy += vertex.y;\\ncount += 1.0;}}\\ngl_FragColor = vec4(vec4(sumx / count, sumy / count, count, i));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"CLUSTER_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributes","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_ClusterCenters","size":[1,1],"length":1},"needPingpong":true}}';var ocr=at&&at.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),V5=at&&at.__awaiter||function(n,e,t,r){function i(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{u(r.next(h))}catch(c){o(c)}}function l(h){try{u(r.throw(h))}catch(c){o(c)}}function u(h){h.done?a(h.value):i(h.value).then(s,l)}u((r=r.apply(n,e||[])).next())})},$5=at&&at.__generator||function(n,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(h){return l([u,h])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(t=0)),t;)try{if(r=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]= length) break; + const arr_idx = arr_offset + 4 * p; // i \u8282\u70B9\u7684\u7B2C p \u6761\u8FB9\u5F00\u59CB\u7684\u5C0F\u683C\u5B50\u4F4D\u7F6E + const buf_offset = arr_idx - arr_idx / 4 * 4; + if (p == 0 || buf_offset == 0) { + node_buffer = this.u_Data[int(arr_idx / 4)]; // \u5927\u683C\u5B50\uFF0C\u5927\u683C\u5B50\u4F4D\u7F6E=\u5C0F\u4E2A\u5B50\u4F4D\u7F6E / 4\uFF0C + } + + let float_j: float = node_buffer[0]; + + const nextNode = this.u_Data[int(float_j)]; + const vx = nextNode[0] - currentNode[0]; + const vy = nextNode[1] - currentNode[1]; + const dist = sqrt(vx * vx + vy * vy) + 0.01; + const direx = vx / dist; + const direy = vy / dist; + const edgeLength = node_buffer[1]; + const edgeStrength = node_buffer[2]; + const diff: float = edgeLength - dist;//edgeLength + // const param = diff * this.u_stiffness / mass; // + const param = diff * edgeStrength / mass; // + ax -= direx * param; + ay -= direy * param; + } + return [ax, ay]; + } + + @main + compute() { + const i = globalInvocationID.x; + const currentNode = this.u_Data[i]; + const movement = u_AveMovement[0]; + let ax = 0, ay = 0; + + if (i >= VERTEX_COUNT || movement.x < u_minMovement) { + this.u_Data[i] = currentNode; + return; + } + + // \u6BCF\u4E2A\u8282\u70B9\u5C5E\u6027\u5360\u4E24\u4E2A\u6570\u7EC4\u4E2D\u5404\u4E00\u683C + // [mass, degree, nodeStrength, fx] + const nodeAttributes1 = this.u_NodeAttributeArray1[i]; + // [centerX, centerY, centerGravity, fy] + const nodeAttributes2 = this.u_NodeAttributeArray2[i]; + + // repulsive + const repulsive = this.calcRepulsive(i, currentNode); + ax += repulsive[0]; + ay += repulsive[1]; + + // attractive + const attractive = this.calcAttractive(i, currentNode, nodeAttributes1); + ax += attractive[0]; + ay += attractive[1]; + + // gravity + const gravity = this.calcGravity(i, currentNode, nodeAttributes2); + ax -= gravity[0]; + ay -= gravity[1]; + + // speed + const param = this.u_interval * this.u_damping; + let vx = ax * param; + let vy = ay * param; + const vlength = sqrt(vx * vx + vy * vy) + 0.0001; + if (vlength > this.u_maxSpeed) { + const param2 = this.u_maxSpeed / vlength; + vx = param2 * vx; + vy = param2 * vy; + } + + // move + if (nodeAttributes1[3] != 0 && nodeAttributes2[3] != 0) { + this.u_Data[i] = [ + nodeAttributes1[3], + nodeAttributes2[3], + currentNode[2], + 0 + ]; + } else { + const distx = vx * this.u_interval; + const disty = vy * this.u_interval; + const distLength = sqrt(distx * distx + disty * disty); + this.u_Data[i] = [ + currentNode[0] + distx, + currentNode[1] + disty, + currentNode[2], + distLength + ]; + } + + // the avarage move distance + // need to share memory + + } +} +`;Hy.gForceBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define SHIFT_20 1048576.0\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_damping;\\nuniform float u_maxSpeed;\\nuniform float u_minMovement;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nuniform float u_coulombDisScale;\\nuniform float u_factor;\\nuniform sampler2D u_NodeAttributeArray1;\\nuniform vec2 u_NodeAttributeArray1Size;\\nvec4 getDatau_NodeAttributeArray1(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray1, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray1(float address1D) {\\n return getDatau_NodeAttributeArray1(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray1Size));\\n}\\nvec4 getDatau_NodeAttributeArray1(int address1D) {\\n return getDatau_NodeAttributeArray1(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributeArray2;\\nuniform vec2 u_NodeAttributeArray2Size;\\nvec4 getDatau_NodeAttributeArray2(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray2, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray2(float address1D) {\\n return getDatau_NodeAttributeArray2(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray2Size));\\n}\\nvec4 getDatau_NodeAttributeArray2(int address1D) {\\n return getDatau_NodeAttributeArray2(float(address1D));\\n}\\nuniform float u_interval;\\nivec2 unpack_float(float packedValue) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint packedIntValue = int(packedValue);\\nint v0 = packedIntValue / int(SHIFT_20);\\nreturn ivec2(v0, packedIntValue - (v0 * int(SHIFT_20)));}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat vx = currentNode.x - nextNode.x;\\nfloat vy = currentNode.y - nextNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat n_dist = (dist + 0.1) * u_coulombDisScale;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nvec4 attributesi = getDatau_NodeAttributeArray1(i);\\nvec4 attributesj = getDatau_NodeAttributeArray1(j);\\nfloat massi = attributesi.x;\\nfloat nodeStrengthi = attributesi.z;\\nfloat nodeStrengthj = attributesj.z;\\nfloat nodeStrength = (nodeStrengthi + nodeStrengthj) / 2.0;\\nfloat param = (nodeStrength * u_factor) / (n_dist * n_dist);\\nax += direx * param;\\nay += direy * param;}}\\nreturn vec2(ax, ay);}\\nvec2 calcGravity(int i, vec4 currentNode, vec4 attributes2) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat vx = currentNode.x - attributes2.x;\\nfloat vy = currentNode.y - attributes2.y;\\nfloat ax = vx * attributes2.z;\\nfloat ay = vy * attributes2.z;\\nreturn vec2(ax, ay);}\\nvec2 calcAttractive(int i, vec4 currentNode, vec4 attributes1) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat mass = attributes1.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nivec2 compressed = unpack_float(currentNode.z);\\nint length = compressed.x;\\nint arr_offset = compressed.y;\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + (4 * p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = node_buffer.x;\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat vx = nextNode.x - currentNode.x;\\nfloat vy = nextNode.y - currentNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nfloat edgeLength = node_buffer.y;\\nfloat edgeStrength = node_buffer.z;\\nfloat diff = edgeLength - dist;\\nfloat param = (diff * edgeStrength) / mass;\\nax -= direx * param;\\nay -= direy * param;}\\nreturn vec2(ax, ay);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nvec4 movement = getDatau_AveMovement(0.0);\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nif ((i >= VERTEX_COUNT) || (movement.x < u_minMovement)) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes1 = getDatau_NodeAttributeArray1(i);\\nvec4 nodeAttributes2 = getDatau_NodeAttributeArray2(i);\\nvec2 repulsive = calcRepulsive(i, currentNode);\\nax += repulsive.x;\\nay += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode, nodeAttributes1);\\nax += attractive.x;\\nay += attractive.y;\\nvec2 gravity = calcGravity(i, currentNode, nodeAttributes2);\\nax -= gravity.x;\\nay -= gravity.y;\\nfloat param = u_interval * u_damping;\\nfloat vx = ax * param;\\nfloat vy = ay * param;\\nfloat vlength = sqrt((vx * vx) + (vy * vy)) + 0.0001;\\nif (vlength > u_maxSpeed) {float param2 = u_maxSpeed / vlength;\\nvx = param2 * vx;\\nvy = param2 * vy;}\\nif ((nodeAttributes1.w != 0.0) && (nodeAttributes2.w != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes1.w, nodeAttributes2.w, currentNode.z, 0.0));}else {float distx = vx * u_interval;\\nfloat disty = vy * u_interval;\\nfloat distLength = sqrt((distx * distx) + (disty * disty));\\ngl_FragColor = vec4(vec4(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"SHIFT_20","type":"Float","value":1048576,"runtime":false}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_damping","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_maxSpeed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_minMovement","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_coulombDisScale","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_factor","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray1","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray2","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_interval","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}';Hy.aveMovementCode=` +const VERTEX_COUNT; +@numthreads(1, 1, 1) +class CalcAveMovement { + @in + u_Data: vec4[]; + @in + u_iter: float; + @in @out + u_AveMovement: vec4[]; + @main + compute() { + let movement = 0; + for (let j: int = 0; j < VERTEX_COUNT; j++) { + const vertex = this.u_Data[j]; + movement += vertex[3]; + } + movement = movement / float(VERTEX_COUNT); + this.u_AveMovement[0] = [movement, 0, 0, 0]; + } +} +`;Hy.aveMovementBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_iter;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat movement = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 vertex = getDatau_Data(j);\\nmovement += vertex.w;}\\nmovement = movement / float(VERTEX_COUNT);\\ngl_FragColor = vec4(vec4(movement, 0.0, 0.0, 0.0));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_iter","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_AveMovement","size":[1,1],"length":1},"needPingpong":true}}';var hcr=at&&at.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),AY=at&&at.__awaiter||function(n,e,t,r){function i(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{u(r.next(h))}catch(c){o(c)}}function l(h){try{u(r.throw(h))}catch(c){o(c)}}function u(h){h.done?a(h.value):i(h.value).then(s,l)}u((r=r.apply(n,e||[])).next())})},MY=at&&at.__generator||function(n,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(h){return l([u,h])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(t=0)),t;)try{if(r=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]G.size[1]?G.size[0]:G.size[1];return V/2}if((0,zi.isObject)(G.size)){var V=G.size.width>G.size.height?G.size.width:G.size.height;return V/2}return G.size/2}return 10};else if((0,zi.isFunction)(g))y=function(G){return g(G)};else if((0,zi.isArray)(g)){var x=g[0]>g[1]?g[0]:g[1],S=x/2;y=function(G){return S}}else{var w=g/2;y=function(G){return w}}this.nodeSize=y;var b=t.comboSpacing,E;(0,zi.isNumber)(b)?E=function(){return b}:(0,zi.isFunction)(b)?E=b:E=function(){return 0},this.comboSpacing=E;var T=t.comboPadding,C;(0,zi.isNumber)(T)?C=function(){return T}:(0,zi.isArray)(T)?C=function(){return Math.max.apply(null,T)}:(0,zi.isFunction)(T)?C=T:C=function(){return 0},this.comboPadding=C;var A=this.linkDistance,M;A||(A=10),(0,zi.isNumber)(A)?M=function(G){return A}:M=A,this.linkDistance=M;var I=this.edgeStrength,R;I||(I=1),(0,zi.isNumber)(I)?R=function(G){return I}:R=I,this.edgeStrength=R;var k=this.nodeStrength,D;k||(k=30),(0,zi.isNumber)(k)?D=function(G){return k}:D=k,this.nodeStrength=D},e.prototype.initPos=function(t){var r=this,i=r.nodes;i.forEach(function(a,o){var s=a.comboId,l=t[s];s&&l?(a.x=l.cx+100/(o+1),a.y=l.cy+100/(o+1)):(a.x=100/(o+1),a.y=100/(o+1))})},e.prototype.getComboMap=function(){var t=this,r=t.nodeMap,i=t.comboTrees,a=t.oriComboMap,o={};return(i||[]).forEach(function(s){var l=[];(0,zi.traverseTreeUp)(s,function(u){if(u.itemType==="node"||!a[u.id])return!0;if(o[u.id]===void 0){var h={id:u.id,name:u.id,cx:0,cy:0,count:0,depth:t.oriComboMap[u.id].depth||0,children:[]};o[u.id]=h}var c=u.children;c&&c.forEach(function(v){if(!o[v.id]&&!r[v.id])return!0;l.push(v)});var f=o[u.id];if(f.cx=0,f.cy=0,l.length===0){f.empty=!0;var d=a[u.id];f.cx=d.x,f.cy=d.y}return l.forEach(function(v){if(f.count++,v.itemType!=="node"){var p=o[v.id];(0,zi.isNumber)(p.cx)&&(f.cx+=p.cx),(0,zi.isNumber)(p.cy)&&(f.cy+=p.cy);return}var g=r[v.id];!g||((0,zi.isNumber)(g.x)&&(f.cx+=g.x),(0,zi.isNumber)(g.y)&&(f.cy+=g.y))}),f.cx/=f.count||1,f.cy/=f.count||1,f.children=l,!0})}),o},e.prototype.applyComboCenterForce=function(t){var r=this,i=r.gravity,a=r.comboGravity||i,o=this.alpha,s=r.comboTrees,l=r.indexMap,u=r.nodeMap,h=r.comboMap;(s||[]).forEach(function(c){(0,zi.traverseTreeUp)(c,function(f){if(f.itemType==="node")return!0;var d=h[f.id];if(!d)return!0;var v=h[f.id],p=(v.depth+1)/10*.5,g=v.cx,m=v.cy;return v.cx=0,v.cy=0,v.children.forEach(function(y){if(y.itemType!=="node"){var _=h[y.id];_&&(0,zi.isNumber)(_.cx)&&(v.cx+=_.cx),_&&(0,zi.isNumber)(_.cy)&&(v.cy+=_.cy);return}var x=u[y.id],S=x.x-g||.005,w=x.y-m||.005,b=Math.sqrt(S*S+w*w),E=l[x.id],T=a*o/b*p;t[E].x-=S*T,t[E].y-=w*T,(0,zi.isNumber)(x.x)&&(v.cx+=x.x),(0,zi.isNumber)(x.y)&&(v.cy+=x.y)}),v.cx/=v.count||1,v.cy/=v.count||1,!0})})},e.prototype.applyCalculate=function(t){var r=this,i=r.comboMap,a=r.nodes,o={};a.forEach(function(l,u){a.forEach(function(h,c){if(!(u_&&(f.minX=_),f.minY>x&&(f.minY=x),f.maxX1&&h.forEach(function(c,f){if(c.itemType==="node")return!1;var d=r[c.id];!d||h.forEach(function(v,p){if(f<=p||v.itemType==="node")return!1;var g=r[v.id];if(!g)return!1;var m=d.cx-g.cx||.005,y=d.cy-g.cy||.005,_=m*m+y*y,x=d.r||1,S=g.r||1,w=x+S,b=S*S,E=x*x;if(_o)){var C=r["".concat(p.id,"-").concat(S.id)],A=C.vx,M=C.vy,I=Math.log(Math.abs(S.depth-p.depth)/10)+1||1;I=I<1?1:I,S.comboId!==p.comboId&&(I+=1);var R=I?Math.pow(d,I):1,k=s(S)*l/E*R;if(t[g].x+=A*k,t[g].y+=M*k,g=0;R--)I(R);return{nodes:c,edges:f,combos:d,comboEdges:v}},l.prototype.getInnerGraphs=function(u){var h=this,c=h.comboTrees,f=h.nodeSize,d=h.edges,v=h.comboPadding,p=h.spacing,g={},m=this.innerLayout||new a.ConcentricLayout({type:"concentric",sortBy:"id"});return m.center=[0,0],m.preventOverlap=!0,m.nodeSpacing=p,(c||[]).forEach(function(y){(0,i.traverseTreeUp)(y,function(_){var x,S=(v==null?void 0:v(_))||10;if((0,i.isArray)(S)&&(S=Math.max.apply(Math,S)),!((x=_.children)===null||x===void 0)&&x.length){var b=_.children.map(function(z){if(z.itemType==="combo")return g[z.id];var j=u[z.id]||{};return e(e({},j),z)}),E=b.map(function(z){return z.id}),T={nodes:b,edges:d.filter(function(z){return E.includes(z.source)&&E.includes(z.target)})},C=1/0;b.forEach(function(z){var j;z.size||(z.size=((j=g[z.id])===null||j===void 0?void 0:j.size)||(f==null?void 0:f(z))||[30,30]),(0,i.isNumber)(z.size)&&(z.size=[z.size,z.size]),C>z.size[0]&&(C=z.size[0]),C>z.size[1]&&(C=z.size[1])}),m.layout(T);var A=(0,i.getLayoutBBox)(b),M=A.minX,I=A.minY,R=A.maxX,k=A.maxY,D={x:(R+M)/2,y:(k+I)/2};T.nodes.forEach(function(z){z.x-=D.x,z.y-=D.y});var G=Math.max(R-M,C)+S*2,V=Math.max(k-I,C)+S*2;g[_.id]={id:_.id,nodes:b,size:[G,V]}}else if(_.itemType==="combo"){var w=S?[S*2,S*2]:[30,30];g[_.id]={id:_.id,nodes:[],size:w}}return!0})}),g},l.prototype.initVals=function(){var u=this,h=u.nodeSize,c=u.spacing,f,d;if((0,i.isNumber)(c)?d=function(){return c}:(0,i.isFunction)(c)?d=c:d=function(){return 0},this.spacing=d,!h)f=function(_){var x=d(_);if(_.size){if((0,i.isArray)(_.size)){var S=_.size[0]>_.size[1]?_.size[0]:_.size[1];return(S+x)/2}if((0,i.isObject)(_.size)){var S=_.size.width>_.size.height?_.size.width:_.size.height;return(S+x)/2}return(_.size+x)/2}return 10+x/2};else if((0,i.isFunction)(h))f=function(_){var x=h(_),S=d(_);if((0,i.isArray)(_.size)){var w=_.size[0]>_.size[1]?_.size[0]:_.size[1];return(w+S)/2}return((x||10)+S)/2};else if((0,i.isArray)(h)){var v=h[0]>h[1]?h[0]:h[1],p=v/2;f=function(_){return p+d(_)/2}}else{var g=h/2;f=function(_){return g+d(_)/2}}this.nodeSize=f;var m=u.comboPadding,y;(0,i.isNumber)(m)?y=function(){return m}:(0,i.isArray)(m)?y=function(){return Math.max.apply(null,m)}:(0,i.isFunction)(m)?y=m:y=function(){return 0},this.comboPadding=y},l.prototype.getType=function(){return"comboCombined"},l}(r.Base);return MP.ComboCombinedLayout=o,MP}var vk={},Ule={};Object.defineProperty(Ule,"__esModule",{value:!0});var mcr=function(){function n(e){this.id=e.id||0,this.rx=e.rx,this.ry=e.ry,this.fx=0,this.fy=0,this.mass=e.mass,this.degree=e.degree,this.g=e.g||0}return n.prototype.distanceTo=function(e){var t=this.rx-e.rx,r=this.ry-e.ry;return Math.hypot(t,r)},n.prototype.setPos=function(e,t){this.rx=e,this.ry=t},n.prototype.resetForce=function(){this.fx=0,this.fy=0},n.prototype.addForce=function(e){var t=e.rx-this.rx,r=e.ry-this.ry,i=Math.hypot(t,r);i=i<1e-4?1e-4:i;var a=this.g*(this.degree+1)*(e.degree+1)/i;this.fx+=a*t/i,this.fy+=a*r/i},n.prototype.in=function(e){return e.contains(this.rx,this.ry)},n.prototype.add=function(e){var t=this.mass+e.mass,r=(this.rx*this.mass+e.rx*e.mass)/t,i=(this.ry*this.mass+e.ry*e.mass)/t,a=this.degree+e.degree,o={rx:r,ry:i,mass:t,degree:a};return new n(o)},n}();Ule.default=mcr;var Vle={};Object.defineProperty(Vle,"__esModule",{value:!0});var _cr=function(){function n(e){this.xmid=e.xmid,this.ymid=e.ymid,this.length=e.length,this.massCenter=e.massCenter||[0,0],this.mass=e.mass||1}return n.prototype.getLength=function(){return this.length},n.prototype.contains=function(e,t){var r=this.length/2;return e<=this.xmid+r&&e>=this.xmid-r&&t<=this.ymid+r&&t>=this.ymid-r},n.prototype.NW=function(){var e=this.xmid-this.length/4,t=this.ymid+this.length/4,r=this.length/2,i={xmid:e,ymid:t,length:r},a=new n(i);return a},n.prototype.NE=function(){var e=this.xmid+this.length/4,t=this.ymid+this.length/4,r=this.length/2,i={xmid:e,ymid:t,length:r},a=new n(i);return a},n.prototype.SW=function(){var e=this.xmid-this.length/4,t=this.ymid-this.length/4,r=this.length/2,i={xmid:e,ymid:t,length:r},a=new n(i);return a},n.prototype.SE=function(){var e=this.xmid+this.length/4,t=this.ymid-this.length/4,r=this.length/2,i={xmid:e,ymid:t,length:r},a=new n(i);return a},n}();Vle.default=_cr;var $le={};Object.defineProperty($le,"__esModule",{value:!0});var xcr=function(){function n(e){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,e!=null&&(this.quad=e)}return n.prototype.insert=function(e){if(this.body==null){this.body=e;return}this._isExternal()?(this.quad&&(this.NW=new n(this.quad.NW()),this.NE=new n(this.quad.NE()),this.SW=new n(this.quad.SW()),this.SE=new n(this.quad.SE())),this._putBody(this.body),this._putBody(e),this.body=this.body.add(e)):(this.body=this.body.add(e),this._putBody(e))},n.prototype._putBody=function(e){!this.quad||(e.in(this.quad.NW())&&this.NW?this.NW.insert(e):e.in(this.quad.NE())&&this.NE?this.NE.insert(e):e.in(this.quad.SW())&&this.SW?this.SW.insert(e):e.in(this.quad.SE())&&this.SE&&this.SE.insert(e))},n.prototype._isExternal=function(){return this.NW==null&&this.NE==null&&this.SW==null&&this.SE==null},n.prototype.updateForce=function(e){if(!(this.body==null||e===this.body))if(this._isExternal())e.addForce(this.body);else{var t=this.quad?this.quad.getLength():0,r=this.body.distanceTo(e);t/r250&&(t.barnesHut=!0),t.prune===void 0&&l>100&&(t.prune=!0),this.maxIteration===0&&!t.prune?(o=250,l<=200&&l>100?o=1e3:l>200&&(o=1200),this.maxIteration=o):this.maxIteration===0&&a&&(o=100,l<=200&&l>100?o=500:l>200&&(o=950),this.maxIteration=o),t.kr||(t.kr=50,l>100&&l<=500?t.kr=20:l>500&&(t.kr=1)),t.kg||(t.kg=20,l>100&&l<=500?t.kg=10:l>500&&(t.kg=1)),this.nodes=t.updateNodesByForces(s),i()},e.prototype.updateNodesByForces=function(t){for(var r=this,i=r.edges,a=r.maxIteration,o=r.nodes,s=i.filter(function(b){var E=(0,i1.getEdgeTerminal)(b,"source"),T=(0,i1.getEdgeTerminal)(b,"target");return E!==T}),l=o.length,u=s.length,h=[],c={},f={},d=[],v=0;v0;){for(var S=0;Sm||!c)?y=this.getOptRepGraForces(y,x,o):y=this.getRepGraForces(g,m,y,p,s,o);var b=this.updatePos(y,_,v,o);u=b.nodes,v=b.sg,g--,l.tick&&l.tick()}return u},e.prototype.getAttrForces=function(t,r,i,a,o,s,l,u){for(var h=this,c=h.nodes,f=h.preventOverlap,d=h.dissuadeHubs,v=h.mode,p=h.prune,g=0;g0&&(b=w,E=w),u[2*a[m.id]]+=b*S[0],u[2*a[_.id]]-=E*S[0],u[2*a[m.id]+1]+=b*S[1],u[2*a[_.id]+1]-=E*S[1]}}return u},e.prototype.getRepGraForces=function(t,r,i,a,o,s){for(var l=this,u=l.nodes,h=l.preventOverlap,c=l.kr,f=l.kg,d=l.center,v=l.prune,p=u.length,g=0;g0&&(x=c*(s[g]+1)*(s[m]+1)/_),i[2*g]-=x*y[0],i[2*m]+=x*y[0],i[2*g+1]-=x*y[1],i[2*m+1]+=x*y[1]}var S=[u[g].x-d[0],u[g].y-d[1]],w=Math.hypot(S[0],S[1]);S[0]=S[0]/w,S[1]=S[1]/w;var b=f*(s[g]+1);i[2*g]-=b*S[0],i[2*g+1]-=b*S[1]}return i},e.prototype.getOptRepGraForces=function(t,r,i){for(var a=this,o=a.nodes,s=a.kg,l=a.center,u=a.prune,h=o.length,c=9e10,f=-9e10,d=9e10,v=-9e10,p=0;p=f&&(f=o[p].x),o[p].x<=c&&(c=o[p].x),o[p].y>=v&&(v=o[p].y),o[p].y<=d&&(d=o[p].y));for(var g=Math.max(f-c,v-d),m={xmid:(f+c)/2,ymid:(v+d)/2,length:g,massCenter:l,mass:h},y=new Ecr.default(m),_=new Tcr.default(y),p=0;p1.5*w?1.5*w:i);for(var m=0;mT?T:b;var C=b*t[2*m],A=b*t[2*m+1];s[m].x+=C,s[m].y+=A}return{nodes:s,sg:i}},e}(wcr.Base);vk.ForceAtlas2Layout=Ccr;var pk={},Hle={},jle={},Xle={},yA=at&&at.__assign||function(){return yA=Object.assign||function(n){for(var e,t=1,r=arguments.length;te;r--)for(var i=0;i=e&&(this.additionColumn[i]+=t);for(var r=0;re;r--)this.cells[i][r+t]=yA(yA({},this.cells[i][r]),{dx:i,dy:r+t,x:i*this.CELL_W,y:(r+t)*this.CELL_H}),this.cells[i][r]={dx:i,dy:r,x:i*this.CELL_W,y:r*this.CELL_H,occupied:!1,node:null};for(var r=0;r=e&&(this.additionRow[r]+=t);for(var i=0;ia){for(var d=Math.ceil((u.size[0]+i)/a)-1,v=d,p=0;p-1;if(g&&!s.cells[c+p+1][f].node)v--;else break}s.insertColumn(c,v)}if(u.size[1]+i>o){for(var d=Math.ceil((u.size[1]+i)/o)-1,v=d,p=0;p-1;if(g&&!s.cells[c][f+p+1].node)v--;else break}s.insertRow(f,v)}}for(var l=0;lIY?(y=i-h,m=s-a,_=parseFloat(y?(y/Math.cos(g)).toFixed(2):m.toFixed(2)),x=parseFloat(m?(m/Math.sin(g)).toFixed(2):y.toFixed(2))):0m?_=x=parseFloat(y?(y/Math.cos(g)).toFixed(2):m.toFixed(2)):_=x=parseFloat(m?(m/Math.sin(g)).toFixed(2):y.toFixed(2))):g<-IY?(y=i-h,m=-(u-r),y>m?_=x=parseFloat(y?(y/Math.cos(g)).toFixed(2):m.toFixed(2)):_=x=parseFloat(m?(m/Math.sin(g)).toFixed(2):y.toFixed(2))):(y=l-o,Math.abs(p)>(a-r)/2?m=r-u:m=p,y>m?_=x=parseFloat(y?(y/Math.cos(g)).toFixed(2):m.toFixed(2)):_=x=parseFloat(m&&g!==0?(m/Math.sin(g)).toFixed(2):y.toFixed(2)));var S=parseFloat(g.toFixed(2)),w=t;return t&&(w=Pcra?e:n,s=i>a?n:e,l=o.x-o.size[0]/2,u=o.y-o.size[1]/2,h=o.x+o.size[0]/2,c=o.y+o.size[1]/2,f=s.x-s.size[0]/2,d=s.y-s.size[1]/2,v=s.x+s.size[0]/2,p=s.y+s.size[1]/2,g=o.x,m=o.y,y=s.x,_=s.y,x=h>=f&&v>=l&&c>=d&&p>=u,S=0,w=0;if(x){w=Math.sqrt(Math.pow(y-g,2)+Math.pow(_-m,2));var b=l>f?l:f,E=u>d?u:d,T=hPHe||r.y>OHe)&&(e+=1e12);for(var i=t+1;i150,d=c<30||c>150,v=h>70&&h<110,p=c>70&&c<110;if(f&&!d||h*c<0){s=!1;break}else if(v&&!p||h*c<0){s=!1;break}else if((u.x-n.x)*(u.x-e.x)<0){s=!1;break}else if((u.y-n.y)*(u.y-e.y)<0){s=!1;break}}return s}function Bcr(n,e){for(var t=!1,r=1,i=Rcr*r,a=Dcr*r,o=[i,-i,0,0],s=[0,0,a,-a],l=0;lNEe?(h=d,t=!0):(u.x-=o[c],u.y-=s[c])}}return LY>NEe&&(LY*=Ncr),t?NHe(n):0}function kEe(n,e){var t=0;(n.x<0||n.y<0||n.x+n.size[0]+20>PHe||n.y+n.size[1]+20>OHe)&&(t+=1e12);for(var r=0;r0&&(s++,!(s>=o));){var l=Bcr(n,e);l!==0&&(a=l),i=a-t,t=a,i===0?--r:r=20}return n.forEach(function(u){u.x=u.x-u.size[0]/2,u.y=u.y-u.size[1]/2}),{nodes:n,edges:e}}Yle.default=Gcr;var Qee=at&&at.__assign||function(){return Qee=Object.assign||function(n){for(var e,t=1,r=arguments.length;t1){var g=Qee({},v);delete g.size,o.push(g)}});var s=[];r.forEach(function(v){var p=o.find(function(m){return m.id===v.source}),g=o.find(function(m){return m.id===v.target});p&&g&&s.push(v)});var l=new Hcr.DagreLayout({type:"dagre",ranksep:e.nodeMinGap,nodesep:e.nodeMinGap}),u=l.layout({nodes:o,edges:s}).nodes;t.forEach(function(v){var p=(u||[]).find(function(g){return g.id===v.id});v.x=(p==null?void 0:p.x)||i/2,v.y=(p==null?void 0:p.y)||a/2});var h=JSON.parse(JSON.stringify(t)),c=JSON.parse(JSON.stringify(r)),f=mC.forceSimulation().nodes(h).force("link",mC.forceLink(c).id(function(v){return v.id}).distance(function(v){var p=s.find(function(g){return g.source===v.source&&g.target===v.target});return p?30:20})).force("charge",mC.forceManyBody()).force("center",mC.forceCenter(i/2,a/2)).force("x",mC.forceX(i/2)).force("y",mC.forceY(a/2)).alpha(.3).alphaDecay(.08).alphaMin(.001),d=new Promise(function(v){f.on("end",function(){t.forEach(function(S){var w=h.find(function(b){return b.id===S.id});w&&(S.x=w.x,S.y=w.y)});var p=Math.min.apply(Math,t.map(function(S){return S.x})),g=Math.max.apply(Math,t.map(function(S){return S.x})),m=Math.min.apply(Math,t.map(function(S){return S.y})),y=Math.max.apply(Math,t.map(function(S){return S.y})),_=i/(g-p),x=a/(y-m);t.forEach(function(S){S.x!==void 0&&_<1&&(S.x=(S.x-p)*_),S.y!==void 0&&x<1&&(S.y=(S.y-m)*x)}),t.forEach(function(S){S.sizeTemp=S.size,S.size=[10,10]}),(0,Wcr.default)(t,r),t.forEach(function(S){S.size=S.sizeTemp||[],delete S.sizeTemp}),(0,$cr.default)({nodes:t,edges:r},e),v()})});return d}Hle.default=jcr;var Xcr=at&&at.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Ycr=at&&at.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(pk,"__esModule",{value:!0});pk.ERLayout=void 0;var qcr=Xl,Zcr=Ycr(Hle),Kcr=function(n){Xcr(e,n);function e(t){var r=n.call(this)||this;return r.width=300,r.height=300,r.nodeMinGap=50,r.onLayoutEnd=function(){},t&&r.updateCfg(t),r}return e.prototype.getDefaultCfg=function(){return{width:300,height:300,nodeMinGap:50}},e.prototype.execute=function(){var t=this,r=t.nodes,i=t.edges;return r==null||r.forEach(function(a){a.size||(a.size=[50,50])}),(0,Zcr.default)({nodes:r,edges:i},{width:this.width,height:this.height,nodeMinGap:this.nodeMinGap}).then(function(){t.onLayoutEnd&&t.onLayoutEnd()})},e.prototype.getType=function(){return"er"},e}(qcr.Base);pk.ERLayout=Kcr;var yb={},FEe;function Jcr(){if(FEe)return yb;FEe=1,Object.defineProperty(yb,"__esModule",{value:!0}),yb.Layouts=yb.Layout=void 0;var n=Z1,e=Z3,t=K3,r=Q3,i=J3,a=Nse,o=ek,s=YI,l=Lle,u=lk,h=uk,c=hk,f=ck,d=fk,v=dk,p=LHe(),g=vk,m=pk,y=nk,_=Dl(),x=function(){function S(w){var b=(0,n.getLayoutByName)(w.type);this.layoutInstance=new b(w)}return S.prototype.layout=function(w){return this.layoutInstance.layout(w)},S.prototype.updateCfg=function(w){this.layoutInstance.updateCfg(w)},S.prototype.init=function(w){this.correctLayers(w.nodes),this.layoutInstance.init(w)},S.prototype.correctLayers=function(w){if(!!(w!=null&&w.length)){var b=1/0,E=[];if(w.forEach(function(C){(0,_.isString)(C.layer)&&(C.layer=parseInt(C.layer,10)),!(C.layer===void 0||isNaN(C.layer))&&(E.push(C),C.layerx.low&&(x=x.nxt);var T=w+S.prelim+S.w-(E+b.prelim);T>0&&(E+=T,o(y,_,x.index,T));var C=u(S),A=u(b);C<=A&&(S=l(S),S!==null&&(w+=S.mod)),C>=A&&(b=s(b),b!==null&&(E+=b.mod))}!S&&!!b?h(y,_,b,E):!!S&&!b&&c(y,_,S,w)}function o(y,_,x,S){y.c[_].mod+=S,y.c[_].msel+=S,y.c[_].mser+=S,v(y,_,x,S)}function s(y){return y.cs===0?y.tl:y.c[0]}function l(y){return y.cs===0?y.tr:y.c[y.cs-1]}function u(y){return y.y+y.h}function h(y,_,x,S){var w=y.c[0].el;w.tl=x;var b=S-x.mod-y.c[0].msel;w.mod+=b,w.prelim-=b,y.c[0].el=y.c[_].el,y.c[0].msel=y.c[_].msel}function c(y,_,x,S){var w=y.c[_].er;w.tr=x;var b=S-x.mod-y.c[_].mser;w.mod+=b,w.prelim-=b,y.c[_].er=y.c[_-1].er,y.c[_].mser=y.c[_-1].mser}function f(y){y.prelim=(y.c[0].prelim+y.c[0].mod+y.c[y.cs-1].mod+y.c[y.cs-1].prelim+y.c[y.cs-1].w)/2-y.w/2}function d(y,_){_+=y.mod,y.x=y.prelim+_,p(y);for(var x=0;x=x.low;)x=x.nxt;return{low:y,index:_,nxt:x}}WHe(n,t);var m=wO.fromNode(n,t);return r(m),d(m,0),$He(m,n,t),afr(n,t),n},zEe=zHe,HHe=function(n,e){for(var t=zEe(n.data,e,!0),r=zEe(n.data,e,!0),i=n.children.length,a=Math.round(i/2),o=e.getSide||function(h,c){return c-1},hfr=Ix[0],Zle=function(n,e,t){var r=e.direction||hfr;if(e.isHorizontal=ufr(r),r&&Ix.indexOf(r)===-1)throw new TypeError("Invalid direction: "+r);if(r===Ix[0])t(n,e);else if(r===Ix[1])t(n,e),n.right2left();else if(r===Ix[2])t(n,e);else if(r===Ix[3])t(n,e),n.bottom2top();else if(r===Ix[4]||r===Ix[5]){var i=sfr(n,e),a=i.left,o=i.right;t(a,e),t(o,e),e.isHorizontal?a.right2left():a.bottom2top(),o.translate(a.x-o.x,a.y-o.y),n.x=a.x,n.y=o.y;var s=n.getBoundingBox();e.isHorizontal?s.top<0&&n.translate(0,-s.top):s.left<0&&n.translate(-s.left,0)}var l=e.fixedRoot;return l===void 0&&(l=!0),l&&n.translate(-(n.x+n.width/2+n.hgap),-(n.y+n.height/2+n.vgap)),cfr(n,e),n};function cfr(n,e){if(e.radial){var t=e.isHorizontal?["x","y"]:["y","x"],r=t[0],i=t[1],a={x:1/0,y:1/0},o={x:-1/0,y:-1/0},s=0;n.DFTraverse(function(h){s++;var c=h.x,f=h.y;a.x=Math.min(a.x,c),a.y=Math.min(a.y,f),o.x=Math.max(o.x,c),o.y=Math.max(o.y,f)});var l=o[i]-a[i];if(l===0)return;var u=Math.PI*2/s;n.DFTraverse(function(h){var c=(h[i]-a[i])/l*(Math.PI*2-u)+u,f=h[r]-n[r];h.x=Math.cos(c)*f,h.y=Math.sin(c)*f})}}function ffr(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ete(n,e)}function ete(n,e){return ete=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},ete(n,e)}var dfr=MV,vfr=ofr,pfr=Zle,gfr=Mw,yfr=function(n){function e(){return n.apply(this,arguments)||this}ffr(e,n);var t=e.prototype;return t.execute=function(){var i=this;return pfr(i.rootNode,i.options,vfr)},e}(dfr),mfr={};function _fr(n,e){return e=gfr.assign({},mfr,e),new yfr(n,e).execute()}var xfr=_fr,Sfr=Mw;function wfr(n,e){e===void 0&&(e=[]);var t=this;t.x=t.y=0,t.leftChild=t.rightChild=null,t.height=0,t.children=e}var bfr={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function jHe(n,e,t){t?(e.x=n.x,e.y=n.y):(e.x=n.y,e.y=n.x),n.children.forEach(function(r,i){jHe(r,e.children[i],t)})}var Efr=function(n,e){e===void 0&&(e={}),e=Sfr.assign({},bfr,e);var t=0;function r(l){if(!l)return null;l.width=0,l.depth&&l.depth>t&&(t=l.depth);var u=l.children,h=u.length,c=new wfr(l.height,[]);return u.forEach(function(f,d){var v=r(f);c.children.push(v),d===0&&(c.leftChild=v),d===h-1&&(c.rightChild=v)}),c.originNode=l,c.isLeaf=l.isLeaf(),c}function i(l){if(l.isLeaf||l.children.length===0)l.drawingDepth=t;else{var u=l.children.map(function(c){return i(c)}),h=Math.min.apply(null,u);l.drawingDepth=h-1}return l.drawingDepth}var a;function o(l){l.x=l.drawingDepth*e.rankSep,l.isLeaf?(l.y=0,a&&(l.y=a.y+a.height+e.nodeSep,l.originNode.parent!==a.originNode.parent&&(l.y+=e.subTreeSep)),a=l):(l.children.forEach(function(u){o(u)}),l.y=(l.leftChild.y+l.rightChild.y)/2)}var s=r(n);return i(s),o(s),jHe(s,n,e.isHorizontal),n};function Tfr(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,tte(n,e)}function tte(n,e){return tte=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},tte(n,e)}var Cfr=MV,Afr=Efr,Mfr=Zle,Ifr=Mw,Lfr=function(n){function e(){return n.apply(this,arguments)||this}Tfr(e,n);var t=e.prototype;return t.execute=function(){var i=this;return i.rootNode.width=0,Mfr(i.rootNode,i.options,Afr)},e}(Cfr),Pfr={};function Ofr(n,e){return e=Ifr.assign({},Pfr,e),new Lfr(n,e).execute()}var Rfr=Ofr,UEe=Mw;function Dfr(n,e,t,r,i){var a=(typeof t=="function"?t(n):t)*n.depth;if(!r)try{if(n.id===n.parent.children[0].id){n.x+=a,n.y=e?e.y:0;return}}catch{}if(n.x+=a,e){if(n.y=e.y+UEe.getHeight(e,n,i),e.parent&&n.parent.id!==e.parent.id){var o=e.parent,s=o.y+UEe.getHeight(o,n,i);n.y=s>n.y?s:n.y}}else n.y=0}var Nfr=function(n,e,t,r){var i=null;n.eachNode(function(a){Dfr(a,i,e,t,r),i=a})};function kfr(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,rte(n,e)}function rte(n,e){return rte=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},rte(n,e)}var Ffr=MV,H5=Nfr,Bfr=HHe,Gfr=Mw,bO=["LR","RL","H"],zfr=bO[0],Ufr=function(n){function e(){return n.apply(this,arguments)||this}kfr(e,n);var t=e.prototype;return t.execute=function(){var i=this,a=i.options,o=i.rootNode;a.isHorizontal=!0;var s=a.indent,l=s===void 0?20:s,u=a.dropCap,h=u===void 0?!0:u,c=a.direction,f=c===void 0?zfr:c,d=a.align;if(f&&bO.indexOf(f)===-1)throw new TypeError("Invalid direction: "+f);if(f===bO[0])H5(o,l,h,d);else if(f===bO[1])H5(o,l,h,d),o.right2left();else if(f===bO[2]){var v=Bfr(o,a),p=v.left,g=v.right;H5(p,l,h,d),p.right2left(),H5(g,l,h,d);var m=p.getBoundingBox();g.translate(m.width,0),o.x=g.x-o.width/2}return o},e}(Ffr),Vfr={};function $fr(n,e){return e=Gfr.assign({},Vfr,e),new Ufr(n,e).execute()}var Wfr=$fr,Hfr=Mw;function XHe(n,e){var t=0;return n.children.length?n.children.forEach(function(r){t+=XHe(r,e)}):t=n.height,n._subTreeSep=e.getSubTreeSep(n.data),n.totalHeight=Math.max(n.height,t)+2*n._subTreeSep,n.totalHeight}function YHe(n){var e=n.children,t=e.length;if(t){e.forEach(function(l){YHe(l)});var r=e[0],i=e[t-1],a=i.y-r.y+i.height,o=0;if(e.forEach(function(l){o+=l.totalHeight}),a>n.height)n.y=r.y+a/2-n.height/2;else if(e.length!==1||n.height>o){var s=n.y+(n.height-a)/2-r.y;e.forEach(function(l){l.translate(0,s)})}else n.y=(r.y+r.height/2+i.y+i.height/2)/2-n.height/2}}var jfr={getSubTreeSep:function(){return 0}},Xfr=function(n,e){e===void 0&&(e={}),e=Hfr.assign({},jfr,e),n.parent={x:0,width:0,height:0,y:0},n.BFTraverse(function(t){t.x=t.parent.x+t.parent.width}),n.parent=null,XHe(n,e),n.startY=0,n.y=n.totalHeight/2-n.height/2,n.eachNode(function(t){var r=t.children,i=r.length;if(i){var a=r[0];if(a.startY=t.startY+t._subTreeSep,i===1)a.y=t.y+t.height/2-a.height/2;else{a.y=a.startY+a.totalHeight/2-a.height/2;for(var o=1;o=0&&(s="x",o="y");var l=0;VEe(e,function(c){return l++,c.x>a.x&&(a.x=c.x),c.xa.y&&(a.y=c.y),c.y"u"||typeof document>"u"?{}:{canvas:!!window.CanvasRenderingContext2D,webgl:function(){try{var e=document.createElement("canvas");return!!(window.WebGLRenderingContext&&(e.getContext("webgl")||e.getContext("experimental-webgl")))}catch{return!1}}(),workers:!!window.Worker,fileapi:window.File&&window.FileReader&&window.FileList&&window.Blob,getWebGLErrorMessage:function(){var t=document.createElement("div");return t.id="webgl-error-message",t.style.fontFamily="monospace",t.style.fontSize="13px",t.style.fontWeight="normal",t.style.textAlign="center",t.style.background="#fff",t.style.color="#000",t.style.padding="1.5em",t.style.width="400px",t.style.margin="5em auto 0",this.webgl||(t.innerHTML=window.WebGLRenderingContext?['Your graphics card does not seem to support WebGL.
','Find out how to get it here.'].join(` +`):['Your browser does not seem to support WebGL.
','Find out how to get it here.'].join(` +`)),t},addGetWebGLMessage:function(t){t=t||{};var r=t.parent!==void 0?t.parent:document.body,i=t.id!==void 0?t.id:"oldie",a=Kle().getWebGLErrorMessage();a.id=i,r.appendChild(a)}}};const fdr=Object.freeze(Object.defineProperty({__proto__:null,gpuDetector:Kle},Symbol.toStringTag,{value:"Module"}));var qHe=function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("firefox")>-1?"firefox":e.indexOf("safari")>-1?"safari":e.indexOf("opr")>-1?"opera":e.indexOf("chrome")>-1?"chrome":e.indexOf("trident")>-1?"ie 11":e.indexOf("ie")>-1?"ie":"unknown"};const ddr=Object.freeze(Object.defineProperty({__proto__:null,getBrowserName:qHe},Symbol.toStringTag,{value:"Module"}));var H_=ve(ve(ve(ve(ve({},gc),uYt),cdr),fdr),ddr),vdr=H_.radialLayout,pdr=function(){function n(e){this.type=e.type,this.radial=e.radial,this.config=e}return n.prototype.init=function(e){var t=this;if(this.data=e,this.radial){this.layoutMethod=function(r){var i=H9[t.type](r,t.config);return vdr(i),i};return}this.layoutMethod=function(r){return H9[t.type](r,t.config)}},n.prototype.execute=function(){return this.layoutMethod(this.data,this.config)},n.prototype.layout=function(e){return this.init(e),this.execute()},n}();Yi.registerLayout("grid",Yi.GridLayout);Yi.registerLayout("random",Yi.RandomLayout);Yi.registerLayout("force",Yi.ForceLayout);Yi.registerLayout("circular",Yi.CircularLayout);Yi.registerLayout("dagre",Yi.DagreLayout);Yi.registerLayout("dagreCompound",Yi.DagreCompoundLayout);Yi.registerLayout("radial",Yi.RadialLayout);Yi.registerLayout("concentric",Yi.ConcentricLayout);Yi.registerLayout("mds",Yi.MDSLayout);Yi.registerLayout("fruchterman",Yi.FruchtermanLayout);Yi.registerLayout("fruchterman-gpu",Yi.FruchtermanGPULayout);Yi.registerLayout("gForce",Yi.GForceLayout);Yi.registerLayout("force2",Yi.Force2Layout);Yi.registerLayout("gForce-gpu",Yi.GForceGPULayout);Yi.registerLayout("comboForce",Yi.ComboForceLayout);Yi.registerLayout("comboCombined",Yi.ComboCombinedLayout);Yi.registerLayout("forceAtlas2",Yi.ForceAtlas2Layout);var gdr=function(e,t){t.isCustomLayout=!0,Yi.Layouts[e]=Yi.registerLayout(e,t)},ydr=function(){function n(e,t){var r=e.toString(),i=new Blob(["importScripts('".concat(t,"');(").concat(r,")()")],{type:"text/javascript"});return new Worker(URL.createObjectURL(i))}return n}(),mdr=function(e){e===void 0&&(e="https://unpkg.com/@antv/layout@0.3.23/dist/layout.min.js");function t(){var i={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};layout.registerLayout("grid",layout.GridLayout),layout.registerLayout("random",layout.RandomLayout),layout.registerLayout("force",layout.ForceLayout),layout.registerLayout("force2",layout.Force2Layout),layout.registerLayout("circular",layout.CircularLayout),layout.registerLayout("dagre",layout.DagreLayout),layout.registerLayout("dagreCompound",layout.DagreCompoundLayout),layout.registerLayout("radial",layout.RadialLayout),layout.registerLayout("concentric",layout.ConcentricLayout),layout.registerLayout("mds",layout.MDSLayout),layout.registerLayout("fruchterman",layout.FruchtermanLayout),layout.registerLayout("fruchterman-gpu",layout.FruchtermanGPULayout),layout.registerLayout("gForce",layout.GForceLayout),layout.registerLayout("gForce-gpu",layout.GForceGPULayout),layout.registerLayout("comboForce",layout.ComboForceLayout),layout.registerLayout("comboCombined",layout.ComboCombinedLayout),layout.registerLayout("forceAtlas2",layout.ForceAtlas2Layout);function a(s){var l=s.data.type;return l===i.RUN||l===i.GPURUN}function o(s){var l=this,u=s.data.type;switch(u){case i.RUN:{var h=s.data,c=h.nodes,f=h.edges,d=h.layoutCfg,v=d===void 0?{}:d,p=v.type,g=layout.getLayoutByName(p);if(!g){this.postMessage({type:i.ERROR,message:"layout ".concat(p," not found")});break}var m;v.onLayoutEnd=function(){l.postMessage({type:i.END,nodes:c}),m==null||m.destroy()},m=new g(v),m.init({nodes:c,edges:f}),m.execute();break}case i.GPURUN:{var y=s.data,_=y.nodes,f=y.edges,x=y.layoutCfg,v=x===void 0?{}:x,S=y.canvas,p=v.type,g=layout.getLayoutByName(p);if(!g){this.postMessage({type:i.ERROR,message:"layout ".concat(p," not found")});break}if(p.split("-")[1]!=="gpu"){this.postMessage({type:i.ERROR,message:"layout ".concat(p," does not support GPU")});break}var w=new g(v);w.init({nodes:_,edges:f}),w.executeWithWorker(S,this);break}}}onmessage=function(l){a(l)&&o(l)}}var r=new ydr(t,e);return r},_C={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};function ite(n){return ite=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ite(n)}var $Ee=function(e){return setTimeout(e,16)},WEe=function(e){return clearTimeout(e)},j5={requestAnimationFrame:function(e){var t=typeof window<"u"&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame)||$Ee;return t(e)},cancelAnimationFrame:function(e){var t=typeof window<"u"&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)||WEe;return t(e)}},_dr=["fruchterman","gForce"],xdr=["force","grid","circular"],Sdr=function(n){Kn(e,n);function e(t){var r=n.call(this,t)||this;return r.graph=t,r.layoutCfg=t.get("layout")||{},r.layoutType=r.getLayoutType(),r.worker=null,r.workerData={},r.initLayout(),r}return e.prototype.initLayout=function(){},e.prototype.getWorker=function(){return this.worker?this.worker:(typeof Worker>"u"?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=mdr(this.layoutCfg.workerScriptURL),this.worker)},e.prototype.stopWorker=function(){var t=this.workerData;!this.worker||(this.worker.terminate(),this.worker=null,t.requestId&&(j5.cancelAnimationFrame(t.requestId),t.requestId=null),t.requestId2&&(j5.cancelAnimationFrame(t.requestId2),t.requestId2=null))},e.prototype.execLayoutMethod=function(t,r){var i=this;return new Promise(function(a,o){return Qd(i,void 0,void 0,function(){var s,l,u,h,c,p,f,d,v,p,g;return ev(this,function(m){switch(m.label){case 0:if(s=this.graph,!s||s.get("destroyed"))return[2];l=t.type,t.onLayoutEnd=function(){s.emit("aftersublayout",{type:l}),a()},l&&this.isGPU&&(ZHe(l)?l="".concat(l,"-gpu"):console.warn("The '".concat(l,"' layout does not support GPU calculation for now, it will run in CPU."))),gc.isForce(l)?(u=t.onTick,h=t.animate,c=h===void 0&&(l==="force"||l==="force2"),p=function(){u&&u(),(h||c)&&s.refreshPositions()},t.tick=p):(l==="comboForce"||l==="comboCombined")&&(t.comboTrees=s.get("comboTrees")),f=!1;try{d=new Yi.Layouts[l](t),this.layoutMethods[r]&&this.layoutMethods[r].destroy(),this.layoutMethods[r]=d}catch{console.warn("The layout method: '".concat(l,"' does not exist! Please specify it first.")),o()}return f=d.enableTick,f&&(v=t.onTick,p=function(){v&&v(),s.refreshPositions()},d.tick=p),g=this.filterLayoutData(this.data,t),Edr(g,r),d.init(g),s.emit("beforesublayout",{type:l}),[4,d.execute()];case 1:return m.sent(),d.isCustomLayout&&t.onLayoutEnd&&t.onLayoutEnd(),[2]}})})})},e.prototype.updateLayoutMethod=function(t,r){var i=this;return new Promise(function(a,o){return Qd(i,void 0,void 0,function(){var s,l,u,h,c,f,d;return ev(this,function(v){switch(v.label){case 0:return s=this.graph,l=r==null?void 0:r.type,r.onLayoutEnd=function(){s.emit("aftersublayout",{type:l}),a()},gc.isForce(l)&&(u=r.onTick,h=r.animate,c=h===void 0&&(l==="force"||l==="force2"),f=function(){u==null||u(),(h||c)&&s.refreshPositions()},r.tick=f),d=this.filterLayoutData(this.data,r),t.init(d),t.updateCfg(r),s.emit("beforesublayout",{type:l}),[4,t.execute()];case 1:return v.sent(),t.isCustomLayout&&r.onLayoutEnd&&r.onLayoutEnd(),[2]}})})})},e.prototype.layout=function(t){var r=this,i,a=this.graph;if(!(!a||a.get("destroyed"))){this.data=this.setDataFromGraph();var o=this.data,s=o.nodes,l=o.hiddenNodes;if(!s)return!1;var u=a.get("width"),h=a.get("height"),c={};Object.assign(c,{width:u,height:h,center:[u/2,h/2]},this.layoutCfg),this.layoutCfg=c;var f=c.type,d=!1;(i=this.layoutMethods)===null||i===void 0||i.forEach(function(S){var w;return d=!!(!((w=S.nodes)===null||w===void 0)&&w.length)||d});var v=this.destoryLayoutMethods();a.emit("beforelayout");var p=Promise.resolve();d&&f&&(v==null?void 0:v.length)===1&&v[0]===f?this.tweakInit():p=this.initPositions(c.center,s);var g=this.initPositions(c.center,l);g.then(),this.isGPU=HEe(c,f);var m=c.onLayoutEnd,y=c.layoutEndFormatted,_=c.adjust;if(y||(c.layoutEndFormatted=!0,c.onAllLayoutEnd=function(){return Qd(r,void 0,void 0,function(){return ev(this,function(S){switch(S.label){case 0:return m&&m(s),this.refreshLayout(),_&&c.pipes?[4,this.adjustPipesBox(this.data,_)]:[3,2];case 1:S.sent(),this.refreshLayout(),S.label=2;case 2:return a.emit("afterlayout"),[2]}})})}),this.stopWorker(),c.workerEnabled&&this.layoutWithWorker(this.data,t))return!0;var x=!1;return c.type?(x=!0,p=p.then(function(){return Qd(r,void 0,void 0,function(){return ev(this,function(S){switch(S.label){case 0:return[4,this.execLayoutMethod(c,0)];case 1:return[2,S.sent()]}})})})):c.pipes&&(x=!0,c.pipes.forEach(function(S,w){p=p.then(function(){return Qd(r,void 0,void 0,function(){return ev(this,function(b){switch(b.label){case 0:return[4,this.execLayoutMethod(S,w)];case 1:return[2,b.sent()]}})})})})),x?p.then(function(){c.onAllLayoutEnd&&c.onAllLayoutEnd(),t&&t()}).catch(function(S){console.warn("graph layout failed,",S)}):(a.refreshPositions(),t==null||t()),!1}},e.prototype.tweakInit=function(){var t=this,r=t.data,i=t.graph,a=r.nodes,o=r.edges;if(!!(a!=null&&a.length)){var s={};a.forEach(function(h){var c=h.x,f=h.y;!isNaN(c)&&!isNaN(f)&&(s[h.id]={x:c,y:f},h.mass=h.mass||2)}),o.forEach(function(h){var c=h.source,f=h.target,d=s[c],v=s[f];!d&&v?s[c]={x:v.x+(Math.random()-.5)*80,y:v.y+(Math.random()-.5)*80}:!v&&d&&(s[f]={x:d.x+(Math.random()-.5)*80,y:d.y+(Math.random()-.5)*80})});var l=i.get("width"),u=i.get("height");a.forEach(function(h){var c=s[h.id]||{x:l/2+(Math.random()-.5)*20,y:u/2+(Math.random()-.5)*20};h.x=c.x,h.y=c.y})}},e.prototype.initWithPreset=function(t,r){var i=this;return new Promise(function(a,o){return Qd(i,void 0,void 0,function(){var s,l,u,h,c,f,d;return ev(this,function(v){switch(v.label){case 0:return s=this,l=s.layoutCfg,u=s.data,h=l.preset,!(h!=null&&h.type)||!Yi.Layouts[h==null?void 0:h.type]?(r==null||r(),a(),[2,!1]):(c=HEe(h,h.type),f=c?"".concat(h.type,"-gpu"):h.type,d=new Yi.Layouts[f](h),delete l.preset,d.init(u),[4,d.execute()]);case 1:return v.sent(),t==null||t(),a(),[2,!0]}})})})},e.prototype.layoutWithWorker=function(t,r){var i=this,a=this,o=a.layoutCfg,s=a.graph,l=this.getWorker(),u=this.workerData;if(!l)return!1;u.requestId=null,u.requestId2=null,u.currentTick=null,u.currentTickData=null,s.emit("beforelayout");var h=Promise.resolve(),c=!1;if(o.type)c=!0,h=h.then(function(){return i.runWebworker(l,t,o)});else if(o.pipes){c=!0;for(var f=function(m){h=h.then(function(){return i.runWebworker(l,t,m)})},d=0,v=o.pipes;d'),h=i?i.backgroundColor:void 0,c=i?i.padding:void 0;c?on(c)&&(c=[c,c,c,c]):c=[0,0,0,0];var f=o+c[0]+c[2],d=s+c[1]+c[3],v={container:u,height:f,width:d,quickHit:!0},p=l==="svg"?new gR(v):new M1(v),g=this.get("group"),m=g.clone(),y=Xi(m.getMatrix());y||(y=[1,0,0,0,1,0,0,0,1]);var _=(a.maxX+a.minX)/2,x=(a.maxY+a.minY)/2;y=jEe(y,[["t",-_,-x],["t",s/2+c[3],o/2+c[0]]]),m.resetMatrix(),m.setMatrix(y),p.add(m);var S=p.get("el"),w="";r||(r="image/png"),setTimeout(function(){if(l==="svg"){var b=S.cloneNode(!0),E=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),T=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",E);T.replaceChild(b,T.documentElement);var C=new XMLSerializer().serializeToString(T);w="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(C))}else{var A=void 0,M=S.getContext("2d"),I=void 0;if(h){var R=typeof window<"u"?window.devicePixelRatio:1;try{A=M.getImageData(0,0,d*R,f*R),I=M.globalCompositeOperation,M.globalCompositeOperation="destination-over",M.fillStyle=h,M.fillRect(0,0,d,f)}catch{console.error("Download image failed. Out of memory at ImageData creation")}}w=S.toDataURL(r),h&&(M.clearRect(0,0,d,f),M.putImageData(A,0,0),M.globalCompositeOperation=I)}t&&t(w)},16)},e.prototype.downloadFullImage=function(t,r,i){var a=this,o=this.get("group").getCanvasBBox(),s=o.height,l=o.width,u=this.get("renderer"),h=zs('
'),c=document.querySelector(".g6-graph-watermarker"),f=i?i.backgroundColor:void 0,d=i?i.padding:void 0;d?on(d)&&(d=[d,d,d,d]):d=[0,0,0,0];var v=s+d[0]+d[2],p=l+d[1]+d[3];if(c){var g=this.get("graphWaterMarker").cfg||{},m=g.width,y=g.height;v=Math.ceil(v/y)*y,p=Math.ceil(p/m)*m}var _={container:h,height:v,width:p},x=u==="svg"?new gR(_):new M1(_),S=this.get("group"),w=fYt(S),b=Xi(w.getMatrix());b||(b=[1,0,0,0,1,0,0,0,1]);var E=(o.maxX+o.minX)/2,T=(o.maxY+o.minY)/2;b=jEe(b,[["t",-E,-T],["t",l/2+d[3],s/2+d[0]]]),w.resetMatrix(),w.setMatrix(b),x.add(w);var C=x.get("el");r||(r="image/png"),this.asyncToDataUrl(r,f,function(A){var M=document.createElement("a"),I=(t||"graph")+(u==="svg"?".svg":".".concat(r.split("/")[1]));a.dataURLToImage(A,u,M,I);var R=document.createEvent("MouseEvents");R.initEvent("click",!1,!1),M.dispatchEvent(R)},p,v,C)},e.prototype.downloadImage=function(t,r,i){var a=this,o=this;o.stopAnimate();var s=o.get("canvas"),l=s.getRenderer();r||(r="image/png");var u=(t||"graph")+(l==="svg"?".svg":".".concat(r.split("/")[1])),h=document.createElement("a");o.asyncToDataUrl(r,i,function(c){a.dataURLToImage(c,l,h,u);var f=document.createEvent("MouseEvents");f.initEvent("click",!1,!1),h.dispatchEvent(f)})},e.prototype.dataURLToImage=function(t,r,i,a){if(!t||t==="data:"){console.error("Download image failed. The graph is too large or there is invalid attribute values in graph items");return}if(typeof window<"u")if(window.Blob&&window.URL&&r!=="svg"){var o=t.split(","),s="";if(o&&o.length>0){var l=o[0].match(/:(.*?);/);l&&l.length>=2&&(s=l[1])}for(var u=atob(o[1]),h=u.length,c=new Uint8Array(h);h--;)c[h]=u.charCodeAt(h);var f=new Blob([c],{type:s});window.navigator.msSaveBlob?window.navigator.msSaveBlob(f,a):i.addEventListener("click",function(){i.download=a,i.href=window.URL.createObjectURL(f)})}else i.addEventListener("click",function(){i.download=a,i.href=t})},e.prototype.addPlugin=function(t){var r=this;t.destroyed||(r.get("plugins").push(t),t.initPlugin(r))},e.prototype.removePlugin=function(t){var r=this.get("plugins"),i=r.indexOf(t);i>=0&&(t.destroyPlugin(),r.splice(i,1))},e.prototype.setImageWaterMarker=function(t,r){t===void 0&&(t=BE.waterMarkerImage);var i=this.get("container");rr(i)&&(i=document.getElementById(i)),i.style.position||(i.style.position="relative");var a=this.get("graphWaterMarker"),o=ms({},BE.imageWaterMarkerConfig,r),s=o.width,l=o.height,u=o.compatible,h=o.image;if(!t){var c=u?i:document.querySelector(".g6-graph-watermarker");c&&(c.style.cssText=void 0),a&&a.clear();return}if(a)a.clear();else{var f={container:i,width:s,height:l,capture:!1},d=this.get("pixelRatio");d&&(f.pixelRatio=d,window.devicePixelRatio=d),a=new M1(f),this.set("graphWaterMarker",a)}a.get("el").style.display="none";var v=a.get("context"),p=h.rotate,g=h.x,m=h.y;v.rotate(-p*Math.PI/180);var y=new Image;y.crossOrigin="anonymous",y.src=t,y.onload=function(){if(v.drawImage(y,g,m,h.width,h.height),v.rotate(p*Math.PI/180),u)i.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var _=document.querySelector(".g6-graph-watermarker");_||(_=document.createElement("div"),_.className="g6-graph-watermarker"),_.className="g6-graph-watermarker",a.destroyed||(_.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:-1;"),i.appendChild(_))}}},e.prototype.setTextWaterMarker=function(t,r){var i=this.get("container");rr(i)&&(i=document.getElementById(i)),i.style.position||(i.style.position="relative");var a=this.get("graphWaterMarker"),o=ms({},BE.textWaterMarkerConfig,r),s=o.width,l=o.height,u=o.compatible,h=o.text;if(!(t!=null&&t.length)){var c=u?i:document.querySelector(".g6-graph-watermarker");c&&(c.style.cssText=void 0),a&&a.clear();return}if(a)a.clear();else{var f={container:i,width:s,height:l,capture:!1},d=this.get("pixelRatio");d&&(f.pixelRatio=d,window.devicePixelRatio=d),a=new M1(f),this.set("graphWaterMarker",a)}a.get("el").style.display="none";var v=a.get("context"),p=h.rotate,g=h.fill,m=h.fontFamily,y=h.fontSize,_=h.baseline,x=h.x,S=h.y,w=h.lineHeight;v.rotate(-p*Math.PI/180),v.font="".concat(y,"px ").concat(m),v.fillStyle=g,v.textBaseline=_;for(var b=rr(t)?[t]:t,E=b.length-1;E>=0;E--)v.fillText(b[E],x,S+E*w);if(v.rotate(p*Math.PI/180),u)i.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var T=document.querySelector(".g6-graph-watermarker");T||(T=document.createElement("div"),T.className="g6-graph-watermarker"),T.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:99;"),i.appendChild(T)}},e.prototype.destroy=function(){var t,r,i,a;At(this.get("plugins"),function(h){h.destroyPlugin()});var o=this.get("tooltips");if(o)for(var s=0;s0)for(var u=s.length-1;u>=0;u--){var h=s[u].getModel();e.indexOfChild(t.children||[],h.id)===-1&&(a.innerRemoveChild(h.id,{x:t.x,y:t.y},i),s.splice(u,1))}}var c,f;o.get("originAttrs")&&(c=o.get("originAttrs").x,f=o.get("originAttrs").y);var d=o.getModel();i&&o.set("originAttrs",{x:d.x,y:d.y}),o.set("model",Object.assign(d,t.data)),(c!==t.x||f!==t.y)&&o.updatePosition({x:t.x,y:t.y})},e.prototype.innerRemoveChild=function(t,r,i){var a=this,o=a.findById(t);if(!!o)if(At(o.get("children"),function(l){a.innerRemoveChild(l.getModel().id,r,i)}),i){var s=o.getModel();o.set("to",r),o.set("originAttrs",{x:s.x,y:s.y}),a.get("removeList").push(o)}else a.removeItem(o,!1)},e.prototype.changeData=function(t,r){r===void 0&&(r=!0);var i=this;this.getNodes().map(function(a){return i.clearItemStates(a)}),this.getEdges().map(function(a){return i.clearItemStates(a)}),r&&this.get("enabledStack")&&this.pushStack("changedata",{before:i.get("originData"),after:t||i.get("data")}),t?(i.data(t),i.render(!1)):i.layout(this.get("fitView"))},e.prototype.changeLayout=function(t){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon");var r=this;r.updateLayout(t)},e.prototype.updateLayout=function(t,r,i,a){a===void 0&&(a=!0);var o=this;if(!t){console.warn("layout cannot be null");return}if(a&&this.get("enabledStack")&&this.pushStack("layout",{before:o.get("layout"),after:t}),o.set("layout",t),o.set("layoutMethod",o.getLayout()),o.layout(),r){var s=i;s||(r==="begin"?s={x:0,y:0}:s={x:this.getWidth()/2,y:this.getHeight()/2}),s=this.getPointByCanvas(s.x,s.y);var l=this.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];s.x=s.x*l[0]+l[6],s.y=s.y*l[0]+l[7];var u=this.getGroup().getCanvasBBox(),h=u.minX,c=u.maxX,f=u.minY,d=u.maxY,v={x:(h+c)/2,y:(f+d)/2};r==="begin"&&(v.x=h,v.y=f),this.translate(s.x-v.x,s.y-v.y)}},e.prototype.refreshLayout=function(t){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon");var r=this;r.layout(t)},e.prototype.layout=function(t){var r=this,i=this,a=i.get("data"),o=i.get("layoutMethod"),s=i.get("layout"),l=a;if(s!=null&&s.excludeInvisibles){a=Xi(i.get("data"));var u={};OY(a,function(f){var d=f.children;if(!(d!=null&&d.length))return!0;for(var v=d.length-1;v>=0;v--){var p=r.findById(d[v].id),g=p?!p.isVisible():d[v].visible===!1;g&&(u[f.id]=u[f.id]||[],u[f.id].push({idx:v,child:d.splice(v,1)[0]}))}}),l=o?o(a,i.get("layout")):a,OY(l,function(f){var d=u[f.id];if(d!=null&&d.length)for(var v=d.length-1;v>=0;v--){var p=d[v],g=p.idx,m=p.child;f.children.splice(g,0,m)}})}else l=o?o(a,i.get("layout")):a;var h=i.get("animate");if(i.emit("beforerefreshlayout",{data:a,layoutData:l}),i.emit("beforelayout"),i.innerUpdateChild(l,void 0,h),t){var c=i.get("viewController");c.fitView()}h?i.layoutAnimate(l):(i.refresh(),i.paint()),i.emit("afterrefreshlayout",{data:a,layoutData:l}),i.emit("afterlayout")},e.prototype.addChild=function(t,r,i){i===void 0&&(i=!0);var a=this;a.emit("beforeaddchild",{model:t,parent:r}),rr(r)||(r=r.get("id"));var o=a.findDataById(r);if(o){o.children||(o.children=[]),o.children.push(t);var s=a.findById(r);s.refresh(),a.changeData(void 0,i)}},e.prototype.updateChildren=function(t,r,i){i===void 0&&(i=!0);var a=this,o=a.findById(r);if(!r||!o){console.warn("Update children failed! There is no node with id '".concat(r,"'"));return}var s=a.findDataById(r);s.children=t,o.refresh(),a.changeData(void 0,i)},e.prototype.updateChild=function(t,r,i){i===void 0&&(i=!0);var a=this;if(!r||!a.findById(r)){a.changeData(t,i);return}var o=a.findDataById(r),s=a.findById(t.id);if(o.children||(o.children=[]),!s)o.children.push(t);else{var l=e.indexOfChild(o.children,t.id);l>-1&&(o.children[l]=t)}var u=a.findById(r);u==null||u.refresh(),a.changeData(void 0,i)},e.prototype.removeChild=function(t,r){r===void 0&&(r=!0);var i=this,a=i.findById(t),o;if(a?o=a==null?void 0:a.get("parent"):o=i.getNodes().find(function(c){var f=c.getModel().children||[];return!!f.find(function(d){return d.id===t})}),o&&!o.destroyed){var s=o.get("id"),l=i.findDataById(s),u=l&&l.children||[],h=e.indexOfChild(u,t);u.splice(h,1),o.refresh()}i.changeData(void 0,r)},e.prototype.findDataById=function(t,r){var i=this;if(r||(r=i.get("data")),t===r.id)return r;var a=null;return At(r.children||[],function(o){if(o.id===t)return a=o,!1;if(a=i.findDataById(t,o),a)return!1}),a},e.prototype.layoutAnimate=function(t,r){var i=this,a=this.get("animateCfg");i.emit("beforeanimate",{data:t}),i.getEdges().forEach(function(o){var s=o.get("model");s.sourceAnchor||(s.sourceAnchor=o.get("sourceAnchorIndex"))}),this.get("canvas").animate(function(o){OY(t,function(s){var l=i.findById(s.id);if(l){var u=l.get("originAttrs"),h=l.get("model");if(u||(u={x:h.x,y:h.y},l.set("originAttrs",u)),r){var c=r(l,o,u,t);l.set("model",Object.assign(h,c))}else h.x=u.x+(s.x-u.x)*o,h.y=u.y+(s.y-u.y)*o}return!0}),At(i.get("removeList"),function(s){var l=s.getModel(),u=s.get("originAttrs"),h=s.get("to");l.x=u.x+(h.x-u.x)*o,l.y=u.y+(h.y-u.y)*o}),i.refreshPositions()},{duration:a.duration,easing:a.ease,callback:function(){At(i.getNodes(),function(s){s.set("originAttrs",null)}),At(i.get("removeList"),function(s){i.removeItem(s,!1)}),i.set("removeList",[]),a.callback&&a.callback(),i.emit("afteranimate",{data:t})},delay:a.delay})},e.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1},e.prototype.isLayoutAnimating=function(){return this.layoutAnimating},e.prototype.render=function(t){t===void 0&&(t=!0);var r=this,i=r.get("data");if(!i||!Wh(i)||!Object.keys(i).length)throw new Error("data must be defined first");r.clear(),t&&this.get("enabledStack")&&this.clearStack(),r.emit("beforerender"),r.layout(this.get("fitView")),r.emit("afterrender")},e.prototype.save=function(){return this.get("data")},e.prototype.data=function(t){n.prototype.data.call(this,t),this.set("originData",Cdr(t))},e}(KHe),Idr=function(){function n(e){this._cfgs=ms(this.getDefaultCfgs(),e),this._events={},this.destroyed=!1}return n.prototype.getDefaultCfgs=function(){return{}},n.prototype.initPlugin=function(e){var t=this;t.set("graph",e);var r=t.getEvents(),i={};At(r,function(a,o){var s=hE(t,a);i[o]=s,e.on(o,s)}),this._events=i,this.init()},n.prototype.getEvents=function(){return{}},n.prototype.get=function(e){var t;return(t=this._cfgs)===null||t===void 0?void 0:t[e]},n.prototype.set=function(e,t){this._cfgs[e]=t},n.prototype.destroy=function(){},n.prototype.destroyPlugin=function(){this.destroy();var e=this.get("graph"),t=this._events;At(t,function(r,i){e.off(i,r)}),this._events=null,this._cfgs=null,this.destroyed=!0},n}();const zd=Idr;var Ldr=globalThis&&globalThis.__extends||function(){var n=function(t,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])},n(t,r)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),XEe="url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAgTSAwIDIwIEwgNDAgMjAgTSAyMCAwIEwgMjAgNDAgTSAwIDMwIEwgNDAgMzAgTSAzMCAwIEwgMzAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2UwZTBlMCIgb3BhY2l0eT0iMC4yIiBzdHJva2Utd2lkdGg9IjEiLz48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=)",Pdr=function(n){Ldr(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultCfgs=function(){return{img:XEe,follow:!0}},e.prototype.init=function(){var t=this.get("graph"),r=t.get("container"),i=t.get("canvas").get("el"),a=this.get("img")||XEe;a.includes("url(")||(a='url("'.concat(a,'")'));var o=zs(`
`),s=zs(`
`));this.set("container",o),this.set("gridContainer",s),this.positionInit(),o.appendChild(s),r.insertBefore(o,i)},e.prototype.positionInit=function(){var t=this.get("graph"),r=t.get("minZoom"),i=t.get("width"),a=t.get("height");Di(this.get("container"),{width:"".concat(i,"px"),height:"".concat(a,"px")});var o=i*80/r,s=a*80/r;Di(this.get("gridContainer"),{width:"".concat(o,"px"),height:"".concat(s,"px"),left:"-".concat(o/2,"px"),top:"-".concat(s/2,"px")})},e.prototype.getEvents=function(){return{viewportchange:"updateGrid"}},e.prototype.updateGrid=function(t){var r=this.get("gridContainer"),i=t.matrix;i||(i=[1,0,0,0,1,0,0,0,1]);var a=this.get("follow"),o="matrix(".concat(i[0],", ").concat(i[1],", ").concat(i[3],", ").concat(i[4],", ").concat(a?i[6]:"0",", ").concat(a?i[7]:"0",")");Di(r,{transform:o})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.destroy=function(){var t=this.get("graph"),r=t.get("container"),i=this.get("container");r.removeChild(i)},e}(zd);const Odr=Pdr;var cT={exports:{}},YEe=[],LP=[],Rdr="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function QHe(n,e){if(e=e||{},n===void 0)throw new Error(Rdr);var t=e.prepend===!0?"prepend":"append",r=e.container!==void 0?e.container:document.querySelector("head"),i=YEe.indexOf(r);i===-1&&(i=YEe.push(r)-1,LP[i]={});var a;return LP[i]!==void 0&&LP[i][t]!==void 0?a=LP[i][t]:(a=LP[i][t]=Ddr(),t==="prepend"?r.insertBefore(a,r.childNodes[0]):r.appendChild(a)),n.charCodeAt(0)===65279&&(n=n.substr(1,n.length)),a.styleSheet?a.styleSheet.cssText+=n:a.textContent+=n,a}function Ddr(){var n=document.createElement("style");return n.setAttribute("type","text/css"),n}cT.exports=QHe;cT.exports.insertCss=QHe;var Ndr=globalThis&&globalThis.__extends||function(){var n=function(t,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])},n(t,r)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();typeof document<"u"&&cT.exports(` + .g6-component-contextmenu { + border: 1px solid #e2e2e2; + border-radius: 4px; + font-size: 12px; + color: #545454; + background-color: rgba(255, 255, 255, 0.9); + padding: 10px 8px; + box-shadow: rgb(174, 174, 174) 0px 0px 10px; + } + .g6-contextmenu-ul { + padding: 0; + margin: 0; + list-style: none; + } + +`);var kdr=function(n){Ndr(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,handleMenuClick:void 0,getContent:function(r){return` +
    +
  • \u83DC\u5355\u98791
  • +
  • \u83DC\u5355\u98792
  • +
+ `},shouldBegin:function(r){return!0},onHide:function(){return!0},itemTypes:["node","edge","combo"],trigger:"contextmenu"}},e.prototype.getEvents=function(){return this.get("trigger")==="click"?{click:"onMenuShow",touchend:"onMenuShow"}:{contextmenu:"onMenuShow"}},e.prototype.init=function(){var t=this.get("className"),r=zs("
"));Di(r,{top:"0px",position:"absolute",visibility:"hidden"});var i=this.get("container");i||(i=this.get("graph").get("container")),rr(i)&&(i=document.getElementById(i)),i.appendChild(r),this.set("menu",r)},e.prototype.onMenuShow=function(t){var r=this;t.preventDefault();var i=this.get("itemTypes");if(t.item){if(t.item&&t.item.getType&&i.indexOf(t.item.getType())===-1){r.onMenuHide();return}}else if(i.indexOf("canvas")===-1){r.onMenuHide();return}var a=this.get("shouldBegin");if(!!a(t)){var o=this.get("menu"),s=this.get("getContent"),l=this.get("graph"),u=s(t,l);rr(u)?o.innerHTML=u:o.innerHTML=u.outerHTML,this.removeMenuEventListener();var h=this.get("handleMenuClick");if(h){var c=function(E){h(E.target,t.item,l)};this.set("handleMenuClickWrapper",c),o.addEventListener("click",c)}var f=l.get("width"),d=l.get("height"),v=o.getBoundingClientRect(),p=this.get("offsetX")||0,g=this.get("offsetY")||0,m=l.getContainer().offsetTop,y=l.getContainer().offsetLeft,_=t.canvasX+y+p,x=t.canvasY+m+g;_+v.width>f&&(_=t.canvasX-v.width-p+y),x+v.height>d&&(x=t.canvasY-v.height-g+m),x<0&&(x=0),Di(o,{top:"".concat(x,"px"),left:"".concat(_,"px"),visibility:"visible"});var S=this.get("trigger")==="click",w=function(E){if(S){S=!1;return}r.onMenuHide()};document.body.addEventListener("click",w),this.set("handler",w)}},e.prototype.removeMenuEventListener=function(){var t=this.get("handleMenuClickWrapper"),r=this.get("handler");if(t){var i=this.get("menu");i.removeEventListener("click",t),this.set("handleMenuClickWrapper",null)}r&&document.body.removeEventListener("click",r)},e.prototype.onMenuHide=function(){var t=this.get("menu");t&&Di(t,{visibility:"hidden"}),this.removeMenuEventListener()},e.prototype.destroy=function(){var t=this.get("menu");if(this.removeMenuEventListener(),t){var r=this.get("container");r||(r=this.get("graph").get("container")),rr(r)&&(r=document.getElementById(r)),r.removeChild(t)}},e}(zd);const Fdr=kdr;var Bdr=globalThis&&globalThis.__extends||function(){var n=function(t,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])},n(t,r)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ote=globalThis&&globalThis.__assign||function(){return ote=Object.assign||function(n){for(var e,t=1,r=arguments.length;t-1,u=navigator.userAgent.toLowerCase().indexOf("safari")>-1,h=zs(` +
`)),c=0,f=0,d=!1,v=0,p=0,g=0,m=0,y=0,_=0,x=u||l?"mousedown":"dragstart";h.addEventListener(x,function(E){var T,C;if(E.dataTransfer){var A=new Image;A.src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' %3E%3Cpath /%3E%3C/svg%3E",(C=(T=E.dataTransfer).setDragImage)===null||C===void 0||C.call(T,A,0,0);try{E.dataTransfer.setData("text/html","view-port-minimap")}catch{E.dataTransfer.setData("text","view-port-minimap")}}if(r.refresh=!1,E.target===h){var M=h.style;v=parseInt(M.left,10),p=parseInt(M.top,10),g=parseInt(M.width,10),m=parseInt(M.height,10),!(g>i[0]||m>i[1])&&(_=a.getZoom(),y=t.get("ratio"),d=!0,c=E.clientX,f=E.clientY)}},!1);var S=function(T){if(!(!d||an(T.clientX)||an(T.clientY))){var C=c-T.clientX,A=f-T.clientY;(v-C<0||v-C+g>=i[0])&&(C=0),(p-A<0||p-A+m>=i[1])&&(A=0),v-=C,p-=A,Di(h,{left:"".concat(v,"px"),top:"".concat(p,"px")}),a.translate(C*_/y,A*_/y),c=T.clientX,f=T.clientY}};!u&&!l&&h.addEventListener("drag",S,!1);var w=function(){d=!1,r.refresh=!0},b=u||l?"mouseup":"dragend";h.addEventListener(b,w,!1),s.addEventListener("mouseleave",w),s.addEventListener("mouseup",w),(u||l)&&s.addEventListener("mousemove",S,!1),this.set("viewport",h),s.appendChild(h)}},e.prototype.updateViewport=function(){if(!this.destroyed){var t=this.get("ratio"),r=this.get("totaldx"),i=this.get("totaldy"),a=this.get("graph"),o=this.get("size"),s=a.get("canvas").get("el"),l=a.get("width")||s.scrollWidth||500,u=a.get("height")||s.scrollHeight||500,h=a.getPointByCanvas(0,0),c=a.getPointByCanvas(l,u),f=this.get("viewport");f||this.initViewport();var d=(c.x-h.x)*t,v=(c.y-h.y)*t,p=h.x*t+r,g=h.y*t+i,m=p+d,y=g+v;p<0&&(d+=p,p=0),m>o[0]&&(d=d-(m-o[0])),g<0&&(v+=g,g=0),y>o[1]&&(v=v-(y-o[1])),this.set("ratio",t);var _="".concat(p,"px"),x="".concat(g,"px");Di(f,{left:_,top:x,width:"".concat(d,"px"),height:"".concat(v,"px")})}},e.prototype.updateGraphShapes=function(){var t=this._cfgs.graph,r=this.get("canvas"),i=t.get("group");if(!i.destroyed){r.clear();var a;this.get("hideEdge")?(a=r.addGroup(),i.get("children").forEach(function(s){s.get("id").includes("-edge")||a.add(s.clone())})):(a=i.clone(),a.resetMatrix(),r.add(a));var o=t.get("renderer");o===ZEe&&this.updateVisible(a)}},e.prototype.updateVisible=function(t){var r=this;if(!t.isGroup()&&!t.get("visible"))t.hide();else{var i=t.get("children");if(!i||!i.length)return;i.forEach(function(a){a.get("visible")||a.hide(),r.updateVisible(a)})}},e.prototype.updateKeyShapes=function(){var t=this,r=this._cfgs.graph,i=this.get("canvas"),a=i.get("children")[0]||i.addGroup();this.get("hideEdge")||At(r.getEdges(),function(l){t.updateOneEdgeKeyShape(l,a)}),At(r.getNodes(),function(l){t.updateOneNodeKeyShape(l,a)});var o=r.getCombos();if(o&&o.length){var s=a.find(function(l){return l.get("name")==="comboGroup"})||a.addGroup({name:"comboGroup"});setTimeout(function(){t.destroyed||(At(o,function(l){t.updateOneComboKeyShape(l,s)}),s==null||s.sort(),s==null||s.toBack(),t.updateCanvas())},250)}this.clearDestroyedShapes()},e.prototype.updateOneComboKeyShape=function(t,r){if(!this.destroyed){var i=this.get("itemMap")||{},a=i[t.get("id")],o=t.getBBox(),s=t.get("keyShape").clone(),l=s.attr(),u={x:o.centerX,y:o.centerY};a?u=Object.assign(l,u):(a=s,r.add(a));var h=a.get("type");(h==="rect"||h==="image")&&(u.x=o.minX,u.y=o.minY),a.attr(u),t.isVisible()?a.show():a.hide(),a.exist=!0;var c=t.getModel().depth;isNaN(c)||a.set("zIndex",c),i[t.get("id")]=a,this.set("itemMap",i)}},e.prototype.updateOneNodeKeyShape=function(t,r){var i=this.get("itemMap")||{},a=i[t.get("id")],o=t.getBBox(),s=t.get("keyShape").clone(),l=s.attr(),u={x:o.centerX,y:o.centerY};a?(u=Object.assign(l,u),a.toFront()):(a=s,r.add(a));var h=a.get("type");(h==="rect"||h==="image")&&(u.x=o.minX,u.y=o.minY),a.attr(u),t.isVisible()?a.show():a.hide(),a.exist=!0;var c=t.getModel().depth;isNaN(c)||a.set("zIndex",c),i[t.get("id")]=a,this.set("itemMap",i)},e.prototype.updateDelegateShapes=function(){var t=this,r=this._cfgs.graph,i=this.get("canvas"),a=i.get("children")[0]||i.addGroup();this.get("hideEdge")||At(r.getEdges(),function(l){t.updateOneEdgeKeyShape(l,a)}),At(r.getNodes(),function(l){t.updateOneNodeDelegateShape(l,a)});var o=r.getCombos();if(o&&o.length){var s=a.find(function(l){return l.get("name")==="comboGroup"})||a.addGroup({name:"comboGroup"});setTimeout(function(){t.destroyed||(At(o,function(l){t.updateOneComboKeyShape(l,s)}),s==null||s.sort(),s==null||s.toBack(),t.updateCanvas())},250)}this.clearDestroyedShapes()},e.prototype.clearDestroyedShapes=function(){var t=this.get("itemMap")||{},r=Object.keys(t);if(!(!r||r.length===0))for(var i=r.length-1;i>=0;i--){var a=t[r[i]],o=a.exist;a.exist=!1,o||(a.remove(),delete t[r[i]])}},e.prototype.updateOneEdgeKeyShape=function(t,r){var i=this.get("itemMap")||{},a=i[t.get("id")];if(a){var o=t.get("keyShape").attr("path");a.attr("path",o)}else a=t.get("keyShape").clone(),r.add(a);t.isVisible()?a.show():a.hide(),a.exist=!0,i[t.get("id")]=a,this.set("itemMap",i)},e.prototype.updateOneNodeDelegateShape=function(t,r){var i=this.get("delegateStyle"),a=this.get("itemMap")||{},o=a[t.get("id")],s=t.getBBox();if(o){var l={x:s.minX,y:s.minY,width:s.width,height:s.height};o.attr(l),o.toFront()}else o=r.addShape("rect",{attrs:ote({x:s.minX,y:s.minY,width:s.width,height:s.height},i),name:"minimap-node-shape"});t.isVisible()?o.show():o.hide(),o.exist=!0,a[t.get("id")]=o,this.set("itemMap",a)},e.prototype.init=function(){this.initContainer(),this.get("graph").on("afterupdateitem",this.handleUpdateCanvas),this.get("graph").on("afteritemstatechange",this.handleUpdateCanvas),this.get("graph").on("afteradditem",this.handleUpdateCanvas),this.get("graph").on("afterremoveitem",this.handleUpdateCanvas),this.get("graph").on("afterrender",this.handleUpdateCanvas),this.get("graph").on("afterlayout",this.handleUpdateCanvas)},e.prototype.initContainer=function(){var t=this,r=t.get("graph"),i=t.get("size"),a=t.get("className"),o=t.get("container"),s=zs("
"));rr(o)&&(o=document.getElementById(o)),o?o.appendChild(s):r.get("container").appendChild(s),t.set("container",s);var l=zs('
');s.appendChild(l),l.addEventListener("dragenter",function(c){c.preventDefault()}),l.addEventListener("dragover",function(c){c.preventDefault()});var u,h=r.get("renderer");h===ZEe?u=new gR({container:l,width:i[0],height:i[1]}):u=new M1({container:l,width:i[0],height:i[1]}),t.set("canvas",u),t.updateCanvas()},e.prototype.updateCanvas=function(){if(!this.destroyed){var t=this.get("refresh");if(!!t){var r=this.get("graph");if(!r.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var i=this.get("size"),a=this.get("canvas"),o=this.get("type"),s=this.get("padding");if(!a.destroyed){switch(o){case zdr:this.updateGraphShapes();break;case Udr:this.updateKeyShapes();break;case Vdr:this.updateDelegateShapes();break}var l=a.get("children")[0];if(!!l){l.resetMatrix();var u=l.getCanvasBBox(),h=r.get("canvas").getCanvasBBox(),c=r.getZoom()||1,f=h.width/c,d=h.height/c;Number.isFinite(u.width)&&(f=qEe(u.width,f),d=qEe(u.height,d)),f+=2*s,d+=2*s;var v=Math.min(i[0]/f,i[1]/d),p=[1,0,0,0,1,0,0,0,1],g=0,m=0;Number.isFinite(u.minX)&&(g=-u.minX),Number.isFinite(u.minY)&&(m=-u.minY);var y=(i[0]-(f-2*s)*v)/2,_=(i[1]-(d-2*s)*v)/2;p=Gdr(p,[["t",g,m],["s",v,v],["t",y,_]]),l.setMatrix(p),this.set("ratio",v),this.set("totaldx",y+g*v),this.set("totaldy",_+m*v),this.set("dx",y),this.set("dy",_),this.updateViewport()}}}}}},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.getViewport=function(){return this.get("viewport")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.destroy=function(){var t;(t=this.get("canvas"))===null||t===void 0||t.destroy();var r=this.get("container");r!=null&&r.parentNode&&r.parentNode.removeChild(r)},e}(zd);const Wdr=$dr;var Hdr=globalThis&&globalThis.__extends||function(){var n=function(t,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])},n(t,r)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();function uy(n,e,t){var r=n.x-e.x,i=n.y-e.y;return!t||Math.abs(r)>t||Math.abs(i)>t?Math.sqrt(r*r+i*i):t}function jdr(n,e){return n.x*e.x+n.y*e.y}function KEe(n,e){var t=(e.source.y-e.target.y)/(e.source.x-e.target.x),r=(t*t*e.source.x+t*(n.y-e.source.y)+n.x)/(t*t+1),i=t*(r-e.source.x)+e.source.y;return{x:r,y:i}}var Xdr=function(n){Hdr(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultCfgs=function(){return{edgeBundles:[],edgePoints:[],K:.1,lambda:.1,divisions:1,divRate:2,cycles:6,iterations:90,iterRate:.6666667,bundleThreshold:.6,eps:1e-6,onLayoutEnd:function(){},onTick:function(){}}},e.prototype.init=function(){var t=this.get("graph"),r=this.get("onTick"),i=function(){r&&r(),t.refreshPositions()};this.set("tick",i)},e.prototype.bundling=function(t){var r=this;if(r.set("data",t),!r.isTicking()){var i=t.edges||[],a=t.nodes||[],o={},s=!1;if(a.forEach(function(x){(x.x===null||!x.y===null||x.x===void 0||!x.y===void 0)&&(s=!0),o[x.id]=x}),s)throw new Error("please layout the graph or assign x and y for nodes first");r.set("nodeIdMap",o);var l=r.get("divisions"),u=r.get("divRate"),h=r.divideEdges(l);r.set("edgePoints",h);var c=r.getEdgeBundles();r.set("edgeBundles",c);for(var f=r.get("cycles"),d=r.get("iterations"),v=r.get("iterRate"),p=r.get("lambda"),g=0;gv;){var _=v/y,x={x:o[l][m-1].x,y:o[l][m-1].y};x.x+=_*(g.x-o[l][m-1].x),x.y+=_*(g.y-o[l][m-1].y),p.push(x),y-=v,v=d}v-=y}}),p.push({x:c.x,y:c.y}),o[l]=p}}),o},e.prototype.getEdgeLength=function(t){var r=0;return t.forEach(function(i,a){a!==0&&(r+=uy(i,t[a-1]))}),r},e.prototype.getEdgeBundles=function(){var t=this,r=t.get("data"),i=r.edges||[],a=t.get("bundleThreshold"),o=t.get("nodeIdMap"),s=t.get("edgeBundles");return s||(s=[]),i.forEach(function(l,u){(!s[u]||s[u]===void 0)&&(s[u]=[])}),i.forEach(function(l,u){var h=o[l.source],c=o[l.target];i.forEach(function(f,d){if(!(d<=u)){var v=o[f.source],p=o[f.target],g=t.getBundleScore({source:h,target:c},{source:v,target:p});g>=a&&(s[u].push(d),s[d].push(u))}})}),s},e.prototype.getBundleScore=function(t,r){var i=this;t.vx=t.target.x-t.source.x,t.vy=t.target.y-t.source.y,r.vx=r.target.x-r.source.x,r.vy=r.target.y-r.source.y,t.length=uy({x:t.source.x,y:t.source.y},{x:t.target.x,y:t.target.y}),r.length=uy({x:r.source.x,y:r.source.y},{x:r.target.x,y:r.target.y});var a=i.getAngleScore(t,r),o=i.getScaleScore(t,r),s=i.getPositionScore(t,r),l=i.getVisibilityScore(t,r);return a*o*s*l},e.prototype.getAngleScore=function(t,r){var i=jdr({x:t.vx,y:t.vy},{x:r.vx,y:r.vy});return i/(t.length*r.length)},e.prototype.getScaleScore=function(t,r){var i=(t.length+r.length)/2,a=2/(i/Math.min(t.length,r.length)+Math.max(t.length,r.length)/i);return a},e.prototype.getPositionScore=function(t,r){var i=(t.length+r.length)/2,a={x:(t.source.x+t.target.x)/2,y:(t.source.y+t.target.y)/2},o={x:(r.source.x+r.target.x)/2,y:(r.source.y+r.target.y)/2},s=uy(a,o);return i/(i+s)},e.prototype.getVisibilityScore=function(t,r){var i=this.getEdgeVisibility(t,r),a=this.getEdgeVisibility(r,t);return ia||Math.abs(c.y)>a){var f=uy(s[h][t],s[r][t]),d=1/f;u.x+=c.x*d,u.y+=c.y*d}}),u},e.prototype.isTicking=function(){return this.get("ticking")},e.prototype.getSimulation=function(){return this.get("forceSimulation")},e.prototype.destroy=function(){this.get("ticking")&&this.getSimulation().stop(),n.prototype.destroy.call(this)},e}(zd);const Ydr=Xdr;var qdr=globalThis&&globalThis.__extends||function(){var n=function(t,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])},n(t,r)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ste=globalThis&&globalThis.__assign||function(){return ste=Object.assign||function(n){for(var e,t=1,r=arguments.length;t(u||i.get("height"))&&a>1||c<(h||i.get("height")*.05)&&a<1)&&(a=1),c*=a,r.set("r",c),r.set("r2",c*c);var f=r.get("d");r.set("molecularParam",(f+1)*c),r.set("delegateCenterDiff",void 0),r.magnify(t,l)}},e.prototype.scaleRByDrag=function(t){var r=this;if(!!t){var i=r.get("dragPrePos"),a=r.get("graph"),o,s=a.getPointByClient(t.clientX,t.clientY);t.x-i.x<0?o=1-X5:o=1/(1-X5);var l=r.get("maxR"),u=r.get("minR"),h=r.get("r");(h>(l||a.get("height"))&&o>1||h<(u||a.get("height")*.05)&&o<1)&&(o=1),h*=o,r.set("r",h),r.set("r2",h*h);var c=r.get("d");r.set("molecularParam",(c+1)*h),r.magnify(t,s),r.set("dragPrePos",{x:t.x,y:t.y})}},e.prototype.scaleDByWheel=function(t){var r=this;if(!(!t&&!t.originalEvent)){t.preventDefault&&t.preventDefault();var i=0;t.originalEvent.wheelDelta<0?i=-.1:i=.1;var a=r.get("d"),o=a+i,s=r.get("maxD"),l=r.get("minD");if(ol){r.set("d",o);var u=r.get("r");r.set("molecularParam",(o+1)*u);var h=r.get("delegate"),c=h?{x:h.attr("x"),y:h.attr("y")}:void 0;r.set("delegateCenterDiff",void 0),r.magnify(t,c)}}},e.prototype.scaleDByDrag=function(t){var r=this,i=r.get("dragPrePos"),a=t.x-i.x>0?.1:-.1,o=r.get("d"),s=o+a,l=r.get("maxD"),u=r.get("minD");if(su){r.set("d",s);var h=r.get("r");r.set("molecularParam",(s+1)*h),r.magnify(t)}r.set("dragPrePos",{x:t.x,y:t.y})},e.prototype.magnify=function(t,r){var i=this;i.restoreCache();var a=i.get("graph"),o=i.get("cachedMagnifiedModels"),s=i.get("cachedOriginPositions"),l=i.get("showLabel"),u=i.get("r"),h=i.get("r2"),c=i.get("d"),f=i.get("molecularParam"),d=a.getNodes(),v=d.length,p=r?{x:r.x,y:r.y}:{x:t.x,y:t.y};i.get("dragging")&&(i.get("trigger")==="mousemove"||i.get("trigger")==="click")&&(p=i.get("cacheCenter"));var g=i.get("delegateCenterDiff");g&&(p.x+=g.x,p.y+=g.y),i.updateDelegate(p,u);for(var m=0;m +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • + + `},zoomSensitivity:2}},e.prototype.init=function(){var t=this,r=this.get("graph"),i=this.get("getContent"),a=i(r),o=a;rr(a)&&(o=zs(a));var s=this.get("className");o.setAttribute("class",s||"g6-component-toolbar");var l=this.get("container");l||(l=this.get("graph").get("container")),rr(l)&&(l=document.getElementById(l)),l.appendChild(o),this.set("toolBar",o);var u=this.get("handleClick");o.addEventListener("click",function(c){var f=Qdr(c).filter(function(v){return v.nodeName==="LI"});if(f.length!==0){var d=f[0].getAttribute("code");!d||(u?u(d,r):t.handleDefaultOperator(d))}});var h=this.get("position");h&&Di(o,{top:"".concat(h.y,"px"),left:"".concat(h.x,"px")}),this.bindUndoRedo()},e.prototype.bindUndoRedo=function(){var t=this.get("graph"),r=document.querySelector('.g6-component-toolbar li[code="undo"]'),i=document.querySelector('.g6-component-toolbar li[code="undo"] svg'),a=document.querySelector('.g6-component-toolbar li[code="redo"]'),o=document.querySelector('.g6-component-toolbar li[code="redo"] svg');!r||!i||!a||!o||(r.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4"),a.setAttribute("style","cursor: not-allowed"),o.setAttribute("style","opacity: 0.4"),t.on("stackchange",function(s){var l=s.undoStack,u=s.redoStack,h=l.length,c=u.length;h===0?(r.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4")):(r.removeAttribute("style"),i.removeAttribute("style")),c===0?(a.setAttribute("style","cursor: not-allowed"),o.setAttribute("style","opacity: 0.4")):(a.removeAttribute("style"),o.removeAttribute("style"))}))},e.prototype.undo=function(){var t=this.get("graph"),r=t.getUndoStack();if(!(!r||r.length===0)){var i=r.pop();if(i){var a=i.action;t.pushStack(a,Xi(i.data),"redo");var o=i.data.before;if(a==="add"&&(o=i.data.after),!o)return;switch(a){case"visible":{Object.keys(o).forEach(function(c){var f=o[c];!f||f.forEach(function(d){var v=t.findById(d.id);d.visible?t.showItem(v,!1):t.hideItem(v,!1)})});break}case"render":case"update":Object.keys(o).forEach(function(c){var f=o[c];!f||f.forEach(function(d){var v=t.findById(d.id);delete d.id,t.updateItem(v,d,!1),v.getType()==="combo"&&t.updateCombo(v)})});break;case"changedata":t.changeData(o,!1);break;case"delete":{Object.keys(o).forEach(function(c){var f=o[c];!f||f.forEach(function(d){var v=d.itemType;delete d.itemType,t.addItem(v,d,!1)})});break}case"add":Object.keys(o).forEach(function(c){var f=o[c];!f||f.forEach(function(d){t.removeItem(d.id,!1)})});break;case"updateComboTree":Object.keys(o).forEach(function(c){var f=o[c];!f||f.forEach(function(d){t.updateComboTree(d.id,d.parentId,!1)})});break;case"createCombo":var s=i.data.after.combos,l=s[s.length-1];Object.keys(o).forEach(function(c){var f=o[c];!f||f.forEach(function(d){t.updateComboTree(d.id,d.parentId,!1)})}),t.removeItem(l.id,!1);break;case"uncombo":var u=o.combos[o.combos.length-1],h=o.nodes.concat(o.combos).map(function(c){return c.id}).filter(function(c){return c!==u.id});t.createCombo(u,h,!1);break;case"layout":t.updateLayout(o,void 0,void 0,!1);break}}}},e.prototype.redo=function(){var t=this.get("graph"),r=t.getRedoStack();if(!(!r||r.length===0)){var i=r.pop();if(i){var a=i.action,o=i.data.after;if(t.pushStack(a,Xi(i.data)),a==="delete"&&(o=i.data.before),!o)return;switch(a){case"visible":{Object.keys(o).forEach(function(h){var c=o[h];!c||c.forEach(function(f){var d=t.findById(f.id);f.visible?t.showItem(d,!1):t.hideItem(d,!1)})});break}case"render":case"update":Object.keys(o).forEach(function(h){var c=o[h];!c||c.forEach(function(f){var d=t.findById(f.id);delete f.id,t.updateItem(d,f,!1),d.getType()==="combo"&&t.updateCombo(d)})});break;case"changedata":t.changeData(o,!1);break;case"delete":o.edges&&o.edges.forEach(function(h){t.removeItem(h.id,!1)}),o.nodes&&o.nodes.forEach(function(h){t.removeItem(h.id,!1)}),o.combos&&o.combos.forEach(function(h){t.removeItem(h.id,!1)});break;case"add":{Object.keys(o).forEach(function(h){var c=o[h];!c||c.forEach(function(f){var d=f.itemType;delete f.itemType,t.addItem(d,f,!1)})});break}case"updateComboTree":Object.keys(o).forEach(function(h){var c=o[h];!c||c.forEach(function(f){t.updateComboTree(f.id,f.parentId,!1)})});break;case"createCombo":var s=o.combos[o.combos.length-1];t.createCombo(s,s.children.map(function(h){return h.id}),!1);break;case"uncombo":var l=i.data.before.combos,u=l[l.length-1];t.uncombo(u.id,!1);break;case"layout":t.updateLayout(o,void 0,void 0,!1);break}}}},e.prototype.zoomOut=function(){var t=this.get("graph"),r=t.getZoom(),i=1/(1-QEe*this.get("zoomSensitivity")),a=this.get("maxZoom")||t.get("maxZoom");i*r>a||t.zoomTo(r*i)},e.prototype.zoomIn=function(){var t=this.get("graph"),r=t.getZoom(),i=1-QEe*this.get("zoomSensitivity"),a=this.get("minZoom")||t.get("minZoom");i*r\u7C7B\u578B\uFF1A`.concat(r.item.getType(),` + ID\uFF1A`).concat(r.item.getID(),` + `)},shouldBegin:function(r){return!0},itemTypes:["node","edge","combo"],trigger:"mouseenter",fixToNode:void 0}},e.prototype.getEvents=function(){return this.get("trigger")==="click"?{"node:click":"onClick","edge:click":"onClick","combo:click":"onClick","canvas:click":"onMouseLeave",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave",drag:"onMouseLeave"}:{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove","edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove","combo:mouseenter":"onMouseEnter","combo:mouseleave":"onMouseLeave","combo:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave","node:drag":"onMouseLeave"}},e.prototype.init=function(){var t=this,r=t.get("className")||"g6-component-tooltip",i=zs("
    ")),a=t.get("container");a||(a=t.get("graph").get("container")),rr(a)&&(a=document.getElementById(a)),Di(i,{position:"absolute",visibility:"hidden",display:"none"}),a.appendChild(i),t.get("trigger")!=="click"&&(i.addEventListener("mouseenter",function(o){Di(i,{visibility:"visible",display:"unset"})}),i.addEventListener("mouseleave",function(o){t.hideTooltip()})),t.set("tooltip",i)},e.prototype.onClick=function(t){var r=this.get("itemTypes");if(!(t.item&&t.item.getType&&r.indexOf(t.item.getType())===-1)){var i=t.item,a=this.get("graph");this.currentTarget===i?(this.currentTarget=null,this.hideTooltip(),a.emit("tooltipchange",{item:t.item,action:"hide"})):(this.currentTarget=i,this.showTooltip(t),a.emit("tooltipchange",{item:t.item,action:"show"}))}},e.prototype.onMouseEnter=function(t){var r=this.get("itemTypes");if(!(t.item&&t.item.getType&&r.indexOf(t.item.getType())===-1)){var i=t.item,a=this.get("graph");this.currentTarget=i,this.showTooltip(t),a.emit("tooltipchange",{item:t.item,action:"show"})}},e.prototype.onMouseMove=function(t){var r=this.get("itemTypes");t.item&&t.item.getType&&r.indexOf(t.item.getType())===-1||!this.currentTarget||t.item!==this.currentTarget||this.showTooltip(t)},e.prototype.onMouseLeave=function(){this.hideTooltip();var t=this.get("graph");t.emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null},e.prototype.clearContainer=function(){var t=this.get("tooltip");t&&(t.innerHTML="")},e.prototype.showTooltip=function(t){if(!!t.item){var r=this.get("itemTypes");if(!(t.item.getType&&r.indexOf(t.item.getType())===-1)){var i=this.get("tooltip"),a=this.get("getContent"),o=a(t);rr(o)?i.innerHTML=o:(this.clearContainer(),i.appendChild(o)),this.updatePosition(t)}}},e.prototype.hideTooltip=function(){var t=this.get("tooltip");t&&Di(t,{visibility:"hidden",display:"none"})},e.prototype.updatePosition=function(t){var r=this.get("shouldBegin"),i=this.get("tooltip");if(!r(t)){Di(i,{visibility:"hidden",display:"none"});return}var a=this.get("graph"),o=a.get("width"),s=a.get("height"),l=this.get("offsetX")||0,u=this.get("offsetY")||0,h=a.getPointByClient(t.clientX,t.clientY),c=this.get("fixToNode"),f=t.item;if(f.getType&&f.getType()==="node"&&c&&vn(c)&&c.length>=2){var d=f.getBBox();h={x:d.minX+d.width*c[0],y:d.minY+d.height*c[1]}}var v=a.getCanvasByPoint(h.x,h.y),p=v.x,g=v.y,m=a.getContainer(),y={x:p+m.offsetLeft+l,y:g+m.offsetTop+u};Di(i,{visibility:"visible",display:"unset"});var _=i.getBoundingClientRect();p+_.width+l>o&&(y.x-=_.width+l),g+_.height+u>s&&(y.y-=_.height+u,y.y<0&&(y.y=0)),Di(i,{left:"".concat(y.x,"px"),top:"".concat(y.y,"px")})},e.prototype.hide=function(){this.onMouseLeave()},e.prototype.destroy=function(){var t=this.get("tooltip");if(t){var r=this.get("container");r||(r=this.get("graph").get("container")),rr(r)&&(r=document.getElementById(r)),r.removeChild(t)}},e}(zd);const ivr=nvr;var eje="timebarstartplay",tje="timebarendplay",Oy="valuechange",GE="timebarConfigChanged",uS="playPauseBtn",nN="nextStepBtn",iN="preStepBtn",avr=function(){function n(e){var t=e.x,r=t===void 0?0:t,i=e.y,a=i===void 0?0:i,o=e.container,s=e.text,l=e.padding,u=l===void 0?[4,4,4,4]:l,h=e.className,c=h===void 0?"g6-component-timebar-tooltip":h,f=e.backgroundColor,d=f===void 0?"#000":f,v=e.textColor,p=v===void 0?"#fff":v,g=e.opacity,m=g===void 0?.8:g,y=e.fontSize,_=y===void 0?12:y;this.container=o,this.className=c,this.backgroundColor=d,this.textColor=p,this.x=r,this.y=a,this.text=s,this.padding=u,this.opacity=m,this.fontSize=_,this.render()}return n.prototype.render=function(){var e=this,t=e.className;e.x,e.y;var r=e.backgroundColor,i=e.textColor,a=e.text,o=e.padding,s=e.opacity,l=e.fontSize,u=e.container,h=zs("
    '));rr(u)&&(u=document.getElementById(u)),u.appendChild(h),e.parentHeight=u.offsetHeight,e.parentWidth=u.offsetWidth,Di(h,{visibility:"hidden",top:0,left:0});var c=zs(` +
    "));c.innerHTML=a,h.appendChild(c),e.backgroundDOM=c;var f=zs("
    "));h.appendChild(f),e.arrowDOM=f,e.container=h},n.prototype.show=function(e){var t=this,r=e.text,i=e.x;e.y,e.clientX,e.clientY,t.backgroundDOM.innerHTML=r;var a=t.backgroundDOM.offsetWidth,o=t.backgroundDOM.offsetHeight,s=t.arrowDOM.offsetWidth,l=t.arrowDOM.offsetHeight;Di(t.container,{top:"".concat(-o-l,"px"),left:"".concat(i,"px"),visibility:"visible"}),Di(t.backgroundDOM,{marginLeft:"".concat(-a/2,"px")}),Di(t.arrowDOM,{marginLeft:"".concat(-s/2,"px"),top:"".concat(o,"px")});var u=i-a/2,h=i+a/2;u<0?Di(t.backgroundDOM,{marginLeft:"".concat(-a/2-u,"px")}):h>t.parentWidth&&Di(t.backgroundDOM,{marginLeft:"".concat(-a/2-h+t.parentWidth+12,"px")})},n.prototype.hide=function(){Di(this.container,{top:0,left:0,visibility:"hidden"})},n}();const ovr=avr;var lte=globalThis&&globalThis.__assign||function(){return lte=Object.assign||function(n){for(var e,t=1,r=arguments.length;th&&(o=h,a=u)})}t.originalEvent.deltaY>0?a=Math.max(0,a-1):a=Math.min(e.speedAxisY.length-1,a+1);var s=e.speedAxisY[a]-i;r=PP(r,[["t",0,s]]),e.speedPoint.setMatrix(r),e.currentSpeed=e.speedAxisY.length-a,e.speedText.attr("text","".concat(e.currentSpeed,".0X")),e.group.emit(GE,{speed:e.currentSpeed,type:e.currentType})}),this.toggleGroup&&this.toggleGroup.on("toggle-model:click",function(t){var r,i,a=t.target.get("isChecked");a?(e.checkedIcon.hide(),e.checkedText.attr("text",((i=e.controllerCfg)===null||i===void 0?void 0:i.timePointControllerText)||"\u5355\u4E00\u65F6\u95F4"),e.currentType=Cy.RANGE):(e.checkedIcon.show(),e.checkedText.attr("text",((r=e.controllerCfg)===null||r===void 0?void 0:r.timeRangeControllerText)||"\u65F6\u95F4\u8303\u56F4"),e.currentType=Cy.SINGLE),t.target.set("isChecked",!a),e.group.emit(GE,{type:e.currentType,speed:e.currentSpeed})})},n.prototype.destroy=function(){this.speedGroup.off("speed-rect:click"),this.toggleGroup&&(this.toggleGroup.off("toggle-model:click"),this.toggleGroup.destroy()),this.speedGroup.destroy()},n}();const ije=pvr;var wR=globalThis&&globalThis.__assign||function(){return wR=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=E&&I<=T,k=R?h:c,D=S.addShape("rect",{attrs:wR({x:a+I*(x+y),y:a,width:x,height:m},k),draggable:!0,name:"tick-rect-".concat(I)}),G=S.addShape("rect",{attrs:{x:a+I*x+y*(2*I-1)/2,y:a,width:I===0||I===_-1?x+y/2:x+y,height:m,fill:"#fff",opacity:0},draggable:!0,name:"pick-rect-".concat(I)});G.toFront();var V=D.getBBox(),z=(V.minX+V.maxX)/2;w.push({rect:D,pickRect:G,value:M.date,x:z,y:V.minY});var j;if(u?(j=u(M),!rr(j)&&j&&(j=M.date)):I%Math.round(_/10)===0&&(j=M.date),j){b.push(j);var Z=V.maxY+a*2;S.addShape("line",{attrs:{stroke:"#BFBFBF",x1:z,y1:Z,x2:z,y2:Z+p},name:"tick-line"});var Y=Z+p+a,le=S.addShape("text",{attrs:wR({fill:"#8c8c8c",stroke:"#fff",lineWidth:1,x:z,y:Y,textAlign:"center",text:j,textBaseline:"top",fontSize:10,fontFamily:e.fontFamily||"Arial, sans-serif"},f),capture:!1,name:"tick-label"}),H=le.getBBox();if(H.maxX>r?le.attr("textAlign","right"):H.minX<0&&le.attr("textAlign","left"),on(C)&&b.length!==10){var Q=gvr([1,0,0,0,1,0,0,0,1],[["t",-z,-Y],["r",C],["t",z-5,Y+2]]);le.attr({textAlign:"left",matrix:Q})}b.length===1?le.attr({textAlign:"left"}):b.length===10&&le.attr({textAlign:"right"})}}),this.tickRects=w;var A=this.group;this.currentSpeed=1,this.controllerBtnGroup=new ije(wR({group:A,x:this.x,y:this.y+i+5,width:r,height:40,hideTimeTypeController:!0,speed:this.currentSpeed,fontFamily:this.fontFamily||"Arial, sans-serif"},this.controllerCfg))},n.prototype.initEvent=function(){var e=this,t=this.sliceGroup;t.on("click",function(h){var c=h.target;if(!(c.get("type")!=="rect"||!c.get("name"))){var f=parseInt(c.get("name").split("-")[2],10);if(!isNaN(f)){var d=e.tickRects,v=e.unselectedTickStyle;d.forEach(function(y){y.rect.attr(v)});var p=e.selectedTickStyle;d[f].rect.attr(p),e.startTickRectId=f,e.endTickRectId=f;var g=d.length,m=f/g;e.graph.emit(Oy,{value:[m,m]})}}}),t.on("dragstart",function(h){var c=e.tickRects,f=e.unselectedTickStyle;c.forEach(function(y){y.rect.attr(f)});var d=h.target,v=parseInt(d.get("name").split("-")[2],10),p=e.selectedTickStyle;c[v].rect.attr(p),e.startTickRectId=v;var g=c.length,m=v/g;e.graph.emit(Oy,{value:[m,m]}),e.dragging=!0}),t.on("dragover",function(h){if(!!e.dragging&&h.target.get("type")==="rect"){for(var c=parseInt(h.target.get("name").split("-")[2],10),f=e.startTickRectId,d=e.tickRects,v=e.selectedTickStyle,p=e.unselectedTickStyle,g=0;g=f&&g<=c?v:p;d[g].rect.attr(m)}var y=d.length;e.endTickRectId=c;var _=f/y,x=c/y;e.graph.emit(Oy,{value:[_,x]})}}),t.on("drop",function(h){if(!!e.dragging&&(e.dragging=!1,h.target.get("type")==="rect")){var c=e.startTickRectId,f=parseInt(h.target.get("name").split("-")[2],10);if(!(f0?t.endTickRectId++:(r[t.endTickRectId].rect.attr(a),t.endTickRectId--),s!==t.startTickRectId)t.endTickRectIdthis.max?NaN:this.values[a]},e.prototype.getText=function(t){for(var r=[],i=1;i1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(Jle),oje=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Lx="\\d\\d?",yx="\\d\\d",wvr="\\d{3}",bvr="\\d{4}",bR="[^\\s]+",sje=/\[([^]*?)\]/gm;function lje(n,e){for(var t=[],r=0,i=n.length;r-1?i:null}};function JS(n){for(var e=[],t=1;t3?0:(n-n%10!==10?1:0)*n%10]}},j9=JS({},Qle),cje=function(n){return j9=JS(j9,n)},t2e=function(n){return n.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},rd=function(n,e){for(e===void 0&&(e=2),n=String(n);n.length0?"-":"+")+rd(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(n){var e=n.getTimezoneOffset();return(e>0?"-":"+")+rd(Math.floor(Math.abs(e)/60),2)+":"+rd(Math.abs(e)%60,2)}},r2e=function(n){return+n-1},n2e=[null,Lx],i2e=[null,bR],a2e=["isPm",bR,function(n,e){var t=n.toLowerCase();return t===e.amPm[0]?0:t===e.amPm[1]?1:null}],o2e=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(n){var e=(n+"").match(/([+-]|\d\d)/gi);if(e){var t=+e[1]*60+parseInt(e[2],10);return e[0]==="+"?t:-t}return 0}],Avr={D:["day",Lx],DD:["day",yx],Do:["day",Lx+bR,function(n){return parseInt(n,10)}],M:["month",Lx,r2e],MM:["month",yx,r2e],YY:["year",yx,function(n){var e=new Date,t=+(""+e.getFullYear()).substr(0,2);return+(""+(+n>68?t-1:t)+n)}],h:["hour",Lx,void 0,"isPm"],hh:["hour",yx,void 0,"isPm"],H:["hour",Lx],HH:["hour",yx],m:["minute",Lx],mm:["minute",yx],s:["second",Lx],ss:["second",yx],YYYY:["year",bvr],S:["millisecond","\\d",function(n){return+n*100}],SS:["millisecond",yx,function(n){return+n*10}],SSS:["millisecond",wvr],d:n2e,dd:n2e,ddd:i2e,dddd:i2e,MMM:["month",bR,e2e("monthNamesShort")],MMMM:["month",bR,e2e("monthNames")],a:a2e,A:a2e,ZZ:o2e,Z:o2e},X9={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},fje=function(n){return JS(X9,n)},dje=function(n,e,t){if(e===void 0&&(e=X9.default),t===void 0&&(t={}),typeof n=="number"&&(n=new Date(n)),Object.prototype.toString.call(n)!=="[object Date]"||isNaN(n.getTime()))throw new Error("Invalid Date pass to format");e=X9[e]||e;var r=[];e=e.replace(sje,function(a,o){return r.push(o),"@@@"});var i=JS(JS({},j9),t);return e=e.replace(oje,function(a){return Cvr[a](n,i)}),e.replace(/@@@/g,function(){return r.shift()})};function vje(n,e,t){if(t===void 0&&(t={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=X9[e]||e,n.length>1e3)return null;var r=new Date,i={year:r.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],o=[],s=e.replace(sje,function(x,S){return o.push(t2e(S)),"@@@"}),l={},u={};s=t2e(s).replace(oje,function(x){var S=Avr[x],w=S[0],b=S[1],E=S[3];if(l[w])throw new Error("Invalid format. "+w+" specified twice in format");return l[w]=!0,E&&(u[E]=!0),a.push(S),"("+b+")"}),Object.keys(u).forEach(function(x){if(!l[x])throw new Error("Invalid format. "+x+" is required in specified format")}),s=s.replace(/@@@/g,function(){return o.shift()});var h=n.match(new RegExp(s,"i"));if(!h)return null;for(var c=JS(JS({},j9),t),f=1;f11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return m}var pje={format:dje,parse:vje,defaultI18n:Qle,setGlobalDateI18n:cje,setGlobalDateMasks:fje};const Mvr=Object.freeze(Object.defineProperty({__proto__:null,default:pje,assign:JS,format:dje,parse:vje,defaultI18n:Qle,setGlobalDateI18n:cje,setGlobalDateMasks:fje},Symbol.toStringTag,{value:"Module"}));function Ivr(n){return function(e,t,r,i){for(var a=an(r)?0:r,o=an(i)?e.length:i;a>>1;n(e[s])>t?o=s:a=s+1}return a}}var s2e="format";function gje(n,e){var t=Mvr[s2e]||pje[s2e];return t(n,e)}function Y9(n){return rr(n)&&(n.indexOf("T")>0?n=new Date(n).getTime():n=new Date(n.replace(/-/gi,"/")).getTime()),Doe(n)&&(n=n.getTime()),n}var Vg=1e3,zE=60*Vg,UE=60*zE,N1=24*UE,ER=N1*31,l2e=N1*365,OP=[["HH:mm:ss",Vg],["HH:mm:ss",Vg*10],["HH:mm:ss",Vg*30],["HH:mm",zE],["HH:mm",zE*10],["HH:mm",zE*30],["HH",UE],["HH",UE*6],["HH",UE*12],["YYYY-MM-DD",N1],["YYYY-MM-DD",N1*4],["YYYY-WW",N1*7],["YYYY-MM",ER],["YYYY-MM",ER*4],["YYYY-MM",ER*6],["YYYY",N1*380]];function Lvr(n,e,t){var r=(e-n)/t,i=Ivr(function(o){return o[1]})(OP,r)-1,a=OP[i];return i<0?a=OP[0]:i>=OP.length&&(a=Fp(OP)),a}var Pvr=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="timeCat",t}return e.prototype.translate=function(t){t=Y9(t);var r=this.values.indexOf(t);return r===-1&&(on(t)&&t-1){var a=this.values[i],o=this.formatter;return a=o?o(a,r):gje(a,this.mask),a}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var t=this.values;At(t,function(r,i){t[i]=Y9(r)}),t.sort(function(r,i){return r-i}),n.prototype.setDomain.call(this)},e}(gk),IV=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.isContinuous=!0,t}return e.prototype.scale=function(t){if(an(t))return NaN;var r=this.rangeMin(),i=this.rangeMax(),a=this.max,o=this.min;if(a===o)return r;var s=this.getScalePercent(t);return r+s*(i-r)},e.prototype.init=function(){n.prototype.init.call(this);var t=this.ticks,r=Ky(t),i=Fp(t);rthis.max&&(this.max=i),an(this.minLimit)||(this.min=r),an(this.maxLimit)||(this.max=i)},e.prototype.setDomain=function(){var t=f9e(this.values),r=t.min,i=t.max;an(this.min)&&(this.min=r),an(this.max)&&(this.max=i),this.min>this.max&&(this.min=r,this.max=i)},e.prototype.calculateTicks=function(){var t=this,r=n.prototype.calculateTicks.call(this);return this.nice||(r=OU(r,function(i){return i>=t.min&&i<=t.max})),r},e.prototype.getScalePercent=function(t){var r=this.max,i=this.min;return(t-i)/(r-i)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(Jle),Ovr=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="linear",t.isLinear=!0,t}return e.prototype.invert=function(t){var r=this.getInvertPercent(t);return this.min+r*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(IV);const yk=Ovr;function zx(n,e){var t=Math.E,r;return e>=0?r=Math.pow(t,Math.log(e)/n):r=Math.pow(t,Math.log(-e)/n)*-1,r}function dp(n,e){return n===1?1:Math.log(e)/Math.log(n)}function yje(n,e,t){an(t)&&(t=Math.max.apply(null,n));var r=t;return At(n,function(i){i>0&&i1&&(r=1),r}var Rvr=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="log",t}return e.prototype.invert=function(t){var r=this.base,i=dp(r,this.max),a=this.rangeMin(),o=this.rangeMax()-a,s,l=this.positiveMin;if(l){if(t===0)return 0;s=dp(r,l/r);var u=1/(i-s)*o;if(t=0?1:-1;return Math.pow(s,i)*l},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var r=this.max,i=this.min;if(r===i)return 0;var a=this.exponent,o=(zx(a,t)-zx(a,i))/(zx(a,r)-zx(a,i));return o},e}(IV),Nvr=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="time",t}return e.prototype.getText=function(t,r){var i=this.translate(t),a=this.formatter;return a?a(i,r):gje(i,this.mask)},e.prototype.scale=function(t){var r=t;return(rr(r)||Doe(r))&&(r=this.translate(r)),n.prototype.scale.call(this,r)},e.prototype.translate=function(t){return Y9(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,r=this.getConfig("min"),i=this.getConfig("max");if((!an(r)||!on(r))&&(this.min=this.translate(this.min)),(!an(i)||!on(i))&&(this.max=this.translate(this.max)),t&&t.length){var a=[],o=1/0,s=o,l=0;At(t,function(u){var h=Y9(u);if(isNaN(h))throw new TypeError("Invalid Time: "+u+" in time scale!");o>h?(s=o,o=h):s>h&&(s=h),l1&&(this.minTickInterval=s-o),an(r)&&(this.min=o),an(i)&&(this.max=l)}},e}(yk),mje=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="quantize",t}return e.prototype.invert=function(t){var r=this.ticks,i=r.length,a=this.getInvertPercent(t),o=Math.floor(a*(i-1));if(o>=i-1)return Fp(r);if(o<0)return Ky(r);var s=r[o],l=r[o+1],u=o/(i-1),h=(o+1)/(i-1);return s+(a-u)/(h-u)*(l-s)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var t=n.prototype.calculateTicks.call(this);return this.nice||(Fp(t)!==this.max&&t.push(this.max),Ky(t)!==this.min&&t.unshift(this.min)),t},e.prototype.getScalePercent=function(t){var r=this.ticks;if(tFp(r))return 1;var i=0;return At(r,function(a,o){if(t>=a)i=o;else return!1}),i/(r.length-1)},e}(IV),kvr=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="quantile",t}return e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(mje),_je={};function Fvr(n){return _je[n]}function km(n,e){if(Fvr(n))throw new Error("type '"+n+"' existed.");_je[n]=e}var Bvr=function(n){Kn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="identity",t.isIdentity=!0,t}return e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&on(t)?t:this.range[0]},e.prototype.invert=function(t){var r=this.range;return tr[1]?NaN:this.values[0]},e}(Jle);function xje(n){var e=n.values,t=n.tickInterval,r=n.tickCount,i=n.showLast;if(on(t)){var a=OU(e,function(v,p){return p%t===0}),o=Fp(e);return i&&Fp(a)!==o&&a.push(o),a}var s=e.length,l=n.min,u=n.max;if(an(l)&&(l=0),an(u)&&(u=e.length-1),!on(r)||r>=s)return e.slice(l,u+1);if(r<=0||u<=0)return[];for(var h=r===1?s:Math.floor(s/(r-1)),c=[],f=l,d=0;d=u);d++)f=Math.min(l+d*h,u),d===r-1&&i?c.push(e[u]):c.push(e[f]);return c}function Gvr(n){var e=n.min,t=n.max,r=n.nice,i=n.tickCount,a=new zvr;return a.domain([e,t]),r&&a.nice(i),a.ticks(i)}var DY=5,u2e=Math.sqrt(50),h2e=Math.sqrt(10),c2e=Math.sqrt(2),zvr=function(){function n(){this._domain=[0,1]}return n.prototype.domain=function(e){return e?(this._domain=Array.from(e,Number),this):this._domain.slice()},n.prototype.nice=function(e){var t,r;e===void 0&&(e=DY);var i=this._domain.slice(),a=0,o=this._domain.length-1,s=this._domain[a],l=this._domain[o],u;return l0?(s=Math.floor(s/u)*u,l=Math.ceil(l/u)*u,u=s8(s,l,e)):u<0&&(s=Math.ceil(s*u)/u,l=Math.floor(l*u)/u,u=s8(s,l,e)),u>0?(i[a]=Math.floor(s/u)*u,i[o]=Math.ceil(l/u)*u,this.domain(i)):u<0&&(i[a]=Math.ceil(s*u)/u,i[o]=Math.floor(l*u)/u,this.domain(i)),this},n.prototype.ticks=function(e){return e===void 0&&(e=DY),Uvr(this._domain[0],this._domain[this._domain.length-1],e||DY)},n}();function Uvr(n,e,t){var r,i=-1,a,o,s;if(e=+e,n=+n,t=+t,n===e&&t>0)return[n];if((r=e0)for(n=Math.ceil(n/s),e=Math.floor(e/s),o=new Array(a=Math.ceil(e-n+1));++i=0?(a>=u2e?10:a>=h2e?5:a>=c2e?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=u2e?10:a>=h2e?5:a>=c2e?2:1)}function f2e(n,e,t){var r;return t==="ceil"?r=Math.ceil(n/e):t==="floor"?r=Math.floor(n/e):r=Math.round(n/e),r*e}function eue(n,e,t){var r=f2e(n,t,"floor"),i=f2e(e,t,"ceil");r=FB(r,t),i=FB(i,t);for(var a=[],o=Math.max((i-r)/(Math.pow(2,12)-1),t),s=r;s<=i;s=s+o){var l=FB(s,o);a.push(l)}return{min:r,max:i,ticks:a}}function tue(n,e,t){var r,i=n.minLimit,a=n.maxLimit,o=n.min,s=n.max,l=n.tickCount,u=l===void 0?5:l,h=an(i)?an(e)?o:e:i,c=an(a)?an(t)?s:t:a;if(h>c&&(r=[h,c],c=r[0],h=r[1]),u<=2)return[h,c];for(var f=(c-h)/(u-1),d=[],v=0;v=0&&(l=1),1-s/(o-1)-t+l}function Xvr(n,e,t){var r=NU(e),i=Noe(e,n),a=1;return 1-i/(r-1)-t+a}function Yvr(n,e,t,r,i,a){var o=(n-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(t,i));return 2-Math.max(o/s,s/o)}function qvr(n,e){return n>=e?2-(n-1)/(e-1):1}function Zvr(n,e,t,r){var i=e-n;return 1-.5*(Math.pow(e-r,2)+Math.pow(n-t,2))/Math.pow(.1*i,2)}function Kvr(n,e,t){var r=e-n;if(t>r){var i=(t-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}function Jvr(){return 1}function Qvr(n,e,t,r,i,a){t===void 0&&(t=5),r===void 0&&(r=!0),i===void 0&&(i=$vr),a===void 0&&(a=[.25,.2,.5,.05]);var o=t<0?0:Math.round(t);if(Number.isNaN(n)||Number.isNaN(e)||typeof n!="number"||typeof e!="number"||!o)return{min:0,max:0,ticks:[]};if(e-n<1e-15||o===1)return{min:n,max:e,ticks:[n]};if(e-n>1e148){var s=t||5,l=(e-n)/s;return{min:n,max:e,ticks:Array(s).fill(null).map(function(Z,Y){return Ub(n+l*Y)})}}for(var u={score:-2,lmin:0,lmax:0,lstep:0},h=1;h<1/0;){for(var c=0;cu.score&&(!r||E<=n&&T>=e)&&(u.lmin=E,u.lmax=T,u.lstep=C,u.score=k)}m+=1}v+=1}}h+=1}var D=Ub(u.lmax),G=Ub(u.lmin),V=Ub(u.lstep),z=Math.floor(Hvr((D-G)/V))+1,j=new Array(z);j[0]=Ub(G);for(var c=1;c0)o=Math.floor(dp(e,r));else{var l=yje(a,e,i);o=Math.floor(dp(e,l))}for(var u=s-o,h=Math.ceil(u/t),c=[],f=o;f=0?1:-1;return Math.pow(o,e)*s})}function npr(n,e){var t=n.length*e;return e===1?n[n.length-1]:e===0?n[0]:t%1!==0?n[Math.ceil(t)-1]:n.length%2===0?(n[t-1]+n[t])/2:n[t]}function ipr(n){var e=n.tickCount,t=n.values;if(!t||!t.length)return[];for(var r=t.slice().sort(function(s,l){return s-l}),i=[],a=0;a1&&(i=i*Math.ceil(s)),r&&il2e)for(var l=q9(t),u=Math.ceil(a/l2e),h=s;h<=l+u;h=h+u)o.push(lpr(h));else if(a>ER)for(var c=Math.ceil(a/ER),f=ute(e),d=upr(e,t),h=0;h<=d+c;h=h+c)o.push(hpr(s,h+f));else if(a>N1)for(var v=new Date(e),p=v.getFullYear(),g=v.getMonth(),m=v.getDate(),y=Math.ceil(a/N1),_=cpr(e,t),h=0;h<_+y;h=h+y)o.push(new Date(p,g,m+h).getTime());else if(a>UE)for(var v=new Date(e),p=v.getFullYear(),g=v.getMonth(),y=v.getDate(),x=v.getHours(),S=Math.ceil(a/UE),w=fpr(e,t),h=0;h<=w+S;h=h+S)o.push(new Date(p,g,y,x+h).getTime());else if(a>zE)for(var b=dpr(e,t),E=Math.ceil(a/zE),h=0;h<=b+E;h=h+E)o.push(e+h*zE);else{var T=a;T=512&&console.warn("Notice: current ticks length("+o.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+a+") is too small, increase the value to solve the problem!"),o}Nm("cat",xje);Nm("time-cat",spr);Nm("wilkinson-extended",epr);Nm("r-pretty",apr);Nm("time",opr);Nm("time-pretty",vpr);Nm("log",tpr);Nm("pow",rpr);Nm("quantile",ipr);Nm("d3-linear",Vvr);km("cat",gk);km("category",gk);km("identity",Bvr);km("linear",yk);km("log",Rvr);km("pow",Dvr);km("time",Nvr);km("timeCat",Pvr);km("quantize",mje);km("quantile",kvr);var ppr=globalThis&&globalThis.__spreadArray||function(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,a;rp?(w.show(),E.show(),p=T.minX+T.width+10):(w.hide(),E.hide()),w}),this.controllerBtnGroup=new ije(Cs({group:this.group,x:this.x,y:this.y+i+25,width:r,height:35},this.controllerCfg)),this.updateStartEnd(0),this.updateUI(),s.move(this.x,this.y),this.bindEvents(),this.currentMode===Cy.SINGLE&&(this.minHandlerShape.hide(),this.foregroundShape.hide(),this.minTextShape.hide())},n.prototype.bindEvents=function(){var e=this,t=this.group.find(function(i){return i.get("name")==="minHandlerShape"});t&&(t.on("minHandlerShape-handler:mousedown",this.onMouseDown(this.minHandlerShape)),t.on("minHandlerShape-handler:touchstart",this.onMouseDown(this.minHandlerShape)));var r=this.group.find(function(i){return i.get("name")==="maxHandlerShape"});r&&(r.on("maxHandlerShape-handler:mousedown",this.onMouseDown(this.maxHandlerShape)),r.on("maxHandlerShape-handler:touchstart",this.onMouseDown(this.maxHandlerShape))),this.foregroundShape.on("mousedown",this.onMouseDown(this.foregroundShape)),this.foregroundShape.on("touchstart",this.onMouseDown(this.foregroundShape)),this.group.on("".concat(uS,":click"),function(){e.isPlay=!e.isPlay,e.currentHandler=e.maxHandlerShape,e.changePlayStatus()}),this.group.on("".concat(nN,":click"),function(){e.currentHandler=e.maxHandlerShape,e.updateStartEnd(.01),e.updateUI()}),this.group.on("".concat(iN,":click"),function(){e.currentHandler=e.maxHandlerShape,e.updateStartEnd(-.01),e.updateUI()}),this.group.on(GE,function(i){var a=i.type,o=i.speed;e.currentSpeed=o,e.currentMode=a,a===Cy.SINGLE?(e.minHandlerShape.hide(),e.foregroundShape.hide(),e.minTextShape.hide()):a===Cy.RANGE&&(e.minHandlerShape.show(),e.foregroundShape.show(),e.minTextShape.show())})},n.prototype.adjustTickIndex=function(e){for(var t=0;t1&&(this.start=1),this.end>1&&(this.end=1),this.end<0&&(this.end=0);var t=this.x+this.start*this.width,r=this.x+this.end*this.width;this.foregroundShape.attr("x",t),this.foregroundShape.attr("width",r-t);var i=y1(this.handlerStyle,"width",hte);this.setText(this.minText,this.maxText);var a=this.dodgeText([t,r]),o=a[0],s=a[1];this.minHandlerShape.setX(t-i/2),At(o,function(l,u){return e.minTextShape.attr(u,l)}),this.maxHandlerShape.setX(r-i/2),At(s,function(l,u){return e.maxTextShape.attr(u,l)}),this.currentMode===Cy.RANGE?this.graph.emit(Oy,{value:[this.start,this.end].sort()}):this.currentMode===Cy.SINGLE&&this.graph.emit(Oy,{value:[this.end,this.end]})},n.prototype.dodgeText=function(e){var t,r,i=2,a=y1(this.handlerStyle,"width",hte),o=this.minTextShape,s=this.maxTextShape,l=e[0],u=e[1],h=!1;l>u&&(t=[u,l],l=t[0],u=t[1],r=[s,o],o=r[0],s=r[1],h=!0);var c=o.getBBox(),f=s.getBBox(),d=null,v=null;return this.timeBarType==="trend"?(d=l-c.widththis.x+this.width?{x:u-a/2-i,textAlign:"right"}:{x:u+a/2+i,textAlign:"left"}):this.timeBarType==="simple"&&(d=o.attr("x")>c.width?{x:l,textAlign:"center"}:{x:l,textAlign:"left"},v=s.attr("x")>this.width-f.width?{x:u,textAlign:"right"}:{x:u,textAlign:"center"}),h?[v,d]:[d,v]},n.prototype.startPlay=function(){var e=this;return typeof window<"u"?window.requestAnimationFrame(function(){var t=e,r=t.ticks,i=t.width,a=e.currentSpeed,o=i/r.length,s=o/((10-a)*1e3/60),l=e.adjustOffsetRange(s/e.width);e.updateStartEnd(l),e.updateUI(),e.isPlay&&(e.playHandler=e.startPlay())}):void 0},n.prototype.changePlayStatus=function(e){e===void 0&&(e=!0),this.controllerBtnGroup.playButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.graph.emit(eje,null)):this.playHandler&&(typeof window<"u"&&window.cancelAnimationFrame(this.playHandler),e&&this.graph.emit(tje,null))},n.prototype.destory=function(){this.graph.off(Oy,function(){});var e=this.group,t=e.find(function(i){return i.get("name")==="minHandlerShape"});t&&(t.off("minHandlerShape-handler:mousedown"),t.off("minHandlerShape-handler:touchstart"),t.destroy());var r=e.find(function(i){return i.get("name")==="maxHandlerShape"});r&&(r.off("maxHandlerShape-handler:mousedown"),r.off("maxHandlerShape-handler:touchstart"),r.destroy()),this.foregroundShape.off("mousedown"),this.foregroundShape.off("touchstart"),this.foregroundShape.destroy(),e.off("".concat(uS,":click")),e.off("".concat(nN,":click")),e.off("".concat(iN,":click")),e.off(GE),e.destroy(),this.trendComponent&&this.trendComponent.destory()},n}();const zpr=Gpr;var Upr=globalThis&&globalThis.__extends||function(){var n=function(t,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])},n(t,r)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),m1=globalThis&&globalThis.__assign||function(){return m1=Object.assign||function(n){for(var e,t=1,r=arguments.length;t
    ")),Di(u,{position:"relative"})),o){var h=this.get("graph").get("container");h.appendChild(u)}this.set("timeBarContainer",u);var c,f=t.get("renderer");f==="SVG"?c=new gR({container:u,width:i,height:a}):c=new M1({container:u,width:i,height:a}),this.get("containerCSS")&&Di(u,this.get("containerCSS")),this.set("canvas",c)},e.prototype.init=function(){this.initContainer();var t=this.get("canvas"),r=t.addGroup({name:"timebar-group"});this.set("timeBarGroup",r),this.renderTrend(),this.initEvent();var i=typeof window<"u"&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif";this.set("fontFamily",i)},e.prototype.play=function(){this.togglePlay(!0)},e.prototype.pause=function(){this.togglePlay(!1)},e.prototype.togglePlay=function(t){var r=this.get("timebar");!r||(r.isPlay=!!t,r.changePlayStatus())},e.prototype.renderTrend=function(){var t=this,r=this._cfgs,i=r.width,a=r.x,o=r.y,s=r.padding,l=r.type,u=r.trend,h=r.slider,c=r.controllerCfg,f=r.textStyle,d=r.tick,v=r.backgroundStyle,p=r.foregroundStyle,g=u.data,m=Vpr(u,["data"]),y=i-2*s,_=l==="trend"?Wpr:$pr,x=this.get("graph"),S=this.get("timeBarGroup"),w=this.get("canvas"),b=null;if(l==="trend"||l==="simple"){var E=this.get("getValue");b=new zpr(m1(m1({graph:x,canvas:w,group:S,type:l,x:a+s,y:l==="trend"?o+s:o+s+15,width:y,height:_,padding:s,backgroundStyle:v,foregroundStyle:p,trendCfg:m1(m1({},m),{data:g.map(function(C){return(E==null?void 0:E(C))||C.value})})},h),{tick:{ticks:g,tickLabelFormatter:d.tickLabelFormatter,tickLabelStyle:d.tickLabelStyle,tickLineStyle:d.tickLineStyle},handlerStyle:m1(m1({},h.handlerStyle),{height:h.height||_}),controllerCfg:c,textStyle:f}))}else l==="tick"&&(b=new xvr(m1({graph:x,canvas:w,group:S,x:a+s,y:o+s,width:i,height:42,padding:2,controllerCfg:c},d)));var T=function(){var A=t.get("timebar");A.draggingHandler=!1,A.isPlay&&(A.isPlay=!1,A.currentHandler=A.maxHandlerShape,A.changePlayStatus()),document.removeEventListener("mouseup",T)};w.on("mousedown",function(C){(C.target.get("name")==="maxHandlerShape-handler"||C.target.get("name")==="minHandlerShape-handler"||C.target===b.foregroundShape)&&document.addEventListener("mouseup",T)}),this.set("timebar",b)},e.prototype.filterData=function(t){var r,i=t.value;if(!i){i=[];var a=this._cfgs.type;!a||a==="trend"||a==="simple"?(i[0]=this._cfgs.slider.start,i[1]=this._cfgs.slider.end):a==="tick"&&(i[0]=this._cfgs.tick.start,i[1]=this._cfgs.tick.end)}var o=null,s=this._cfgs.type;if(s==="trend"||s==="simple"?o=this._cfgs.trend.data:s==="tick"&&(o=this._cfgs.tick.data),!o||o.length===0){console.warn("\u8BF7\u914D\u7F6E TimeBar \u7EC4\u4EF6\u7684\u6570\u636E");return}var l=this.get("rangeChange"),u=this.get("graph"),h=Math.round(o.length*i[0]),c=Math.round(o.length*i[1]);c=c>=o.length?o.length-1:c,h=h>=o.length?o.length-1:h;var f=(r=this._cfgs.tick)===null||r===void 0?void 0:r.tickLabelFormatter,d=f?f(o[h]):o[h].date,v=f?f(o[c]):o[c].date;if(s!=="tick"){var p=this.get("timebar");p.setText(d,v)}if(l)l(u,d,v);else{(!this.cacheGraphData||this.cacheGraphData.nodes&&this.cacheGraphData.nodes.length===0)&&(this.cacheGraphData=u.get("data"));var g=this.get("filterItemTypes"),m=this.get("changeData"),y=this.get("getDate"),_=this.get("shouldIgnore"),x=o[h].date,S=o[c].date;if(m||m===void 0){var w=this.cacheGraphData.nodes,b=this.cacheGraphData.edges,E={},T={};u.getNodes().forEach(function(C){return E[C.getID()]=!0}),u.getEdges().forEach(function(C){return T[C.getID()]=!0}),g.includes("node")&&(w==null||w.forEach(function(C){var A=+((y==null?void 0:y(C))||C.date),M=A>=x&&A<=S||(_==null?void 0:_("node",C,{min:x,max:S})),I=E[C.id];I&&!M?(u.removeItem(C.id),E[C.id]=!1):!I&&M&&(u.addItem("node",C),E[C.id]=!0)}),b==null||b.forEach(function(C){var A=E[C.source]&&E[C.target]||(_==null?void 0:_("edge",C,{min:x,max:S})),M=!!u.findById(C.id);M&&!A?(u.removeItem(C.id),T[C.id]=!1):!M&&A?(u.addItem("edge",C),T[C.id]=!0):M||(T[C.id]=!1)})),(this.get("filterEdge")||g.includes("edge"))&&(b==null||b.filter(function(C){var A=+((y==null?void 0:y(C))||C.date),M=A>=x&&A<=S||(_==null?void 0:_("edge",C,{min:x,max:S})),I=E[C.source]&&E[C.target],R=M&&I,k=T[C.id];k&&!R?(T[C.id]=!1,u.removeItem(C.id)):!k&&R&&(T[C.id]=!0,u.addItem("edge",C))}))}else g.includes("node")&&u.getNodes().forEach(function(C){var A=C.getModel();if(!(_!=null&&_("node",A,{min:x,max:S}))){var M=+((y==null?void 0:y(A))||A.date);MS?u.hideItem(C):u.showItem(C)}}),(this.get("filterEdge")||g.includes("edge"))&&u.getEdges().forEach(function(C){var A=C.getModel();if(!(_!=null&&_("edge",A,{min:o[h].date,max:o[c].date}))){var M=+((y==null?void 0:y(A))||A.date);if(Mo[c].date)u.hideItem(C);else{var I=C.getSource().isVisible(),R=C.getTarget().isVisible();I&&R&&u.showItem(C)}}})}},e.prototype.initEvent=function(){var t=this.get("graph");t.on("afterchangedata",this.changeData),t.on("afterrender",this.afterrenderListener),t.on(Oy,this.valueChangeListener)},e.prototype.destroy=function(){var t=this.get("graph");t.off("afterchangedata",this.changeData),t.off("afterrender",this.afterrenderListener),t.off(Oy,this.valueChangeListener);var r=this.get("timebar");r&&r.destory&&r.destory(),n.prototype.destroy.call(this);var i=this.get("timeBarContainer");if(i){var a=this.get("container");a||(a=this.get("graph").get("container")),rr(a)&&(a=document.getElementById(a)),a===i&&(a=a.parentElement),a.removeChild(i)}},e}(zd);const jpr=Hpr;var Xpr=globalThis&&globalThis.__extends||function(){var n=function(t,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])},n(t,r)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Ypr=gc.applyMatrix;function qpr(n,e){var t,r;if(n.naturalWidth)t=n.naturalWidth,r=n.naturalHeight;else{var i=new Image;i.src=n.src,i.onload=function(){e&&e(i.width,i.height)}}return[t,r]}var Zpr=function(n){Xpr(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",width:200,delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0}},e.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"}},e.prototype.disableRefresh=function(){this.set("refresh",!1)},e.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas()},e.prototype.disableOneRefresh=function(){this.set("viewportChange",!0)},e.prototype.initViewport=function(){var t=this,r=this._cfgs,i=r.graph;if(!this.destroyed){var a=this.get("container");rr(a)&&(a=document.getElementById(a));var o=zs("
    y||d>_||(p=i.getZoom(),v=t.get("ratio"),u=!0,s=g.clientX,l=g.clientY)}},!1),a.addEventListener("mousemove",function(g){if(!(!u||an(g.clientX)||an(g.clientY))){var m=t.get("width"),y=t.get("height"),_=o.style;h=parseInt(_.left,10),c=parseInt(_.top,10),f=parseInt(_.width,10),d=parseInt(_.height,10);var x=s-g.clientX,S=l-g.clientY;h-x<0?x=h:h-x+f>=m&&(x=0),c-S<0?S=c:c-S+d>=y&&(S=0),h-=x,c-=S,Di(o,{left:"".concat(h,"px"),top:"".concat(c,"px")}),i.translate(x*p/v,S*p/v),s=g.clientX,l=g.clientY}},!1),a.addEventListener("mouseleave",function(){u=!1,r.refresh=!0},!1),a.addEventListener("mouseup",function(){u=!1,r.refresh=!0},!1),this.set("viewport",o),a.appendChild(o)}},e.prototype.updateViewport=function(){if(!this.destroyed){var t=this.get("ratio"),r=this.get("width"),i=this.get("height"),a=this.get("graph"),o=a.get("width"),s=a.get("height"),l=o/s,u=a.getGroup(),h=u.getCanvasBBox(),c=[(h.minX+h.maxX)/2,(h.minY+h.maxY)/2],f=[h.maxX-h.minX,h.maxY-h.minY],d={centerX:c[0],centerY:c[1],width:0,height:0,minX:0,minY:0};h[0]/h[1]>l?(d.width=f[0],d.height=d.width/l):(d.height=f[1],d.width=d.height*l),d.minX=c[0]-d.width/2,d.minY=c[1]-d.height/2;var v=u.getMatrix();v||(v=[1,0,0,0,1,0,0,0,1]);var p=Foe([1,0,0,0,1,0,0,0,1],v),g=Ypr({x:d.minX,y:d.minY},p),m=a.getCanvasByPoint(g.x,g.y),y=this.get("viewport");y||this.initViewport();var _=o/d.width,x=_*r,S=_*i,w=r*-m.x/d.width,b=i*-m.y/d.height,E=w+x,T=b+S;w<0&&(x+=w,w=0),E>r&&(x=x-(E-r)),b<0&&(S+=b,b=0),T>i&&(S=S-(T-i)),this.set("ratio",t);var C="".concat(w,"px"),A="".concat(b,"px");Di(y,{left:C,top:A,width:"".concat(x,"px"),height:"".concat(S,"px")})}},e.prototype.init=function(){this.initContainer()},e.prototype.initContainer=function(){var t=this,r=t.get("graph"),i=r.get("width"),a=r.get("height"),o=a/i,s=t.get("className"),l=t.get("container"),u=t.get("width"),h=t.get("height");!u&&!h&&(u=200),u?(h=o*u,t.set("height",h)):(u=1/o*h,t.set("width",u));var c=zs("
    "));rr(l)&&(l=document.getElementById(l)),l?l.appendChild(c):r.get("container").appendChild(c),t.set("container",c);var f=zs('
    ');c.appendChild(f);var d=zs('');f.appendChild(d),t.set("containerDOM",f),t.set("containerSpan",d);var v=zs(''));t.set("imgDOM",v),t.updateImgSize(),d.appendChild(v),t.updateCanvas()},e.prototype.updateImgSize=function(){var t=this,r=t.get("imgDOM"),i=t.get("width"),a=t.get("height");r.onload=function(){var o=qpr(r);o[0]>o[1]?r.width=i:r.height=a}},e.prototype.updateCanvas=function(){var t=this.get("refresh");if(!!t){var r=this.get("graph");if(!r.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var i=this.get("width"),a=r.get("canvas").getCanvasBBox(),o=a.width,s=i/o;this.set("ratio",s),this.updateViewport()}}},e.prototype.getViewport=function(){return this.get("viewport")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateGraphImg=function(t){var r=this,i=r.get("imgDOM");i.remove(),r.set("graphImg",t);var a=zs(''));r.set("imgDOM",a),a.src=t,r.updateImgSize();var o=r.get("containerSpan");o.appendChild(a),r.updateCanvas()},e.prototype.destroy=function(){var t=this.get("container");t.parentNode.removeChild(t)},e}(zd);const Kpr=Zpr;var Jpr=globalThis&&globalThis.__extends||function(){var n=function(t,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])},n(t,r)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),cte=globalThis&&globalThis.__assign||function(){return cte=Object.assign||function(n){for(var e,t=1,r=arguments.length;t(l||i.get("height"))&&a>1||h<(u||i.get("height")*.05)&&a<1)&&(a=1),h*=a,r.set("r",h),r.filter(t)}},e.prototype.filter=function(t){var r=this,i=r.get("graph"),a=i.getNodes(),o={},s=r.get("r"),l=r.get("type"),u={x:t.x,y:t.y};r.updateDelegate(u,s);var h=r.get("shouldShow"),c=r.get("vShapes");c&&c.forEach(function(m){m.remove(),m.destroy()}),c=[],a.forEach(function(m){var y=m.getModel(),_=y.x,x=y.y;Qpr({x:_,y:x},u)
    `);s.appendChild(l),this.set("container",l);var u=this.render();Di(l,this.getContainerPos(u)),this.bindEvents()},e.prototype.getContainerPos=function(t){t===void 0&&(t=[0,0]);var r=this,i=r.get("graph"),a=this.get("offsetX"),o=this.get("offsetY"),s=this.get("margin"),l=this.get("position").split("-"),u={top:0,right:1,bottom:2,left:3},h=0,c=0,f={left:(i.getWidth()-t[0])/2+h,top:(i.getHeight()-t[1])/2+c};return l.forEach(function(d){var v=s[u[d]],p=d;switch(d){case"top":v+=c;break;case"left":v+=h;break;case"bottom":v=i.getHeight()-t[1]-v+c,p="top";break;default:v=i.getWidth()-t[0]-v+h,p="left";break}f[p]=v}),f.top+=o+i.getContainer().offsetTop,f.left+=a+i.getContainer().offsetLeft,Object.keys(f).forEach(function(d){f[d]="".concat(f[d],"px")}),f},e.prototype.bindEvents=function(){var t=this,r=t.get("filter");if(!(!r||!r.enable)){var i=r.trigger||"click";lgr.includes(i)||(console.warn("Trigger for legend filterling must be 'click' or 'mouseenter', 'click' will take effect by default."),i="click");var a=t.get("legendCanvas");i==="mouseenter"?(a.on("node-container:mouseenter",function(o){return t.filterData(o)}),a.on("node-container:mouseleave",function(o){t.clearFilter(),t.clearActiveLegend()})):(a.on("node-container:click",function(o){return t.filterData(o)}),a.on("click",function(o){o.target&&o.target.isCanvas&&o.target.isCanvas()&&(t.clearFilter(),t.clearActiveLegend())}))}},e.prototype.changeData=function(t){this.set("data",t);var r=this.render();Di(this.get("container"),this.getContainerPos(r))},e.prototype.activateLegend=function(t){var r=this.get("filter"),i=r==null?void 0:r.multiple;i||this.clearActiveLegend();var a=t.get("parent");a.get("active")?(a.set("active",!1),this.findLegendItemsByState("active").length&&a.set("inactive",!0)):(a.set("inactive",!1),a.set("active",!0)),this.findLegendItemsByState("active").length?this.findLegendItemsByState("active","all",!1).forEach(function(c){c.set("inactive",!0)}):this.clearActiveLegend();var o=(r==null?void 0:r.legendStateStyles)||{},s=(o==null?void 0:o.inactive)||{opacity:.5,"text-shape":{opacity:.5}},l=s["text-shape"]||{};this.findLegendItemsByState("inactive").forEach(function(c){var f=c.get("children"),d=f[0],v=f[1];d.attr(ll(ll({},d.get("oriAttrs")),s)),v.attr(ll(ll({},v.get("oriAttrs")),l))});var u=(o==null?void 0:o.active)||{stroke:"#000",lineWidth:2,"text-shape":{fontWeight:"bold"}},h=u["text-shape"]||{};this.findLegendItemsByState("active").forEach(function(c){var f=c.get("children"),d=f[0],v=f[1];d.attr(ll(ll({},d.get("oriAttrs")),u)),v.attr(ll(ll({},v.get("oriAttrs")),h))})},e.prototype.findLegendItemsByState=function(t,r,i){r===void 0&&(r="all"),i===void 0&&(i=!0);var a=this.get("legendCanvas").find(function(l){return l.get("name")==="root"}),o=a.find(function(l){return l.get("name")==="node-group"}),s=a.find(function(l){return l.get("name")==="edge-group"});return r==="node"?o.get("children").filter(function(l){return!!l.get(t)===i}):r==="edge"?s.get("children").filter(function(l){return!!l.get(t)===i}):o.get("children").filter(function(l){return!!l.get(t)===i}).concat(s.get("children").filter(function(l){return!!l.get(t)===i}))},e.prototype.clearActiveLegend=function(){var t=this.get("legendCanvas"),r=t.find(function(a){return a.get("name")==="root"}),i=[r.find(function(a){return a.get("name")==="node-group"}),r.find(function(a){return a.get("name")==="edge-group"})];i.forEach(function(a){a.get("children").forEach(function(o){o.set("active",!1),o.set("inactive",!1);var s=o.get("children"),l=s[0],u=s[1];l.attr(l.get("oriAttrs")),u.attr(u.get("oriAttrs"))})})},e.prototype.filterData=function(t){var r=this.get("filter"),i=r==null?void 0:r.filterFunctions;if(!(!r||!i)){var a=this.get("legendCanvas"),o=this.get("graph"),s=r.graphActiveState||"active",l=r.graphInactiveState||"inactive",u=r.multiple;this.clearFilter(),u||this.clearActiveLegend(),this.activateLegend(t.target);var h=a.find(function(m){return m.get("name")==="root"}),c=h.find(function(m){return m.get("name")==="node-group"}),f=h.find(function(m){return m.get("name")==="edge-group"}),d=c.get("children").filter(function(m){return m.get("active")}),v=f.get("children").filter(function(m){return m.get("active")}),p=0,g=["getNodes","getEdges"];g.forEach(function(m){o[m]().forEach(function(y){var _=!1,x=m==="getNodes"?d:v;x.forEach(function(S){var w=i[S.get("id")];_=_||w(y.getModel())}),_?(o.setItemState(y,l,!1),o.setItemState(y,s,!0),p++):(o.setItemState(y,s,!1),o.setItemState(y,l,!0))})}),p||g.forEach(function(m){o[m]().forEach(function(y){o.clearItemStates(y,[l])})})}},e.prototype.clearFilter=function(){var t=this.get("graph"),r=this.get("filter");if(!!r){var i=r.graphActiveState||"active",a=r.graphInactiveState||"inactive";t.getNodes().forEach(function(o){t.clearItemStates(o,[i,a])}),t.getEdges().forEach(function(o){t.clearItemStates(o,[i,a])})}},e.prototype.render=function(){var t=this;this.processData();var r=this.get("legendCanvas");r?r.clear():r=new M1({container:this.get("container"),width:200,height:200});var i=r.addGroup({name:"root"}),a=i.addGroup({name:"node-group"}),o=i.addGroup({name:"edge-group"});this.set("legendCanvas",r);var s=this.get("itemsData"),l=["nodes","edges"],u=[a,o];l.forEach(function(D,G){s[D].forEach(function(V){var z,j=u[G].addGroup({id:V.id,name:"node-container"}),Z,Y=V.type,le=t.getShapeSize(V),H=le.width,Q=le.height,ie=le.r,oe=t.getStyle(D.substr(0,4),V);switch(V.type){case"circle":Z={r:ie,x:0,y:0};break;case"rect":Z={width:H,height:Q,x:-H/2,y:-Q/2};break;case"ellipse":Z={rx:H,ry:Q,x:0,y:0},Y="ellipse";break;case"line":Z={x1:-H/2,y1:0,x2:H/2,y2:0},Y="line";break;case"quadratic":Z={path:[["M",-H/2,0],["Q",0,H/2,H/2,0]]},Y="path";break;case"cubic":Z={path:[["M",-H/2,0],["C",-H/6,H/2,H/6,-H/2,H/2,0]]},Y="path";break;case"diamond":Z={path:[["M",0,-Q],["L",H,0],["L",0,Q],["L",-H,0],["Z"]]},Y="path";break;case"triangle":Z={path:[["M",-H,Q],["L",0,-Q],["L",H,Q],["Z"]]},Y="path";break;case"star":Z={path:gc.getStarPath(ie*3,ie*1.2)},Y="path";break;default:Z={r:ie,x:0,y:0};break}var se=j.addShape(Y,{attrs:ll(ll({},Z),oe),name:"".concat(V.type,"-node-keyShape"),oriAttrs:ll({opacity:1},oe)});if(V.label){var me=se.getBBox(),Ce=((z=V.labelCfg)===null||z===void 0?void 0:z.style)||{},Le=ll({textAlign:"begin",fontSize:12,textBaseline:"middle",fill:"#000",opacity:1,fontWeight:"normal"},Ce);j.addShape("text",{attrs:ll({x:me.maxX+4,y:0,text:V.label},Le),className:"legend-label",name:"".concat(V.type,"-node-text"),oriAttrs:Le})}})});var h=this.get("padding"),c,f=i.find(function(D){return D.get("name")==="title-container"}),d={height:0,maxY:0,width:0};if(this.get("title")){f||(f=i.addGroup({name:"title-container"}));var v={fontSize:20,fontFamily:"Arial",fontWeight:300,textBaseline:"top",textAlign:"center",fill:"#000",x:0,y:h[0]},p=this.get("titleConfig")||{},g=Object.assign(v,p.style||{});c=f.addShape("text",{attrs:ll({text:this.get("title")},g)}),d=f.getCanvasBBox(),f.setMatrix([1,0,0,0,1,0,p.offsetX,p.offsetY,1])}this.layoutItems();var m=i.getCanvasBBox(),y=a.getCanvasBBox(),_=y.minX<0?Math.abs(y.minX)+h[3]:h[3],x=d.maxYc.max&&(c.max=s[0]),_.setMatrix([1,0,0,0,1,0,C,A,1])});var f=c.max-c.min,d={min:0,max:-1/0},v=u.getCanvasBBox();s[0]=0,s[1]=a==="vertical"?v.maxX+r:v.maxY+i,h.get("children").forEach(function(_,x){x===0&&(d.min=s[0]);var S=_.get("children")[0],w=_.getCanvasBBox(),b=S.getBBox(),E=b.width,T=b.height,C=0,A=0;a==="vertical"?(C=s[1],A=s[0],s[0]=A+w.height+i,_.setMatrix([1,0,0,0,1,0,0,A+T/2,1])):(C=s[0],A=s[1],s[0]=C+w.width+r,_.setMatrix([1,0,0,0,1,0,C+E/2,0,1])),s[0]>d.max&&(d.max=s[0])});var p=d.max-d.min;if(o&&o!==""&&o!=="left"){var g=f-p,m=o==="center"?Math.abs(g)/2:Math.abs(g),y=g<0?u:h;y.get("children").forEach(function(_){var x=_.getMatrix()||[1,0,0,0,1,0,0,0,1];a==="vertical"?x[7]+=m:x[6]+=m,_.setMatrix(x)})}},e.prototype.processData=function(){var t=this.get("data"),r={nodes:[],edges:[]};t.nodes&&(t.nodes.sort(function(i,a){return i.order-a.order}),t.nodes.forEach(function(i){var a,o,s,l,u,h=i.size||[((a=i.style)===null||a===void 0?void 0:a.width)||((o=i.style)===null||o===void 0?void 0:o.r)||8,((s=i.style)===null||s===void 0?void 0:s.height)||((l=i.style)===null||l===void 0?void 0:l.r)||8],c=((u=i.labelCfg)===null||u===void 0?void 0:u.style)||{};r.nodes.push({id:i.id||vm(),type:i.type||"circle",style:ll({},i.style),order:i.order,label:i.label,itemType:"node",size:h,labelCfg:{position:"right",style:ll({fontFamily:"Arial"},c)}})})),t.edges&&(t.edges.sort(function(i,a){return i.order-a.order}),t.edges.forEach(function(i){var a,o,s=i.type||"line";i.type==="cubic-horizontal"&&(s="cubic");var l=((a=i.labelCfg)===null||a===void 0?void 0:a.style)||{},u=i.size||[((o=i.style)===null||o===void 0?void 0:o.width)||8,1];r.edges.push({id:i.id||vm(),type:s,size:u,style:ll({lineWidth:vn(u)?u[1]:1},i.style),order:i.order,label:i.label,itemType:"edge",labelCfg:{position:"right",style:ll({fontFamily:"Arial"},l)}})})),this.set("itemsData",r)},e.prototype.getContainer=function(){return this.get("container")},e.prototype.formatArray=function(t){var r=this.get(t);if(on(r))this.set(t,[r,r,r,r]);else if(vn(r))switch(r.length){case 0:this.set(t,[0,0,0,0]);break;case 1:this.set(t,[r[0],r[0],r[0],r[0]]);break;case 2:this.set(t,[r[0],r[1],r[0],r[1]]);break;case 3:this.set(t,[r[0],r[1],r[2],r[1]]);break}return this.get(t)},e.prototype.getShapeSize=function(t){var r,i,a;return t.size&&(vn(t.size)?(r=t.size[0],i=t.size[1]||t.size[0],a=t.size[0]/2):on(t.size)&&(r=t.size,i=t.size,a=t.size/2)),t.style&&(t.style.width&&(r=t.style.width),t.style.height&&(i=t.style.height),t.style.r&&(a=t.style.r)),a||(a=5),r||(r=a),i||(i=a),{width:r,height:i,r:a}},e.prototype.getStyle=function(t,r){var i=t==="node"?{fill:"#ccc",lineWidth:0}:{stroke:"#000",lineWidth:1};return ll(ll({},i),r.style||{})},e.prototype.destroy=function(){var t=this.get("legendCanvas");t==null||t.destroy();var r=this.get("graph"),i=r.get("container"),a=this.get("container");i.removeChild(a)},e}(zd);const hgr=ugr;var cgr=globalThis&&globalThis.__extends||function(){var n=function(t,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])},n(t,r)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ip=globalThis&&globalThis.__assign||function(){return ip=Object.assign||function(n){for(var e,t=1,r=arguments.length;t+

    ":"

    -

    ",f=r?"":"

    ".concat(l,"

    "),d="

    x

    ",v=r?"".concat(h,"px"):"".concat(h,"px ").concat(h,"px 0 0");return'
    +
    +

    `).concat(o,`

    + `).concat(c,` + `).concat(d,` +
    + `).concat(f,` +
    `)}},e.prototype.init=function(){var t=this;if(!t.destroyed){var r=t.get("graph"),i=r.getContainer(),a=t.get("container"),o=this.get("containerCfg");o?(a=this.createContainer(),i.appendChild(a)):a=i,this.set("container",a);var s=i.getBoundingClientRect(),l=new M1({container:i,width:s.right-s.left,height:s.bottom-s.top});Di(l.get("el"),{position:"absolute",top:0,left:0,pointerEvents:"none"}),window.addEventListener("resize",U3(function(){return t.resizeCanvas(t)},100));var u=l.addGroup({id:"annotation-link-group"});t.set("linkGroup",u),t.set("canvas",l),t.get("getTitle")||t.set("getTitle",function(c){var f,d=((f=c==null?void 0:c.getModel)===null||f===void 0?void 0:f.call(c))||{},v=d.label,p=d.id;return v||p||"-"}),t.get("getContent")||t.set("getContent",function(c){var f,d;if(!c)return"-";var v=((f=c.getModel)===null||f===void 0?void 0:f.call(c))||{},p=v.label,g=v.id,m=(d=c.getType)===null||d===void 0?void 0:d.call(c),y=m?"".concat(m,": "):"";return"".concat(y).concat(p||g||"")});var h=t.get("defaultData");h&&this.readData(h)}},e.prototype.createContainer=function(){var t=this;if(!this.destroyed){var r=this.get("containerCfg"),i=this.get("graph"),a=i.getContainer(),o=a.getBoundingClientRect(),s=o.left,l=o.right,u=o.top,h=o.bottom,c=h-u,f=l-s,d=r.position,v=d===void 0?"top":d,p=r.offsetX,g=p===void 0?0:p,m=r.offsetY,y=m===void 0?0:m,_=y2e(r,["position","offsetX","offsetY"]),x=r.height,S=x===void 0?"fit-content":x,w=r.width,b=w===void 0?i.getWidth():w;S==="100%"&&(S=c),b==="100%"&&(b=f);var E="unset",T="unset",C={};switch(v){case"right":E="".concat(c,"px"),C={top:0,right:0},C.right+=s+g,C.top+=u+y;break;case"bottom":T="".concat(f,"px"),C={bottom:0,left:0},C.left+=s+g,C.bottom+=u+y;break;case"top":T="".concat(f,"px");case"left":E="".concat(c,"px");default:C={top:0,left:0},C.left+=s+g,C.top+=u+y;break}Object.keys(C).forEach(function(M){C[M]="".concat(C[M],"px")});var A=zs("
    "));return Di(A,ip(ip({position:"absolute",display:v==="top"||v==="bottom"?"inline-flex":"unset",width:on(b)?"".concat(b,"px"):b,height:on(S)?"".concat(S,"px"):S,maxHeight:E,maxWidth:T,overflow:"scroll"},C),_)),a.appendChild(A),A.addEventListener("scroll",function(M){t.updateLinks()}),A}},e.prototype.resizeCanvas=function(t){clearTimeout(t.resizeTimer),t.resizeTimer=setTimeout(function(){if(!(!t||t.destroyed)){var r=t.get("container").getBoundingClientRect(),i=r.right-r.left,a=r.bottom-r.top;t.get("canvas").changeSize(i,a),t.updateOutsideCards(t)}},250)},e.prototype.updateOutsideCards=function(t){var r=t||this,i=r.get("cardInfoMap")||{},a=r.get("graph"),o=a.getPointByCanvas(0,0),s=a.getPointByCanvas(a.getWidth(),a.getHeight()),l=a.getClientByPoint(o.x,o.y),u=l.x,h=l.y,c=a.getClientByPoint(s.x,s.y),f=c.x,d=c.y;Object.values(i).forEach(function(v){var p=v.card;if(!!p){var g=p.style,m=mb(g.left),y=mb(g.top),_=p.getBoundingClientRect(),x=_.width,S=_.height,w=m,b=y;m+x>f-u&&(w=f-u-x),m<0&&(w=0),y+S>d-h&&(b=d-h-S),y<0&&(b=0),Di(p,{left:"".concat(w,"px"),top:"".concat(b,"px")})}}),r.updateLinks()},e.prototype.showAnnotation=function(t){if(!this.destroyed){var r=t.item;this.toggleAnnotation(r)}},e.prototype.hideCards=function(){var t=this;if(!t.destroyed){var r=t.get("cardInfoMap")||{};Object.keys(r).forEach(function(i){t.hideCard(i)})}},e.prototype.toggleAnnotation=function(t,r){var i,a;r===void 0&&(r={});var o=this;if(!o.destroyed){var s=o.get("cardInfoMap")||{},l=o.get("graph"),u=o.get("container"),h=o.get("containerCfg"),c=Object.assign({},o.get("cardCfg")||{},r),f=c.minHeight,d=c.minWidth,v=c.width,p=c.height,g=c.collapsed,m=g===void 0?!1:g,y=c.x,_=c.y,x=c.title,S=c.content,w=c.maxTitleLength,b=c.defaultBegin,E=y2e(c,["minHeight","minWidth","width","height","collapsed","x","y","title","content","maxTitleLength","defaultBegin"]),T=o.get("linkGroup"),C=this.get("rows")||[[]],A=(i=t.isCanvas)===null||i===void 0?void 0:i.call(t),M=A?m2e:t.getID(),I=s[M]||{},R=I.card,k=I.link,D=I.x,G=I.y,V=I.title,z=I.content,j=this.get("getTitle"),Z=this.get("getContent"),Y=this.get("getContentPlaceholder")||function(){return""},le=this.get("getTitlePlaceHolder")||function(){return""},H=Y(t),Q=le(t),ie=zs(this.getDOMContent(ip({itemId:M,collapsed:m,title:((a=V||x||(j==null?void 0:j(t)))===null||a===void 0?void 0:a.substr(0,w))||Q,content:z||S||(Z==null?void 0:Z(t))||H},E))),oe=on(f)?"".concat(f,"px"):f;Di(ie,{minHeight:m?"unset":oe,minWidth:on(d)?"".concat(d,"px"):d,height:p,width:v});var se=!!R;se?(k==null||k.remove(!0),u.replaceChild(ie,R)):u.appendChild(ie);var me;if(!h){if(me=u.getBoundingClientRect()||{},y!==void 0&&_!==void 0)D=y,G=_;else if(!se&&!A){var Ce=me.top,Le=b||{},re=Le.left,yt=Le.right,je=yt===void 0?16:yt,st=Le.top,Nt=st===void 0?8:st,Zt=Le.bottom,qe=je,ur=Nt;isNaN(re)||(qe=u.scrollWidth-re),isNaN(Zt)||(ur=u.scrollHeight-Zt);var Dt=on(d)?d:100;D=u.scrollWidth-ie.scrollWidth-(C.length-1)*Dt-qe;var ft=C[C.length-1],Oe=(ft[ft.length-1]||{}).bbox;G=(Oe==null?void 0:Oe.bottom)-Ce||ur}Di(ie,{position:"absolute",left:"".concat(D,"px"),top:"".concat(G,"px"),cusor:h?"unset":"move"})}this.bindListener(ie,M);var J=ie.getBoundingClientRect();if(!A){var We=NY(t,J,l,this.get("canvas")),Tt=this.get("linkStyle");k=T.addShape("path",{attrs:ip({lineWidth:1,lineDash:[5,5],stroke:"#ccc",path:We},Tt)})}if(s[M]=ip(ip({},s[M]||{}),{id:M,collapsed:m,card:ie,link:k,x:D,y:G,cardBBox:J,content:z||S,title:V||x,contentPlaceholder:H,titlePlaceholder:Q,isCanvas:A}),o.set("cardInfoMap",s),h)this.updateCardPositionsInConatainer(),this.updateLinks();else{var Qe=!isNaN(y)&&!isNaN(_);if(!se&&!A&&!Qe){var zt=me.bottom,mt=zt===void 0?0:zt,Ce=me.top;C[C.length-1].push({id:M,bbox:J}),J.top>mt-Ce-J.height-16&&C.push([]),this.set("rows",C)}}this.updateCardSize(M);var wt=this.get("onAnnotationChange");wt==null||wt(s[M],se?"update":"create")}},e.prototype.updateCardPositionsInConatainer=function(){if(!this.destroyed){var t=this.get("cardInfoMap");if(!!t){var r=this.get("container"),i=this.get("containerCfg").position,a=r.getBoundingClientRect().width,o=getComputedStyle(r),s=mb(o.paddingLeft)+mb(o.paddingRight);a-=s,Object.values(t).forEach(function(l){var u=l.card,h=u.getBoundingClientRect().width;switch(i){case"right":Di(u,{marginLeft:a?"".concat(a-h,"px"):"0px"});break;case"top":case"bottom":Di(u,{marginLeft:"8px"})}})}}},e.prototype.handleExpandCollapseCard=function(t){if(!this.destroyed){var r=this.get("graph"),i=this.get("cardInfoMap");if(!!i){var a=i[t].collapsed,o=r.findById(t);if(!!o){var s=this.get("cardCfg").collapseType;s==="hide"&&!a?this.hideCard(t):this.toggleAnnotation(o,{collapsed:!a}),i[t]=ip(ip({},i[t]),{collapsed:!a})}}}},e.prototype.hideCard=function(t){if(!this.destroyed){var r=this.get("cardInfoMap");if(!(!r||!r[t])){var i=r[t],a=i.card,o=i.link;Di(a,{display:"none"}),o==null||o.hide();var s=this.get("onAnnotationChange");s(r[t],"hide")}}},e.prototype.removeCard=function(t){if(!this.destroyed){var r=this.get("cardInfoMap");if(!!r){var i=r[t],a=i.card,o=i.link,s=this.get("container");s.removeChild(a),o==null||o.remove(!0),delete r[t];var l=this.get("onAnnotationChange");l(i,"remove")}}},e.prototype.bindListener=function(t,r){var i=this;if(!this.destroyed){t.addEventListener("mousemove",function(l){var u;if(l.target.className==="g6-annotation-collapse"?u="collapse":l.target.className==="g6-annotation-expand"?u="expand":l.target.className==="g6-annotation-close"&&(u="close"),u){var h=i.get("cardCfg").onMouseEnterIcon,c=h===void 0?function(){}:h;c(l,r,u)}}),t.addEventListener("mouseout",function(l){var u;if(l.target.className==="g6-annotation-collapse"?u="collapse":l.target.className==="g6-annotation-expand"?u="expand":l.target.className==="g6-annotation-close"&&(u="close"),u){var h=i.get("cardCfg").onMouseLeaveIcon,c=h===void 0?function(){}:h;c(l,r,u)}}),t.addEventListener("mouseenter",function(l){var u=i.get("cardInfoMap");if(!!u){var h=i.get("graph"),c=h.findById(r);if(c){var f=i.get("itemHighlightState");h.setItemState(c,f,!0)}var d=u[r].link;if(d){var v=i.get("linkHighlightStyle")||{};d.attr(v)}}}),t.addEventListener("mouseleave",function(l){var u=i.get("cardInfoMap");if(!!u){var h=i.get("graph"),c=h.findById(r);if(c){var f=i.get("itemHighlightState");h.setItemState(c,f,!1)}var d=u[r].link;if(d){var v=i.get("linkHighlightStyle")||{};Object.keys(v).forEach(function(g){d.attr(g,void 0),d.attr(g,void 0)});var p=i.get("linkStyle");d.attr(p)}}}),t.addEventListener("click",function(l){var u=(i.get("cardCfg")||{}).onClickIcon;if(l.target.className==="g6-annotation-collapse"||l.target.className==="g6-annotation-expand"){var h=i.get("cardCfg").collapseType;h==="hide"?i.hideCard(r):i.handleExpandCollapseCard(r),u==null||u(l,r,l.target.className==="g6-annotation-collapse"?"collapse":"expand")}else if(l.target.className==="g6-annotation-close"){var c=i.get("cardCfg").closeType;c==="remove"?i.removeCard(r):i.hideCard(r),u==null||u(l,r,"close")}});var a=this.get("editable");a&&t.addEventListener("dblclick",function(l){var u=i.get("cardInfoMap"),h=(i.get("cardCfg")||{}).maxTitleLength,c=h===void 0?20:h;if(!!u){var f=l.target,d=f.className;if(!(d!=="g6-annotation-title"&&d!=="g6-annotation-content")){var v=d==="g6-annotation-title"?f.getBoundingClientRect():f.parentNode.getBoundingClientRect(),p=v.width,g=v.height,m=getComputedStyle(f),y=d==="g6-annotation-title"?"input":"textarea",_=zs("<".concat(y,' class="').concat(d,'-input" type="textarea" style="width:').concat(p,"px; height: ").concat(g,'px; min-width: 16px;"/>')),x=zs('
    '));x.appendChild(_),f.parentNode.replaceChild(x,f);var S=u[r],w=S.contentPlaceholder,b=S.titlePlaceholder,E=S.content,T=S.title,C=E;d==="g6-annotation-title"?(_.name="title",_.maxLength=c,C=T):_.name="content",C?(_.innerHTML=f.innerHTML,_.value=f.innerHTML):_.placeholder=d==="g6-annotation-title"?b:w,_.focus(),_.addEventListener("blur",function(A){_.value&&(f.innerHTML=_.value,S[_.name||"title"]=_.value),x.parentNode.replaceChild(f,x),i.updateCardSize(r);var M=i.get("onAnnotationChange");M==null||M(S,"update")})}}});var o=["g6-annotation-title","g6-annotation-content","g6-annotation-title-input","g6-annotation-content-input"];t.draggable=!0,t.addEventListener("dragstart",function(l){var u=l.target.className;if(!o.includes(u)){var h=t.style;i.set("dragging",{card:t,x:l.clientX,y:l.clientY,left:mb(h.left),top:mb(h.top)})}}),t.addEventListener("drag",function(l){l.preventDefault();var u=i.get("cardInfoMap");if(!!u){var h=l.clientX,c=l.clientY,f=i.get("dragging");if(!(isNaN(h)||isNaN(c)||!f)){var d=f.x,v=f.y,p=f.left,g=f.top,m=f.card,y=h-d,_=c-v;p+=y,g+=_;var x=i.get("graph"),S=x.getPointByCanvas(0,0),w=x.getPointByCanvas(x.getWidth(),x.getHeight()),b=x.getClientByPoint(S.x,S.y),E=b.x,T=b.y,C=x.getClientByPoint(w.x,w.y),A=C.x,M=C.y,I=m.getBoundingClientRect(),R=I.right-I.left,k=I.bottom-I.top;(p>A-E-R&&y>0||p<0&&y<0)&&(p-=y),(g>M-T-k&&_>0||g<0&&_<0)&&(g-=_),Di(m,{left:"".concat(p,"px"),top:"".concat(g,"px"),visibility:"hidden"}),d=h,v=c;var D=(u[r]||{}).link;if(D){var G=x.findById(r);D.attr("path",NY(G,I,x,i.get("canvas")))}i.set("dragging",{x:d,y:v,left:p,top:g,card:m})}}});var s=function(u){var h=i.get("cardInfoMap");if(!!h){var c=i.get("dragging");if(c){var f=c.left,d=c.top,v=c.card;h[r].x=f,h[r].y=d,Di(v,{visibility:"visible"}),i.set("dragging",!1);var p=i.get("rows");p==null||p.forEach(function(m){for(var y=m.length-1;y>=0;y--)m[y].id===r&&m.splice(y,1)});var g=i.get("onAnnotationChange");g==null||g(h[r],"update")}}};t.addEventListener("dragend",s)}},e.prototype.updateCardSize=function(t){var r=this.get("cardInfoMap");if(!!r){var i=r[t].card,a=i.getBoundingClientRect().width,o=i.getElementsByClassName("g6-annotation-title")[0];if(o){var s=getComputedStyle(o),l=mb(s.marginLeft),u=o.getBoundingClientRect().width;Di(o,{marginRight:"".concat(a-l-24-16-u,"px")})}}},e.prototype.updateLink=function(t){var r=t.item;if(!!r){var i=this.get("cardInfoMap");if(!!i){var a=this.get("canvas"),o=this.get("graph"),s=r.getID(),l=i[s]||{},u=l.link,h=l.card;if(u){var c=NY(r,h.getBoundingClientRect(),o,a);u.attr("path",c)}}}},e.prototype.updateLinks=function(){var t=this;if(!this.destroyed){var r=this.get("cardInfoMap");if(!!r){var i=this.get("graph");Object.values(r).forEach(function(a){var o=a.id,s=i.findById(o);t.updateLink({item:s})})}}},e.prototype.onGraphDataChange=function(){var t=this,r=this.get("cardInfoMap");if(!!r){var i=this.get("graph");Object.values(r).forEach(function(a){var o=a.id,s=a.card,l=a.isCanvas;if(!(!s||l||s.style.display==="none")){var u=i.findById(o);u&&u.isVisible()?t.toggleAnnotation(u):t.hideCard(o)}})}},e.prototype.onGraphItemVisibilityChange=function(t){var r=t.item,i=t.visible;if(!(!r||r.destroyed)){var a=this.get("cardInfoMap");if(!!a){var o=r.getID();!a[o]||i||this.hideCard(o)}}},e.prototype.saveData=function(t){t===void 0&&(t=!1);var r=this.get("cardInfoMap");if(!!r){var i=this.get("graph"),a=this.get("getTitle"),o=this.get("getContent"),s=[];return Object.values(r).forEach(function(l){var u=l.title,h=l.content,c=l.x,f=l.y,d=l.id,v=l.collapsed,p=l.card;if(!(p&&p.style.display==="none"&&!t)){var g=i.findById(d)||i.get("canvas");s.push({id:d,x:c,y:f,collapsed:v,title:u||(a==null?void 0:a(g)),content:h||(o==null?void 0:o(g)),visible:p&&p.style.display!=="none"})}}),s}},e.prototype.readData=function(t){var r=this,i=this.get("graph");t.forEach(function(a){var o=a.id,s=a.x,l=a.y,u=a.title,h=a.content,c=a.collapsed,f=a.visible,d=i.findById(o);if(!d&&o===m2e&&(d=i.get("canvas")),!d){var v=r.get("cardInfoMap")||{};v[o]=a,r.set("cardInfoMap",v);return}r.toggleAnnotation(d,{x:s,y:l,title:u,content:h,collapsed:c}),f||r.hideCard(o)})},e.prototype.clear=function(){var t=this.get("cardInfoMap");if(!!t){var r=this.get("container");Object.values(t).forEach(function(i){var a=i.card,o=i.link;r.removeChild(a),o==null||o.remove(!0)}),this.set("cardInfoMap",{})}},e.prototype.destroy=function(){var t;this.clear(),(t=this.get("canvas"))===null||t===void 0||t.destroy();var r=this.get("graph");!r||r.destroyed||(this.get("containerCfg")&&r.getContainer().removeChild(this.get("container")),this.destroyed=!0)},e}(zd);const dgr=fgr;var vgr=function(e,t){var r,i,a=1/0;Object.keys(e).forEach(function(l){var u=e[l];Object.keys(t).forEach(function(h){var c=t[h],f=u.x-c.x,d=u.y-c.y,v=f*f+d*d;a>v&&(a=v,r=u,i=c)})});var o=20,s=gc.getControlPoint(r,i,.5,o);return[["M",r.x,r.y],["Q",s.x,s.y,i.x,i.y]]},NY=function(e,t,r,i){var a,o,s=e.getType();if(s==="edge")o=[e.getKeyShape().getPoint(.5)];else{var l=(a=e.getKeyShape)===null||a===void 0?void 0:a.call(e).getBBox(),u=l.minX,h=l.minY,c=l.maxX,f=l.maxY,d=e.getModel(),v=d.x,p=d.y;u+=v,h+=p,c+=v,f+=p,o={left:{x:u,y:(h+f)/2},right:{x:c,y:(h+f)/2},top:{x:(u+c)/2,y:h},bottom:{x:(u+c)/2,y:f}}}Object.keys(o).forEach(function(T){var C=o[T],A=C.x,M=C.y,I=r.getClientByPoint(A,M);o[T]=i.getPointByClient(I.x,I.y)});var g=t.top,m=g===void 0?0:g,y=t.left,_=y===void 0?0:y,x=t.right,S=x===void 0?0:x,w=t.bottom,b=w===void 0?0:w,E={left:i.getPointByClient(_,(m+b)/2),right:i.getPointByClient(S,(m+b)/2),top:i.getPointByClient((_+S)/2,m),bottom:i.getPointByClient((_+S)/2,b)};return vgr(o,E)},mb=function(e){return Number(e.replace(/\s+|px/gi,""))||0},pgr={PluginBase:zd,Menu:Fdr,Grid:Odr,Minimap:Wdr,Bundling:Ydr,ToolBar:tvr,Tooltip:ivr,Fisheye:Kdr,TimeBar:jpr,ImageMinimap:Kpr,EdgeFilterLens:tgr,SnapLine:ogr,Legend:hgr,Annotation:dgr};const Lu=pgr;G_("circle",{options:{size:Rr.defaultNode.size,style:{x:0,y:0,stroke:Rr.defaultNode.style.stroke,fill:Rr.defaultNode.style.fill,lineWidth:Rr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Rr.nodeLabel.style.fill,fontSize:Rr.nodeLabel.style.fontSize,fontFamily:Rr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Rr.defaultNode.linkPoints.size,lineWidth:Rr.defaultNode.linkPoints.lineWidth,fill:Rr.defaultNode.linkPoints.fill,stroke:Rr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:ve({},Rr.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(e,t){var r=(this.mergeStyle||this.getOptions(e)).icon,i=r===void 0?{}:r,a=this.getShapeStyle(e),o=ms({},i,e.icon),s="".concat(this.type,"-keyShape"),l=t.addShape("circle",{attrs:a,className:s,name:s,draggable:!0});t.shapeMap[s]=l;var u=o.width,h=o.height,c=o.show,f=o.text;if(c){var d="".concat(this.type,"-icon");f?t.shapeMap[d]=t.addShape("text",{attrs:ve({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},o),className:d,name:d,draggable:!0}):t.shapeMap[d]=t.addShape("image",{attrs:ve({x:-u/2,y:-h/2},o),className:d,name:d,draggable:!0})}return this.drawLinkPoints(e,t),l},drawLinkPoints:function(e,t){var r=(this.mergeStyle||this.getOptions(e)).linkPoints;if(!!r){var i=r||{},a=i.top,o=i.left,s=i.right,l=i.bottom,u=i.size,h=i.r,c=rh(i,["top","left","right","bottom","size","r"]),f=this.getSize(e),d=f[0]/2;if(o){var v="link-point-left";t.shapeMap[v]=t.addShape("circle",{attrs:ve(ve({},c),{x:-d,y:0,r:u/2||h||5}),className:v,name:v,isAnchorPoint:!0})}if(s){var p="link-point-right";t.shapeMap[p]=t.addShape("circle",{attrs:ve(ve({},c),{x:d,y:0,r:u/2||h||5}),className:p,name:p,isAnchorPoint:!0})}if(a){var g="link-point-top";t.shapeMap[g]=t.addShape("circle",{attrs:ve(ve({},c),{x:0,y:-d,r:u/2||h||5}),className:g,name:g,isAnchorPoint:!0})}if(l){var m="link-point-bottom";t.shapeMap[m]=t.addShape("circle",{attrs:ve(ve({},c),{x:0,y:d,r:u/2||h||5}),className:m,name:m,isAnchorPoint:!0})}}},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,r={stroke:e.color},i=ms({},t,r),a=this.getSize(e),o=a[0]/2,s=ve({x:0,y:0,r:o},i);return s},update:function(e,t,r){var i=t.getContainer(),a=this.getSize(e),o=ve({},e.style);e.style.stroke===void 0&&e.color&&(o.stroke=e.color),e.style.r===void 0&&!isNaN(a[0])&&(o.r=a[0]/2),this.updateShape(e,t,o,!0,r),this.updateLinkPoints(e,i)}},"single-node");G_("rect",{options:{size:[100,30],style:{radius:0,stroke:Rr.defaultNode.style.stroke,fill:Rr.defaultNode.style.fill,lineWidth:Rr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Rr.nodeLabel.style.fill,fontSize:Rr.nodeLabel.style.fontSize,fontFamily:Rr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Rr.defaultNode.linkPoints.size,lineWidth:Rr.defaultNode.linkPoints.lineWidth,fill:Rr.defaultNode.linkPoints.fill,stroke:Rr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},anchorPoints:[[0,.5],[1,.5]],stateStyles:ve({},Rr.nodeStateStyles)},shapeType:"rect",labelPosition:"center",drawShape:function(e,t){var r=this.getShapeStyle(e),i=t.addShape("rect",{attrs:r,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return t.shapeMap["".concat(this.type,"-keyShape")]=i,this.drawLinkPoints(e,t),i},drawLinkPoints:function(e,t){var r=(this.mergeStyle||this.getOptions(e)).linkPoints,i=r===void 0?{}:r,a=i.top,o=i.left,s=i.right,l=i.bottom,u=i.size,h=i.r,c=rh(i,["top","left","right","bottom","size","r"]),f=this.getSize(e),d=f[0],v=f[1];o&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:ve(ve({},c),{x:-d/2,y:0,r:u/2||h||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:ve(ve({},c),{x:d/2,y:0,r:u/2||h||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:ve(ve({},c),{x:0,y:-v/2,r:u/2||h||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),l&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:ve(ve({},c),{x:0,y:v/2,r:u/2||h||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,r={stroke:e.color},i=_n({},t,r),a=this.getSize(e),o=i.width||a[0],s=i.height||a[1],l=ve({x:-o/2,y:-s/2,width:o,height:s},i);return l},update:function(e,t,r){var i=t.getContainer(),a=this.getOptions({}).style,o=this.getSize(e),s=t.get("keyShape");e.size||(o[0]=s.attr("width")||a.width,o[1]=s.attr("height")||a.height);var l={stroke:e.color,x:-o[0]/2,y:-o[1]/2,width:o[0],height:o[1]},u=_n({},a,s.attr(),l);u=_n(u,e.style),this.updateShape(e,t,u,!1,r),this.updateLinkPoints(e,i)}},"single-node");G_("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:Rr.defaultNode.style.stroke,fill:Rr.defaultNode.style.fill,lineWidth:Rr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Rr.nodeLabel.style.fill,fontSize:Rr.nodeLabel.style.fontSize,fontFamily:Rr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Rr.defaultNode.linkPoints.size,lineWidth:Rr.defaultNode.linkPoints.lineWidth,fill:Rr.defaultNode.linkPoints.fill,stroke:Rr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:ve({},Rr.nodeStateStyles)},shapeType:"ellipse",labelPosition:"center",drawShape:function(e,t){var r=(this.mergeStyle||this.getOptions(e)).icon,i=r===void 0?{}:r,a=this.getShapeStyle(e),o=t.addShape("ellipse",{attrs:a,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0});t.shapeMap["ellipse-keyShape"]=o;var s=i.width,l=i.height,u=i.show,h=i.text;return u&&(h?t.shapeMap["".concat(this.type,"-icon")]=t.addShape("text",{attrs:ve({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):t.shapeMap["".concat(this.type,"-icon")]=t.addShape("image",{attrs:ve({x:-s/2,y:-l/2},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,t),o},drawLinkPoints:function(e,t){var r=(this.mergeStyle||this.getOptions(e)).linkPoints,i=r===void 0?{}:r,a=i.top,o=i.left,s=i.right,l=i.bottom,u=i.size,h=i.r,c=rh(i,["top","left","right","bottom","size","r"]),f=this.getSize(e),d=f[0]/2,v=f[1]/2;o&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:ve(ve({},c),{x:-d,y:0,r:u/2||h||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:ve(ve({},c),{x:d,y:0,r:u/2||h||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:ve(ve({},c),{x:0,y:-v,r:u/2||h||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),l&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:ve(ve({},c),{x:0,y:v,r:u/2||h||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,r={stroke:e.color},i=_n({},t,r),a=this.getSize(e),o=a[0]/2,s=a[1]/2,l=ve({x:0,y:0,rx:o,ry:s},i);return l},update:function(e,t,r){var i=t.getContainer(),a=this.getOptions({}).style,o=this.getSize(e),s={stroke:e.color,rx:o[0]/2,ry:o[1]/2},l=t.get("keyShape"),u=_n({},a,l.attr(),s);u=_n(u,e.style),this.updateShape(e,t,u,!0,r),this.updateLinkPoints(e,i)}},"single-node");G_("diamond",{options:{size:[80,80],style:{stroke:Rr.defaultNode.style.stroke,fill:Rr.defaultNode.style.fill,lineWidth:Rr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Rr.nodeLabel.style.fill,fontSize:Rr.nodeLabel.style.fontSize,fontFamily:Rr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Rr.defaultNode.linkPoints.size,lineWidth:Rr.defaultNode.linkPoints.lineWidth,fill:Rr.defaultNode.linkPoints.fill,stroke:Rr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:ve({},Rr.nodeStateStyles)},shapeType:"diamond",labelPosition:"center",drawShape:function(e,t){var r=(this.mergeStyle||this.getOptions(e)).icon,i=r===void 0?{}:r,a=this.getShapeStyle(e),o=t.addShape("path",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});t.shapeMap["".concat(this.type,"-keyShape")]=o;var s=i.width,l=i.height,u=i.show,h=i.text;return u&&(h?t.shapeMap["".concat(this.type,"-icon")]=t.addShape("text",{attrs:ve({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):t.shapeMap["".concat(this.type,"-icon")]=t.addShape("image",{attrs:ve({x:-s/2,y:-l/2},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,t),o},drawLinkPoints:function(e,t){var r=(this.mergeStyle||this.getOptions(e)).linkPoints,i=r===void 0?{}:r,a=i.top,o=i.left,s=i.right,l=i.bottom,u=i.size,h=i.r,c=rh(i,["top","left","right","bottom","size","r"]),f=this.getSize(e),d=f[0],v=f[1];o&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:ve(ve({},c),{x:-d/2,y:0,r:u/2||h||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:ve(ve({},c),{x:d/2,y:0,r:u/2||h||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:ve(ve({},c),{x:0,y:-v/2,r:u/2||h||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),l&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:ve(ve({},c),{x:0,y:v/2,r:u/2||h||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getPath:function(e){var t=this.getSize(e),r=t[0],i=t[1],a=[["M",0,-i/2],["L",r/2,0],["L",0,i/2],["L",-r/2,0],["Z"]];return a},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,r={stroke:e.color},i=_n({},t,r),a=this.getPath(e),o=ve({path:a},i);return o},update:function(e,t,r){var i=t.getContainer(),a=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},l=t.get("keyShape"),u=_n({},a,l.attr(),s);u=_n(u,e.style),this.updateShape(e,t,u,!0,r),this.updateLinkPoints(e,i)}},"single-node");G_("triangle",{options:{size:40,direction:"up",style:{stroke:Rr.defaultNode.style.stroke,fill:Rr.defaultNode.style.fill,lineWidth:Rr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Rr.nodeLabel.style.fill,fontSize:Rr.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Rr.defaultNode.linkPoints.size,lineWidth:Rr.defaultNode.linkPoints.lineWidth,fill:Rr.defaultNode.linkPoints.fill,stroke:Rr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20,offset:6},stateStyles:ve({},Rr.nodeStateStyles)},shapeType:"triangle",labelPosition:"bottom",drawShape:function(e,t){var r=this.mergeStyle||this.getOptions(e),i=r.icon,a=i===void 0?{}:i,o=r.direction,s=this.getShapeStyle(e),l=e.direction||o,u=t.addShape("path",{attrs:s,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});t.shapeMap["".concat(this.type,"-keyShape")]=u;var h=a.width,c=a.height,f=a.show,d=a.offset,v=a.text;if(f)if(v)t.shapeMap["".concat(this.type,"-icon")]=t.addShape("text",{attrs:ve({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0});else{var p=-h/2,g=-c/2;(l==="up"||l==="down")&&(g+=d),(l==="left"||l==="right")&&(p+=d),t.shapeMap["".concat(this.type,"-icon")]=t.addShape("image",{attrs:ve({x:p,y:g},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})}return this.drawLinkPoints(e,t),u},drawLinkPoints:function(e,t){var r=this.mergeStyle||this.getOptions(e),i=r.linkPoints,a=i===void 0?{}:i,o=r.direction,s=e.direction||o,l=a.top,u=a.left,h=a.right,c=a.bottom,f=a.size,d=a.r,v=rh(a,["top","left","right","bottom","size","r"]),p=this.getSize(e),g=p[0];if(u){var m=null,y=g*Math.sin(1/3*Math.PI),_=g*Math.sin(1/3*Math.PI);s==="up"?m=[-_,y]:s==="down"?m=[-_,-y]:s==="left"&&(m=[-_,_-y]),m&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:ve(ve({},v),{x:m[0],y:m[1],r:f/2||d||5}),className:"link-point-left",name:"link-point-left"}))}if(h){var x=null,y=g*Math.sin(1/3*Math.PI),_=g*Math.sin(1/3*Math.PI);s==="up"?x=[_,y]:s==="down"?x=[_,-y]:s==="right"&&(x=[_,_-y]),x&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:ve(ve({},v),{x:x[0],y:x[1],r:f/2||d||5}),className:"link-point-right",name:"link-point-right"}))}if(l){var S=null,y=g*Math.sin(1/3*Math.PI),_=g*Math.sin(1/3*Math.PI);s==="up"?S=[_-y,-y]:s==="left"?S=[_,-y]:s==="right"&&(S=[-_,-y]),S&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:ve(ve({},v),{x:S[0],y:S[1],r:f/2||d||5}),className:"link-point-top",name:"link-point-top"}))}if(c){var w=null,y=g*Math.sin(1/3*Math.PI),_=g*Math.sin(1/3*Math.PI);s==="down"?w=[-_+y,y]:s==="left"?w=[_,y]:s==="right"&&(w=[-_,y]),w&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:ve(ve({},v),{x:w[0],y:w[1],r:f/2||d||5}),className:"link-point-bottom",name:"link-point-bottom"}))}},getPath:function(e){var t=(this.mergeStyle||this.getOptions(e)).direction,r=e.direction||t,i=this.getSize(e),a=i[0],o=a*Math.sin(1/3*Math.PI),s=a*Math.sin(1/3*Math.PI),l=[["M",-s,o],["L",0,-o],["L",s,o],["Z"]];return r==="down"?l=[["M",-s,-o],["L",s,-o],["L",0,o],["Z"]]:r==="left"?l=[["M",-s,s-o],["L",s,-s],["L",s,s],["Z"]]:r==="right"&&(l=[["M",s,s-o],["L",-s,s],["L",-s,-s],["Z"]]),l},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,r={stroke:e.color},i=_n({},t,r),a=this.getPath(e),o=ve({path:a},i);return o},update:function(e,t,r){var i=t.getContainer(),a=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},l=t.get("keyShape"),u=_n({},a,l.attr(),s);u=_n(u,e.style),this.updateShape(e,t,u,!0,r),this.updateLinkPoints(e,i)},updateLinkPoints:function(e,t){var r=this.getOptions({}),i=r.linkPoints,a=r.direction,o=e.direction||a,s=t.shapeMap["link-point-left"]||t.find(function(D){return D.get("className")==="link-point-left"}),l=t.shapeMap["link-point-right"]||t.find(function(D){return D.get("className")==="link-point-right"}),u=t.shapeMap["link-point-top"]||t.find(function(D){return D.get("className")==="link-point-top"}),h=t.shapeMap["link-point-bottom"]||t.find(function(D){return D.get("className")==="link-point-bottom"}),c=i,f=s||l||u||h;f&&(c=f.attr());var d=_n({},c,e.linkPoints),v=d.fill,p=d.stroke,g=d.lineWidth,m=d.size/2;m||(m=d.r);var y=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},_=y.left,x=y.right,S=y.top,w=y.bottom,b=this.getSize(e),E=b[0],T={r:m,fill:v,stroke:p,lineWidth:g},C=null,A=E*Math.sin(1/3*Math.PI),M=E*Math.sin(1/3*Math.PI);o==="up"?C=[-M,A]:o==="down"?C=[-M,-A]:o==="left"&&(C=[-M,M-A]),C&&(s?!_&&_!==void 0?(s.remove(),delete t.shapeMap["link-point-left"]):s.attr(ve(ve({},T),{x:C[0],y:C[1]})):_&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:ve(ve({},T),{x:C[0],y:C[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})));var I=null;o==="up"?I=[M,A]:o==="down"?I=[M,-A]:o==="right"&&(I=[M,M-A]),I&&(l?!x&&x!==void 0?(l.remove(),delete t.shapeMap["link-point-right"]):l.attr(ve(ve({},T),{x:I[0],y:I[1]})):x&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:ve(ve({},T),{x:I[0],y:I[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})));var R=null;o==="up"?R=[M-A,-A]:o==="left"?R=[M,-A]:o==="right"&&(R=[-M,-A]),R&&(u?!S&&S!==void 0?(u.remove(),delete t.shapeMap["link-point-top"]):u.attr(ve(ve({},T),{x:R[0],y:R[1]})):S&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:ve(ve({},T),{x:R[0],y:R[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})));var k=null;o==="down"?k=[-M+A,A]:o==="left"?k=[M,A]:o==="right"&&(k=[-M,A]),k&&(h?!w&&w!==void 0?(h.remove(),delete t.shapeMap["link-point-bottom"]):h.attr(ve(ve({},T),{x:k[0],y:k[1]})):w&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:ve(ve({},T),{x:k[0],y:k[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})))}},"single-node");G_("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:Rr.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14,fontFamily:Rr.windowFontFamily},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf",fontFamily:Rr.windowFontFamily},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:10,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape:function(e,t){var r=(this.mergeStyle||this.getOptions(e)).preRect,i=r===void 0?{}:r,a=this.getShapeStyle(e),o=this.getSize(e),s=o[0],l=o[1],u=t.addShape("rect",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});t.shapeMap["".concat(this.type,"-keyShape")]=u;var h=i.show,c=rh(i,["show"]);return h&&(t.shapeMap["pre-rect"]=t.addShape("rect",{attrs:ve({x:-s/2,y:-l/2,height:l},c),className:"pre-rect",name:"pre-rect",draggable:!0})),this.drawLogoIcon(e,t),this.drawStateIcon(e,t),this.drawLinkPoints(e,t),u},drawLogoIcon:function(e,t){var r=(this.mergeStyle||this.getOptions(e)).logoIcon,i=r===void 0?{}:r,a=this.getSize(e),o=a[0];if(i.show){var s=i.width,l=i.height,u=i.x,h=i.y,c=i.offset,f=i.text,d=rh(i,["width","height","x","y","offset","text"]);f?t.shapeMap["rect-logo-icon"]=t.addShape("text",{attrs:ve({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},d),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0}):t.shapeMap["rect-logo-icon"]=t.addShape("image",{attrs:ve(ve({},d),{x:u||-o/2+s+c,y:h||-l/2,width:s,height:l}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0})}},drawStateIcon:function(e,t){var r=(this.mergeStyle||this.getOptions(e)).stateIcon,i=r===void 0?{}:r,a=this.getSize(e),o=a[0];if(i.show){var s=i.width,l=i.height,u=i.x,h=i.y,c=i.offset,f=i.text,d=rh(i,["width","height","x","y","offset","text"]);f?t.shapeMap["rect-state-icon"]=t.addShape("text",{attrs:ve({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},d),className:"rect-state-icon",name:"rect-state-icon",draggable:!0}):t.shapeMap["rect-state-icon"]=t.addShape("image",{attrs:ve(ve({},d),{x:u||o/2-s+c,y:h||-l/2,width:s,height:l}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0})}},drawLinkPoints:function(e,t){var r=(this.mergeStyle||this.getOptions(e)).linkPoints,i=r===void 0?{}:r,a=i.top,o=i.left,s=i.right,l=i.bottom,u=i.size,h=i.r,c=rh(i,["top","left","right","bottom","size","r"]),f=this.getSize(e),d=f[0],v=f[1];o&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:ve(ve({},c),{x:-d/2,y:0,r:u/2||h||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:ve(ve({},c),{x:d/2,y:0,r:u/2||h||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:ve(ve({},c),{x:0,y:-v/2,r:u/2||h||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),l&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:ve(ve({},c),{x:0,y:v/2,r:u/2||h||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},drawLabel:function(e,t){var r=this.getOptions(e),i=r.labelCfg,a=i===void 0?{}:i,o=r.logoIcon,s=o===void 0?{}:o,l=r.descriptionCfg,u=l===void 0?{}:l,h=this.getSize(e),c=h[0],f=null,d=s.show,v=s.width,p=-c/2+a.offset;d&&(p=-c/2+v+a.offset);var g=a.style,m=u.style,y=u.paddingTop;return rr(e.description)?(f=t.addShape("text",{attrs:ve(ve({},g),{x:p,y:-5,text:e.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),t.shapeMap["text-shape"]=f,t.shapeMap["rect-description"]=t.addShape("text",{attrs:ve(ve({},m),{x:p,y:17+(y||0),text:e.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})):(f=t.addShape("text",{attrs:ve(ve({},g),{x:p,y:7,text:e.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),t.shapeMap["text-shape"]=f),f},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,r={stroke:e.color},i=_n({},t,r),a=this.getSize(e),o=i.width||a[0],s=i.height||a[1],l=ve({x:-o/2,y:-s/2,width:o,height:s},i);return l},update:function(e,t){var r=this.mergeStyle||this.getOptions(e),i=r.style,a=i===void 0?{}:i,o=r.labelCfg,s=o===void 0?{}:o,l=r.descriptionCfg,u=l===void 0?{}:l,h=this.getSize(e),c=h[0],f=h[1],d=t.get("keyShape");d.attr(ve(ve({},a),{x:-c/2,y:-f/2,width:c,height:f}));var v=t.getContainer(),p=v.shapeMap["rect-logo-icon"]||v.find(function(ie){return ie.get("className")==="rect-logo-icon"}),g=p?p.attr():{},m=_n({},g,e.logoIcon),y=m.width;y===void 0&&(y=this.options.logoIcon.width);var _=e.logoIcon?e.logoIcon.show:void 0,x=s.offset,S=-c/2+y+x;!_&&_!==void 0&&(S=-c/2+x);var w=v.shapeMap["node-label"]||v.find(function(ie){return ie.get("className")==="node-label"}),b=v.shapeMap["rect-description"]||v.find(function(ie){return ie.get("className")==="rect-description"});if(e.label)if(!w)v.shapeMap["node-label"]=v.addShape("text",{attrs:ve(ve({},s.style),{x:S,y:e.description?-5:7,text:e.label}),className:"node-label",name:"node-label",draggable:!0,labelRelated:!0});else{var E=e.labelCfg?e.labelCfg.style:{},T=_n({},w.attr(),E);e.label&&(T.text=e.label),T.x=S,rr(e.description)&&(T.y=-5),b&&(b.resetMatrix(),b.attr({x:S})),w.resetMatrix(),w.attr(T)}if(rr(e.description)){var C=u.paddingTop;if(!b)v.shapeMap["rect-description"]=v.addShape("text",{attrs:ve(ve({},u.style),{x:S,y:17+(C||0),text:e.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0});else{var E=e.descriptionCfg?e.descriptionCfg.style:{},A=_n({},b.attr(),E);rr(e.description)&&(A.text=e.description),A.x=S,b.resetMatrix(),b.attr(ve(ve({},A),{y:17+(C||0)}))}}var M=v.shapeMap["pre-rect"]||v.find(function(ie){return ie.get("className")==="pre-rect"});if(M&&!M.destroyed){var I=_n({},M.attr(),e.preRect);M.attr(ve(ve({},I),{x:-c/2,y:-f/2,height:f}))}if(p&&!p.destroyed)if(!_&&_!==void 0)p.remove(),delete v.shapeMap["pre-rect"];else{var R=m.width,k=m.height,D=m.x,G=m.y,V=m.offset,z=rh(m,["width","height","x","y","offset"]);p.attr(ve(ve({},z),{x:D||-c/2+R+V,y:G||-k/2,width:R,height:k}))}else _&&this.drawLogoIcon(e,v);var j=v.shapeMap["rect-state-icon"]||v.find(function(ie){return ie.get("className")==="rect-state-icon"}),Z=j?j.attr():{},Y=_n({},Z,e.stateIcon);if(j){!Y.show&&Y.show!==void 0&&(j.remove(),delete v.shapeMap["rect-state-icon"]);var le=Y.width,k=Y.height,D=Y.x,G=Y.y,H=Y.offset,Q=rh(Y,["width","height","x","y","offset"]);j.attr(ve(ve({},Q),{x:D||c/2-le+H,y:G||-k/2,width:le,height:k}))}else Y.show&&this.drawStateIcon(e,v);this.updateLinkPoints(e,v)},getOptions:function(e,t){return t==="move"?e:ms({},this.options,this.getCustomConfig(e)||{},e)}},"single-node");G_("star",{options:{size:60,style:{stroke:Rr.defaultNode.style.stroke,fill:Rr.defaultNode.style.fill,lineWidth:Rr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Rr.nodeLabel.style.fill,fontSize:Rr.nodeLabel.style.fontSize,fontFamily:Rr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Rr.defaultNode.linkPoints.size,lineWidth:Rr.defaultNode.linkPoints.lineWidth,fill:Rr.defaultNode.linkPoints.fill,stroke:Rr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:ve({},Rr.nodeStateStyles)},shapeType:"star",labelPosition:"center",drawShape:function(e,t){var r=(this.mergeStyle||this.getOptions(e)).icon,i=r===void 0?{}:r,a=this.getShapeStyle(e),o=t.addShape("path",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});t.shapeMap["".concat(this.type,"-keyShape")]=o;var s=i.width,l=i.height,u=i.show,h=i.text;return u&&(h?t.shapeMap["".concat(this.type,"-icon")]=t.addShape("text",{attrs:ve({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):t.shapeMap["".concat(this.type,"-icon")]=t.addShape("image",{attrs:ve({x:-s/2,y:-l/2},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,t),o},drawLinkPoints:function(e,t){var r=(this.mergeStyle||this.getOptions(e)).linkPoints,i=r===void 0?{}:r,a=i.top,o=i.left,s=i.right,l=i.leftBottom,u=i.rightBottom,h=i.size,c=i.r,f=rh(i,["top","left","right","leftBottom","rightBottom","size","r"]),d=this.getSize(e),v=d[0];if(s){var p=Math.cos(.1*Math.PI)*v,g=Math.sin((18+72*0)/180*Math.PI)*v;t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:ve(ve({},f),{x:p,y:-g,r:h/2||c||5}),className:"link-point-right",name:"link-point-right"})}if(a){var p=Math.cos(.5*Math.PI)*v,g=Math.sin((18+72*1)/180*Math.PI)*v;t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:ve(ve({},f),{x:p,y:-g,r:h/2||c||5}),className:"link-point-top",name:"link-point-top"})}if(o){var p=Math.cos(.9*Math.PI)*v,g=Math.sin((18+72*2)/180*Math.PI)*v;t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:ve(ve({},f),{x:p,y:-g,r:h/2||c||5}),className:"link-point-left",name:"link-point-left"})}if(l){var p=Math.cos(1.3*Math.PI)*v,g=Math.sin((18+72*3)/180*Math.PI)*v;t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:ve(ve({},f),{x:p,y:-g,r:h/2||c||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"})}if(u){var p=Math.cos(1.7*Math.PI)*v,g=Math.sin((18+72*4)/180*Math.PI)*v;t.shapeMap["link-point-right-bottom"]=t.addShape("circle",{attrs:ve(ve({},f),{x:p,y:-g,r:h/2||c||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"})}},getPath:function(e){var t=this.getSize(e),r=t[0],i=r*3/8,a=e.innerR||i;return gc.getStarPath(r,a)},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,r={stroke:e.color},i=_n({},t,r),a=this.getPath(e),o=ve({path:a},i);return o},update:function(e,t,r){var i=t.getContainer(),a=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},l=t.get("keyShape"),u=_n({},a,l.attr(),s);u=_n(u,e.style),this.updateShape(e,t,u,!0,r),this.updateLinkPoints(e,i)},updateLinkPoints:function(e,t){var r=this.getOptions({}).linkPoints,i=t.shapeMap["link-point-left"]||t.find(function(A){return A.get("className")==="link-point-left"}),a=t.shapeMap["link-point-right"]||t.find(function(A){return A.get("className")==="link-point-right"}),o=t.shapeMap["link-point-top"]||t.find(function(A){return A.get("className")==="link-point-top"}),s=t.shapeMap["link-point-left-bottom"]||t.find(function(A){return A.get("className")==="link-point-left-bottom"}),l=t.shapeMap["link-point-left-bottom"]||t.find(function(A){return A.get("className")==="link-point-right-bottom"}),u=r,h=i||a||o||s||l;h&&(u=h.attr());var c=_n({},u,e.linkPoints),f=c.fill,d=c.stroke,v=c.lineWidth,p=c.size/2;p||(p=c.r);var g=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},m=g.left,y=g.right,_=g.top,x=g.leftBottom,S=g.rightBottom,w=this.getSize(e),b=w[0],E={r:p,fill:f,stroke:d,lineWidth:v},T=Math.cos((18+72*0)/180*Math.PI)*b,C=Math.sin((18+72*0)/180*Math.PI)*b;a?!y&&y!==void 0?(a.remove(),delete t.shapeMap["link-point-right"]):a.attr(ve(ve({},E),{x:T,y:-C})):y&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:ve(ve({},E),{x:T,y:-C}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),T=Math.cos((18+72*1)/180*Math.PI)*b,C=Math.sin((18+72*1)/180*Math.PI)*b,o?!_&&_!==void 0?(o.remove(),delete t.shapeMap["link-point-top"]):o.attr(ve(ve({},E),{x:T,y:-C})):_&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:ve(ve({},E),{x:T,y:-C}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),T=Math.cos((18+72*2)/180*Math.PI)*b,C=Math.sin((18+72*2)/180*Math.PI)*b,i?!m&&m!==void 0?(i.remove(),delete t.shapeMap["link-point-left"]):i.attr(ve(ve({},E),{x:T,y:-C})):m&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:ve(ve({},E),{x:T,y:-C}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),T=Math.cos((18+72*3)/180*Math.PI)*b,C=Math.sin((18+72*3)/180*Math.PI)*b,s?!x&&x!==void 0?(s.remove(),delete t.shapeMap["link-point-left-bottom"]):s.attr(ve(ve({},E),{x:T,y:-C})):x&&(t.shapeMap["link-point-left-bottom"]=t.addShape("circle",{attrs:ve(ve({},E),{x:T,y:-C}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0})),T=Math.cos((18+72*4)/180*Math.PI)*b,C=Math.sin((18+72*4)/180*Math.PI)*b,l?!S&&S!==void 0?(l.remove(),delete t.shapeMap["link-point-right-bottom"]):l.attr(ve(ve({},E),{x:T,y:-C})):S&&(t.shapeMap["link-point-right-bottom"]=t.addShape("circle",{attrs:ve(ve({},E),{x:T,y:-C}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0}))}},"single-node");var _2e=gc.defaultSubjectColors,CR="fan-shape-",bje=function(e,t){var r=0,i=[];return Object.keys(e).forEach(function(a){var o=+e[a];isNaN(o)||(i.push({key:a,value:o,color:t[a]}),r+=o)}),{totalValue:r,configs:i}},Eje=function(e){var t=e.attr("r"),r=.6*t,i=(t+r)/2,a=t-r;return{lineWidth:a,arcR:i}},fte=function(e,t){var r=t.arcR,i=t.arcBegin,a=t.beginAngle,o=t.config,s=t.fanIndex,l=t.lineWidth,u=t.totalValue,h=t.drawWhole,c=h===void 0?!1:h,f=t.updateShape,d=f===void 0?void 0:f,v=o.value/u;if(v<.001)return{beginAngle:a,arcBegin:i,shape:void 0,shouldEnd:!1};var p,g,m;if(c||v>.999)p=[r,1e-4],m=1;else{var y=v*Math.PI*2;g=a+y,p=[r*Math.cos(g),-r*Math.sin(g)],m=y>Math.PI?1:0}var _={path:[["M",i[0],i[1]],["A",r,r,0,m,0,p[0],p[1]]],stroke:o.color||(d==null?void 0:d.attr("stroke"))||_2e[s%_2e.length],lineWidth:l};return d?d.attr(_):e.shapeMap["".concat(CR).concat(s)]=e.addShape("path",{attrs:_,name:"".concat(CR).concat(s),draggable:!0}),{beginAngle:g,arcBegin:p,shape:e.shapeMap["".concat(CR).concat(s)],shouldEnd:c||v>.999}},ggr=function(e,t,r){var i=e.donutAttrs,a=i===void 0?{}:i,o=e.donutColorMap,s=o===void 0?{}:o,l=Object.keys(a).length;if(a&&l>1){var u=bje(a,s),h=u.configs,c=u.totalValue;if(c){var f=Eje(r),d=f.lineWidth,v=f.arcR,p=[v,0],g=0;if(l===1){fte(t,{arcR:v,arcBegin:p,beginAngle:g,config:h[0],fanIndex:0,lineWidth:d,totalValue:c,drawWhole:!0});return}for(var m=0;m=0;a--){var o=e[a];o.id="".concat(o.x,"|||").concat(o.y),r[o.id]||(r[o.id]=o,t.push(o))}return t},Tje=function(e){return rue(e)},Z9=function(e,t){return e.width||e.height?{centerX:e.centerX,centerY:e.centerY,minX:e.minX-t,minY:e.minY-t,maxX:e.maxX+t,maxY:e.maxY+t,height:e.height+2*t,width:e.width+2*t}:e},_gr=function(e,t){var r=Math.abs(e.x-t.centerX),i=Math.abs(e.y-t.centerY);return r===0&&i===0?0:r/t.width>i/t.height},dte=function(e,t,r){var i=_gr(t,e);if(i===0){var a=e.centerX,o=e.centerY;return r.yt.x?a=e.maxX:r.xe.centerX?e.maxX:e.minX,y:t.y}:{x:t.x,y:t.y>e.centerY?e.maxY:e.minY}},x2e=function(e,t){var r=Math.min(e.minX,t.minX),i=Math.min(e.minY,t.minY),a=Math.max(e.maxX,t.maxX),o=Math.max(e.maxY,t.maxY);return{centerX:(r+a)/2,centerY:(i+o)/2,minX:r,minY:i,maxX:a,maxY:o,height:o-i,width:a-r}},vte=function(e){return[{x:e.minX,y:e.minY},{x:e.maxX,y:e.minY},{x:e.maxX,y:e.maxY},{x:e.minX,y:e.maxY}]},q5=function(e,t){var r=e.x,i=e.y;return rt.maxX||it.maxY},xgr=function(e,t){return te.maxX?[]:[{x:t,y:e.minY},{x:t,y:e.maxY}]},Sgr=function(e,t){return te.maxY?[]:[{x:e.minX,y:t},{x:e.maxX,y:t}]},wgr=function(e,t){return xgr(e,t.x).concat(Sgr(e,t.y))},aN=function(e,t){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},bgr=function(e,t){var r=-2,i=0;return t.forEach(function(a){a&&(e.x===a.x&&(i+=r),e.y===a.y&&(i+=r))}),i},S2e=function(e,t,r,i,a){return aN(e,t)+aN(e,r)+bgr(e,[t,r,i,a])},Cje=function(e,t,r,i,a){a===void 0&&(a=0),e.unshift(t[i]),r[i]&&r[i]!==i&&a<=100&&Cje(e,t,r,r[i],a+1)},Z5=function(e,t,r,i){var a=r.x-e.x,o=r.y-e.y,s=i.x-e.x,l=i.y-e.y,u=r.x-t.x,h=r.y-t.y,c=i.x-t.x,f=i.y-t.y,d=a*l-o*s,v=u*f-h*c,p=a*h-o*u,g=s*f-l*c;return d*v<=0&&p*g<=0},pte=function(e,t,r){if(r.width||r.height){var i=vte(r),a=i[0],o=i[1],s=i[2],l=i[3];return Z5(e,t,a,o)||Z5(e,t,a,l)||Z5(e,t,o,s)||Z5(e,t,s,l)}return!1},Egr=function(e,t,r,i){var a=[];return e.forEach(function(o){if(o!==t&&(o.x===t.x||o.y===t.y)){if(pte(o,t,r)||pte(o,t,i))return;a.push(o)}}),rue(a)},Aje=function(){function n(){this.arr=[],this.map={},this.arr=[],this.map={}}return n.prototype._innerAdd=function(e,t){for(var r=[0,t-1];r[1]-r[0]>1;){var i=Math.floor((r[0]+r[1])/2);if(this.arr[i].value>e.value)r[1]=i;else if(this.arr[i].value=0;t--)this.map[this.arr[t].id]?e=this.arr[t].id:this.arr.splice(t,1);return e},n.prototype._findFirstId=function(){for(;this.arr.length;){var e=this.arr.shift();if(this.map[e.id])return e.id}},n.prototype.minId=function(e){return e?this._clearAndGetMinId():this._findFirstId()},n}(),Tgr=function(e,t,r,i,a,o,s){var l,u=[],h=(l={},l[t.id]=t,l),c={},f={},d={};f[t.id]=0,d[t.id]=S2e(t,r,t);var v=new Aje;v.add({id:t.id,value:d[t.id]});var p={};e.forEach(function(S){p[S.id]=S});for(var g;Object.keys(h).length;){var m=v.minId(!1);if(m)g=h[m];else break;if(g===r){var y=[];return Cje(y,p,c,r.id),y}delete h[g.id],v.remove(g.id),u.push(g);var _=Egr(e,g,i,a),x=function(w){w.forEach(function(b){if(u.indexOf(b)===-1){var E=b.id;h[E]||(h[E]=b);var T=d[g.id]+aN(g,b);if(f[E]&&T>=f[E]){v.add({id:E,value:d[E]});return}c[E]=g.id,f[E]=T,d[E]=f[E]+S2e(b,r,t,o,s),v.add({id:E,value:d[E]})}})};x(_)}return[t,r]},Cgr=function(e,t,r){return!(e.x===t.x&&t.x===r.x||e.y===t.y&&t.y===r.y)},Agr=function(e,t,r,i){var a=aN(e,t),o=aN(r,t);a=0;o--){var s=e[o];if(s.x===r.x?i.push(s):(i=[s],r.x=s.x),s.y===r.y?a.push(s):(a=[s],r.y=s.y),i.length>2){var l=e.indexOf(i[1]);l>-1&&e.splice(l,1);continue}if(a.length>2){var l=e.indexOf(a[1]);l>-1&&e.splice(l,1)}}return e},Igr=function(e,t){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},Lgr=function(e,t,r,i,a){return Tje(Mje(e,t,r,i,a.offset))},Pgr={offset:20,maxAllowedDirectionChange:Math.PI/2,maximumLoops:2e3,gridSize:10,directions:[{stepX:1,stepY:0},{stepX:-1,stepY:0},{stepX:0,stepY:1},{stepX:0,stepY:-1}],get penalties(){return{0:0,45:this.gridSize/2,90:this.gridSize/2}},distFunc:Igr,fallbackRoute:Lgr},k1=function(e,t){var r=Math.round(Math.abs(e/t)),i=e<0?-1:1;return r<0?0:i*r},Ogr=function(e,t,r){var i={};return e.forEach(function(a){if(!!a)for(var o=Z9(a.getBBox(),r),s=k1(o.minX,t);s<=k1(o.maxX,t);s+=1)for(var l=k1(o.minY,t);l<=k1(o.maxY,t);l+=1)i["".concat(s,"|||").concat(l)]=!0}),i},kY=function(e,t){var r=t.x-e.x,i=t.y-e.y;return r||i?Math.atan2(i,r):0},b2e=function(e,t){var r=Math.abs(e-t);return r>Math.PI?2*Math.PI-r:r},E2e=function(e,t,r){for(var i=1/0,a=0,o=t.length;au.minX&&t.xu.minY&&t.y0&&w>0;){var k=_.minId((w+1)%30===0);if(k)b=v[k];else break;if(R["".concat(b.x,"|||").concat(b.y)])return Rgr(b,g,h,t,e,c,l);delete v[b.id],_.remove(b.id),p[b.id]=!0;for(var x=0;xo.maxAllowedDirectionChange)&&!u[D])){v[D]||(v[D]=T);var G=s[M];C=o.distFunc(b,T)+(isNaN(G)?l:G),A=m[b.id]+C;var V=m[D];V&&A>=V||(g[D]=b,m[D]=A,y[D]=A+E2e(T,d,o.distFunc),_.add({id:D,value:y[D]}))}}w-=1}return o.fallbackRoute(e,t,r,i,o)};NUe("polyline",{options:{color:Rr.defaultEdge.color,size:Rr.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:Rr.defaultEdge.style.stroke,lineAppendWidth:Rr.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:Rr.edgeLabel.style.fill,fontSize:Rr.edgeLabel.style.fontSize,fontFamily:Rr.windowFontFamily}},routeCfg:{obstacles:[],maxAllowedDirectionChange:Math.PI,maximumLoops:500,gridSize:10},stateStyles:ve({},Rr.edgeStateStyles)},shapeType:"polyline",labelPosition:"center",drawShape:function(e,t){var r=this.getShapeStyle(e);r.radius===0&&delete r.radius;var i=t.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:r});return t.shapeMap["edge-shape"]=i,i},getShapeStyle:function(e){var t=this.options.style,r={stroke:e.color},i=_n({},t,r,e.style);e=this.getPathPoints(e),this.radius=i.radius,this.offset=i.offset;var a=e.startPoint,o=e.endPoint,s=this.getControlPoints(e),l=[a];s&&(l=l.concat(s)),l.push(o);var u=e.sourceNode,h=e.targetNode,c=i.radius,f=this.options.routeCfg,d=_n({},f,e.routeCfg);d.offset=i.offset;var v=this.getPath(l,u,h,c,d,!Boolean(s));(vn(v)&&v.length<=1||rr(v)&&v.indexOf("L")===-1)&&(v="M0 0, L0 0"),(isNaN(a.x)||isNaN(a.y)||isNaN(o.x)||isNaN(o.y))&&(v="M0 0, L0 0");var p=_n({},Rr.defaultEdge.style,i,{lineWidth:e.size,path:v});return p},updateShapeStyle:function(e,t){var r=t.getContainer();if(!!t.isVisible()){var i={stroke:e.color},a=r.shapeMap["edge-shape"]||r.find(function(x){return x.get("className")==="edge-shape"})||t.getKeyShape(),o=e.size;e=this.getPathPoints(e);var s=e.startPoint,l=e.endPoint,u=this.getControlPoints(e),h=[s];u&&(h=h.concat(u)),h.push(l);var c=a.attr(),f=_n({},i,c,e.style),d=e.sourceNode,v=e.targetNode,p=f.radius,g=this.options.routeCfg,m=_n({},g,e.routeCfg);m.offset=f.offset;var y=this.getPath(h,d,v,p,m,!Boolean(u));(vn(y)&&y.length<=1||rr(y)&&y.indexOf("L")===-1)&&(y="M0 0, L0 0"),(isNaN(s.x)||isNaN(s.y)||isNaN(l.x)||isNaN(l.y))&&(y="M0 0, L0 0"),c.endArrow&&f.endArrow===!1&&(e.style.endArrow={path:""}),c.startArrow&&f.startArrow===!1&&(e.style.startArrow={path:""});var _=_n(i,a.attr(),{lineWidth:o,path:y},e.style);a&&a.attr(_)}},getPath:function(e,t,r,i,a,o){var s=a.offset,l=a.obstacles,u=a.simple;if(!s||e.length>2||o===!1){if(i)return w2e(e,i);var h=[];return At(e,function(v,p){p===0?h.push(["M",v.x,v.y]):h.push(["L",v.x,v.y])}),h}u!==!1&&!(l!=null&&l.length)&&(u=!0);var c=u?Mje(e[e.length-1],e[0],r,t,s):Dgr(e[0],e[e.length-1],t,r,a);if(!c||!c.length)return"M0 0, L0 0";if(i){var f=w2e(c,i);return f}c=Mgr(c);var d=gc.pointsToPolygon(c);return d}},"single-edge");var C2e=H_.cloneEvent,A2e=H_.isNaN,M2e=Math.abs,Ngr=10,kgr=["shift","ctrl","alt","control"];const Fgr={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,scalableRange:0,allowDragOnItem:!1}},getEvents:function(){return{mousedown:"onMouseDown",drag:"onDragMove",dragend:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onMouseUp"}},updateViewport:function(e){var t=this.origin,r=+e.clientX,i=+e.clientY;if(!(A2e(r)||A2e(i))){var a=r-t.x,o=i-t.y;this.get("direction")==="x"?o=0:this.get("direction")==="y"&&(a=0),this.origin={x:r,y:i};var s=this.graph.get("width"),l=this.graph.get("height"),u=this.graph.get("canvas").getCanvasBBox(),h=this.scalableRange,c=this.scalableRange;h<1&&h>-1&&(h=s*h,c=l*c),(u.minX<=s+h&&u.minX+a>s+h||u.maxX+h>=0&&u.maxX+h+a<0)&&(a=0),(u.minY<=l+c&&u.minY+o>l+c||u.maxY+c>=0&&u.maxY+c+o<0)&&(o=0),this.graph.translate(a,o)}},onTouchStart:function(e){var t=this,r=e.originalEvent.touches,i=r[0],a=r[1];i&&a||(e.preventDefault(),this.mousedown=!0,t.onDragStart(e))},onMouseDown:function(e){this.mousedown=!0},onDragMove:function(e){!this.mousedown||(this.dragstart?this.onDrag(e):(this.dragstart=!0,this.onDragStart(e)))},onDragStart:function(e){var t=this,r=e.originalEvent;if(!(r&&e.name!=="touchstart"&&r.button!==0)&&!(e.name!=="touchstart"&&typeof window<"u"&&window.event&&!window.event.buttons&&!window.event.button)&&!!this.shouldBegin(e,this)&&!t.keydown&&!!this.allowDrag(e)){if(t.origin={x:e.clientX,y:e.clientY},t.dragging=!1,this.enableOptimize){for(var i=this.graph,a=i.getEdges(),o=0,s=a.length;ol)for(var d=i.getNodes(),v=0,p=d.length;v-1?t.keydown=!0:t.keydown=!1)},onKeyUp:function(){this.keydown=!1,this.origin=null,this.dragging=!1,this.dragbegin=!1},allowDrag:function(e){var t,r,i=e.target,a=i&&i.isCanvas&&i.isCanvas();if(z3(this.allowDragOnItem)&&!this.allowDragOnItem&&!a)return!1;if(Wh(this.allowDragOnItem)){var o=this.allowDragOnItem,s=o.node,l=o.edge,u=o.combo,h=(r=(t=e.item)===null||t===void 0?void 0:t.getType)===null||r===void 0?void 0:r.call(t);if(!s&&h==="node"||!l&&h==="edge"||!u&&h==="combo")return!1}return!0}},Bgr={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected",enableOptimize:!1,enableDebounce:!1,enableStack:!0}},getEvents:function(){return{"node:mousedown":"onMouseDown",drag:"onDragMove",dragend:"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo","node:drop":"onDropNode","canvas:drop":"onDropCanvas",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onDragEnd",afterchangedata:"onDragEnd"}},validationCombo:function(e){if(!this.origin||!e||e.destroyed)return!1;var t=e.getType();return t==="combo"},onTouchStart:function(e){if(!!e.item){var t=this;try{var r=e.originalEvent.touches,i=r[0],a=r[1];if(i&&a)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}this.mousedown={item:e.item,target:e.target,origin:{x:e.x,y:e.y}},this.dragstart=!0,t.onDragStart(e)}},onTouchMove:function(e){var t=this;try{var r=e.originalEvent.touches,i=r[0],a=r[1];if(i&&a){t.onDragEnd(e);return}e.preventDefault()}catch{console.warn("Touch original event not exist!")}t.onDrag(e)},onMouseDown:function(e){this.mousedown={item:e.item,target:e.target,origin:{x:e.x,y:e.y}},typeof window<"u"&&!this.windowEventBinded&&(this.windowEventBinded=!0,document.body.addEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.addEventListener("mouseup",this.onDragEnd.bind(this)))},onDragMove:function(e){var t,r;if(((r=(t=e.item)===null||t===void 0?void 0:t.getType)===null||r===void 0?void 0:r.call(t))!=="node"){this.onDragEnd();return}!this.mousedown||(this.dragstart?this.onDrag(ve(ve({},e),this.mousedown)):(this.dragstart=!0,this.onDragStart(e)))},onDragStart:function(e){var t=this;if(this.currentShouldEnd=!0,!!this.shouldBegin(ve(ve({},e),this.mousedown),this)){var r=this.mousedown,i=r.item,a=r.target;if(!(!i||i.destroyed||i.hasLocked())){var o=i.getContainer();if(o.set("capture",!1),this.cachedCaptureItems||(this.cachedCaptureItems=[]),this.cachedCaptureItems.push(i),a){var s=a.get("isAnchorPoint");if(s)return}var l=this.graph;this.targets=[],this.targetCombo=null;var u=l.findAllByState("node",this.selectedState),h=i.get("id"),c=u.filter(function(d){var v=d.get("id");return h===v});if(c.length===0?this.targets.push(i):u.length>1?u.forEach(function(d){var v=d.hasLocked();v||t.targets.push(d)}):this.targets.push(i),this.graph.get("enabledStack")&&this.enableStack){var f=[];this.targets.forEach(function(d){var v=d.getModel(),p=v.x,g=v.y,m=v.id;f.push({x:p,y:g,id:m})}),this.set("beforeDragNodes",f)}this.hidenEdge={},this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(d){var v=d.getEdges();v.forEach(function(p){!p.isVisible()||(t.hidenEdge[p.getID()]=!0,p.hide())})}),this.origin=this.mousedown.origin,this.point={},this.originPoint={}}}},onDrag:function(e){var t=this;if(!(!this.mousedown||!this.origin)&&!!this.shouldUpdate(e,this))if(this.get("enableDelegate"))this.updateDelegate(e);else if(this.enableDebounce)this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:e,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos});else{var r={};this.targets.map(function(i){t.update(i,e);var a=i.getModel().comboId;a&&(r[a]=t.graph.findById(a))}),this.onlyChangeComboSize&&this.updateParentCombos()}},onDragEnd:function(e){var t=this,r;if(this.mousedown=!1,this.dragstart=!1,typeof window<"u"&&this.windowEventBinded&&(this.windowEventBinded=!1,document.body.removeEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.removeEventListener("mouseup",this.onDragEnd.bind(this))),!!this.origin){(r=this.cachedCaptureItems)===null||r===void 0||r.forEach(function(o){var s=o.getContainer();s.set("capture",!0)}),this.cachedCaptureItems=[],this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(o){var s=o.getEdges();s.forEach(function(l){t.hidenEdge[l.getID()]&&l.show(),l.refresh()})}),this.hidenEdge={};var i=this.graph;if(i.get("enabledStack")&&this.enableStack){var a={before:{nodes:[],edges:[],combos:[]},after:{nodes:[],edges:[],combos:[]}};this.get("beforeDragNodes").forEach(function(o){a.before.nodes.push(o)}),this.targets.forEach(function(o){var s=o.getModel(),l=s.x,u=s.y,h=s.id;a.after.nodes.push({x:l,y:u,id:h})}),i.pushStack("update",Xi(a))}i.emit("dragnodeend",{items:this.targets,targetItem:null}),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null}},onDropCombo:function(e){var t=e.item;if(this.currentShouldEnd=this.shouldEnd(e,t,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.currentShouldEnd||!this.validationCombo(t))){var r=this.graph;if(this.comboActiveState&&r.setItemState(t,this.comboActiveState,!1),this.targetCombo=t,this.onlyChangeComboSize)r.updateCombos();else{var i=t.getModel();this.targets.map(function(a){var o=a.getModel();o.comboId!==i.id&&r.updateComboTree(a,i.id)}),r.updateCombo(t)}r.emit("dragnodeend",{items:this.targets,targetItem:this.targetCombo})}},onDropCanvas:function(e){var t=this.graph;this.currentShouldEnd=this.shouldEnd(e,void 0,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.targets||this.targets.length===0||!this.currentShouldEnd)&&(this.onlyChangeComboSize?this.updateParentCombos():this.targets.map(function(r){var i=r.getModel();i.comboId&&t.updateComboTree(r)}))},onDropNode:function(e){if(!(!this.targets||this.targets.length===0)){var t=this,r=e.item,i=t.graph,a=r.getModel().comboId,o=a?i.findById(a):void 0;if(this.currentShouldEnd=this.shouldEnd(e,o,this),this.updatePositions(e,!this.currentShouldEnd),!!this.currentShouldEnd){if(this.onlyChangeComboSize)this.updateParentCombos();else if(a){var s=i.findById(a);t.comboActiveState&&i.setItemState(s,t.comboActiveState,!1),this.targets.map(function(l){var u=l.getModel();a!==u.comboId&&i.updateComboTree(l,a)}),i.updateCombo(s)}else this.targets.map(function(l){var u=l.getModel();u.comboId&&i.updateComboTree(l)});i.emit("dragnodeend",{items:this.targets,targetItem:r})}}},onDragEnter:function(e){var t=e.item;if(!!this.validationCombo(t)){var r=this.graph;this.comboActiveState&&r.setItemState(t,this.comboActiveState,!0)}},onDragLeave:function(e){var t=e.item;if(!!this.validationCombo(t)){var r=this.graph;this.comboActiveState&&r.setItemState(t,this.comboActiveState,!1)}},updatePositions:function(e,t){var r=this;!this.targets||this.targets.length===0||(this.get("enableDelegate")?this.enableDebounce?this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:e,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos}):t||this.targets.map(function(i){return r.update(i,e)}):this.targets.map(function(i){return r.update(i,e,t)}))},update:function(e,t,r){var i=this.origin,a=e.get("model"),o=e.get("id");this.point[o]||(this.point[o]={x:a.x||0,y:a.y||0});var s=t.x-i.x+this.point[o].x,l=t.y-i.y+this.point[o].y;r&&(s+=i.x-t.x,l+=i.y-t.y);var u={x:s,y:l};this.get("updateEdge")?this.graph.updateItem(e,u,!1):e.updatePosition(u)},debounceUpdate:U3(function(n){var e=n.targets,t=n.graph,r=n.point,i=n.origin,a=n.evt,o=n.updateEdge,s=n.onlyChangeComboSize,l=n.updateParentCombos;e.map(function(u){var h=u.get("model"),c=u.get("id");r[c]||(r[c]={x:h.x||0,y:h.y||0});var f=a.x-i.x+r[c].x,d=a.y-i.y+r[c].y,v={x:f,y:d};o?t.updateItem(u,v,!1):u.updatePosition(v)}),s&&l(t,e)},50,!0),updateDelegate:function(e){var t=this.graph;if(this.delegateRect){var f=e.x-this.origin.x+this.originPoint.minX,d=e.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:f,y:d})}else{var r=t.get("group"),i=ms({},BE.delegateStyle,this.delegateStyle),a=this.calculationGroupPosition(e),o=a.x,s=a.y,l=a.width,u=a.height,h=a.minX,c=a.minY;this.originPoint={x:o,y:s,width:l,height:u,minX:h,minY:c},this.delegateRect=r.addShape("rect",{attrs:ve({width:l,height:u,x:o,y:s},i),name:"rect-delegate-shape"}),this.delegate=this.delegateRect,this.delegateRect.set("capture",!1)}},calculationGroupPosition:function(e){var t=this.targets;t.length===0&&t.push(e.item);for(var r=1/0,i=-1/0,a=1/0,o=-1/0,s=0;si&&(i=f),d>o&&(o=d)}var v=Math.floor(r),p=Math.floor(a),g=Math.ceil(i)-Math.floor(r),m=Math.ceil(o)-Math.floor(a);return{x:v,y:p,width:g,height:m,minX:r,minY:a}},updateParentCombos:function(e,t){var r=e||this.graph,i=t||this.targets,a={};i==null||i.forEach(function(o){var s=o.getModel().comboId;s&&(a[s]=r.findById(s))}),Object.values(a).forEach(function(o){o&&r.updateCombo(o)})}};var K5=null;const Ggr={getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldClearStatusOnSecond:!1,shouldUpdate:function(){return!0}}},getEvents:function(){return this.get("trigger")==="mouseenter"?{"node:mouseenter":"setAllItemStates","combo:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState","combo:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","combo:click":"setAllItemStates","canvas:click":"clearActiveState","node:touchstart":"setOnTouchStart","combo:touchstart":"setOnTouchStart","canvas:touchstart":"clearOnTouchStart"}},setOnTouchStart:function(e){var t=this;try{var r=e.originalEvent.touches,i=r[0],a=r[1];if(i&&a)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}t.setAllItemStates(e)},clearOnTouchStart:function(e){var t=this;try{var r=e.originalEvent.touches,i=r[0],a=r[1];if(i&&a)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}t.clearActiveState(e)},setAllItemStates:function(e){clearTimeout(this.timer),this.throttleSetAllItemStates(e,this)},clearActiveState:function(e){var t=this,r=this.shouldClearStatusOnSecond;r&&(K5=null),this.timer=setTimeout(function(){t.throttleClearActiveState(e,t)},50)},throttleSetAllItemStates:FD(function(n,e){var t=n.item,r=e.graph;if(!(!r||r.destroyed)&&(e.item=t,!!e.shouldUpdate(n.item,{event:n,action:"activate"},e))){var i=e.shouldClearStatusOnSecond,a=t.getModel().id;if(K5===a&&i){e.throttleClearActiveState(n,e),K5=null;return}for(var o=e.activeState,s=e.inactiveState,l=r.getNodes(),u=r.getCombos(),h=r.getEdges(),c=r.get("vedges"),f=l.length,d=u.length,v=h.length,p=c.length,g=e.inactiveItems||{},m=e.activeItems||{},y=0;y-1||(this.trigger=P2e,console.warn("Behavior brush-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),this.trigger==="drag"?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown:function(e){var t=e.item,r=this.brush,i=this.selectOnCombo,a=(t==null?void 0:t.getType())==="combo";a&&!i||!a&&t||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates(),r||(r=this.createBrush()),this.originPoint={x:e.canvasX,y:e.canvasY},r.attr({width:0,height:0}),r.show(),this.dragging=!0)},onMouseMove:function(e){!this.dragging||this.trigger!=="drag"&&!this.keydown||this.updateBrush(e)},onMouseUp:function(e){this.graph,!(!this.brush&&!this.dragging)&&(this.trigger!=="drag"&&!this.keydown||(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(e),this.dragging=!1))},clearStates:function(){var e=this,t=e.graph,r=e.selectedState,i=t.findAllByState("node",r),a=t.findAllByState("edge",r),o=t.findAllByState("combo",r);i.forEach(function(s){return t.setItemState(s,r,!1)}),a.forEach(function(s){return t.setItemState(s,r,!1)}),o.forEach(function(s){return t.setItemState(s,r,!1)}),this.selectedNodes=[],this.selectedEdges=[],this.selectedCombos=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges,this.selectedCombos),t.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})},isBBoxCenterInRect:function(e,t,r,i,a){var o=e.getBBox();return o.centerX>=t&&o.centerX<=r&&o.centerY>=i&&o.centerY<=a},getSelectedNodes:function(e){var t=this,r=this,i=r.graph,a=r.originPoint,o=r.shouldUpdate,s=r.isBBoxCenterInRect,l=this.selectedState,u={x:e.x,y:e.y},h=i.getPointByCanvas(a.x,a.y),c=J5(u.x,h.x),f=I2e(u.x,h.x),d=J5(u.y,h.y),v=I2e(u.y,h.y),p=[],g=[];i.getNodes().forEach(function(_){if(_.isVisible()&&s(_,c,f,d,v)&&o(_,"select",t)){p.push(_);var x=_.getModel();g.push(x.id),i.setItemState(_,l,!0)}});var m=[];this.includeEdges&&p.forEach(function(_){var x=_.getOutEdges();x.forEach(function(S){if(!!S.isVisible()){var w=S.getModel(),b=w.source,E=w.target;g.includes(b)&&g.includes(E)&&o(S,"select",t)&&(m.push(S),i.setItemState(S,t.selectedState,!0))}})});var y=[];this.includeCombos&&i.getCombos().forEach(function(_){if(_.isVisible()&&s(_,c,f,d,v)&&o(_,"select",t)){y.push(_);var x=_.getModel();g.push(x.id),i.setItemState(_,l,!0)}}),this.selectedEdges=m,this.selectedNodes=p,this.selectedCombos=y,this.onSelect&&this.onSelect(p,m,y),i.emit("nodeselectchange",{selectedItems:{nodes:p,edges:m,combos:y},select:!0})},createBrush:function(){var e=this,t=e.graph.get("canvas").addShape("rect",{attrs:e.brushStyle,capture:!1,name:"brush-shape"});return this.brush=t,this.delegate=t,t},updateBrush:function(e){var t=this.originPoint;this.brush.attr({width:L2e(e.canvasX-t.x),height:L2e(e.canvasY-t.y),x:J5(e.canvasX,t.x),y:J5(e.canvasY,t.y)})},onKeyDown:function(e){var t=e.key;if(!!t){var r=this.trigger.toLowerCase(),i=t.toLowerCase();i===r||i==="control"&&r==="ctrl"||i==="ctrl"&&r==="control"?this.keydown=!0:this.keydown=!1}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1}};var O2e="shift",Vgr=["shift","ctrl","alt","control"];const $gr={getDefaultCfg:function(){return{multiple:!0,trigger:O2e,selectedState:"selected",selectNode:!0,selectEdge:!1,selectCombo:!0}},getEvents:function(){var e=this;return Vgr.indexOf(e.trigger.toLowerCase())>-1||(e.trigger=O2e,console.warn("Behavior click-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),e.multiple?{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick"}},onClick:function(e){var t=this,r=e.item;if(!(!r||r.destroyed)){var i=r.getType(),a=t.graph,o=t.keydown,s=t.multiple,l=t.shouldUpdate,u=t.shouldBegin;if(!!u(e,t)){if(!o||!s){var h=a.findAllByState("node",t.selectedState).concat(a.findAllByState("edge",t.selectedState)).concat(a.findAllByState("combo",t.selectedState));At(h,function(p){p!==r&&a.setItemState(p,t.selectedState,!1)})}var c=function(){switch(i){case"node":return t.selectNode;case"edge":return t.selectEdge;case"combo":return t.selectCombo;default:return!1}}();if(!c){var f=a.findAllByState("node",t.selectedState),d=a.findAllByState("edge",t.selectedState),v=a.findAllByState("combo",t.selectedState);a.emit("nodeselectchange",{selectedItems:{nodes:f,edges:d,combos:v},select:!1});return}if(r.hasState(t.selectedState)){l(e,t)&&a.setItemState(r,t.selectedState,!1);var f=a.findAllByState("node",t.selectedState),d=a.findAllByState("edge",t.selectedState),v=a.findAllByState("combo",t.selectedState);a.emit("nodeselectchange",{target:r,selectedItems:{nodes:f,edges:d,combos:v},select:!1})}else{l(e,t)&&a.setItemState(r,t.selectedState,!0);var f=a.findAllByState("node",t.selectedState),d=a.findAllByState("edge",t.selectedState),v=a.findAllByState("combo",t.selectedState);a.emit("nodeselectchange",{target:r,selectedItems:{nodes:f,edges:d,combos:v},select:!0})}}}},onCanvasClick:function(e){var t=this,r=this,i=r.graph,a=r.shouldBegin;if(!!a(e,this)){var o=i.findAllByState("node",this.selectedState);At(o,function(u){i.setItemState(u,t.selectedState,!1)});var s=i.findAllByState("edge",this.selectedState);At(s,function(u){i.setItemState(u,t.selectedState,!1)});var l=i.findAllByState("combo",this.selectedState);At(l,function(u){i.setItemState(u,t.selectedState,!1)}),i.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})}},onKeyDown:function(e){var t=this,r=e.key;!r||(r.toLowerCase()===this.trigger.toLowerCase()||r.toLowerCase()==="control"?t.keydown=!0:t.keydown=!1)},onKeyUp:function(){var e=this;e.keydown=!1}};var Wgr=sg,Q5=.05;const Hgr={getDefaultCfg:function(){return this.isFireFox=qHe()==="firefox",{sensitivity:2,minZoom:void 0,maxZoom:void 0,enableOptimize:!1,optimizeZoom:.1,fixSelectedItems:{fixAll:!1,fixLineWidth:!1,fixLabel:!1,fixState:"selected"},animate:!1,animateCfg:{duration:500}}},getEvents:function(){var e=this.fixSelectedItems;return e.fixState||(e.fixState="selected"),e.fixAll&&(e.fixLineWidth=!0,e.fixLabel=!0),{wheel:"onWheel",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd"}},onTouchStart:function(e){var t=e.originalEvent.touches,r=t[0],i=t[1];e.preventDefault(),i&&(this.shouldBegin&&!this.shouldBegin(e,this)||(this.startPoint={pageX:r.pageX,pageY:r.pageY},this.moveable=!0,i&&(this.endPoint={pageX:i.pageX,pageY:i.pageY}),this.originScale=this.graph.getZoom()||this.currentScale||1))},onTouchMove:function(e){if(!!this.moveable){e.preventDefault();var t=e.originalEvent.touches,r=t[0],i=t[1];if(!!i){this.endPoint||(this.endPoint={pageX:i.pageX,pageY:i.pageY});var a=function(p,g){return Math.hypot(g.x-p.x,g.y-p.y)},o=a({x:r.pageX,y:r.pageY},{x:i.pageX,y:i.pageY})/a({x:this.startPoint.pageX,y:this.startPoint.pageY},{x:this.endPoint.pageX,y:this.endPoint.pageY}),s=this.originScale*o;this.currentScale=s;var l=this.get("minZoom")||this.graph.get("minZoom"),u=this.get("maxZoom")||this.graph.get("maxZoom");if(!(s>u||s0||e.wheelDelta<0?h=1-Q5*l:h=1/(1-Q5*l):e.wheelDelta<0?h=1-Q5*l:h=1/(1-Q5*l),c=u*h;var f=this.get("minZoom")||i.get("minZoom"),d=this.get("maxZoom")||i.get("maxZoom");c>d?c=d:ci/2?h-=f.width:h+=this.offset,c>a/2?c-=f.height:c+=this.offset;var d="".concat(h,"px"),v="".concat(c,"px");Di(this.container,{left:d,top:v,visibility:"visible"})},createTooltip:function(e){var t=e.get("el");t.style.position="relative";var r=zs('
    '));return t.parentNode.appendChild(r),Di(r,{position:"absolute",visibility:"visible"}),this.width=e.get("width"),this.height=e.get("height"),this.container=r,this.graph.get("tooltips").push(r),r}},jgr=ve({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(t){return t.label}}},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},Ije),Xgr=ve({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(t){return"source: ".concat(t.source," target: ").concat(t.target)}}},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},Ije);var R2e="click",Ygr=["click","dblclick"];const qgr={getDefaultCfg:function(){return{trigger:R2e,onChange:function(){}}},getEvents:function(){var e,t;return Ygr.includes(this.trigger)?t=this.trigger:(t=R2e,console.warn("Behavior collapse-expand \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click' \u6216 'dblclick'")),e={},e["node:".concat(t)]="onNodeClick",e.touchstart="onNodeClick",e},onNodeClick:function(e){var t=this;if(this.trigger==="click"){if(this.timer){clearTimeout(this.timer),this.timer=0;return}this.timer=setTimeout(function(){t.toggle(e),clearTimeout(t.timer),t.timer=0},200)}else this.toggle(e)},toggle:function(e){var t=e.item;if(!!t){var r=this.graph.findDataById(t.get("id"));if(!!r){var i=r.children;if(!(!i||i.length===0)){var a=!r.collapsed;!this.shouldBegin(e,a,this)||(r.collapsed=a,t.getModel().collapsed=a,this.graph.emit("itemcollapsed",{item:e.item,collapsed:a}),this.shouldUpdate(e,a,this)&&(this.onChange(t,a,this),this.graph.layout()))}}}}};var Zgr=H_.calculationItemsBBox,Lje=function(e,t){if(t(e)!==!1&&e){var r=e.get("combos");if(r.length===0)return!1;At(r,function(i){Lje(i,t)})}};const Kgr={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected",enableStack:!0}},getEvents:function(){return{"combo:mousedown":"onMouseDown","combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","node:drop":"onNodeDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"}},validationCombo:function(e){var t=e.item;if(!t||t.destroyed||!this.shouldUpdate(e,this))return!1;var r=t.getType();return r==="combo"},onMouseDown:function(e){this.origin={x:e.x,y:e.y}},onDragStart:function(e){var t=this,r=this.graph,i=e.item;if(this.currentShouldEnd=!0,!!this.validationCombo(e)&&!i.hasLocked()){this.targets=[];var a=r.findAllByState("combo",this.selectedState),o=i.get("id"),s=a.filter(function(u){var h=u.get("id");return o===h});s.length===0?this.targets.push(i):this.targets=a.filter(function(u){return!u.hasLocked()});var l=[];this.targets.forEach(function(u){var h=u.getModel(),c=h.x,f=h.y,d=h.id;l.push({x:c,y:f,id:d})}),this.set("beforeDragItems",l),this.activeState&&this.targets.map(function(u){var h=u.getModel();if(h.parentId){var c=r.findById(h.parentId);c&&r.setItemState(c,t.activeState,!0)}}),this.point={},this.originPoint={},this.currentItemChildCombos=[],Lje(i,function(u){if(u.destroyed)return!1;var h=u.getModel();return t.currentItemChildCombos.push(h.id),!0})}},onDrag:function(e){var t=this;if(!!this.origin&&!!this.validationCombo(e))if(this.enableDelegate)this.updateDelegate(e);else{if(this.activeState){var r=this.graph,i=e.item,a=i.getModel(),o=r.getCombos(),s=i.getBBox(),l=s.centerX,u=s.centerY,h=s.width,c=o.filter(function(f){var d=f.getModel();return a.parentId,d.id!==a.id&&!t.currentItemChildCombos.includes(d.id)});c.map(function(f){var d=f.getBBox(),v=d.centerX,p=d.centerY,g=d.width,m=l-v,y=u-p,_=2*Math.sqrt(m*m+y*y);h+g-_>.8*h?r.setItemState(f,t.activeState,!0):r.setItemState(f,t.activeState,!1)})}At(this.targets,function(f){t.updateCombo(f,e)}),this.onlyChangeComboSize&&this.updateParentCombos()}},updatePositions:function(e,t){var r=this;(this.enableDelegate||t)&&At(this.targets,function(i){r.updateCombo(i,e,t)})},onDrop:function(e){var t=this,r=e.item;if(this.currentShouldEnd=this.shouldEnd(e,r,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.currentShouldEnd||!r||!this.targets||r.destroyed)){var i=this.graph,a=r.getModel();this.targets.map(function(o){var s=o.getModel();s.parentId!==a.id?(t.activeState&&i.setItemState(r,t.activeState,!1),t.onlyChangeComboSize?i.updateCombo(o):i.updateComboTree(o,a.id,!1)):i.updateCombo(r)}),this.end(r,e),this.endComparison=!0}},onNodeDrop:function(e){var t=this;if(!(!this.targets||this.targets.length===0)){var r=this.graph,i=e.item,a=i.getModel().comboId,o=a?r.findById(a):void 0;if(this.currentShouldEnd=this.shouldEnd(e,o,this),this.updatePositions(e,!this.currentShouldEnd),!!this.currentShouldEnd){var s;if(a){if(this.activeState){var l=r.findById(a);r.setItemState(l,this.activeState,!1)}this.targets.map(function(u){t.onlyChangeComboSize?r.updateCombo(u):a!==u.getID()&&(s=r.findById(a),a!==u.getModel().parentId&&r.updateComboTree(u,a,!1))})}else this.targets.map(function(u){if(t.onlyChangeComboSize)r.updateCombo(u);else{var h=u.getModel();h.comboId&&r.updateComboTree(u,void 0,!1)}});this.endComparison=!0,this.end(s,e)}}},onDragEnter:function(e){if(!!this.origin&&!!this.validationCombo(e)){var t=e.item,r=this.graph;this.activeState&&r.setItemState(t,this.activeState,!0)}},onDragLeave:function(e){if(!!this.origin&&!!this.validationCombo(e)){var t=e.item,r=this.graph;this.activeState&&r.setItemState(t,this.activeState,!1)}},onDragEnd:function(e){if(!(!this.targets||this.targets.length===0)){var t=e.item;this.currentShouldEnd&&this.updatePositions(e);var r=this.getParentCombo(t.getModel().parentId),i=this.graph;r&&this.activeState&&i.setItemState(r,this.activeState,!1),this.end(void 0,e)}},end:function(e,t){var r=this;if(!!this.origin){var i=this.graph;if(this.delegateShape){var a=i.get("delegateGroup");a.clear(),this.delegateShape=null}if(e&&this.activeState&&i.setItemState(e,this.activeState,!1),!e){var o=i.get("enabledStack")&&this.enableStack,s={before:{nodes:[],edges:[],combos:[].concat(this.get("beforeDragItems"))},after:{nodes:[],edges:[],combos:[]}};this.targets.map(function(l){if(!r.onlyChangeComboSize)i.updateComboTree(l,void 0,o);else{i.updateCombo(l);var u=l.getModel(),h=u.x,c=u.y,f=u.id;s.after.combos.push({x:h,y:c,id:f}),i.pushStack("update",s)}})}this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0}},traverse:function(e,t,r){var i=this;if(r===void 0&&(r={}),t(e,r)!==!1&&e){var a=e.get("combos");At(a,function(s){i.traverse(s,t,r)});var o=e.get("nodes");At(o,function(s){i.traverse(s,t,r)})}},updateCombo:function(e,t,r){this.updateSingleItem(e,t,r);var i={};this.traverse(e,function(a,o){return a.destroyed?!1:(a.getEdges().forEach(function(s){return o[s.getID()]=s}),!0)},i),Object.values(i).forEach(function(a){return a.refresh()})},updateSingleItem:function(e,t,r){var i=this.origin,a=this.graph,o=e.getModel(),s=e.get("id");this.point[s]||(this.point[s]={x:o.x,y:o.y});var l=t.x-i.x+this.point[s].x,u=t.y-i.y+this.point[s].y;r&&(l+=i.x-t.x,u+=i.y-t.y),a.updateItem(e,{x:l,y:u},!1)},getParentCombo:function(e){var t=this.graph;if(!!e){var r=t.findById(e);if(!!r)return r}},updateDelegate:function(e){var t=this.graph;if(this.delegateShape){var f=e.x-this.origin.x+this.originPoint.minX,d=e.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:f,y:d})}else{var r=t.get("delegateGroup"),i=null;this.targets.length>1?i=Zgr(this.targets):i=this.targets[0].getBBox();var a=i.x,o=i.y,s=i.width,l=i.height,u=i.minX,h=i.minY;this.originPoint={x:a,y:o,width:s,height:l,minX:u,minY:h};var c=ve(ve({},BE.delegateStyle),this.delegateStyle);this.delegateShape=r.addShape("rect",{attrs:ve({width:i.width,height:i.height,x:i.x,y:i.y},c),name:"combo-delegate-shape"}),this.delegateShape.set("capture",!1),this.delegate=this.delegateShape}},updateParentCombos:function(){var e=this,t=e.graph,r=e.targets,i={};r==null||r.forEach(function(a){var o=a.getModel().parentId;o&&(i[o]=t.findById(o))}),Object.values(i).forEach(function(a){a&&t.updateCombo(a)})}};var D2e="dblclick",Jgr=["click","dblclick"];const Qgr={getDefaultCfg:function(){return{trigger:D2e,relayout:!0}},getEvents:function(){var e,t;return Jgr.includes(this.trigger)?t=this.trigger:(t=D2e,console.warn("Behavior collapse-expand-group \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click' \u6216 'dblclick'")),e={},e["combo:".concat(t)]="onComboClick",e},onComboClick:function(e){var t=e.item,r=this,i=r.graph,a=r.relayout;if(!(!t||t.destroyed||t.getType()!=="combo")){var o=t.getModel(),s=o.id;!s||(i.collapseExpandCombo(s),a&&i.get("layout")?i.layout():i.refreshPositions())}}};var e0r=H_.isPolygonsIntersect,t0r=H_.pathToPoints,N2e="shift",r0r=["drag","shift","ctrl","alt","control"],n0r=function(e,t){var r,i=e.getKeyShape();if(e.get("type")==="path")r=t0r(i.attr("path"));else{var a=i.getCanvasBBox();r=[[a.minX,a.minY],[a.maxX,a.minY],[a.maxX,a.maxY],[a.minX,a.maxY]]}return e0r(t,r)};const i0r={getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},shouldDeselect:void 0,selectedState:"selected",trigger:N2e,includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return r0r.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=N2e,console.warn("Behavior lasso-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),this.trigger==="drag"?{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd","canvas:click":"clearStates"}:{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd",keyup:"onKeyUp",keydown:"onKeyDown","canvas:click":"clearStates"}},onDragStart:function(e){var t=this.lasso,r=e.item;r||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates("dragstart"),t||(t=this.createLasso()),this.dragging=!0,this.originPoint={x:e.x,y:e.y},this.points.push(this.originPoint),t.show())},onDragMove:function(e){!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.points.push({x:e.x,y:e.y}),this.updateLasso(e))},onDragEnd:function(e){!this.lasso&&!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.points.push(this.originPoint),this.getSelectedItems(),this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1)},getLassoPath:function(){var e=this.points,t=[];return e.length&&(e.forEach(function(r,i){i===0?t.push(["M",r.x,r.y]):t.push(["L",r.x,r.y])}),t.push(["L",e[0].x,e[0].y])),t},clearStates:function(e){e===void 0&&(e="canvas:click");var t=this,r=t.graph,i=t.selectedState,a=t.shouldDeselect,o=r.findAllByState("node",i),s=r.findAllByState("edge",i);(!a||a({action:e,nodes:o,edges:s}))&&(o.forEach(function(l){return r.setItemState(l,i,!1)}),s.forEach(function(l){return r.setItemState(l,i,!1)})),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],r.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedItems:function(){var e=this,t=this,r=t.graph,i=t.shouldUpdate,a=this.points.map(function(h){return[r.getCanvasByPoint(h.x,h.y).x,r.getCanvasByPoint(h.x,h.y).y]}),o=this.selectedState,s=[],l=[];r.getNodes().forEach(function(h){if(!!h.isVisible()&&n0r(h,a)&&i(h,"select",e)){s.push(h);var c=h.getModel();l.push(c.id),r.setItemState(h,o,!0)}});var u=[];this.includeEdges&&s.forEach(function(h){var c=h.getOutEdges();c.forEach(function(f){if(!!f.isVisible()){var d=f.getModel(),v=d.source,p=d.target;l.includes(v)&&l.includes(p)&&i(f,"select",e)&&(u.push(f),r.setItemState(f,e.selectedState,!0))}})}),this.selectedEdges=u,this.selectedNodes=s,this.onSelect&&this.onSelect(s,u),r.emit("nodeselectchange",{selectedItems:{nodes:s,edges:u},select:!0})},createLasso:function(){var e=this,t=e.graph.get("delegateGroup").addShape("path",{attrs:ve({path:[]},e.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=t,this.delegate=t,this.points=[],t},updateLasso:function(e){var t=this;this.lasso.attr({path:t.getLassoPath()})},onKeyDown:function(e){var t=e.key;!t||(t.toLowerCase()===this.trigger.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.lasso&&(this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1),this.keydown=!1}};var k2e="click",a0r=["click","drag"],F2e=void 0,o0r=["shift","ctrl","control","alt","meta",void 0];const s0r={getDefaultCfg:function(){return{trigger:k2e,key:F2e,edgeConfig:{},getEdgeConfig:void 0}},getEvents:function(){var e=this;a0r.indexOf(e.trigger.toLowerCase())>-1||(e.trigger=k2e,console.warn("Behavior create-edge \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click'\uFF0C'drag'")),e.key&&o0r.indexOf(e.key.toLowerCase())===-1&&(e.trigger=F2e,console.warn("Behavior create-edge \u7684 key \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'shift'\uFF0C'ctrl'\uFF0C'alt'\uFF0C'control'\uFF0C\u6216 undefined"));var t;return e.trigger==="drag"?t={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:e.trigger==="click"&&(t={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),e.key&&(t.keydown="onKeyDown",t.keyup="onKeyUp"),t},onDragEnd:function(e){var t=this;if(!(t.key&&!t.keydown)){var r=e.item;(!r||r.getID()===t.source||r.getType()!=="node")&&t.cancelCreating({item:t.edge,x:e.x,y:e.y})}},onClick:function(e){var t=this;if(!(t.key&&!t.keydown)){var r=e.item,i=t.graph,a=r.getModel(),o=t.getEdgeConfig;if(t.addingEdge&&t.edge){if(!t.shouldEnd(e,t))return;var s=void 0;o&&nl(o)?s=o({source:t.source,target:a.id},t):s=t.edgeConfig;var l=ve({target:a.id},s);if(t.source===a.id&&(l.type="loop"),i.emit("beforecreateedge",{}),i.updateItem(t.edge,l,!1),i.get("enabledStack")){var u=ve(ve({},t.edge.getModel()),{itemType:"edge"}),h={};h.edges=[u],i.pushStack("add",{before:{},after:h})}i.emit("aftercreateedge",{edge:t.edge}),t.edge.getKeyShape().set("capture",!0),t.edge=null,t.addingEdge=!1}else{if(!t.shouldBegin(e,t))return;var s=void 0;o&&nl(o)?s=o({source:a.id,target:a.id},t):s=t.edgeConfig,t.edge=i.addItem("edge",ve({source:a.id,target:a.id},s),!1),t.source=a.id,t.addingEdge=!0,t.edge.getKeyShape().set("capture",!1)}}},updateEndPoint:function(e){var t=this;if(!(t.key&&!t.keydown)){t.edge&&t.edge.destroyed&&t.cancelCreating({item:t.edge});var r={x:e.x,y:e.y};if(!t.graph.findById(t.source)){t.addingEdge=!1;return}t.addingEdge&&t.edge&&t.graph.updateItem(t.edge,{target:r},!1)}},cancelCreating:function(e){var t,r,i=this;if(!(i.key&&!i.keydown)){var a=i.graph,o=e.item;if(i.addingEdge&&(i.edge===o||((r=(t=e.target)===null||t===void 0?void 0:t.isCanvas)===null||r===void 0?void 0:r.call(t)))){i.edge&&!i.edge.destroyed&&a.removeItem(i.edge,!1),i.edge=null,i.addingEdge=!1;return}}},onKeyDown:function(e){var t=this,r=e.key;!r||(r.toLowerCase()===t.key.toLowerCase()?t.keydown=!0:t.keydown=!1)},onKeyUp:function(){var e=this;e.addingEdge&&e.edge&&(e.graph.removeItem(e.edge,!1),e.addingEdge=!1,e.edge=null),this.keydown=!1}};var B2e="ctrl",l0r=["shift","ctrl","alt","control"],u0r="1";const h0r={getDefaultCfg:function(){return{trigger:B2e,combinedKey:u0r,functionName:"fitView",functionParams:[]}},getEvents:function(){return l0r.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=B2e,console.warn("Behavior shortcuts-fit-view \u7684 trigger \u53C2\u6570 '".concat(this.trigger,"' \u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'"))),this.combinedKey===this.trigger&&(this.combinedKey=void 0),{keyup:"onKeyUp",keydown:"onKeyDown"}},onKeyDown:function(e){var t=e.key;if(!!t){var r=this.trigger.toLowerCase(),i=t.toLowerCase();this.triggerKeydown||(i===r||i==="control"&&r==="ctrl"||i==="ctrl"&&r==="control"?this.triggerKeydown=!0:this.triggerKeydown=!1);var a=this.graph;if(!a[this.functionName])return console.warn("Behavior shortcuts-fit-view \u7684 functionName \u53C2\u6570 '".concat(this.functionName,"' \u4E0D\u5408\u6CD5\uFF0C\u5B83\u4E0D\u662F Graph \u7684\u4E00\u4E2A\u51FD\u6570\u540D")),{};if(this.triggerKeydown&&!this.combinedKey){this.functionParams&&this.functionParams.length?a[this.functionName].apply(a,this.functionParams):a[this.functionName]();return}var o=this.combinedKey.toLowerCase();this.triggerKeydown&&(i===o||i==="control"&&o==="ctrl"||i==="ctrl"&&o==="control")&&(this.functionParams&&this.functionParams.length?a[this.functionName].apply(a,this.functionParams):a[this.functionName]())}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.triggerKeydown=!1}};var c0r=["shift","ctrl","alt","control","meta"];const f0r={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,zoomKey:"ctrl",scalableRange:0,allowDragOnItem:!0}},getEvents:function(){return(!this.zoomKey||c0r.indexOf(this.zoomKey)===-1)&&(this.zoomKey="ctrl"),{wheel:"onWheel"}},onWheel:function(e){var t=this;if(!!this.allowDrag(e)){var r=this.graph,i=Array.isArray(this.zoomKey)?[].concat(this.zoomKey):[this.zoomKey];i.includes("control")&&i.push("ctrl");var a=i.some(function(j){return e["".concat(j,"Key")]});if(a){var o=r.get("canvas"),s=o.getPointByClient(e.clientX,e.clientY),l=r.getZoom();e.wheelDelta>0?l=l+l*.05:l=l-l*.05,r.zoomTo(l,{x:s.x,y:s.y})}else{var u=e.deltaX||e.movementX,h=e.deltaY||e.movementY;!h&&navigator.userAgent.indexOf("Firefox")>-1&&(h=-e.wheelDelta*125/3);var c=this.graph.get("width"),f=this.graph.get("height"),d=this.graph.get("canvas").getCanvasBBox(),v=this.scalableRange,p=this.scalableRange;v<1&&v>-1&&(v=c*v,p=f*p);var g=d.minX,m=d.maxX,y=d.minY,_=d.maxY;u>0?m<-v?u=0:m-u<-v&&(u=m+v):u<0&&(g>c+v?u=0:g-u>c+v&&(u=g-(c+v))),h>0?_<-p?h=0:_-h<-p&&(h=_+p):h<0&&(y>f+p?h=0:y-h>f+p&&(h=y-(f+p))),this.get("direction")==="x"?h=0:this.get("direction")==="y"&&(u=0),r.translate(-u,-h)}e.preventDefault();var x=this.get("enableOptimize");if(x){var S=this.get("optimizeZoom"),w=this.get("optimized"),b=r.getNodes(),E=r.getEdges(),T=b.length,C=E.length;if(!w){for(var A=0;A{const{item:r}=t;if(t.target&&t.target.isCanvas&&t.target.isCanvas()||!r)return;const i=r.getType(),a=r.getModel();if(i&&a&&i==="node")return this.isCollpased(a.id)?`
      +
    • \u5C55\u5F00
    • +
    `:`
      +
    • \u6298\u53E0
    • +
    `},handleMenuClick:(t,r)=>{switch(t.id.split("-")[0]){case"hide":this.hideItem(r);break;case"expand":this.expandNode(r);break;case"collapse":this.collapseNode(r);break;case"show":this.showItem(r);break}},offsetX:26,offsetY:0,itemTypes:["node","edge","canvas"]})}_getGraphConfig(e){const t={speed:120,maxIteration:83,tick:()=>{this.refreshPositions()}},r={type:"fruchterman",gravity:5},i={},a={type:"line",style:{endArrow:{path:"M 0,0 L 4,2 L 4,-2 Z",fill:"#e0e0e0"},lineWidth:.5},labelCfg:{autoRotate:!0,style:{fontSize:4,fill:"#333"}}},o={default:["drag-canvas","zoom-canvas","drag-node"]},s=this._getContextMenu(),l=[new JC.ToolBar,s],u="#b4d6ff",h={lineWidth:3,stroke:u},c={stroke:u,shadowColor:u,shadowBlur:5,endArrow:{path:"M 0,0 L 4,2 L 4,-2 Z",fill:u}},f=(v="knowledgeGraph")=>{const p=document.querySelector(`#${v}`);return{container:v,width:p.scrollWidth,height:p.scrollHeight,plugins:l,modes:o,layout:{...r,...t},defaultNode:i,defaultEdge:a,nodeStateStyles:{hover:h},edgeStateStyles:{hover:c}}};if(!e)return this._setToolBarStyle(),f();e.container=e.container||"knowledgeGraph";const d=typeof e.container=="string"?document.querySelector(`#${e.container}`):e.container;return e.width=e.width||d.scrollWidth,e.height=e.height||d.scrollHeight,e.layout={...r,...e.layout||{},...e.animate!==!1?t:{}},e.defaultNode={...i,...e.defaultNode||{}},e.defaultEdge={...a,...e.defaultEdge||{}},e.modes={default:[e.dragCanvas!==!1&&"drag-canvas",e.zoomCanvas!==!1&&"zoom-canvas",e.dragNode!==!1&&"drag-node"]},e.nodeStateStyles={hover:{...h,...e.nodeHighlightStyle||{}}},e.edgeStateStyles={hover:{...c,...e.edgeHighlightStyle||{}}},e.showToolBar!==!1&&(e.plugins=[new JC.ToolBar],this._setToolBarStyle()),e.showContextMenu!==!1&&(e.plugins=[...e.plugins||[],s],this._setToolBarStyle()),e}changeSize(e,t){return this.graph.changeSize(e,t)}autoResize(){const e=this.getContainer();window.addEventListener("resize",()=>{const t=e.scrollWidth,r=e.scrollHeight;this.graph.changeSize(t,r),this.graph.refresh()})}zoom(e,t,r,i){this.graph.zoom(e,t,r,i)}zoomTo(e,t,r,i){this.graph.zoomTo(e,t,r,i)}fitView(e,t,r,i){this.graph.fitView(e,t,r,i)}fitCenter(e,t){this.graph.fitCenter(e,t)}getGraphCenterPoint(){return this.graph.getGraphCenterPoint()}getViewPortCenterPoint(){return this.graph.getViewPortCenterPoint()}getZoom(){return this.graph.getZoom()}getMinZoom(){return this.graph.getMinZoom()}setMinZoom(e){this.graph.setMinZoom(e)}getMaxZoom(){return this.graph.getMaxZoom()}setMaxZoom(e){this.graph.setMaxZoom(e)}getWidth(){return this.graph.getWidth()}getHeight(){return this.graph.getHeight()}setCenter(e){var t=this.graph.getWidth()/2,r=this.graph.getHeight()/2,i=this.graph.getCanvasByPoint(e.x,e.y);this.graph.translate(t-i.x,r-i.y)}_setToolBarStyle(){cT.exports(` + .g6-component-toolbar li[code='redo'], + .g6-component-toolbar li[code='undo'], + .g6-component-toolbar li[code='realZoom'] { + display: none; + } + .g6-component-contextmenu { + position: absolute; + z-index: 2; + list-style-type: none; + border-radius: 6px; + font-size: 14px; + width: fit-content; + transition: opacity .2s; + text-align: center; + box-shadow: 0 5px 18px 0 rgba(0, 0, 0, 0.6); + border: 0px; + } + .g6-component-contextmenu ul { + padding-left: 0px; + margin: 0; + } + .g6-component-contextmenu li { + cursor: pointer; + list-style-type: none; + list-style: none; + margin-left: 0; + line-height: 38px; + padding: 0px 35px; + } + .g6-component-contextmenu li:hover { + color: #333; + background: #aaaaaa45; + } + `)}highlightNode(e=this.graph){function t(){e.setAutoPaint(!1),e.getNodes().forEach(function(r){e.clearItemStates(r)}),e.paint(),e.setAutoPaint(!0)}e.on("node:mouseenter",function(r){const i=r.item;e.setAutoPaint(!1),e.getNodes().forEach(function(a){e.clearItemStates(a)}),e.setItemState(i,"hover",!0),e.paint(),e.setAutoPaint(!0)}),e.on("node:mouseleave",t)}highlightEdge(e=this.graph){function t(){e.setAutoPaint(!1),e.getEdges().forEach(function(r){e.clearItemStates(r)}),e.paint(),e.setAutoPaint(!0)}e.on("edge:mouseenter",function(r){const i=r.item;e.setAutoPaint(!1),e.getNodes().forEach(function(a){e.clearItemStates(a)}),e.setItemState(i,"hover",!0),e.paint(),e.setAutoPaint(!0)}),e.on("edge:mouseleave",t)}setData(e,t=this.graph){this.data?t.changeData(e):t.data(e),this.data=e}render(e=this.graph){return e.render()}updateGraph(e,t=this.graph){this.data=e,t.changeData(e)}refresh(e=this.graph){e.refresh()}getContainer(e=this.graph){return e.getContainer()}getCanvas(e=this.graph){return e.get("canvas")}getNodes(e=this.graph){return e.getNodes()}getEdges(e=this.graph){return e.getEdges()}getNeighbors(e,t,r=this.graph){return r.getNeighbors(e,t)}findById(e,t=this.graph){return t.findById(e)}find(e,t,r=this.graph){return r.find(e,t)}findAll(e,t,r=this.graph){return r.findAll(e,t)}getEdgesByNode(e){return e.getEdges()}getInEdges(e){return e.getInEdges()}getOutEdges(e){return e.getOutEdges()}getSourceByEdge(e){return e.getSource()}getTargetByEdge(e){return e.getTarget()}expandNode(e){const t=e.getModel().id;this._expandCollapseNode(this.collpasedData[t],"show"),delete this.collpasedData[t]}collapseNode(e){const t=e.getModel().id,r=[];this._collapseFunc(e,r),this.collpasedData[t]=r,this._expandCollapseNode(r)}isCollpased(e){return!!this.collpasedData[e]}_collapseFunc(e,t=[]){const r=this.getNeighbors(e,"target"),i=this.getNeighbors(e,"source");for(let a=0;a{t==="hide"?this.hideItem(r.id):(this.showItem(r.id),this.isCollpased(r.id)&&delete this.collpasedData[r.id]),r.children&&this._expandCollapseNode(r.children,t)})}showItem(e,t,r=this.graph){r.showItem(e,t)}hideItem(e,t,r=this.graph){r.hideItem(e,t)}show(e){e.show()}hide(e){e.hide()}changeVisibility(e,t){e.changeVisibility(t)}isVisible(e){return e.isVisible()}getModel(e){return e.getModel()}addItem(e,t,r=this.graph){r.addItem(e,t)}removeItem(e,t=this.graph){t.removeItem(e)}updateItem(e,t,r=this.graph){r.updateItem(e,t)}refreshItem(e,t=this.graph){t.refreshItem(e)}refreshPositions(e=this.graph){e.refreshPositions()}on(e,t,r=this.graph){r.on(e,t)}off(e,t,r=this.graph){r.off(e,t)}toDataURL(e,t,r=this.graph){r.toDataURL(e,t)}bindNodeDefaultDragEvent(e=this.graph){e.on("node:dragstart",function(t){G2e(t)}),e.on("node:drag",function(t){G2e(t)}),e.on("node:dragend",function(t){t.item.get("model").fx=null,t.item.get("model").fy=null})}stopDefaultEventPropagation(e=this.graph){e.on("click",function(t){t.stopPropagation()}),e.on("mousedown",function(t){t.stopPropagation()}),e.on("mouseover",function(t){t.stopPropagation()}),e.on("mouseout",function(t){t.stopPropagation()})}clear(e=this.graph){e.clear()}destroy(e=this.graph){e.destroy()}}function G2e(n){const e=n.item.get("model");return e.fx=n.x,e.fy=n.y,e.x=n.x,e.y=n.y,e}var yte={exports:{}};(function(n,e){var t=200,r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",o="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",h="[object Function]",c="[object GeneratorFunction]",f="[object Map]",d="[object Number]",v="[object Object]",p="[object Promise]",g="[object RegExp]",m="[object Set]",y="[object String]",_="[object Symbol]",x="[object WeakMap]",S="[object ArrayBuffer]",w="[object DataView]",b="[object Float32Array]",E="[object Float64Array]",T="[object Int8Array]",C="[object Int16Array]",A="[object Int32Array]",M="[object Uint8Array]",I="[object Uint8ClampedArray]",R="[object Uint16Array]",k="[object Uint32Array]",D=/[\\^$.*+?()[\]{}|]/g,G=/\w*$/,V=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,j={};j[a]=j[o]=j[S]=j[w]=j[s]=j[l]=j[b]=j[E]=j[T]=j[C]=j[A]=j[f]=j[d]=j[v]=j[g]=j[m]=j[y]=j[_]=j[M]=j[I]=j[R]=j[k]=!0,j[u]=j[h]=j[x]=!1;var Z=typeof at=="object"&&at&&at.Object===Object&&at,Y=typeof self=="object"&&self&&self.Object===Object&&self,le=Z||Y||Function("return this")(),H=e&&!e.nodeType&&e,Q=H&&!0&&n&&!n.nodeType&&n,ie=Q&&Q.exports===H;function oe(Te,gt){return Te.set(gt[0],gt[1]),Te}function se(Te,gt){return Te.add(gt),Te}function me(Te,gt){for(var B=-1,O=Te?Te.length:0;++B-1}function Me(Te,gt){var B=this.__data__,O=Ds(B,Te);return O<0?B.push([Te,gt]):B[O][1]=gt,this}ue.prototype.clear=xe,ue.prototype.delete=ce,ue.prototype.get=pe,ue.prototype.has=we,ue.prototype.set=Me;function nt(Te){var gt=-1,B=Te?Te.length:0;for(this.clear();++gt-1&&Te%1==0&&Te-1&&Te%1==0&&Te<=i}function Vv(Te){var gt=typeof Te;return!!Te&&(gt=="object"||gt=="function")}function hf(Te){return!!Te&&typeof Te=="object"}function _u(Te){return uf(Te)?qa(Te):js(Te)}function $v(){return[]}function _g(){return!1}n.exports=Hm})(yte,yte.exports);const w0r=yte.exports;class mte{constructor(e,t="G6"){this.graph=null,this.config=w0r(e),this.graphRender=null,this.type=t,this.createGraphRender(this.type),this.config=this.graphRender._getGraphConfig(this.config),this.createGraph(this.config),this.CLASS_NAME="SuperMap.KnowledgeGraph"}static dataFromGraphMap(e,t){return rxe(e,t)}static dataFromKnowledgeGraphQuery(e){return rxe(e)}handleNodeStatus(e){const{expand:t,collapse:r,hidden:i}=e;this.expandNodes(t),this.collapseNodes(r),this.hideNodes(i)}expandNodes(e){!e||e.forEach(t=>{this.expandNode(t+"")})}collapseNodes(e){!e||e.forEach(t=>{this.collapseNode(t+"")})}hideNodes(e){!e||e.forEach(t=>{this.hideItem(t+"")})}createGraphRender(e){e==="G6"&&(this.graphRender=new S0r)}createGraph(e){const t=this.initGraph(e);return this.graph=t,this.autoResize(),t}getGraph(){return this.graph}autoResize(){this.config&&this.config.autoResize!==!1&&this.graphRender.autoResize()}zoom(e,t,r,i){this.graphRender.zoom(e,t,r,i)}zoomTo(e,t,r,i){this.graphRender.zoomTo(e,t,r,i)}fitView(e,t,r,i){this.graphRender.fitView(e,t,r,i)}fitCenter(e,t){this.graphRender.fitCenter(e,t)}getGraphCenterPoint(){return this.graphRender.getGraphCenterPoint()}getViewPortCenterPoint(){return this.graphRender.getViewPortCenterPoint()}getZoom(){return this.graphRender.getZoom()}getMinZoom(){return this.graphRender.getMinZoom()}setMinZoom(e){this.graphRender.setMinZoom(e)}getMaxZoom(){return this.graphRender.getMaxZoom()}setMaxZoom(e){this.graphRender.setMaxZoom(e)}getWidth(){return this.graphRender.getWidth()}getHeight(){return this.graphRender.getHeight()}initGraph(e){const t=this.graphRender.initGraph(e);this.graph=t;const r=()=>{this.config.zoom!==void 0&&this.zoom(this.config.zoom),this.config.center!==void 0&&this.graphRender.setCenter({x:this.config.center[0],y:this.config.center[1]})};return this.graph.on("beforelayout",r),t}setData(e,t=this.graph){e=e||{nodes:[],edges:[]},this.config&&this.config.nodeLabelMaxWidth&&(e.nodes=this.nodeLabelOpenEllipsis(this.config.nodeLabelMaxWidth,e.nodes)),this.graphRender.setData(e,t),this.render(t),this.data=e}render(e=this.graph){e&&this.graphRender.render(e)}updateGraph(e,t=this.graph){t&&this.graphRender.updateGraph(e,t)}refresh(){return this.graphRender.refresh()}changeSize(e,t){return this.graphRender.changeSize(e,t)}resize(e,t){this.graphRender.changeSize(e,t),this.graphRender.refresh()}getContainer(){return this.graphRender.getContainer()}getCanvas(){return this.graphRender.getCanvas()}getNodes(){return this.graphRender.getNodes()}getEdges(){return this.graphRender.getEdges()}getNeighbors(e,t){return this.graphRender.getNeighbors(e,t)}findById(e){return this.graphRender.findById(e)}find(e,t){return this.graphRender.find(e,t)}findAll(e,t){return this.graphRender.findAll(e,t)}getEdgesByNode(e){return this.graphRender.getEdgesByNode(e)}getInEdges(e){return this.graphRender.getInEdges(e)}getOutEdges(e){return this.graphRender.getOutEdges(e)}getSourceByEdge(e){return this.graphRender.getSourceByEdge(e)}getTargetByEdge(e){return this.graphRender.getTargetByEdge(e)}expandNode(e){const t=this.findById(e);t&&this.graphRender.expandNode(t)}collapseNode(e){const t=this.findById(e);t&&this.graphRender.collapseNode(t)}showItem(e,t){this.graphRender.showItem(e,t)}hideItem(e,t){this.graphRender.hideItem(e,t)}show(e){this.graphRender.show(e)}hide(e){this.graphRender.hide(e)}changeVisibility(e,t){this.graphRender.changeVisibility(e,t)}isVisible(e){return this.graphRender.isVisible(e)}getModel(e){return this.graphRender.getModel(e)}addItem(e,t){return this.graphRender.addItem(e,t)}removeItem(e){return this.graphRender.removeItem(e)}updateItem(e,t){return this.graphRender.updateItem(e,t)}refreshItem(e){return this.graphRender.refreshItem(e)}refreshPositions(){return this.graphRender.refreshPositions()}on(e,t){this.graphRender.on(e,t)}off(e,t){this.graphRender.off(e,t)}toDataURL(e,t){this.graphRender.toDataURL(e,t)}nodeLabelOpenEllipsis(e,t){return t?e?t.map(r=>{const i=r.labelCfg&&r.labelCfg.fontSize||this.defaultNode&&this.defaultNode.labelCfg&&this.defaultNode.labelCfg.fontSize||14;return r.label=b0r(r.label,e,i),r}):t:[]}clear(e=this.graph){e&&e.clear()}destroy(e=this.graph){e&&e.destroy()}}function b0r(n,e,t){const r=s=>{let l=0;for(let u=0;u0&&s.charCodeAt(u)<128?l++:l+=2;return l},i=t*1;e=e*1.6;const a=r(n)*i,o="\u2026";if(a>e){const s=Math.floor((e-20)/i),l=n.substring(0,s);return(n.substring(s).length+o.length)*i>e?l+` +`+n.substring(s,s+s-2)+o:n.substring(s).length==0?l:l+` +`+n.substring(s)}else return n}ae.Lang=rv;ae.i18n=ae.Lang.i18n;ae.Util={...ae.Util,...W};ae.Browser=Ane;ae.INCHES_PER_UNIT=Ii;ae.METERS_PER_INCH=Fn;ae.DOTS_PER_INCH=eE;ae.IS_GECKO=Vat;ae.setCORS=Kat;ae.isCORS=DOe;ae.setRequestTimeout=Jat;ae.getRequestTimeout=tK;ae.FetchRequest=li;ae.inherit=Gat;ae.mixin=Cne;ae.String=id;ae.Number=B8;ae.Function=UR;ae.Array=zat;ae.Date=Hat;ae.Event=Ul;ae.Bounds=po;ae.Credential=G8;ae.Events=y0;ae.Feature=LOe;ae.Geometry=rg;ae.Geometry3D=jat;ae.Pixel=WE;ae.Size=a3;ae.Feature.Vector=sc;ae.Geometry.Collection=O0;ae.Geometry.Curve=Mne;ae.Geometry.GeoText=O_;ae.Geometry.LinearRing=tv;ae.Geometry.LineString=Vl;ae.Geometry.MultiLineString=_E;ae.Geometry.MultiPoint=HE;ae.Geometry.MultiPolygon=A1;ae.Geometry.Point=Ki;ae.Geometry.Polygon=_p;ae.Geometry.Rectangle=IOe;ae.Components.Chart=b4t;ae.Components.ChartViewModel=NGe;ae.Components.MessageBox=UNe;ae.Components.AttributesPopContainer=A4t;ae.Components.CityTabsPage=M4t;ae.Components.CommonContainer=E4t;ae.Components.DropDownBox=C4t;ae.Components.IndexTabsPageContainer=FGe;ae.Components.NavTabsPage=I4t;ae.Components.PaginationContainer=L4t;ae.Components.PopContainer=kGe;ae.Components.Select=T4t;ae.Components.TemplateBase=bw;ae.Components.FileReaderUtil=AQ;ae.TimeControlBase=POe;ae.TimeFlowControl=qat;ae.Format=ae.Format||Ine;ae.Format.GeoJSON=uh;ae.Format.JSON=gz;ae.Format.WKT=Xat;ae.iManager=Qat;ae.iManagerCreateNodeParam=rK;ae.iManagerServiceBase=NOe;ae.iPortal=eot;ae.iPortalAddDataParam=UOe;ae.iPortalAddResourceParam=nK;ae.iPortalDataConnectionInfoParam=$Oe;ae.iPortalDataMetaInfoParam=iK;ae.iPortalDataStoreInfoParam=VOe;ae.iPortalQueryParam=kOe;ae.iPortalQueryResult=FOe;ae.iPortalRegisterServiceParam=zOe;ae.iPortalResource=BOe;ae.iPortalServiceBase=yz;ae.iPortalShareEntity=tot;ae.iPortalShareParam=GOe;ae.iPortalUser=rot;ae.AddressMatchService=jOe;ae.AggregationParameter=Lne;ae.AreaSolarRadiationParameters=nB;ae.AreaSolarRadiationService=YOe;ae.BucketAggParameter=XOe;ae.BufferAnalystParameters=Pne;ae.BufferAnalystService=ZOe;ae.BufferDistance=aK;ae.BuffersAnalystJobsParameter=KOe;ae.BuffersAnalystJobsService=iB;ae.BufferSetting=qOe;ae.BurstPipelineAnalystParameters=JOe;ae.BurstPipelineAnalystService=QOe;ae.ChartFeatureInfoSpecsService=eRe;ae.ChartQueryFilterParameter=tRe;ae.ChartQueryParameters=rRe;ae.ChartQueryService=nRe;ae.ClipParameter=iot;ae.ColorDictionary=iRe;ae.CommonServiceBase=ra;ae.ComputeWeightMatrixParameters=oRe;ae.ComputeWeightMatrixService=sRe;ae.CreateDatasetParameters=xK;ae.DataFlowService=lRe;ae.DataReturnOption=mz;ae.DatasetBufferAnalystParameters=oK;ae.DatasetInfo=uRe;ae.DatasetOverlayAnalystParameters=sK;ae.DatasetService=jRe;ae.DatasetSurfaceAnalystParameters=lK;ae.DatasetThiessenAnalystParameters=uK;ae.DatasourceConnectionInfo=One;ae.DatasourceService=cRe;ae.DensityAnalystService=fRe;ae.DensityKernelAnalystParameters=hK;ae.EditFeaturesParameters=cK;ae.EditFeaturesService=U8;ae.FacilityAnalyst3DParameters=bI;ae.FacilityAnalystSinks3DParameters=dRe;ae.FacilityAnalystSinks3DService=vRe;ae.FacilityAnalystSources3DParameters=pRe;ae.FacilityAnalystSources3DService=gRe;ae.FacilityAnalystStreamParameters=yRe;ae.FacilityAnalystStreamService=mRe;ae.FacilityAnalystTracedown3DParameters=_Re;ae.FacilityAnalystTracedown3DService=xRe;ae.FacilityAnalystTraceup3DParameters=SRe;ae.FacilityAnalystTraceup3DService=wRe;ae.FacilityAnalystUpstream3DParameters=bRe;ae.FacilityAnalystUpstream3DService=ERe;ae.FieldParameters=TRe;ae.FieldsFilter=KR;ae.FieldStatisticService=ARe;ae.FieldStatisticsParameters=CRe;ae.FilterParameter=Pf;ae.FindClosestFacilitiesParameters=MRe;ae.FindClosestFacilitiesService=IRe;ae.FindLocationParameters=LRe;ae.FindLocationService=PRe;ae.FindMTSPPathsParameters=ORe;ae.FindMTSPPathsService=RRe;ae.FindPathParameters=DRe;ae.FindPathService=NRe;ae.FindServiceAreasParameters=kRe;ae.FindServiceAreasService=FRe;ae.FindTSPPathsParameters=BRe;ae.FindTSPPathsService=GRe;ae.GenerateSpatialDataParameters=zRe;ae.GenerateSpatialDataService=URe;ae.GeoCodingParameter=WOe;ae.GeoDecodingParameter=HOe;ae.GeoHashGridAggParameter=aot;ae.GeometryBatchAnalystService=aNe;ae.GeometryBufferAnalystParameters=z8;ae.GeometryOverlayAnalystParameters=V8;ae.GeometrySurfaceAnalystParameters=VRe;ae.GeometryThiessenAnalystParameters=$8;ae.GeoprocessingService=$Re;ae.GeoRelationAnalystParameters=WRe;ae.GeoRelationAnalystService=HRe;ae.GetFeaturesByBoundsParameters=xE;ae.GetFeaturesByBoundsService=XRe;ae.GetFeaturesByBufferParameters=fK;ae.GetFeaturesByBufferService=YRe;ae.GetFeaturesByGeometryParameters=qRe;ae.GetFeaturesByGeometryService=ZRe;ae.GetFeaturesByIDsParameters=KRe;ae.GetFeaturesByIDsService=JRe;ae.GetFeaturesBySQLParameters=VR;ae.GetFeaturesBySQLService=W8;ae.GetFeaturesParametersBase=EI;ae.GetFeaturesServiceBase=TI;ae.GetFieldsService=QRe;ae.GetGridCellInfosParameters=eDe;ae.GetGridCellInfosService=tDe;ae.GetLayersInfoService=lDe;ae.Grid=aDe;ae.HillshadeParameter=_ot;ae.Image=oDe;ae.ImageCollectionService=ANe;ae.ImageGFAspect=jne;ae.ImageGFHillShade=Hne;ae.ImageGFOrtho=Xne;ae.ImageGFSlope=Yne;ae.ImageRenderingRule=h3;ae.ImageSearchParameter=Wne;ae.ImageService=MNe;ae.ImageStretchOption=hM;ae.InterpolationAnalystParameters=Dy;ae.InterpolationAnalystService=dDe;ae.InterpolationDensityAnalystParameters=hDe;ae.InterpolationIDWAnalystParameters=cDe;ae.InterpolationKrigingAnalystParameters=fDe;ae.InterpolationRBFAnalystParameters=uDe;ae.JoinItem=nDe;ae.KernelDensityJobParameter=vDe;ae.KernelDensityJobsService=aB;ae.LabelImageCell=oot;ae.LabelMatrixCell=Iz;ae.LabelMixedTextStyle=Sz;ae.LabelSymbolCell=sot;ae.LabelThemeCell=lot;ae.LayerStatus=uot;ae.LinkItem=hot;ae.MappingParameters=Am;ae.MapService=dK;ae.MathExpressionAnalysisParameters=vK;ae.MathExpressionAnalysisService=pDe;ae.MeasureParameters=gDe;ae.MeasureService=yDe;ae.MetricsAggParameter=not;ae.NDVIParameter=mot;ae.NetworkAnalystServiceBase=Bd;ae.OutputSetting=Cm;ae.OverlapDisplayedOptions=cot;ae.OverlayAnalystParameters=Rne;ae.OverlayAnalystService=mDe;ae.OverlayGeoJobParameter=_De;ae.OverlayGeoJobsService=oB;ae.PointWithMeasure=vz;ae.ProcessingServiceBase=Mm;ae.QueryByBoundsParameters=xDe;ae.QueryByBoundsService=SDe;ae.QueryByDistanceParameters=wDe;ae.QueryByDistanceService=bDe;ae.QueryByGeometryParameters=EDe;ae.QueryByGeometryService=TDe;ae.QueryBySQLParameters=ZR;ae.QueryBySQLService=H8;ae.DatasetMinDistanceAnalystParameters=ADe;ae.MinDistanceAnalystService=MDe;ae.TerrainCutFillCalculationParameters=gK;ae.TerrainCutFillCalculationService=IDe;ae.terrainAnalystSetting=got;ae.TerrainAspectCalculationParameters=yK;ae.TerrainAspectCalculationService=LDe;ae.TerrainSlopeCalculationParameters=mK;ae.TerrainSlopeCalculationService=PDe;ae.GeometryMinDistanceAnalystParameters=pK;ae.ConvexHullAnalystParameters=fot;ae.ConvexHullAnalystService=ODe;ae.TraceAnalystParameters=RDe;ae.TraceAnalystService=DDe;ae.ConnectedEdgesAnalystParameters=NDe;ae.ConnectedEdgesAnalystService=kDe;ae.GetLayersLegendInfoParameters=dot;ae.GetLayersLegendInfoService=FDe;ae.QueryParameters=OS;ae.QueryService=BDe;ae.RasterFunctionParameter=Vne;ae.Route=pz;ae.RouteCalculateMeasureParameters=GDe;ae.RouteCalculateMeasureService=zDe;ae.RouteLocatorParameters=UDe;ae.RouteLocatorService=VDe;ae.ServerColor=Js;ae.ServerFeature=u3;ae.ServerGeometry=Vo;ae.ServerStyle=gs;ae.ServerTextStyle=md;ae.ServerTheme=iDe;ae.SetDatasourceParameters=$De;ae.SetLayerInfoParameters=vot;ae.SetLayerInfoService=WDe;ae.SetLayersInfoParameters=pot;ae.SetLayersInfoService=HDe;ae.SetLayerStatusParameters=jDe;ae.SetLayerStatusService=XDe;ae.SingleObjectQueryJobsParameter=YDe;ae.SingleObjectQueryJobsService=sB;ae.Sortby=jE;ae.SpatialAnalystBase=Hu;ae.StopQueryParameters=qDe;ae.StopQueryService=ZDe;ae.SummaryAttributesJobsParameter=KDe;ae.SummaryAttributesJobsService=lB;ae.SummaryMeshJobParameter=JDe;ae.SummaryMeshJobsService=uB;ae.SummaryRegionJobParameter=QDe;ae.SummaryRegionJobsService=hB;ae.SupplyCenter=kne;ae.SurfaceAnalystParameters=_z;ae.SurfaceAnalystParametersSetting=hRe;ae.SurfaceAnalystService=eNe;ae.TerrainCurvatureCalculationParameters=_K;ae.TerrainCurvatureCalculationService=tNe;ae.Theme=R_;ae.ThemeDotDensity=Tz;ae.ThemeFlow=Fne;ae.ThemeGraduatedSymbol=Cz;ae.ThemeGraduatedSymbolStyle=qR;ae.ThemeGraph=Ez;ae.ThemeGraphAxes=jR;ae.ThemeGraphItem=bz;ae.ThemeGraphSize=XR;ae.ThemeGraphText=YR;ae.ThemeGridRange=Bne;ae.ThemeGridRangeItem=Pz;ae.ThemeGridUnique=Gne;ae.ThemeGridUniqueItem=Oz;ae.ThemeLabel=s3;ae.ThemeLabelAlongLine=WR;ae.ThemeLabelBackground=HR;ae.ThemeLabelItem=xz;ae.ThemeLabelText=$R;ae.ThemeLabelUniqueItem=zne;ae.ThemeMemoryData=yot;ae.ThemeOffset=o_;ae.ThemeParameters=rNe;ae.ThemeRange=Mz;ae.ThemeRangeItem=Az;ae.ThemeService=nNe;ae.ThemeUnique=wz;ae.ThemeUniqueItem=o3;ae.ThiessenAnalystParameters=Dne;ae.ThiessenAnalystService=iNe;ae.TilesetsService=oNe;ae.TopologyValidatorJobsParameter=sNe;ae.TopologyValidatorJobsService=cB;ae.TransferLine=Une;ae.TransferPathParameters=lNe;ae.TransferPathService=uNe;ae.TransferSolutionParameters=hNe;ae.TransferSolutionService=cNe;ae.TransportationAnalystParameter=$2;ae.TransportationAnalystResultSetting=aRe;ae.UGCLayer=Nne;ae.UGCMapLayer=rDe;ae.UGCSubLayer=l3;ae.UpdateDatasetParameters=SK;ae.UpdateEdgeWeightParameters=fNe;ae.UpdateEdgeWeightService=dNe;ae.UpdateTurnNodeWeightParameters=vNe;ae.UpdateTurnNodeWeightService=pNe;ae.Vector=sDe;ae.VectorClipJobsParameter=gNe;ae.VectorClipJobsService=fB;ae.WebPrintingJobContent=bNe;ae.WebPrintingJobCustomItems=yNe;ae.WebPrintingJobExportOptions=TNe;ae.WebPrintingJobImage=mNe;ae.WebPrintingJobLayers=$ne;ae.WebPrintingJobLayoutOptions=ENe;ae.WebPrintingJobLegendOptions=_Ne;ae.WebPrintingJobLittleMapOptions=xNe;ae.WebPrintingJobNorthArrowOptions=SNe;ae.WebPrintingJobParameters=xot;ae.WebPrintingJobScaleBarOptions=wNe;ae.WebPrintingService=CNe;ae.Online=Tot;ae.OnlineData=LNe;ae.OnlineQueryDatasParameter=Cot;ae.ServiceStatus=wot;ae.DataItemType=Dat;ae.DataItemOrderBy=bot;ae.FilterField=Eot;ae.OnlineServiceBase=INe;ae.Feature=ae.Feature||{};ae.Feature.Theme=am;ae.Feature.Theme.Bar=Nst;ae.Feature.Theme.Bar3D=kst;ae.Feature.Theme.Circle=Fst;ae.Feature.Theme.Graph=mw;ae.Feature.Theme.Line=Bst;ae.Feature.Theme.Pie=Gst;ae.Feature.Theme.Point=zst;ae.Feature.Theme.RankSymbol=zNe;ae.Feature.Theme.Ring=Ust;ae.Feature.Theme.ThemeVector=f3;ae.Feature.ShapeParameters=D_;ae.Feature.ShapeParameters.Circle=qne;ae.Feature.ShapeParameters.Image=kNe;ae.Feature.ShapeParameters.Label=Ib;ae.Feature.ShapeParameters.Line=UO;ae.Feature.ShapeParameters.Point=kz;ae.Feature.ShapeParameters.Polygon=I1;ae.Feature.ShapeParameters.Rectangle=IK;ae.Feature.ShapeParameters.Sector=Fz;ae.Feature.ShapeFactory=Vn;ae.LevelRenderer=Gg;ae.KeyServiceParameter=Aot;ae.SecurityManager=xs;ae.ServerInfo=Mot;ae.TokenServiceParameter=Iot;ae.ThemeStyle=Est;ae.CartoCSS=Pt;ae.ElasticSearch=Lot;ae.ArrayStatistic=vB;ae.ColorsPickerUtil=dB;ae.DataFormat=Ni;ae.ServerType=ZP;ae.GeometryType=Lc;ae.QueryOption=fz;ae.JoinType=lat;ae.SpatialQueryMode=n3;ae.SpatialRelationType=uat;ae.MeasureMode=JZ;ae.Unit=Wl;ae.BufferRadiusUnit=nOe;ae.EngineType=hat;ae.ThemeGraphTextFormat=iOe;ae.ThemeGraphType=aOe;ae.GraphAxesTextDisplayMode=oOe;ae.GraduatedMode=F8;ae.RangeMode=dz;ae.ThemeType=cat;ae.ColorGradientType=i3;ae.TextAlignment=sOe;ae.FillGradientMode=fat;ae.AlongLineDirection=lOe;ae.LabelBackShape=uOe;ae.LabelOverLengthMode=hOe;ae.DirectionType=dat;ae.OverlayOperationType=fOe;ae.OutputType=dOe;ae.SideType=vat;ae.SupplyCenterType=pat;ae.TurnType=gat;ae.BufferEndType=cOe;ae.SmoothMethod=vOe;ae.SurfaceAnalystMethod=pOe;ae.DataReturnMode=gOe;ae.EditType=GR;ae.TransferTactic=yOe;ae.TransferPreference=mOe;ae.GridType=yat;ae.ColorSpaceType=mat;ae.LayerType=_at;ae.UGCLayerType=xat;ae.StatisticMode=Sat;ae.PixelFormat=wat;ae.SearchMode=bat;ae.InterpolationAlgorithmType=Eat;ae.VariogramMode=_Oe;ae.Exponent=xOe;ae.ClientType=bne;ae.ChartType=Tat;ae.ClipAnalystMode=SOe;ae.AnalystAreaUnit=wOe;ae.AnalystSizeUnit=zR;ae.StatisticAnalystMode=bOe;ae.SummaryType=Ene;ae.TopologyValidatorRule=EOe;ae.BucketAggType=TOe;ae.MetricsAggType=COe;ae.GetFeatureMode=Cat;ae.RasterFunctionType=Tne;ae.ResourceType=Aat;ae.OrderBy=Mat;ae.OrderType=Iat;ae.SearchType=Lat;ae.AggregationTypes=Pat;ae.PermissionType=Oat;ae.EntityType=Rat;ae.WebExportFormatType=Nat;ae.WebScaleOrientationType=kat;ae.WebScaleType=Fat;ae.WebScaleUnit=Bat;ae.KnowledgeGraph=mte;ae.BoundsType=AOe;ae.CellSizeType=MOe;var E0r=function(){function n(){this.disposed=!1}return n.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},n.prototype.disposeInternal=function(){},n}();const LV=E0r;var T0r=function(){function n(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}return n.prototype.preventDefault=function(){this.defaultPrevented=!0},n.prototype.stopPropagation=function(){this.propagationStopped=!0},n}();const Fm=T0r;function C0r(n,e,t){for(var r,i,a=t||f2,o=0,s=n.length,l=!1;o>1),i=+a(n[r],e),i<0?o=r+1:(s=r,l=!i);return l?o:~o}function f2(n,e){return n>e?1:n0){for(i=1;i0?i-1:i:n[i-1]-e0||t&&o===0)})}function qA(){return!0}function OV(){return!1}function d2(){}function I0r(n){var e=!1,t,r,i;return function(){var a=Array.prototype.slice.call(arguments);return(!e||this!==i||!Iw(a,r))&&(e=!0,i=this,r=a,t=n.apply(this,arguments)),t}}var Ao=typeof Object.assign=="function"?Object.assign:function(n,e){if(n==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(n),r=1,i=arguments.length;r0:!1},e.prototype.removeEventListener=function(t,r){var i=this.listeners_&&this.listeners_[t];if(i){var a=i.indexOf(r);a!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[a]=d2,++this.pendingRemovals_[t]):(i.splice(a,1),i.length===0&&delete this.listeners_[t]))}},e}(LV);const QI=P0r,Ci={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 pa(n,e,t,r,i){if(r&&r!==n&&(t=t.bind(r)),i){var a=t;t=function(){n.removeEventListener(e,t),a.apply(this,arguments)}}var o={target:n,type:e,listener:t};return n.addEventListener(e,t),o}function K9(n,e,t,r){return pa(n,e,t,r,!0)}function Ms(n){n&&n.target&&(n.target.removeEventListener(n.type,n.listener),JI(n))}var O0r=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),RV=function(n){O0r(e,n);function e(){var t=n.call(this)||this;return t.on=t.onInternal,t.once=t.onceInternal,t.un=t.unInternal,t.revision_=0,t}return e.prototype.changed=function(){++this.revision_,this.dispatchEvent(Ci.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,r){if(Array.isArray(t)){for(var i=t.length,a=new Array(i),o=0;o=0||QS.match(/cpu (os|iphone os) 15_4 like mac os x/)),z0r=QS.indexOf("webkit")!==-1&&QS.indexOf("edge")==-1,U0r=QS.indexOf("macintosh")!==-1,iue=typeof devicePixelRatio<"u"?devicePixelRatio:1,DV=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,V0r=typeof Image<"u"&&Image.prototype.decode,Rje=function(){var n=!1;try{var e=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return n}();function Ad(n,e,t,r){var i;return t&&t.length?i=t.shift():DV?i=new OffscreenCanvas(n||300,e||300):i=document.createElement("canvas"),n&&(i.width=n),e&&(i.height=e),i.getContext("2d",r)}function U2e(n,e){var t=e.parentNode;t&&t.replaceChild(n,e)}function _te(n){return n&&n.parentNode?n.parentNode.removeChild(n):null}function $0r(n){for(;n.lastChild;)n.removeChild(n.lastChild)}function W0r(n,e){for(var t=n.childNodes,r=0;;++r){var i=t[r],a=e[r];if(!i&&!a)break;if(i!==a){if(!i){n.appendChild(a);continue}if(!a){n.removeChild(i),--r;continue}n.insertBefore(a,i)}}}var H0r=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),j0r=function(n){H0r(e,n);function e(t){var r=n.call(this)||this,i=t.element;return i&&!t.target&&!i.style.pointerEvents&&(i.style.pointerEvents="auto"),r.element=i||null,r.target_=null,r.map_=null,r.listenerKeys=[],t.render&&(r.render=t.render),t.target&&r.setTarget(t.target),r}return e.prototype.disposeInternal=function(){_te(this.element),n.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&_te(this.element);for(var r=0,i=this.listenerKeys.length;r0&&(this.length=e,this.max=this.length-1,this.slider.setAttribute("max",this.max))}setLayer(e){e&&(this.options.layer=e);var t=this,r=t.options.layer;r.on("tilesetsinfoloaded",function(i){var a=i.value&&i.value.tileVersions;t.update(a)}),r.on("tileversionschanged",function(i){var a=i.value&&i.value.tileVersion;t.setContent(a)}),t.getTileSetsInfo()}update(e){this.tileVersions=e||[],this.updateLength(this.tileVersions.length)}getTileSetsInfo(){var e=this;e.options.layer&&new nue(e.options.layer._url).getTilesets(function(r){e.options.layer.setTileSetsInfo(r.result)})}removeLayer(){this.options.layer=null}nextTilesVersion(){return this.firstLoad?(this.options.layer.nextTilesVersion(),this.firstLoad=!1,this):parseInt(this.slider.value)>this.max-1?this:(this.slider.value=parseInt(this.slider.value)+1,this.options.layer.nextTilesVersion(),this)}lastTilesVersion(){return parseInt(this.slider.value)1?(t=i,r=a):l>0&&(t+=o*l,r+=s*l)}return VE(n,e,t,r)}function VE(n,e,t,r){var i=t-n,a=r-e;return i*i+a*a}function J0r(n){for(var e=n.length,t=0;ti&&(i=o,r=a)}if(i===0)return null;var s=n[r];n[r]=n[t],n[t]=s;for(var l=t+1;l=0;f--){c[f]=n[f][e]/n[f][f];for(var d=f-1;d>=0;d--)n[d][e]-=n[d][f]*c[f]}return c}function l8(n){return n*Math.PI/180}function bS(n,e){var t=n%e;return t*e<0?t+e:t}function S1(n,e,t){return n+t*(e-n)}function Fje(n,e){var t=Math.pow(10,e);return Math.round(n*t)/t}function t6(n,e){return Math.floor(Fje(n,e))}function r6(n,e){return Math.ceil(Fje(n,e))}var Q0r=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),_k=6378137,_A=Math.PI*_k,eyr=[-_A,-_A,_A,_A],tyr=[-180,-85,180,85],n6=_k*Math.log(Math.tan(Math.PI/2)),xC=function(n){Q0r(e,n);function e(t){return n.call(this,{code:t,units:$c.METERS,extent:eyr,global:!0,worldExtent:tyr,getPointResolution:function(r,i){return r/Z0r(i[1]/_k)}})||this}return e}(ew),W2e=[new xC("EPSG:3857"),new xC("EPSG:102100"),new xC("EPSG:102113"),new xC("EPSG:900913"),new xC("http://www.opengis.net/def/crs/EPSG/0/3857"),new xC("http://www.opengis.net/gml/srs/epsg.xml#3857")];function ryr(n,e,t){var r=n.length,i=t>1?t:2,a=e;a===void 0&&(i>2?a=n.slice():a=new Array(r));for(var o=0;on6?s=n6:s<-n6&&(s=-n6),a[o+1]=s}return a}function nyr(n,e,t){var r=n.length,i=t>1?t:2,a=e;a===void 0&&(i>2?a=n.slice():a=new Array(r));for(var o=0;oi&&(l=l|Ih.RIGHT),sa&&(l=l|Ih.ABOVE),l===Ih.UNKNOWN&&(l=Ih.INTERSECTING),l}function Md(){return[1/0,1/0,-1/0,-1/0]}function pm(n,e,t,r,i){return i?(i[0]=n,i[1]=e,i[2]=t,i[3]=r,i):[n,e,t,r]}function xk(n){return pm(1/0,1/0,-1/0,-1/0,n)}function zje(n,e){var t=n[0],r=n[1];return pm(t,r,t,r,e)}function lue(n,e,t,r,i){var a=xk(i);return Vje(a,n,e,t,r)}function m_(n,e){return n[0]==e[0]&&n[2]==e[2]&&n[1]==e[1]&&n[3]==e[3]}function fyr(n,e,t){return Math.abs(n[0]-e[0])n[2]&&(n[2]=e[2]),e[1]n[3]&&(n[3]=e[3]),n}function AR(n,e){e[0]n[2]&&(n[2]=e[0]),e[1]n[3]&&(n[3]=e[1])}function Vje(n,e,t,r,i){for(;te[0]?r[0]=n[0]:r[0]=e[0],n[1]>e[1]?r[1]=n[1]:r[1]=e[1],n[2]=e[0]&&n[1]<=e[3]&&n[3]>=e[1]}function Sk(n){return n[2]=o&&p<=l),!r&&!!(a&Ih.RIGHT)&&!(i&Ih.RIGHT)&&(g=d-(f-l)*v,r=g>=s&&g<=u),!r&&!!(a&Ih.BELOW)&&!(i&Ih.BELOW)&&(p=f-(d-s)/v,r=p>=o&&p<=l),!r&&!!(a&Ih.LEFT)&&!(i&Ih.LEFT)&&(g=d-(f-o)*v,r=g>=s&&g<=u)}return r}function bte(n,e,t,r){var i=[];if(r>1)for(var a=n[2]-n[0],o=n[3]-n[1],s=0;s=t[2])){var i=Co(t),a=Math.floor((r[0]-t[0])/i),o=a*i;n[0]-=o,n[2]-=o}return n}function X2e(n,e,t){var r=t!==void 0?n.toFixed(t):""+n,i=r.indexOf(".");return i=i===-1?r.length:i,i>e?r:new Array(1+e-i).join("0")+r}function myr(n,e){for(var t=(""+n).split("."),r=(""+e).split("."),i=0;io)return 1;if(o>a)return-1}return 0}function _yr(n,e){return n[0]+=+e[0],n[1]+=+e[1],n}function Y2e(n,e,t){var r=bS(e+180,360)-180,i=Math.abs(3600*r),a=t||0,o=Math.pow(10,a),s=Math.floor(i/3600),l=Math.floor((i-s*3600)/60),u=i-s*3600-l*60;return u=Math.ceil(u*o)/o,u>=60&&(u=0,l+=1),l>=60&&(l=0,s+=1),s+"\xB0 "+X2e(l,2)+"\u2032 "+X2e(u,2,a)+"\u2033"+(r==0?"":" "+n.charAt(r<0?1:0))}function e7(n,e){for(var t=!0,r=n.length-1;r>=0;--r)if(n[r]!=e[r]){t=!1;break}return t}function uue(n,e){var t=Math.cos(e),r=Math.sin(e),i=n[0]*t-n[1]*r,a=n[1]*t+n[0]*r;return n[0]=i,n[1]=a,n}function xyr(n,e){return n[0]*=e,n[1]*=e,n}function hue(n,e){if(e.canWrapX()){var t=Co(e.getExtent()),r=Hje(n,e,t);r&&(n[0]-=r*t)}return n}function Hje(n,e,t){var r=e.getExtent(),i=0;if(e.canWrapX()&&(n[0]r[2])){var a=t||Co(r);i=Math.floor((n[0]-r[0])/a)}return i}const Kr={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"};var Syr=63710088e-1;function q2e(n,e,t){var r=t||Syr,i=l8(n[1]),a=l8(e[1]),o=(a-i)/2,s=l8(e[0]-n[0])/2,l=Math.sin(o)*Math.sin(o)+Math.sin(s)*Math.sin(s)*Math.cos(i)*Math.cos(a);return 2*r*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}var Ete=!0;function wyr(n){var e=n===void 0?!0:n;Ete=!e}function cue(n,e,t){var r;if(e!==void 0){for(var i=0,a=n.length;i=2;--u)o[s+u]=e[s+u]}return o}}function Tyr(n,e,t,r){var i=ya(n),a=ya(e);UM(i,a,Z2e(t)),UM(a,i,Z2e(r))}function Ry(n,e){if(n===e)return!0;var t=n.getUnits()===e.getUnits();if(n.getCode()===e.getCode())return t;var r=vue(n,e);return r===cue&&t}function vue(n,e){var t=n.getCode(),r=e.getCode(),i=Bje(t,r);return i||(i=jje),i}function __(n,e){var t=ya(n),r=ya(e);return vue(t,r)}function t7(n,e,t){var r=__(e,t);return r(n,void 0,n.length)}function Cte(n,e,t,r){var i=__(e,t);return bte(n,i,void 0,r)}var Cyr=null;function Ayr(){return Cyr}function Ate(n,e){return n}function c1(n,e){return Ete&&!e7(n,[0,0])&&n[0]>=-180&&n[0]<=180&&n[1]>=-90&&n[1]<=90&&(Ete=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),n}function Xje(n,e){return n}function F1(n,e){return n}function K2e(n,e,t){return function(r){var i=r[0],a=r[1],o,s;if(n.canWrapX()){var l=n.getExtent(),u=Co(l);s=Hje(r,n,u),s&&(i=i-s*u),i=Ui(i,l[0],l[2]),a=Ui(a,l[1],l[3]),o=t([i,a])}else o=t(r);return s&&e.canWrapX()&&(o[0]+=s*Co(e.getExtent())),o}}function Myr(){Tte(W2e),Tte(j2e),Eyr(j2e,W2e,ryr,nyr)}Myr();var Iyr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),FY="units",xb={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"},Lyr=[1,2,5],BY=25.4/.28,Pyr=function(n){Iyr(e,n);function e(t){var r=this,i=t||{},a=i.className!==void 0?i.className:i.bar?"ol-scale-bar":"ol-scale-line";return r=n.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this,r.on,r.once,r.un,r.innerElement_=document.createElement("div"),r.innerElement_.className=a+"-inner",r.element.className=a+" "+mk,r.element.appendChild(r.innerElement_),r.viewState_=null,r.minWidth_=i.minWidth!==void 0?i.minWidth:64,r.renderedVisible_=!1,r.renderedWidth_=void 0,r.renderedHTML_="",r.addChangeListener(FY,r.handleUnitsChanged_),r.setUnits(i.units||xb.METRIC),r.scaleBar_=i.bar||!1,r.scaleBarSteps_=i.steps||4,r.scaleBarText_=i.text||!1,r.dpi_=i.dpi||void 0,r}return e.prototype.getUnits=function(){return this.get(FY)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set(FY,t)},e.prototype.setDpi=function(t){this.dpi_=t},e.prototype.updateElement_=function(){var t=this.viewState_;if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}var r=t.center,i=t.projection,a=this.getUnits(),o=a==xb.DEGREES?$c.DEGREES:$c.METERS,s=sN(i,t.resolution,r,o),l=this.minWidth_*(this.dpi_||BY)/BY,u=l*s,h="";if(a==xb.DEGREES){var c=Hp[$c.DEGREES];u*=c,u=l)break;++f}var m;this.scaleBar_?m=this.createScaleBar(v,d,h):m=d.toFixed(p<0?-p:0)+" "+h,this.renderedHTML_!=m&&(this.innerElement_.innerHTML=m,this.renderedHTML_=m),this.renderedWidth_!=v&&(this.innerElement_.style.width=v+"px",this.renderedWidth_=v),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)},e.prototype.createScaleBar=function(t,r,i){for(var a="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),o=[],s=t/this.scaleBarSteps_,l="#ffffff",u=0;u
    '+this.createMarker("relative",u)+(u%2===0||this.scaleBarSteps_===2?this.createStepText(u,t,!1,r,i):"")+"
    "),u===this.scaleBarSteps_-1&&o.push(this.createStepText(u+1,t,!0,r,i)),l==="#ffffff"?l="#000000":l="#ffffff";var h;this.scaleBarText_?h='
    '+a+"
    ":h="";var c='
    '+h+o.join("")+"
    ";return c},e.prototype.createMarker=function(t,r){var i=t==="absolute"?3:-10;return'
    '},e.prototype.createStepText=function(t,r,i,a,o){var s=t===0?0:Math.round(a/this.scaleBarSteps_*t*100)/100,l=s+(t===0?"":" "+o),u=t===0?-3:r/this.scaleBarSteps_*-1,h=t===0?0:r/this.scaleBarSteps_*2;return'
    '+l+"
    "},e.prototype.getScaleForResolution=function(){var t=sN(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,$c.METERS),r=this.dpi_||BY,i=1e3/25.4;return parseFloat(t.toString())*i*r},e.prototype.render=function(t){var r=t.frameState;r?this.viewState_=r.viewState:this.viewState_=null,this.updateElement_()},e}(eL);const Oyr=Pyr;class Ryr extends Oyr{constructor(e){e=e||{},e.render=function(t){var r=t.frameState;r?this.viewState_=r.viewState:this.viewState_=null,this.updateElementRepair()},super(e)}updateElementRepair(){const e=this.viewState_||this.o||this.Om;if(!e){this.renderedVisible_=this.renderedVisible_||this.j||this.yn,this.renderedVisible_&&(this.element_=this.element_||this.c,this.element.style.display="none",this.renderedVisible_=!1);return}const t=e.center,r=e.projection,i=this.getUnits(),a=i=="degrees"?"degrees":"m";let o=sN(r,e.resolution,t,a);this.minWidth_=this.minWidth_||this.v||this.Em;let s=this.minWidth_*o,l="";if(i=="degrees"){const p=Hp.degrees;s*=p,s

    =this.minWidth_)break;++h}this.renderedHTML_=this.renderedHTML_||this.D||this.am,this.innerElement_=this.innerElement_||this.l||this.Tm,this.renderedWidth_=this.renderedWidth_||this.B||this.Am,this.renderedVisible_=this.renderedVisible_||this.j||this.yn,this.element_=this.element_||this.c;let v=c.toFixed(d<0?-d:0)+" "+l;this.renderedHTML_!=v&&(this.innerElement_.innerHTML=v,this.renderedHTML_=v),this.renderedWidth_!=f&&(this.innerElement_.style.width=f+"px",this.renderedWidth_=f),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}}class Dyr extends eL{constructor(e){e=e||{},e.imageUrl=e.imageUrl||null,e.width=e.width||null,e.height=e.height||null,e.alt=e.alt||"SuperMap iClient",super(e),this.options=e,this.element=e.element=t.call(this);function t(){var i="ol-control-logo ol-unselectable ol-control",a=document.createElement("div");a.className=i,r.call(this,a);var o=Yat;this.options.imageUrl&&(o=this.options.imageUrl);var s=this.options.alt,l=this.options.link,u="94px",h="29px",c="width:"+u+";height:"+h+";";return this.options.imageUrl&&(u=this.options.width,h=this.options.height,c="width:"+u+";height:"+h+";",(!u||!h)&&(c="")),a.innerHTML=""+s+"",a}function r(i){var a=document.getElementsByClassName("ol-attribution");a=a&&a[0];var o=a&&a.clientHeight||29;i.style.bottom=parseInt(o)+6+"px",i.style.right="4px",i.style.marginTop=0,i.style.marginLeft=0,i.style.marginBottom=0,i.style.marginRight=0;var s=document.createElement("style");s.type="text/css",s.innerHTML=".ol-control-logo,.ol-control-logo:hover {background-color: rgba(255,255,255,0);}",document.getElementsByTagName("head")[0].appendChild(s)}}}var J2e={"point-file":"pointFile","point-fill":"fillStyle","point-radius":"pointRadius","point-halo-radius":"pointHaloRadius","point-halo-color":"pointHaloColor","point-dx":"offsetX","point-dy":"offsetY","point-opacity":"globalAlpha","point-comp-op":"globalCompositeOperation"},GY={"line-color":"strokeStyle","line-width":"lineWidth","line-cap":"lineCap","line-join":"lineJoin","line-miterlimit":"miterLimit","line-dash-offset":"lineDashOffset","line-opacity":"strokeOpacity","line-dasharray":"lineDasharray","line-offset":"offset","line-comp-op":"globalCompositeOperation"},zY={"line-color":"strokeStyle","line-width":"lineWidth","line-cap":"lineCap","line-join":"lineJoin","line-miterlimit":"miterLimit","line-dash-offset":"lineDashOffset","line-opacity":"strokeOpacity","line-dasharray":"lineDasharray","polygon-fill":"fillStyle","polygon-dx":"offsetX","polygon-dy":"offsetY","polygon-opacity":"fillOpacity","polygon-comp-op":"globalCompositeOperation"},UY={CartoStyleMap:{TEXT:{"text-size":"fontSize","text-face-name":"fontFamily","text-align":"textAlign","text-vertical-alignment":"textBaseline","text-horizontal-alignment":"textAlign","text-bold":"bold","text-weight":"fontWeight","text-name":"textName","text-halo-radius":"haloRadius","text-halo-color":"backColor","text-fill":"foreColor","text-opacity":"globalAlpha","text-dx":"offsetX","text-dy":"offsetY","text-comp-op":"globalCompositeOperation"},POINT:J2e,MULTIPOINT:J2e,LINE:GY,LINESTRING:GY,MULTILINESTRING:GY,REGION:zY,POLYGON:zY,MULTIPOLYGON:zY},ServerStyleMap:{fillBackOpaque:{canvasStyle:"",type:"bool",defaultValue:!0},lineWidth:{canvasStyle:"lineWidth",type:"number",unit:"mm",defaultValue:.1},fillBackColor:{canvasStyle:"",type:"color",defaultValue:"rgba(0,0,0,0)"},markerWidth:{canvasStyle:"",type:"number",unit:"mm",defaultValue:""},markerAngle:{canvasStyle:"",type:"number",unit:"degree",defaultValue:""},fillForeColor:{canvasStyle:"fillStyle",type:"color",defaultValue:"rgba(0,0,0,0)"},foreColor:{canvasStyle:"fillStyle",type:"color",defaultValue:"rgba(0,0,0,0)"},markerSize:{canvasStyle:"markerSize",type:"number",unit:"mm",defaultValue:2.4},fillGradientOffsetRatioX:{canvasStyle:"",type:"number",defaultValue:0},fillGradientOffsetRatioY:{canvasStyle:"",type:"number",defaultValue:0},lineColor:{canvasStyle:"strokeStyle",type:"color",defaultValue:"rgba(0,0,0,0)"},fillOpaqueRate:{canvasStyle:"",type:"number",defaultValue:100},markerHeight:{canvasStyle:"",type:"number",unit:"mm",defaultValue:0},fillGradientMode:{canvasStyle:"",type:"string",defaultValue:"NONE"},fillSymbolID:{canvasStyle:"",type:"number",defaultValue:0},fillGradientAngle:{canvasStyle:"",type:"number",unit:"degree",defaultValue:0},markerSymbolID:{canvasStyle:"",type:"number",defaultValue:0},lineSymbolID:{canvasStyle:"",type:"number",defaultValue:0}},CartoCompOpMap:{clear:"",src:"",dst:"","src-over":"source-over","dst-over":"destination-over","src-in":"source-in","dst-in":"destination-in","src-out":"source-out","dst-out":"destination-out","src-atop":"source-atop","dst-atop":"destination-atop",xor:"xor",plus:"lighter",minus:"",multiply:"",screen:"",overlay:"",darken:"",lighten:"lighter","color-dodge":"","color-burn":"","hard-light":"","soft-light":"",difference:"",exclusion:"",contrast:"",invert:"","invert-rgb":"","grain-merge":"","grain-extract":"",hue:"",saturation:"",color:"",value:""}},Q2e={pointFile:"",pointRadius:3,pointHaloRadius:1,pointHaloColor:"#c33",offsetX:0,offsetY:0,fillStyle:"#fc0",globalAlpha:1,globalCompositeOperation:"source-over",imageSmoothingEnabled:!0},VY={strokeStyle:"rgba(0,0,0,0)",lineWidth:1,lineCap:"butt",lineJoin:"round",miterLimit:10,lineDashOffset:0,lineDasharray:[],strokeOpacity:1,offset:0,globalAlpha:1,globalCompositeOperation:"source-over",imageSmoothingEnabled:!0},$Y={strokeStyle:"rgba(0,0,0,0)",lineWidth:1,lineCap:"butt",lineJoin:"round",miterLimit:10,lineDashOffset:0,lineOpacity:1,fillOpacity:1,lineDasharray:[],fillStyle:"rgba(0,0,0,0)",polygonOpacity:1,offsetX:0,offsetY:0,globalAlpha:1,globalCompositeOperation:"source-over",imageSmoothingEnabled:!0},Nyr={TEXT:{font:"10px sans-serif",textAlign:"middle",textBaseline:"center",direction:"ltr",bold:!1,haloRadius:0,backColor:"rgba(255,255,255,1)",foreColor:"rgba(0,0,0,1)",offsetX:0,offsetY:0,textHeight:0,globalAlpha:1,globalCompositeOperation:"source-over",imageSmoothingEnabled:!0},POINT:Q2e,MULTIPOINT:Q2e,LINE:VY,LINESTRING:VY,MULTILINESTRING:VY,REGION:$Y,POLYGON:$Y,MULTIPOLYGON:$Y,SHADOW:{shadowBlur:0,shadowColor:"rgba(0,0,0,0)",shadowOffsetX:0,shadowOffsetY:0},GLOBAL:{globalAlpha:1,globalCompositeOperation:"source-over",imageSmoothingEnabled:!0}},pue=new Array(6);function Nu(){return[1,0,0,1,0,0]}function MR(n){return wk(n,1,0,0,1,0,0)}function rL(n,e){var t=n[0],r=n[1],i=n[2],a=n[3],o=n[4],s=n[5],l=e[0],u=e[1],h=e[2],c=e[3],f=e[4],d=e[5];return n[0]=t*l+i*u,n[1]=r*l+a*u,n[2]=t*h+i*c,n[3]=r*h+a*c,n[4]=t*f+i*d+o,n[5]=r*f+a*d+s,n}function wk(n,e,t,r,i,a,o){return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n[4]=a,n[5]=o,n}function kyr(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function ks(n,e){var t=e[0],r=e[1];return e[0]=n[0]*t+n[2]*r+n[4],e[1]=n[1]*t+n[3]*r+n[5],e}function Fyr(n,e){var t=Math.cos(e),r=Math.sin(e);return rL(n,wk(pue,t,r,-r,t,0,0))}function IR(n,e,t){return rL(n,wk(pue,e,0,0,t,0,0))}function Byr(n,e,t){return wk(n,e,0,0,t,0,0)}function Gyr(n,e,t){return rL(n,wk(pue,1,0,0,1,e,t))}function Id(n,e,t,r,i,a,o,s){var l=Math.sin(a),u=Math.cos(a);return n[0]=r*u,n[1]=i*l,n[2]=-r*l,n[3]=i*u,n[4]=o*r*u-s*r*l+e,n[5]=o*i*l+s*i*u+t,n}function bk(n,e){var t=zyr(e);ki(t!==0,32);var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5];return n[0]=o/t,n[1]=-i/t,n[2]=-a/t,n[3]=r/t,n[4]=(a*l-o*s)/t,n[5]=-(r*l-i*s)/t,n}function zyr(n){return n[0]*n[3]-n[1]*n[2]}var eTe;function gue(n){var e="matrix("+n.join(", ")+")";if(DV)return e;var t=eTe||(eTe=document.createElement("div"));return t.style.transform=e,t.style.transform}function ES(n,e,t,r,i,a){for(var o=a||[],s=0,l=e;l=n){var a=0;for(var o in e)(a++&3)===0&&(delete e[o],--t)}i=Zyr(r),e[r]=i,++t}return i}}();function r7(n){return Array.isArray(n)?n:qyr(n)}function Zyr(n){var e,t,r,i,a;if(Xyr.exec(n)&&(n=Yyr(n)),jyr.exec(n)){var o=n.length-1,s=void 0;o<=4?s=1:s=2;var l=o===4||o===8;e=parseInt(n.substr(1+0*s,s),16),t=parseInt(n.substr(1+1*s,s),16),r=parseInt(n.substr(1+2*s,s),16),l?i=parseInt(n.substr(1+3*s,s),16):i=255,s==1&&(e=(e<<4)+e,t=(t<<4)+t,r=(r<<4)+r,l&&(i=(i<<4)+i)),a=[e,t,r,i/255]}else n.indexOf("rgba(")==0?(a=n.slice(5,-1).split(",").map(Number),rTe(a)):n.indexOf("rgb(")==0?(a=n.slice(4,-1).split(",").map(Number),a.push(1),rTe(a)):ki(!1,14);return a}function rTe(n){return n[0]=Ui(n[0]+.5|0,0,255),n[1]=Ui(n[1]+.5|0,0,255),n[2]=Ui(n[2]+.5|0,0,255),n[3]=Ui(n[3],0,1),n}function Kje(n){var e=n[0];e!=(e|0)&&(e=e+.5|0);var t=n[1];t!=(t|0)&&(t=t+.5|0);var r=n[2];r!=(r|0)&&(r=r+.5|0);var i=n[3]===void 0?1:Math.round(n[3]*100)/100;return"rgba("+e+","+t+","+r+","+i+")"}function jy(n){return Array.isArray(n)?Kje(n):n}var Jje="10px sans-serif",K1="#000",n7="round",lN=[],uN=0,VM="round",hN=10,cN="#000",fN="center",i7="middle",pE=[0,0,0,0],dN=1,f1=new kv,Kyr=new QI;Kyr.setSize=function(){console.warn("labelCache is deprecated.")};var QC=null,Mte,Ite={},Jyr=function(){var n=100,e="32px ",t=["monospace","serif"],r=t.length,i="wmytzilWMYTZIL@#/&?$%10\uF013",a,o;function s(u,h,c){for(var f=!0,d=0;d0;)this.pop()},e.prototype.extend=function(t){for(var r=0,i=t.length;rt;){if(r-t>600){var a=r-t+1,o=e-t+1,s=Math.log(a),l=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*l*(a-l)/a)*(o-a/2<0?-1:1),h=Math.max(t,Math.floor(e-o*l/a+u)),c=Math.min(r,Math.floor(e+(a-o)*l/a+u));iXe(n,e,h,c,i)}var f=n[e],d=t,v=r;for(RP(n,t,e),i(n[r],f)>0&&RP(n,t,r);d0;)v--}i(n[t],f)===0?RP(n,t,v):(v++,RP(n,v,r)),v<=e&&(t=v+1),e<=v&&(r=v-1)}}function RP(n,e,t){var r=n[e];n[e]=n[t],n[t]=r}function bmr(n,e){return ne?1:0}class aXe{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data;const r=[];if(!o6(e,t))return r;const i=this.toBBox,a=[];for(;t;){for(let o=0;o=0&&a[t].children.length>this._maxEntries;)this._split(a,t),t--;this._adjustParentBBoxes(i,a,t)}_split(e,t){const r=e[t],i=r.children.length,a=this._minEntries;this._chooseSplitAxis(r,a,i);const o=this._chooseSplitIndex(r,a,i),s=eA(r.children.splice(o,r.children.length-o));s.height=r.height,s.leaf=r.leaf,SC(r,this.toBBox),SC(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(r,s)}_splitRoot(e,t){this.data=eA([e,t]),this.data.height=e.height+1,this.data.leaf=!1,SC(this.data,this.toBBox)}_chooseSplitIndex(e,t,r){let i,a=1/0,o=1/0;for(let s=t;s<=r-t;s++){const l=TO(e,0,s,this.toBBox),u=TO(e,s,r,this.toBBox),h=Mmr(l,u),c=WY(l)+WY(u);h=t;u--){const h=e.children[u];CO(s,e.leaf?a(h):h),l+=a6(s)}return l}_adjustParentBBoxes(e,t,r){for(let i=r;i>=0;i--)CO(t[i],e)}_condense(e){for(let t=e.length-1,r;t>=0;t--)e[t].children.length===0?t>0?(r=e[t-1].children,r.splice(r.indexOf(e[t]),1)):this.clear():SC(e[t],this.toBBox)}}function Emr(n,e,t){if(!t)return e.indexOf(n);for(let r=0;r=n.minX&&e.maxY>=n.minY}function eA(n){return{children:n,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function oTe(n,e,t,r,i){const a=[e,t];for(;a.length;){if(t=a.pop(),e=a.pop(),t-e<=r)continue;const o=e+Math.ceil((t-e)/r/2)*r;wmr(n,o,e,t,i),a.push(e,o,o,t)}}var Imr=function(){function n(e){this.rbush_=new aXe(e),this.items_={}}return n.prototype.insert=function(e,t){var r={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3],value:t};this.rbush_.insert(r),this.items_[vi(t)]=r},n.prototype.load=function(e,t){for(var r=new Array(t.length),i=0,a=t.length;i=200&&s.status<300){var u=e.getType(),h=void 0;u==qb.JSON||u==qb.TEXT?h=s.responseText:u==qb.XML?(h=s.responseXML,h||(h=new DOMParser().parseFromString(s.responseText,"application/xml"))):u==qb.ARRAY_BUFFER&&(h=s.response),h?a(e.readFeatures(h,{extent:t,featureProjection:i}),e.readProjection(h)):o()}else o()},s.onerror=o,s.send()}function hTe(n,e){return function(t,r,i,a,o){var s=this;sXe(n,e,t,r,i,function(l,u){s.addFeatures(l),a!==void 0&&a(l)},o||d2)}}var lXe=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),mx=function(n){lXe(e,n);function e(t,r,i){var a=n.call(this,t)||this;return a.feature=r,a.features=i,a}return e}(Fm),Rmr=function(n){lXe(e,n);function e(t){var r=this,i=t||{};r=n.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:p2.READY,wrapX:i.wrapX!==void 0?i.wrapX:!0})||this,r.on,r.once,r.un,r.loader_=d2,r.format_=i.format,r.overlaps_=i.overlaps===void 0?!0:i.overlaps,r.url_=i.url,i.loader!==void 0?r.loader_=i.loader:r.url_!==void 0&&(ki(r.format_,7),r.loader_=hTe(r.url_,r.format_)),r.strategy_=i.strategy!==void 0?i.strategy:oXe;var a=i.useSpatialIndex!==void 0?i.useSpatialIndex:!0;r.featuresRtree_=a?new sTe:null,r.loadedExtentsRtree_=new sTe,r.loadingExtentsCount_=0,r.nullGeometryFeatures_={},r.idIndex_={},r.uidIndex_={},r.featureChangeKeys_={},r.featuresCollection_=null;var o,s;return Array.isArray(i.features)?s=i.features:i.features&&(o=i.features,s=o.getArray()),!a&&o===void 0&&(o=new gd(s)),s!==void 0&&r.addFeaturesInternal(s),o!==void 0&&r.bindFeaturesCollection_(o),r}return e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var r=vi(t);if(!this.addToIndex_(r,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(r,t);var i=t.getGeometry();if(i){var a=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(a,t)}else this.nullGeometryFeatures_[r]=t;this.dispatchEvent(new mx(yf.ADDFEATURE,t))},e.prototype.setupChangeEvents_=function(t,r){this.featureChangeKeys_[t]=[pa(r,Ci.CHANGE,this.handleFeatureChange_,this),pa(r,zM.PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,r){var i=!0,a=r.getId();return a!==void 0&&(a.toString()in this.idIndex_?i=!1:this.idIndex_[a.toString()]=r),i&&(ki(!(t in this.uidIndex_),30),this.uidIndex_[t]=r),i},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var r=[],i=[],a=[],o=0,s=t.length;o0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),n.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var r=this.loadedExtentsRtree_,i;r.forEachInExtent(t,function(a){if(m_(a.extent,t))return i=a,!0}),i&&r.remove(i)},e.prototype.removeFeature=function(t){if(!!t){var r=vi(t);r in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[r]:this.featuresRtree_&&this.featuresRtree_.remove(t);var i=this.removeFeatureInternal(t);i&&this.changed()}},e.prototype.removeFeatureInternal=function(t){var r=vi(t),i=this.featureChangeKeys_[r];if(!!i){i.forEach(Ms),delete this.featureChangeKeys_[r];var a=t.getId();return a!==void 0&&delete this.idIndex_[a.toString()],delete this.uidIndex_[r],this.dispatchEvent(new mx(yf.REMOVEFEATURE,t)),t}},e.prototype.removeFromIdIndex_=function(t){var r=!1;for(var i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],r=!0;break}return r},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){ki(this.format_,7),this.url_=t,this.setLoader(hTe(t,this.format_))},e}(_ue);const _f=Rmr,jo={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"};var Dmr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Nmr=function(n){Dmr(e,n);function e(t){var r=n.call(this)||this;r.on,r.once,r.un,r.background_=t.background;var i=Ao({},t);return typeof t.properties=="object"&&(delete i.properties,Ao(i,t.properties)),i[jo.OPACITY]=t.opacity!==void 0?t.opacity:1,ki(typeof i[jo.OPACITY]=="number",64),i[jo.VISIBLE]=t.visible!==void 0?t.visible:!0,i[jo.Z_INDEX]=t.zIndex,i[jo.MAX_RESOLUTION]=t.maxResolution!==void 0?t.maxResolution:1/0,i[jo.MIN_RESOLUTION]=t.minResolution!==void 0?t.minResolution:0,i[jo.MIN_ZOOM]=t.minZoom!==void 0?t.minZoom:-1/0,i[jo.MAX_ZOOM]=t.maxZoom!==void 0?t.maxZoom:1/0,r.className_=i.className!==void 0?i.className:"ol-layer",delete i.className,r.setProperties(i),r.state_=null,r}return e.prototype.getBackground=function(){return this.background_},e.prototype.getClassName=function(){return this.className_},e.prototype.getLayerState=function(t){var r=this.state_||{layer:this,managed:t===void 0?!0:t},i=this.getZIndex();return r.opacity=Ui(Math.round(this.getOpacity()*100)/100,0,1),r.visible=this.getVisible(),r.extent=this.getExtent(),r.zIndex=i===void 0&&!r.managed?1/0:i,r.maxResolution=this.getMaxResolution(),r.minResolution=Math.max(this.getMinResolution(),0),r.minZoom=this.getMinZoom(),r.maxZoom=this.getMaxZoom(),this.state_=r,r},e.prototype.getLayersArray=function(t){return ti()},e.prototype.getLayerStatesArray=function(t){return ti()},e.prototype.getExtent=function(){return this.get(jo.EXTENT)},e.prototype.getMaxResolution=function(){return this.get(jo.MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(jo.MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(jo.MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(jo.MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(jo.OPACITY)},e.prototype.getSourceState=function(){return ti()},e.prototype.getVisible=function(){return this.get(jo.VISIBLE)},e.prototype.getZIndex=function(){return this.get(jo.Z_INDEX)},e.prototype.setBackground=function(t){this.background_=t,this.changed()},e.prototype.setExtent=function(t){this.set(jo.EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(jo.MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(jo.MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(jo.MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(jo.MIN_ZOOM,t)},e.prototype.setOpacity=function(t){ki(typeof t=="number",64),this.set(jo.OPACITY,t)},e.prototype.setVisible=function(t){this.set(jo.VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(jo.Z_INDEX,t)},e.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),n.prototype.disposeInternal.call(this)},e}(kv);const uXe=Nmr,Tf={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"};var kmr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Ek=function(n){kmr(e,n);function e(t){var r=this,i=Ao({},t);delete i.source,r=n.call(this,i)||this,r.on,r.once,r.un,r.mapPrecomposeKey_=null,r.mapRenderKey_=null,r.sourceChangeKey_=null,r.renderer_=null,r.rendered=!1,t.render&&(r.render=t.render),t.map&&r.setMap(t.map),r.addChangeListener(jo.SOURCE,r.handleSourcePropertyChange_);var a=t.source?t.source:null;return r.setSource(a),r}return e.prototype.getLayersArray=function(t){var r=t||[];return r.push(this),r},e.prototype.getLayerStatesArray=function(t){var r=t||[];return r.push(this.getLayerState()),r},e.prototype.getSource=function(){return this.get(jo.SOURCE)||null},e.prototype.getRenderSource=function(){return this.getSource()},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():p2.UNDEFINED},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Ms(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=pa(t,Ci.CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.getFeatures=function(t){return this.renderer_?this.renderer_.getFeatures(t):new Promise(function(r){return r([])})},e.prototype.getData=function(t){return!this.renderer_||!this.rendered?null:this.renderer_.getData(t)},e.prototype.render=function(t,r){var i=this.getRenderer();if(i.prepareFrame(t))return this.rendered=!0,i.renderFrame(t,r)},e.prototype.unrender=function(){this.rendered=!1},e.prototype.setMapInternal=function(t){t||this.unrender(),this.set(jo.MAP,t)},e.prototype.getMapInternal=function(){return this.get(jo.MAP)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&(Ms(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Ms(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=pa(t,Tf.PRECOMPOSE,function(r){var i=r,a=i.frameState.layerStatesArray,o=this.getLayerState(!1);ki(!a.some(function(s){return s.layer===o.layer}),67),a.push(o)},this),this.mapRenderKey_=pa(this,Ci.CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(jo.SOURCE,t)},e.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},e.prototype.hasRenderer=function(){return!!this.renderer_},e.prototype.createRenderer=function(){return null},e.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),n.prototype.disposeInternal.call(this)},e}(uXe);function s7(n,e){if(!n.visible)return!1;var t=e.resolution;if(t=n.maxResolution)return!1;var r=e.zoom;return r>n.minZoom&&r<=n.maxZoom}function cTe(n,e,t){return t===void 0&&(t=[0,0]),t[0]=n[0]+2*e,t[1]=n[1]+2*e,t}function fTe(n){return n[0]>0&&n[1]>0}function hXe(n,e,t){return t===void 0&&(t=[0,0]),t[0]=n[0]*e+.5|0,t[1]=n[1]*e+.5|0,t}function nh(n,e){return Array.isArray(n)?n:(e===void 0?e=[n,n]:(e[0]=n,e[1]=n),e)}var Fmr=function(){function n(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=nh(e.scale),this.displacement_=e.displacement}return n.prototype.clone=function(){var e=this.getScale();return new n({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()})},n.prototype.getOpacity=function(){return this.opacity_},n.prototype.getRotateWithView=function(){return this.rotateWithView_},n.prototype.getRotation=function(){return this.rotation_},n.prototype.getScale=function(){return this.scale_},n.prototype.getScaleArray=function(){return this.scaleArray_},n.prototype.getDisplacement=function(){return this.displacement_},n.prototype.getAnchor=function(){return ti()},n.prototype.getImage=function(e){return ti()},n.prototype.getHitDetectionImage=function(){return ti()},n.prototype.getPixelRatio=function(e){return 1},n.prototype.getImageState=function(){return ti()},n.prototype.getImageSize=function(){return ti()},n.prototype.getOrigin=function(){return ti()},n.prototype.getSize=function(){return ti()},n.prototype.setDisplacement=function(e){this.displacement_=e},n.prototype.setOpacity=function(e){this.opacity_=e},n.prototype.setRotateWithView=function(e){this.rotateWithView_=e},n.prototype.setRotation=function(e){this.rotation_=e},n.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=nh(e)},n.prototype.listenImageChange=function(e){ti()},n.prototype.load=function(){ti()},n.prototype.unlistenImageChange=function(e){ti()},n}();const cXe=Fmr;var Bmr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Gmr=function(n){Bmr(e,n);function e(t){var r=this,i=t.rotateWithView!==void 0?t.rotateWithView:!1;return r=n.call(this,{opacity:1,rotateWithView:i,rotation:t.rotation!==void 0?t.rotation:0,scale:t.scale!==void 0?t.scale:1,displacement:t.displacement!==void 0?t.displacement:[0,0]})||this,r.canvas_=void 0,r.hitDetectionCanvas_=null,r.fill_=t.fill!==void 0?t.fill:null,r.origin_=[0,0],r.points_=t.points,r.radius_=t.radius!==void 0?t.radius:t.radius1,r.radius2_=t.radius2,r.angle_=t.angle!==void 0?t.angle:0,r.stroke_=t.stroke!==void 0?t.stroke:null,r.size_=null,r.renderOptions_=null,r.render(),r}return e.prototype.clone=function(){var t=this.getScale(),r=new e({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()});return r.setOpacity(this.getOpacity()),r},e.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var r=this.getDisplacement();return[t[0]/2-r[0],t[1]/2+r[1]]},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},e.prototype.getImage=function(t){var r=this.canvas_[t];if(!r){var i=this.renderOptions_,a=Ad(i.size*t,i.size*t);this.draw_(i,a,t),r=a.canvas,this.canvas_[t]=r}return r},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.size_},e.prototype.getImageState=function(){return Ai.LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.calculateLineJoinSize_=function(t,r,i){if(r===0||this.points_===1/0||t!=="bevel"&&t!=="miter")return r;var a=this.radius_,o=this.radius2_===void 0?a:this.radius2_;if(al&&(this.instructions.push([yi.CUSTOM,l,h,t,i,cS]),this.hitDetectionInstructions.push([yi.CUSTOM,l,h,t,a||i,cS]));break;case Kr.POINT:u=t.getFlatCoordinates(),this.coordinates.push(u[0],u[1]),h=this.coordinates.length,this.instructions.push([yi.CUSTOM,l,h,t,i]),this.hitDetectionInstructions.push([yi.CUSTOM,l,h,t,a||i]);break}this.endGeometry(r)},e.prototype.beginGeometry=function(t,r){this.beginGeometryInstruction1_=[yi.BEGIN_GEOMETRY,r,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[yi.BEGIN_GEOMETRY,r,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t=this.hitDetectionInstructions;t.reverse();var r,i=t.length,a,o,s=-1;for(r=0;rthis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0},e.prototype.createFill=function(t){var r=t.fillStyle,i=[yi.SET_FILL_STYLE,r];return typeof r!="string"&&i.push(!0),i},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[yi.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,r){var i=t.fillStyle;(typeof i!="string"||t.currentFillStyle!=i)&&(i!==void 0&&this.instructions.push(r.call(this,t)),t.currentFillStyle=i)},e.prototype.updateStrokeStyle=function(t,r){var i=t.strokeStyle,a=t.lineCap,o=t.lineDash,s=t.lineDashOffset,l=t.lineJoin,u=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=a||o!=t.currentLineDash&&!Iw(t.currentLineDash,o)||t.currentLineDashOffset!=s||t.currentLineJoin!=l||t.currentLineWidth!=u||t.currentMiterLimit!=h)&&(i!==void 0&&r.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=a,t.currentLineDash=o,t.currentLineDashOffset=s,t.currentLineJoin=l,t.currentLineWidth=u,t.currentMiterLimit=h)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var r=[yi.END_GEOMETRY,t];this.instructions.push(r),this.hitDetectionInstructions.push(r)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Gje(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;f0(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(qje);const Ck=qmr;var Zmr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Kmr=function(n){Zmr(e,n);function e(t,r,i,a){var o=n.call(this,t,r,i,a)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterImageWithText_=void 0,o}return e.prototype.drawPoint=function(t,r){if(!!this.image_){this.beginGeometry(t,r);var i=t.getFlatCoordinates(),a=t.getStride(),o=this.coordinates.length,s=this.appendFlatPointCoordinates(i,a);this.instructions.push([yi.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.originY_,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.declutterImageWithText_]),this.hitDetectionInstructions.push([yi.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(r)}},e.prototype.drawMultiPoint=function(t,r){if(!!this.image_){this.beginGeometry(t,r);var i=t.getFlatCoordinates(),a=t.getStride(),o=this.coordinates.length,s=this.appendFlatPointCoordinates(i,a);this.instructions.push([yi.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.originY_,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.declutterImageWithText_]),this.hitDetectionInstructions.push([yi.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(r)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,n.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,r){var i=t.getAnchor(),a=t.getSize(),o=t.getHitDetectionImage(),s=t.getImage(this.pixelRatio),l=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=o,this.image_=s,this.height_=a[1],this.opacity_=t.getOpacity(),this.originX_=l[0]*this.imagePixelRatio_,this.originY_=l[1]*this.imagePixelRatio_,this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=a[0],this.declutterImageWithText_=r},e}(Ck);const Jmr=Kmr;var Qmr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),e1r=function(n){Qmr(e,n);function e(t,r,i,a){return n.call(this,t,r,i,a)||this}return e.prototype.drawFlatCoordinates_=function(t,r,i,a){var o=this.coordinates.length,s=this.appendFlatLineCoordinates(t,r,i,a,!1,!1),l=[yi.MOVE_TO_LINE_TO,o,s];return this.instructions.push(l),this.hitDetectionInstructions.push(l),i},e.prototype.drawLineString=function(t,r){var i=this.state,a=i.strokeStyle,o=i.lineWidth;if(!(a===void 0||o===void 0)){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,r),this.hitDetectionInstructions.push([yi.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,lN,uN],gE);var s=t.getFlatCoordinates(),l=t.getStride();this.drawFlatCoordinates_(s,0,s.length,l),this.hitDetectionInstructions.push(hS),this.endGeometry(r)}},e.prototype.drawMultiLineString=function(t,r){var i=this.state,a=i.strokeStyle,o=i.lineWidth;if(!(a===void 0||o===void 0)){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,r),this.hitDetectionInstructions.push([yi.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],gE);for(var s=t.getEnds(),l=t.getFlatCoordinates(),u=t.getStride(),h=0,c=0,f=s.length;c0;){for(var c=u.pop(),f=u.pop(),d=0,v=n[f],p=n[f+1],g=n[c],m=n[c+1],y=f+r;yd&&(h=y,d=S)}d>i&&(l[(h-e)/r]=1,f+r0&&p>d)&&(v<0&&g0&&g>v)){u=c,h=f;continue}a[o++]=u,a[o++]=h,s=u,l=h,u=c,h=f}}return a[o++]=u,a[o++]=h,o}function dXe(n,e,t,r,i,a,o,s){for(var l=0,u=t.length;ln&&(l>s&&(s=l,a=u,o=c),l=0,u=c-i)),f=d,g=y,m=_),v=x,p=S}return l+=d,l>s?[u,c]:[a,o]}var l1r=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),u7={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},u1r=function(n){l1r(e,n);function e(t,r,i,a){var o=n.call(this,t,r,i,a)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return e.prototype.finish=function(){var t=n.prototype.finish.call(this);return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t},e.prototype.drawText=function(t,r){var i=this.textFillState_,a=this.textStrokeState_,o=this.textState_;if(!(this.text_===""||!o||!i&&!a)){var s=this.coordinates,l=s.length,u=t.getType(),h=null,c=t.getStride();if(o.placement===vXe.LINE&&(u==Kr.LINE_STRING||u==Kr.MULTI_LINE_STRING||u==Kr.POLYGON||u==Kr.MULTI_POLYGON)){if(!Cl(this.getBufferedMaxExtent(),t.getExtent()))return;var f=void 0;if(h=t.getFlatCoordinates(),u==Kr.LINE_STRING)f=[h.length];else if(u==Kr.MULTI_LINE_STRING)f=t.getEnds();else if(u==Kr.POLYGON)f=t.getEnds().slice(0,1);else if(u==Kr.MULTI_POLYGON){var d=t.getEndss();f=[];for(var v=0,p=d.length;vM[2]}else A=x>T;var I=Math.PI,R=[],k=w+r===e;e=w,g=0,m=b,f=n[e],d=n[e+1];var D;if(k){y(),D=Math.atan2(d-p,f-v),A&&(D+=D>0?-I:I);var G=(T+x)/2,V=(C+S)/2;return R[0]=[G,V,(E-a)/2,D,i],R}for(var z=0,j=i.length;z0?-I:I),D!==void 0){var Y=Z-D;if(Y+=Y>I?-2*I:Y<-I?2*I:0,Math.abs(Y)>o)return null}D=Z;for(var le=z,H=0;z0&&n.push(` +`,""),n.push(e,""),n}var b1r=function(){function n(e,t,r,i){this.overlaps=r,this.pixelRatio=t,this.resolution=e,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=Nu(),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_={}}return n.prototype.createLabel=function(e,t,r,i){var a=e+t+r+i;if(this.labels_[a])return this.labels_[a];var o=i?this.strokeStates[i]:null,s=r?this.fillStates[r]:null,l=this.textStates[t],u=this.pixelRatio,h=[l.scale[0]*u,l.scale[1]*u],c=Array.isArray(e),f=mTe(c?e[0]:e,l.textAlign||fN),d=i&&o.lineWidth?o.lineWidth:0,v=c?e:e.split(` +`).reduce(w1r,[]),p=emr(l,v),g=p.width,m=p.height,y=p.widths,_=p.heights,x=p.lineWidths,S=g+d,w=[],b=(S+2)*h[0],E=(m+d)*h[1],T={width:b<0?Math.floor(b):Math.ceil(b),height:E<0?Math.floor(E):Math.ceil(E),contextInstructions:w};if((h[0]!=1||h[1]!=1)&&w.push("scale",h),i){w.push("strokeStyle",o.strokeStyle),w.push("lineWidth",d),w.push("lineCap",o.lineCap),w.push("lineJoin",o.lineJoin),w.push("miterLimit",o.miterLimit);var C=DV?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;C.prototype.setLineDash&&(w.push("setLineDash",[o.lineDash]),w.push("lineDashOffset",o.lineDashOffset))}r&&w.push("fillStyle",s.fillStyle),w.push("textBaseline","middle"),w.push("textAlign","center");for(var A=.5-f,M=f*S+A*d,I=[],R=[],k=0,D=0,G=0,V=0,z,j=0,Z=v.length;je?e-u:a,x=o+h>t?t-h:o,S=v[3]+_*f[0]+v[1],w=v[0]+x*f[1]+v[2],b=m-v[3],E=y-v[0];(p||c!==0)&&(_x[0]=b,xx[0]=b,_x[1]=E,a1[1]=E,a1[0]=b+S,o1[0]=a1[0],o1[1]=E+w,xx[1]=o1[1]);var T;return c!==0?(T=Id(Nu(),r,i,1,1,c,-r,-i),ks(T,_x),ks(T,a1),ks(T,o1),ks(T,xx),pm(Math.min(_x[0],a1[0],o1[0],xx[0]),Math.min(_x[1],a1[1],o1[1],xx[1]),Math.max(_x[0],a1[0],o1[0],xx[0]),Math.max(_x[1],a1[1],o1[1],xx[1]),wC)):pm(Math.min(b,b+S),Math.min(E,E+w),Math.max(b,b+S),Math.max(E,E+w),wC),d&&(m=Math.round(m),y=Math.round(y)),{drawImageX:m,drawImageY:y,drawImageW:_,drawImageH:x,originX:u,originY:h,declutterBox:{minX:wC[0],minY:wC[1],maxX:wC[2],maxY:wC[3],value:g},canvasTransform:T,scale:f}},n.prototype.replayImageOrLabel_=function(e,t,r,i,a,o,s){var l=!!(o||s),u=i.declutterBox,h=e.canvas,c=s?s[2]*i.scale[0]/2:0,f=u.minX-c<=h.width/t&&u.maxX+c>=0&&u.minY-c<=h.height/t&&u.maxY+c>=0;return f&&(l&&this.replayTextBackground_(e,_x,a1,o1,xx,o,s),tmr(e,i.canvasTransform,a,r,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0},n.prototype.fill_=function(e){if(this.alignFill_){var t=ks(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(t[0]%r,t[1]%r),e.rotate(this.viewRotation_)}e.fill(),this.alignFill_&&e.restore()},n.prototype.setStrokeStyle_=function(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.setLineDash&&(e.lineDashOffset=t[7],e.setLineDash(t[6]))},n.prototype.drawLabelWithPointPlacement_=function(e,t,r,i){var a=this.textStates[t],o=this.createLabel(e,t,i,r),s=this.strokeStates[r],l=this.pixelRatio,u=mTe(Array.isArray(e)?e[0]:e,a.textAlign||fN),h=u7[a.textBaseline||i7],c=s&&s.lineWidth?s.lineWidth:0,f=o.width/l-2*a.scale[0],d=u*f+2*(.5-u)*c,v=h*o.height/l+2*(.5-h)*c;return{label:o,anchorX:d,anchorY:v}},n.prototype.execute_=function(e,t,r,i,a,o,s,l){var u;this.pixelCoordinates_&&Iw(r,this.renderedTransform_)?u=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),u=ES(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),kyr(this.renderedTransform_,r));for(var h=0,c=i.length,f=0,d,v,p,g,m,y,_,x,S,w,b,E,T=0,C=0,A=null,M=null,I=this.coordinateCache_,R=this.viewRotation_,k=Math.round(Math.atan2(-r[1],r[0])*1e12)/1e12,D={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:R},G=this.instructions!=i||this.overlaps?0:200,V,z,j,Z;hG&&(this.fill_(e),T=0),C>G&&(e.stroke(),C=0),!T&&!C&&(e.beginPath(),g=NaN,m=NaN),++h;break;case yi.CIRCLE:f=Y[1];var H=u[f],Q=u[f+1],ie=u[f+2],oe=u[f+3],se=ie-H,me=oe-Q,Ce=Math.sqrt(se*se+me*me);e.moveTo(H+Ce,Q),e.arc(H,Q,Ce,0,2*Math.PI,!0),++h;break;case yi.CLOSE_PATH:e.closePath(),++h;break;case yi.CUSTOM:f=Y[1],d=Y[2];var Le=Y[3],re=Y[4],yt=Y.length==6?Y[5]:void 0;D.geometry=Le,D.feature=V,h in I||(I[h]=[]);var je=I[h];yt?yt(u,f,d,2,je):(je[0]=u[f],je[1]=u[f+1],je.length=2),re(je,D),++h;break;case yi.DRAW_IMAGE:f=Y[1],d=Y[2],x=Y[3],v=Y[4],p=Y[5];var st=Y[6],Nt=Y[7],Zt=Y[8],qe=Y[9],ur=Y[10],Dt=Y[11],ft=Y[12],Oe=Y[13],J=Y[14];if(!x&&Y.length>=19){S=Y[18],w=Y[19],b=Y[20],E=Y[21];var We=this.drawLabelWithPointPlacement_(S,w,b,E);x=We.label,Y[3]=x;var Tt=Y[22];v=(We.anchorX-Tt)*this.pixelRatio,Y[4]=v;var Qe=Y[23];p=(We.anchorY-Qe)*this.pixelRatio,Y[5]=p,st=x.height,Y[6]=st,Oe=x.width,Y[13]=Oe}var zt=void 0;Y.length>24&&(zt=Y[24]);var mt=void 0,wt=void 0,pt=void 0;Y.length>16?(mt=Y[15],wt=Y[16],pt=Y[17]):(mt=pE,wt=!1,pt=!1),ur&&k?Dt+=R:!ur&&!k&&(Dt-=R);for(var ar=0;f0){if(!o||d!==ga.IMAGE&&d!==ga.TEXT||o.indexOf(w)!==-1){var A=(f[T]-3)/4,M=i-A%s,I=i-(A/s|0),R=a(w,b,M*M+I*I);if(R)return R}h.clearRect(0,0,s,s);break}}var p=Object.keys(this.executorsByZIndex_).map(Number);p.sort(f2);var g,m,y,_,x;for(g=p.length-1;g>=0;--g){var S=p[g].toString();for(y=this.executorsByZIndex_[S],m=XY.length-1;m>=0;--m)if(d=XY[m],_=y[d],_!==void 0&&(x=_.executeHitDetection(h,l,r,v,c),x))return x}},n.prototype.getClipCoords=function(e){var t=this.maxExtent_;if(!t)return null;var r=t[0],i=t[1],a=t[2],o=t[3],s=[r,i,r,o,a,o,a,i];return ES(s,0,8,2,e,s),s},n.prototype.isEmpty=function(){return v2(this.executorsByZIndex_)},n.prototype.execute=function(e,t,r,i,a,o,s){var l=Object.keys(this.executorsByZIndex_).map(Number);l.sort(f2),this.maxExtent_&&(e.save(),this.clip(e,r));var u=o||XY,h,c,f,d,v,p;for(s&&l.reverse(),h=0,c=l.length;ht)break;var s=r[o];s||(s=[],r[o]=s),s.push(((n+i)*e+(n+a))*4+3),i>0&&s.push(((n-i)*e+(n+a))*4+3),a>0&&(s.push(((n+i)*e+(n-a))*4+3),i>0&&s.push(((n-i)*e+(n-a))*4+3))}for(var l=[],i=0,u=r.length;ithis.maxCacheSize_},n.prototype.expire=function(){if(this.canExpireCache()){var e=0;for(var t in this.cache_){var r=this.cache_[t];(e++&3)===0&&!r.hasListener()&&(delete this.cache_[t],--this.cacheSize_)}}},n.prototype.get=function(e,t,r){var i=_Te(e,t,r);return i in this.cache_?this.cache_[i]:null},n.prototype.set=function(e,t,r,i){var a=_Te(e,t,r);this.cache_[a]=i,++this.cacheSize_},n.prototype.setSize=function(e){this.maxCacheSize_=e,this.expire()},n}();function _Te(n,e,t){var r=t?Zje(t):"null";return e+":"+n+":"+r}var f7=new A1r,M1r=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),I1r=function(n){M1r(e,n);function e(t,r,i,a){var o=n.call(this)||this;return o.extent=t,o.pixelRatio_=i,o.resolution=r,o.state=a,o}return e.prototype.changed=function(){this.dispatchEvent(Ci.CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return ti()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){ti()},e}(QI);const wue=I1r;var L1r=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),P1r=function(n){L1r(e,n);function e(t,r,i,a,o,s){var l=n.call(this,t,r,i,Ai.IDLE)||this;return l.src_=a,l.image_=new Image,o!==null&&(l.image_.crossOrigin=o),l.unlisten_=null,l.state=Ai.IDLE,l.imageLoadFunction_=s,l}return e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=Ai.ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){this.resolution===void 0&&(this.resolution=lh(this.extent)/this.image_.height),this.state=Ai.LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){(this.state==Ai.IDLE||this.state==Ai.ERROR)&&(this.state=Ai.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=bue(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t,this.resolution=lh(this.extent)/this.image_.height},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(wue);function bue(n,e,t){var r=n,i=!0,a=!1,o=!1,s=[K9(r,Ci.LOAD,function(){o=!0,a||e()})];return r.src&&V0r?(a=!0,r.decode().then(function(){i&&e()}).catch(function(l){i&&(o?e():t())})):s.push(K9(r,Ci.ERROR,t)),function(){i=!1,s.forEach(Ms)}}const O1r=P1r;var R1r=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),DP=null,D1r=function(n){R1r(e,n);function e(t,r,i,a,o,s){var l=n.call(this)||this;return l.hitDetectionImage_=null,l.image_=t||new Image,a!==null&&(l.image_.crossOrigin=a),l.canvas_={},l.color_=s,l.unlisten_=null,l.imageState_=o,l.size_=i,l.src_=r,l.tainted_,l}return e.prototype.isTainted_=function(){if(this.tainted_===void 0&&this.imageState_===Ai.LOADED){DP||(DP=Ad(1,1)),DP.drawImage(this.image_,0,0);try{DP.getImageData(0,0,1,1),this.tainted_=!1}catch{DP=null,this.tainted_=!0}}return this.tainted_===!0},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(Ci.CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=Ai.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=Ai.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_},e.prototype.getPixelRatio=function(t){return this.replaceColor_(t),this.canvas_[t]?t:1},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var t=this.size_[0],r=this.size_[1],i=Ad(t,r);i.fillRect(0,0,t,r),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==Ai.IDLE){this.imageState_=Ai.LOADING;try{this.image_.src=this.src_}catch{this.handleImageError_()}this.unlisten_=bue(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(t){if(!(!this.color_||this.canvas_[t]||this.imageState_!==Ai.LOADED)){var r=document.createElement("canvas");this.canvas_[t]=r,r.width=Math.ceil(this.image_.width*t),r.height=Math.ceil(this.image_.height*t);var i=r.getContext("2d");if(i.scale(t,t),i.drawImage(this.image_,0,0),i.globalCompositeOperation="multiply",i.globalCompositeOperation==="multiply"||this.isTainted_())i.fillStyle=Zje(this.color_),i.fillRect(0,0,r.width/t,r.height/t),i.globalCompositeOperation="destination-in",i.drawImage(this.image_,0,0);else{for(var a=i.getImageData(0,0,r.width,r.height),o=a.data,s=this.color_[0]/255,l=this.color_[1]/255,u=this.color_[2]/255,h=this.color_[3],c=0,f=o.length;c0,6);var c=i.src!==void 0?Ai.IDLE:Ai.LOADED;return r.color_=i.color!==void 0?r7(i.color):null,r.iconImage_=N1r(u,h,r.imgSize_!==void 0?r.imgSize_:null,r.crossOrigin_,c,r.color_),r.offset_=i.offset!==void 0?i.offset:[0,0],r.offsetOrigin_=i.offsetOrigin!==void 0?i.offsetOrigin:ep.TOP_LEFT,r.origin_=null,r.size_=i.size!==void 0?i.size:null,r}return e.prototype.clone=function(){var t=this.getScale();return new e({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_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc()})},e.prototype.getAnchor=function(){var t=this.normalizedAnchor_;if(!t){t=this.anchor_;var r=this.getSize();if(this.anchorXUnits_==Ux.FRACTION||this.anchorYUnits_==Ux.FRACTION){if(!r)return null;t=this.anchor_.slice(),this.anchorXUnits_==Ux.FRACTION&&(t[0]*=r[0]),this.anchorYUnits_==Ux.FRACTION&&(t[1]*=r[1])}if(this.anchorOrigin_!=ep.TOP_LEFT){if(!r)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_==ep.TOP_RIGHT||this.anchorOrigin_==ep.BOTTOM_RIGHT)&&(t[0]=-t[0]+r[0]),(this.anchorOrigin_==ep.BOTTOM_LEFT||this.anchorOrigin_==ep.BOTTOM_RIGHT)&&(t[1]=-t[1]+r[1])}this.normalizedAnchor_=t}var i=this.getDisplacement();return[t[0]-i[0],t[1]+i[1]]},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=ep.TOP_LEFT){var r=this.getSize(),i=this.iconImage_.getSize();if(!r||!i)return null;t=t.slice(),(this.offsetOrigin_==ep.TOP_RIGHT||this.offsetOrigin_==ep.BOTTOM_RIGHT)&&(t[0]=i[0]-r[0]-t[0]),(this.offsetOrigin_==ep.BOTTOM_LEFT||this.offsetOrigin_==ep.BOTTOM_RIGHT)&&(t[1]=i[1]-r[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(Ci.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(Ci.CHANGE,t)},e}(cXe);const yy=F1r;var B1r="#333",G1r=function(){function n(e){var t=e||{};this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=nh(t.scale!==void 0?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.textBaseline_=t.textBaseline,this.fill_=t.fill!==void 0?t.fill:new Zo({color:B1r}),this.maxAngle_=t.maxAngle!==void 0?t.maxAngle:Math.PI/4,this.placement_=t.placement!==void 0?t.placement:vXe.POINT,this.overflow_=!!t.overflow,this.stroke_=t.stroke!==void 0?t.stroke:null,this.offsetX_=t.offsetX!==void 0?t.offsetX:0,this.offsetY_=t.offsetY!==void 0?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=t.padding===void 0?null:t.padding}return n.prototype.clone=function(){var e=this.getScale();return new n({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},n.prototype.getOverflow=function(){return this.overflow_},n.prototype.getFont=function(){return this.font_},n.prototype.getMaxAngle=function(){return this.maxAngle_},n.prototype.getPlacement=function(){return this.placement_},n.prototype.getOffsetX=function(){return this.offsetX_},n.prototype.getOffsetY=function(){return this.offsetY_},n.prototype.getFill=function(){return this.fill_},n.prototype.getRotateWithView=function(){return this.rotateWithView_},n.prototype.getRotation=function(){return this.rotation_},n.prototype.getScale=function(){return this.scale_},n.prototype.getScaleArray=function(){return this.scaleArray_},n.prototype.getStroke=function(){return this.stroke_},n.prototype.getText=function(){return this.text_},n.prototype.getTextAlign=function(){return this.textAlign_},n.prototype.getTextBaseline=function(){return this.textBaseline_},n.prototype.getBackgroundFill=function(){return this.backgroundFill_},n.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},n.prototype.getPadding=function(){return this.padding_},n.prototype.setOverflow=function(e){this.overflow_=e},n.prototype.setFont=function(e){this.font_=e},n.prototype.setMaxAngle=function(e){this.maxAngle_=e},n.prototype.setOffsetX=function(e){this.offsetX_=e},n.prototype.setOffsetY=function(e){this.offsetY_=e},n.prototype.setPlacement=function(e){this.placement_=e},n.prototype.setRotateWithView=function(e){this.rotateWithView_=e},n.prototype.setFill=function(e){this.fill_=e},n.prototype.setRotation=function(e){this.rotation_=e},n.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=nh(e!==void 0?e:1)},n.prototype.setStroke=function(e){this.stroke_=e},n.prototype.setText=function(e){this.text_=e},n.prototype.setTextAlign=function(e){this.textAlign_=e},n.prototype.setTextBaseline=function(e){this.textBaseline_=e},n.prototype.setBackgroundFill=function(e){this.backgroundFill_=e},n.prototype.setBackgroundStroke=function(e){this.backgroundStroke_=e},n.prototype.setPadding=function(e){this.padding_=e},n}();const J1=G1r;var uv=.5;function yXe(n,e,t,r,i,a,o){var s=n[0]*uv,l=n[1]*uv,u=Ad(s,l);u.imageSmoothingEnabled=!1;for(var h=u.canvas,c=new yue(u,uv,i,null,o),f=t.length,d=Math.floor((256*256*256-1)/f),v={},p=1;p<=f;++p){var g=t[p-1],m=g.getStyleFunction()||r;if(!!r){var y=m(g,a);if(!!y){Array.isArray(y)||(y=[y]);for(var _=p*d,x="#"+("000000"+_.toString(16)).slice(-6),S=0,w=y.length;Sp[2];)++y,_=m*y,c.push(this.getRenderTransform(a,o,s,uv,f,d,_).slice()),g-=m}this.hitDetectionImageData_=yXe(i,c,this.renderedFeatures_,h.getStyleFunction(),u,o,s)}r(mXe(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,r,i,a,o){var s=this;if(!!this.replayGroup_){var l=r.viewState.resolution,u=r.viewState.rotation,h=this.getLayer(),c={},f=function(p,g,m){var y=vi(p),_=c[y];if(_){if(_!==!0&&m<_.distanceSq){if(m===0)return c[y]=!0,o.splice(o.lastIndexOf(_),1),a(p,h,g);_.geometry=g,_.distanceSq=m}}else{if(m===0)return c[y]=!0,a(p,h,g);o.push(c[y]={feature:p,layer:h,geometry:g,distanceSq:m,callback:a})}},d,v=[this.replayGroup_];return this.declutterExecutorGroup&&v.push(this.declutterExecutorGroup),v.some(function(p){return d=p.forEachFeatureAtCoordinate(t,l,u,i,f,p===s.declutterExecutorGroup&&r.declutterTree?r.declutterTree.all().map(function(g){return g.value}):null)}),d}},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t){var r=this.getLayer(),i=r.getSource();if(!i)return!1;var a=t.viewHints[Gs.ANIMATING],o=t.viewHints[Gs.INTERACTING],s=r.getUpdateWhileAnimating(),l=r.getUpdateWhileInteracting();if(!this.dirty_&&!s&&a||!l&&o)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var u=t.extent,h=t.viewState,c=h.projection,f=h.resolution,d=t.pixelRatio,v=r.getRevision(),p=r.getRenderBuffer(),g=r.getRenderOrder();g===void 0&&(g=hmr);var m=h.center.slice(),y=f0(u,p*f),_=y.slice(),x=[y.slice()],S=c.getExtent();if(i.getWrapX()&&c.canWrapX()&&!vv(S,t.extent)){var w=Co(S),b=Math.max(Co(y)/2,w);y[0]=S[0]-b,y[2]=S[2]+b,hue(m,c);var E=Wje(x[0],c);E[0]S[0]&&E[2]>S[2]&&x.push([E[0]-w,E[1],E[2]-w,E[3]])}if(!this.dirty_&&this.renderedResolution_==f&&this.renderedRevision_==v&&this.renderedRenderOrder_==g&&vv(this.wrappedRenderedExtent_,y))return Iw(this.renderedExtent_,_)||(this.hitDetectionImageData_=null,this.renderedExtent_=_),this.renderedCenter_=m,this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var T=new h7(Lte(f,d),y,f,d),C;this.getLayer().getDeclutter()&&(C=new h7(Lte(f,d),y,f,d));for(var A,M,I,M=0,I=x.length;M-180&&f<90&&f>-90;if(!(h.length===l.length&&d))continue;const v={};v.type="Feature",v.geometry={},v.properties={},v.geometry.type="Point",v.geometry.coordinates=[c,f];for(let p=0;pSTe(a.properties.Name,e)),r=0,i=null;return t.forEach(a=>{let o=0;Array.from(new Set(a.properties.Name.split(""))).forEach(s=>{e.includes(s)&&o++}),o>r&&(r=o,i=a)}),i},setMask(n,e){if(!e||!((e instanceof d0?e.getGeometry():e)instanceof vT)&&["MultiPolygon","Polygon"].indexOf(e.getType())<0)return;const r=e instanceof d0?e:new d0(e),i=new So({fill:new Zo({color:"black"})}),a=new Sy({source:new _f({features:[r],wrapX:!1})}),o=function(l){const u=rXe(l);l.context.globalCompositeOperation="destination-in",a.getSource().forEachFeature(function(h){u.drawFeature(h,i),l.context.globalCompositeOperation="source-over"})},s=Array.isArray(n)?n:[n];xTe(s),s.forEach(l=>{l.classNameBak_=l.className_,l.className_=`ol_mask_layer_${l.ol_uid}`,l.clipRender=o,l.extentBak_=l.getExtent(),l.setExtent(a.getSource().getExtent()),l.on("postrender",o),l.changed()})},unsetMask:xTe,getZoomByResolution(n,e){return Oot(n,e)},scalesToResolutions(n,e,t,r,i,a){return Pot(n,e,t,r,i)},getProjection(n,e){let t=ya(`EPSG:${n.epsgCode}`);return n.type=="PCS_NON_EARTH"&&(t=new ew({extent:e,units:"m",code:"0"})),t||console.error(`The projection of EPSG:${n.epsgCode} is missing, please register the projection of EPSG:${n.epsgCode} first, refer to the documentation: https://iclient.supermap.io/web/introduction/leafletDevelop.html#multiProjection`),t}};function _Xe(n){return typeof n=="string"&&n.constructor===String}function Y1r(n){return Object.prototype.toString.call(n)==="[object Array]"}function xTe(n){const e=Array.isArray(n)?n:[n];for(let t=0;t"u"&&ZY!==void 0?function(n){return typeof n=="function"||n===ZY}:function(n){return typeof n=="function"},h_r=yu,Ud=function(n){return typeof n=="object"?n!==null:h_r(n)},KY=_l,c_r=yu,f_r=function(n){return c_r(n)?n:void 0},yT=function(n,e){return arguments.length<2?f_r(KY[n]):KY[n]&&KY[n][e]},d_r=ql,UV=d_r({}.isPrototypeOf),v_r=_l,wTe=v_r.navigator,bTe=wTe&&wTe.userAgent,Ik=bTe?String(bTe):"",AXe=_l,JY=Ik,ETe=AXe.process,TTe=AXe.Deno,CTe=ETe&&ETe.versions||TTe&&TTe.version,ATe=CTe&&CTe.v8,Xg,d7;ATe&&(Xg=ATe.split("."),d7=Xg[0]>0&&Xg[0]<4?1:+(Xg[0]+Xg[1]));!d7&&JY&&(Xg=JY.match(/Edge\/(\d+)/),(!Xg||Xg[1]>=74)&&(Xg=JY.match(/Chrome\/(\d+)/),Xg&&(d7=+Xg[1])));var Tue=d7,MTe=Tue,p_r=Yl,g_r=_l,y_r=g_r.String,MXe=!!Object.getOwnPropertySymbols&&!p_r(function(){var n=Symbol("symbol detection");return!y_r(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&MTe&&MTe<41}),m_r=MXe,IXe=m_r&&!Symbol.sham&&typeof Symbol.iterator=="symbol",__r=yT,x_r=yu,S_r=UV,w_r=IXe,b_r=Object,LXe=w_r?function(n){return typeof n=="symbol"}:function(n){var e=__r("Symbol");return x_r(e)&&S_r(e.prototype,b_r(n))},E_r=String,VV=function(n){try{return E_r(n)}catch{return"Object"}},T_r=yu,C_r=VV,A_r=TypeError,j_=function(n){if(T_r(n))return n;throw new A_r(C_r(n)+" is not a function")},M_r=j_,I_r=zV,nL=function(n,e){var t=n[e];return I_r(t)?void 0:M_r(t)},QY=Sc,eq=yu,tq=Ud,L_r=TypeError,P_r=function(n,e){var t,r;if(e==="string"&&eq(t=n.toString)&&!tq(r=QY(t,n))||eq(t=n.valueOf)&&!tq(r=QY(t,n))||e!=="string"&&eq(t=n.toString)&&!tq(r=QY(t,n)))return r;throw new L_r("Can't convert object to primitive value")},$V={exports:{}},ITe=_l,O_r=Object.defineProperty,Cue=function(n,e){try{O_r(ITe,n,{value:e,configurable:!0,writable:!0})}catch{ITe[n]=e}return e},R_r=_l,D_r=Cue,LTe="__core-js_shared__",PTe=$V.exports=R_r[LTe]||D_r(LTe,{});(PTe.versions||(PTe.versions=[])).push({version:"3.43.0",mode:"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"});var OTe=$V.exports,Aue=function(n,e){return OTe[n]||(OTe[n]=e||{})},N_r=$0,k_r=Object,WV=function(n){return k_r(N_r(n))},F_r=ql,B_r=WV,G_r=F_r({}.hasOwnProperty),W0=Object.hasOwn||function(e,t){return G_r(B_r(e),t)},z_r=ql,U_r=0,V_r=Math.random(),$_r=z_r(1.1 .toString),PXe=function(n){return"Symbol("+(n===void 0?"":n)+")_"+$_r(++U_r+V_r,36)},W_r=_l,H_r=Aue,RTe=W0,j_r=PXe,X_r=MXe,Y_r=IXe,xA=W_r.Symbol,rq=H_r("wks"),q_r=Y_r?xA.for||xA:xA&&xA.withoutSetter||j_r,Jh=function(n){return RTe(rq,n)||(rq[n]=X_r&&RTe(xA,n)?xA[n]:q_r("Symbol."+n)),rq[n]},Z_r=Sc,DTe=Ud,NTe=LXe,K_r=nL,J_r=P_r,Q_r=Jh,exr=TypeError,txr=Q_r("toPrimitive"),rxr=function(n,e){if(!DTe(n)||NTe(n))return n;var t=K_r(n,txr),r;if(t){if(e===void 0&&(e="default"),r=Z_r(t,n,e),!DTe(r)||NTe(r))return r;throw new exr("Can't convert object to primitive value")}return e===void 0&&(e="number"),J_r(n,e)},nxr=rxr,ixr=LXe,OXe=function(n){var e=nxr(n,"string");return ixr(e)?e:e+""},axr=_l,kTe=Ud,Rte=axr.document,oxr=kTe(Rte)&&kTe(Rte.createElement),HV=function(n){return oxr?Rte.createElement(n):{}},sxr=V0,lxr=Yl,uxr=HV,RXe=!sxr&&!lxr(function(){return Object.defineProperty(uxr("div"),"a",{get:function(){return 7}}).a!==7}),hxr=V0,cxr=Sc,fxr=xXe,dxr=Eue,vxr=Mk,pxr=OXe,gxr=W0,yxr=RXe,FTe=Object.getOwnPropertyDescriptor;Ak.f=hxr?FTe:function(e,t){if(e=vxr(e),t=pxr(t),yxr)try{return FTe(e,t)}catch{}if(gxr(e,t))return dxr(!cxr(fxr.f,e,t),e[t])};var X_={},mxr=V0,_xr=Yl,DXe=mxr&&_xr(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),xxr=Ud,Sxr=String,wxr=TypeError,jf=function(n){if(xxr(n))return n;throw new wxr(Sxr(n)+" is not an object")},bxr=V0,Exr=RXe,Txr=DXe,u6=jf,BTe=OXe,Cxr=TypeError,nq=Object.defineProperty,Axr=Object.getOwnPropertyDescriptor,iq="enumerable",aq="configurable",oq="writable";X_.f=bxr?Txr?function(e,t,r){if(u6(e),t=BTe(t),u6(r),typeof e=="function"&&t==="prototype"&&"value"in r&&oq in r&&!r[oq]){var i=Axr(e,t);i&&i[oq]&&(e[t]=r.value,r={configurable:aq in r?r[aq]:i[aq],enumerable:iq in r?r[iq]:i[iq],writable:!1})}return nq(e,t,r)}:nq:function(e,t,r){if(u6(e),t=BTe(t),u6(r),Exr)try{return nq(e,t,r)}catch{}if("get"in r||"set"in r)throw new Cxr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Mxr=V0,Ixr=X_,Lxr=Eue,Lk=Mxr?function(n,e,t){return Ixr.f(n,e,Lxr(1,t))}:function(n,e,t){return n[e]=t,n},Mue={exports:{}},Dte=V0,Pxr=W0,NXe=Function.prototype,Oxr=Dte&&Object.getOwnPropertyDescriptor,Iue=Pxr(NXe,"name"),Rxr=Iue&&function(){}.name==="something",Dxr=Iue&&(!Dte||Dte&&Oxr(NXe,"name").configurable),jV={EXISTS:Iue,PROPER:Rxr,CONFIGURABLE:Dxr},Nxr=ql,kxr=yu,Nte=$V.exports,Fxr=Nxr(Function.toString);kxr(Nte.inspectSource)||(Nte.inspectSource=function(n){return Fxr(n)});var Lue=Nte.inspectSource,Bxr=_l,Gxr=yu,GTe=Bxr.WeakMap,zxr=Gxr(GTe)&&/native code/.test(String(GTe)),Uxr=Aue,Vxr=PXe,zTe=Uxr("keys"),Pue=function(n){return zTe[n]||(zTe[n]=Vxr(n))},Oue={},$xr=zxr,kXe=_l,Wxr=Ud,Hxr=Lk,sq=W0,lq=$V.exports,jxr=Pue,Xxr=Oue,UTe="Object already initialized",kte=kXe.TypeError,Yxr=kXe.WeakMap,v7,pN,p7,qxr=function(n){return p7(n)?pN(n):v7(n,{})},Zxr=function(n){return function(e){var t;if(!Wxr(e)||(t=pN(e)).type!==n)throw new kte("Incompatible receiver, "+n+" required");return t}};if($xr||lq.state){var hy=lq.state||(lq.state=new Yxr);hy.get=hy.get,hy.has=hy.has,hy.set=hy.set,v7=function(n,e){if(hy.has(n))throw new kte(UTe);return e.facade=n,hy.set(n,e),e},pN=function(n){return hy.get(n)||{}},p7=function(n){return hy.has(n)}}else{var bC=jxr("state");Xxr[bC]=!0,v7=function(n,e){if(sq(n,bC))throw new kte(UTe);return e.facade=n,Hxr(n,bC,e),e},pN=function(n){return sq(n,bC)?n[bC]:{}},p7=function(n){return sq(n,bC)}}var XV={set:v7,get:pN,has:p7,enforce:qxr,getterFor:Zxr},Rue=ql,Kxr=Yl,Jxr=yu,h6=W0,Fte=V0,Qxr=jV.CONFIGURABLE,eSr=Lue,FXe=XV,tSr=FXe.enforce,rSr=FXe.get,VTe=String,u8=Object.defineProperty,nSr=Rue("".slice),iSr=Rue("".replace),aSr=Rue([].join),oSr=Fte&&!Kxr(function(){return u8(function(){},"length",{value:8}).length!==8}),sSr=String(String).split("String"),lSr=Mue.exports=function(n,e,t){nSr(VTe(e),0,7)==="Symbol("&&(e="["+iSr(VTe(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!h6(n,"name")||Qxr&&n.name!==e)&&(Fte?u8(n,"name",{value:e,configurable:!0}):n.name=e),oSr&&t&&h6(t,"arity")&&n.length!==t.arity&&u8(n,"length",{value:t.arity});try{t&&h6(t,"constructor")&&t.constructor?Fte&&u8(n,"prototype",{writable:!1}):n.prototype&&(n.prototype=void 0)}catch{}var r=tSr(n);return h6(r,"source")||(r.source=aSr(sSr,typeof e=="string"?e:"")),n};Function.prototype.toString=lSr(function(){return Jxr(this)&&rSr(this).source||eSr(this)},"toString");var uSr=yu,hSr=X_,cSr=Mue.exports,fSr=Cue,mT=function(n,e,t,r){r||(r={});var i=r.enumerable,a=r.name!==void 0?r.name:e;if(uSr(t)&&cSr(t,a,r),r.global)i?n[e]=t:fSr(e,t);else{try{r.unsafe?n[e]&&(i=!0):delete n[e]}catch{}i?n[e]=t:hSr.f(n,e,{value:t,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return n},BXe={},dSr=Math.ceil,vSr=Math.floor,pSr=Math.trunc||function(e){var t=+e;return(t>0?vSr:dSr)(t)},gSr=pSr,YV=function(n){var e=+n;return e!==e||e===0?0:gSr(e)},ySr=YV,mSr=Math.max,_Sr=Math.min,xSr=function(n,e){var t=ySr(n);return t<0?mSr(t+e,0):_Sr(t,e)},SSr=YV,wSr=Math.min,iL=function(n){var e=SSr(n);return e>0?wSr(e,9007199254740991):0},bSr=iL,Due=function(n){return bSr(n.length)},ESr=Mk,TSr=xSr,CSr=Due,$Te=function(n){return function(e,t,r){var i=ESr(e),a=CSr(i);if(a===0)return!n&&-1;var o=TSr(r,a),s;if(n&&t!==t){for(;a>o;)if(s=i[o++],s!==s)return!0}else for(;a>o;o++)if((n||o in i)&&i[o]===t)return n||o||0;return!n&&-1}},GXe={includes:$Te(!0),indexOf:$Te(!1)},ASr=ql,uq=W0,MSr=Mk,ISr=GXe.indexOf,LSr=Oue,WTe=ASr([].push),zXe=function(n,e){var t=MSr(n),r=0,i=[],a;for(a in t)!uq(LSr,a)&&uq(t,a)&&WTe(i,a);for(;e.length>r;)uq(t,a=e[r++])&&(~ISr(i,a)||WTe(i,a));return i},Nue=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],PSr=zXe,OSr=Nue,RSr=OSr.concat("length","prototype");BXe.f=Object.getOwnPropertyNames||function(e){return PSr(e,RSr)};var UXe={};UXe.f=Object.getOwnPropertySymbols;var DSr=yT,NSr=ql,kSr=BXe,FSr=UXe,BSr=jf,GSr=NSr([].concat),zSr=DSr("Reflect","ownKeys")||function(e){var t=kSr.f(BSr(e)),r=FSr.f;return r?GSr(t,r(e)):t},HTe=W0,USr=zSr,VSr=Ak,$Sr=X_,WSr=function(n,e,t){for(var r=USr(e),i=$Sr.f,a=VSr.f,o=0;oc;c++)if(d=m(n[c]),d&&wCe(ECe,d))return d;return new f8(!1)}u=HEr(n,h)}for(v=a?n.next:u.next;!(p=zEr(v,u)).done;){try{d=m(p.value)}catch(y){bCe(u,"throw",y)}if(typeof d=="object"&&d&&wCe(ECe,d))return d}return new f8(!1)},YEr=Jh,SYe=YEr("iterator"),wYe=!1;try{var qEr=0,TCe={next:function(){return{done:!!qEr++}},return:function(){wYe=!0}};TCe[SYe]=function(){return this},Array.from(TCe,function(){throw 2})}catch{}var ZEr=function(n,e){try{if(!e&&!wYe)return!1}catch{return!1}var t=!1;try{var r={};r[SYe]=function(){return{next:function(){return{done:t=!0}}}},n(r)}catch{}return t},KEr=JV,JEr=ZEr,QEr=Ok.CONSTRUCTOR,bYe=QEr||!JEr(function(n){KEr.all(n).then(void 0,function(){})}),e2r=Xf,t2r=Sc,r2r=j_,n2r=aL,i2r=zue,a2r=xYe,o2r=bYe;e2r({target:"Promise",stat:!0,forced:o2r},{all:function(e){var t=this,r=n2r.f(t),i=r.resolve,a=r.reject,o=i2r(function(){var s=r2r(t.resolve),l=[],u=0,h=1;a2r(e,function(c){var f=u++,d=!1;h++,t2r(s,t,c).then(function(v){d||(d=!0,l[f]=v,--h||i(l))},a)}),--h||i(l)});return o.error&&a(o.value),r.promise}});var s2r=Xf,l2r=Ok.CONSTRUCTOR,Hte=JV,u2r=yT,h2r=yu,c2r=mT,CCe=Hte&&Hte.prototype;s2r({target:"Promise",proto:!0,forced:l2r,real:!0},{catch:function(n){return this.then(void 0,n)}});if(h2r(Hte)){var ACe=u2r("Promise").prototype.catch;CCe.catch!==ACe&&c2r(CCe,"catch",ACe,{unsafe:!0})}var f2r=Xf,d2r=Sc,v2r=j_,p2r=aL,g2r=zue,y2r=xYe,m2r=bYe;f2r({target:"Promise",stat:!0,forced:m2r},{race:function(e){var t=this,r=p2r.f(t),i=r.reject,a=g2r(function(){var o=v2r(t.resolve);y2r(e,function(s){d2r(o,t,s).then(r.resolve,i)})});return a.error&&i(a.value),r.promise}});var _2r=Xf,x2r=aL,S2r=Ok.CONSTRUCTOR;_2r({target:"Promise",stat:!0,forced:S2r},{reject:function(e){var t=x2r.f(this),r=t.reject;return r(e),t.promise}});var w2r=jf,b2r=Ud,E2r=aL,T2r=function(n,e){if(w2r(n),b2r(e)&&e.constructor===n)return e;var t=E2r.f(n),r=t.resolve;return r(e),t.promise},C2r=Xf,A2r=yT,M2r=Ok.CONSTRUCTOR,I2r=T2r;A2r("Promise");C2r({target:"Promise",stat:!0,forced:M2r},{resolve:function(e){return I2r(this,e)}});var L2r=kue,P2r=String,Bm=function(n){if(L2r(n)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return P2r(n)},O2r=jf,EYe=function(){var n=O2r(this),e="";return n.hasIndices&&(e+="d"),n.global&&(e+="g"),n.ignoreCase&&(e+="i"),n.multiline&&(e+="m"),n.dotAll&&(e+="s"),n.unicode&&(e+="u"),n.unicodeSets&&(e+="v"),n.sticky&&(e+="y"),e},Hue=Yl,R2r=_l,jue=R2r.RegExp,Xue=Hue(function(){var n=jue("a","y");return n.lastIndex=2,n.exec("abcd")!==null}),D2r=Xue||Hue(function(){return!jue("a","y").sticky}),N2r=Xue||Hue(function(){var n=jue("^r","gy");return n.lastIndex=2,n.exec("str")!==null}),TYe={BROKEN_CARET:N2r,MISSED_STICKY:D2r,UNSUPPORTED_Y:Xue},CYe={},k2r=zXe,F2r=Nue,B2r=Object.keys||function(e){return k2r(e,F2r)},G2r=V0,z2r=DXe,U2r=X_,V2r=jf,$2r=Mk,W2r=B2r;CYe.f=G2r&&!z2r?Object.defineProperties:function(e,t){V2r(e);for(var r=$2r(t),i=W2r(t),a=i.length,o=0,s;a>o;)U2r.f(e,s=i[o++],r[s]);return e};var H2r=jf,j2r=CYe,MCe=Nue,X2r=Oue,Y2r=QXe,q2r=HV,Z2r=Pue,ICe=">",LCe="<",jte="prototype",Xte="script",AYe=Z2r("IE_PROTO"),Sq=function(){},MYe=function(n){return LCe+Xte+ICe+n+LCe+"/"+Xte+ICe},PCe=function(n){n.write(MYe("")),n.close();var e=n.parentWindow.Object;return n=null,e},K2r=function(){var n=q2r("iframe"),e="java"+Xte+":",t;return n.style.display="none",Y2r.appendChild(n),n.src=String(e),t=n.contentWindow.document,t.open(),t.write(MYe("document.F=Object")),t.close(),t.F},_6,d8=function(){try{_6=new ActiveXObject("htmlfile")}catch{}d8=typeof document<"u"?document.domain&&_6?PCe(_6):K2r():PCe(_6);for(var n=MCe.length;n--;)delete d8[jte][MCe[n]];return d8()};X2r[AYe]=!0;var Yue=Object.create||function(e,t){var r;return e!==null?(Sq[jte]=H2r(e),r=new Sq,Sq[jte]=null,r[AYe]=e):r=d8(),t===void 0?r:j2r.f(r,t)},J2r=Yl,Q2r=_l,eTr=Q2r.RegExp,tTr=J2r(function(){var n=eTr(".","s");return!(n.dotAll&&n.test(` +`)&&n.flags==="s")}),rTr=Yl,nTr=_l,iTr=nTr.RegExp,aTr=rTr(function(){var n=iTr("(?b)","g");return n.exec("b").groups.a!=="b"||"b".replace(n,"$c")!=="bc"}),wA=Sc,e$=ql,oTr=Bm,sTr=EYe,lTr=TYe,uTr=Aue,hTr=Yue,cTr=XV.get,fTr=tTr,dTr=aTr,vTr=uTr("native-string-replace",String.prototype.replace),m7=RegExp.prototype.exec,Yte=m7,pTr=e$("".charAt),gTr=e$("".indexOf),yTr=e$("".replace),wq=e$("".slice),qte=function(){var n=/a/,e=/b*/g;return wA(m7,n,"a"),wA(m7,e,"a"),n.lastIndex!==0||e.lastIndex!==0}(),IYe=lTr.BROKEN_CARET,Zte=/()??/.exec("")[1]!==void 0,mTr=qte||Zte||IYe||fTr||dTr;mTr&&(Yte=function(e){var t=this,r=cTr(t),i=oTr(e),a=r.raw,o,s,l,u,h,c,f;if(a)return a.lastIndex=t.lastIndex,o=wA(Yte,a,i),t.lastIndex=a.lastIndex,o;var d=r.groups,v=IYe&&t.sticky,p=wA(sTr,t),g=t.source,m=0,y=i;if(v&&(p=yTr(p,"y",""),gTr(p,"g")===-1&&(p+="g"),y=wq(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&pTr(i,t.lastIndex-1)!==` +`)&&(g="(?: "+g+")",y=" "+y,m++),s=new RegExp("^(?:"+g+")",p)),Zte&&(s=new RegExp("^"+g+"$(?!\\s)",p)),qte&&(l=t.lastIndex),u=wA(m7,v?s:t,y),v?u?(u.input=wq(u.input,m),u[0]=wq(u[0],m),u.index=t.lastIndex,t.lastIndex+=u[0].length):t.lastIndex=0:qte&&u&&(t.lastIndex=t.global?u.index+u[0].length:l),Zte&&u&&u.length>1&&wA(vTr,u[0],s,function(){for(h=1;h=a?n?"":void 0:(o=kCe(r,i),o<55296||o>56319||i+1===a||(s=kCe(r,i+1))<56320||s>57343?n?CTr(r,i):o:n?ATr(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},MTr={codeAt:FCe(!1),charAt:FCe(!0)},ITr=MTr.charAt,Jue=function(n,e,t){return e+(t?ITr(n,e).length:1)},LTr=_l,PTr=Yl,BCe=LTr.RegExp,OTr=!PTr(function(){var n=!0;try{BCe(".","d")}catch{n=!1}var e={},t="",r=n?"dgimsy":"gimsy",i=function(l,u){Object.defineProperty(e,l,{get:function(){return t+=u,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};n&&(a.hasIndices="d");for(var o in a)i(o,a[o]);var s=Object.getOwnPropertyDescriptor(BCe.prototype,"flags").get.call(e);return s!==r||t!==r}),RTr={correct:OTr},DTr=Sc,NTr=W0,kTr=UV,GCe=RTr,FTr=EYe,BTr=RegExp.prototype,Que=GCe.correct?function(n){return n.flags}:function(n){return!GCe.correct&&kTr(BTr,n)&&!NTr(n,"flags")?DTr(FTr,n):n.flags},zCe=Sc,GTr=jf,zTr=yu,UTr=gT,VTr=que,$Tr=TypeError,ehe=function(n,e){var t=n.exec;if(zTr(t)){var r=zCe(t,n,e);return r!==null&>r(r),r}if(UTr(n)==="RegExp")return zCe(VTr,n,e);throw new $Tr("RegExp#exec called on incompatible receiver")},WTr=Sc,HTr=ql,jTr=Zue,XTr=jf,YTr=Ud,qTr=iL,x6=Bm,ZTr=$0,KTr=nL,JTr=Jue,QTr=Que,UCe=ehe,VCe=HTr("".indexOf);jTr("match",function(n,e,t){return[function(i){var a=ZTr(this),o=YTr(i)?KTr(i,n):void 0;return o?WTr(o,i,a):new RegExp(i)[n](x6(a))},function(r){var i=XTr(this),a=x6(r),o=t(e,i,a);if(o.done)return o.value;var s=x6(QTr(i));if(VCe(s,"g")===-1)return UCe(i,a);var l=VCe(s,"u")!==-1;i.lastIndex=0;for(var u=[],h=0,c;(c=UCe(i,a))!==null;){var f=x6(c[0]);u[h]=f,f===""&&(i.lastIndex=JTr(a,qTr(i.lastIndex),l)),h++}return h===0?null:u}]});var the=ql,eCr=WV,tCr=Math.floor,Eq=the("".charAt),rCr=the("".replace),Tq=the("".slice),nCr=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,iCr=/\$([$&'`]|\d{1,2})/g,aCr=function(n,e,t,r,i,a){var o=t+n.length,s=r.length,l=iCr;return i!==void 0&&(i=eCr(i),l=nCr),rCr(a,l,function(u,h){var c;switch(Eq(h,0)){case"$":return"$";case"&":return n;case"`":return Tq(e,0,t);case"'":return Tq(e,o);case"<":c=i[Tq(h,1,-1)];break;default:var f=+h;if(f===0)return u;if(f>s){var d=tCr(f/10);return d===0?u:d<=s?r[d-1]===void 0?Eq(h,1):r[d-1]+Eq(h,1):u}c=r[f-1]}return c===void 0?"":c})},oCr=JXe,$Ce=Sc,t$=ql,sCr=Zue,lCr=Yl,uCr=jf,hCr=yu,cCr=Ud,fCr=YV,dCr=iL,wb=Bm,vCr=$0,pCr=Jue,gCr=nL,yCr=aCr,mCr=Que,_Cr=ehe,xCr=Jh,Kte=xCr("replace"),SCr=Math.max,wCr=Math.min,bCr=t$([].concat),Cq=t$([].push),S6=t$("".indexOf),WCe=t$("".slice),ECr=function(n){return n===void 0?n:String(n)},TCr=function(){return"a".replace(/./,"$0")==="$0"}(),HCe=function(){return/./[Kte]?/./[Kte]("a","$0")==="":!1}(),CCr=!lCr(function(){var n=/./;return n.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(n,"$")!=="7"});sCr("replace",function(n,e,t){var r=HCe?"$":"$0";return[function(a,o){var s=vCr(this),l=cCr(a)?gCr(a,Kte):void 0;return l?$Ce(l,a,s,o):$Ce(e,wb(s),a,o)},function(i,a){var o=uCr(this),s=wb(i);if(typeof a=="string"&&S6(a,r)===-1&&S6(a,"$<")===-1){var l=t(e,o,s,a);if(l.done)return l.value}var u=hCr(a);u||(a=wb(a));var h=wb(mCr(o)),c=S6(h,"g")!==-1,f;c&&(f=S6(h,"u")!==-1,o.lastIndex=0);for(var d=[],v;v=_Cr(o,s),!(v===null||(Cq(d,v),!c));){var p=wb(v[0]);p===""&&(o.lastIndex=pCr(s,dCr(o.lastIndex),f))}for(var g="",m=0,y=0;y=m&&(g+=WCe(s,m,x)+w,m=x+_.length)}return g+WCe(s,m)}]},!CCr||!TCr||HCe);var ACr=Ud,MCr=gT,ICr=Jh,LCr=ICr("match"),PCr=function(n){var e;return ACr(n)&&((e=n[LCr])!==void 0?!!e:MCr(n)==="RegExp")},OCr=PCr,RCr=TypeError,rhe=function(n){if(OCr(n))throw new RCr("The method doesn't accept regular expressions");return n},DCr=Jh,NCr=DCr("match"),nhe=function(n){var e=/./;try{"/./"[n](e)}catch{try{return e[NCr]=!1,"/./"[n](e)}catch{}}return!1},kCr=Xf,FCr=KV,BCr=Ak.f,GCr=iL,jCe=Bm,zCr=rhe,UCr=$0,VCr=nhe,$Cr=FCr("".slice),WCr=Math.min,PYe=VCr("startsWith"),HCr=!PYe&&!!function(){var n=BCr(String.prototype,"startsWith");return n&&!n.writable}();kCr({target:"String",proto:!0,forced:!HCr&&!PYe},{startsWith:function(e){var t=jCe(UCr(this));zCr(e);var r=GCr(WCr(arguments.length>1?arguments[1]:void 0,t.length)),i=jCe(e);return $Cr(t,r,r+i.length)===i}});var jCr=Jh,XCr=Yue,YCr=X_.f,Jte=jCr("unscopables"),Qte=Array.prototype;Qte[Jte]===void 0&&YCr(Qte,Jte,{configurable:!0,value:XCr(null)});var qCr=function(n){Qte[Jte][n]=!0},ZCr=Yl,KCr=!ZCr(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype}),JCr=W0,QCr=yu,eAr=WV,tAr=Pue,rAr=KCr,XCe=tAr("IE_PROTO"),ere=Object,nAr=ere.prototype,OYe=rAr?ere.getPrototypeOf:function(n){var e=eAr(n);if(JCr(e,XCe))return e[XCe];var t=e.constructor;return QCr(t)&&e instanceof t?t.prototype:e instanceof ere?nAr:null},iAr=Yl,aAr=yu,oAr=Ud,YCe=OYe,sAr=mT,lAr=Jh,tre=lAr("iterator"),RYe=!1,g2,Aq,Mq;[].keys&&(Mq=[].keys(),"next"in Mq?(Aq=YCe(YCe(Mq)),Aq!==Object.prototype&&(g2=Aq)):RYe=!0);var uAr=!oAr(g2)||iAr(function(){var n={};return g2[tre].call(n)!==n});uAr&&(g2={});aAr(g2[tre])||sAr(g2,tre,function(){return this});var DYe={IteratorPrototype:g2,BUGGY_SAFARI_ITERATORS:RYe},hAr=DYe.IteratorPrototype,cAr=Yue,fAr=Eue,dAr=ZV,vAr=Rk,pAr=function(){return this},gAr=function(n,e,t,r){var i=e+" Iterator";return n.prototype=cAr(hAr,{next:fAr(+!r,t)}),dAr(n,i,!1),vAr[i]=pAr,n},yAr=Xf,mAr=Sc,NYe=jV,_Ar=yu,xAr=gAr,qCe=OYe,ZCe=WXe,SAr=ZV,wAr=Lk,Iq=mT,bAr=Jh,EAr=Rk,kYe=DYe,TAr=NYe.PROPER,CAr=NYe.CONFIGURABLE,KCe=kYe.IteratorPrototype,w6=kYe.BUGGY_SAFARI_ITERATORS,BP=bAr("iterator"),JCe="keys",GP="values",QCe="entries",AAr=function(){return this},MAr=function(n,e,t,r,i,a,o){xAr(t,e,r);var s=function(m){if(m===i&&f)return f;if(!w6&&m&&m in h)return h[m];switch(m){case JCe:return function(){return new t(this,m)};case GP:return function(){return new t(this,m)};case QCe:return function(){return new t(this,m)}}return function(){return new t(this)}},l=e+" Iterator",u=!1,h=n.prototype,c=h[BP]||h["@@iterator"]||i&&h[i],f=!w6&&c||s(i),d=e==="Array"&&h.entries||c,v,p,g;if(d&&(v=qCe(d.call(new n)),v!==Object.prototype&&v.next&&(qCe(v)!==KCe&&(ZCe?ZCe(v,KCe):_Ar(v[BP])||Iq(v,BP,AAr)),SAr(v,l,!0))),TAr&&i===GP&&c&&c.name!==GP&&(CAr?wAr(h,"name",GP):(u=!0,f=function(){return mAr(c,this)})),i)if(p={values:s(GP),keys:a?f:s(JCe),entries:s(QCe)},o)for(g in p)(w6||u||!(g in h))&&Iq(h,g,p[g]);else yAr({target:e,proto:!0,forced:w6||u},p);return h[BP]!==f&&Iq(h,BP,f,{name:i}),EAr[e]=f,p},IAr=function(n,e){return{value:n,done:e}},LAr=Mk,ihe=qCr,eAe=Rk,FYe=XV,PAr=X_.f,OAr=MAr,b6=IAr,RAr=V0,BYe="Array Iterator",DAr=FYe.set,NAr=FYe.getterFor(BYe),kAr=OAr(Array,"Array",function(n,e){DAr(this,{type:BYe,target:LAr(n),index:0,kind:e})},function(){var n=NAr(this),e=n.target,t=n.index++;if(!e||t>=e.length)return n.target=null,b6(void 0,!0);switch(n.kind){case"keys":return b6(t,!1);case"values":return b6(e[t],!1)}return b6([t,e[t]],!1)},"values"),tAe=eAe.Arguments=eAe.Array;ihe("keys");ihe("values");ihe("entries");if(RAr&&tAe.name!=="values")try{PAr(tAe,"name",{value:"values"})}catch{}var FAr={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},BAr=HV,Lq=BAr("span").classList,rAe=Lq&&Lq.constructor&&Lq.constructor.prototype,GAr=rAe===Object.prototype?void 0:rAe,nAe=_l,GYe=FAr,zAr=GAr,MO=kAr,iAe=Lk,UAr=ZV,VAr=Jh,Pq=VAr("iterator"),Oq=MO.values,zYe=function(n,e){if(n){if(n[Pq]!==Oq)try{iAe(n,Pq,Oq)}catch{n[Pq]=Oq}if(UAr(n,e,!0),GYe[e]){for(var t in MO)if(n[t]!==MO[t])try{iAe(n,t,MO[t])}catch{n[t]=MO[t]}}}};for(var Rq in GYe)zYe(nAe[Rq]&&nAe[Rq].prototype,Rq);zYe(zAr,"DOMTokenList");var $Ar=j_,WAr=WV,HAr=CXe,jAr=Due,aAe=TypeError,oAe="Reduce of empty array with no initial value",sAe=function(n){return function(e,t,r,i){var a=WAr(e),o=HAr(a),s=jAr(a);if($Ar(t),s===0&&r<2)throw new aAe(oAe);var l=n?s-1:0,u=n?-1:1;if(r<2)for(;;){if(l in o){i=o[l],l+=u;break}if(l+=u,n?l<0:s<=l)throw new aAe(oAe)}for(;n?l>=0:s>l;l+=u)l in o&&(i=t(i,o[l],l,a));return i}},XAr={left:sAe(!1),right:sAe(!0)},YAr=Yl,UYe=function(n,e){var t=[][n];return!!t&&YAr(function(){t.call(null,e||function(){return 1},1)})},qAr=Xf,ZAr=XAr.left,KAr=UYe,lAe=Tue,JAr=qV,QAr=!JAr&&lAe>79&&lAe<83,eMr=QAr||!KAr("reduce");qAr({target:"Array",proto:!0,forced:eMr},{reduce:function(e){var t=arguments.length;return ZAr(this,e,t,t>1?arguments[1]:void 0)}});var tMr=Xf,rMr=KV,nMr=Ak.f,iMr=iL,uAe=Bm,aMr=rhe,oMr=$0,sMr=nhe,lMr=rMr("".slice),uMr=Math.min,VYe=sMr("endsWith"),hMr=!VYe&&!!function(){var n=nMr(String.prototype,"endsWith");return n&&!n.writable}();tMr({target:"String",proto:!0,forced:!hMr&&!VYe},{endsWith:function(e){var t=uAe(oMr(this));aMr(e);var r=arguments.length>1?arguments[1]:void 0,i=t.length,a=r===void 0?i:uMr(iMr(r),i),o=uAe(e);return lMr(t,a-o.length,a)===o}});var Dq=Sc,$Ye=ql,cMr=Zue,fMr=jf,dMr=Ud,vMr=$0,pMr=ZXe,gMr=Jue,yMr=iL,hAe=Bm,mMr=nL,cAe=ehe,_Mr=TYe,xMr=Yl,TC=_Mr.UNSUPPORTED_Y,SMr=4294967295,wMr=Math.min,Nq=$Ye([].push),kq=$Ye("".slice),bMr=!xMr(function(){var n=/(?:)/,e=n.exec;n.exec=function(){return e.apply(this,arguments)};var t="ab".split(n);return t.length!==2||t[0]!=="a"||t[1]!=="b"}),fAe="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;cMr("split",function(n,e,t){var r="0".split(void 0,0).length?function(i,a){return i===void 0&&a===0?[]:Dq(e,this,i,a)}:e;return[function(a,o){var s=vMr(this),l=dMr(a)?mMr(a,n):void 0;return l?Dq(l,a,s,o):Dq(r,hAe(s),a,o)},function(i,a){var o=fMr(this),s=hAe(i);if(!fAe){var l=t(r,o,s,a,r!==e);if(l.done)return l.value}var u=pMr(o,RegExp),h=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(TC?"g":"y"),f=new u(TC?"^(?:"+o.source+")":o,c),d=a===void 0?SMr:a>>>0;if(d===0)return[];if(s.length===0)return cAe(f,s)===null?[s]:[];for(var v=0,p=0,g=[];p"u"?at:window,E6=["moz","webkit"],QA="AnimationFrame",HM=Q1["request"+QA],yN=Q1["cancel"+QA]||Q1["cancelRequest"+QA];for(var zP=0;!HM&&zP3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var l=this.r.toString(16),u=this.g.toString(16),h=this.b.toString(16);return l.length==1&&(l="0"+l),u.length==1&&(u="0"+u),h.length==1&&(h="0"+h),"#"+l+u+h},this.getHelpXML=function(){for(var l=new Array,u=0;u "+p.toRGB()+" -> "+p.toHex());v.appendChild(g),v.appendChild(m),d.appendChild(v)}catch{}return d}},BMr=Xf,GMr=KV,zMr=GXe.indexOf,UMr=UYe,ire=GMr([].indexOf),HYe=!!ire&&1/ire([1],1,-0)<0,VMr=HYe||!UMr("indexOf");BMr({target:"Array",proto:!0,forced:VMr},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return HYe?ire(this,e,t)||0:zMr(this,e,t)}});var $Mr=Xf,WMr=ql,HMr=rhe,jMr=$0,yAe=Bm,XMr=nhe,YMr=WMr("".indexOf);$Mr({target:"String",proto:!0,forced:!XMr("includes")},{includes:function(e){return!!~YMr(yAe(jMr(this)),yAe(HMr(e)),arguments.length>1?arguments[1]:void 0)}});var qMr=gT,ZMr=Array.isArray||function(e){return qMr(e)==="Array"},KMr=Xf,JMr=ql,QMr=ZMr,eIr=JMr([].reverse),mAe=[1,2];KMr({target:"Array",proto:!0,forced:String(mAe)===String(mAe.reverse())},{reverse:function(){return QMr(this)&&(this.length=this.length),eIr(this)}});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var jYe=function(n,e){return(jYe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])})(n,e)};function XYe(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=n}jYe(n,e),n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function tIr(n){var e="";Array.isArray(n)||(n=[n]);for(var t=0;tn.phi1&&(n.phi2-=2*Vx),n.sweepFlag===1&&n.phi2r)return[];if(r===0)return[[n*t/(n*n+e*e),e*t/(n*n+e*e)]];var i=Math.sqrt(r);return[[(n*t+e*i)/(n*n+e*e),(e*t-n*i)/(n*n+e*e)],[(n*t-e*i)/(n*n+e*e),(e*t+n*i)/(n*n+e*e)]]}var Tu,s1=Math.PI/180;function xAe(n,e,t){return(1-t)*n+t*e}function SAe(n,e,t,r){return n+Math.cos(r/180*Vx)*e+Math.sin(r/180*Vx)*t}function wAe(n,e,t,r){var i=1e-6,a=e-n,o=t-e,s=3*a+3*(r-t)-6*o,l=6*(o-a),u=3*a;return Math.abs(s)b&&(d.sweepFlag=+!d.sweepFlag),d})}function o(){return function(s){var l={};for(var u in s)l[u]=s[u];return l}}n.ROUND=function(s){function l(u){return Math.round(u*s)/s}return s===void 0&&(s=1e13),Rg(s),function(u){return u.x1!==void 0&&(u.x1=l(u.x1)),u.y1!==void 0&&(u.y1=l(u.y1)),u.x2!==void 0&&(u.x2=l(u.x2)),u.y2!==void 0&&(u.y2=l(u.y2)),u.x!==void 0&&(u.x=l(u.x)),u.y!==void 0&&(u.y=l(u.y)),u.rX!==void 0&&(u.rX=l(u.rX)),u.rY!==void 0&&(u.rY=l(u.rY)),u}},n.TO_ABS=e,n.TO_REL=function(){return i(function(s,l,u){return s.relative||(s.x1!==void 0&&(s.x1-=l),s.y1!==void 0&&(s.y1-=u),s.x2!==void 0&&(s.x2-=l),s.y2!==void 0&&(s.y2-=u),s.x!==void 0&&(s.x-=l),s.y!==void 0&&(s.y-=u),s.relative=!0),s})},n.NORMALIZE_HVZ=function(s,l,u){return s===void 0&&(s=!0),l===void 0&&(l=!0),u===void 0&&(u=!0),i(function(h,c,f,d,v){if(isNaN(d)&&!(h.type&_r.MOVE_TO))throw new Error("path must start with moveto");return l&&h.type&_r.HORIZ_LINE_TO&&(h.type=_r.LINE_TO,h.y=h.relative?0:f),u&&h.type&_r.VERT_LINE_TO&&(h.type=_r.LINE_TO,h.x=h.relative?0:c),s&&h.type&_r.CLOSE_PATH&&(h.type=_r.LINE_TO,h.x=h.relative?d-c:d,h.y=h.relative?v-f:v),h.type&_r.ARC&&(h.rX===0||h.rY===0)&&(h.type=_r.LINE_TO,delete h.rX,delete h.rY,delete h.xRot,delete h.lArcFlag,delete h.sweepFlag),h})},n.NORMALIZE_ST=t,n.QT_TO_C=r,n.INFO=i,n.SANITIZE=function(s){s===void 0&&(s=0),Rg(s);var l=NaN,u=NaN,h=NaN,c=NaN;return i(function(f,d,v,p,g){var m=Math.abs,y=!1,_=0,x=0;if(f.type&_r.SMOOTH_CURVE_TO&&(_=isNaN(l)?0:d-l,x=isNaN(u)?0:v-u),f.type&(_r.CURVE_TO|_r.SMOOTH_CURVE_TO)?(l=f.relative?d+f.x2:f.x2,u=f.relative?v+f.y2:f.y2):(l=NaN,u=NaN),f.type&_r.SMOOTH_QUAD_TO?(h=isNaN(h)?d:2*d-h,c=isNaN(c)?v:2*v-c):f.type&_r.QUAD_TO?(h=f.relative?d+f.x1:f.x1,c=f.relative?v+f.y1:f.y2):(h=NaN,c=NaN),f.type&_r.LINE_COMMANDS||f.type&_r.ARC&&(f.rX===0||f.rY===0||!f.lArcFlag)||f.type&_r.CURVE_TO||f.type&_r.SMOOTH_CURVE_TO||f.type&_r.QUAD_TO||f.type&_r.SMOOTH_QUAD_TO){var S=f.x===void 0?0:f.relative?f.x:f.x-d,w=f.y===void 0?0:f.relative?f.y:f.y-v;_=isNaN(h)?f.x1===void 0?_:f.relative?f.x:f.x1-d:h-d,x=isNaN(c)?f.y1===void 0?x:f.relative?f.y:f.y1-v:c-v;var b=f.x2===void 0?0:f.relative?f.x:f.x2-d,E=f.y2===void 0?0:f.relative?f.y:f.y2-v;m(S)<=s&&m(w)<=s&&m(_)<=s&&m(x)<=s&&m(b)<=s&&m(E)<=s&&(y=!0)}return f.type&_r.CLOSE_PATH&&m(d-p)<=s&&m(v-g)<=s&&(y=!0),y?[]:f})},n.MATRIX=a,n.ROTATE=function(s,l,u){l===void 0&&(l=0),u===void 0&&(u=0),Rg(s,l,u);var h=Math.sin(s),c=Math.cos(s);return a(c,h,-h,c,l-l*c+u*h,u-l*h-u*c)},n.TRANSLATE=function(s,l){return l===void 0&&(l=0),Rg(s,l),a(1,0,0,1,s,l)},n.SCALE=function(s,l){return l===void 0&&(l=s),Rg(s,l),a(s,0,0,l,0,0)},n.SKEW_X=function(s){return Rg(s),a(1,0,Math.atan(s),1,0,0)},n.SKEW_Y=function(s){return Rg(s),a(1,Math.atan(s),0,1,0,0)},n.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),Rg(s),a(-1,0,0,1,s,0)},n.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),Rg(s),a(1,0,0,-1,0,s)},n.A_TO_C=function(){return i(function(s,l,u){return _r.ARC===s.type?function(h,c,f){var d,v,p,g;h.cX||Gq(h,c,f);for(var m=Math.min(h.phi1,h.phi2),y=Math.max(h.phi1,h.phi2)-m,_=Math.ceil(y/90),x=new Array(_),S=c,w=f,b=0;b<_;b++){var E=xAe(h.phi1,h.phi2,b/_),T=xAe(h.phi1,h.phi2,(b+1)/_),C=T-E,A=4/3*Math.tan(C*s1/4),M=[Math.cos(E*s1)-A*Math.sin(E*s1),Math.sin(E*s1)+A*Math.cos(E*s1)],I=M[0],R=M[1],k=[Math.cos(T*s1),Math.sin(T*s1)],D=k[0],G=k[1],V=[D+A*Math.sin(T*s1),G-A*Math.cos(T*s1)],z=V[0],j=V[1];x[b]={relative:h.relative,type:_r.CURVE_TO};var Z=function(Y,le){var H=are([Y*h.rX,le*h.rY],h.xRot),Q=H[0],ie=H[1];return[h.cX+Q,h.cY+ie]};d=Z(I,R),x[b].x1=d[0],x[b].y1=d[1],v=Z(z,j),x[b].x2=v[0],x[b].y2=v[1],p=Z(D,G),x[b].x=p[0],x[b].y=p[1],h.relative&&(x[b].x1-=S,x[b].y1-=w,x[b].x2-=S,x[b].y2-=w,x[b].x-=S,x[b].y-=w),S=(g=[x[b].x,x[b].y])[0],w=g[1]}return x}(s,s.relative?0:l,s.relative?0:u):s})},n.ANNOTATE_ARCS=function(){return i(function(s,l,u){return s.relative&&(l=0,u=0),_r.ARC===s.type&&Gq(s,l,u),s})},n.CLONE=o,n.CALCULATE_BOUNDS=function(){var s=function(f){var d={};for(var v in f)d[v]=f[v];return d},l=e(),u=r(),h=t(),c=i(function(f,d,v){var p=h(u(l(s(f))));function g(j){j>c.maxX&&(c.maxX=j),jc.maxY&&(c.maxY=j),jz&&g(bAe(d,p.x1,p.x2,p.x,z));for(var x=0,S=wAe(v,p.y1,p.y2,p.y);xz&&m(bAe(v,p.y1,p.y2,p.y,z))}if(p.type&_r.ARC){g(p.x),m(p.y),Gq(p,d,v);for(var w=p.xRot/180*Math.PI,b=Math.cos(w)*p.rX,E=Math.sin(w)*p.rX,T=-Math.sin(w)*p.rY,C=Math.cos(w)*p.rY,A=p.phi1p.phi2?[p.phi2+360,p.phi1+360]:[p.phi2,p.phi1],M=A[0],I=A[1],R=function(j){var Z=j[0],Y=j[1],le=180*Math.atan2(Y,Z)/Math.PI;return leM&&zM&&zh)throw new SyntaxError('Expected positive number, got "'+h+'" at index "'+o+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"')}this.curArgs.push(h),this.curArgs.length===iIr[this.curCommandType]&&(_r.HORIZ_LINE_TO===this.curCommandType?a({type:_r.HORIZ_LINE_TO,relative:this.curCommandRelative,x:h}):_r.VERT_LINE_TO===this.curCommandType?a({type:_r.VERT_LINE_TO,relative:this.curCommandRelative,y:h}):this.curCommandType===_r.MOVE_TO||this.curCommandType===_r.LINE_TO||this.curCommandType===_r.SMOOTH_QUAD_TO?(a({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),_r.MOVE_TO===this.curCommandType&&(this.curCommandType=_r.LINE_TO)):this.curCommandType===_r.CURVE_TO?a({type:_r.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===_r.SMOOTH_CURVE_TO?a({type:_r.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_r.QUAD_TO?a({type:_r.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_r.ARC&&a({type:_r.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!rIr(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(u)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=_r.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=_r.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=_r.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=_r.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=_r.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=_r.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=_r.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=_r.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=_r.ARC,this.curCommandRelative=s==="a"}else r.push({type:_r.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s==="."}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return r},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(r,i){i===void 0&&(i=[]);for(var a=0,o=Object.getPrototypeOf(this).parse.call(this,r);a>>S;if(o[_+3]=re,re!==0){var yt=255/re;o[_]=(j*x>>>S)*yt,o[_+1]=(Z*x>>>S)*yt,o[_+2]=(Y*x>>>S)*yt}else o[_]=o[_+1]=o[_+2]=0;j-=D,Z-=G,Y-=V,le-=z,D-=g.r,G-=g.g,V-=g.b,z-=g.a;var je=Le+a+1;je=y+(je>>S,We>0?(We=255/We,o[oi]=(wt*x>>>S)*We,o[oi+1]=(pt*x>>>S)*We,o[oi+2]=(ar*x>>>S)*We):o[oi]=o[oi+1]=o[oi+2]=0,wt-=Tt,pt-=Qe,ar-=zt,kt-=mt,Tt-=g.r,Qe-=g.g,zt-=g.b,mt-=g.a,oi=Dt+((oi=Oi+h)e--&&i?String(Math.round(parseFloat(r))):r);return t}var bIr=/(\[[^\]]+\])/g,EIr=/(#[^\s+>~.[:]+)/g,TIr=/(\.[^\s+>~.[:]+)/g,CIr=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,AIr=/(:[\w-]+\([^)]*\))/gi,MIr=/(:[^\s+>~.[:]+)/g,IIr=/([^\s+>~.[:]+)/g;function Eb(n,e){var t=e.exec(n);return t?[n.replace(e," "),t.length]:[n,0]}function LIr(n){var e=[0,0,0],t=n.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[t,r]=Eb(t,bIr),e[1]+=r,[t,r]=Eb(t,EIr),e[0]+=r,[t,r]=Eb(t,TIr),e[1]+=r,[t,r]=Eb(t,CIr),e[2]+=r,[t,r]=Eb(t,AIr),e[1]+=r,[t,r]=Eb(t,MIr),e[1]+=r,t=t.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[t,r]=Eb(t,IIr),e[2]+=r,e.join("")}var eM=1e-8;function AAe(n){return Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2))}function ore(n,e){return(n[0]*e[0]+n[1]*e[1])/(AAe(n)*AAe(e))}function MAe(n,e){return(n[0]*e[1]0&&arguments[0]!==void 0?arguments[0]:" ",{document:t,name:r}=this;return oL(this.getString()).trim().split(e).map(i=>new jn(t,r,i))}hasValue(e){var{value:t}=this;return t!==null&&t!==""&&(e||t!==0)&&typeof t<"u"}isString(e){var{value:t}=this,r=typeof t=="string";return!r||!e?r:e.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:t}=this,r=parseFloat(t);return this.isString(/%$/)&&(r/=100),r}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=wIr(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[r,i]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:a}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(a.computeSize("x"),a.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(a.computeSize("x"),a.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*a.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*a.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&i):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*a.computeSize(r);default:{var o=this.getNumber();return t&&o<1?o*a.computeSize(r):o}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}getFillStyleDefinition(e,t){var r=this.getDefinition();if(!r)return null;if(typeof r.createGradient=="function")return r.createGradient(this.document.ctx,e,t);if(typeof r.createPattern=="function"){if(r.getHrefAttribute().hasValue()){var i=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&r.getAttribute("patternTransform",!0).setValue(i.value)}return r.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?jn.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),r=t.length,i=0,a=0;a1&&arguments[1]!==void 0?arguments[1]:0,[r=t,i=t]=xv(e);return new su(r,i)}static parseScale(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=t,i=r]=xv(e);return new su(r,i)}static parsePath(e){for(var t=xv(e),r=t.length,i=[],a=0;a0}runEvents(){if(!!this.working){var{screen:e,events:t,eventElements:r}=this,{style:i}=e.ctx.canvas;i&&(i.cursor=""),t.forEach((a,o)=>{for(var{run:s}=a,l=r[o];l;)s(l),l=l.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((a,o)=>{var{x:s,y:l}=a;!i[o]&&t.isPointInPath&&t.isPointInPath(s,l)&&(i[o]=e)})}}checkBoundingBox(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((a,o)=>{var{x:s,y:l}=a;!i[o]&&t.isPointInBox(s,l)&&(i[o]=e)})}}mapXY(e,t){for(var{window:r,ctx:i}=this.screen,a=new su(e,t),o=i.canvas;o;)a.x-=o.offsetLeft,a.y-=o.offsetTop,o=o.offsetParent;return r.scrollX&&(a.x+=r.scrollX),r.scrollY&&(a.y+=r.scrollY),a}onClick(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:r,run(i){i.onClick&&i.onClick()}})}onMouseMove(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:r,run(i){i.onMouseMove&&i.onMouseMove()}})}}var JYe=typeof window<"u"?window:null,QYe=typeof fetch<"u"?fetch.bind(void 0):null;class r${constructor(e){var{fetch:t=QYe,window:r=JYe}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new PIr,this.mouse=new OIr(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(t=>t());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:t,ctx:r,aspectRatio:i,width:a,desiredWidth:o,height:s,desiredHeight:l,minX:u=0,minY:h=0,refX:c,refY:f,clip:d=!1,clipX:v=0,clipY:p=0}=e,g=oL(i).replace(/^defer\s/,""),[m,y]=g.split(" "),_=m||"xMidYMid",x=y||"meet",S=a/o,w=s/l,b=Math.min(S,w),E=Math.max(S,w),T=o,C=l;x==="meet"&&(T*=b,C*=b),x==="slice"&&(T*=E,C*=E);var A=new jn(t,"refX",c),M=new jn(t,"refY",f),I=A.hasValue()&&M.hasValue();if(I&&r.translate(-b*A.getPixels("x"),-b*M.getPixels("y")),d){var R=b*v,k=b*p;r.beginPath(),r.moveTo(R,k),r.lineTo(a,k),r.lineTo(a,s),r.lineTo(R,s),r.closePath(),r.clip()}if(!I){var D=x==="meet"&&b===w,G=x==="slice"&&E===w,V=x==="meet"&&b===S,z=x==="slice"&&E===S;_.startsWith("xMid")&&(D||G)&&r.translate(a/2-T/2,0),_.endsWith("YMid")&&(V||z)&&r.translate(0,s/2-C/2),_.startsWith("xMax")&&(D||G)&&r.translate(a-T,0),_.endsWith("YMax")&&(V||z)&&r.translate(0,s-C)}switch(!0){case _==="none":r.scale(S,w);break;case x==="meet":r.scale(b,b);break;case x==="slice":r.scale(E,E);break}r.translate(-u,-h)}start(e){var{enableRedraw:t=!1,ignoreMouse:r=!1,ignoreAnimation:i=!1,ignoreDimensions:a=!1,ignoreClear:o=!1,forceRedraw:s,scaleWidth:l,scaleHeight:u,offsetX:h,offsetY:c}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:f,mouse:d}=this,v=1e3/f;if(this.frameDuration=v,this.readyPromise=new Promise(_=>{this.resolveReady=_}),this.isReady()&&this.render(e,a,o,l,u,h,c),!!t){var p=Date.now(),g=p,m=0,y=()=>{p=Date.now(),m=p-g,m>=v&&(g=p-m%v,this.shouldUpdate(i,s)&&(this.render(e,a,o,l,u,h,c),d.runEvents())),this.intervalId=JA.exports(y)};r||d.start(),this.intervalId=JA.exports(y)}}stop(){this.intervalId&&(JA.exports.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:r}=this,i=this.animations.reduce((a,o)=>o.update(r)||a,!1);if(i)return!0}return!!(typeof t=="function"&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,t,r,i,a,o,s){var{CLIENT_WIDTH:l,CLIENT_HEIGHT:u,viewPort:h,ctx:c,isFirstRender:f}=this,d=c.canvas;h.clear(),d.width&&d.height?h.setCurrent(d.width,d.height):h.setCurrent(l,u);var v=e.getStyle("width"),p=e.getStyle("height");!t&&(f||typeof i!="number"&&typeof a!="number")&&(v.hasValue()&&(d.width=v.getPixels("x"),d.style&&(d.style.width="".concat(d.width,"px"))),p.hasValue()&&(d.height=p.getPixels("y"),d.style&&(d.style.height="".concat(d.height,"px"))));var g=d.clientWidth||d.width,m=d.clientHeight||d.height;if(t&&v.hasValue()&&p.hasValue()&&(g=v.getPixels("x"),m=p.getPixels("y")),h.setCurrent(g,m),typeof o=="number"&&e.getAttribute("x",!0).setValue(o),typeof s=="number"&&e.getAttribute("y",!0).setValue(s),typeof i=="number"||typeof a=="number"){var y=xv(e.getAttribute("viewBox").getString()),_=0,x=0;if(typeof i=="number"){var S=e.getStyle("width");S.hasValue()?_=S.getPixels("x")/i:isNaN(y[2])||(_=y[2]/i)}if(typeof a=="number"){var w=e.getStyle("height");w.hasValue()?x=w.getPixels("y")/a:isNaN(y[3])||(x=y[3]/a)}_||(_=x),x||(x=_),e.getAttribute("width",!0).setValue(i),e.getAttribute("height",!0).setValue(a);var b=e.getStyle("transform",!0,!0);b.setValue("".concat(b.getString()," scale(").concat(1/_,", ").concat(1/x,")"))}r||c.clearRect(0,0,g,m),e.render(c),f&&(this.isFirstRender=!1)}}r$.defaultWindow=JYe;r$.defaultFetch=QYe;var{defaultFetch:RIr}=r$,DIr=typeof DOMParser<"u"?DOMParser:null;class zq{constructor(){var{fetch:e=RIr,DOMParser:t=DIr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return Vc(function*(){return e.startsWith("<")?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}load(e){var t=this;return Vc(function*(){var r=yield t.fetch(e),i=yield r.text();return t.parseFromString(i)})()}}class NIr{constructor(e,t){this.type="translate",this.point=null,this.point=su.parse(t)}apply(e){var{x:t,y:r}=this.point;e.translate(t||0,r||0)}unapply(e){var{x:t,y:r}=this.point;e.translate(-1*t||0,-1*r||0)}applyToPoint(e){var{x:t,y:r}=this.point;e.applyTransform([1,0,0,1,t||0,r||0])}}class kIr{constructor(e,t,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=xv(t);this.angle=new jn(e,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(e){var{cx:t,cy:r,originX:i,originY:a,angle:o}=this,s=t+i.getPixels("x"),l=r+a.getPixels("y");e.translate(s,l),e.rotate(o.getRadians()),e.translate(-s,-l)}unapply(e){var{cx:t,cy:r,originX:i,originY:a,angle:o}=this,s=t+i.getPixels("x"),l=r+a.getPixels("y");e.translate(s,l),e.rotate(-1*o.getRadians()),e.translate(-s,-l)}applyToPoint(e){var{cx:t,cy:r,angle:i}=this,a=i.getRadians();e.applyTransform([1,0,0,1,t||0,r||0]),e.applyTransform([Math.cos(a),Math.sin(a),-Math.sin(a),Math.cos(a),0,0]),e.applyTransform([1,0,0,1,-t||0,-r||0])}}class FIr{constructor(e,t,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=su.parseScale(t);(i.x===0||i.y===0)&&(i.x=eM,i.y=eM),this.scale=i,this.originX=r[0],this.originY=r[1]}apply(e){var{scale:{x:t,y:r},originX:i,originY:a}=this,o=i.getPixels("x"),s=a.getPixels("y");e.translate(o,s),e.scale(t,r||t),e.translate(-o,-s)}unapply(e){var{scale:{x:t,y:r},originX:i,originY:a}=this,o=i.getPixels("x"),s=a.getPixels("y");e.translate(o,s),e.scale(1/t,1/r||t),e.translate(-o,-s)}applyToPoint(e){var{x:t,y:r}=this.scale;e.applyTransform([t||0,0,0,r||0,0,0])}}class eqe{constructor(e,t,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=xv(t),this.originX=r[0],this.originY=r[1]}apply(e){var{originX:t,originY:r,matrix:i}=this,a=t.getPixels("x"),o=r.getPixels("y");e.translate(a,o),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),e.translate(-a,-o)}unapply(e){var{originX:t,originY:r,matrix:i}=this,a=i[0],o=i[2],s=i[4],l=i[1],u=i[3],h=i[5],c=0,f=0,d=1,v=1/(a*(u*d-h*f)-o*(l*d-h*c)+s*(l*f-u*c)),p=t.getPixels("x"),g=r.getPixels("y");e.translate(p,g),e.transform(v*(u*d-h*f),v*(h*c-l*d),v*(s*f-o*d),v*(a*d-s*c),v*(o*h-s*u),v*(s*l-a*h)),e.translate(-p,-g)}applyToPoint(e){e.applyTransform(this.matrix)}}class tqe extends eqe{constructor(e,t,r){super(e,t,r),this.type="skew",this.angle=null,this.angle=new jn(e,"angle",t)}}class BIr extends tqe{constructor(e,t,r){super(e,t,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class GIr extends tqe{constructor(e,t,r){super(e,t,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function zIr(n){return oL(n).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function UIr(n){var[e,t]=n.split("(");return[e.trim(),t.trim().replace(")","")]}class y2{constructor(e,t,r){this.document=e,this.transforms=[];var i=zIr(t);i.forEach(a=>{if(a!=="none"){var[o,s]=UIr(a),l=y2.transformTypes[o];typeof l<"u"&&this.transforms.push(new l(this.document,s,r))}})}static fromElement(e,t){var r=t.getStyle("transform",!1,!0),[i,a=i]=t.getStyle("transform-origin",!1,!0).split(),o=[i,a];return r.hasValue()?new y2(e,r.getString(),o):null}apply(e){for(var{transforms:t}=this,r=t.length,i=0;i=0;i--)t[i].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,r=t.length,i=0;i2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=t,this.captureTextNodes=r,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!t||t.nodeType!==1)){if(Array.from(t.attributes).forEach(s=>{var l=SIr(s.nodeName);this.attributes[l]=new jn(e,l,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(s=>s.trim());i.forEach(s=>{if(!!s){var[l,u]=s.split(":").map(h=>h.trim());this.styles[l]=new jn(e,l,u)}})}var{definitions:a}=e,o=this.getAttribute("id");o.hasValue()&&(a[o.getString()]||(a[o.getString()]=this)),Array.from(t.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(r&&(s.nodeType===3||s.nodeType===4)){var l=e.createTextNode(s);l.getText().length>0&&this.addChild(l)}})}}getAttribute(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.attributes[e];if(!r&&t){var i=new jn(this.document,e,"");return this.attributes[e]=i,i}return r||jn.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return jn.empty(this.document)}getStyle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[e];if(i)return i;var a=this.getAttribute(e);if(a!=null&&a.hasValue())return this.styles[e]=a,a;if(!r){var{parent:o}=this;if(o){var s=o.getStyle(e);if(s!=null&&s.hasValue())return s}}if(t){var l=new jn(this.document,e,"");return this.styles[e]=l,l}return i||jn.empty(this.document)}render(e){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=y2.fromElement(this.document,this);t&&t.apply(e);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var i=r.getDefinition();i&&i.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(e){var t=e instanceof il?e:this.document.createElement(e);t.parent=this,il.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var t,{node:r}=this;if(typeof r.matches=="function")return r.matches(e);var i=(t=r.getAttribute)===null||t===void 0?void 0:t.call(r,"class");return!i||i===""?!1:i.split(" ").some(a=>".".concat(a)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var r in e)if(!r.startsWith("@")&&this.matchesSelector(r)){var i=e[r],a=t[r];if(i)for(var o in i){var s=this.stylesSpecificity[o];typeof s>"u"&&(s="000"),a>=s&&(this.styles[o]=i[o],this.stylesSpecificity[o]=a)}}}removeStyles(e,t){var r=t.reduce((i,a)=>{var o=e.getStyle(a);if(!o.hasValue())return i;var s=o.getString();return o.setValue(""),[...i,[a,s]]},[]);return r}restoreStyles(e,t){t.forEach(r=>{var[i,a]=r;e.getStyle(i,!0).setValue(a)})}isFirstChild(){var e;return((e=this.parent)===null||e===void 0?void 0:e.children.indexOf(this))===0}}il.ignoreChildTypes=["title"];class VIr extends il{constructor(e,t,r){super(e,t,r)}}function $Ir(n){var e=n.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function WIr(n){return typeof process>"u"?n:n.trim().split(",").map($Ir).join(",")}function HIr(n){if(!n)return"";var e=n.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function jIr(n){if(!n)return"";var e=n.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class If{constructor(e,t,r,i,a,o){var s=o?typeof o=="string"?If.parse(o):o:{};this.fontFamily=a||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=t||s.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r="",i="",a="",o="",s="",l=oL(e).trim().split(" "),u={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(h=>{switch(!0){case(!u.fontStyle&&If.styles.includes(h)):h!=="inherit"&&(r=h),u.fontStyle=!0;break;case(!u.fontVariant&&If.variants.includes(h)):h!=="inherit"&&(i=h),u.fontStyle=!0,u.fontVariant=!0;break;case(!u.fontWeight&&If.weights.includes(h)):h!=="inherit"&&(a=h),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0;break;case!u.fontSize:h!=="inherit"&&([o]=h.split("/")),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0,u.fontSize=!0;break;default:h!=="inherit"&&(s+=h)}}),new If(r,i,a,o,s,t)}toString(){return[HIr(this.fontStyle),this.fontVariant,jIr(this.fontWeight),this.fontSize,WIr(this.fontFamily)].join(" ").trim()}}If.styles="normal|italic|oblique|inherit";If.variants="normal|small-caps|inherit";If.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class H0{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=r,this.y2=i,this.addPoint(e,t),this.addPoint(r,i)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),ethis.x2&&(this.x2=e)),typeof t<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(!!e){var{x1:t,y1:r,x2:i,y2:a}=e;this.addPoint(t,r),this.addPoint(i,a)}}sumCubic(e,t,r,i,a){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*r+3*(1-e)*Math.pow(e,2)*i+Math.pow(e,3)*a}bezierCurveAdd(e,t,r,i,a){var o=6*t-12*r+6*i,s=-3*t+9*r-9*i+3*a,l=3*r-3*t;if(s===0){if(o===0)return;var u=-l/o;0=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new su(this.command[e],this.command[t]);return this.makeAbsolute(r)}getAsControlPoint(e,t){var r=this.getPoint(e,t);return this.control=r,r}getAsCurrentPoint(e,t){var r=this.getPoint(e,t);return this.current=r,r}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==_r.CURVE_TO&&e!==_r.SMOOTH_CURVE_TO&&e!==_r.QUAD_TO&&e!==_r.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:r},control:{x:i,y:a}}=this,o=new su(2*t-i,2*r-a);return o}makeAbsolute(e){if(this.command.relative){var{x:t,y:r}=this.current;e.x+=t,e.y+=r}return e}addMarker(e,t,r){var{points:i,angles:a}=this;r&&a.length>0&&!a[a.length-1]&&(a[a.length-1]=i[i.length-1].angleTo(r)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1;if(!t){var r=this.getStyle("fill"),i=this.getStyle("fill-opacity"),a=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,i);s&&(e.fillStyle=s)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var l=r.getColor();l!=="inherit"&&(e.fillStyle=l==="none"?"rgba(0,0,0,0)":l)}if(i.hasValue()){var u=new jn(this.document,"fill",e.fillStyle).addOpacity(i).getColor();e.fillStyle=u}if(a.isUrlDefinition()){var h=a.getFillStyleDefinition(this,o);h&&(e.strokeStyle=h)}else if(a.hasValue()){a.getString()==="currentColor"&&a.setValue(this.getStyle("color").getColor());var c=a.getString();c!=="inherit"&&(e.strokeStyle=c==="none"?"rgba(0,0,0,0)":c)}if(o.hasValue()){var f=new jn(this.document,"stroke",e.strokeStyle).addOpacity(o).getString();e.strokeStyle=f}var d=this.getStyle("stroke-width");if(d.hasValue()){var v=d.getPixels();e.lineWidth=v||eM}var p=this.getStyle("stroke-linecap"),g=this.getStyle("stroke-linejoin"),m=this.getStyle("stroke-miterlimit"),y=this.getStyle("stroke-dasharray"),_=this.getStyle("stroke-dashoffset");if(p.hasValue()&&(e.lineCap=p.getString()),g.hasValue()&&(e.lineJoin=g.getString()),m.hasValue()&&(e.miterLimit=m.getNumber()),y.hasValue()&&y.getString()!=="none"){var x=xv(y.getString());typeof e.setLineDash<"u"?e.setLineDash(x):typeof e.webkitLineDash<"u"?e.webkitLineDash=x:typeof e.mozDash<"u"&&!(x.length===1&&x[0]===0)&&(e.mozDash=x);var S=_.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=S:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=S:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=S)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var w=this.getStyle("font"),b=this.getStyle("font-style"),E=this.getStyle("font-variant"),T=this.getStyle("font-weight"),C=this.getStyle("font-size"),A=this.getStyle("font-family"),M=new If(b.getString(),E.getString(),T.getString(),C.hasValue()?"".concat(C.getPixels(!0),"px"):"",A.getString(),If.parse(w.getString(),e.font));b.setValue(M.fontStyle),E.setValue(M.fontVariant),T.setValue(M.fontWeight),C.setValue(M.fontSize),A.setValue(M.fontFamily),e.font=M.toString(),C.isPixels()&&(this.document.emSize=C.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class ns extends _T{constructor(e,t,r){super(e,t,r),this.type="path",this.pathParser=null,this.pathParser=new Wi(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,r=new H0;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case Wi.MOVE_TO:this.pathM(e,r);break;case Wi.LINE_TO:this.pathL(e,r);break;case Wi.HORIZ_LINE_TO:this.pathH(e,r);break;case Wi.VERT_LINE_TO:this.pathV(e,r);break;case Wi.CURVE_TO:this.pathC(e,r);break;case Wi.SMOOTH_CURVE_TO:this.pathS(e,r);break;case Wi.QUAD_TO:this.pathQ(e,r);break;case Wi.SMOOTH_QUAD_TO:this.pathT(e,r);break;case Wi.ARC:this.pathA(e,r);break;case Wi.CLOSE_PATH:this.pathZ(e,r);break}return r}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),r=e.getMarkerAngles(),i=t.map((a,o)=>[a,r[o]]);return i}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");e.fillStyle!==""&&(t.getString("inherit")!=="inherit"?e.fill(t.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var r=this.getMarkers();if(r){var i=r.length-1,a=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(a.isUrlDefinition()){var l=a.getDefinition(),[u,h]=r[0];l.render(e,u,h)}if(o.isUrlDefinition())for(var c=o.getDefinition(),f=1;f1&&(i*=Math.sqrt(f),a*=Math.sqrt(f));var d=(s===l?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(a,2)-Math.pow(i,2)*Math.pow(c.y,2)-Math.pow(a,2)*Math.pow(c.x,2))/(Math.pow(i,2)*Math.pow(c.y,2)+Math.pow(a,2)*Math.pow(c.x,2)));isNaN(d)&&(d=0);var v=new su(d*i*c.y/a,d*-a*c.x/i),p=new su((t.x+h.x)/2+Math.cos(u)*v.x-Math.sin(u)*v.y,(t.y+h.y)/2+Math.sin(u)*v.x+Math.cos(u)*v.y),g=MAe([1,0],[(c.x-v.x)/i,(c.y-v.y)/a]),m=[(c.x-v.x)/i,(c.y-v.y)/a],y=[(-c.x-v.x)/i,(-c.y-v.y)/a],_=MAe(m,y);return ore(m,y)<=-1&&(_=Math.PI),ore(m,y)>=1&&(_=0),{currentPoint:h,rX:i,rY:a,sweepFlag:l,xAxisRotation:u,centp:p,a1:g,ad:_}}pathA(e,t){var{pathParser:r}=this,{currentPoint:i,rX:a,rY:o,sweepFlag:s,xAxisRotation:l,centp:u,a1:h,ad:c}=ns.pathA(r),f=1-s?1:-1,d=h+f*(c/2),v=new su(u.x+a*Math.cos(d),u.y+o*Math.sin(d));if(r.addMarkerAngle(v,d-f*Math.PI/2),r.addMarkerAngle(i,d-f*Math.PI),t.addPoint(i.x,i.y),e&&!isNaN(h)&&!isNaN(c)){var p=a>o?a:o,g=a>o?1:a/o,m=a>o?o/a:1;e.translate(u.x,u.y),e.rotate(l),e.scale(g,m),e.arc(0,0,p,h,h+c,Boolean(1-s)),e.scale(1/g,1/m),e.rotate(-l),e.translate(-u.x,-u.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){ns.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class rqe extends ns{constructor(e,t,r){super(e,t,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class rw extends _T{constructor(e,t,r){super(e,t,new.target===rw?!0:r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,t);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach((r,i)=>{var a=this.getChildBoundingBox(e,this,this,i);t?t.addBoundingBox(a):t=a}),t}getFontSize(){var{document:e,parent:t}=this,r=If.parse(e.ctx.font).fontSize,i=t.getStyle("font-size").getNumber(r);return i}getTElementBoundingBox(e){var t=this.getFontSize();return new H0(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,r){var i=t[r],a=null;if(e.isArabic){var o=t.length,s=t[r-1],l=t[r+1],u="isolated";if((r===0||s===" ")&&r0&&s!==" "&&r0&&s!==" "&&(r===o-1||l===" ")&&(u="initial"),typeof e.glyphs[i]<"u"){var h=e.glyphs[i];a=h instanceof rqe?h:h[u]}}else a=e.glyphs[i];return a||(a=e.missingGlyph),a}getText(){return""}getTextFromNode(e){var t=e||this.node,r=Array.from(t.parentNode.childNodes),i=r.indexOf(t),a=r.length-1,o=oL(t.textContent||"");return i===0&&(o=mIr(o)),i===a&&(o=_Ir(o)),o}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((r,i)=>{this.renderChild(e,this,this,i)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:t,parent:r}=this,i=this.getText(),a=r.getStyle("font-family").getDefinition();if(a){for(var{unitsPerEm:o}=a.fontFace,s=If.parse(t.ctx.font),l=r.getStyle("font-size").getNumber(s.fontSize),u=r.getStyle("font-style").getString(s.fontStyle),h=l/o,c=a.isRTL?i.split("").reverse().join(""):i,f=xv(r.getAttribute("dx").getString()),d=c.length,v=0;v=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),r=!1,i=0;t==="start"&&!r||t==="end"&&r?i=e.x-this.minX:t==="end"&&!r||t==="start"&&r?i=e.x-this.maxX:i=e.x-(this.minX+this.maxX)/2;for(var a=this.textChunkStart;a{this.adjustChildCoordinatesRecursiveCore(e,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,r,i){var a=r.children[i];a.children.length>0?a.children.forEach((o,s)=>{t.adjustChildCoordinatesRecursiveCore(e,t,a,s)}):this.adjustChildCoordinates(e,t,r,i)}adjustChildCoordinates(e,t,r,i){var a=r.children[i];if(typeof a.measureText!="function")return a;e.save(),a.setContext(e,!0);var o=a.getAttribute("x"),s=a.getAttribute("y"),l=a.getAttribute("dx"),u=a.getAttribute("dy"),h=a.getStyle("font-family").getDefinition(),c=Boolean(h)&&h.isRTL;i===0&&(o.hasValue()||o.setValue(a.getInheritedAttribute("x")),s.hasValue()||s.setValue(a.getInheritedAttribute("y")),l.hasValue()||l.setValue(a.getInheritedAttribute("dx")),u.hasValue()||u.setValue(a.getInheritedAttribute("dy")));var f=a.measureText(e);return c&&(t.x-=f),o.hasValue()?(t.applyAnchoring(),a.x=o.getPixels("x"),l.hasValue()&&(a.x+=l.getPixels("x"))):(l.hasValue()&&(t.x+=l.getPixels("x")),a.x=t.x),t.x=a.x,c||(t.x+=f),s.hasValue()?(a.y=s.getPixels("y"),u.hasValue()&&(a.y+=u.getPixels("y"))):(u.hasValue()&&(t.y+=u.getPixels("y")),a.y=t.y),t.y=a.y,t.leafTexts.push(a),t.minX=Math.min(t.minX,a.x,a.x+f),t.maxX=Math.max(t.maxX,a.x,a.x+f),a.clearContext(e),e.restore(),a}getChildBoundingBox(e,t,r,i){var a=r.children[i];if(typeof a.getBoundingBox!="function")return null;var o=a.getBoundingBox(e);return o?(a.children.forEach((s,l)=>{var u=t.getChildBoundingBox(e,t,a,l);o.addBoundingBox(u)}),o):null}renderChild(e,t,r,i){var a=r.children[i];a.render(e),a.children.forEach((o,s)=>{t.renderChild(e,t,a,s)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var r=this.getText(),i=this.measureTargetText(e,r);return this.measureCache=i,i}measureTargetText(e,t){if(!t.length)return 0;var{parent:r}=this,i=r.getStyle("font-family").getDefinition();if(i){for(var a=this.getFontSize(),o=i.isRTL?t.split("").reverse().join(""):t,s=xv(r.getAttribute("dx").getString()),l=o.length,u=0,h=0;h0?"":this.getTextFromNode()}getText(){return this.text}}class XIr extends n${constructor(){super(...arguments),this.type="textNode"}}class Dk extends _T{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:r}=this,{screen:i,window:a}=r,o=e.canvas;if(i.setDefaults(e),o.style&&typeof e.font<"u"&&a&&typeof a.getComputedStyle<"u"){e.font=a.getComputedStyle(o).getPropertyValue("font");var s=new jn(r,"fontSize",If.parse(e.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:l,height:u}=i.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var h=this.getAttribute("refX"),c=this.getAttribute("refY"),f=this.getAttribute("viewBox"),d=f.hasValue()?xv(f.getString()):null,v=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",p=0,g=0,m=0,y=0;d&&(p=d[0],g=d[1]),this.root||(l=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y"),this.type==="marker"&&(m=p,y=g,p=0,g=0)),i.viewPort.setCurrent(l,u),this.node&&(!this.parent||((t=this.node.parentNode)===null||t===void 0?void 0:t.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),d&&(l=d[2],u=d[3]),r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:l,height:i.viewPort.height,desiredHeight:u,minX:p,minY:g,refX:h.getValue(),refY:c.getValue(),clip:v,clipX:m,clipY:y}),d&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(l,u))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),a=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),l=i.getNumber(0),u=a.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var h=this.getAttribute("preserveAspectRatio");h.hasValue()&&h.setValue(h.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(e),a.setValue(t),o.hasValue()||o.setValue("0 0 ".concat(l||e," ").concat(u||t)),s.hasValue()){var c=this.getStyle("width"),f=this.getStyle("height");c.hasValue()&&c.setValue("".concat(e,"px")),f.hasValue()&&f.setValue("".concat(t,"px"))}}}class nqe extends ns{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),a=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),l=o.getPixels("x"),u=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(u=l),s.hasValue()&&!o.hasValue()&&(l=u),l=Math.min(l,i/2),u=Math.min(u,a/2),e){var h=4*((Math.sqrt(2)-1)/3);e.beginPath(),a>0&&i>0&&(e.moveTo(t+l,r),e.lineTo(t+i-l,r),e.bezierCurveTo(t+i-l+h*l,r,t+i,r+u-h*u,t+i,r+u),e.lineTo(t+i,r+a-u),e.bezierCurveTo(t+i,r+a-u+h*u,t+i-l+h*l,r+a,t+i-l,r+a),e.lineTo(t+l,r+a),e.bezierCurveTo(t+l-h*l,r+a,t,r+a-u+h*u,t,r+a-u),e.lineTo(t,r+u),e.bezierCurveTo(t,r+u-h*u,t+l-h*l,r,t+l,r),e.closePath())}return new H0(t,r,t+i,r+a)}getMarkers(){return null}}class YIr extends ns{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return e&&i>0&&(e.beginPath(),e.arc(t,r,i,0,Math.PI*2,!1),e.closePath()),new H0(t-i,r-i,t+i,r+i)}getMarkers(){return null}}class qIr extends ns{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),a=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&r>0&&i>0&&(e.beginPath(),e.moveTo(a+r,o),e.bezierCurveTo(a+r,o+t*i,a+t*r,o+i,a,o+i),e.bezierCurveTo(a-t*r,o+i,a-r,o+t*i,a-r,o),e.bezierCurveTo(a-r,o-t*i,a-t*r,o-i,a,o-i),e.bezierCurveTo(a+t*r,o-i,a+r,o-t*i,a+r,o),e.closePath()),new H0(a-r,o-i,a+r,o+i)}getMarkers(){return null}}class ZIr extends ns{constructor(){super(...arguments),this.type="line"}getPoints(){return[new su(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new su(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:r},{x:i,y:a}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,r),e.lineTo(i,a)),new H0(t,r,i,a)}getMarkers(){var[e,t]=this.getPoints(),r=e.angleTo(t);return[[e,r],[t,r]]}}class iqe extends ns{constructor(e,t,r){super(e,t,r),this.type="polyline",this.points=[],this.points=su.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:r,y:i}]=t,a=new H0(r,i);return e&&(e.beginPath(),e.moveTo(r,i)),t.forEach(o=>{var{x:s,y:l}=o;a.addPoint(s,l),e&&e.lineTo(s,l)}),a}getMarkers(){var{points:e}=this,t=e.length-1,r=[];return e.forEach((i,a)=>{a!==t&&r.push([i,i.angleTo(e[a+1])])}),r.length>0&&r.push([e[e.length-1],r[r.length-1][1]]),r}}class KIr extends iqe{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:r,y:i}]=this.points;return e&&(e.lineTo(r,i),e.closePath()),t}}class JIr extends il{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,r){var i=this.getStyle("width").getPixels("x",!0),a=this.getStyle("height").getPixels("y",!0),o=new Dk(this.document,null);o.attributes.viewBox=new jn(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new jn(this.document,"width","".concat(i,"px")),o.attributes.height=new jn(this.document,"height","".concat(a,"px")),o.attributes.transform=new jn(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(i,a),l=s.getContext("2d"),u=this.getAttribute("x"),h=this.getAttribute("y");u.hasValue()&&h.hasValue()&&l.translate(u.getPixels("x",!0),h.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var c=-1;c<=1;c++)for(var f=-1;f<=1;f++)l.save(),o.attributes.x=new jn(this.document,"x",c*s.width),o.attributes.y=new jn(this.document,"y",f*s.height),o.render(l),l.restore();var d=e.createPattern(s,"repeat");return d}}class QIr extends il{constructor(){super(...arguments),this.type="marker"}render(e,t,r){if(!!t){var{x:i,y:a}=t,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(i,a),o==="auto"&&e.rotate(r),s==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var l=new Dk(this.document,null);l.type=this.type,l.attributes.viewBox=new jn(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.refX=new jn(this.document,"refX",this.getAttribute("refX").getValue()),l.attributes.refY=new jn(this.document,"refY",this.getAttribute("refY").getValue()),l.attributes.width=new jn(this.document,"width",this.getAttribute("markerWidth").getValue()),l.attributes.height=new jn(this.document,"height",this.getAttribute("markerHeight").getValue()),l.attributes.overflow=new jn(this.document,"overflow",this.getAttribute("overflow").getValue()),l.attributes.fill=new jn(this.document,"fill",this.getAttribute("fill").getColor("black")),l.attributes.stroke=new jn(this.document,"stroke",this.getAttribute("stroke").getValue("none")),l.children=this.children,l.render(e),e.restore(),s==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),o==="auto"&&e.rotate(-r),e.translate(-i,-a)}}}class eLr extends il{constructor(){super(...arguments),this.type="defs"}render(){}}class ohe extends _T{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new H0;return this.children.forEach(r=>{t.addBoundingBox(r.getBoundingBox(e))}),t}}class aqe extends il{constructor(e,t,r){super(e,t,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:a}=this;a.forEach(o=>{o.type==="stop"&&i.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,r){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:a}=i,o=this.getGradient(e,t);if(!o)return this.addParentOpacity(r,a[a.length-1].color);if(a.forEach(g=>{o.addColorStop(g.offset,this.addParentOpacity(r,g.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:l,viewPort:u}=s.screen,[h]=u.viewPorts,c=new nqe(s,null);c.attributes.x=new jn(s,"x",-l/3),c.attributes.y=new jn(s,"y",-l/3),c.attributes.width=new jn(s,"width",l),c.attributes.height=new jn(s,"height",l);var f=new ohe(s,null);f.attributes.transform=new jn(s,"transform",this.getAttribute("gradientTransform").getValue()),f.children=[c];var d=new Dk(s,null);d.attributes.x=new jn(s,"x",0),d.attributes.y=new jn(s,"y",0),d.attributes.width=new jn(s,"width",h.width),d.attributes.height=new jn(s,"height",h.height),d.children=[f];var v=s.createCanvas(h.width,h.height),p=v.getContext("2d");return p.fillStyle=o,d.render(p),p.createPattern(v,"no-repeat")}return o}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){if(e.hasValue()){var r=new jn(this.document,"color",t);return r.addOpacity(e).getColor()}return t}}class tLr extends aqe{constructor(e,t,r){super(e,t,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=r?t.getBoundingBox(e):null;if(r&&!i)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var a=r?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),l=r?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return a===s&&o===l?null:e.createLinearGradient(a,o,s,l)}}class rLr extends aqe{constructor(e,t,r){super(e,t,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=t.getBoundingBox(e);if(r&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var a=r?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=a,l=o;this.getAttribute("fx").hasValue()&&(s=r?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(l=r?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var u=r?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),h=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,l,h,a,o,u)}}class nLr extends il{constructor(e,t,r){super(e,t,r),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),a=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);o.getString()===""&&o.setValue("#000"),a.hasValue()&&(o=o.addOpacity(a)),this.offset=i,this.color=o.getColor()}}class she extends il{constructor(e,t,r){super(e,t,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new jn(e,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:r,to:i}=this.getProgress(),a=r.getNumber()+(i.getNumber()-r.getNumber())*t;return e==="%"&&(a*=100),"".concat(a).concat(e)}update(e){var{parent:t}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=r.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,r.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var a=!1;if(this.begin{var u=a[l];return s+(u-s)*e}).join(" ");return o}}class oLr extends il{constructor(e,t,r){super(e,t,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=e,{children:a}=this;for(var o of a)switch(o.type){case"font-face":{this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(i[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=o;break;case"glyph":{var l=o;l.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[l.unicode]>"u"&&(this.glyphs[l.unicode]={}),this.glyphs[l.unicode][l.arabicForm]=l):this.glyphs[l.unicode]=l;break}}}render(){}}class sLr extends il{constructor(e,t,r){super(e,t,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class lLr extends ns{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class uLr extends rw{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}class hLr extends rw{constructor(e,t,r){super(e,t,r),this.type="a";var{childNodes:i}=t,a=i[0],o=i.length>0&&Array.from(i).every(s=>s.nodeType===3);this.hasText=o,this.text=o?this.getTextFromNode(a):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:r,y:i}=this,{mouse:a}=t.screen,o=new jn(t,"fontSize",If.parse(t.ctx.font).fontSize);a.isWorking()&&a.checkBoundingBox(this,new H0(r,i-o.getPixels("y"),r+this.measureText(e),i))}else if(this.children.length>0){var s=new ohe(this.document,null);s.children=this.children,s.parent=this,s.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}function kAe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function T6(n){for(var e=1;e{var{type:i,points:a}=r;switch(i){case Wi.LINE_TO:e&&e.lineTo(a[0],a[1]);break;case Wi.MOVE_TO:e&&e.moveTo(a[0],a[1]);break;case Wi.CURVE_TO:e&&e.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case Wi.QUAD_TO:e&&e.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case Wi.ARC:{var[o,s,l,u,h,c,f,d]=a,v=l>u?l:u,p=l>u?1:l/u,g=l>u?u/l:1;e&&(e.translate(o,s),e.rotate(f),e.scale(p,g),e.arc(0,0,v,h,h+c,Boolean(1-d)),e.scale(1/p,1/g),e.rotate(-f),e.translate(-o,-s));break}case Wi.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:i}=this,a=e.fillStyle;t==="underline"&&e.beginPath(),i.forEach((o,s)=>{var{p0:l,p1:u,rotation:h,text:c}=o;e.save(),e.translate(l.x,l.y),e.rotate(h),e.fillStyle&&e.fillText(c,0,0),e.strokeStyle&&e.strokeText(c,0,0),e.restore(),t==="underline"&&(s===0&&e.moveTo(l.x,l.y+r/8),e.lineTo(u.x,u.y+r/5))}),t==="underline"&&(e.lineWidth=r/20,e.strokeStyle=a,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,r,i,a,o,s,l,u){var h=o,c=this.measureText(e,l);l===" "&&t==="justify"&&r-1&&(h+=this.getLetterSpacingAt(u));var f=this.textHeight/20,d=this.getEquidistantPointOnPath(h,f,0),v=this.getEquidistantPointOnPath(h+c,f,0),p={p0:d,p1:v},g=d&&v?Math.atan2(v.y-d.y,v.x-d.x):0;if(s){var m=Math.cos(Math.PI/2+g)*s,y=Math.cos(-g)*s;p.p0=T6(T6({},d),{},{x:d.x+m,y:d.y+y}),p.p1=T6(T6({},v),{},{x:v.x+m,y:v.y+y})}return h+=c,{offset:h,segment:p,rotation:g}}measureText(e,t){var{measuresCache:r}=this,i=t||this.getText();if(r.has(i))return r.get(i);var a=this.measureTargetText(e,i);return r.set(i,a),a}setTextData(e){if(!this.glyphInfo){var t=this.getText(),r=t.split(""),i=t.split(" ").length-1,a=this.parent.getAttribute("dx").split().map(x=>x.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),l=this.getStyle("letter-spacing"),u=this.parent.getStyle("letter-spacing"),h=0;!l.hasValue()||l.getValue()==="inherit"?h=u.getPixels():l.hasValue()&&l.getValue()!=="initial"&&l.getValue()!=="unset"&&(h=l.getPixels());var c=[],f=t.length;this.letterSpacingCache=c;for(var d=0;dw===0?0:x+S||0,0),p=this.measureText(e),g=Math.max(p+v,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var m=this.getPathLength(),y=this.getStyle("startOffset").getNumber(0)*m,_=0;(s==="middle"||s==="center")&&(_=-g/2),(s==="end"||s==="right")&&(_=-g),_+=y,r.forEach((x,S)=>{var{offset:w,segment:b,rotation:E}=this.findSegmentToFitChar(e,s,g,m,i,_,o,x,S);_=w,!(!b.p0||!b.p1)&&this.glyphInfo.push({text:r[S],p0:b.p0,p1:b.p1,rotation:E})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:r}=e;for(r.reset();!r.isEnd();){var{current:i}=r,a=i?i.x:0,o=i?i.y:0,s=r.next(),l=s.type,u=[];switch(s.type){case Wi.MOVE_TO:this.pathM(r,u);break;case Wi.LINE_TO:l=this.pathL(r,u);break;case Wi.HORIZ_LINE_TO:l=this.pathH(r,u);break;case Wi.VERT_LINE_TO:l=this.pathV(r,u);break;case Wi.CURVE_TO:this.pathC(r,u);break;case Wi.SMOOTH_CURVE_TO:l=this.pathS(r,u);break;case Wi.QUAD_TO:this.pathQ(r,u);break;case Wi.SMOOTH_QUAD_TO:l=this.pathT(r,u);break;case Wi.ARC:u=this.pathA(r);break;case Wi.CLOSE_PATH:ns.pathZ(r);break}s.type!==Wi.CLOSE_PATH?t.push({type:l,points:u,start:{x:a,y:o},pathLength:this.calcLength(a,o,l,u)}):t.push({type:Wi.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:r,y:i}=ns.pathM(e).point;t.push(r,i)}pathL(e,t){var{x:r,y:i}=ns.pathL(e).point;return t.push(r,i),Wi.LINE_TO}pathH(e,t){var{x:r,y:i}=ns.pathH(e).point;return t.push(r,i),Wi.LINE_TO}pathV(e,t){var{x:r,y:i}=ns.pathV(e).point;return t.push(r,i),Wi.LINE_TO}pathC(e,t){var{point:r,controlPoint:i,currentPoint:a}=ns.pathC(e);t.push(r.x,r.y,i.x,i.y,a.x,a.y)}pathS(e,t){var{point:r,controlPoint:i,currentPoint:a}=ns.pathS(e);return t.push(r.x,r.y,i.x,i.y,a.x,a.y),Wi.CURVE_TO}pathQ(e,t){var{controlPoint:r,currentPoint:i}=ns.pathQ(e);t.push(r.x,r.y,i.x,i.y)}pathT(e,t){var{controlPoint:r,currentPoint:i}=ns.pathT(e);return t.push(r.x,r.y,i.x,i.y),Wi.QUAD_TO}pathA(e){var{rX:t,rY:r,sweepFlag:i,xAxisRotation:a,centp:o,a1:s,ad:l}=ns.pathA(e);return i===0&&l>0&&(l-=2*Math.PI),i===1&&l<0&&(l+=2*Math.PI),[o.x,o.y,t,r,s,l,a,i]}calcLength(e,t,r,i){var a=0,o=null,s=null,l=0;switch(r){case Wi.LINE_TO:return this.getLineLength(e,t,i[0],i[1]);case Wi.CURVE_TO:for(a=0,o=this.getPointOnCubicBezier(0,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),l=.01;l<=1;l+=.01)s=this.getPointOnCubicBezier(l,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return a;case Wi.QUAD_TO:for(a=0,o=this.getPointOnQuadraticBezier(0,e,t,i[0],i[1],i[2],i[3]),l=.01;l<=1;l+=.01)s=this.getPointOnQuadraticBezier(l,e,t,i[0],i[1],i[2],i[3]),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return a;case Wi.ARC:{a=0;var u=i[4],h=i[5],c=i[4]+h,f=Math.PI/180;if(Math.abs(u-c)c;l-=f)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(l=u+f;l5&&arguments[5]!==void 0?arguments[5]:t,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,l=(a-r)/(i-t+eM),u=Math.sqrt(e*e/(1+l*l));it)return null;var{dataArray:a}=this;for(var o of a){if(o&&(o.pathLength<5e-5||r+o.pathLength+5e-5=0&&l>c)break;i=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],l,o.points[6]);break}case Wi.CURVE_TO:l=s/o.pathLength,l>1&&(l=1),i=this.getPointOnCubicBezier(l,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case Wi.QUAD_TO:l=s/o.pathLength,l>1&&(l=1),i=this.getPointOnQuadraticBezier(l,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(i)return i;break}return null}getLineLength(e,t,r,i){return Math.sqrt((r-e)*(r-e)+(i-t)*(i-t))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,r,i,a,o,s,l,u){var h=l*IAe(e)+o*LAe(e)+i*PAe(e)+t*OAe(e),c=u*IAe(e)+s*LAe(e)+a*PAe(e)+r*OAe(e);return{x:h,y:c}}getPointOnQuadraticBezier(e,t,r,i,a,o,s){var l=o*RAe(e)+i*DAe(e)+t*NAe(e),u=s*RAe(e)+a*DAe(e)+r*NAe(e);return{x:l,y:u}}getPointOnEllipticalArc(e,t,r,i,a,o){var s=Math.cos(o),l=Math.sin(o),u={x:r*Math.cos(a),y:i*Math.sin(a)};return{x:e+(u.x*s-u.y*l),y:t+(u.x*l+u.y*s)}}buildEquidistantCache(e,t){var r=this.getPathLength(),i=t||.25,a=e||r/100;if(!this.equidistantCache||this.equidistantCache.step!==a||this.equidistantCache.precision!==i){this.equidistantCache={step:a,precision:i,points:[]};for(var o=0,s=0;s<=r;s+=i){var l=this.getPointOnPath(s),u=this.getPointOnPath(s+i);!l||!u||(o+=this.getLineLength(l.x,l.y,u.x,u.y),o>=a&&(this.equidistantCache.points.push({x:l.x,y:l.y,distance:s}),o-=a))}}}getEquidistantPointOnPath(e,t,r){if(this.buildEquidistantCache(t,r),e<0||e-this.getPathLength()>5e-5)return null;var i=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}var fLr=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class dLr extends _T{constructor(e,t,r){super(e,t,r),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(!!i){var a=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);e.images.push(this),a?this.loadSvg(i):this.loadImage(i),this.isSvg=a}}loadImage(e){var t=this;return Vc(function*(){try{var r=yield t.document.createImage(e);t.image=r}catch(i){console.error('Error while loading image "'.concat(e,'":'),i)}t.loaded=!0})()}loadSvg(e){var t=this;return Vc(function*(){var r=fLr.exec(e);if(r){var i=r[5];r[4]==="base64"?t.image=atob(i):t.image=decodeURIComponent(i)}else try{var a=yield t.document.fetch(e),o=yield a.text();t.image=o}catch(s){console.error('Error while loading image "'.concat(e,'":'),s)}t.loaded=!0})()}renderChildren(e){var{document:t,image:r,loaded:i}=this,a=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y");if(!(!i||!r||!s||!l)){if(e.save(),e.translate(a,o),this.isSvg){var u=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:l});u.document.documentElement.parent=this,u.render()}else{var h=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:h.width,height:l,desiredHeight:h.height}),this.loaded&&(typeof h.complete>"u"||h.complete)&&e.drawImage(h,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new H0(e,t,e+r,t+i)}}class vLr extends _T{constructor(){super(...arguments),this.type="symbol"}render(e){}}class pLr{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var r=this;return Vc(function*(){try{var{document:i}=r,a=yield i.canvg.parser.load(t),o=a.getElementsByTagName("font");Array.from(o).forEach(s=>{var l=i.createElement(s);i.definitions[e]=l})}catch(s){console.error('Error while loading font "'.concat(t,'":'),s)}r.loaded=!0})()}}class oqe extends il{constructor(e,t,r){super(e,t,r),this.type="style";var i=oL(Array.from(t.childNodes).map(o=>o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),a=i.split("}");a.forEach(o=>{var s=o.trim();if(!!s){var l=s.split("{"),u=l[0].split(","),h=l[1].split(";");u.forEach(c=>{var f=c.trim();if(!!f){var d=e.styles[f]||{};if(h.forEach(g=>{var m=g.indexOf(":"),y=g.substr(0,m).trim(),_=g.substr(m+1,g.length-m).trim();y&&_&&(d[y]=new jn(e,y,_))}),e.styles[f]=d,e.stylesSpecificity[f]=LIr(f),f==="@font-face"){var v=d["font-family"].getString().replace(/"|'/g,""),p=d.src.getString().split(",");p.forEach(g=>{if(g.indexOf('format("svg")')>0){var m=KYe(g);m&&new pLr(e).load(v,m)}})}}})}})}}oqe.parseExternalUrl=KYe;class gLr extends _T{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var t=this.getAttribute("x"),r=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:r}=this;if(r){var i=r;if(r.type==="symbol"&&(i=new Dk(t,null),i.attributes.viewBox=new jn(t,"viewBox",r.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new jn(t,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new jn(t,"overflow",r.getAttribute("overflow").getString()),i.children=r.children,r.styles.opacity=new jn(t,"opacity",this.calculateOpacity())),i.type==="svg"){var a=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);a.hasValue()&&(i.attributes.width=new jn(t,"width",a.getString())),o.hasValue()&&(i.attributes.height=new jn(t,"height",o.getString()))}var s=i.parent;i.parent=this,i.render(e),i.parent=s}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return y2.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function C6(n,e,t,r,i,a){return n[t*r*4+e*4+a]}function A6(n,e,t,r,i,a,o){n[t*r*4+e*4+a]=o}function Eu(n,e,t){var r=n[e];return r*t}function l1(n,e,t,r){return e+Math.cos(n)*t+Math.sin(n)*r}class sqe extends il{constructor(e,t,r){super(e,t,r),this.type="feColorMatrix";var i=xv(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var a=i[0];i=[.213+.787*a,.715-.715*a,.072-.072*a,0,0,.213-.213*a,.715+.285*a,.072-.072*a,0,0,.213-.213*a,.715-.715*a,.072+.928*a,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var o=i[0]*Math.PI/180;i=[l1(o,.213,.787,-.213),l1(o,.715,-.715,-.715),l1(o,.072,-.072,.928),0,0,l1(o,.213,-.213,.143),l1(o,.715,.285,.14),l1(o,.072,-.072,-.283),0,0,l1(o,.213,-.213,-.787),l1(o,.715,-.715,.715),l1(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,r,i,a){for(var{includeOpacity:o,matrix:s}=this,l=e.getImageData(0,0,i,a),u=0;u{l.addBoundingBox(v.getBoundingBox(e))}),i=Math.floor(l.x1),a=Math.floor(l.y1),o=Math.floor(l.width),s=Math.floor(l.height)}var u=this.removeStyles(t,i$.ignoreStyles),h=r.createCanvas(i+o,a+s),c=h.getContext("2d");r.screen.setDefaults(c),this.renderChildren(c),new sqe(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(c,0,0,i+o,a+s);var f=r.createCanvas(i+o,a+s),d=f.getContext("2d");r.screen.setDefaults(d),t.render(d),d.globalCompositeOperation="destination-in",d.fillStyle=c.createPattern(h,"no-repeat"),d.fillRect(0,0,i+o,a+s),e.fillStyle=d.createPattern(f,"no-repeat"),e.fillRect(0,0,i+o,a+s),this.restoreStyles(t,u)}render(e){}}i$.ignoreStyles=["mask","transform","clip-path"];var FAe=()=>{};class yLr extends il{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,r=Reflect.getPrototypeOf(e),{beginPath:i,closePath:a}=e;r&&(r.beginPath=FAe,r.closePath=FAe),Reflect.apply(i,e,[]),this.children.forEach(o=>{if(!(typeof o.path>"u")){var s=typeof o.elementTransform<"u"?o.elementTransform():null;s||(s=y2.fromElement(t,o)),s&&s.apply(e),o.path(e),r&&(r.closePath=a),s&&s.unapply(e)}}),Reflect.apply(a,e,[]),e.clip(),r&&(r.beginPath=i,r.closePath=a)}render(e){}}class a$ extends il{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:r,children:i}=this,a=t.getBoundingBox(e);if(!!a){var o=0,s=0;i.forEach(m=>{var y=m.extraFilterDistance||0;o=Math.max(o,y),s=Math.max(s,y)});var l=Math.floor(a.width),u=Math.floor(a.height),h=l+2*o,c=u+2*s;if(!(h<1||c<1)){var f=Math.floor(a.x),d=Math.floor(a.y),v=this.removeStyles(t,a$.ignoreStyles),p=r.createCanvas(h,c),g=p.getContext("2d");r.screen.setDefaults(g),g.translate(-f+o,-d+s),t.render(g),i.forEach(m=>{typeof m.apply=="function"&&m.apply(g,0,0,h,c)}),e.drawImage(p,0,0,h,c,f-o,d-s,h,c),this.restoreStyles(t,v)}}}render(e){}}a$.ignoreStyles=["filter","transform","clip-path"];class mLr extends il{constructor(e,t,r){super(e,t,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,r,i,a){}}class _Lr extends il{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,r,i,a){}}class xLr extends il{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,r,i,a){}}class SLr extends il{constructor(e,t,r){super(e,t,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,r,i,a){var{document:o,blurRadius:s}=this,l=o.window?o.window.document.body:null,u=e.canvas;u.id=o.getUniqueId(),l&&(u.style.display="none",l.appendChild(u)),gIr(u,t,r,i,a,s),l&&l.removeChild(u)}}class wLr extends il{constructor(){super(...arguments),this.type="title"}}class bLr extends il{constructor(){super(...arguments),this.type="desc"}}var ELr={svg:Dk,rect:nqe,circle:YIr,ellipse:qIr,line:ZIr,polyline:iqe,polygon:KIr,path:ns,pattern:JIr,marker:QIr,defs:eLr,linearGradient:tLr,radialGradient:rLr,stop:nLr,animate:she,animateColor:iLr,animateTransform:aLr,font:oLr,"font-face":sLr,"missing-glyph":lLr,glyph:rqe,text:rw,tspan:n$,tref:uLr,a:hLr,textPath:cLr,image:dLr,g:ohe,symbol:vLr,style:oqe,use:gLr,mask:i$,clipPath:yLr,filter:a$,feDropShadow:mLr,feMorphology:_Lr,feComposite:xLr,feColorMatrix:sqe,feGaussianBlur:SLr,title:wLr,desc:bLr};function BAe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function TLr(n){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:!1,t=document.createElement("img");return e&&(t.crossOrigin="Anonymous"),new Promise((r,i)=>{t.onload=()=>{r(t)},t.onerror=(a,o,s,l,u)=>{i(u)},t.src=n})}),sre.apply(this,arguments)}class TS{constructor(e){var{rootEmSize:t=12,emSize:r=12,createCanvas:i=TS.createCanvas,createImage:a=TS.createImage,anonymousCrossOrigin:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(a,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return typeof t=="boolean"?(r,i)=>e(r,typeof i=="boolean"?i:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,""),r=TS.elementTypes[t];return typeof r<"u"?new r(this,e):new VIr(this,e)}createTextNode(e){return new XIr(this,e)}setViewBox(e){this.screen.setViewBox(TLr({document:this},e))}}TS.createCanvas=CLr;TS.createImage=ALr;TS.elementTypes=ELr;function GAe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Tb(n){for(var e=1;e2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new zq(r),this.screen=new r$(e,r),this.options=r;var i=new TS(this,r),a=i.createDocumentElement(t);this.document=i,this.documentElement=a}static from(e,t){var r=arguments;return Vc(function*(){var i=r.length>2&&r[2]!==void 0?r[2]:{},a=new zq(i),o=yield a.parse(t);return new bA(e,o,i)})()}static fromString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new zq(r),a=i.parseFromString(t);return new bA(e,a,r)}fork(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return bA.from(e,t,Tb(Tb({},this.options),r))}forkString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return bA.fromString(e,t,Tb(Tb({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return Vc(function*(){var r=e.length>0&&e[0]!==void 0?e[0]:{};t.start(Tb({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:t,screen:r,options:i}=this;r.start(t,Tb(Tb({enableRedraw:!0},i),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,t,r)}}var lqe=8,CC=lqe*2;const u1=1e-7;class ts{static getValidStyleFromLayerInfo(e,t,r){var i=t.getGeometry().getType().toUpperCase(),a=e.layerStyle,o=this.getDefaultStyle(i);if((i==="POINT"||i==="MULTIPOINT")&&!t.getProperties().textStyle&&e.type!=="LABEL"&&!t.getProperties().TEXT_FEATURE_CONTENT){if(a){var s={transparent:!0,resourceType:"SYMBOLMARKER",picWidth:Math.ceil(a.markerSize*eE*Ii.mm)||13,picHeight:Math.ceil(a.markerSize*eE*Ii.mm)||13,style:JSON.stringify(a)},l=W.urlAppend(r+"/symbol.png",W.getParameterString(s));return o.pointFile=l,new So({image:new yy({src:o.pointFile})})}return this.toOLPointStyle(o)}else if((i==="POINT"||i==="MULTIPOINT")&&(t.getProperties().textStyle||e.type==="LABEL"||t.getProperties().TEXT_STYLE_INFO)){if(o=this.getDefaultStyle("TEXT"),t.getProperties().textStyle&&(a=t.getProperties().textStyle),t.getProperties().TEXT_STYLE_INFO&&(a=JSON.parse(t.getProperties().TEXT_STYLE_INFO).textStyle),a&&a!=="{}"){var u="";o.fontStyle=a.italic?"italic":"normal",o.fontWeight=a.bold?a.fontWeight:"normal";var h=a.fontHeight*eE*Ii.mm*.85;o.fontSize=h+"px",a.fontName.indexOf("@")?u=a.fontName.replace(/@/g,""):u=a.fontName,o.fontFamily=u,o.textHeight=h;var c=a.align.replace(/TOP|MIDDLE|BASELINE|BOTTOM/,"");o.textAlign=c.toLowerCase();var f=a.align.replace(/LEFT|RIGHT|CENTER/,"");f==="BASELINE"&&(f="alphabetic"),o.textBaseline=f.toLowerCase(),o.haloRadius=a.outline?a.outlineWidth:0,o.backColor="rgba("+a.backColor.red+","+a.backColor.green+","+a.backColor.blue+",1)",o.foreColor="rgba("+a.foreColor.red+","+a.foreColor.green+","+a.foreColor.blue+",1)",o.rotation=a.rotation}var d;if(t.getProperties().textStyle&&t.getProperties().texts&&(d=t.getProperties().texts[0]),e.type==="LABEL"){var v=e.textField;if(v&&v.indexOf(".")){var p=v.split(".");v=p&&p.length>0&&p[p.length-1]}d=t.getProperties().attributes?t.getProperties().attributes[v]:t.getProperties()[v]}return t.getProperties().TEXT_FEATURE_CONTENT&&(d=t.getProperties().TEXT_FEATURE_CONTENT),d?this.toOLTextStyle(o,d):this.toOLPointStyle(this.getDefaultStyle("POINT"))}else if(a){var g=a.fillSymbolID>7?0:a.fillSymbolID,m=a.lineSymbolID>5?0:a.lineSymbolID;for(var y in a){var _=UY.ServerStyleMap[y],x=_.canvasStyle;if(x&&x!=""){var S;switch(_.type){case"number":S=a[y],_.unit&&(S=S*eE*Ii[_.unit]*2.5),o[x]=S;break;case"color":var w=a[y],b=a.fillBackColor,E=1;if(x==="fillStyle")if(g===0||g===1)E=1-g,S="rgba("+w.red+","+w.green+","+w.blue+","+E+")";else try{var T=document.createElement("canvas");T.height=8,T.width=8;var C=T.getContext("2d"),A=new Image;this.layer&&this.layer.fillImages&&C.drawImage(this.layer.fillImages["System "+g],0,0);for(var M=C.getImageData(0,0,T.width,T.height),I=M.data,R=0,k=I.length;R{i=new yy({img:S,scale:f/S.width,imgSize:[S.width,S.height],anchor:[.5,.5]})})):i=new yy({src:v,scale:p,anchor:y}):i=new rm({radius:f,fill:new Zo({color:_}),stroke:new es({width:h||u1,color:x}),displacement:this.getCircleDisplacement(f,g,m)}),r.setImage(i);else if(t==="LINE"||t==="LINESTRING"||t==="MULTILINESTRING"||t==="LINEARRING")o=new es({width:h||u1,color:x,lineCap:d||"round",lineDash:this.dashStyle(e,1)}),r.setStroke(o);else if(t==="POLYGON"||t==="MULTIPOLYGON"||t==="REGION")a=new Zo({color:_}),o=new es({width:h||u1,color:x,lineCap:d||"round",lineDash:this.dashStyle(e,1)}),r.setFill(a),r.setStroke(o);else{let S=this.getCanvas(e);i=new yy({img:S.canvas,imgSize:[S.width,S.height],scale:1,anchor:[.5,.5]}),r.setImage(i)}return r}static getIconAnchor(e=.5,t=.5){return[e,t]}static getCircleDisplacement(e,t=0,r=0){const i=e*t,a=e*r;return[i,-a]}static getTextOffset(e,t=0,r=0){const i=e.substr(0,e.length-2)/2;return{x:i*t,y:i*r}}static getCanvas(e){let t;e.canvas?document.querySelector("#"+e.canvas)?t=document.getElemntById(e.canvas):t=this.createCanvas(e):(t=this.createCanvas(e),e.canvas=t.id),t.style.display="none";var r=t.getContext("2d");let i=Number(e.font.replace(/[^0-9]/ig,"")),a=e.text.split(`\r +`),o=a.length;r.font=e.font;let s=this.drawRect(r,e,a,i,t);return this.positionY=lqe,o>1?a.forEach(function(l,u){u!==0&&(this.positionY=this.positionY+i),this.canvasTextAutoLine(l,e,r,i,s.width)},this):this.canvasTextAutoLine(a[0],e,r,i,s.width),{canvas:t,width:s.width,height:s.height}}static createCanvas(e){let t=document.createElement("div");document.body.appendChild(t);let r=document.createElement("canvas");return r.id=e.canvas?e.canvas:"textCanvas"+br.newGuid(8),t.appendChild(r),r}static drawRect(e,t,r,i,a){let o=t.backgroundFill,s=t.maxWidth-CC,l,u=0,h=0,c=[];return r.forEach(function(f){let d="",v;h++;for(var p=0;ps&&p>0||f[p]===` +`?(d=f[p],h++,v=!0):(d=g,l=y)}v?c.push(s):c.push(l)},this),l=this.getCanvasWidth(c,s),u=h*i,u+=CC,a.width=l,a.height=u,e.fillStyle=o,e.fillRect(0,0,l,u),{width:l,height:u}}static getCanvasWidth(e,t){let r=0;for(let i=0;i=t)return t+CC;a>r&&(r=a)}return r+CC}static canvasTextAutoLine(e,t,r,i,a){r.font=t.font;let o=t.textAlign,s=this.getPositionX(o,a),l=e.split(""),u="",h=t.fillColor,c=t.maxWidth-CC;for(var f=0;fc&&f>0||l[f]===` +`?(r.fillStyle=h,r.textAlign=o,r.textBaseline="top",r.fillText(u,s,this.positionY),u=l[f],this.positionY+=i):u=d}r.fillStyle=h,r.textAlign=o,r.textBaseline="top",r.fillText(u,s,this.positionY)}static getPositionX(e,t){let r,i=t-CC;switch(e){case"center":r=i/2;break;case"right":r=i;break;default:r=8;break}return r}static hexToRgb(e){if(!!e){var t=e.replace("#","").split(""),r=[t[0]+t[1],t[2]+t[3],t[4]+t[5]];return r=r.map(function(i){return parseInt(i,16)}),r}}static formatRGB(e){let t;return e.length===3?(t="rgb(",e.forEach(function(r,i){i===2?t+=r:t+=r+","})):(t="rgba(",e.forEach(function(r,i){i===3?t+=r:t+=r+","})),t+=")",t}static async getCanvasFromSVG(e,t,r){const i=window.canvg&&window.canvg.default?window.canvg.default:bA;let a=document.createElement("canvas");a.id="dataviz-canvas-"+br.newGuid(8),a.style.display="none",t.appendChild(a);try{const o=a.getContext("2d");if((await i.from(o,e,{ignoreMouse:!0,ignoreAnimation:!0,forceRedraw:()=>!1})).start(),a.width>300||a.height>300)return;r(a)}catch{return}}static stopCanvg(){this.canvgsV.forEach(e=>e.stop()),this.canvgsV=[]}static getMarkerDefaultStyle(e,t){let r;switch(e){case"POINT":r={src:`${t}apps/dataviz/static/imgs/markers/mark_red.png`,scale:1,anchor:[.5,1]};break;case"LINE":case"LINESTRING":case"MULTILINESTRING":r={strokeColor:"#3498db",strokeOpacity:1,strokeWidth:5,lineCap:"round",lineDash:"solid"};break;case"REGION":case"POLYGON":case"MULTIPOLYGON":r={fillColor:"#1abd9c",fillOpacity:1,strokeColor:"#3498db",strokeOpacity:1,strokeWidth:3,lineCap:"round",lineDash:"solid"};break}return r}static async getOpenlayersStyle(e,t,r){let i;return e.type==="BASIC_POINT"?i=await this.toOpenLayersStyle(e,t):e.type==="SYMBOL_POINT"?i=this.getSymbolStyle(e,r):e.type==="SVG_POINT"?i=await this.getSVGStyle(e):e.type==="IMAGE_POINT"&&(i=this.getImageStyle(e)),i}static getSymbolStyle(e,t){let r="";e.unicode&&(r=String.fromCharCode(parseInt(e.unicode.replace(/^&#x/,""),16)));let i=ts.hexToRgb(e.fillColor);i.push(e.fillOpacity);let a=ts.hexToRgb(e.strokeColor);a.push(e.strokeOpacity);let o=t?2*e.radius+"px":e.fontSize;const{offsetX:s,offsetY:l,rotation:u=0}=e,h=ts.getTextOffset(o,s,l);return new So({text:new J1({text:r,font:o+" supermapol-icons",placement:"point",textAlign:"center",fill:new Zo({color:i}),backgroundFill:new Zo({color:[0,0,0,0]}),stroke:new es({width:e.strokeWidth||1e-6,color:a}),offsetX:h.x,offsetY:h.y,rotation:u})})}static async getSVGStyle(e){let t,r=this;r.svgDiv||(r.svgDiv=document.createElement("div"),document.body.appendChild(r.svgDiv));const{url:i,radius:a,offsetX:o,offsetY:s,fillOpacity:l,rotation:u}=e;let h=this.getIconAnchor(o,s);return await ts.getCanvasFromSVG(i,r.svgDiv,function(c){t=new So({image:new yy({img:r.setColorToCanvas(c,e),scale:2*a/c.width,imgSize:[c.width,c.height],anchor:h||[.5,.5],opacity:l,anchorOrigin:"bottom-right",rotation:u})})}),t}static setColorToCanvas(e,t){let r=e.getContext("2d"),i=ts.hexToRgb(t.fillColor);i&&i.push(t.fillOpacity);let a=ts.hexToRgb(t.strokeColor);return a&&a.push(t.strokeOpacity),r.fillStyle=ts.formatRGB(i),r.fill(),r.strokeStyle=ts.formatRGB(a),r.lineWidth=t.strokeWidth,r.stroke(),e}static getImageStyle(e){let t=e.imageInfo.size,r=2*e.radius/t.w,i=e.imageInfo,a=i.img;(!a||!a.src)&&(a=new Image,a.src=i.url);const{offsetX:o,offsetY:s,rotation:l}=e;let u=this.getIconAnchor(o,s);return new So({image:new yy({img:a,scale:r,imgSize:[t.w,t.h],anchor:u||[.5,.5],anchorOrigin:"bottom-right",rotation:l})})}static getRoadPath(e,t){const{strokeWidth:r=u1,lineCap:i,strokeColor:a,strokeOpacity:o}=e;let s=this.hexToRgb(a);s&&s.push(o);var l=new So({stroke:new es({width:r||u1,color:s,lineCap:i||"round",lineDash:[0]})});const{strokeColor:u}=t;let h=this.hexToRgb(u);h&&h.push(o);let c=t.strokeWidth||(r===0?u1:r+2);var f=new So({stroke:new es({width:c,color:h,lineCap:i||"round",lineDash:[0]})});return[f,l]}static getPathway(e,t){let{strokeWidth:r=u1,strokeColor:i,strokeOpacity:a}=e;const o=(d=>[d,d+r*2])(4*r),s="square";let l=this.hexToRgb(i);l&&l.push(a);var u=new So({stroke:new es({width:r*.5||u1,color:l,lineCap:s,lineDash:o})});const{strokeColor:h}=t;let c=this.hexToRgb(h);c&&c.push(a);var f=new So({stroke:new es({width:r||u1,color:c,lineCap:s})});return[f,u]}}var MLr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ILr=function(n){MLr(e,n);function e(t){var r=n.call(this)||this;return r.map_=t,r}return e.prototype.dispatchRenderEvent=function(t,r){ti()},e.prototype.calculateMatrices2D=function(t){var r=t.viewState,i=t.coordinateToPixelTransform,a=t.pixelToCoordinateTransform;Id(i,t.size[0]/2,t.size[1]/2,1/r.resolution,-1/r.resolution,-r.rotation,-r.center[0],-r.center[1]),bk(a,i)},e.prototype.forEachFeatureAtCoordinate=function(t,r,i,a,o,s,l,u){var h,c=r.viewState;function f(k,D,G,V){return o.call(s,D,k?G:null,V)}var d=c.projection,v=hue(t.slice(),d),p=[[0,0]];if(d.canWrapX()&&a){var g=d.getExtent(),m=Co(g);p.push([-m,0],[m,0])}for(var y=r.layerStatesArray,_=y.length,x=[],S=[],w=0;w=0;--b){var E=y[b],T=E.layer;if(T.hasRenderer()&&s7(E,c)&&l.call(u,T)){var C=T.getRenderer(),A=T.getSource();if(C&&A){var M=A.getWrapX()?v:t,I=f.bind(null,E.managed);S[0]=M[0]+p[w][0],S[1]=M[1]+p[w][1],h=C.forEachFeatureAtCoordinate(S,r,i,I,x)}if(h)return h}}if(x.length!==0){var R=1/x.length;return x.forEach(function(k,D){return k.distanceSq+=D*R}),x.sort(function(k,D){return k.distanceSq-D.distanceSq}),x.some(function(k){return h=k.callback(k.feature,k.layer,k.geometry)}),h}},e.prototype.forEachLayerAtPixel=function(t,r,i,a,o){return ti()},e.prototype.hasFeatureAtCoordinate=function(t,r,i,a,o,s){var l=this.forEachFeatureAtCoordinate(t,r,i,a,qA,this,o,s);return l!==void 0},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){ti()},e.prototype.scheduleExpireIconCache=function(t){f7.canExpireCache()&&t.postRenderFunctions.push(LLr)},e}(LV);function LLr(n,e){f7.expire()}const PLr=ILr;var OLr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),RLr=function(n){OLr(e,n);function e(t){var r=n.call(this,t)||this;r.fontChangeListenerKey_=pa(f1,zM.PROPERTYCHANGE,t.redrawText.bind(t)),r.element_=document.createElement("div");var i=r.element_.style;i.position="absolute",i.width="100%",i.height="100%",i.zIndex="0",r.element_.className=mk+" ol-layers";var a=t.getViewport();return a.insertBefore(r.element_,a.firstChild||null),r.children_=[],r.renderedVisible_=!0,r}return e.prototype.dispatchRenderEvent=function(t,r){var i=this.getMap();if(i.hasListener(t)){var a=new LR(t,void 0,r);i.dispatchEvent(a)}},e.prototype.disposeInternal=function(){Ms(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),n.prototype.disposeInternal.call(this)},e.prototype.renderFrame=function(t){if(!t){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(t),this.dispatchRenderEvent(Tf.PRECOMPOSE,t);var r=t.layerStatesArray.sort(function(d,v){return d.zIndex-v.zIndex}),i=t.viewState;this.children_.length=0;for(var a=[],o=null,s=0,l=r.length;s=0;--s)a[s].renderDeclutter(t);W0r(this.element_,this.children_),this.dispatchRenderEvent(Tf.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)},e.prototype.forEachLayerAtPixel=function(t,r,i,a,o){for(var s=r.viewState,l=r.layerStatesArray,u=l.length,h=u-1;h>=0;--h){var c=l[h],f=c.layer;if(f.hasRenderer()&&s7(c,s)&&o(f)){var d=f.getRenderer(),v=d.getDataAtPixel(t,r,i);if(v){var p=a(f,v);if(p)return p}}}},e}(PLr);const DLr=RLr;var uqe=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),$x=function(n){uqe(e,n);function e(t,r){var i=n.call(this,t)||this;return i.layer=r,i}return e}(Fm),Uq={LAYERS:"layers"},NLr=function(n){uqe(e,n);function e(t){var r=this,i=t||{},a=Ao({},i);delete a.layers;var o=i.layers;return r=n.call(this,a)||this,r.on,r.once,r.un,r.layersListenerKeys_=[],r.listenerKeys_={},r.addChangeListener(Uq.LAYERS,r.handleLayersChanged_),o?Array.isArray(o)?o=new gd(o.slice(),{unique:!0}):ki(typeof o.getArray=="function",43):o=new gd(void 0,{unique:!0}),r.setLayers(o),r}return e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(Ms),this.layersListenerKeys_.length=0;var t=this.getLayers();this.layersListenerKeys_.push(pa(t,ld.ADD,this.handleLayersAdd_,this),pa(t,ld.REMOVE,this.handleLayersRemove_,this));for(var r in this.listenerKeys_)this.listenerKeys_[r].forEach(Ms);JI(this.listenerKeys_);for(var i=t.getArray(),a=0,o=i.length;athis.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Ms(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(Ci.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Ms(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Ms),this.dragListenerKeys_.length=0,this.element_=null,n.prototype.disposeInternal.call(this)},e}(QI);const VLr=ULr,Pc={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"};var _7=1/0,$Lr=function(){function n(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return n.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,JI(this.queuedElements_)},n.prototype.dequeue=function(){var e=this.elements_,t=this.priorities_,r=e[0];e.length==1?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));var i=this.keyFunction_(r);return delete this.queuedElements_[i],r},n.prototype.enqueue=function(e){ki(!(this.keyFunction_(e)in this.queuedElements_),31);var t=this.priorityFunction_(e);return t!=_7?(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1},n.prototype.getCount=function(){return this.elements_.length},n.prototype.getLeftChildIndex_=function(e){return e*2+1},n.prototype.getRightChildIndex_=function(e){return e*2+2},n.prototype.getParentIndex_=function(e){return e-1>>1},n.prototype.heapify_=function(){var e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)},n.prototype.isEmpty=function(){return this.elements_.length===0},n.prototype.isKeyQueued=function(e){return e in this.queuedElements_},n.prototype.isQueued=function(e){return this.isKeyQueued(this.keyFunction_(e))},n.prototype.siftUp_=function(e){for(var t=this.elements_,r=this.priorities_,i=t.length,a=t[e],o=r[e],s=e;e>1;){var l=this.getLeftChildIndex_(e),u=this.getRightChildIndex_(e),h=ue;){var s=this.getParentIndex_(t);if(i[s]>o)r[t]=r[s],i[t]=i[s],t=s;else break}r[t]=a,i[t]=o},n.prototype.reprioritize=function(){var e=this.priorityFunction_,t=this.elements_,r=this.priorities_,i=0,a=t.length,o,s,l;for(s=0;s0;)o=this.dequeue()[0],s=o.getKey(),a=o.getState(),a===Xr.IDLE&&!(s in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[s]=!0,++this.tilesLoading_,++i,o.load())},e}(WLr);const XLr=jLr;function YLr(n,e,t,r,i){if(!n||!(t in n.wantedTiles)||!n.wantedTiles[t][e.getKey()])return _7;var a=n.viewState.center,o=r[0]-a[0],s=r[1]-a[1];return 65536*Math.log(i)+Math.sqrt(o*o+s*s)/i}const Ig={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var qLr=42,lhe=256;function zAe(n,e,t){return function(r,i,a,o,s){if(!!r){if(!i&&!e)return r;var l=e?0:a[0]*i,u=e?0:a[1]*i,h=s?s[0]:0,c=s?s[1]:0,f=n[0]+l/2+h,d=n[2]-l/2+h,v=n[1]+u/2+c,p=n[3]-u/2+c;f>d&&(f=(d+f)/2,d=f),v>p&&(v=(p+v)/2,p=v);var g=Ui(r[0],f,d),m=Ui(r[1],v,p);if(o&&t&&i){var y=30*i;g+=-y*Math.log(1+Math.max(0,f-r[0])/y)+y*Math.log(1+Math.max(0,r[0]-d)/y),m+=-y*Math.log(1+Math.max(0,v-r[1])/y)+y*Math.log(1+Math.max(0,r[1]-p)/y)}return[g,m]}}}function ZLr(n){return n}function uhe(n,e,t,r){var i=Co(e)/t[0],a=lh(e)/t[1];return r?Math.min(n,Math.max(i,a)):Math.min(n,Math.min(i,a))}function hhe(n,e,t){var r=Math.min(n,e),i=50;return r*=Math.log(1+i*Math.max(0,n/e-1))/i+1,t&&(r=Math.max(r,t),r/=Math.log(1+i*Math.max(0,t/n-1))/i+1),Ui(r,t/2,e*2)}function KLr(n,e,t,r){return function(i,a,o,s){if(i!==void 0){var l=n[0],u=n[n.length-1],h=t?uhe(l,t,o,r):l;if(s){var c=e!==void 0?e:!0;return c?hhe(i,h,u):Ui(i,u,h)}var f=Math.min(h,i),d=Math.floor(PV(n,f,a));return n[d]>h&&d1)c=t;else if(f>0){for(var d=0;di&&(i=u),a=s,o=l}return i}function dhe(n,e,t,r,i){for(var a=0,o=t.length;aa&&(u-s)*(a-l)-(i-s)*(h-l)>0&&o++:h<=a&&(u-s)*(a-l)-(i-s)*(h-l)<0&&o--,s=u,l=h}return o!==0}function yhe(n,e,t,r,i,a){if(t.length===0||!yE(n,e,t[0],r,i,a))return!1;for(var o=1,s=t.length;ox&&(u=(h+c)/2,yhe(n,e,t,r,u,v)&&(_=u,x=S)),h=c}return isNaN(_)&&(_=i[a]),o?(o.push(_,v,x),o):[_,v,x]}function dqe(n,e,t,r,i){for(var a=[],o=0,s=t.length;o=i[0]&&a[2]<=i[2]||a[1]>=i[1]&&a[3]<=i[3]?!0:vqe(n,e,t,r,function(o,s){return yyr(i,o,s)}):!1}function vPr(n,e,t,r,i){for(var a=0,o=t.length;a0}function gqe(n,e,t,r,i){for(var a=i!==void 0?i:!1,o=0,s=t.length;o1&&typeof arguments[r-1]=="function"&&(i=arguments[r-1],--r);for(var a=0;a0},e.prototype.getInteracting=function(){return this.hints_[Gs.INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(Gs.ANIMATING,-this.hints_[Gs.ANIMATING]);for(var t,r=0,i=this.animations_.length;r=0;--i){for(var a=this.animations_[i],o=!0,s=0,l=a.length;s0?h/u.duration:1;c>=1?(u.complete=!0,c=1):o=!1;var f=u.easing(c);if(u.sourceCenter){var d=u.sourceCenter[0],v=u.sourceCenter[1],p=u.targetCenter[0],g=u.targetCenter[1];this.nextCenter_=u.targetCenter;var m=d+f*(p-d),y=v+f*(g-v);this.targetCenter_=[m,y]}if(u.sourceResolution&&u.targetResolution){var _=f===1?u.targetResolution:u.sourceResolution+f*(u.targetResolution-u.sourceResolution);if(u.anchor){var x=this.getViewportSize_(this.getRotation()),S=this.constraints_.resolution(_,0,x,!0);this.targetCenter_=this.calculateCenterZoom(S,u.anchor)}this.nextResolution_=u.targetResolution,this.targetResolution_=_,this.applyTargetState_(!0)}if(u.sourceRotation!==void 0&&u.targetRotation!==void 0){var w=f===1?bS(u.targetRotation+Math.PI,2*Math.PI)-Math.PI:u.sourceRotation+f*(u.targetRotation-u.sourceRotation);if(u.anchor){var b=this.constraints_.rotation(w,!0);this.targetCenter_=this.calculateCenterRotate(b,u.anchor)}this.nextRotation_=u.targetRotation,this.targetRotation_=w}if(this.applyTargetState_(!0),r=!0,!u.complete)break}}if(o){this.animations_[i]=null,this.setHint(Gs.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var E=a[0].callback;E&&M6(E,!0)}}this.animations_=this.animations_.filter(Boolean),r&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,r){var i,a=this.getCenterInternal();return a!==void 0&&(i=[a[0]-r[0],a[1]-r[1]],uue(i,t-this.getRotation()),_yr(i,r)),i},e.prototype.calculateCenterZoom=function(t,r){var i,a=this.getCenterInternal(),o=this.getResolution();if(a!==void 0&&o!==void 0){var s=r[0]-t*(r[0]-a[0])/o,l=r[1]-t*(r[1]-a[1])/o;i=[s,l]}return i},e.prototype.getViewportSize_=function(t){var r=this.viewportSize_;if(t){var i=r[0],a=r[1];return[Math.abs(i*Math.cos(t))+Math.abs(a*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(a*Math.cos(t))]}else return r},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t&&Ate(t,this.getProjection())},e.prototype.getCenterInternal=function(){return this.get(Ig.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},e.prototype.getHints=function(t){return t!==void 0?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var r=this.calculateExtentInternal(t);return Xje(r,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var r=t||this.getViewportSizeMinusPadding_(),i=this.getCenterInternal();ki(i,1);var a=this.getResolution();ki(a!==void 0,2);var o=this.getRotation();return ki(o!==void 0,3),oN(i,a,o,r)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(Ig.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,r){return this.getResolutionForExtentInternal(F1(t,this.getProjection()),r)},e.prototype.getResolutionForExtentInternal=function(t,r){var i=r||this.getViewportSizeMinusPadding_(),a=Co(t)/i[0],o=lh(t)/i[1];return Math.max(a,o)},e.prototype.getResolutionForValueFunction=function(t){var r=t||2,i=this.getConstrainedResolution(this.maxResolution_),a=this.minResolution_,o=Math.log(i/a)/Math.log(r);return function(s){var l=i/Math.pow(r,s*o);return l}},e.prototype.getRotation=function(){return this.get(Ig.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var r=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),a=this.minResolution_,o=Math.log(i/a)/r;return function(s){var l=Math.log(i/s)/r/o;return l}},e.prototype.getViewportSizeMinusPadding_=function(t){var r=this.getViewportSize_(t),i=this.padding_;return i&&(r=[r[0]-i[1]-i[3],r[1]-i[0]-i[2]]),r},e.prototype.getState=function(){var t=this.getProjection(),r=this.getResolution(),i=this.getRotation(),a=this.getCenterInternal(),o=this.padding_;if(o){var s=this.getViewportSizeMinusPadding_();a=$q(a,this.getViewportSize_(),[s[0]/2+o[3],s[1]/2+o[0]],r,i)}return{center:a.slice(0),projection:t!==void 0?t:null,resolution:r,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,r=this.getResolution();return r!==void 0&&(t=this.getZoomForResolution(r)),t},e.prototype.getZoomForResolution=function(t){var r=this.minZoom_||0,i,a;if(this.resolutions_){var o=PV(this.resolutions_,t,1);r=o,i=this.resolutions_[o],o==this.resolutions_.length-1?a=2:a=i/this.resolutions_[o+1]}else i=this.maxResolution_,a=this.zoomFactor_;return r+Math.log(i/t)/Math.log(a)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var r=Ui(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[r]/this.resolutions_[r+1];return this.resolutions_[r]/Math.pow(i,Ui(t-r,0,1))}else return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,r){var i;if(ki(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function",24),Array.isArray(t)){ki(!Sk(t),25);var a=F1(t,this.getProjection());i=jAe(a)}else if(t.getType()===Kr.CIRCLE){var a=F1(t.getExtent(),this.getProjection());i=jAe(a),i.rotate(this.getRotation(),Nf(a))}else{var o=Ayr();o?i=t.clone().transform(o,this.getProjection()):i=t}this.fitInternal(i,r)},e.prototype.rotatedExtentForGeometry=function(t){for(var r=this.getRotation(),i=Math.cos(r),a=Math.sin(-r),o=t.getFlatCoordinates(),s=t.getStride(),l=1/0,u=1/0,h=-1/0,c=-1/0,f=0,d=o.length;f=0;u--){var h=l[u];if(!(h.getMap()!==this||!h.getActive()||!this.getTargetElement())){var c=h.handleEvent(t);if(!c||t.propagationStopped)break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,r=this.tileQueue_;if(!r.isEmpty()){var i=this.maxTilesLoading_,a=i;if(t){var o=t.viewHints;if(o[Gs.ANIMATING]||o[Gs.INTERACTING]){var s=Date.now()-t.time>8;i=s?0:8,a=s?0:2}}r.getTilesLoading()0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!Iw(r,this.renderedAttributions_)){$0r(this.ulElement_);for(var a=0,o=r.length;a0&&i%(2*Math.PI)!==0?r.animate({rotation:0,duration:this.duration_,easing:sL}):r.setRotation(0))}},e.prototype.render=function(t){var r=t.frameState;if(!!r){var i=r.viewState.rotation;if(i!=this.rotation_){var a="rotate("+i+"rad)";if(this.autoHide_){var o=this.element.classList.contains(e6);!o&&i===0?this.element.classList.add(e6):o&&i!==0&&this.element.classList.remove(e6)}this.label_.style.transform=a}this.rotation_=i}},e}(eL);const kPr=NPr;var FPr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),BPr=function(n){FPr(e,n);function e(t){var r=this,i=t||{};r=n.call(this,{element:document.createElement("div"),target:i.target})||this;var a=i.className!==void 0?i.className:"ol-zoom",o=i.delta!==void 0?i.delta:1,s=i.zoomInClassName!==void 0?i.zoomInClassName:a+"-in",l=i.zoomOutClassName!==void 0?i.zoomOutClassName:a+"-out",u=i.zoomInLabel!==void 0?i.zoomInLabel:"+",h=i.zoomOutLabel!==void 0?i.zoomOutLabel:"\u2013",c=i.zoomInTipLabel!==void 0?i.zoomInTipLabel:"Zoom in",f=i.zoomOutTipLabel!==void 0?i.zoomOutTipLabel:"Zoom out",d=document.createElement("button");d.className=s,d.setAttribute("type","button"),d.title=c,d.appendChild(typeof u=="string"?document.createTextNode(u):u),d.addEventListener(Ci.CLICK,r.handleClick_.bind(r,o),!1);var v=document.createElement("button");v.className=l,v.setAttribute("type","button"),v.title=f,v.appendChild(typeof h=="string"?document.createTextNode(h):h),v.addEventListener(Ci.CLICK,r.handleClick_.bind(r,-o),!1);var p=a+" "+mk+" "+aue,g=r.element;return g.className=p,g.appendChild(d),g.appendChild(v),r.duration_=i.duration!==void 0?i.duration:250,r}return e.prototype.handleClick_=function(t,r){r.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var r=this.getMap(),i=r.getView();if(!!i){var a=i.getZoom();if(a!==void 0){var o=i.getConstrainedZoom(a+t);this.duration_>0?(i.getAnimating()&&i.cancelAnimations(),i.animate({zoom:o,duration:this.duration_,easing:sL})):i.setZoom(o)}}},e}(eL);const GPr=BPr;function zPr(n){var e=n||{},t=new gd,r=e.zoom!==void 0?e.zoom:!0;r&&t.push(new GPr(e.zoomOptions));var i=e.rotate!==void 0?e.rotate:!0;i&&t.push(new kPr(e.rotateOptions));var a=e.attribution!==void 0?e.attribution:!0;return a&&t.push(new RPr(e.attributionOptions)),t}const XAe={ACTIVE:"active"};var UPr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),VPr=function(n){UPr(e,n);function e(t){var r=n.call(this)||this;return r.on,r.once,r.un,t&&t.handleEvent&&(r.handleEvent=t.handleEvent),r.map_=null,r.setActive(!0),r}return e.prototype.getActive=function(){return this.get(XAe.ACTIVE)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(XAe.ACTIVE,t)},e.prototype.setMap=function(t){this.map_=t},e}(kv);function $Pr(n,e,t){var r=n.getCenterInternal();if(r){var i=[r[0]+e[0],r[1]+e[1]];n.animateInternal({duration:t!==void 0?t:250,easing:rPr,center:n.getConstrainedCenter(i)})}}function xhe(n,e,t,r){var i=n.getZoom();if(i!==void 0){var a=n.getConstrainedZoom(i+e),o=n.getResolutionForZoom(a);n.getAnimating()&&n.cancelAnimations(),n.animate({resolution:o,anchor:t,duration:r!==void 0?r:250,easing:sL})}}const kk=VPr;var WPr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),HPr=function(n){WPr(e,n);function e(t){var r=n.call(this)||this,i=t||{};return r.delta_=i.delta?i.delta:1,r.duration_=i.duration!==void 0?i.duration:250,r}return e.prototype.handleEvent=function(t){var r=!1;if(t.type==Zs.DBLCLICK){var i=t.originalEvent,a=t.map,o=t.coordinate,s=i.shiftKey?-this.delta_:this.delta_,l=a.getView();xhe(l,s,o,this.duration_),i.preventDefault(),r=!0}return!r},e}(kk);const jPr=HPr;var XPr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),YPr=function(n){XPr(e,n);function e(t){var r=this,i=t||{};return r=n.call(this,i)||this,i.handleDownEvent&&(r.handleDownEvent=i.handleDownEvent),i.handleDragEvent&&(r.handleDragEvent=i.handleDragEvent),i.handleMoveEvent&&(r.handleMoveEvent=i.handleMoveEvent),i.handleUpEvent&&(r.handleUpEvent=i.handleUpEvent),i.stopDown&&(r.stopDown=i.stopDown),r.handlingDownUpSequence=!1,r.trackedPointers_={},r.targetPointers=[],r}return e.prototype.getPointerCount=function(){return this.targetPointers.length},e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var r=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==Zs.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==Zs.POINTERUP){var i=this.handleUpEvent(t);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(t.type==Zs.POINTERDOWN){var a=this.handleDownEvent(t);this.handlingDownUpSequence=a,r=this.stopDown(a)}else t.type==Zs.POINTERMOVE&&this.handleMoveEvent(t);return!r},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){if(qPr(t)){var r=t.originalEvent,i=r.pointerId.toString();t.type==Zs.POINTERUP?delete this.trackedPointers_[i]:t.type==Zs.POINTERDOWN?this.trackedPointers_[i]=r:i in this.trackedPointers_&&(this.trackedPointers_[i]=r),this.targetPointers=Pje(this.trackedPointers_)}},e}(kk);function She(n){for(var e=n.length,t=0,r=0,i=0;i0&&this.condition_(t)){var r=t.map,i=r.getView();return this.lastCentroid=null,i.getAnimating()&&i.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}else return!1},e}(lL);const nOr=rOr;var iOr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),aOr=function(n){iOr(e,n);function e(t){var r=this,i=t||{};return r=n.call(this,{stopDown:OV})||this,r.condition_=i.condition?i.condition:ZPr,r.lastAngle_=void 0,r.duration_=i.duration!==void 0?i.duration:250,r}return e.prototype.handleDragEvent=function(t){if(!!Wq(t)){var r=t.map,i=r.getView();if(i.getConstraints().rotation!==che){var a=r.getSize(),o=t.pixel,s=Math.atan2(a[1]/2-o[1],o[0]-a[0]/2);if(this.lastAngle_!==void 0){var l=s-this.lastAngle_;i.adjustRotationInternal(-l)}this.lastAngle_=s}}},e.prototype.handleUpEvent=function(t){if(!Wq(t))return!0;var r=t.map,i=r.getView();return i.endInteraction(this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!Wq(t))return!1;if(Sqe(t)&&this.condition_(t)){var r=t.map;return r.getView().beginInteraction(),this.lastAngle_=void 0,!0}else return!1},e}(lL);const oOr=aOr;var sOr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),lOr=function(n){sOr(e,n);function e(t){var r=n.call(this)||this;return r.geometry_=null,r.element_=document.createElement("div"),r.element_.style.position="absolute",r.element_.style.pointerEvents="auto",r.element_.className="ol-box "+t,r.map_=null,r.startPixel_=null,r.endPixel_=null,r}return e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,r=this.endPixel_,i="px",a=this.element_.style;a.left=Math.min(t[0],r[0])+i,a.top=Math.min(t[1],r[1])+i,a.width=Math.abs(r[0]-t[0])+i,a.height=Math.abs(r[1]-t[1])+i},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var r=this.element_.style;r.left="inherit",r.top="inherit",r.width="inherit",r.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,r){this.startPixel_=t,this.endPixel_=r,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,r=this.endPixel_,i=[t,[t[0],r[1]],r,[r[0],t[1]]],a=i.map(this.map_.getCoordinateFromPixelInternal,this.map_);a[4]=a[0].slice(),this.geometry_?this.geometry_.setCoordinates([a]):this.geometry_=new m2([a])},e.prototype.getGeometry=function(){return this.geometry_},e}(LV);const uOr=lOr;var Eqe=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),I6={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},Hq=function(n){Eqe(e,n);function e(t,r,i){var a=n.call(this,t)||this;return a.coordinate=r,a.mapBrowserEvent=i,a}return e}(Fm),hOr=function(n){Eqe(e,n);function e(t){var r=n.call(this)||this;r.on,r.once,r.un;var i=t||{};return r.box_=new uOr(i.className||"ol-dragbox"),r.minArea_=i.minArea!==void 0?i.minArea:64,i.onBoxEnd&&(r.onBoxEnd=i.onBoxEnd),r.startPixel_=null,r.condition_=i.condition?i.condition:Sqe,r.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:r.defaultBoxEndCondition,r}return e.prototype.defaultBoxEndCondition=function(t,r,i){var a=i[0]-r[0],o=i[1]-r[1];return a*a+o*o>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new Hq(I6.BOXDRAG,t.coordinate,t))},e.prototype.handleUpEvent=function(t){this.box_.setMap(null);var r=this.boxEndCondition_(t,this.startPixel_,t.pixel);return r&&this.onBoxEnd(t),this.dispatchEvent(new Hq(r?I6.BOXEND:I6.BOXCANCEL,t.coordinate,t)),!1},e.prototype.handleDownEvent=function(t){return this.condition_(t)?(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new Hq(I6.BOXSTART,t.coordinate,t)),!0):!1},e.prototype.onBoxEnd=function(t){},e}(lL);const cOr=hOr;var fOr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),dOr=function(n){fOr(e,n);function e(t){var r=this,i=t||{},a=i.condition?i.condition:QPr;return r=n.call(this,{condition:a,className:i.className||"ol-dragzoom",minArea:i.minArea})||this,r.duration_=i.duration!==void 0?i.duration:200,r.out_=i.out!==void 0?i.out:!1,r}return e.prototype.onBoxEnd=function(t){var r=this.getMap(),i=r.getView(),a=this.getGeometry();if(this.out_){var o=i.rotatedExtentForGeometry(a),s=i.getResolutionForExtentInternal(o),l=i.getResolution()/s;a=a.clone(),a.scale(l*l)}i.fitInternal(a,{duration:this.duration_,easing:sL})},e}(cOr);const vOr=dOr,Cb={LEFT:37,UP:38,RIGHT:39,DOWN:40};var pOr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),gOr=function(n){pOr(e,n);function e(t){var r=n.call(this)||this,i=t||{};return r.defaultCondition_=function(a){return wqe(a)&&bqe(a)},r.condition_=i.condition!==void 0?i.condition:r.defaultCondition_,r.duration_=i.duration!==void 0?i.duration:100,r.pixelDelta_=i.pixelDelta!==void 0?i.pixelDelta:128,r}return e.prototype.handleEvent=function(t){var r=!1;if(t.type==Ci.KEYDOWN){var i=t.originalEvent,a=i.keyCode;if(this.condition_(t)&&(a==Cb.DOWN||a==Cb.LEFT||a==Cb.RIGHT||a==Cb.UP)){var o=t.map,s=o.getView(),l=s.getResolution()*this.pixelDelta_,u=0,h=0;a==Cb.DOWN?h=-l:a==Cb.LEFT?u=-l:a==Cb.RIGHT?u=l:h=l;var c=[u,h];uue(c,s.getRotation()),$Pr(s,c,this.duration_),i.preventDefault(),r=!0}}return!r},e}(kk);const yOr=gOr;var mOr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),_Or=function(n){mOr(e,n);function e(t){var r=n.call(this)||this,i=t||{};return r.condition_=i.condition?i.condition:bqe,r.delta_=i.delta?i.delta:1,r.duration_=i.duration!==void 0?i.duration:100,r}return e.prototype.handleEvent=function(t){var r=!1;if(t.type==Ci.KEYDOWN||t.type==Ci.KEYPRESS){var i=t.originalEvent,a=i.charCode;if(this.condition_(t)&&(a=="+".charCodeAt(0)||a=="-".charCodeAt(0))){var o=t.map,s=a=="+".charCodeAt(0)?this.delta_:-this.delta_,l=o.getView();xhe(l,s,void 0,this.duration_),i.preventDefault(),r=!0}}return!r},e}(kk);const xOr=_Or;var SOr=function(){function n(e,t,r){this.decay_=e,this.minVelocity_=t,this.delay_=r,this.points_=[],this.angle_=0,this.initialVelocity_=0}return n.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},n.prototype.update=function(e,t){this.points_.push(e,t,Date.now())},n.prototype.end=function(){if(this.points_.length<6)return!1;var e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]0&&this.points_[r+2]>e;)r-=3;var i=this.points_[t+2]-this.points_[r+2];if(i<1e3/60)return!1;var a=this.points_[t]-this.points_[r],o=this.points_[t+1]-this.points_[r+1];return this.angle_=Math.atan2(o,a),this.initialVelocity_=Math.sqrt(a*a+o*o)/i,this.initialVelocity_>this.minVelocity_},n.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},n.prototype.getAngle=function(){return this.angle_},n}();const wOr=SOr;var bOr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),jq={TRACKPAD:"trackpad",WHEEL:"wheel"},EOr=function(n){bOr(e,n);function e(t){var r=this,i=t||{};r=n.call(this,i)||this,r.totalDelta_=0,r.lastDelta_=0,r.maxDelta_=i.maxDelta!==void 0?i.maxDelta:1,r.duration_=i.duration!==void 0?i.duration:250,r.timeout_=i.timeout!==void 0?i.timeout:80,r.useAnchor_=i.useAnchor!==void 0?i.useAnchor:!0,r.constrainResolution_=i.constrainResolution!==void 0?i.constrainResolution:!1;var a=i.condition?i.condition:JPr;return r.condition_=i.onFocusOnly?hre(xqe,a):a,r.lastAnchor_=null,r.startTime_=void 0,r.timeoutId_,r.mode_=void 0,r.trackpadEventGap_=400,r.trackpadTimeoutId_,r.deltaPerZoom_=300,r}return e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap().getView();t.endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var r=t.type;if(r!==Ci.WHEEL)return!0;var i=t.map,a=t.originalEvent;a.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate);var o;if(t.type==Ci.WHEEL&&(o=a.deltaY,F0r&&a.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(o/=iue),a.deltaMode===WheelEvent.DOM_DELTA_LINE&&(o*=40)),o===0)return!1;this.lastDelta_=o;var s=Date.now();this.startTime_===void 0&&(this.startTime_=s),(!this.mode_||s-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(o)<4?jq.TRACKPAD:jq.WHEEL);var l=i.getView();if(this.mode_===jq.TRACKPAD&&!(l.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(l.getAnimating()&&l.cancelAnimations(),l.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),l.adjustZoom(-o/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=s,!1;this.totalDelta_+=o;var u=Math.max(this.timeout_-(s-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),u),!1},e.prototype.handleWheelZoom_=function(t){var r=t.getView();r.getAnimating()&&r.cancelAnimations();var i=-Ui(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(r.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),xhe(r,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(kk);const Tqe=EOr;var TOr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),COr=function(n){TOr(e,n);function e(t){var r=this,i=t||{},a=i;return a.stopDown||(a.stopDown=OV),r=n.call(this,a)||this,r.anchor_=null,r.lastAngle_=void 0,r.rotating_=!1,r.rotationDelta_=0,r.threshold_=i.threshold!==void 0?i.threshold:.3,r.duration_=i.duration!==void 0?i.duration:250,r}return e.prototype.handleDragEvent=function(t){var r=0,i=this.targetPointers[0],a=this.targetPointers[1],o=Math.atan2(a.clientY-i.clientY,a.clientX-i.clientX);if(this.lastAngle_!==void 0){var s=o-this.lastAngle_;this.rotationDelta_+=s,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),r=s}this.lastAngle_=o;var l=t.map,u=l.getView();if(u.getConstraints().rotation!==che){var h=l.getViewport().getBoundingClientRect(),c=She(this.targetPointers);c[0]-=h.left,c[1]-=h.top,this.anchor_=l.getCoordinateFromPixelInternal(c),this.rotating_&&(l.render(),u.adjustRotationInternal(r,this.anchor_))}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var r=t.map,i=r.getView();return i.endInteraction(this.duration_),!1}else return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var r=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||r.getView().beginInteraction(),!0}else return!1},e}(lL);const AOr=COr;var MOr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),IOr=function(n){MOr(e,n);function e(t){var r=this,i=t||{},a=i;return a.stopDown||(a.stopDown=OV),r=n.call(this,a)||this,r.anchor_=null,r.duration_=i.duration!==void 0?i.duration:400,r.lastDistance_=void 0,r.lastScaleDelta_=1,r}return e.prototype.handleDragEvent=function(t){var r=1,i=this.targetPointers[0],a=this.targetPointers[1],o=i.clientX-a.clientX,s=i.clientY-a.clientY,l=Math.sqrt(o*o+s*s);this.lastDistance_!==void 0&&(r=this.lastDistance_/l),this.lastDistance_=l;var u=t.map,h=u.getView();r!=1&&(this.lastScaleDelta_=r);var c=u.getViewport().getBoundingClientRect(),f=She(this.targetPointers);f[0]-=c.left,f[1]-=c.top,this.anchor_=u.getCoordinateFromPixelInternal(f),u.render(),h.adjustResolutionInternal(r,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var r=t.map,i=r.getView(),a=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,a),!1}else return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var r=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||r.getView().beginInteraction(),!0}else return!1},e}(lL);const LOr=IOr;function x7(n,e,t,r,i,a,o){var s,l,u=(t-e)/r;if(u===1)s=e;else if(u===2)s=e,l=i;else if(u!==0){for(var h=n[e],c=n[e+1],f=0,d=[0],v=e+r;v1?o:2,x=a||new Array(_),v=0;v<_;++v)x[v]=s===void 0?NaN:l===void 0?n[s+v]:S1(n[s+v],n[s+r+v],l);return x}function cre(n,e,t,r,i,a){if(t==e)return null;var o;if(i>1;i{i(s,e)},a,o)};EA.prototype.forEachFeatureAtPixelDefault=EA.prototype.forEachFeatureAtPixel,EA.prototype.forEachFeatureAtPixel=EA.prototype.Tc=function(e,t,r,i){const a=r&&r.layerFilter?r.layerFilter:()=>!0,o=this.getLayers().getArray(),s=this.getView().getResolution(),l=this.getCoordinateFromPixel(e);for(let u=0;ut)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){ti()},e.prototype.getAlpha=function(t,r){if(!this.transition_)return 1;var i=this.transitionStarts_[t];if(!i)i=r,this.transitionStarts_[t]=i;else if(i===-1)return 1;var a=r-i+1e3/60;return a>=this.transition_?1:hqe(a/this.transition_)},e.prototype.inTransition=function(t){return this.transition_?this.transitionStarts_[t]!==-1:!1},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(QI);const l$=WOr;var HOr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),jOr=function(n){HOr(e,n);function e(t,r,i,a,o,s){var l=n.call(this,t,r,s)||this;return l.crossOrigin_=a,l.src_=i,l.key=i,l.image_=new Image,a!==null&&(l.image_.crossOrigin=a),l.unlisten_=null,l.tileLoadFunction_=o,l}return e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=Xr.LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){this.state=Xr.ERROR,this.unlistenImage_(),this.image_=XOr(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=Xr.LOADED:this.state=Xr.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==Xr.ERROR&&(this.state=Xr.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==Xr.IDLE&&(this.state=Xr.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=bue(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(l$);function XOr(){var n=Ad(1,1);return n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1),n.canvas}const Iqe=jOr;var Lqe=.5,my=!0,YOr=10,YAe=.25,qOr=function(){function n(e,t,r,i,a,o){this.sourceProj_=e,this.targetProj_=t;var s={},l=__(this.targetProj_,this.sourceProj_);this.transformInv_=function(_){var x=_[0]+"/"+_[1];return s[x]||(s[x]=l(_)),s[x]},this.maxSourceExtent_=i,this.errorThresholdSquared_=a*a,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&Co(i)==Co(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Co(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Co(this.targetProj_.getExtent()):null;var u=Lw(r),h=FV(r),c=kV(r),f=NV(r),d=this.transformInv_(u),v=this.transformInv_(h),p=this.transformInv_(c),g=this.transformInv_(f),m=YOr+(o?Math.max(0,Math.ceil(K0r(wte(r)/(o*o*256*256)))):0);if(this.addQuad_(u,h,c,f,d,v,p,g,m),this.wrapsXInSource_){var y=1/0;this.triangles_.forEach(function(_,x,S){y=Math.min(y,_.source[0][0],_.source[1][0],_.source[2][0])}),this.triangles_.forEach(function(_){if(Math.max(_.source[0][0],_.source[1][0],_.source[2][0])-y>this.sourceWorldWidth_/2){var x=[[_.source[0][0],_.source[0][1]],[_.source[1][0],_.source[1][1]],[_.source[2][0],_.source[2][1]]];x[0][0]-y>this.sourceWorldWidth_/2&&(x[0][0]-=this.sourceWorldWidth_),x[1][0]-y>this.sourceWorldWidth_/2&&(x[1][0]-=this.sourceWorldWidth_),x[2][0]-y>this.sourceWorldWidth_/2&&(x[2][0]-=this.sourceWorldWidth_);var S=Math.min(x[0][0],x[1][0],x[2][0]),w=Math.max(x[0][0],x[1][0],x[2][0]);w-S.5&&c<1,v=!1;if(u>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var p=Q9([e,t,r,i]),g=Co(p)/this.targetWorldWidth_;v=g>YAe||v}!d&&this.sourceProj_.isGlobal()&&c&&(v=c>YAe||v)}if(!(!v&&this.maxSourceExtent_&&isFinite(h[0])&&isFinite(h[1])&&isFinite(h[2])&&isFinite(h[3])&&!Cl(h,this.maxSourceExtent_))){var m=0;if(!v&&(!isFinite(a[0])||!isFinite(a[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(s[0])||!isFinite(s[1])||!isFinite(l[0])||!isFinite(l[1]))){if(u>0)v=!0;else if(m=(!isFinite(a[0])||!isFinite(a[1])?8:0)+(!isFinite(o[0])||!isFinite(o[1])?4:0)+(!isFinite(s[0])||!isFinite(s[1])?2:0)+(!isFinite(l[0])||!isFinite(l[1])?1:0),m!=1&&m!=2&&m!=4&&m!=8)return}if(u>0){if(!v){var y=[(e[0]+r[0])/2,(e[1]+r[1])/2],_=this.transformInv_(y),x=void 0;if(d){var S=(bS(a[0],f)+bS(s[0],f))/2;x=S-bS(_[0],f)}else x=(a[0]+s[0])/2-_[0];var w=(a[1]+s[1])/2-_[1],b=x*x+w*w;v=b>this.errorThresholdSquared_}if(v){if(Math.abs(e[0]-r[0])<=Math.abs(e[1]-r[1])){var E=[(t[0]+r[0])/2,(t[1]+r[1])/2],T=this.transformInv_(E),C=[(i[0]+e[0])/2,(i[1]+e[1])/2],A=this.transformInv_(C);this.addQuad_(e,t,E,C,a,o,T,A,u-1),this.addQuad_(C,E,r,i,A,T,s,l,u-1)}else{var M=[(e[0]+t[0])/2,(e[1]+t[1])/2],I=this.transformInv_(M),R=[(r[0]+i[0])/2,(r[1]+i[1])/2],k=this.transformInv_(R);this.addQuad_(e,M,R,i,a,I,k,l,u-1),this.addQuad_(M,t,r,R,I,o,s,k,u-1)}return}}if(d){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}(m&11)==0&&this.addTriangle_(e,r,i,a,s,l),(m&14)==0&&this.addTriangle_(e,r,t,a,s,o),m&&((m&13)==0&&this.addTriangle_(t,i,e,o,l,a),(m&7)==0&&this.addTriangle_(t,i,r,o,l,s))}},n.prototype.calculateSourceExtent=function(){var e=Md();return this.triangles_.forEach(function(t,r,i){var a=t.source;AR(e,a[0]),AR(e,a[1]),AR(e,a[2])}),e},n.prototype.getTriangles=function(){return this.triangles_},n}();const Pqe=qOr;var S7={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},Oqe={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0},Xq;function qAe(n,e,t,r,i){n.beginPath(),n.moveTo(0,0),n.lineTo(e,t),n.lineTo(r,i),n.closePath(),n.save(),n.clip(),n.fillRect(0,0,Math.max(e,r)+1,Math.max(t,i)),n.restore()}function Yq(n,e){return Math.abs(n[e*4]-210)>2||Math.abs(n[e*4+3]-.75*255)>2}function ZOr(){if(Xq===void 0){var n=document.createElement("canvas").getContext("2d");n.globalCompositeOperation="lighter",n.fillStyle="rgba(210, 0, 0, 0.75)",qAe(n,4,5,4,0),qAe(n,4,5,0,5);var e=n.getImageData(0,0,3,3).data;Xq=Yq(e,0)||Yq(e,4)||Yq(e,8)}return Xq}function w7(n,e,t,r){var i=t7(t,e,n),a=sN(e,r,t),o=e.getMetersPerUnit();o!==void 0&&(a*=o);var s=n.getMetersPerUnit();s!==void 0&&(a/=s);var l=n.getExtent();if(!l||dv(l,i)){var u=sN(n,a,i)/a;isFinite(u)&&u>0&&(a/=u)}return a}function KOr(n,e,t,r){var i=Nf(t),a=w7(n,e,i,r);return(!isFinite(a)||a<=0)&&$je(t,function(o){return a=w7(n,e,o,r),isFinite(a)&&a>0}),a}function Rqe(n,e,t,r,i,a,o,s,l,u,h,c){var f=Ad(Math.round(t*n),Math.round(t*e));if(c||Ao(f,S7),l.length===0)return f.canvas;f.scale(t,t);function d(x){return Math.round(x*t)/t}f.globalCompositeOperation="lighter";var v=Md();l.forEach(function(x,S,w){Uje(v,x.extent)});var p=Co(v),g=lh(v),m=Ad(Math.round(t*p/r),Math.round(t*g/r));c||Ao(m,S7);var y=t/r;l.forEach(function(x,S,w){var b=x.extent[0]-v[0],E=-(x.extent[3]-v[3]),T=Co(x.extent),C=lh(x.extent);x.image.width>0&&x.image.height>0&&m.drawImage(x.image,u,u,x.image.width-2*u,x.image.height-2*u,b*y,E*y,T*y,C*y)});var _=Lw(o);return s.getTriangles().forEach(function(x,S,w){var b=x.source,E=x.target,T=b[0][0],C=b[0][1],A=b[1][0],M=b[1][1],I=b[2][0],R=b[2][1],k=d((E[0][0]-_[0])/a),D=d(-(E[0][1]-_[1])/a),G=d((E[1][0]-_[0])/a),V=d(-(E[1][1]-_[1])/a),z=d((E[2][0]-_[0])/a),j=d(-(E[2][1]-_[1])/a),Z=T,Y=C;T=0,C=0,A-=Z,M-=Y,I-=Z,R-=Y;var le=[[A,M,0,0,G-k],[I,R,0,0,z-k],[0,0,A,M,V-D],[0,0,I,R,j-D]],H=J0r(le);if(!!H){if(f.save(),f.beginPath(),ZOr()||!c){f.moveTo(G,V);for(var Q=4,ie=k-G,oe=D-V,se=0;se0&&this.getCount()>this.highWaterMark},n.prototype.expireCache=function(e){for(;this.canExpireCache();)this.pop()},n.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},n.prototype.containsKey=function(e){return this.entries_.hasOwnProperty(e)},n.prototype.forEach=function(e){for(var t=this.oldest_;t;)e(t.value_,t.key_,this),t=t.newer},n.prototype.get=function(e,t){var r=this.entries_[e];return ki(r!==void 0,15),r===this.newest_||(r===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(r.newer.older=r.older,r.older.newer=r.newer),r.newer=null,r.older=this.newest_,this.newest_.newer=r,this.newest_=r),r.value_},n.prototype.remove=function(e){var t=this.entries_[e];return ki(t!==void 0,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_},n.prototype.getCount=function(){return this.count_},n.prototype.getKeys=function(){var e=new Array(this.count_),t=0,r;for(r=this.newest_;r;r=r.older)e[t++]=r.key_;return e},n.prototype.getValues=function(){var e=new Array(this.count_),t=0,r;for(r=this.newest_;r;r=r.older)e[t++]=r.value_;return e},n.prototype.peekLast=function(){return this.oldest_.value_},n.prototype.peekLastKey=function(){return this.oldest_.key_},n.prototype.peekFirstKey=function(){return this.newest_.key_},n.prototype.pop=function(){var e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_},n.prototype.replace=function(e,t){this.get(e),this.entries_[e].value_=t},n.prototype.set=function(e,t){ki(!(e in this.entries_),16);var r={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=r:this.oldest_=r,this.newest_=r,this.entries_[e]=r,++this.count_},n.prototype.setSize=function(e){this.highWaterMark=e},n}();const tRr=eRr;function ZAe(n,e,t,r){return r!==void 0?(r[0]=n,r[1]=e,r[2]=t,r):[n,e,t]}function uL(n,e,t){return n+"/"+e+"/"+t}function Nqe(n){return uL(n[0],n[1],n[2])}function rRr(n){var e=n.substring(n.lastIndexOf("/")+1,n.length).split(",").map(Number),t=e[0],r=e[1],i=e[2];return uL(t,r,i)}function kqe(n){return n.split("/").map(Number)}function Fqe(n){return(n[1]<t||t>e.getMaxZoom())return!1;var a=e.getFullTileRange(t);return a?a.containsXY(r,i):!0}var iRr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),aRr=function(n){iRr(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.expireCache=function(t){for(;this.canExpireCache();){var r=this.peekLast();if(r.getKey()in t)break;this.pop().release()}},e.prototype.pruneExceptNewestZ=function(){if(this.getCount()!==0){var t=this.peekFirstKey(),r=kqe(t),i=r[0];this.forEach(function(a){a.tileCoord[0]!==i&&(this.remove(Nqe(a.tileCoord)),a.release())}.bind(this))}},e}(tRr);const bhe=aRr,qq={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"};var Bqe=function(){function n(e,t,r,i){this.minX=e,this.maxX=t,this.minY=r,this.maxY=i}return n.prototype.contains=function(e){return this.containsXY(e[1],e[2])},n.prototype.containsTileRange=function(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY},n.prototype.containsXY=function(e,t){return this.minX<=e&&e<=this.maxX&&this.minY<=t&&t<=this.maxY},n.prototype.equals=function(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY},n.prototype.extend=function(e){e.minXthis.maxX&&(this.maxX=e.maxX),e.minYthis.maxY&&(this.maxY=e.maxY)},n.prototype.getHeight=function(){return this.maxY-this.minY+1},n.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},n.prototype.getWidth=function(){return this.maxX-this.minX+1},n.prototype.intersects=function(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY},n}();function AC(n,e,t,r,i){return i!==void 0?(i.minX=n,i.maxX=e,i.minY=t,i.maxY=r,i):new Bqe(n,e,t,r)}const Gqe=Bqe;var oRr=[0,0,0],Sx=5,sRr=function(){function n(e){this.minZoom=e.minZoom!==void 0?e.minZoom:0,this.resolutions_=e.resolutions,ki(M0r(this.resolutions_,function(o,s){return s-o},!0),17);var t;if(!e.origins){for(var r=0,i=this.resolutions_.length-1;r=this.minZoom;){if(this.zoomFactor_===2?(o=Math.floor(o/2),s=Math.floor(s/2),a=AC(o,o,s,s,r)):a=this.getTileRangeForExtentAndZ(l,u,r),t(u,a))return!0;--u}return!1},n.prototype.getExtent=function(){return this.extent_},n.prototype.getMaxZoom=function(){return this.maxZoom},n.prototype.getMinZoom=function(){return this.minZoom},n.prototype.getOrigin=function(e){return this.origin_?this.origin_:this.origins_[e]},n.prototype.getResolution=function(e){return this.resolutions_[e]},n.prototype.getResolutions=function(){return this.resolutions_},n.prototype.getTileCoordChildTileRange=function(e,t,r){if(e[0]this.maxZoom||t0?r:Math.max(o/s[0],a/s[1]),u=i+1,h=new Array(u),c=0;ci.highWaterMark&&(i.highWaterMark=t)},e.prototype.useTile=function(t,r,i,a){},e}(_ue),cRr=function(n){$qe(e,n);function e(t,r){var i=n.call(this,t)||this;return i.tile=r,i}return e}(Fm);const fRr=hRr;function dRr(n,e){var t=/\{z\}/g,r=/\{x\}/g,i=/\{y\}/g,a=/\{-y\}/g;return function(o,s,l){if(o)return n.replace(t,o[0].toString()).replace(r,o[1].toString()).replace(i,o[2].toString()).replace(a,function(){var u=o[0],h=e.getFullTileRange(u);ki(h,55);var c=h.getHeight()-o[2]-1;return c.toString()})}}function vRr(n,e){for(var t=n.length,r=new Array(t),i=0;i\xA9 SuperMap iClient",i=h$.defaultTileGrid(),a=t.crossOrigin!==void 0?t.crossOrigin:"anonymous",o=t.url!==void 0?t.url:"https://maponline{num}.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles={styles}&udt=20170408",s=t.hidpi||(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1;o=o.replace("{styles}",s?"ph":"pl"),super({attributions:r,cacheSize:t.cacheSize,crossOrigin:a,opaque:t.opaque!==void 0?t.opaque:!0,maxZoom:t.maxZoom!==void 0?t.maxZoom:19,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,projection:"EPSG:3857",wrapX:t.wrapX,tilePixelRatio:s?2:1,tileGrid:i,tileUrlFunction:u}),t.tileProxy&&(this.tileProxy=t.tileProxy);var l=this;function u(h,c,f){var d=o.replace("{num}",Math.abs((h[1]+h[2])%4)).replace("{z}",h[0].toString()).replace("{x}",h[1].toString()).replace("{y}",function(){console.log(br.getOlVersion());var v=["4","5"].indexOf(br.getOlVersion())>-1?h[2]:-h[2]-1;return v.toString()}).replace("{-y}",function(){var v=h[0],p=i.getFullTileRange(v);ki(p,55);var g=p.getHeight()+h[2];return g.toString()});return l.tileProxy&&(d=l.tileProxy+encodeURIComponent(d)),d}}static defaultTileGrid(){var e=new ym({extent:[-33554432,-33554432,33554432,33554432],resolutions:[262144,131072,65536,32768,16284,8192,4096,2048,1024,512,256,128,64,32,16,8,4,2,1,.5],origin:[0,0],minZoom:3});return e}}var xRr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),SRr=function(n){xRr(e,n);function e(t,r,i,a,o,s,l){var u=this,h=t.getExtent(),c=r.getExtent(),f=c?tm(i,c):i,d=Nf(f),v=w7(t,r,d,a),p=Lqe,g=new Pqe(t,r,f,h,v*p,a),m=g.calculateSourceExtent(),y=s(m,v,o),_=y?Ai.IDLE:Ai.EMPTY,x=y?y.getPixelRatio():1;return u=n.call(this,i,a,x,_)||this,u.targetProj_=r,u.maxSourceExtent_=h,u.triangulation_=g,u.targetResolution_=a,u.targetExtent_=i,u.sourceImage_=y,u.sourcePixelRatio_=x,u.interpolate_=l,u.canvas_=null,u.sourceListenerKey_=null,u}return e.prototype.disposeInternal=function(){this.state==Ai.LOADING&&this.unlistenSource_(),n.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.getProjection=function(){return this.targetProj_},e.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==Ai.LOADED){var r=Co(this.targetExtent_)/this.targetResolution_,i=lh(this.targetExtent_)/this.targetResolution_;this.canvas_=Rqe(r,i,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=t,this.changed()},e.prototype.load=function(){if(this.state==Ai.IDLE){this.state=Ai.LOADING,this.changed();var t=this.sourceImage_.getState();t==Ai.LOADED||t==Ai.ERROR?this.reproject_():(this.sourceListenerKey_=pa(this.sourceImage_,Ci.CHANGE,function(r){var i=this.sourceImage_.getState();(i==Ai.LOADED||i==Ai.ERROR)&&(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}},e.prototype.unlistenSource_=function(){Ms(this.sourceListenerKey_),this.sourceListenerKey_=null},e}(wue);const wRr=SRr;var jqe=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Zq={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"},bRr=function(n){jqe(e,n);function e(t,r){var i=n.call(this,t)||this;return i.image=r,i}return e}(Fm),ERr=function(n){jqe(e,n);function e(t){var r=this,i=t.imageSmoothing!==void 0?t.imageSmoothing:!0;return t.interpolate!==void 0&&(i=t.interpolate),r=n.call(this,{attributions:t.attributions,projection:t.projection,state:t.state,interpolate:i})||this,r.on,r.once,r.un,r.resolutions_=t.resolutions!==void 0?t.resolutions:null,r.reprojectedImage_=null,r.reprojectedRevision_=0,r}return e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var r=PV(this.resolutions_,t,0);t=this.resolutions_[r]}return t},e.prototype.getImage=function(t,r,i,a){var o=this.getProjection();if(!my||!o||!a||Ry(o,a))return o&&(a=o),this.getImageInternal(t,r,i,a);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Ry(this.reprojectedImage_.getProjection(),a)&&this.reprojectedImage_.getResolution()==r&&m_(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new wRr(o,a,t,r,i,function(s,l,u){return this.getImageInternal(s,l,u,o)}.bind(this),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_},e.prototype.getImageInternal=function(t,r,i,a){return ti()},e.prototype.handleImageChange=function(t){var r=t.target,i;switch(r.getState()){case Ai.LOADING:this.loading=!0,i=Zq.IMAGELOADSTART;break;case Ai.LOADED:this.loading=!1,i=Zq.IMAGELOADEND;break;case Ai.ERROR:this.loading=!1,i=Zq.IMAGELOADERROR;break;default:return}this.hasListener(i)&&this.dispatchEvent(new bRr(i,r))},e}(_ue);function TRr(n,e){n.getImage().src=e}const Xqe=ERr;var CRr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ARr=function(n){CRr(e,n);function e(t){var r=n.call(this)||this;return r.geometries_=t||null,r.changeEventsKeys_=[],r.listenGeometriesChange_(),r}return e.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(Ms),this.changeEventsKeys_.length=0},e.prototype.listenGeometriesChange_=function(){if(!!this.geometries_)for(var t=0,r=this.geometries_.length;t\xA9 SuperMap iServer with \xA9 SuperMap iClient",e.format=e.format?e.format:"png",this._layerUrl=W.urlPathAppend(e.url,"image."+e.format),this._layerUrl=xs.appendCredential(this._layerUrl);const t={},r=e.transparent!==void 0?e.transparent:!0;t.transparent=r;const i=e.cacheEnabled!==void 0?e.cacheEnabled:!0;t.cacheEnabled=i,e.layersID!==void 0&&(t.layersID=e.layersID);let a=!1;e.redirect!==void 0&&(a=e.redirect),t.redirect=a,e.prjCoordSys&&(t.prjCoordSys=JSON.stringify(e.prjCoordSys)),e.clipRegionEnabled&&e.clipRegion instanceof vT&&(e.clipRegion=br.toSuperMapGeometry(new jc().writeGeometryObject(e.clipRegion)),e.clipRegion=W.toJSON(Vo.fromGeometry(e.clipRegion)),t.clipRegionEnabled=e.clipRegionEnabled,t.clipRegion=JSON.stringify(e.clipRegion)),!!e.overlapDisplayed&&e.overlapDisplayedOptions&&(t.overlapDisplayed=e.overlapDisplayed,t.overlapDisplayedOptions=e.overlapDisplayedOptions.toString()),i===!0&&e.tileversion&&(t.tileversion=e.tileversion),e.rasterfunction&&(t.rasterfunction=JSON.stringify(e.rasterfunction)),e.antialias!==void 0&&(t.antialias=e.antialias),e.markerAngleFixed!==void 0&&(t.markerAngleFixed=e.markerAngleFixed),e.textAngleFixed!==void 0&&(t.textAngleFixed=e.textAngleFixed),e.textOrientationFixed!==void 0&&(t.textOrientationFixed=e.textOrientationFixed),e.paintBackground!==void 0&&(t.paintBackground=e.paintBackground),isNaN(e.maxVisibleTextSize)||(t.maxVisibleTextSize=+e.maxVisibleTextSize),isNaN(e.minVisibleTextSize)||(t.maxVisibleTextSize=+e.minVisibleTextSize),isNaN(e.maxVisibleVertex)||(t.maxVisibleVertex=Math.round(+e.maxVisibleVertex)),this._layerUrl=W.urlAppend(this._layerUrl,W.getParameterString(t)),this.cacheEnabled=i,e.tileProxy&&(this.tileProxy=e.tileProxy)}getImageInternal(e,t,r){t=this.findNearestResolution(t);const i=t/r,a=Nf(e),o=Math.ceil(Co(e)/i),s=Math.ceil(lh(e)/i),l=oN(a,i,0,[o,s]),u=Math.ceil(this.ratio_*Co(e)/i),h=Math.ceil(this.ratio_*lh(e)/i),c=oN(a,i,0,[u,h]),f=this._image;if(f&&this.renderedRevision_===this.getRevision()&&f.getResolution()===t&&f.getPixelRatio()===r&&vv(f.getExtent(),l))return f;const d=[Math.round(Co(c)/i),Math.round(lh(c)/i)],v=this._getRequestUrl(c,d);return this._image=new O1r(c,t,r,v,this._crossOrigin,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this._image.addEventListener("change",this.handleImageChange.bind(this)),this._image}_getRequestUrl(e,t){const r={width:t[0],height:t[1],viewBounds:{leftBottom:{x:e[0],y:e[1]},rightTop:{x:e[2],y:e[3]}}};this.cacheEnabled||(r._t=new Date().getTime());let i=W.urlAppend(this._layerUrl,W.getParameterString(r));return this.tileProxy&&(i=this.tileProxy+encodeURIComponent(i)),i}static optionsFromMapJSON(e,t){var r=[t.bounds.left,t.bounds.bottom,t.bounds.right,t.bounds.top],i=a();function a(){var o=28,s=96,l=r[2]-r[0],u=r[3]-r[1],h=l>=u?l:u,c;h===l?c=h/t.viewer.width:c=h/t.viewer.height;var f=[],d=Wl.METER;if(t.coordUnit===Wl.DEGREE&&(d=Wl.DEGREE),t.visibleScales.length>0)for(let p=0;p\xA9 SuperMap iClient",i=t.mapName||"quanguo",a=t.mapType||"web",o=t.url||"http://t2.dituhui.com/FileService/image?map={mapName}&type={type}&x={x}&y={y}&z={z}";o=o.replace("{mapName}",i).replace("{type}",a);var s={attributions:r,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,opaque:t.opaque===void 0?!0:t.opaque,maxZoom:t.maxZoom||18,reprojectionErrorThreshold:t.reprojectionErrorThreshold,url:o,wrapX:t.wrapX};t.tileProxy&&(s.tileLoadFunction=u),super(s),t.tileProxy&&(this.tileProxy=t.tileProxy);var l=this;function u(h,c){h.getImage().src=l.tileProxy+encodeURIComponent(c)}}}const P6={KVP:"KVP",REST:"REST"};function E7(n,e){var t=[];Object.keys(e).forEach(function(i){e[i]!==null&&e[i]!==void 0&&t.push(i+"="+encodeURIComponent(e[i]))});var r=t.join("&");return n=n.replace(/[?&]$/,""),n=n.indexOf("?")===-1?n+"?":n+"&",n+r}var JRr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),QRr=function(n){JRr(e,n);function e(t){var r=n.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})||this;return r.matrixIds_=t.matrixIds,r}return e.prototype.getMatrixId=function(t){return this.matrixIds_[t]},e.prototype.getMatrixIds=function(){return this.matrixIds_},e}(ym);const pre=QRr;var eDr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),tDr=function(n){eDr(e,n);function e(t){var r=this,i=t.imageSmoothing!==void 0?t.imageSmoothing:!0;t.interpolate!==void 0&&(i=t.interpolate);var a=t.requestEncoding!==void 0?t.requestEncoding:P6.KVP,o=t.tileGrid,s=t.urls;return s===void 0&&t.url!==void 0&&(s=Wqe(t.url)),r=n.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:i,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:o,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,urls:s,wrapX:t.wrapX!==void 0?t.wrapX:!1,transition:t.transition,zDirection:t.zDirection})||this,r.version_=t.version!==void 0?t.version:"1.0.0",r.format_=t.format!==void 0?t.format:"image/jpeg",r.dimensions_=t.dimensions!==void 0?t.dimensions:{},r.layer_=t.layer,r.matrixSet_=t.matrixSet,r.style_=t.style,r.requestEncoding_=a,r.setKey(r.getKeyForDimensions_()),s&&s.length>0&&(r.tileUrlFunction=fre(s.map(r.createFromWMTSTemplate.bind(r)))),r}return e.prototype.setUrls=function(t){this.urls=t;var r=t.join(` +`);this.setTileUrlFunction(fre(t.map(this.createFromWMTSTemplate.bind(this))),r)},e.prototype.getDimensions=function(){return this.dimensions_},e.prototype.getFormat=function(){return this.format_},e.prototype.getLayer=function(){return this.layer_},e.prototype.getMatrixSet=function(){return this.matrixSet_},e.prototype.getRequestEncoding=function(){return this.requestEncoding_},e.prototype.getStyle=function(){return this.style_},e.prototype.getVersion=function(){return this.version_},e.prototype.getKeyForDimensions_=function(){var t=0,r=[];for(var i in this.dimensions_)r[t++]=i+"-"+this.dimensions_[i];return r.join("/")},e.prototype.updateDimensions=function(t){Ao(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},e.prototype.createFromWMTSTemplate=function(t){var r=this.requestEncoding_,i={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};r==P6.KVP&&Ao(i,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t=r==P6.KVP?E7(t,i):t.replace(/\{(\w+?)\}/g,function(s,l){return l.toLowerCase()in i?i[l.toLowerCase()]:s});var a=this.tileGrid,o=this.dimensions_;return function(s,l,u){if(s){var h={TileMatrix:a.getMatrixId(s[0]),TileCol:s[1],TileRow:s[2]};Ao(h,o);var c=t;return r==P6.KVP?c=E7(c,h):c=c.replace(/\{(\w+?)\}/g,function(f,d){return h[d]}),c}else return}},e}(Fk);const qqe=tDr;class tM extends qqe{constructor(e){var t={vec:"cva",ter:"cta",img:"cia"},r={vec:18,ter:14,img:18},i=e||{},a=i.attributions||"Map Data with \xA9 SuperMap iClient";i.layerType=i.layerType||"vec",i.layerType=i.isLabel?t[i.layerType]:i.layerType,i.matrixSet=i.projection==="EPSG:4326"||i.projection==="EPSG:4490"?"c":"w",!i.url&&!i.urls&&(i.url="http://t{0-7}.tianditu.gov.cn/{layer}_{proj}/wmts?"),i.key&&(i.url=`${i.url}tk=${i.key}`),i.url=i.url.replace("{layer}",i.layerType).replace("{proj}",i.matrixSet);var o=i.tileGrid||tM.getTileGrid(i.projection||"EPSG:3857"),s=i.crossOrigin!==void 0?i.crossOrigin:"anonymous",l={version:i.version||"1.0.0",format:i.format||"tiles",dimensions:i.dimensions||{},layer:i.layerType,matrixSet:i.matrixSet,tileGrid:o,style:i.style||"default",attributions:a,cacheSize:i.cacheSize,crossOrigin:s,opaque:i.opaque===void 0?!0:i.opaque,maxZoom:r[i.layerType],reprojectionErrorThreshold:i.reprojectionErrorThreshold,url:i.url,urls:i.urls,projection:i.projection||"EPSG:3857",wrapX:i.wrapX};i.tileProxy&&(l.tileLoadFunction=h),super(l),i.tileProxy&&(this.tileProxy=i.tileProxy);var u=this;function h(c,f){c.getImage().src=u.tileProxy+encodeURIComponent(f)}}static getTileGrid(e){return e==="EPSG:4326"||e==="EPSG:4490"?tM.default4326TileGrid():tM.default3857TileGrid()}static default4326TileGrid(){for(var e=[],t=[],r=1;r<19;r++)e.push(.703125*2/Math.pow(2,r)),t.push(r);var i=new pre({extent:[-180,-90,180,90],resolutions:e,origin:[-180,90],matrixIds:t,minZoom:1});return i}static default3857TileGrid(){for(var e=[],t=[],r=1;r<19;r++)e.push(78271.51696402031*2/Math.pow(2,r)),t.push(r);var i=new pre({extent:[-200375083427892e-7,-200375083427892e-7,200375083427892e-7,200375083427892e-7],resolutions:e,matrixIds:t,origin:[-200375083427892e-7,200375083427892e-7],minZoom:1});return i}}class Bp extends Fk{constructor(e){e=e||{},e.attributions=e.attributions||"Map Data \xA9 SuperMap iServer with \xA9 SuperMap iClient",e.format=e.format?e.format:"png",super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,logo:br.getOlVersion()==="4"?e.logo:null,opaque:e.opaque,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:e.state,tileClass:e.tileClass,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:s,wrapX:e.wrapX!==void 0?e.wrapX:!1,cacheEnabled:e.cacheEnabled,layersID:e.layersID}),e.tileProxy&&(this.tileProxy=e.tileProxy),this.options=e,this._url=e.url,this.tileSetsIndex=-1,this.tempIndex=-1,this.dpi=this.options.dpi||96;var t=this,r=W.urlPathAppend(e.url,"tileImage."+e.format);function i(){var l=this,u={};return u.redirect=e.redirect!==void 0?e.redirect:!1,u.transparent=e.transparent!==void 0?e.transparent:!0,u.cacheEnabled=e.cacheEnabled!==!1,l.cacheEnabled=u.cacheEnabled,u._cache=u.cacheEnabled,this.origin&&(u.origin=JSON.stringify({x:this.origin[0],y:this.origin[1]})),e.prjCoordSys&&(u.prjCoordSys=JSON.stringify(e.prjCoordSys)),e.layersID&&(u.layersID=e.layersID.toString()),e.clipRegion instanceof vT&&(e.clipRegionEnabled=!0,e.clipRegion=br.toSuperMapGeometry(new jc().writeGeometryObject(e.clipRegion)),e.clipRegion=W.toJSON(Vo.fromGeometry(e.clipRegion)),u.clipRegionEnabled=e.clipRegionEnabled,u.clipRegion=JSON.stringify(e.clipRegion)),e.overlapDisplayed?u.overlapDisplayed=!0:(u.overlapDisplayed=!1,e.overlapDisplayedOptions&&(u.overlapDisplayedOptions=l.overlapDisplayedOptions.toString())),u.cacheEnabled&&e.tileversion&&(u.tileversion=e.tileversion.toString()),e.rasterfunction&&(u.rasterfunction=JSON.stringify(e.rasterfunction)),u}function a(){return this._paramsChanged&&(this._layerUrl=o.call(this),this._paramsChanged=!1),this._layerUrl||o.call(this)}function o(){return this.requestParams=this.requestParams||i.call(this),this._layerUrl=W.urlAppend(r,W.getParameterString(this.requestParams)),this._layerUrl=xs.appendCredential(this._layerUrl),this._layerUrl}function s(l,u,h){t.tileGrid||(e.extent?(t.tileGrid=Bp.createTileGrid(e.extent),t.resolutions&&(t.tileGrid.resolutions=t.resolutions)):(h.getCode()==="EPSG:3857"&&(t.tileGrid=Bp.createTileGrid([-200375083427892e-7,-200375083427892e-7,200375083427892e-7,200375083427892e-7]),t.extent=[-200375083427892e-7,-200375083427892e-7,200375083427892e-7,200375083427892e-7]),h.getCode()==="EPSG:4326"&&(t.tileGrid=Bp.createTileGrid([-180,-90,180,90]),t.extent=[-180,-90,180,90]))),t.origin=t.tileGrid.getOrigin(0);var c=l[0],f=l[1],d=["4","5"].indexOf(br.getOlVersion())>-1?-l[2]-1:l[2],v=t.tileGrid.getResolution(c),p=t.dpi||96,g=h.getUnits()||Wl.DEGREE;(g==="degrees"||g==="degree")&&(g=Wl.DEGREE),(g==="m"||g==="meter")&&(g=Wl.METER);var m=br.resolutionToScale(v,p,g),y=nh(t.tileGrid.getTileSize(c,t.tmpSize)),_=a.call(t),x=_+encodeURI("&x="+f+"&y="+d+"&width="+y[0]+"&height="+y[1]+"&scale="+m);return t.tileProxy&&(x=t.tileProxy+encodeURIComponent(x)),t.cacheEnabled||(x+="&_t="+new Date().getTime()),x}}setTileSetsInfo(e){this.tileSets=e,br.isArray(this.tileSets)&&(this.tileSets=e[0]),this.tileSets&&(this.dispatchEvent({type:"tilesetsinfoloaded",value:{tileVersions:this.tileSets.tileVersions}}),this.changeTilesVersion())}lastTilesVersion(){this.tempIndex=this.tileSetsIndex-1,this.changeTilesVersion()}nextTilesVersion(){this.tempIndex=this.tileSetsIndex+1,this.changeTilesVersion()}changeTilesVersion(){var e=this;if(e.tileSets!=null&&!(e.tempIndex===e.tileSetsIndex||this.tempIndex<0)){var t=e.tileSets.tileVersions;if(t&&e.tempIndex=0){var r=t[e.tempIndex].name,i=e.mergeTileVersionParam(r);i&&(e.tileSetsIndex=e.tempIndex,e.dispatchEvent({type:"tileversionschanged",value:{tileVersion:t[e.tempIndex]}}))}}}updateCurrentTileSetsIndex(e){this.tempIndex=e}mergeTileVersionParam(e){return e?(this.requestParams.tileversion=e,this._paramsChanged=!0,this.refresh(),!0):!1}static optionsFromMapJSON(e,t){var r={};r.url=e,r.crossOrigin="anonymous";var i=[t.bounds.left,t.bounds.bottom,t.bounds.right,t.bounds.top];const{visibleScales:a,bounds:o,dpi:s,coordUnit:l}=t;var u=br.scalesToResolutions(a,o,s,l);return r.tileGrid=new ym({extent:i,resolutions:u}),r}static createTileGrid(e,t,r,i,a){var o=Ehe({extent:e,maxZoom:t,minZoom:r,tileSize:i});return new ym({extent:e,minZoom:r,origin:a,resolutions:o.getResolutions(),tileSize:o.getTileSize()})}}function rDr(n){n("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),n("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),n("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"),n.WGS84=n["EPSG:4326"],n["EPSG:3785"]=n["EPSG:3857"],n.GOOGLE=n["EPSG:3857"],n["EPSG:900913"]=n["EPSG:3857"],n["EPSG:102113"]=n["EPSG:3857"]}var _2=1,x2=2,rM=3,nDr=4,gre=5,JAe=6378137,iDr=6356752314e-3,QAe=.0066943799901413165,RR=484813681109536e-20,Ir=Math.PI/2,aDr=.16666666666666666,oDr=.04722222222222222,sDr=.022156084656084655,Zr=1e-10,ic=.017453292519943295,Xy=57.29577951308232,Yo=Math.PI/4,mN=Math.PI*2,ou=3.14159265359,Vd={};Vd.greenwich=0;Vd.lisbon=-9.131906111111;Vd.paris=2.337229166667;Vd.bogota=-74.080916666667;Vd.madrid=-3.687938888889;Vd.rome=12.452333333333;Vd.bern=7.439583333333;Vd.jakarta=106.807719444444;Vd.ferro=-17.666666666667;Vd.brussels=4.367975;Vd.stockholm=18.058277777778;Vd.athens=23.7163375;Vd.oslo=10.722916666667;const lDr={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var eMe=/[\s_\-\/\(\)]/g;function nw(n,e){if(n[e])return n[e];for(var t=Object.keys(n),r=e.toLowerCase().replace(eMe,""),i=-1,a,o;++i-1})}var dDr=["3857","900913","3785","102113"];function vDr(n){var e=nw(n,"authority");if(!!e){var t=nw(e,"epsg");return t&&dDr.indexOf(t)>-1}}function pDr(n){var e=nw(n,"extension");if(!!e)return nw(e,"proj4")}function gDr(n){return n[0]==="+"}function yDr(n){if(uDr(n)){if(hDr(n))return xf[n];if(fDr(n)){var e=PPe(n);if(vDr(e))return xf["EPSG:3857"];var t=pDr(e);return t?yre(t):e}if(gDr(n))return yre(n)}else return n}function tMe(n,e){n=n||{};var t,r;if(!e)return n;for(r in e)t=e[r],t!==void 0&&(n[r]=t);return n}function mm(n,e,t){var r=n*e;return t/Math.sqrt(1-r*r)}function Bk(n){return n<0?-1:1}function fn(n){return Math.abs(n)<=ou?n:n-Bk(n)*mN}function v0(n,e,t){var r=n*t,i=.5*n;return r=Math.pow((1-r)/(1+r),i),Math.tan(.5*(Ir-e))/r}function _N(n,e){for(var t=.5*n,r,i,a=Ir-2*Math.atan(e),o=0;o<=15;o++)if(r=n*Math.sin(a),i=Ir-2*Math.atan(e*Math.pow((1-r)/(1+r),t))-a,a+=i,Math.abs(i)<=1e-10)return a;return-9999}function mDr(){var n=this.b/this.a;this.es=1-n*n,"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=mm(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function _Dr(n){var e=n.x,t=n.y;if(t*Xy>90&&t*Xy<-90&&e*Xy>180&&e*Xy<-180)return null;var r,i;if(Math.abs(Math.abs(t)-Ir)<=Zr)return null;if(this.sphere)r=this.x0+this.a*this.k0*fn(e-this.long0),i=this.y0+this.a*this.k0*Math.log(Math.tan(Yo+.5*t));else{var a=Math.sin(t),o=v0(this.e,t,a);r=this.x0+this.a*this.k0*fn(e-this.long0),i=this.y0-this.a*this.k0*Math.log(o)}return n.x=r,n.y=i,n}function xDr(n){var e=n.x-this.x0,t=n.y-this.y0,r,i;if(this.sphere)i=Ir-2*Math.atan(Math.exp(-t/(this.a*this.k0)));else{var a=Math.exp(-t/(this.a*this.k0));if(i=_N(this.e,a),i===-9999)return null}return r=fn(this.long0+e/(this.a*this.k0)),n.x=r,n.y=i,n}var SDr=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];const wDr={init:mDr,forward:_Dr,inverse:xDr,names:SDr};function bDr(){}function rMe(n){return n}var EDr=["longlat","identity"];const TDr={init:bDr,forward:rMe,inverse:rMe,names:EDr};var CDr=[wDr,TDr],p8={},T7=[];function Zqe(n,e){var t=T7.length;return n.names?(T7[t]=n,n.names.forEach(function(r){p8[r.toLowerCase()]=t}),this):(console.log(e),!0)}function ADr(n){if(!n)return!1;var e=n.toLowerCase();if(typeof p8[e]<"u"&&T7[p8[e]])return T7[p8[e]]}function MDr(){CDr.forEach(Zqe)}const IDr={start:MDr,add:Zqe,get:ADr};var Pi={};Pi.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};Pi.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};Pi.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};Pi.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};Pi.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};Pi.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};Pi.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};Pi.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};Pi.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};Pi.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};Pi.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};Pi.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};Pi.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};Pi.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};Pi.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};Pi.clrk80ign={a:63782492e-1,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"};Pi.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};Pi.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};Pi.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};Pi.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};Pi.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};Pi.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};Pi.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};Pi.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};Pi.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};Pi.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};Pi.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};Pi.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};Pi.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};Pi.hough={a:6378270,rf:297,ellipseName:"Hough"};Pi.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};Pi.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};Pi.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};Pi.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};Pi.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};Pi.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};Pi.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};Pi.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};Pi.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};Pi.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};Pi.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};Pi.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var LDr=Pi.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};Pi.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function PDr(n,e,t,r){var i=n*n,a=e*e,o=(i-a)/i,s=0;r?(n*=1-o*(aDr+o*(oDr+o*sDr)),i=n*n,o=0):s=Math.sqrt(o);var l=(i-a)/a;return{es:o,e:s,ep2:l}}function ODr(n,e,t,r,i){if(!n){var a=nw(Pi,r);a||(a=LDr),n=a.a,e=a.b,t=a.rf}return t&&!e&&(e=(1-1/t)*n),(t===0||Math.abs(n-e)3&&(s.datum_params[3]!==0||s.datum_params[4]!==0||s.datum_params[5]!==0||s.datum_params[6]!==0)&&(s.datum_type=x2,s.datum_params[3]*=RR,s.datum_params[4]*=RR,s.datum_params[5]*=RR,s.datum_params[6]=s.datum_params[6]/1e6+1)),o&&(s.datum_type=rM,s.grids=o),s.a=t,s.b=r,s.es=i,s.ep2=a,s}var Kqe={};function DDr(n,e){var t=new DataView(e),r=FDr(t),i=BDr(t,r);i.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var a=GDr(t,i,r),o={header:i,subgrids:a};return Kqe[n]=o,o}function NDr(n){if(n===void 0)return null;var e=n.split(",");return e.map(kDr)}function kDr(n){if(n.length===0)return null;var e=n[0]==="@";return e&&(n=n.slice(1)),n==="null"?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:n,mandatory:!e,grid:Kqe[n]||null,isNull:!1}}function TA(n){return n/3600*Math.PI/180}function FDr(n){var e=n.getInt32(8,!1);return e===11?!1:(e=n.getInt32(8,!0),e!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function BDr(n,e){return{nFields:n.getInt32(8,e),nSubgridFields:n.getInt32(24,e),nSubgrids:n.getInt32(40,e),shiftType:mre(n,56,56+8).trim(),fromSemiMajorAxis:n.getFloat64(120,e),fromSemiMinorAxis:n.getFloat64(136,e),toSemiMajorAxis:n.getFloat64(152,e),toSemiMinorAxis:n.getFloat64(168,e)}}function mre(n,e,t){return String.fromCharCode.apply(null,new Uint8Array(n.buffer.slice(e,t)))}function GDr(n,e,t){for(var r=176,i=[],a=0;a5e-11?!1:n.datum_type===_2?n.datum_params[0]===e.datum_params[0]&&n.datum_params[1]===e.datum_params[1]&&n.datum_params[2]===e.datum_params[2]:n.datum_type===x2?n.datum_params[0]===e.datum_params[0]&&n.datum_params[1]===e.datum_params[1]&&n.datum_params[2]===e.datum_params[2]&&n.datum_params[3]===e.datum_params[3]&&n.datum_params[4]===e.datum_params[4]&&n.datum_params[5]===e.datum_params[5]&&n.datum_params[6]===e.datum_params[6]:!0}function Jqe(n,e,t){var r=n.x,i=n.y,a=n.z?n.z:0,o,s,l,u;if(i<-Ir&&i>-1.001*Ir)i=-Ir;else if(i>Ir&&i<1.001*Ir)i=Ir;else{if(i<-Ir)return{x:-1/0,y:-1/0,z:n.z};if(i>Ir)return{x:1/0,y:1/0,z:n.z}}return r>Math.PI&&(r-=2*Math.PI),s=Math.sin(i),u=Math.cos(i),l=s*s,o=t/Math.sqrt(1-e*l),{x:(o+a)*u*Math.cos(r),y:(o+a)*u*Math.sin(r),z:(o*(1-e)+a)*s}}function Qqe(n,e,t,r){var i=1e-12,a=i*i,o=30,s,l,u,h,c,f,d,v,p,g,m,y,_,x=n.x,S=n.y,w=n.z?n.z:0,b,E,T;if(s=Math.sqrt(x*x+S*S),l=Math.sqrt(x*x+S*S+w*w),s/ta&&_r.y||h>r.x||ds&&Math.abs(l.y)>s);if(o<0)return console.log("Inverse grid shift iterator failed to converge."),r;r.x=fn(a.x+t.ll[0]),r.y=a.y+t.ll[1]}else isNaN(a.x)||(r.x=n.x+a.x,r.y=n.y+a.y);return r}function iMe(n,e){var t={x:n.x/e.del[0],y:n.y/e.del[1]},r={x:Math.floor(t.x),y:Math.floor(t.y)},i={x:t.x-1*r.x,y:t.y-1*r.y},a={x:Number.NaN,y:Number.NaN},o;if(r.x<0||r.x>=e.lim[0]||r.y<0||r.y>=e.lim[1])return a;o=r.y*e.lim[0]+r.x;var s={x:e.cvs[o][0],y:e.cvs[o][1]};o++;var l={x:e.cvs[o][0],y:e.cvs[o][1]};o+=e.lim[0];var u={x:e.cvs[o][0],y:e.cvs[o][1]};o--;var h={x:e.cvs[o][0],y:e.cvs[o][1]},c=i.x*i.y,f=i.x*(1-i.y),d=(1-i.x)*(1-i.y),v=(1-i.x)*i.y;return a.x=d*s.x+f*l.x+v*h.x+c*u.x,a.y=d*s.y+f*l.y+v*h.y+c*u.y,a}function aMe(n,e,t){var r=t.x,i=t.y,a=t.z||0,o,s,l,u={};for(l=0;l<3;l++)if(!(e&&l===2&&t.z===void 0))switch(l===0?(o=r,"ew".indexOf(n.axis[l])!==-1?s="x":s="y"):l===1?(o=i,"ns".indexOf(n.axis[l])!==-1?s="y":s="x"):(o=a,s="z"),n.axis[l]){case"e":u[s]=o;break;case"w":u[s]=-o;break;case"n":u[s]=o;break;case"s":u[s]=-o;break;case"u":t[s]!==void 0&&(u.z=o);break;case"d":t[s]!==void 0&&(u.z=-o);break;default:return null}return u}function eZe(n){var e={x:n[0],y:n[1]};return n.length>2&&(e.z=n[2]),n.length>3&&(e.m=n[3]),e}function YDr(n){oMe(n.x),oMe(n.y)}function oMe(n){if(typeof Number.isFinite=="function"){if(Number.isFinite(n))return;throw new TypeError("coordinates must be finite numbers")}if(typeof n!="number"||n!==n||!isFinite(n))throw new TypeError("coordinates must be finite numbers")}function qDr(n,e){return(n.datum.datum_type===_2||n.datum.datum_type===x2||n.datum.datum_type===rM)&&e.datumCode!=="WGS84"||(e.datum.datum_type===_2||e.datum.datum_type===x2||e.datum.datum_type===rM)&&n.datumCode!=="WGS84"}function C7(n,e,t,r){var i;Array.isArray(t)?t=eZe(t):t={x:t.x,y:t.y,z:t.z,m:t.m};var a=t.z!==void 0;if(YDr(t),n.datum&&e.datum&&qDr(n,e)&&(i=new nm("WGS84"),t=C7(n,i,t,r),n=i),r&&n.axis!=="enu"&&(t=aMe(n,!1,t)),n.projName==="longlat")t={x:t.x*ic,y:t.y*ic,z:t.z||0};else if(n.to_meter&&(t={x:t.x*n.to_meter,y:t.y*n.to_meter,z:t.z||0}),t=n.inverse(t),!t)return;if(n.from_greenwich&&(t.x+=n.from_greenwich),t=jDr(n.datum,e.datum,t),!!t)return e.from_greenwich&&(t={x:t.x-e.from_greenwich,y:t.y,z:t.z||0}),e.projName==="longlat"?t={x:t.x*Xy,y:t.y*Xy,z:t.z||0}:(t=e.forward(t),e.to_meter&&(t={x:t.x/e.to_meter,y:t.y/e.to_meter,z:t.z||0})),r&&e.axis!=="enu"?aMe(e,!0,t):(a||delete t.z,t)}var sMe=nm("WGS84");function Kq(n,e,t,r){var i,a,o;return Array.isArray(t)?(i=C7(n,e,t,r)||{x:NaN,y:NaN},t.length>2?typeof n.name<"u"&&n.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"?typeof i.z=="number"?[i.x,i.y,i.z].concat(t.splice(3)):[i.x,i.y,t[2]].concat(t.splice(3)):[i.x,i.y].concat(t.splice(2)):[i.x,i.y]):(a=C7(n,e,t,r),o=Object.keys(t),o.length===2||o.forEach(function(s){if(typeof n.name<"u"&&n.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"){if(s==="x"||s==="y"||s==="z")return}else if(s==="x"||s==="y")return;a[s]=t[s]}),a)}function lMe(n){return n instanceof nm?n:n.oProj?n.oProj:nm(n)}function Bu(n,e,t){n=lMe(n);var r=!1,i;return typeof e>"u"?(e=n,n=sMe,r=!0):(typeof e.x<"u"||Array.isArray(e))&&(t=e,e=n,n=sMe,r=!0),e=lMe(e),t?Kq(n,e,t):(i={forward:function(a,o){return Kq(n,e,a,o)},inverse:function(a,o){return Kq(e,n,a,o)}},r&&(i.oProj=e),i)}function jM(n,e,t){if(!(this instanceof jM))return new jM(n,e,t);if(Array.isArray(n))this.x=n[0],this.y=n[1],this.z=n[2]||0;else if(typeof n=="object")this.x=n.x,this.y=n.y,this.z=n.z||0;else if(typeof n=="string"&&typeof e>"u"){var r=n.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=n,this.y=e,this.z=t||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}jM.fromMGRS=function(n){return new jM(_rt(n))};jM.prototype.toMGRS=function(n){return xrt([this.x,this.y],n)};var ZDr=1,KDr=.25,uMe=.046875,hMe=.01953125,cMe=.01068115234375,JDr=.75,QDr=.46875,eNr=.013020833333333334,tNr=.007120768229166667,rNr=.3645833333333333,nNr=.005696614583333333,iNr=.3076171875;function tZe(n){var e=[];e[0]=ZDr-n*(KDr+n*(uMe+n*(hMe+n*cMe))),e[1]=n*(JDr-n*(uMe+n*(hMe+n*cMe)));var t=n*n;return e[2]=t*(QDr-n*(eNr+n*tNr)),t*=n,e[3]=t*(rNr-n*nNr),e[4]=t*n*iNr,e}function c$(n,e,t,r){return t*=e,e*=e,r[0]*n-t*(r[1]+e*(r[2]+e*(r[3]+e*r[4])))}var aNr=20;function rZe(n,e,t){for(var r=1/(1-e),i=n,a=aNr;a;--a){var o=Math.sin(i),s=1-e*o*o;if(s=(c$(i,o,Math.cos(i),t)-n)*(s*Math.sqrt(s))*r,i-=s,Math.abs(s)Zr?Math.tan(t):0,p=Math.pow(v,2),g=Math.pow(p,2);i=1-this.es*Math.pow(s,2),h=h/Math.sqrt(i);var m=c$(t,s,l,this.en);a=this.a*(this.k0*h*(1+c/6*(1-p+f+c/20*(5-18*p+g+14*f-58*p*f+c/42*(61+179*g-g*p-479*p)))))+this.x0,o=this.a*(this.k0*(m-this.ml0+s*r*h/2*(1+c/12*(5-p+9*f+4*d+c/30*(61+g-58*p+270*f-330*p*f+c/56*(1385+543*g-g*p-3111*p))))))+this.y0}else{var u=l*Math.sin(r);if(Math.abs(Math.abs(u)-1)=1){if(u-1>Zr)return 93;o=0}else o=Math.acos(o);t<0&&(o=-o),o=this.a*this.k0*(o-this.lat0)+this.y0}return n.x=a,n.y=o,n}function lNr(n){var e,t,r,i,a=(n.x-this.x0)*(1/this.a),o=(n.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+o/this.k0,t=rZe(e,this.es,this.en),Math.abs(t)Zr?Math.tan(t):0,v=this.ep2*Math.pow(f,2),p=Math.pow(v,2),g=Math.pow(d,2),m=Math.pow(g,2);e=1-this.es*Math.pow(c,2);var y=a*Math.sqrt(e)/this.k0,_=Math.pow(y,2);e=e*d,r=t-e*_/(1-this.es)*.5*(1-_/12*(5+3*g-9*v*g+v-4*p-_/30*(61+90*g-252*v*g+45*m+46*v-_/56*(1385+3633*g+4095*m+1574*m*g)))),i=fn(this.long0+y*(1-_/6*(1+2*g+v-_/20*(5+28*g+24*m+8*v*g+6*v-_/42*(61+662*g+1320*m+720*m*g))))/f)}else r=Ir*Bk(o),i=0;else{var s=Math.exp(a/this.k0),l=.5*(s-1/s),u=this.lat0+o/this.k0,h=Math.cos(u);e=Math.sqrt((1-Math.pow(h,2))/(1+Math.pow(l,2))),r=Math.asin(e),o<0&&(r=-r),l===0&&h===0?i=0:i=fn(Math.atan2(l,h)+this.long0)}return n.x=i,n.y=r,n}var uNr=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const g8={init:oNr,forward:sNr,inverse:lNr,names:uNr};function nZe(n){var e=Math.exp(n);return e=(e-1/e)/2,e}function Kg(n,e){n=Math.abs(n),e=Math.abs(e);var t=Math.max(n,e),r=Math.min(n,e)/(t||1);return t*Math.sqrt(1+Math.pow(r,2))}function hNr(n){var e=1+n,t=e-1;return t===0?n:n*Math.log(e)/t}function cNr(n){var e=Math.abs(n);return e=hNr(e*(1+e/(Kg(1,e)+1))),n<0?-e:e}function Che(n,e){for(var t=2*Math.cos(2*e),r=n.length-1,i=n[r],a=0,o;--r>=0;)o=-a+t*i+n[r],a=i,i=o;return e+o*Math.sin(2*e)}function fNr(n,e){for(var t=2*Math.cos(e),r=n.length-1,i=n[r],a=0,o;--r>=0;)o=-a+t*i+n[r],a=i,i=o;return Math.sin(e)*o}function dNr(n){var e=Math.exp(n);return e=(e+1/e)/2,e}function iZe(n,e,t){for(var r=Math.sin(e),i=Math.cos(e),a=nZe(t),o=dNr(t),s=2*i*o,l=-2*r*a,u=n.length-1,h=n[u],c=0,f=0,d=0,v,p;--u>=0;)v=f,p=c,f=h,c=d,h=-v+s*f-l*c+n[u],d=-p+l*f+s*c;return s=r*o,l=i*a,[s*h-l*d,s*d+l*h]}function vNr(){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&&(g8.init.apply(this),this.forward=g8.forward,this.inverse=g8.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var n=this.es/(1+Math.sqrt(1-this.es)),e=n/(2-n),t=e;this.cgb[0]=e*(2+e*(-2/3+e*(-2+e*(116/45+e*(26/45+e*(-2854/675)))))),this.cbg[0]=e*(-2+e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))),t=t*e,this.cgb[1]=t*(7/3+e*(-8/5+e*(-227/45+e*(2704/315+e*(2323/945))))),this.cbg[1]=t*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),t=t*e,this.cgb[2]=t*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=t*(-26/15+e*(34/21+e*(8/5+e*(-12686/2835)))),t=t*e,this.cgb[3]=t*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=t*(1237/630+e*(-12/5+e*(-24832/14175))),t=t*e,this.cgb[4]=t*(4174/315+e*(-144838/6237)),this.cbg[4]=t*(-734/315+e*(109598/31185)),t=t*e,this.cgb[5]=t*(601676/22275),this.cbg[5]=t*(444337/155925),t=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+t*(1/4+t*(1/64+t/256))),this.utg[0]=e*(-.5+e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=t*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=t*(13/48+e*(-3/5+e*(557/1440+e*(281/630+e*(-1983433/1935360))))),t=t*e,this.utg[2]=t*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=t*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),t=t*e,this.utg[3]=t*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=t*(49561/161280+e*(-179/168+e*(6601661/7257600))),t=t*e,this.utg[4]=t*(-4583/161280+e*(108847/3991680)),this.gtu[4]=t*(34729/80640+e*(-3418889/1995840)),t=t*e,this.utg[5]=t*(-20648693/638668800),this.gtu[5]=t*(212378941/319334400);var r=Che(this.cbg,this.lat0);this.Zb=-this.Qn*(r+fNr(this.gtu,2*r))}function pNr(n){var e=fn(n.x-this.long0),t=n.y;t=Che(this.cbg,t);var r=Math.sin(t),i=Math.cos(t),a=Math.sin(e),o=Math.cos(e);t=Math.atan2(r,o*i),e=Math.atan2(a*i,Kg(r,i*o)),e=cNr(Math.tan(e));var s=iZe(this.gtu,2*t,2*e);t=t+s[0],e=e+s[1];var l,u;return Math.abs(e)<=2.623395162778?(l=this.a*(this.Qn*e)+this.x0,u=this.a*(this.Qn*t+this.Zb)+this.y0):(l=1/0,u=1/0),n.x=l,n.y=u,n}function gNr(n){var e=(n.x-this.x0)*(1/this.a),t=(n.y-this.y0)*(1/this.a);t=(t-this.Zb)/this.Qn,e=e/this.Qn;var r,i;if(Math.abs(e)<=2.623395162778){var a=iZe(this.utg,2*t,2*e);t=t+a[0],e=e+a[1],e=Math.atan(nZe(e));var o=Math.sin(t),s=Math.cos(t),l=Math.sin(e),u=Math.cos(e);t=Math.atan2(o*u,Kg(l,u*s)),e=Math.atan2(l,u*s),r=fn(e+this.long0),i=Che(this.cgb,t)}else r=1/0,i=1/0;return n.x=r,n.y=i,n}var yNr=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"];const y8={init:vNr,forward:pNr,inverse:gNr,names:yNr};function mNr(n,e){if(n===void 0){if(n=Math.floor((fn(e)+Math.PI)*30/Math.PI)+1,n<0)return 0;if(n>60)return 60}return n}var _Nr="etmerc";function xNr(){var n=mNr(this.zone,this.long0);if(n===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(n)-183)*ic,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,y8.init.apply(this),this.forward=y8.forward,this.inverse=y8.inverse}var SNr=["Universal Transverse Mercator System","utm"];const wNr={init:xNr,names:SNr,dependsOn:_Nr};function Ahe(n,e){return Math.pow((1-n)/(1+n),e)}var bNr=20;function ENr(){var n=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*n*n),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(n/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+Yo)/(Math.pow(Math.tan(.5*this.lat0+Yo),this.C)*Ahe(this.e*n,this.ratexp))}function TNr(n){var e=n.x,t=n.y;return n.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*t+Yo),this.C)*Ahe(this.e*Math.sin(t),this.ratexp))-Ir,n.x=this.C*e,n}function CNr(n){for(var e=1e-14,t=n.x/this.C,r=n.y,i=Math.pow(Math.tan(.5*r+Yo)/this.K,1/this.C),a=bNr;a>0&&(r=2*Math.atan(i*Ahe(this.e*Math.sin(n.y),-.5*this.e))-Ir,!(Math.abs(r-n.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)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=Zr&&(this.k0=.5*this.cons*mm(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/v0(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=mm(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-Ir,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function NNr(n){var e=n.x,t=n.y,r=Math.sin(t),i=Math.cos(t),a,o,s,l,u,h,c=fn(e-this.long0);return Math.abs(Math.abs(e-this.long0)-Math.PI)<=Zr&&Math.abs(t+this.lat0)<=Zr?(n.x=NaN,n.y=NaN,n):this.sphere?(a=2*this.k0/(1+this.sinlat0*r+this.coslat0*i*Math.cos(c)),n.x=this.a*a*i*Math.sin(c)+this.x0,n.y=this.a*a*(this.coslat0*r-this.sinlat0*i*Math.cos(c))+this.y0,n):(o=2*Math.atan(this.ssfn_(t,r,this.e))-Ir,l=Math.cos(o),s=Math.sin(o),Math.abs(this.coslat0)<=Zr?(u=v0(this.e,t*this.con,this.con*r),h=2*this.a*this.k0*u/this.cons,n.x=this.x0+h*Math.sin(e-this.long0),n.y=this.y0-this.con*h*Math.cos(e-this.long0),n):(Math.abs(this.sinlat0)0?e=fn(this.long0+Math.atan2(n.x,-1*n.y)):e=fn(this.long0+Math.atan2(n.x,n.y)):e=fn(this.long0+Math.atan2(n.x*Math.sin(s),o*this.coslat0*Math.cos(s)-n.y*this.sinlat0*Math.sin(s))),n.x=e,n.y=t,n)}else if(Math.abs(this.coslat0)<=Zr){if(o<=Zr)return t=this.lat0,e=this.long0,n.x=e,n.y=t,n;n.x*=this.con,n.y*=this.con,r=o*this.cons/(2*this.a*this.k0),t=this.con*_N(this.e,r),e=this.con*fn(this.con*this.long0+Math.atan2(n.x,-1*n.y))}else i=2*Math.atan(o*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,o<=Zr?a=this.X0:(a=Math.asin(Math.cos(i)*this.sinX0+n.y*Math.sin(i)*this.cosX0/o),e=fn(this.long0+Math.atan2(n.x*Math.sin(i),o*this.cosX0*Math.cos(i)-n.y*this.sinX0*Math.sin(i)))),t=-1*_N(this.e,Math.tan(.5*(Ir+a)));return n.x=e,n.y=t,n}var FNr=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"];const BNr={init:DNr,forward:NNr,inverse:kNr,names:FNr,ssfn_:RNr};function GNr(){var n=this.lat0;this.lambda0=this.long0;var e=Math.sin(n),t=this.a,r=this.rf,i=1/r,a=2*i-Math.pow(i,2),o=this.e=Math.sqrt(a);this.R=this.k0*t*Math.sqrt(1-a)/(1-a*Math.pow(e,2)),this.alpha=Math.sqrt(1+a/(1-a)*Math.pow(Math.cos(n),4)),this.b0=Math.asin(e/this.alpha);var s=Math.log(Math.tan(Math.PI/4+this.b0/2)),l=Math.log(Math.tan(Math.PI/4+n/2)),u=Math.log((1+o*e)/(1-o*e));this.K=s-this.alpha*l+this.alpha*o/2*u}function zNr(n){var e=Math.log(Math.tan(Math.PI/4-n.y/2)),t=this.e/2*Math.log((1+this.e*Math.sin(n.y))/(1-this.e*Math.sin(n.y))),r=-this.alpha*(e+t)+this.K,i=2*(Math.atan(Math.exp(r))-Math.PI/4),a=this.alpha*(n.x-this.lambda0),o=Math.atan(Math.sin(a)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(a))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(a));return n.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,n.x=this.R*o+this.x0,n}function UNr(n){for(var e=n.x-this.x0,t=n.y-this.y0,r=e/this.R,i=2*(Math.atan(Math.exp(t/this.R))-Math.PI/4),a=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(r)),o=Math.atan(Math.sin(r)/(Math.cos(this.b0)*Math.cos(r)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+o/this.alpha,l=0,u=a,h=-1e3,c=0;Math.abs(u-h)>1e-7;){if(++c>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+a/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),h=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return n.x=s,n.y=u,n}var VNr=["somerc"];const $Nr={init:GNr,forward:zNr,inverse:UNr,names:VNr};var nA=1e-7;function WNr(n){var e=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],t=typeof n.PROJECTION=="object"?Object.keys(n.PROJECTION)[0]:n.PROJECTION;return"no_uoff"in n||"no_off"in n||e.indexOf(t)!==-1}function HNr(){var n,e,t,r,i,a,o,s,l,u,h=0,c,f=0,d=0,v=0,p=0,g=0,m=0;this.no_off=WNr(this),this.no_rot="no_rot"in this;var y=!1;"alpha"in this&&(y=!0);var _=!1;if("rectified_grid_angle"in this&&(_=!0),y&&(m=this.alpha),_&&(h=this.rectified_grid_angle*ic),y||_)f=this.longc;else if(d=this.long1,p=this.lat1,v=this.long2,g=this.lat2,Math.abs(p-g)<=nA||(n=Math.abs(p))<=nA||Math.abs(n-Ir)<=nA||Math.abs(Math.abs(this.lat0)-Ir)<=nA||Math.abs(Math.abs(g)-Ir)<=nA)throw new Error;var x=1-this.es;e=Math.sqrt(x),Math.abs(this.lat0)>Zr?(s=Math.sin(this.lat0),t=Math.cos(this.lat0),n=1-this.es*s*s,this.B=t*t,this.B=Math.sqrt(1+this.es*this.B*this.B/x),this.A=this.B*this.k0*e/n,r=this.B*e/(t*Math.sqrt(n)),i=r*r-1,i<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=r,this.E*=Math.pow(v0(this.e,this.lat0,s),this.B)):(this.B=1/e,this.A=this.k0,this.E=r=i=1),y||_?(y?(c=Math.asin(Math.sin(m)/r),_||(h=m)):(c=h,m=Math.asin(r*Math.sin(c))),this.lam0=f-Math.asin(.5*(i-1/i)*Math.tan(c))/this.B):(a=Math.pow(v0(this.e,p,Math.sin(p)),this.B),o=Math.pow(v0(this.e,g,Math.sin(g)),this.B),i=this.E/a,l=(o-a)/(o+a),u=this.E*this.E,u=(u-o*a)/(u+o*a),n=d-v,n<-Math.pi?v-=mN:n>Math.pi&&(v+=mN),this.lam0=fn(.5*(d+v)-Math.atan(u*Math.tan(.5*this.B*(d-v))/l)/this.B),c=Math.atan(2*Math.sin(this.B*fn(d-this.lam0))/(i-1/i)),h=m=Math.asin(r*Math.sin(c))),this.singam=Math.sin(c),this.cosgam=Math.cos(c),this.sinrot=Math.sin(h),this.cosrot=Math.cos(h),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(r*r-1)/Math.cos(m))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*c,this.v_pole_n=this.ArB*Math.log(Math.tan(Yo-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(Yo+i))}function jNr(n){var e={},t,r,i,a,o,s,l,u;if(n.x=n.x-this.lam0,Math.abs(Math.abs(n.y)-Ir)>Zr){if(o=this.E/Math.pow(v0(this.e,n.y,Math.sin(n.y)),this.B),s=1/o,t=.5*(o-s),r=.5*(o+s),a=Math.sin(this.B*n.x),i=(t*this.singam-a*this.cosgam)/r,Math.abs(Math.abs(i)-1)0?this.v_pole_n:this.v_pole_s,l=this.ArB*n.y;return this.no_rot?(e.x=l,e.y=u):(l-=this.u_0,e.x=u*this.cosrot+l*this.sinrot,e.y=l*this.cosrot-u*this.sinrot),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function XNr(n){var e,t,r,i,a,o,s,l={};if(n.x=(n.x-this.x0)*(1/this.a),n.y=(n.y-this.y0)*(1/this.a),this.no_rot?(t=n.y,e=n.x):(t=n.x*this.cosrot-n.y*this.sinrot,e=n.y*this.cosrot+n.x*this.sinrot+this.u_0),r=Math.exp(-this.BrA*t),i=.5*(r-1/r),a=.5*(r+1/r),o=Math.sin(this.BrA*e),s=(o*this.cosgam+i*this.singam)/a,Math.abs(Math.abs(s)-1)Zr?this.ns=Math.log(r/s)/Math.log(i/l):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=r/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(u,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function KNr(n){var e=n.x,t=n.y;Math.abs(2*Math.abs(t)-Math.PI)<=Zr&&(t=Bk(t)*(Ir-2*Zr));var r=Math.abs(Math.abs(t)-Ir),i,a;if(r>Zr)i=v0(this.e,t,Math.sin(t)),a=this.a*this.f0*Math.pow(i,this.ns);else{if(r=t*this.ns,r<=0)return null;a=0}var o=this.ns*fn(e-this.long0);return n.x=this.k0*(a*Math.sin(o))+this.x0,n.y=this.k0*(this.rh-a*Math.cos(o))+this.y0,n}function JNr(n){var e,t,r,i,a,o=(n.x-this.x0)/this.k0,s=this.rh-(n.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(o*o+s*s),t=1):(e=-Math.sqrt(o*o+s*s),t=-1);var l=0;if(e!==0&&(l=Math.atan2(t*o,t*s)),e!==0||this.ns>0){if(t=1/this.ns,r=Math.pow(e/(this.a*this.f0),t),i=_N(this.e,r),i===-9999)return null}else i=-Ir;return a=fn(l/this.ns+this.long0),n.x=a,n.y=i,n}var QNr=["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 e3r={init:ZNr,forward:KNr,inverse:JNr,names:QNr};function t3r(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),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 r3r(n){var e,t,r,i,a,o,s,l=n.x,u=n.y,h=fn(l-this.long0);return e=Math.pow((1+this.e*Math.sin(u))/(1-this.e*Math.sin(u)),this.alfa*this.e/2),t=2*(Math.atan(this.k*Math.pow(Math.tan(u/2+this.s45),this.alfa)/e)-this.s45),r=-h*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(t)+Math.sin(this.ad)*Math.cos(t)*Math.cos(r)),a=Math.asin(Math.cos(t)*Math.sin(r)/Math.cos(i)),o=this.n*a,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),n.y=s*Math.cos(o)/1,n.x=s*Math.sin(o)/1,this.czech||(n.y*=-1,n.x*=-1),n}function n3r(n){var e,t,r,i,a,o,s,l,u=n.x;n.x=n.y,n.y=u,this.czech||(n.y*=-1,n.x*=-1),o=Math.sqrt(n.x*n.x+n.y*n.y),a=Math.atan2(n.y,n.x),i=a/Math.sin(this.s0),r=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(r)-Math.sin(this.ad)*Math.cos(r)*Math.cos(i)),t=Math.asin(Math.cos(r)*Math.sin(i)/Math.cos(e)),n.x=this.long0-t/this.alfa,s=e,l=0;var h=0;do n.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(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-n.y)<1e-10&&(l=1),s=n.y,h+=1;while(l===0&&h<15);return h>=15?null:n}var i3r=["Krovak","krovak"];const a3r={init:t3r,forward:r3r,inverse:n3r,names:i3r};function Of(n,e,t,r,i){return n*i-e*Math.sin(2*i)+t*Math.sin(4*i)-r*Math.sin(6*i)}function Gk(n){return 1-.25*n*(1+n/16*(3+1.25*n))}function zk(n){return .375*n*(1+.25*n*(1+.46875*n))}function Uk(n){return .05859375*n*n*(1+.75*n)}function Vk(n){return n*n*n*(35/3072)}function XM(n,e,t){var r=e*t;return n/Math.sqrt(1-r*r)}function hL(n){return Math.abs(n)1e-7?(t=n*e,(1-n*n)*(e/(1-t*t)-.5/n*Math.log((1-t)/(1+t)))):2*e}var c3r=1,f3r=2,d3r=3,v3r=4;function p3r(){var n=Math.abs(this.lat0);if(Math.abs(n-Ir)0){var e;switch(this.qp=CS(this.e,1),this.mmf=.5/(1-this.es),this.apa=E3r(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),e=Math.sin(this.lat0),this.sinb1=CS(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*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 g3r(n){var e,t,r,i,a,o,s,l,u,h,c=n.x,f=n.y;if(c=fn(c-this.long0),this.sphere){if(a=Math.sin(f),h=Math.cos(f),r=Math.cos(c),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(t=this.mode===this.EQUIT?1+h*r:1+this.sinph0*a+this.cosph0*h*r,t<=Zr)return null;t=Math.sqrt(2/t),e=t*h*Math.sin(c),t*=this.mode===this.EQUIT?a:this.cosph0*a-this.sinph0*h*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(f+this.lat0)=0?(e=(u=Math.sqrt(o))*i,t=r*(this.mode===this.S_POLE?u:-u)):e=t=0;break}}return n.x=this.a*e+this.x0,n.y=this.a*t+this.y0,n}function y3r(n){n.x-=this.x0,n.y-=this.y0;var e=n.x/this.a,t=n.y/this.a,r,i,a,o,s,l,u;if(this.sphere){var h=0,c,f=0;if(c=Math.sqrt(e*e+t*t),i=c*.5,i>1)return null;switch(i=2*Math.asin(i),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(f=Math.sin(i),h=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(c)<=Zr?0:Math.asin(t*f/c),e*=f,t=h*c;break;case this.OBLIQ:i=Math.abs(c)<=Zr?this.lat0:Math.asin(h*this.sinph0+t*f*this.cosph0/c),e*=f*this.cosph0,t=(h-Math.sin(i)*this.sinph0)*c;break;case this.N_POLE:t=-t,i=Ir-i;break;case this.S_POLE:i-=Ir;break}r=t===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(e,t)}else{if(u=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(e/=this.dd,t*=this.dd,l=Math.sqrt(e*e+t*t),l1&&(n=n>1?1:-1),Math.asin(n)}function M3r(){Math.abs(this.lat1+this.lat2)Zr?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 I3r(n){var e=n.x,t=n.y;this.sin_phi=Math.sin(t),this.cos_phi=Math.cos(t);var r=CS(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,a=this.ns0*fn(e-this.long0),o=i*Math.sin(a)+this.x0,s=this.rh-i*Math.cos(a)+this.y0;return n.x=o,n.y=s,n}function L3r(n){var e,t,r,i,a,o;return n.x-=this.x0,n.y=this.rh-n.y+this.y0,this.ns0>=0?(e=Math.sqrt(n.x*n.x+n.y*n.y),r=1):(e=-Math.sqrt(n.x*n.x+n.y*n.y),r=-1),i=0,e!==0&&(i=Math.atan2(r*n.x,r*n.y)),r=e*this.ns0/this.a,this.sphere?o=Math.asin((this.c-r*r)/(2*this.ns0)):(t=(this.c-r*r)/this.ns0,o=this.phi1z(this.e3,t)),a=fn(i/this.ns0+this.long0),n.x=a,n.y=o,n}function P3r(n,e){var t,r,i,a,o,s=iw(.5*e);if(n0||Math.abs(o)<=Zr?(s=this.x0+this.a*a*t*Math.sin(r)/o,l=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*t*i)/o):(s=this.x0+this.infinity_dist*t*Math.sin(r),l=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*t*i)),n.x=s,n.y=l,n}function k3r(n){var e,t,r,i,a,o;return n.x=(n.x-this.x0)/this.a,n.y=(n.y-this.y0)/this.a,n.x/=this.k0,n.y/=this.k0,(e=Math.sqrt(n.x*n.x+n.y*n.y))?(i=Math.atan2(e,this.rc),t=Math.sin(i),r=Math.cos(i),o=iw(r*this.sin_p14+n.y*t*this.cos_p14/e),a=Math.atan2(n.x*t,e*this.cos_p14*r-n.y*this.sin_p14*t),a=fn(this.long0+a)):(o=this.phic0,a=0),n.x=a,n.y=o,n}var F3r=["gnom"];const B3r={init:D3r,forward:N3r,inverse:k3r,names:F3r};function G3r(n,e){var t=1-(1-n*n)/(2*n)*Math.log((1-n)/(1+n));if(Math.abs(Math.abs(e)-t)<1e-6)return e<0?-1*Ir:Ir;for(var r=Math.asin(.5*e),i,a,o,s,l=0;l<30;l++)if(a=Math.sin(r),o=Math.cos(r),s=n*a,i=Math.pow(1-s*s,2)/(2*o)*(e/(1-n*n)-a/(1-s*s)+.5/n*Math.log((1-s)/(1+s))),r+=i,Math.abs(i)<=1e-10)return r;return NaN}function z3r(){this.sphere||(this.k0=mm(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function U3r(n){var e=n.x,t=n.y,r,i,a=fn(e-this.long0);if(this.sphere)r=this.x0+this.a*a*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(t)/Math.cos(this.lat_ts);else{var o=CS(this.e,Math.sin(t));r=this.x0+this.a*this.k0*a,i=this.y0+this.a*o*.5/this.k0}return n.x=r,n.y=i,n}function V3r(n){n.x-=this.x0,n.y-=this.y0;var e,t;return this.sphere?(e=fn(this.long0+n.x/this.a/Math.cos(this.lat_ts)),t=Math.asin(n.y/this.a*Math.cos(this.lat_ts))):(t=G3r(this.e,2*n.y*this.k0/this.a),e=fn(this.long0+n.x/(this.a*this.k0))),n.x=e,n.y=t,n}var $3r=["cea"];const W3r={init:z3r,forward:U3r,inverse:V3r,names:$3r};function H3r(){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 j3r(n){var e=n.x,t=n.y,r=fn(e-this.long0),i=hL(t-this.lat0);return n.x=this.x0+this.a*r*this.rc,n.y=this.y0+this.a*i,n}function X3r(n){var e=n.x,t=n.y;return n.x=fn(this.long0+(e-this.x0)/(this.a*this.rc)),n.y=hL(this.lat0+(t-this.y0)/this.a),n}var Y3r=["Equirectangular","Equidistant_Cylindrical","eqc"];const q3r={init:H3r,forward:j3r,inverse:X3r,names:Y3r};var fMe=20;function Z3r(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Gk(this.es),this.e1=zk(this.es),this.e2=Uk(this.es),this.e3=Vk(this.es),this.ml0=this.a*Of(this.e0,this.e1,this.e2,this.e3,this.lat0)}function K3r(n){var e=n.x,t=n.y,r,i,a,o=fn(e-this.long0);if(a=o*Math.sin(t),this.sphere)Math.abs(t)<=Zr?(r=this.a*o,i=-1*this.a*this.lat0):(r=this.a*Math.sin(a)/Math.tan(t),i=this.a*(hL(t-this.lat0)+(1-Math.cos(a))/Math.tan(t)));else if(Math.abs(t)<=Zr)r=this.a*o,i=-1*this.ml0;else{var s=XM(this.a,this.e,Math.sin(t))/Math.tan(t);r=s*Math.sin(a),i=this.a*Of(this.e0,this.e1,this.e2,this.e3,t)-this.ml0+s*(1-Math.cos(a))}return n.x=r+this.x0,n.y=i+this.y0,n}function J3r(n){var e,t,r,i,a,o,s,l,u;if(r=n.x-this.x0,i=n.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=Zr)e=fn(r/this.a+this.long0),t=0;else{o=this.lat0+i/this.a,s=r*r/this.a/this.a+o*o,l=o;var h;for(a=fMe;a;--a)if(h=Math.tan(l),u=-1*(o*(l*h+1)-l-.5*(l*l+s)*h)/((l-o)/h-1),l+=u,Math.abs(u)<=Zr){t=l;break}e=fn(this.long0+Math.asin(r*Math.tan(l)/this.a)/Math.sin(t))}else if(Math.abs(i+this.ml0)<=Zr)t=0,e=fn(this.long0+r/this.a);else{o=(this.ml0+i)/this.a,s=r*r/this.a/this.a+o*o,l=o;var c,f,d,v,p;for(a=fMe;a;--a)if(p=this.e*Math.sin(l),c=Math.sqrt(1-p*p)*Math.tan(l),f=this.a*Of(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),v=f/this.a,u=(o*(c*v+1)-v-.5*c*(v*v+s))/(this.es*Math.sin(2*l)*(v*v+s-2*o*v)/(4*c)+(o-v)*(c*d-2/Math.sin(2*l))-d),l-=u,Math.abs(u)<=Zr){t=l;break}c=Math.sqrt(1-this.es*Math.pow(Math.sin(t),2))*Math.tan(t),e=fn(this.long0+Math.asin(r*c/this.a)/Math.sin(t))}return n.x=e,n.y=t,n}var Q3r=["Polyconic","poly"];const ekr={init:Z3r,forward:K3r,inverse:J3r,names:Q3r};function tkr(){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 rkr(n){var e,t=n.x,r=n.y,i=r-this.lat0,a=t-this.long0,o=i/RR*1e-5,s=a,l=1,u=0;for(e=1;e<=10;e++)l=l*o,u=u+this.A[e]*l;var h=u,c=s,f=1,d=0,v,p,g=0,m=0;for(e=1;e<=6;e++)v=f*h-d*c,p=d*h+f*c,f=v,d=p,g=g+this.B_re[e]*f-this.B_im[e]*d,m=m+this.B_im[e]*f+this.B_re[e]*d;return n.x=m*this.a+this.x0,n.y=g*this.a+this.y0,n}function nkr(n){var e,t=n.x,r=n.y,i=t-this.x0,a=r-this.y0,o=a/this.a,s=i/this.a,l=1,u=0,h,c,f=0,d=0;for(e=1;e<=6;e++)h=l*o-u*s,c=u*o+l*s,l=h,u=c,f=f+this.C_re[e]*l-this.C_im[e]*u,d=d+this.C_im[e]*l+this.C_re[e]*u;for(var v=0;v.999999999999&&(t=.999999999999),e=Math.asin(t);var r=fn(this.long0+n.x/(.900316316158*this.a*Math.cos(e)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),t=(2*e+Math.sin(2*e))/Math.PI,Math.abs(t)>1&&(t=1);var i=Math.asin(t);return n.x=r,n.y=i,n}var xkr=["Mollweide","moll"];const Skr={init:ykr,forward:mkr,inverse:_kr,names:xkr};function wkr(){Math.abs(this.lat1+this.lat2)=0?(t=Math.sqrt(n.x*n.x+n.y*n.y),e=1):(t=-Math.sqrt(n.x*n.x+n.y*n.y),e=-1);var a=0;if(t!==0&&(a=Math.atan2(e*n.x,e*n.y)),this.sphere)return i=fn(this.long0+a/this.ns),r=hL(this.g-t/this.a),n.x=i,n.y=r,n;var o=this.g-t/this.a;return r=A7(o,this.e0,this.e1,this.e2,this.e3),i=fn(this.long0+a/this.ns),n.x=i,n.y=r,n}var Tkr=["Equidistant_Conic","eqdc"];const Ckr={init:wkr,forward:bkr,inverse:Ekr,names:Tkr};function Akr(){this.R=this.a}function Mkr(n){var e=n.x,t=n.y,r=fn(e-this.long0),i,a;Math.abs(t)<=Zr&&(i=this.x0+this.R*r,a=this.y0);var o=iw(2*Math.abs(t/Math.PI));(Math.abs(r)<=Zr||Math.abs(Math.abs(t)-Ir)<=Zr)&&(i=this.x0,t>=0?a=this.y0+Math.PI*this.R*Math.tan(.5*o):a=this.y0+Math.PI*this.R*-Math.tan(.5*o));var s=.5*Math.abs(Math.PI/r-r/Math.PI),l=s*s,u=Math.sin(o),h=Math.cos(o),c=h/(u+h-1),f=c*c,d=c*(2/u-1),v=d*d,p=Math.PI*this.R*(s*(c-v)+Math.sqrt(l*(c-v)*(c-v)-(v+l)*(f-v)))/(v+l);r<0&&(p=-p),i=this.x0+p;var g=l+c;return p=Math.PI*this.R*(d*g-s*Math.sqrt((v+l)*(l+1)-g*g))/(v+l),t>=0?a=this.y0+p:a=this.y0-p,n.x=i,n.y=a,n}function Ikr(n){var e,t,r,i,a,o,s,l,u,h,c,f,d;return n.x-=this.x0,n.y-=this.y0,c=Math.PI*this.R,r=n.x/c,i=n.y/c,a=r*r+i*i,o=-Math.abs(i)*(1+a),s=o-2*i*i+r*r,l=-2*o+1+2*i*i+a*a,d=i*i/l+(2*s*s*s/l/l/l-9*o*s/l/l)/27,u=(o-s*s/3/l)/l,h=2*Math.sqrt(-u/3),c=3*d/u/h,Math.abs(c)>1&&(c>=0?c=1:c=-1),f=Math.acos(c)/3,n.y>=0?t=(-h*Math.cos(f+Math.PI/3)-s/3/l)*Math.PI:t=-(-h*Math.cos(f+Math.PI/3)-s/3/l)*Math.PI,Math.abs(r)2*Ir*this.a?void 0:(t=e/this.a,r=Math.sin(t),i=Math.cos(t),a=this.long0,Math.abs(e)<=Zr?o=this.lat0:(o=iw(i*this.sin_p12+n.y*r*this.cos_p12/e),s=Math.abs(this.lat0)-Ir,Math.abs(s)<=Zr?this.lat0>=0?a=fn(this.long0+Math.atan2(n.x,-n.y)):a=fn(this.long0-Math.atan2(-n.x,n.y)):a=fn(this.long0+Math.atan2(n.x*r,e*this.cos_p12*i-n.y*this.sin_p12*r))),n.x=a,n.y=o,n)):(l=Gk(this.es),u=zk(this.es),h=Uk(this.es),c=Vk(this.es),Math.abs(this.sin_p12-1)<=Zr?(f=this.a*Of(l,u,h,c,Ir),e=Math.sqrt(n.x*n.x+n.y*n.y),d=f-e,o=A7(d/this.a,l,u,h,c),a=fn(this.long0+Math.atan2(n.x,-1*n.y)),n.x=a,n.y=o,n):Math.abs(this.sin_p12+1)<=Zr?(f=this.a*Of(l,u,h,c,Ir),e=Math.sqrt(n.x*n.x+n.y*n.y),d=e-f,o=A7(d/this.a,l,u,h,c),a=fn(this.long0+Math.atan2(n.x,n.y)),n.x=a,n.y=o,n):(e=Math.sqrt(n.x*n.x+n.y*n.y),g=Math.atan2(n.x,n.y),v=XM(this.a,this.e,this.sin_p12),m=Math.cos(g),y=this.e*this.cos_p12*m,_=-y*y/(1-this.es),x=3*this.es*(1-_)*this.sin_p12*this.cos_p12*m/(1-this.es),S=e/v,w=S-_*(1+_)*Math.pow(S,3)/6-x*(1+3*_)*Math.pow(S,4)/24,b=1-_*w*w/2-S*w*w*w/6,p=Math.asin(this.sin_p12*Math.cos(w)+this.cos_p12*Math.sin(w)*m),a=fn(this.long0+Math.asin(Math.sin(g)*Math.sin(w)/Math.cos(p))),E=Math.sin(p),o=Math.atan2((E-this.es*b*this.sin_p12)*Math.tan(p),E*(1-this.es)),n.x=a,n.y=o,n))}var Nkr=["Azimuthal_Equidistant","aeqd"];const kkr={init:Okr,forward:Rkr,inverse:Dkr,names:Nkr};function Fkr(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function Bkr(n){var e,t,r,i,a,o,s,l,u=n.x,h=n.y;return r=fn(u-this.long0),e=Math.sin(h),t=Math.cos(h),i=Math.cos(r),o=this.sin_p14*e+this.cos_p14*t*i,a=1,(o>0||Math.abs(o)<=Zr)&&(s=this.a*a*t*Math.sin(r),l=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*t*i)),n.x=s,n.y=l,n}function Gkr(n){var e,t,r,i,a,o,s;return n.x-=this.x0,n.y-=this.y0,e=Math.sqrt(n.x*n.x+n.y*n.y),t=iw(e/this.a),r=Math.sin(t),i=Math.cos(t),o=this.long0,Math.abs(e)<=Zr?(s=this.lat0,n.x=o,n.y=s,n):(s=iw(i*this.sin_p14+n.y*r*this.cos_p14/e),a=Math.abs(this.lat0)-Ir,Math.abs(a)<=Zr?(this.lat0>=0?o=fn(this.long0+Math.atan2(n.x,-n.y)):o=fn(this.long0-Math.atan2(-n.x,n.y)),n.x=o,n.y=s,n):(o=fn(this.long0+Math.atan2(n.x*r,e*this.cos_p14*i-n.y*this.sin_p14*r)),n.x=o,n.y=s,n))}var zkr=["ortho"];const Ukr={init:Fkr,forward:Bkr,inverse:Gkr,names:zkr};var Tl={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},qo={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function Vkr(){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>=Ir-Yo/2?this.face=Tl.TOP:this.lat0<=-(Ir-Yo/2)?this.face=Tl.BOTTOM:Math.abs(this.long0)<=Yo?this.face=Tl.FRONT:Math.abs(this.long0)<=Ir+Yo?this.face=this.long0>0?Tl.RIGHT:Tl.LEFT:this.face=Tl.BACK,this.es!==0&&(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 $kr(n){var e={x:0,y:0},t,r,i,a,o,s,l={value:0};if(n.x-=this.long0,this.es!==0?t=Math.atan(this.one_minus_f_squared*Math.tan(n.y)):t=n.y,r=n.x,this.face===Tl.TOP)a=Ir-t,r>=Yo&&r<=Ir+Yo?(l.value=qo.AREA_0,i=r-Ir):r>Ir+Yo||r<=-(Ir+Yo)?(l.value=qo.AREA_1,i=r>0?r-ou:r+ou):r>-(Ir+Yo)&&r<=-Yo?(l.value=qo.AREA_2,i=r+Ir):(l.value=qo.AREA_3,i=r);else if(this.face===Tl.BOTTOM)a=Ir+t,r>=Yo&&r<=Ir+Yo?(l.value=qo.AREA_0,i=-r+Ir):r=-Yo?(l.value=qo.AREA_1,i=-r):r<-Yo&&r>=-(Ir+Yo)?(l.value=qo.AREA_2,i=-r-Ir):(l.value=qo.AREA_3,i=r>0?-r+ou:-r-ou);else{var u,h,c,f,d,v,p;this.face===Tl.RIGHT?r=nM(r,+Ir):this.face===Tl.BACK?r=nM(r,+ou):this.face===Tl.LEFT&&(r=nM(r,-Ir)),f=Math.sin(t),d=Math.cos(t),v=Math.sin(r),p=Math.cos(r),u=d*p,h=d*v,c=f,this.face===Tl.FRONT?(a=Math.acos(u),i=R6(a,c,h,l)):this.face===Tl.RIGHT?(a=Math.acos(h),i=R6(a,c,-u,l)):this.face===Tl.BACK?(a=Math.acos(-u),i=R6(a,c,-h,l)):this.face===Tl.LEFT?(a=Math.acos(-h),i=R6(a,c,u,l)):(a=i=0,l.value=qo.AREA_0)}return s=Math.atan(12/ou*(i+Math.acos(Math.sin(i)*Math.cos(Yo))-Ir)),o=Math.sqrt((1-Math.cos(a))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(i))))),l.value===qo.AREA_1?s+=Ir:l.value===qo.AREA_2?s+=ou:l.value===qo.AREA_3&&(s+=1.5*ou),e.x=o*Math.cos(s),e.y=o*Math.sin(s),e.x=e.x*this.a+this.x0,e.y=e.y*this.a+this.y0,n.x=e.x,n.y=e.y,n}function Wkr(n){var e={lam:0,phi:0},t,r,i,a,o,s,l,u,h,c={value:0};if(n.x=(n.x-this.x0)/this.a,n.y=(n.y-this.y0)/this.a,r=Math.atan(Math.sqrt(n.x*n.x+n.y*n.y)),t=Math.atan2(n.y,n.x),n.x>=0&&n.x>=Math.abs(n.y)?c.value=qo.AREA_0:n.y>=0&&n.y>=Math.abs(n.x)?(c.value=qo.AREA_1,t-=Ir):n.x<0&&-n.x>=Math.abs(n.y)?(c.value=qo.AREA_2,t=t<0?t+ou:t-ou):(c.value=qo.AREA_3,t+=Ir),h=ou/12*Math.tan(t),o=Math.sin(h)/(Math.cos(h)-1/Math.sqrt(2)),s=Math.atan(o),i=Math.cos(t),a=Math.tan(r),l=1-i*i*a*a*(1-Math.cos(Math.atan(1/Math.cos(s)))),l<-1?l=-1:l>1&&(l=1),this.face===Tl.TOP)u=Math.acos(l),e.phi=Ir-u,c.value===qo.AREA_0?e.lam=s+Ir:c.value===qo.AREA_1?e.lam=s<0?s+ou:s-ou:c.value===qo.AREA_2?e.lam=s-Ir:e.lam=s;else if(this.face===Tl.BOTTOM)u=Math.acos(l),e.phi=u-Ir,c.value===qo.AREA_0?e.lam=-s+Ir:c.value===qo.AREA_1?e.lam=-s:c.value===qo.AREA_2?e.lam=-s-Ir:e.lam=s<0?-s-ou:-s+ou;else{var f,d,v;f=l,h=f*f,h>=1?v=0:v=Math.sqrt(1-h)*Math.sin(s),h+=v*v,h>=1?d=0:d=Math.sqrt(1-h),c.value===qo.AREA_1?(h=d,d=-v,v=h):c.value===qo.AREA_2?(d=-d,v=-v):c.value===qo.AREA_3&&(h=d,d=v,v=-h),this.face===Tl.RIGHT?(h=f,f=-d,d=h):this.face===Tl.BACK?(f=-f,d=-d):this.face===Tl.LEFT&&(h=f,f=d,d=-h),e.phi=Math.acos(-v)-Ir,e.lam=Math.atan2(d,f),this.face===Tl.RIGHT?e.lam=nM(e.lam,-Ir):this.face===Tl.BACK?e.lam=nM(e.lam,-ou):this.face===Tl.LEFT&&(e.lam=nM(e.lam,+Ir))}if(this.es!==0){var p,g,m;p=e.phi<0?1:0,g=Math.tan(e.phi),m=this.b/Math.sqrt(g*g+this.one_minus_f_squared),e.phi=Math.atan(Math.sqrt(this.a*this.a-m*m)/(this.one_minus_f*m)),p&&(e.phi=-e.phi)}return e.lam+=this.long0,n.x=e.lam,n.y=e.phi,n}function R6(n,e,t,r){var i;return nYo&&i<=Ir+Yo?(r.value=qo.AREA_1,i-=Ir):i>Ir+Yo||i<=-(Ir+Yo)?(r.value=qo.AREA_2,i=i>=0?i-ou:i+ou):(r.value=qo.AREA_3,i+=Ir)),i}function nM(n,e){var t=n+e;return t<-ou?t+=mN:t>+ou&&(t-=mN),t}var Hkr=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const jkr={init:Vkr,forward:$kr,inverse:Wkr,names:Hkr};var _re=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.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,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.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]],LO=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],aZe=.8487,oZe=1.3523,sZe=Xy/5,Xkr=1/sZe,CA=18,M7=function(n,e){return n[0]+e*(n[1]+e*(n[2]+e*n[3]))},Ykr=function(n,e){return n[1]+e*(2*n[2]+e*3*n[3])};function qkr(n,e,t,r){for(var i=e;r;--r){var a=n(i);if(i-=a,Math.abs(a)=CA&&(r=CA-1),t=Xy*(t-Xkr*r);var i={x:M7(_re[r],t)*e,y:M7(LO[r],t)};return n.y<0&&(i.y=-i.y),i.x=i.x*this.a*aZe+this.x0,i.y=i.y*this.a*oZe+this.y0,i}function Jkr(n){var e={x:(n.x-this.x0)/(this.a*aZe),y:Math.abs(n.y-this.y0)/(this.a*oZe)};if(e.y>=1)e.x/=_re[CA][0],e.y=n.y<0?-Ir:Ir;else{var t=Math.floor(e.y*CA);for(t<0?t=0:t>=CA&&(t=CA-1);;)if(LO[t][0]>e.y)--t;else if(LO[t+1][0]<=e.y)++t;else break;var r=LO[t],i=5*(e.y-r[0])/(LO[t+1][0]-r[0]);i=qkr(function(a){return(M7(r,a)-e.y)/Ykr(r,a)},i,Zr,100),e.x/=M7(_re[t],i),e.y=(5*t+i)*ic,n.y<0&&(e.y=-e.y)}return e.x=fn(e.x+this.long0),e}var Qkr=["Robinson","robin"];const eFr={init:Zkr,forward:Kkr,inverse:Jkr,names:Qkr};function tFr(){this.name="geocent"}function rFr(n){var e=Jqe(n,this.es,this.a);return e}function nFr(n){var e=Qqe(n,this.es,this.a,this.b);return e}var iFr=["Geocentric","geocentric","geocent","Geocent"];const aFr={init:tFr,forward:rFr,inverse:nFr,names:iFr};var Dc={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},UP={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 oFr(){if(Object.keys(UP).forEach(function(t){if(typeof this[t]>"u")this[t]=UP[t].def;else{if(UP[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);UP[t].num&&(this[t]=parseFloat(this[t]))}UP[t].degrees&&(this[t]=this[t]*ic)}.bind(this)),Math.abs(Math.abs(this.lat0)-Ir)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 n=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(n),this.sw=Math.sin(n)}function sFr(n){n.x-=this.long0;var e=Math.sin(n.y),t=Math.cos(n.y),r=Math.cos(n.x),i,a;switch(this.mode){case Dc.OBLIQ:a=this.sinph0*e+this.cosph0*t*r;break;case Dc.EQUIT:a=t*r;break;case Dc.S_POLE:a=-e;break;case Dc.N_POLE:a=e;break}switch(a=this.pn1/(this.p-a),i=a*t*Math.sin(n.x),this.mode){case Dc.OBLIQ:a*=this.cosph0*e-this.sinph0*t*r;break;case Dc.EQUIT:a*=e;break;case Dc.N_POLE:a*=-(t*r);break;case Dc.S_POLE:a*=t*r;break}var o,s;return o=a*this.cg+i*this.sg,s=1/(o*this.sw*this.h1+this.cw),i=(i*this.cg-a*this.sg)*this.cw*s,a=o*s,n.x=i*this.a,n.y=a*this.a,n}function lFr(n){n.x/=this.a,n.y/=this.a;var e={x:n.x,y:n.y},t,r,i;i=1/(this.pn1-n.y*this.sw),t=this.pn1*n.x*i,r=this.pn1*n.y*this.cw*i,n.x=t*this.cg+r*this.sg,n.y=r*this.cg-t*this.sg;var a=Kg(n.x,n.y);if(Math.abs(a)1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,this.es!==0){var n=1-this.es,e=1/n;this.radius_p=Math.sqrt(n),this.radius_p2=n,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 fFr(n){var e=n.x,t=n.y,r,i,a,o;if(e=e-this.long0,this.shape==="ellipse"){t=Math.atan(this.radius_p2*Math.tan(t));var s=this.radius_p/Kg(this.radius_p*Math.cos(t),Math.sin(t));if(i=s*Math.cos(e)*Math.cos(t),a=s*Math.sin(e)*Math.cos(t),o=s*Math.sin(t),(this.radius_g-i)*i-a*a-o*o*this.radius_p_inv2<0)return n.x=Number.NaN,n.y=Number.NaN,n;r=this.radius_g-i,this.flip_axis?(n.x=this.radius_g_1*Math.atan(a/Kg(o,r)),n.y=this.radius_g_1*Math.atan(o/r)):(n.x=this.radius_g_1*Math.atan(a/r),n.y=this.radius_g_1*Math.atan(o/Kg(a,r)))}else this.shape==="sphere"&&(r=Math.cos(t),i=Math.cos(e)*r,a=Math.sin(e)*r,o=Math.sin(t),r=this.radius_g-i,this.flip_axis?(n.x=this.radius_g_1*Math.atan(a/Kg(o,r)),n.y=this.radius_g_1*Math.atan(o/r)):(n.x=this.radius_g_1*Math.atan(a/r),n.y=this.radius_g_1*Math.atan(o/Kg(a,r))));return n.x=n.x*this.a,n.y=n.y*this.a,n}function dFr(n){var e=-1,t=0,r=0,i,a,o,s;if(n.x=n.x/this.a,n.y=n.y/this.a,this.shape==="ellipse"){this.flip_axis?(r=Math.tan(n.y/this.radius_g_1),t=Math.tan(n.x/this.radius_g_1)*Kg(1,r)):(t=Math.tan(n.x/this.radius_g_1),r=Math.tan(n.y/this.radius_g_1)*Kg(1,t));var l=r/this.radius_p;if(i=t*t+l*l+e*e,a=2*this.radius_g*e,o=a*a-4*i*this.C,o<0)return n.x=Number.NaN,n.y=Number.NaN,n;s=(-a-Math.sqrt(o))/(2*i),e=this.radius_g+s*e,t*=s,r*=s,n.x=Math.atan2(t,e),n.y=Math.atan(r*Math.cos(n.x)/e),n.y=Math.atan(this.radius_p_inv2*Math.tan(n.y))}else if(this.shape==="sphere"){if(this.flip_axis?(r=Math.tan(n.y/this.radius_g_1),t=Math.tan(n.x/this.radius_g_1)*Math.sqrt(1+r*r)):(t=Math.tan(n.x/this.radius_g_1),r=Math.tan(n.y/this.radius_g_1)*Math.sqrt(1+t*t)),i=t*t+r*r+e*e,a=2*this.radius_g*e,o=a*a-4*i*this.C,o<0)return n.x=Number.NaN,n.y=Number.NaN,n;s=(-a-Math.sqrt(o))/(2*i),e=this.radius_g+s*e,t*=s,r*=s,n.x=Math.atan2(t,e),n.y=Math.atan(r*Math.cos(n.x)/e)}return n.x=n.x+this.long0,n}var vFr=["Geostationary Satellite View","Geostationary_Satellite","geos"];const pFr={init:cFr,forward:fFr,inverse:dFr,names:vFr};function gFr(n){n.Proj.projections.add(g8),n.Proj.projections.add(y8),n.Proj.projections.add(wNr),n.Proj.projections.add(ONr),n.Proj.projections.add(BNr),n.Proj.projections.add($Nr),n.Proj.projections.add(qNr),n.Proj.projections.add(e3r),n.Proj.projections.add(a3r),n.Proj.projections.add(h3r),n.Proj.projections.add(A3r),n.Proj.projections.add(R3r),n.Proj.projections.add(B3r),n.Proj.projections.add(W3r),n.Proj.projections.add(q3r),n.Proj.projections.add(ekr),n.Proj.projections.add(akr),n.Proj.projections.add(hkr),n.Proj.projections.add(gkr),n.Proj.projections.add(Skr),n.Proj.projections.add(Ckr),n.Proj.projections.add(Pkr),n.Proj.projections.add(kkr),n.Proj.projections.add(Ukr),n.Proj.projections.add(jkr),n.Proj.projections.add(eFr),n.Proj.projections.add(aFr),n.Proj.projections.add(hFr),n.Proj.projections.add(pFr)}Bu.defaultDatum="WGS84";Bu.Proj=nm;Bu.WGS84=new Bu.Proj("WGS84");Bu.Point=jM;Bu.toPoint=eZe;Bu.defs=xf;Bu.nadgrid=DDr;Bu.transform=C7;Bu.mgrs=Srt;Bu.version="__VERSION__";gFr(Bu);function yFr(){const n=["(",")","\uFF08","\uFF09",",","\uFF0C"],e={};return n.forEach((t,r)=>{e[t]=`$${r}`}),e}function lZe(n){const e=yFr();for(let t in e){const r=e[t],i=new RegExp(`\\${t}`,"g");for(;i.test(n);)n=n.replace(i,r)}return n}function Jq(n,e){const r=n.replace(/&|\||>|<|=|!/g," ").split(" ").filter(a=>a);let i=n;return r.forEach(a=>{const o=e.find(s=>s===a);if(uZe(a)&&o&&(i=i.replace(o,"$"+o)),o){const s=lZe(o);i=i.replace(o,s)}}),i}function Qq(n){let e={};for(let t in n){let r=t;uZe(t)&&(r="$"+t),r=lZe(r),e[r]=n[t]}return e}function uZe(n){return/^\d/.test(n)}class hZe extends ml{constructor(e,t){super(e,t),this._queryService=new BDe(e,t)}queryByBounds(e,t,r){return e=this._processParams(e),this._queryService.queryByBounds(e,t,r)}queryByDistance(e,t,r){return e=this._processParams(e),this._queryService.queryByDistance(e,t,r)}queryBySQL(e,t,r){return e=this._processParams(e),this._queryService.queryBySQL(e,t,r)}queryByGeometry(e,t,r){return e=this._processParams(e),this._queryService.queryByGeometry(e,t,r)}_processParams(e){return e?(e.returnContent=e.returnContent==null?!0:e.returnContent,e.queryParams&&!br.isArray(e.queryParams)&&(e.queryParams=[e.queryParams]),e.bounds&&(e.bounds=new po(e.bounds[0],e.bounds[1],e.bounds[2],e.bounds[3])),e.geometry&&(e.geometry instanceof Qs?e.geometry=new Ki(e.geometry.getCoordinates()[0],e.geometry.getCoordinates()[1]):e.geometry=br.toSuperMapGeometry(JSON.parse(new jc().writeGeometry(e.geometry)))),e):{}}}class mFr{constructor(e,t){this.url=e,this.options=t||{}}getFeaturesByIDs(e,t,r){var i=this,a=new JRe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:r});return a.processAsync(e,t)}getFeaturesByBounds(e,t,r){var i=this,a=new XRe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}getFeaturesByBuffer(e,t,r){var i=this,a=new YRe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}getFeaturesBySQL(e,t,r){var i=this,a=new W8(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}getFeaturesByGeometry(e,t,r){var i=this,a=new ZRe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}editFeatures(e,t){if(!(!e||!e.dataSourceName||!e.dataSetName)){var r=this,i=r.url,a=e.dataSourceName,o=e.dataSetName;i=W.urlPathAppend(i,"datasources/"+a+"/datasets/"+o);var s=new U8(i,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers});return s.processAsync(e,t)}}getMetadata(e,t){var r=this,i=r.url,a=e.dataSourceName,o=e.dataSetName;i=W.urlPathAppend(i,"datasources/"+a+"/datasets/"+o);var s=new U8(i,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers});return s.getMetaData(e,t)}_processFormat(e){return e||Ni.GEOJSON}}class cZe extends ml{constructor(e,t){super(e,t),this._featureService=new mFr(e,t)}getFeaturesByIDs(e,t,r){return e=this._processParams(e),this._featureService.getFeaturesByIDs(e,t,r)}getFeaturesByBounds(e,t,r){return e=this._processParams(e),this._featureService.getFeaturesByBounds(e,t,r)}getFeaturesByBuffer(e,t,r){return e=this._processParams(e),this._featureService.getFeaturesByBuffer(e,t,r)}getFeaturesBySQL(e,t,r){return e=this._processParams(e),this._featureService.getFeaturesBySQL(e,t,r)}getFeaturesByGeometry(e,t,r){return e=this._processParams(e),this._featureService.getFeaturesByGeometry(e,t,r)}editFeatures(e,t){if(!(!e||!e.dataSourceName||!e.dataSetName)){var r=this,i=r.url,a=e.dataSourceName,o=e.dataSetName;i=W.urlPathAppend(i,"datasources/"+a+"/datasets/"+o);var s=new U8(i,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers});return s.processAsync(r._processParams(e),t)}}getMetadata(e,t){return this._featureService.getMetadata(e,t)}_processParams(e){if(!e)return{};var t=this;if(e.returnContent=e.returnContent==null?!0:e.returnContent,e.fromIndex=e.fromIndex?e.fromIndex:0,e.toIndex=e.toIndex?e.toIndex:-1,e.bounds&&(e.bounds=br.toSuperMapBounds(e.bounds)),e.geometry&&(e.geometry=br.toSuperMapGeometry(JSON.parse(new jc().writeGeometry(e.geometry)))),e.editType&&(e.editType=e.editType.toLowerCase()),e.features){var r=[];br.isArray(e.features)?e.features.map(function(i){return r.push(t._createServerFeature(i)),i}):r.push(t._createServerFeature(e.features)),e.features=r}return e}_createServerFeature(e){var t={},r=[],i=[],a=e.getProperties();for(var o in a)o!==e.getGeometryName()&&(r.push(o),i.push(a[o]));return t.fieldNames=r,t.fieldValues=i,e.getId()&&(t.id=e.getId()),t.geometry=br.toSuperMapGeometry(new jc().writeFeatureObject(e)),t}_processFormat(e){return e||Ni.GEOJSON}}function _Fr(n){let e=[];return wFr(n)&&n.length&&n.forEach(t=>{let r=t.get("attributes");r&&e.push(r)}),e}function dMe(n,e,t,r,i,a,o){xFr(n,e,r,i,t,a,o)}function vMe(n,e,t,r,i,a,o,s,l,u){const h=new Pf({name:e,attributeFilter:t});r&&(h.fields=r);const c={queryParams:[h]};u&&(c.queryOption=fz.ATTRIBUTE),s&&(c.startRecord=s),l&&(c.expectCount=l),i&&(c.prjCoordSys={epsgCode:i});const f=new ZR(c);new hZe(n).queryBySQL(f,function(v){v.type==="processCompleted"?a(v):o(v)})}function xFr(n,e,t,r,i,a,o){let s=new Pf({name:e.join().replace(":","@")}),l=o||1e3,u,h=[];pMe(n,s,e,0,1,1,i,a).then(c=>{u=c;let f=c.result.totalCount;if(f>1){for(let d=1;d{d.forEach(v=>{v.type==="processCompleted"&&v.result.features&&v.result.features.features?v.result.features.features.forEach(p=>{u.result.features.features.push(p)}):u.someRequestFailed=!0}),t(u)}).catch(d=>{r(d)})}else t(c)}).catch(c=>{r(c)})}function SFr(n,e,t,r,i,a){return new VR({queryParameter:n,datasetNames:e,fromIndex:t,toIndex:r,maxFeatures:i,returnContent:!0,targetEpsgCode:a})}function pMe(n,e,t,r,i,a,o,s){return new Promise((l,u)=>{new cZe(n,o).getFeaturesBySQL(SFr(e,t,r,i,a,s),h=>{let c=h.result;h.type==="processCompleted"&&c&&c.features?l(h):u(h)})})}function wFr(n){return Object.prototype.toString.call(n)==="[object Array]"}class Ihe extends ml{constructor(e,t){t=t||{},t.projection&&(t.prjCoordSys=t.projection),super(e,t),this.dataFlow=new lRe(e,t),this.dataFlow.events.on({broadcastSocketConnected:this._defaultEvent,broadcastSocketError:this._defaultEvent,broadcastFailed:this._defaultEvent,broadcastSucceeded:this._defaultEvent,subscribeSocketConnected:this._defaultEvent,subscribeSocketError:this._defaultEvent,messageSucceeded:this._defaultEvent,setFilterParamSucceeded:this._defaultEvent,scope:this})}initBroadcast(){return this.dataFlow.initBroadcast(),this}broadcast(e){this.dataFlow.broadcast(e)}initSubscribe(){return this.dataFlow.initSubscribe(),this}setExcludeField(e){return this.dataFlow.setExcludeField(e),this.options.excludeField=e,this}setGeometry(e){return this.dataFlow.setGeometry(e),this.options.geometry=e,this}unSubscribe(){this.dataFlow.unSubscribe()}unBroadcast(){this.dataFlow.unBroadcast()}_defaultEvent(e){this.dispatchEvent({type:e.eventType||e.type,value:e})}}class bFr extends _f{constructor(e){var t=e||{};super(t),this.idField=t.idField||"id",this.dataService=new Ihe(t.ws,{geometry:t.geometry,prjCoordSys:t.prjCoordSys,excludeField:t.excludeField}).initSubscribe();var r=this;r.dataService.on("subscribeSocketConnected",function(i){r.dispatchEvent({type:"subscribeSucceeded",value:i})}),r.dataService.on("messageSucceeded",function(i){r._onMessageSuccessed(i)}),r.dataService.on("setFilterParamSucceeded",function(i){r.dispatchEvent({type:"setFilterParamSucceeded",value:i})}),this.featureCache={}}setExcludeField(e){return this.dataService.setExcludeField(e),this.excludeField=e,this}setGeometry(e){return this.dataService.setGeometry(e),this.geometry=e,this}_onMessageSuccessed(e){var t=new jc().readFeature(e.value.featureResult),r=t.get(this.idField);r!==void 0&&this.featureCache[r]?(this.featureCache[r].setGeometry(t.getGeometry()),this.featureCache[r].setProperties(t.getProperties()),this.changed()):(this.addFeature(t),this.featureCache[r]=t),this.dispatchEvent({type:"dataupdated",value:{source:this,data:t}})}}class fZe{constructor(e,t){this.geometry=e,this.attributes=t}toFeature(){var e=this.geometry;if(e instanceof vT){let t=this.attributes;t.geometry=e;let r=new d0(t);return new uh().read(new jc().writeFeature(r),"Feature")}else if(e.length===3)return e=new O_(e[0],e[1],e[2]),new sc(e,this.attributes)}}var EFr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),TFr=function(n){EFr(e,n);function e(t,r,i,a,o){var s=this,l=o!==void 0?Ai.IDLE:Ai.LOADED;return s=n.call(this,t,r,i,l)||this,s.loader_=o!==void 0?o:null,s.canvas_=a,s.error_=null,s}return e.prototype.getError=function(){return this.error_},e.prototype.handleLoad_=function(t){t?(this.error_=t,this.state=Ai.ERROR):this.state=Ai.LOADED,this.changed()},e.prototype.load=function(){this.state==Ai.IDLE&&(this.state=Ai.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))},e.prototype.getImage=function(){return this.canvas_},e}(wue);const CFr=TFr;var AFr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),MFr=function(n){AFr(e,n);function e(t){var r=this,i=t||{},a=i.imageSmoothing!==void 0?i.imageSmoothing:!0;return i.interpolate!==void 0&&(a=i.interpolate),r=n.call(this,{attributions:i.attributions,interpolate:a,projection:i.projection,resolutions:i.resolutions,state:i.state})||this,r.canvasFunction_=i.canvasFunction,r.canvas_=null,r.renderedRevision_=0,r.ratio_=i.ratio!==void 0?i.ratio:1.5,r}return e.prototype.getImageInternal=function(t,r,i,a){r=this.findNearestResolution(r);var o=this.canvas_;if(o&&this.renderedRevision_==this.getRevision()&&o.getResolution()==r&&o.getPixelRatio()==i&&vv(o.getExtent(),t))return o;t=t.slice(),gyr(t,this.ratio_);var s=Co(t)/r,l=lh(t)/r,u=[s*i,l*i],h=this.canvasFunction_.call(this,t,r,i,u,a);return h&&(o=new CFr(t,r,i,h)),this.canvas_=o,this.renderedRevision_=this.getRevision(),o},e}(Xqe);const f$=MFr;class fS extends f${constructor(e,t){var r=t||{};super({attributions:r.attributions||"Map Data \xA9 SuperMap iServer with \xA9 SuperMap iClient",canvasFunction:i,logo:br.getOlVersion()==="4"?r.logo:null,projection:r.projection,ratio:r.ratio,resolutions:r.resolutions,state:r.state}),this.on=this.onInternal,this.id=r.id?r.id:W.createUniqueID("themeLayer_");function i(o,s,l,u,h){var c=u[0]*l,f=u[1]*l;if(this.context||(this.context=br.createCanvasContext2D(c,f)),!this.features)return this.context.canvas;this.pixelRatio=l;var d=this.map.getSize()[0]*l,v=this.map.getSize()[1]*l;this.offset=[(c-d)/2/l,(f-v)/2/l],this.notFirst||(this.redrawThematicFeatures(o),this.notFirst=!0),this.div.id=this.id,this.div.className="themeLayer",this.div.style.width=c+"px",this.div.style.height=f+"px",this.map.getViewport().appendChild(this.div),this.renderer.resize(),this.map.getViewport().removeChild(this.div),this.themeCanvas=this.renderer.painter.root.getElementsByTagName("canvas")[0],this.themeCanvas.width=c,this.themeCanvas.height=f,this.themeCanvas.style.width=c+"px",this.themeCanvas.style.height=f+"px",this.themeCanvas.getContext("2d").clearRect(0,0,c,f);var p=this.renderer.painter._layers.hover.ctx,g=p.canvas,m=br.createCanvasContext2D(c,f);m.drawImage(g,0,0,g.width,g.height,0,0,c,f),this.redrawThematicFeatures(o);var y=this.context.canvas;return this.context.clearRect(0,0,y.width,y.height),y.width=c,y.height=f,y.style.width=c+"px",y.style.height=f+"px",this.context.drawImage(this.themeCanvas,0,0),this.context.drawImage(m.canvas,0,0),this.context.canvas}this.canvasFunctionInternal_=i,this.EVENT_TYPES=["loadstart","loadend","loadcancel","visibilitychanged","move","moveend","added","removed","tileloaded","beforefeaturesadded","featuresadded","featuresremoved"],this.features=[],this.TFEvents=r.TFEvents||[],this.map=r.map;var a=this.map.getSize();this.div=document.createElement("div"),this.map.getViewport().appendChild(this.div),this.div.style.width=a[0]+"px",this.div.style.height=a[1]+"px",this.setOpacity(r.opacity),this.levelRenderer=new Gg,this.movingOffset=[0,0],this.renderer=this.levelRenderer.init(this.div),this.map.getViewport().removeChild(this.div),this.renderer.clear(),this.addTFEvents()}destroy(){this.EVENT_TYPES=null,this.isBaseLayer=null,this.TFEvents=null,this.destroyFeatures(),this.features=null,this.renderer&&this.renderer.dispose(),this.renderer=null,this.levelRenderer=null,this.movingOffset=null,this.currentMousePosition=null}destroyFeatures(e){var t=e==null;if(t&&(e=this.features),e){this.removeFeatures(e),Array.isArray(e)||(e=[e]);for(var r=e.length-1;r>=0;r--)e[r].destroy()}}setOpacity(e){if(e!==this.opacity){this.opacity=e;var t=this.div;W.modifyDOMElement(t,null,null,null,null,null,null,e),this.map!==null&&this.dispatchEvent({type:"changelayer",value:{layer:this,property:"opacity"}})}}addFeatures(e){}removeFeatures(e){var t=this;if(!!e){if(e===t.features)return t.removeAllFeatures();!W.isArray(e)&&typeof e!="function"&&(e=[e]);for(var r=[],i=0;i"u"&&typeof E.__overlayWeight>"u"?0:typeof b.__overlayWeight<"u"&&typeof E.__overlayWeight>"u"?-1:typeof b.__overlayWeight>"u"&&typeof E.__overlayWeight<"u"?1:typeof b.__overlayWeight<"u"&&typeof E.__overlayWeight<"u"?parseFloat(b.__overlayWeight)=r.left&&s.x<=r.right&&s.y>=r.top&&s.y<=r.bottom){i=!0;break}}return i}clearCache(){this.cache={},this.charts=[]}removeFeatures(e){this.clearCache(),super.removeFeatures(e)}removeAllFeatures(){this.clearCache(),super.removeAllFeatures()}redraw(){return this.clearCache(),this.renderer?(this.redrawThematicFeatures(this.map.getView().calculateExtent()),!0):!1}clear(){this.renderer&&(this.renderer.clearAll(),this.renderer.refresh()),this.removeAllFeatures(),this.clearCache()}canvasFunctionInternal_(e,t,r,i,a){return fS.prototype.canvasFunctionInternal_.apply(this,arguments)}}class I7 extends l7{constructor(e){e.stroke?(e.stroke.color=e.stroke.getColor()||"#3388ff",e.stroke.width=e.stroke.getWidth()||1):e.stroke=new es({color:"#3388ff",width:1}),e.fill?e.fill.color=e.fill.getColor()||"#66ccff":e.fill=new Zo({color:"#66ccff"}),super({angle:e.angle||60,stroke:e.stroke,fill:e.fill,radius:e.radius||10,rotation:e.rotation||0}),this.count_=e.count||3,this.strokeOpacity=e.strokeOpacity||1,this.fillOpacity=e.fillOpacity||1,this._pixelRatio=window?window.devicePixelRatio:1,this._canvas=this.getImage(this._pixelRatio),this._ctx=this._canvas.getContext("2d"),this._render()}_render(){var e=0,t=this.getAngle();if(this.spaceAngle=360/this.count_-this.getAngle(),!(this.spaceAngle<0)){this._ctx.setTransform(this._pixelRatio,0,0,this._pixelRatio,0,0),this._ctx.translate(0,0),this._ctx.beginPath();for(var r=0;r!1,gMe=function(){let n=document.createElement("div"),e=["transform","WebkitTransform","MozTransform","OTransform","msTransform"];for(let t=0;t-1&&(this._data=e),!this._renderLayer)return;this._renderLayer.setChangeFlags({dataChanged:!0,propsChanged:!0,viewportChanged:!0,updateTriggersChanged:!0}),this._refreshData();let t=this._getLayerState();t.data=this._data||[],this._renderLayer.setNeedsRedraw(!0),this._renderLayer.setState(t)}drawGraphics(e){this._data=e||(this._data?this._data:[]),this._renderLayer||this._createInnerRender(),this._clearBuffer(),this._draw()}_initContainer(){this._canvas=this._createCanvas(this.width,this.height),this._layerContainer=this.container,this._wrapper=document.createElement("div"),this._wrapper.className="deck-wrapper",this._wrapper.style.position="absolute",this._wrapper.style.top="0",this._wrapper.style.left="0",this._wrapper.appendChild(this._canvas),this._layerContainer&&this._layerContainer.appendChild(this._wrapper)}_createCanvas(e,t){let r=document.createElement("canvas");return r.oncontextmenu=IFr,r.width=e,r.height=t,r.style.width=e+"px",r.style.height=t+"px",r}_createInnerRender(){let e=this,t=this._getLayerState(),{color:r,radius:i,opacity:a,highlightColor:o,radiusScale:s,radiusMinPixels:l,radiusMaxPixels:u,strokeWidth:h,outline:c}=t;i=this._pixelToMeter(i);let f={id:"scatter-plot",data:[],pickable:Boolean(this.onClick)||Boolean(this.onHover),autoHighlight:!0,color:r,opacity:a,radius:i,radiusScale:s,highlightColor:o,radiusMinPixels:l,radiusMaxPixels:u,strokeWidth:h,outline:c,getPosition(d){if(!d)return[0,0,0];let v=d.getGeometry(),p=v&&v.getCoordinates();return p=e._project(p),p&&[p[0],p[1],0]},getColor(d){let v=e._getLayerDefaultStyle(),p=d&&d.getStyle();return p&&p.getColor&&p.getColor()||v.color},getRadius(d){let v=e._getLayerDefaultStyle(),p=d&&d.getStyle();return p&&p.getRadius&&p.getRadius()||v.radius},updateTriggers:{getColor:[r],getRadius:[i]}};e._renderLayer=new window.DeckGL.ScatterplotLayer(f)}_getLayerDefaultStyle(){let{color:e,opacity:t,radius:r,radiusScale:i,radiusMinPixels:a,radiusMaxPixels:o,strokeWidth:s,outline:l}=this._getLayerState();return r=this._pixelToMeter(r),{color:e,opacity:t,radius:r,radiusScale:i,radiusMinPixels:a,radiusMaxPixels:o,strokeWidth:s,outline:l}}_getLayerState(){let e=this.layer.getLayerState(),r=this.map.getView().getProjection().getCode(),i=t7([e.longitude,e.latitude],r,"EPSG:4326");return e.longitude=i[0],e.latitude=i[1],e.zoom=e.zoom-1,e}_draw(){this._refreshData();let e=this._getLayerState();e.data=this._data||[];let t={};for(let r in e)t[r]=e[r];this._renderLayer.setNeedsRedraw(!0),t.layers=[this._renderLayer],t.canvas=this._canvas,this.onBeforeRender&&(t.onBeforeRender=this.onBeforeRender.bind(this)),this.onAfterRender&&(t.onAfterRender=this.onAfterRender.bind(this)),this.deckGL?this.deckGL.setProps(t):this.deckGL=new window.DeckGL.experimental.DeckGLJS(t)}_refreshData(){let e=this._data||[],t=br.isArray(e)?[].concat(e):[e];this._renderLayer.props.data||(this._renderLayer.props.data=[]),this._renderLayer.props.data.length=0;for(let r=0;r=l.width)return null;var c=lh(s),f=Math.floor(l.height*((s[3]-a[1])/c));return f<0||f>=l.height?null:this.getImageData(l,h,f)},e.prototype.renderFrame=function(t,r){var i=this.image_,a=i.getExtent(),o=i.getResolution(),s=i.getPixelRatio(),l=t.layerStatesArray[t.layerIndex],u=t.pixelRatio,h=t.viewState,c=h.center,f=h.resolution,d=t.size,v=u*o/(f*s),p=Math.round(d[0]*u),g=Math.round(d[1]*u),m=h.rotation;if(m){var y=Math.round(Math.sqrt(p*p+g*g));p=y,g=y}Id(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/u,1/u,m,-p/2,-g/2),bk(this.inversePixelTransform,this.pixelTransform);var _=gue(this.pixelTransform);this.useContainer(r,_,l.opacity,this.getBackground(t));var x=this.context,S=x.canvas;S.width!=p||S.height!=g?(S.width=p,S.height=g):this.containerReused||x.clearRect(0,0,p,g);var w=!1,b=!0;if(l.extent){var E=F1(l.extent,h.projection);b=Cl(E,t.extent),w=b&&!vv(E,t.extent),w&&this.clipUnrotated(x,t,E)}var T=i.getImage(),C=Id(this.tempTransform,p/2,g/2,v,v,0,s*(a[0]-c[0])/o,s*(c[1]-a[3])/o);this.renderedResolution=o*u/s;var A=T.width*C[0],M=T.height*C[3];if(this.getLayer().getSource().getInterpolate()||Ao(x,S7),this.preRender(x,t),b&&A>=.5&&M>=.5){var I=C[4],R=C[5],k=l.opacity,D=void 0;k!==1&&(D=x.globalAlpha,x.globalAlpha=k),x.drawImage(T,0,0,+T.width,+T.height,Math.round(I),Math.round(R),Math.round(A),Math.round(M)),k!==1&&(x.globalAlpha=D)}return this.postRender(x,t),w&&x.restore(),Ao(x,Oqe),_!==S.style.transform&&(S.style.transform=_),this.container},e}(Sue);const FFr=kFr;var BFr=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),GFr=function(n){BFr(e,n);function e(t){return n.call(this,t)||this}return e.prototype.createRenderer=function(){return new FFr(this)},e.prototype.getData=function(t){return n.prototype.getData.call(this,t)},e}(DFr);const dZe=GFr,zFr={color:[0,0,0,255],opacity:.8,radius:10,radiusScale:1,radiusMinPixels:0,radiusMaxPixels:Number.MAX_SAFE_INTEGER,strokeWidth:1,outline:!1},eZ=["canvas","webgl"];class d$ extends f${constructor(e){super({attributions:e.attributions,canvasFunction:r,logo:br.getOlVersion()==="4"?e.logo:null,projection:e.projection,ratio:e.ratio,resolutions:e.resolutions,state:e.state}),this.graphics=[].concat(e.graphics),this.map=e.map,W.extend(this,e),this.render=e.render||eZ[0],br.supportWebGL2()||(this.render=eZ[0]),this.highLightStyle=e.highLightStyle,this.isHighLight=typeof e.isHighLight>"u"?!0:e.isHighLight,this.hitGraphicLayer=null,this._forEachFeatureAtCoordinate=a,this._options=e;const t=this;e.onClick&&t.map.on("click",function(o){if(t.isDeckGLRender){const l=t.renderer.deckGL.pickObject({x:o.pixel[0],y:o.pixel[1]});e.onClick(l);return}const s=t.findGraphicByPixel(o,t);s&&(e.onClick(s,o),t.isHighLight&&t._highLight(s.getGeometry().getCoordinates(),new So({image:s.getStyle()}).getImage(),s,o.pixel))}),t.map.on("pointermove",function(o){if(t.isDeckGLRender){const s=t.renderer.deckGL.pickObject({x:o.pixel[0],y:o.pixel[1]});e.onHover&&e.onHover(s)}});function r(o,s,l,u,h){var c=u[0]/l,f=u[1]/l,d=t.map.getSize()[0],v=t.map.getSize()[1];t.renderer||(t.renderer=i(u,l)),t.renderer.mapWidth=c,t.renderer.mapHeight=f,t.renderer.pixelRatio=l,t.renderer.offset=[(c-d)/2,(f-v)/2];let p=this.getGraphicsInExtent(o);return t.renderer._clearBuffer(),t.renderer.selected=this.selected,t.renderer.drawGraphics(p),t.isDeckGLRender=t.renderer instanceof yMe,t.isDeckGLRender?(t.context||(t.context=br.createCanvasContext2D(c,f)),t.context.canvas):t.renderer.getCanvas()}function i(o,s){let l;if(t.render===eZ[0])l=new PFr(t,{size:o,pixelRatio:s});else{let u=W.extend({},zFr),h=W.extend(u,{color:t.color,opacity:t.opacity,radius:t.radius,radiusScale:t.radiusScale,radiusMinPixels:t.radiusMinPixels,radiusMaxPixels:t.radiusMaxPixels,strokeWidth:t.strokeWidth,outline:t.outline,onClick:t.onClick,onHover:t.onHover});h=W.extend(t,h),h.pixelRatio=s,h.container=t.map.getViewport().getElementsByClassName("ol-overlaycontainer")[0],h.onBeforeRender=function(){return!1},h.onAfterRender=function(){return!1},l=new yMe(t,h)}return l}function a(o,s,l,u,h){let c=t.getGraphicsInExtent();t._highLightClose();for(let f=c.length-1;f>=0;f--){let d=c[f].getStyle();if(!d)return;if(d instanceof _8)continue;let v=c[f].getGeometry().getCoordinates(),p=new So({image:d}).getImage(),g=!1;if(p instanceof I7&&p.getCount()===1){const m=p.getRotation()*180/Math.PI,y=Number.parseFloat(p.getAngle()),_=p.getRadius()*s;let x=null;if(y>355)x=new rm(v,_);else{const S=[];S.push(v);const w=y/8;for(let b=0;b<8;b++){const E=(m+b*w)/180*Math.PI;S.push([v[0]+_*Math.cos(E),v[1]-_*Math.sin(E)])}S.push(v),x=new m2([S])}x.intersectsCoordinate(this.map.getCoordinateFromPixel(u))&&(g=!0)}else{let m=[];m[0]=v[0]-p.getAnchor()[0]*s,m[2]=v[0]+p.getAnchor()[0]*s,m[1]=v[1]-p.getAnchor()[1]*s,m[3]=v[1]+p.getAnchor()[1]*s,dv(m,o)&&(g=!0)}if(g===!0){l&&l(c[f],h);continue}}}}findGraphicByPixel(e,t){const r=t.map.getFeaturesAtPixel(e.pixel)||[];for(let i=0;i-1)return a}}setGraphics(e){this.graphics=this.graphics||[],this.graphics.length=0;let t=br.isArray(e)?[].concat(e):[e];this.graphics=[].concat(t),this.update()}addGraphics(e){this.graphics=this.graphics||[];let t=br.isArray(e)?[].concat(e):[e];this.graphics=this.graphics.concat(t),this.update()}getGraphicBy(e,t){let r=null;for(let i in this.graphics)if(this.graphics[i][e]===t){r=this.graphics[i];break}return r}getGraphicById(e){return this.getGraphicBy("id",e)}getGraphicsByAttribute(e,t){var r,i=[];for(let a in this.graphics)r=this.graphics[a],r&&r.attributes&&r.attributes[e]===t&&i.push(r);return i}removeGraphics(e=null){if(!e||e.length===0||e===this.graphics){this.graphics.length=0,this.update();return}W.isArray(e)||(e=[e]);for(let t=e.length-1;t>=0;t--){let r=e[t],i=W.indexOf(this.graphics,r);i!==-1&&this.graphics.splice(i,1)}this.update()}clear(){this.removeGraphics()}update(){this.renderer.update(this.graphics,this._getDefaultStyle())}_getDefaultStyle(){const e={};return this.color&&(e.fill=new Zo({color:this.toRGBA(this.color)})),this.radius&&(e.radius=this.radius),this.outline&&(e.stroke=new Zo({color:this.toRGBA(this.color),width:this.strokeWidth})),new rm(e)}toRGBA(e){return`rgba(${e[0]},${e[1]},${e[2]},${(e[3]||255)/255})`}setStyle(e){let t=this,r={color:t.color,radius:t.radius,opacity:t.opacity,highlightColor:t.highlightColor,radiusScale:t.radiusScale,radiusMinPixels:t.radiusMinPixels,radiusMaxPixels:t.radiusMaxPixels,strokeWidth:t.strokeWidth,outline:t.outline};W.extend(t,W.extend(r,e)),t.update()}getLayerState(){let e=this.map,t=e.getSize()[0],r=e.getSize()[1],i=e.getView(),a=i.getCenter(),o=a[0],s=a[1],l=i.getZoom(),u=i.getMaxZoom(),c=-i.getRotation()*180/Math.PI,f={longitude:o,latitude:s,zoom:l,maxZoom:u,pitch:0,bearing:c},d={};for(let v in f)d[v]=f[v];return d.width=t,d.height=r,d.color=this.color,d.radius=this.radius,d.opacity=this.opacity,d.highlightColor=this.highlightColor,d.radiusScale=this.radiusScale,d.radiusMinPixels=this.radiusMinPixels,d.radiusMaxPixels=this.radiusMaxPixels,d.strokeWidth=this.strokeWidth,d.outline=this.outline,d}_highLightClose(){this.selected=null,this.hitGraphicLayer&&(this.map.removeLayer(this.hitGraphicLayer),this.hitGraphicLayer=null),this.changed()}_highLight(e,t,r,i){if(r.getStyle()instanceof I7){this.hitGraphicLayer&&(this.map.removeLayer(this.hitGraphicLayer),this.hitGraphicLayer=null);var a=this.map.getPixelFromCoordinate([e[0],e[1]]);i=i||[0,0];var o=Math.atan2(i[1]-a[1],i[0]-a[0])/Math.PI*180;o=o>0?o:360+o;var s=Math.ceil(o/(t.getAngle()+t.getSpaceAngle())),l=(s-1)*(t.getAngle()+t.getSpaceAngle()),u={stroke:new es({color:"#ff0000",width:1}),fill:new Zo({color:"#0099ff"}),radius:t.getRadius(),angle:t.getAngle(),eAngle:l+t.getAngle(),sAngle:l,rotation:t.getRotation()};this.highLightStyle&&this.highLightStyle instanceof _8&&(u.stroke=this.highLightStyle.getStroke(),u.fill=this.highLightStyle.getFill(),u.radius=this.highLightStyle.getRadius(),u.angle=this.highLightStyle.getAngle());var h=new YM(new Qs(e));h.setStyle(new _8(u)),this.hitGraphicLayer=new dZe({source:new d$({map:this.map,graphics:[h]})}),this.map.addLayer(this.hitGraphicLayer)}else this.selected=r,this.changed()}getGraphicsInExtent(e){var t=[];return e?(this.graphics.forEach(r=>{vv(e,r.getGeometry().getExtent())&&t.push(r)}),t):(this.graphics.forEach(r=>{t.push(r)}),t)}}class AS extends fS{constructor(e,t){super(e,t),this.cache=t.cache||{},this.cacheFields=t.cacheFields||[],this.style=t.style||{},this.maxCacheCount=t.maxCacheCount||0,this.isCustomSetMaxCacheCount=t.isCustomSetMaxCacheCount===void 0?!1:t.isCustomSetMaxCacheCount,this.nodesClipPixel=t.nodesClipPixel||2,this.isHoverAble=t.isHoverAble===void 0?!1:t.isHoverAble,this.isMultiHover=t.isMultiHover===void 0?!1:t.isMultiHover,this.isClickAble=t.isClickAble===void 0?!0:t.isClickAble,this.highlightStyle=t.highlightStyle||null,this.isAllowFeatureStyle=t.isAllowFeatureStyle===void 0?!1:t.isAllowFeatureStyle}destroy(){this.maxCacheCount=null,this.isCustomSetMaxCacheCount=null,this.nodesClipPixel=null,this.isHoverAble=null,this.isMultiHover=null,this.isClickAble=null,this.cache=null,this.cacheFields=null,this.style=null,this.highlightStyle=null,this.isAllowFeatureStyle=null}addFeatures(e){this.dispatchEvent({type:"beforefeaturesadded",value:{features:e}}),this.features=this.toiClientFeature(e),this.isCustomSetMaxCacheCount||(this.maxCacheCount=this.features.length*5),this.renderer&&this.changed()}removeFeatures(e){this.clearCache(),fS.prototype.removeFeatures.call(this,e)}removeAllFeatures(){this.clearCache(),fS.prototype.removeAllFeatures.apply(this,arguments)}redrawThematicFeatures(e){var t=this.renderer.getHoverOne(),r=null;t&&t.refDataID&&(r=t.refDataID),this.renderer.clearAll();for(var i=this.features,a=this.cache,o=this.cacheFields,s=this.map.getView().getZoom(),l=this.maxCacheCount,u=0,h=i.length;ul){var g=o[0];o.splice(0,1),delete a[g]}}}}if(this.renderer.render(),r&&this.isHoverAble&&this.isMultiHover){var m=this.getShapesByFeatureID(r);this.renderer.updateHoverShapes(m)}}createThematicFeature(e){var t=W.copyAttributesWithClip(this.style);e.style&&this.isAllowFeatureStyle===!0&&(t=W.copyAttributesWithClip(e.style));var r={};r.nodesClipPixel=this.nodesClipPixel,r.isHoverAble=this.isHoverAble,r.isMultiHover=this.isMultiHover,r.isClickAble=this.isClickAble,r.highlightStyle=Vn.transformStyle(this.highlightStyle);for(var i=new f3(e,this,Vn.transformStyle(t),r),a=0;a0&&this.labelFeatures.length===0)for(var t=this.setLabelsStyle(this.features),r=0,i=t.length;r=0&&v.x<=h.x&&v.y>=0&&v.y<=h.y){if(i.style.minZoomLevel>-1&&c<=i.style.minZoomLevel||i.style.maxZoomLevel>-1&&c>i.style.maxZoomLevel)continue;var p=null;i.isStyleChange?(i.isStyleChange=null,p=this.calculateLabelBounds(i,v)):i.geometry.bsInfo.w&&i.geometry.bsInfo.h?p=this.calculateLabelBounds2(i,v):p=this.calculateLabelBounds(i,v);var g=new po(0,h.y,h.x,0),m=p.length;if(this.isAvoid){var y=this.getAvoidInfo(g,p);if(y){if(y.aspectW==="left"){i.style.labelXOffset+=y.offsetX;for(let E=0;E=a[u].start&&s=a[u].start&&sl&&(l=g,u="top")}if(p.y>e.bottom){let g=Math.abs(p.y-e.bottom);g>l&&(l=g,u="bottom")}if(p.xs&&(s=g,h="left")}if(p.x>e.right){let g=Math.abs(p.x-e.right);g>s&&(s=g,h="right")}}}}isQuadrilateralOverLap(e,t){var r=e.length,i=t.length;if(r!==5||i!==5)return null;var a=!1;for(let l=0;l"u"?{}:window,r=this.devicePixelRatio=t.devicePixelRatio||1;e.width=parseInt(this.width)*r,e.height=parseInt(this.height)*r,this.context==="2d"&&e.getContext(this.context).scale(r,r),e.style.width=this.width+"px",e.style.height=this.height+"px",this.context==="webgl"&&this.canvas.getContext(this.context).viewport(0,0,e.width,e.height)}draw(){this.options.update&&this.options.update.call(this)}resize(e,t){var r=typeof window>"u"?{}:window,i=this.devicePixelRatio=r.devicePixelRatio||1;this.canvas.width=e*i,this.canvas.height=t*i,this.context==="2d"&&this.canvas.getContext("2d").scale(i,i),this.canvas.style.width=e+"px",this.canvas.style.height=t+"px",this.context==="webgl"&&this.canvas.getContext(this.context).viewport(0,0,this.canvas.width,this.canvas.height)}getContainer(){return this.canvas}setZIndex(e){this.canvas.style.zIndex=e}getZIndex(){return this.zIndex}}var L7={exports:{}};(function(n,e){(function(t,r){r(e)})(at,function(t){var r="2.0.62",i=function(B){B&&B.clearRect&&B.clearRect(0,0,B.canvas.width,B.canvas.height)},a=function(B){var O=window.devicePixelRatio||1;B.canvas.width=B.canvas.width*O,B.canvas.height=B.canvas.height*O,B.canvas.style.width=B.canvas.width/O+"px",B.canvas.style.height=B.canvas.height/O+"px",B.scale(O,O)};function o(){this._subscribers={}}o.prototype.on=function(B,O){var F=this._subscribers[B];F||(F=[],this._subscribers[B]=F),F.push({callback:O})},o.prototype.off=function(B,O){var F=this._subscribers[B];if(F)for(var N=0;NF&&(F=U)}return F}},g.prototype.getSum=function(B){var O=this._data;if(!(!O||O.length<=0)){for(var F=0,N=0;N"u")){var F=document.createElement("canvas");B&&(F.width=B),O&&(F.height=O)}return F}function w(B){B=B||{},this.gradient=B.gradient||{.25:"rgba(0, 0, 255, 1)",.55:"rgba(0, 255, 0, 1)",.85:"rgba(255, 255, 0, 1)",1:"rgba(255, 0, 0, 1)"},this.maxSize=B.maxSize||35,this.minSize=B.minSize||0,this.max=B.max||100,this.min=B.min||0,this.initPalette()}w.prototype.setMax=function(B){this.max=B||100},w.prototype.setMin=function(B){this.min=B||0},w.prototype.setMaxSize=function(B){this.maxSize=B||35},w.prototype.setMinSize=function(B){this.minSize=B||0},w.prototype.initPalette=function(){var B=this.gradient,O=new S(256,1),F=this.paletteCtx=O.getContext("2d"),N=F.createLinearGradient(0,0,256,1);for(var U in B)N.addColorStop(parseFloat(U),B[U]);F.fillStyle=N,F.fillRect(0,0,256,1)},w.prototype.getColor=function(B){var O=this.getImageData(B);return"rgba("+O[0]+", "+O[1]+", "+O[2]+", "+O[3]/256+")"},w.prototype.getImageData=function(B){var O=this.paletteCtx.getImageData(0,0,256,1).data;if(B===void 0)return O;var F=this.max,N=this.min;B>F&&(B=F),BF&&(B=F),BN)O=X+(B-N)/(F-N)*(U-X);else return U;return O},w.prototype.getLegend=function(B){var O=this.gradient,F=B.width||20,N=B.height||180,U=new S(F,N),X=U.getContext("2d"),q=X.createLinearGradient(0,N,0,0);for(var Ae in O)q.addColorStop(parseFloat(Ae),O[Ae]);return X.fillStyle=q,X.fillRect(0,0,F,N),U};var b=typeof window>"u"?{}:window,E=b.devicePixelRatio||1;function T(B){var O=B/2,F=B+O,N=1e4,U=new S(F*2,F*2),X=U.getContext("2d");return X.shadowBlur=O,X.shadowColor="black",X.shadowOffsetX=X.shadowOffsetY=N,X.beginPath(),X.arc(F-N,F-N,B,0,Math.PI*2,!0),X.closePath(),X.fill(),U}function C(B,O,F){var N=A(F),U=M(F),X=N-U,Je=F.range||null,q=0,Ae=1024;Je&&Je.length===2&&(q=(Je[0]-U)/X*1024),Je&&Je.length===2&&(Ae=(Je[1]-U)/X*1024);for(var Re=F.maxOpacity||.8,Be=F.minOpacity||0,Je=F.range,Xe=3,_t=B.length,rt;Xe<_t;Xe+=4)rt=B[Xe]*4,B[Xe]/256>Re&&(B[Xe]=256*Re),B[Xe]/256=q&&rt<=Ae?(B[Xe-3]=O[rt],B[Xe-2]=O[rt+1],B[Xe-1]=O[rt+2]):B[Xe]=0}function A(B){var O=B.max||100;return O}function M(B){var O=B.min||0;return O}function I(B,O,F){var N=A(F),U=M(F),X=F._size;X==null&&(X=F.size,X==null&&(X=13));var q=new w({gradient:F.gradient,max:N,min:U}),Ae=T(X),Re=Ae.width/2,Be=Ae.height/2,Je=O,Xe={};Je.forEach(function(Ht,Yt){var ne=Ht.count===void 0?1:Ht.count,ye=Math.min(1,ne/N).toFixed(2);Xe[ye]=Xe[ye]||[],Xe[ye].push(Ht)});for(var _t in Xe)if(!isNaN(_t)){var rt=Xe[_t];B.beginPath(),F.withoutAlpha||(B.globalAlpha=_t),B.strokeStyle=q.getColor(_t*N),rt.forEach(function(Ht,Yt){if(!!Ht.geometry){var ne=Ht.geometry._coordinates||Ht.geometry.coordinates,ye=Ht.geometry.type;if(ye==="Point"){var Ue=Ht.count===void 0?1:Ht.count;B.globalAlpha=Ue/N,B.drawImage(Ae,ne[0]-Re,ne[1]-Be)}else if(ye==="LineString"){var Ue=Ht.count===void 0?1:Ht.count;B.globalAlpha=Ue/N,B.beginPath(),_.draw(B,Ht,F),B.stroke()}}})}}function R(B,O,F){if(!(B.canvas.width<=0||B.canvas.height<=0)){var N=F.strength||.3;B.strokeStyle="rgba(0,0,0,"+N+")";var U=new S(B.canvas.width,B.canvas.height),X=U.getContext("2d");X.scale(E,E),F=F||{};var q=O instanceof g?O.get():O;B.save();var Ae=new w({gradient:F.gradient});if(I(X,q,F),!F.absolute){var Re=X.getImageData(0,0,B.canvas.width,B.canvas.height);C(Re.data,Ae.getImageData(),F),B.putImageData(Re,0,0),B.restore()}Ae=null,U=null}}var k={draw:R},D={draw:function(O,F,N){O.save();var U=F instanceof g?F.get():F,X={},q=N._size||N.size||50,Ae="enableCluster"in N?N.enableCluster:!0,Re=N.offset||{x:0,y:0},Be=new w({min:N.min||0,max:N.max||100,gradient:N.gradient});if(Ae){for(var Ht=0;Ht1){var Ue=Yt-ne,Bt=ne+(Ytee*ee+Se*Se&&(ne=Bt+(Ht&1?1:-1)/2,Ht=$t)}var Ze=ne+"-"+Ht,Ct=Je[Ze];Ct?Ct.push(U[Xe]):(Ct=Je[Ze]=[U[Xe]],Ct.i=ne,Ct.j=Ht,Ct.x=(ne+(Ht&1?1/2:0))*Re,Ct.y=Ht*Be)}var vr=new w({max:N.max||100,maxSize:Ae,gradient:N.gradient});for(var X in Je){var Cr=Je[X];O.beginPath();for(var Jr=0;Jr<6;Jr++){var nn=G({x:Cr.x+q.x,y:Cr.y+q.y},Ae,Jr);O.lineTo(nn[0],nn[1])}O.closePath();for(var Dn=0,Xe=0;Xe1||Ht<-1||Ht>1||(Be.push(rt,Ht),Je++)}var Yt=new Float32Array(Be),ne=Je,ye=B.createBuffer();B.bindBuffer(B.ARRAY_BUFFER,ye),B.bufferData(B.ARRAY_BUFFER,Yt,B.STATIC_DRAW),B.vertexAttribPointer(U,2,B.FLOAT,!1,0,0),B.enableVertexAttribArray(U),B.vertexAttrib1f(X,F._size);var Ue=Z(F.fillStyle||"red");B.uniform4f(q,Ue[0]/255,Ue[1]/255,Ue[2]/255,Ue[3]/255),B.drawArrays(B.POINTS,0,ne)}}var me={draw:se};function Ce(B,O,F){F=F||2;var N=O&&O.length,U=N?O[0]*F:B.length,X=Le(B,0,U,F,!0),q=[];if(!X)return q;var Ae,Re,Be,Je,Xe,_t,rt;if(N&&(X=qe(B,O,X,F)),B.length>80*F){Ae=Be=B[0],Re=Je=B[1];for(var Ht=F;HtBe&&(Be=Xe),_t>Je&&(Je=_t);rt=Math.max(Be-Ae,Je-Re)}return yt(X,q,F,Ae,Re,rt),q}function Le(B,O,F,N,U){var X,q;if(U===Rn(B,O,F,N)>0)for(X=O;X=O;X-=N)q=jr(X,B[X],B[X+1],q);return q&&wt(q,q.next)&&(pn(q),q=q.next),q}function re(B,O){if(!B)return B;O||(O=B);var F=B,N;do if(N=!1,!F.steiner&&(wt(F,F.next)||mt(F.prev,F,F.next)===0)){if(pn(F),F=O=F.prev,F===F.next)return null;N=!0}else F=F.next;while(N||F!==O);return O}function yt(B,O,F,N,U,X,q){if(!!B){!q&&X&&Oe(B,N,U,X);for(var Ae=B,Re,Be;B.prev!==B.next;){if(Re=B.prev,Be=B.next,X?st(B,N,U,X):je(B)){O.push(Re.i/F),O.push(B.i/F),O.push(Be.i/F),pn(B),B=Be.next,Ae=Be.next;continue}if(B=Be,B===Ae){q?q===1?(B=Nt(B,O,F),yt(B,O,F,N,U,X,2)):q===2&&Zt(B,O,F,N,U,X):yt(re(B),O,F,N,U,X,1);break}}}}function je(B){var O=B.prev,F=B,N=B.next;if(mt(O,F,N)>=0)return!1;for(var U=B.next.next;U!==B.prev;){if(Qe(O.x,O.y,F.x,F.y,N.x,N.y,U.x,U.y)&&mt(U.prev,U,U.next)>=0)return!1;U=U.next}return!0}function st(B,O,F,N){var U=B.prev,X=B,q=B.next;if(mt(U,X,q)>=0)return!1;for(var Ae=U.xX.x?U.x>q.x?U.x:q.x:X.x>q.x?X.x:q.x,Je=U.y>X.y?U.y>q.y?U.y:q.y:X.y>q.y?X.y:q.y,Xe=We(Ae,Re,O,F,N),_t=We(Be,Je,O,F,N),rt=B.nextZ;rt&&rt.z<=_t;){if(rt!==B.prev&&rt!==B.next&&Qe(U.x,U.y,X.x,X.y,q.x,q.y,rt.x,rt.y)&&mt(rt.prev,rt,rt.next)>=0)return!1;rt=rt.nextZ}for(rt=B.prevZ;rt&&rt.z>=Xe;){if(rt!==B.prev&&rt!==B.next&&Qe(U.x,U.y,X.x,X.y,q.x,q.y,rt.x,rt.y)&&mt(rt.prev,rt,rt.next)>=0)return!1;rt=rt.prevZ}return!0}function Nt(B,O,F){var N=B;do{var U=N.prev,X=N.next.next;!wt(U,X)&&pt(U,N,N.next,X)&&kt(U,X)&&kt(X,U)&&(O.push(U.i/F),O.push(N.i/F),O.push(X.i/F),pn(N),pn(N.next),N=B=X),N=N.next}while(N!==B);return N}function Zt(B,O,F,N,U,X){var q=B;do{for(var Ae=q.next.next;Ae!==q.prev;){if(q.i!==Ae.i&&zt(q,Ae)){var Re=Sr(q,Ae);q=re(q,q.next),Re=re(Re,Re.next),yt(q,O,F,N,U,X),yt(Re,O,F,N,U,X);return}Ae=Ae.next}q=q.next}while(q!==B)}function qe(B,O,F,N){var U=[],X,q,Ae,Re,Be;for(X=0,q=O.length;X=F.next.y){var Ae=F.x+(U-F.y)*(F.next.x-F.x)/(F.next.y-F.y);if(Ae<=N&&Ae>X){if(X=Ae,Ae===N){if(U===F.y)return F;if(U===F.next.y)return F.next}q=F.x=F.x&&F.x>=Be&&Qe(Uq.x)&&kt(F,B)&&(q=F,Xe=_t)),F=F.next;return q}function Oe(B,O,F,N){var U=B;do U.z===null&&(U.z=We(U.x,U.y,O,F,N)),U.prevZ=U.prev,U.nextZ=U.next,U=U.next;while(U!==B);U.prevZ.nextZ=null,U.prevZ=null,J(U)}function J(B){var O,F,N,U,X,q,Ae,Re,Be=1;do{for(F=B,B=null,X=null,q=0;F;){for(q++,N=F,Ae=0,O=0;O0||Re>0&&N;)Ae===0?(U=N,N=N.nextZ,Re--):Re===0||!N||F.z<=N.z?(U=F,F=F.nextZ,Ae--):(U=N,N=N.nextZ,Re--),X?X.nextZ=U:B=U,U.prevZ=X,X=U;F=N}X.nextZ=null,Be*=2}while(q>1);return B}function We(B,O,F,N,U){return B=32767*(B-F)/U,O=32767*(O-N)/U,B=(B|B<<8)&16711935,B=(B|B<<4)&252645135,B=(B|B<<2)&858993459,B=(B|B<<1)&1431655765,O=(O|O<<8)&16711935,O=(O|O<<4)&252645135,O=(O|O<<2)&858993459,O=(O|O<<1)&1431655765,B|O<<1}function Tt(B){var O=B,F=B;do O.x=0&&(B-q)*(N-Ae)-(F-q)*(O-Ae)>=0&&(F-q)*(X-Ae)-(U-q)*(N-Ae)>=0}function zt(B,O){return B.next.i!==O.i&&B.prev.i!==O.i&&!ar(B,O)&&kt(B,O)&&kt(O,B)&&Dr(B,O)}function mt(B,O,F){return(O.y-B.y)*(F.x-O.x)-(O.x-B.x)*(F.y-O.y)}function wt(B,O){return B.x===O.x&&B.y===O.y}function pt(B,O,F,N){return wt(B,O)&&wt(F,N)||wt(B,N)&&wt(F,O)?!0:mt(B,O,F)>0!=mt(B,O,N)>0&&mt(F,N,B)>0!=mt(F,N,O)>0}function ar(B,O){var F=B;do{if(F.i!==B.i&&F.next.i!==B.i&&F.i!==O.i&&F.next.i!==O.i&&pt(F,F.next,B,O))return!0;F=F.next}while(F!==B);return!1}function kt(B,O){return mt(B.prev,B,B.next)<0?mt(B,O,B.next)>=0&&mt(B,B.prev,O)>=0:mt(B,O,B.prev)<0||mt(B,B.next,O)<0}function Dr(B,O){var F=B,N=!1,U=(B.x+O.x)/2,X=(B.y+O.y)/2;do F.y>X!=F.next.y>X&&U<(F.next.x-F.x)*(X-F.y)/(F.next.y-F.y)+F.x&&(N=!N),F=F.next;while(F!==B);return N}function Sr(B,O){var F=new Jn(B.i,B.x,B.y),N=new Jn(O.i,O.x,O.y),U=B.next,X=O.prev;return B.next=O,O.prev=B,F.next=U,U.prev=F,N.next=F,F.prev=N,X.next=N,N.prev=X,N}function jr(B,O,F,N){var U=new Jn(B,O,F);return N?(U.next=N.next,U.prev=N,N.next.prev=U,N.next=U):(U.prev=U,U.next=U),U}function pn(B){B.next.prev=B.prev,B.prev.next=B.next,B.prevZ&&(B.prevZ.nextZ=B.nextZ),B.nextZ&&(B.nextZ.prevZ=B.prevZ)}function Jn(B,O,F){this.i=B,this.x=O,this.y=F,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}Ce.deviation=function(B,O,F,N){var U=O&&O.length,X=U?O[0]*F:B.length,q=Math.abs(Rn(B,0,X,F));if(U)for(var Ae=0,Re=O.length;Ae0&&(N+=B[U-1].length,F.holes.push(N))}return F};var hi=["attribute vec4 a_Position;","void main() {","gl_Position = a_Position;","gl_PointSize = 30.0;","}"].join(""),yn=["precision mediump float;","uniform vec4 u_FragColor;","void main() {","gl_FragColor = u_FragColor;","}"].join("");function Oi(B,O,F){if(!!O){B.clear(B.COLOR_BUFFER_BIT),B.viewport(0,0,B.canvas.width,B.canvas.height);var N=j(B,hi,yn);B.enable(B.BLEND),B.blendFunc(B.SRC_ALPHA,B.ONE);var U=B.canvas.width/2,X=B.canvas.height/2;B.bindBuffer(B.ARRAY_BUFFER,B.createBuffer()),B.bindBuffer(B.ELEMENT_ARRAY_BUFFER,B.createBuffer());var q=B.getAttribLocation(N,"a_Position");B.vertexAttribPointer(q,2,B.FLOAT,!1,0,0),B.enableVertexAttribArray(q);var Ae=B.getUniformLocation(N,"u_FragColor"),Re=Z(F.fillStyle||"red");B.uniform4f(Ae,Re[0]/255,Re[1]/255,Re[2]/255,Re[3]/255),B.lineWidth(F.lineWidth||1);for(var Be=[],Je=[],Xe=65536,_t=0,rt=0,Ht=O.length;rtXe&&(B.bufferData(B.ARRAY_BUFFER,new Float32Array(Be),B.STATIC_DRAW),B.bufferData(B.ELEMENT_ARRAY_BUFFER,new Uint16Array(Je),B.STATIC_DRAW),B.drawElements(B.TRIANGLES,Je.length,B.UNSIGNED_SHORT,0),Be.length=0,Je.length=0,_t=0);for(var ye=0;ye0&&(U[0].geometry.type=="LineString"?Q.draw(O,U,N):U[0].geometry.type=="Polygon"||U[0].geometry.type=="MultiPolygon"?oi.draw(O,U,N):me.draw(O,U,N))}};function ws(B,O){O=O||{};for(var F=[],N=0;N0&&(F=F.concat(U))}return F}function xl(B,O,Ae){if(!B||!O)return null;var N=function(vr){return 1-2*vr+vr*vr},U=function(vr){return 2*vr-2*vr*vr},X=function(vr){return vr*vr},q=[],Ae=Ae||40,Re,Be,Je,Xe,_t,rt,Ht=0,Yt=0;if(typeof O>"u"){typeof q<"u"&&(q=[]);return}var ne=parseFloat(B.lat),ye=parseFloat(O.lat),Ue=parseFloat(B.lng),Bt=parseFloat(O.lng);for(Bt>Ue&&parseFloat(Bt-Ue)>180&&Ue<0&&(Ue=parseFloat(180+180+Ue),Bt=parseFloat(180+180+Bt)),rt=0,ye==ne?(Re=0,Be=Ue-Bt):Bt==Ue?(Re=Math.PI/2,Be=ne-ye):(Re=Math.atan((ye-ne)/(Bt-Ue)),Be=(ye-ne)/Math.sin(Re)),rt==0&&(rt=Re+Math.PI/5),Je=Be/2,_t=Je*Math.cos(rt)+Ue,Xe=Je*Math.sin(rt)+ne,Ht=0;Ht0?$t-360:$t,ee]),Yt=Yt+1/Ae}return q}var Os={getPoints:ws},no=function(){var O={},F=[],N=[],U=[],X=.1,q=.1,Ae=1,Re=2,Be=6,Je=70,Xe=.6666667,_t=.6,rt=1e-8;function Ht(Ft,nr){return Ft.x*nr.x+Ft.y*nr.y}function Yt(Ft){return{x:O[Ft.target].x-O[Ft.source].x,y:O[Ft.target].y-O[Ft.source].y}}function ne(Ft){return Math.sqrt(Math.pow(O[Ft.source].x-O[Ft.target].x,2)+Math.pow(O[Ft.source].y-O[Ft.target].y,2))}function ye(Ft){return Math.sqrt(Math.pow(Ft.source.x-Ft.target.x,2)+Math.pow(Ft.source.y-Ft.target.y,2))}function Ue(Ft){var nr=(O[Ft.source].x+O[Ft.target].x)/2,Wn=(O[Ft.source].y+O[Ft.target].y)/2;return{x:nr,y:Wn}}function Bt(Ft){for(var nr=0,Wn=1;Wnrt||Math.abs(Fo.y)>rt){var Su=1/Math.pow(ye({source:U[Ts[ko]][nr],target:U[Ft][nr]}),1);Zi.x+=Fo.x*Su,Zi.y+=Fo.y*Su}}return Zi}function Jr(Ft,nr,Wn){for(var Zi=X/(ne(F[Ft])*(nr+1)),Ts=[{x:0,y:0}],ko=1;koTs;){var Kf=Ts/Su,xg=U[nr][Fo-1].x,sF=U[nr][Fo-1].y;xg+=Kf*(U[nr][Fo].x-U[nr][Fo-1].x),sF+=Kf*(U[nr][Fo].y-U[nr][Fo-1].y),ko.push({x:xg,y:sF}),Su-=Ts,Ts=Zi}Ts-=Su}ko.push(O[F[nr].target]),U[nr]=ko}}function Dn(Ft,nr){var Wn=Math.abs(Ht(Yt(Ft),Yt(nr))/(ne(Ft)*ne(nr)));return Wn}function si(Ft,nr){var Wn=(ne(Ft)+ne(nr))/2,Zi=2/(Wn/Math.min(ne(Ft),ne(nr))+Math.max(ne(Ft),ne(nr))/Wn);return Zi}function An(Ft,nr){var Wn=(ne(Ft)+ne(nr))/2,Zi={x:(O[Ft.source].x+O[Ft.target].x)/2,y:(O[Ft.source].y+O[Ft.target].y)/2},Ts={x:(O[nr.source].x+O[nr.target].x)/2,y:(O[nr.source].y+O[nr.target].y)/2},ko=Wn/(Wn+$t(Zi,Ts));return ko}function qi(Ft,nr){var Wn=ee(O[nr.source],{source:O[Ft.source],target:O[Ft.target]}),Zi=ee(O[nr.target],{source:O[Ft.source],target:O[Ft.target]}),Ts={x:(Wn.x+Zi.x)/2,y:(Wn.y+Zi.y)/2},ko={x:(O[Ft.source].x+O[Ft.target].x)/2,y:(O[Ft.source].y+O[Ft.target].y)/2},Fo=Math.max(0,1-2*$t(ko,Ts)/$t(Wn,Zi));return Fo}function _o(Ft,nr){return Math.min(qi(Ft,nr),qi(nr,Ft))}function cs(Ft,nr){var Wn=Dn(Ft,nr)*si(Ft,nr)*An(Ft,nr)*_o(Ft,nr);return Wn}function Sl(Ft,nr){return cs(Ft,nr)>=_t}function xu(){for(var Ft=0;Ft=F.length-1));X++);this.splitList.other=F[F.length-1]},vo.prototype.getLegend=function(B){var O=this.splitList,F=document.createElement("div");F.style.cssText="background:#fff; padding: 5px; border: 1px solid #ccc;";var N="";for(var U in O)N+='

    '+U+"
    ";return F.innerHTML=N,F};function No(B){this.splitList=B||[{start:0,value:"red"}]}No.prototype.get=function(B){for(var O=this.splitList,F=!1,N=0;N=O[N].start)&&(O[N].end===void 0||O[N].end!==void 0&&B"u"?{}:window,Rs=hs.BMap||hs.BMapGL;Rs&&(Lo.prototype=new Rs.Overlay,Lo.prototype.initialize=function(B){this._map=B;var O=this.canvas=document.createElement("canvas");O.style.cssText="position:absolute;left:0;top:0;z-index:"+this.zIndex+";user-select:none;",O.style.mixBlendMode=this.mixBlendMode,this.adjustSize();var F=B.getPanes()[this.paneName];F||(F=B.getPanes().floatShadow),F.appendChild(O);var N=this;return B.addEventListener("resize",function(){N.adjustSize(),N._draw()}),B.addEventListener("update",function(){N._draw()}),this.options.updateImmediate&&setTimeout(function(){N._draw()},100),this.canvas},Lo.prototype.adjustSize=function(){var B=this._map.getSize(),O=this.canvas,F=this.devicePixelRatio=hs.devicePixelRatio||1;O.width=B.width*F,O.height=B.height*F,this.context=="2d"&&O.getContext(this.context).scale(F,F),O.style.width=B.width+"px",O.style.height=B.height+"px"},Lo.prototype.draw=function(){var B=this;this.options.updateImmediate?B._draw():(clearTimeout(B.timeoutID),B.timeoutID=setTimeout(function(){B._draw()},15))},Lo.prototype._draw=function(){var B=this._map,O=B.getSize(),F=B.getCenter();if(F){var N=B.pointToOverlayPixel(F);this.canvas.style.left=N.x-O.width/2+"px",this.canvas.style.top=N.y-O.height/2+"px",this.dispatchEvent("draw"),this.options.update&&this.options.update.call(this)}},Lo.prototype.getContainer=function(){return this.canvas},Lo.prototype.show=function(){this.canvas||this._map.addOverlay(this),this.canvas.style.display="block"},Lo.prototype.hide=function(){this.canvas.style.display="none"},Lo.prototype.setZIndex=function(B){this.zIndex=B,this.canvas.style.zIndex=this.zIndex},Lo.prototype.getZIndex=function(){return this.zIndex});var Pn=Pn||function(){var B=[];return{getAll:function(){return B},removeAll:function(){B=[]},add:function(F){B.push(F)},remove:function(F){var N=B.indexOf(F);N!==-1&&B.splice(N,1)},update:function(F,N){if(B.length===0)return!1;var U=0;for(F=F!==void 0?F:Pn.now();U"u"&&typeof process<"u"?Pn.now=function(){var B=process.hrtime();return B[0]*1e3+B[1]/1e6}:typeof window<"u"&&window.performance!==void 0&&window.performance.now!==void 0?Pn.now=window.performance.now.bind(window.performance):Date.now!==void 0?Pn.now=Date.now:Pn.now=function(){return new Date().getTime()},Pn.Tween=function(B){var O=B,F={},N={},U={},X=1e3,q=0,Ae,Re=!1,Be=!1,Je=0,Xe=null,_t=Pn.Easing.Linear.None,rt=Pn.Interpolation.Linear,Ht=[],Yt=null,ne=!1,ye=null,Ue=null,Bt=null;this.to=function($t,ee){return N=$t,ee!==void 0&&(X=ee),this},this.start=function($t){Pn.add(this),Be=!0,ne=!1,Xe=$t!==void 0?$t:Pn.now(),Xe+=Je;for(var ee in N){if(N[ee]instanceof Array){if(N[ee].length===0)continue;N[ee]=[O[ee]].concat(N[ee])}O[ee]!==void 0&&(F[ee]=O[ee],F[ee]instanceof Array||(F[ee]*=1),U[ee]=F[ee]||0)}return this},this.stop=function(){return Be?(Pn.remove(this),Be=!1,Bt!==null&&Bt.call(O,O),this.stopChainedTweens(),this):this},this.end=function(){return this.update(Xe+X),this},this.stopChainedTweens=function(){for(var $t=0,ee=Ht.length;$t1?1:Se,Ze=_t(Se);for(ee in N)if(F[ee]!==void 0){var Ct=F[ee]||0,vr=N[ee];vr instanceof Array?O[ee]=rt(vr,Ze):(typeof vr=="string"&&(vr.charAt(0)==="+"||vr.charAt(0)==="-"?vr=Ct+parseFloat(vr):vr=parseFloat(vr)),typeof vr=="number"&&(O[ee]=Ct+(vr-Ct)*Ze))}if(ye!==null&&ye.call(O,Ze),Se===1)if(q>0){isFinite(q)&&q--;for(ee in U){if(typeof N[ee]=="string"&&(U[ee]=U[ee]+parseFloat(N[ee])),Re){var Cr=U[ee];U[ee]=N[ee],N[ee]=Cr}F[ee]=U[ee]}return Ae!==void 0?Xe=$t+Ae:Xe=$t+Je,!0}else{Ue!==null&&Ue.call(O,O);for(var Jr=0,nn=Ht.length;Jr1?q(O[N],O[N-1],N-U):q(O[X],O[X+1>N?N:X+1],U-X)},Bezier:function(O,F){for(var N=0,U=O.length-1,X=Math.pow,q=Pn.Interpolation.Utils.Bernstein,Ae=0;Ae<=U;Ae++)N+=X(1-F,U-Ae)*X(F,Ae)*O[Ae]*q(U,Ae);return N},CatmullRom:function(O,F){var N=O.length-1,U=N*F,X=Math.floor(U),q=Pn.Interpolation.Utils.CatmullRom;return O[0]===O[N]?(F<0&&(X=Math.floor(U=N*(1+F))),q(O[(X-1+N)%N],O[X],O[(X+1)%N],O[(X+2)%N],U-X)):F<0?O[0]-(q(O[0],O[0],O[1],O[1],-U)-O[0]):F>1?O[N]-(q(O[N],O[N],O[N-1],O[N-1],U-N)-O[N]):q(O[X?X-1:0],O[X],O[N1;N--)F*=N;return B[O]=F,F}}(),CatmullRom:function(O,F,N,U,X){var q=(N-O)*.5,Ae=(U-F)*.5,Re=X*X,Be=X*Re;return(2*F-2*N+q+Ae)*Be+(-3*F+3*N-2*q-Ae)*Re+q*X+F}}};function mo(B,O){var F=O[0]-B[0],N=O[1]-B[1],U=360*Math.atan(N/F)/(2*Math.PI);return O[0]U&&N>X}var qt={},fr={},Wr={draw:function(O,F,N){for(var U=F instanceof g?F.get():F,X=function(){var Je=U[q];if(Je.geometry)if(Re=Je.icon||N.icon,typeof Re=="string"){var Xe=window.encodeURIComponent(Re),_t=qt[Xe];_t?gr(_t,N,O,Je):(fr[Xe]||(fr[Xe]=[],Ar(Xe,function(rt,Ht){fr[Ht]&&fr[Ht].forEach(function(Yt){return Yt(rt)}),fr[Ht]=null,qt[Ht]=rt},function(rt){fr[rt]&&fr[rt].forEach(function(Ht){return Ht("error")}),fr[rt]=null,qt[rt]="error"})),fr[Xe].push(function(rt){gr(rt,N,O,Je)}))}else gr(Re,N,O,Je)},q=0,Ae=U.length;q>1;bi(B,O,q,N,U,X%2),$n(B,O,F,N,q-1,X+1),$n(B,O,F,q+1,U,X+1)}}function bi(B,O,F,N,U,X){for(;U>N;){if(U-N>600){var q=U-N+1,Ae=F-N+1,Re=Math.log(q),Be=.5*Math.exp(2*Re/3),Je=.5*Math.sqrt(Re*Be*(q-Be)/q)*(Ae-q/2<0?-1:1),Xe=Math.max(N,Math.floor(F-Ae*Be/q+Je)),_t=Math.min(U,Math.floor(F+(q-Ae)*Be/q+Je));bi(B,O,F,Xe,_t,X)}var rt=O[2*F+X],Ht=N,Yt=U;for(qa(B,O,N,F),O[2*U+X]>rt&&qa(B,O,N,U);Htrt;)Yt--}O[2*N+X]===rt?qa(B,O,N,Yt):(Yt++,qa(B,O,Yt,U)),Yt<=F&&(N=Yt+1),F<=Yt&&(U=Yt-1)}}function qa(B,O,F,N){Jo(B,F,N),Jo(O,2*F,2*N),Jo(O,2*F+1,2*N+1)}function Jo(B,O,F){var N=B[O];B[O]=B[F],B[F]=N}function Ds(B,O,F,N,U,X,q){for(var Ae=[0,B.length-1,0],Re=[],Be,Je;Ae.length;){var Xe=Ae.pop(),_t=Ae.pop(),rt=Ae.pop();if(_t-rt<=q){for(var Ht=rt;Ht<=_t;Ht++)Be=O[2*Ht],Je=O[2*Ht+1],Be>=F&&Be<=U&&Je>=N&&Je<=X&&Re.push(B[Ht]);continue}var Yt=Math.floor((rt+_t)/2);Be=O[2*Yt],Je=O[2*Yt+1],Be>=F&&Be<=U&&Je>=N&&Je<=X&&Re.push(B[Yt]);var ne=(Xe+1)%2;(Xe===0?F<=Be:N<=Je)&&(Ae.push(rt),Ae.push(Yt-1),Ae.push(ne)),(Xe===0?U>=Be:X>=Je)&&(Ae.push(Yt+1),Ae.push(_t),Ae.push(ne))}return Re}function af(B,O,F,N,U,X){for(var q=[0,B.length-1,0],Ae=[],Re=U*U;q.length;){var Be=q.pop(),Je=q.pop(),Xe=q.pop();if(Je-Xe<=X){for(var _t=Xe;_t<=Je;_t++)mh(O[2*_t],O[2*_t+1],F,N)<=Re&&Ae.push(B[_t]);continue}var rt=Math.floor((Xe+Je)/2),Ht=O[2*rt],Yt=O[2*rt+1];mh(Ht,Yt,F,N)<=Re&&Ae.push(B[rt]);var ne=(Be+1)%2;(Be===0?F-U<=Ht:N-U<=Yt)&&(q.push(Xe),q.push(rt-1),q.push(ne)),(Be===0?F+U>=Ht:N+U>=Yt)&&(q.push(rt+1),q.push(Je),q.push(ne))}return Ae}function mh(B,O,F,N){var U=B-F,X=O-N;return U*U+X*X}var Zl=function(O){return O[0]},jd=function(O){return O[1]},Nl=function(O,F,N,U,X){F===void 0&&(F=Zl),N===void 0&&(N=jd),U===void 0&&(U=64),X===void 0&&(X=Float64Array),this.nodeSize=U,this.points=O;for(var q=O.length<65536?Uint16Array:Uint32Array,Ae=this.ids=new q(O.length),Re=this.coords=new X(O.length*2),Be=0;Be=N;Re--)q=this._cluster(q,Re),this.trees[Re]=new Nl(q,of,X0,X,Float32Array);return this},js.prototype.getClusters=function(O,F){var N=((O[0]+180)%360+360)%360-180,U=Math.max(-90,Math.min(90,O[1])),X=O[2]===180?180:((O[2]+180)%360+360)%360-180,q=Math.max(-90,Math.min(90,O[3]));if(O[2]-O[0]>=360)N=-180,X=180;else if(N>X){var Ae=this.getClusters([N,U,180,q],F),Re=this.getClusters([-180,U,X,q],F);return Ae.concat(Re)}for(var Be=this.trees[this._limitZoom(F)],Je=Be.range(vg(N),Yf(q),vg(X),Yf(U)),Xe=[],_t=0,rt=Je;_tF&&(Yt+=Bt.numPoints||1)}if(Yt>=Re){for(var $t=Xe.x*Ht,ee=Xe.y*Ht,Se=Ae&&Ht>1?this._map(Xe,!0):null,Ze=(Je<<5)+(F+1)+this.points.length,Ct=0,vr=rt;Ct1)for(var Dn=0,si=rt;Dn>5},js.prototype._getOriginZoom=function(O){return(O-this.points.length)%32},js.prototype._map=function(O,F){if(O.numPoints)return F?Zf({},O.properties):O.properties;var N=this.points[O.index].properties,U=this.options.map(N);return F&&U===N?Zf({},U):U};function fg(B,O,F,N,U){return{x:B,y:O,zoom:1/0,id:F,parentId:-1,numPoints:N,properties:U}}function dg(B,O){var F=B.geometry.coordinates,N=F[0],U=F[1];return{x:vg(N),y:Yf(U),zoom:1/0,index:O,parentId:-1}}function Xd(B){return{type:"Feature",id:B.id,properties:Yd(B),geometry:{type:"Point",coordinates:[qf(B.x),pg(B.y)]}}}function Yd(B){var O=B.numPoints,F=O>=1e4?Math.round(O/1e3)+"k":O>=1e3?Math.round(O/100)/10+"k":O;return Zf(Zf({},B.properties),{cluster:!0,cluster_id:B.id,point_count:O,point_count_abbreviated:F})}function vg(B){return B/360+.5}function Yf(B){var O=Math.sin(B*Math.PI/180),F=.5-.25*Math.log((1+O)/(1-O))/Math.PI;return F<0?0:F>1?1:F}function qf(B){return(B-.5)*360}function pg(B){var O=(180-B*360)*Math.PI/180;return 360*Math.atan(Math.exp(O))/Math.PI-90}function Zf(B,O){for(var F in O)B[F]=O[F];return B}function of(B){return B.x}function X0(B){return B.y}typeof window<"u"&&requestAnimationFrame(Y0);function Y0(B){requestAnimationFrame(Y0),Pn.update(B)}var Kl=function(){function B(O,F,N){h(this,B),F instanceof g||(F=new g(F)),this.dataSet=F,this.map=O,N.draw==="cluster"&&this.refreshCluster(N)}return c(B,[{key:"refreshCluster",value:function(F){F=F||this.options,this.supercluster=new js({maxZoom:F.maxZoom||19,radius:F.clusterRadius||100,minPoints:F.minPoints||2,extent:F.extent||512}),this.supercluster.load(this.dataSet.get()),this.supercluster.trees.forEach(function(N){var U=0,X=1/0;N.points.forEach(function(q){U=Math.max(q.numPoints||0,U),X=Math.min(q.numPoints||1/0,X)}),N.max=U,N.min=X}),this.clusterDataSet=new g}},{key:"getDefaultContextConfig",value:function(){return{globalAlpha:1,globalCompositeOperation:"source-over",imageSmoothingEnabled:!0,strokeStyle:"#000000",fillStyle:"#000000",shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0)",lineWidth:1,lineCap:"butt",lineJoin:"miter",miterLimit:10,lineDashOffset:0,font:"10px sans-serif",textAlign:"start",textBaseline:"alphabetic"}}},{key:"initDataRange",value:function(F){var N=this;if(N.intensity=new w({maxSize:N.options.maxSize,minSize:N.options.minSize,gradient:N.options.gradient,max:N.options.max||this.dataSet.getMax("count")}),N.category=new vo(N.options.splitList),N.choropleth=new No(N.options.splitList),N.options.splitList===void 0&&N.category.generateByDataSet(this.dataSet,N.options.color),N.options.splitList===void 0){var U=N.options.min||this.dataSet.getMin("count"),X=N.options.max||this.dataSet.getMax("count");N.choropleth.generateByMinMax(U,X)}}},{key:"getLegend",value:function(F){this.options.draw;var N=this;if(N.options.draw=="intensity"||N.options.draw=="heatmap")return this.intensity.getLegend(F);if(N.options.draw=="category")return this.category.getLegend(F)}},{key:"processData",value:function(F){var N=this,U=N.options.draw;if(U=="bubble"||U=="intensity"||U=="category"||U=="choropleth"||U=="simple")for(var X=0;X=this.getZoom())?X=this.clusterDataSet.get():X=this.dataSet.get();for(var q=0;q-1){if(U.isPointInStroke&&U.isPointInStroke(Re,Be))return X[q]}else if(U.isPointInPath(Re,Be))return X[q]}}},{key:"getClusterPoints",value:function(F){var N=this;if(F.type!=="Feature")return[];var U=this.supercluster.getChildren(F.id);return U.map(function(X){return X.type==="Feature"?N.getClusterPoints(X):X}).flat()}},{key:"clickEvent",value:function(F,N){if(!!this.options.methods){var U=this.isPointInPath(this.getContext(),F);if(U){if(this.options.draw==="cluster"){var X=this.getClusterPoints(U);U.children=X}this.options.methods.click(U,N)}else this.options.methods.click(null,N)}}},{key:"mousemoveEvent",value:function(F,N){if(!!this.options.methods){var U=this.isPointInPath(this.getContext(),F);if(U){if(this.options.draw==="cluster"){var X=this.getClusterPoints(U);U.children=X}this.options.methods.mousemove(U,N)}else this.options.methods.mousemove(null,N)}}},{key:"tapEvent",value:function(F,N){if(!!this.options.methods){var U=this.isPointInPath(this.getContext(),F);if(U){if(this.options.draw==="cluster"){var X=this.getClusterPoints(U);U.children=X}this.options.methods.tap(U,N)}else this.options.methods.tap(null,N)}}},{key:"update",value:function(F,N){var U=this,X=F.options,q=U.options;for(var Ae in X)q[Ae]=X[Ae];U.init(q),N!==!1&&U.draw()}},{key:"setOptions",value:function(F){var N=this;N.dataSet.reset(),N.init(F),N.draw()}},{key:"set",value:function(F){var N=this,U=this.getContext(),X=this.getDefaultContextConfig();for(var q in X)U[q]=X[q];N.init(F.options),N.draw()}},{key:"destroy",value:function(){this.unbindEvent(),this.hide()}},{key:"initAnimator",value:function(){var F=this,N=F.options.animation;if(F.options.draw=="time"||F.isEnabledTime()){N.stepsRange||(N.stepsRange={start:this.dataSet.getMin("time")||0,end:this.dataSet.getMax("time")||0}),this.steps={step:N.stepsRange.start},F.animator=new Pn.Tween(this.steps).onUpdate(function(){F._canvasUpdate(this.step)}).repeat(1/0),this.addAnimatorEvent();var U=N.duration*1e3||5e3;F.animator.to({step:N.stepsRange.end},U),F.animator.start()}else F.animator&&F.animator.stop()}},{key:"addAnimatorEvent",value:function(){}},{key:"animatorMovestartEvent",value:function(){var F=this.options.animation;this.isEnabledTime()&&this.animator&&(this.steps.step=F.stepsRange.start,this.animator.stop())}},{key:"animatorMoveendEvent",value:function(){this.isEnabledTime()&&this.animator&&this.animator.start()}}]),B}(),sf=typeof window>"u"?{}:window,mu=sf.BMap||sf.BMapGL,bs=function(B){d(O,B);function O(F,N,U){h(this,O);var X=v(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,F,N,U));X.map=F,X.options=U||{},X.dataSet=N;var q=new Lo({map:F,zIndex:X.options.zIndex,update:X._canvasUpdate.bind(X)});X.init(X.options),X.canvasLayer=q,X.transferToMercator();var Ae=X;return N.on("change",function(){Ae.transferToMercator(),q.draw()}),X.ctx=q.canvas.getContext("2d"),X.start(),X}return c(O,[{key:"draw",value:function(){this.canvasLayer.draw()}},{key:"init",value:function(N){var U=this;U.options=N,this.initDataRange(N),this.context=U.options.context||"2d",U.options.zIndex&&this.canvasLayer&&this.canvasLayer.setZIndex(U.options.zIndex),U.options.max&&this.intensity.setMax(U.options.max),U.options.min&&this.intensity.setMin(U.options.min),this.initAnimator()}},{key:"transferToMercator",value:function(){var N=this.map,U=N.getMapType(),X;if(U.getProjection?X=U.getProjection():X={lngLatToPoint:function(Re){var Be=N.lnglatToMercator(Re.lng,Re.lat);return{x:Be[0],y:Be[1]}}},this.options.coordType!=="bd09mc"){var q=this.dataSet.get();q=this.dataSet.transferCoordinate(q,function(Ae){var Re=X.lngLatToPoint({lng:Ae[0],lat:Ae[1]});return[Re.x,Re.y]},"coordinates","coordinates_mercator"),this.dataSet._set(q)}}},{key:"_canvasUpdate",value:function(){var N=this.ctx;if(!!N){var U=this.map,X,q;U.getMapType().getProjection?(X=U.getMapType().getProjection(),q=X.lngLatToPoint(U.getCenter())):(q={x:U.getCenter().lng,y:U.getCenter().lat},q.x>-180&&q.x<180&&(q=U.lnglatToMercator(q.x,q.y),q={x:q[0],y:q[1]}),X={lngLatToPoint:function(Xe){var _t=U.lnglatToMercator(Xe.lng,Xe.lat);return{x:_t[0],y:_t[1]}}});var Ae;X.getZoomUnits?Ae=X.getZoomUnits(U.getZoom()):Ae=Math.pow(2,18-U.getZoom());var Re=new mu.Pixel(q.x-U.getSize().width/2*Ae,q.y+U.getSize().height/2*Ae);i(N);var Be={fromColumn:this.options.coordType=="bd09mc"?"coordinates":"coordinates_mercator",transferCoordinate:function(Xe){if(!!Xe){var _t=(Xe[0]-Re.x)/Ae,rt=(Re.y-Xe[1])/Ae;return[_t,rt]}}};this.data=this.dataSet.get(Be),this.processData(this.data),this.drawAnimation()}}},{key:"drawAnimation",value:function(){var N=this.ctx,U=this.data;if(!!U){N.save(),N.globalCompositeOperation="destination-out",N.fillStyle="rgba(0, 0, 0, .1)",N.fillRect(0,0,N.canvas.width,N.canvas.height),N.restore(),N.save(),this.options.shadowColor&&(N.shadowColor=this.options.shadowColor),this.options.shadowBlur&&(N.shadowBlur=this.options.shadowBlur),this.options.globalAlpha&&(N.globalAlpha=this.options.globalAlpha),this.options.globalCompositeOperation&&(N.globalCompositeOperation=this.options.globalCompositeOperation);for(var X=this.options,q=0;qAe&&(U[q]._size=Re),N.lineWidth=1,N.strokeStyle=U[q].strokeStyle||U[q]._strokeStyle||X.strokeStyle||"yellow",N.stroke();var Be=U[q].fillStyle||U[q]._fillStyle||X.fillStyle;Be&&(N.fillStyle=Be,N.fill())}else if(U[q].geometry.type==="LineString"){N.beginPath();var Je=U[q].size||this.options.size||5,Re=U[q].minSize||this.options.minSize||0;U[q]._index===void 0&&(U[q]._index=0);var Xe=U[q]._index;N.arc(U[q].geometry._coordinates[Xe][0],U[q].geometry._coordinates[Xe][1],Je,0,Math.PI*2,!0),N.closePath(),U[q]._index++,U[q]._index>=U[q].geometry._coordinates.length&&(U[q]._index=0);var _t=U[q].strokeStyle||X.strokeStyle,Be=U[q].fillStyle||X.fillStyle||"yellow";N.fillStyle=Be,N.fill(),_t&&X.lineWidth&&(N.lineWidth=X.lineWidth||1,N.strokeStyle=_t,N.stroke())}N.restore()}}},{key:"animate",value:function(){this.drawAnimation();var N=this.options.animateTime||100;this.timeout=setTimeout(this.animate.bind(this),N)}},{key:"start",value:function(){this.stop(),this.animate()}},{key:"stop",value:function(){clearTimeout(this.timeout)}},{key:"unbindEvent",value:function(){}},{key:"hide",value:function(){this.canvasLayer.hide(),this.stop()}},{key:"show",value:function(){this.start()}},{key:"clearData",value:function(){this.dataSet&&this.dataSet.clear(),this.update({options:null})}},{key:"destroy",value:function(){this.stop(),this.unbindEvent(),this.clearData(),this.map.removeOverlay(this.canvasLayer),this.canvasLayer=null}}]),O}(Kl),lf=typeof window>"u"?{}:window,gg=lf.BMap||lf.BMapGL,Wm=function(B){d(O,B);function O(F,N,U){h(this,O);var X=v(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,F,N,U)),q=X;U=U||{},X.clickEvent=X.clickEvent.bind(X),X.mousemoveEvent=X.mousemoveEvent.bind(X),X.tapEvent=X.tapEvent.bind(X),q.init(U),q.argCheck(U),q.transferToMercator();var Ae=X.canvasLayer=new Lo({map:F,context:X.context,updateImmediate:U.updateImmediate,paneName:U.paneName,mixBlendMode:U.mixBlendMode,enableMassClear:U.enableMassClear,zIndex:U.zIndex,update:function(){q._canvasUpdate()}});return N.on("change",function(){q.transferToMercator(),U.draw==="cluster"&&q.refreshCluster(),Ae.draw()}),X}return c(O,[{key:"clickEvent",value:function(N){var U=N.pixel;f(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"clickEvent",this).call(this,U,N)}},{key:"mousemoveEvent",value:function(N){var U=N.pixel;f(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"mousemoveEvent",this).call(this,U,N)}},{key:"tapEvent",value:function(N){var U=N.pixel;f(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"tapEvent",this).call(this,U,N)}},{key:"bindEvent",value:function(N){this.unbindEvent();var U=this.map,X=0,q=this;this.options.methods&&(this.options.methods.click&&(U.setDefaultCursor("default"),U.addEventListener("click",this.clickEvent)),this.options.methods.mousemove&&U.addEventListener("mousemove",this.mousemoveEvent),"ontouchend"in window.document&&this.options.methods.tap&&(U.addEventListener("touchstart",function(Ae){X=new Date}),U.addEventListener("touchend",function(Ae){new Date-X<300&&q.tapEvent(Ae)})))}},{key:"unbindEvent",value:function(N){var U=this.map;this.options.methods&&(this.options.methods.click&&U.removeEventListener("click",this.clickEvent),this.options.methods.mousemove&&U.removeEventListener("mousemove",this.mousemoveEvent))}},{key:"transferToMercator",value:function(N){N||(N=this.dataSet);var U=this.map,X=U.getMapType(),q;if(X.getProjection?q=X.getProjection():q={lngLatToPoint:function(Be){var Je=U.lnglatToMercator(Be.lng,Be.lat);return{x:Je[0],y:Je[1]}}},this.options.coordType!=="bd09mc"){var Ae=N.get();Ae=N.transferCoordinate(Ae,function(Re){if(Re[0]<-180||Re[0]>180||Re[1]<-90||Re[1]>90)return Re;var Be=q.lngLatToPoint({lng:Re[0],lat:Re[1]});return[Be.x,Be.y]},"coordinates","coordinates_mercator"),N._set(Ae)}}},{key:"getContext",value:function(){return this.canvasLayer.canvas.getContext(this.context)}},{key:"_canvasUpdate",value:function(N){if(!!this.canvasLayer){var U=this,X=this.options.animation,q=this.canvasLayer._map,Ae,Re;q.getMapType().getProjection?(Ae=q.getMapType().getProjection(),Re=Ae.lngLatToPoint(q.getCenter())):(Re={x:q.getCenter().lng,y:q.getCenter().lat},Re.x>-180&&Re.x<180&&(Re=q.lnglatToMercator(Re.x,Re.y),Re={x:Re[0],y:Re[1]}),Ae={lngLatToPoint:function(nn){var Dn=q.lnglatToMercator(nn.lng,nn.lat);return{x:Dn[0],y:Dn[1]}}});var Be;Ae.getZoomUnits?Be=Ae.getZoomUnits(q.getZoom()):Be=Math.pow(2,18-q.getZoom());var Je=new gg.Pixel(Re.x-q.getSize().width/2*Be,Re.y+q.getSize().height/2*Be),Xe=this.getContext();if(this.isEnabledTime()){if(N===void 0){i(Xe);return}this.context=="2d"&&(Xe.save(),Xe.globalCompositeOperation="destination-out",Xe.fillStyle="rgba(0, 0, 0, .1)",Xe.fillRect(0,0,Xe.canvas.width,Xe.canvas.height),Xe.restore())}else i(Xe);if(this.context=="2d")for(var _t in this.options)Xe[_t]=this.options[_t];else Xe.clear(Xe.COLOR_BUFFER_BIT);if(!(this.options.minZoom&&q.getZoom()this.options.maxZoom)){var rt=1;this.context!="2d"&&(rt=this.canvasLayer.devicePixelRatio);var Ht={fromColumn:this.options.coordType=="bd09mc"?"coordinates":"coordinates_mercator",transferCoordinate:function(nn){var Dn=(nn[0]-Je.x)/Be*rt,si=(Je.y-nn[1])/Be*rt;return[Dn,si]}};N!==void 0&&(Ht.filter=function(Jr){var nn=X.trails||10;return!!(N&&Jr.time>N-nn&&Jr.time=ne)){var ye=this.map.getBounds(),Ue=ye.getNorthEast(),Bt=ye.getSouthWest(),$t=this.supercluster.getClusters([Bt.lng,Bt.lat,Ue.lng,Ue.lat],ne);this.pointCountMax=this.supercluster.trees[ne].max,this.pointCountMin=this.supercluster.trees[ne].min;var ee={},Se=null,Ze=null;this.pointCountMax===this.pointCountMin?(Se=this.options.fillStyle,Ze=this.options.minSize||8):ee=new w({min:this.pointCountMin,max:this.pointCountMax,minSize:this.options.minSize||8,maxSize:this.options.maxSize||30,gradient:this.options.gradient});for(var Ct=0;Ct<$t.length;Ct++){var vr=$t[Ct];vr.properties&&vr.properties.cluster_id?($t[Ct].size=Ze||ee.getSize(vr.properties.point_count),$t[Ct].fillStyle=Se||ee.getColor(vr.properties.point_count)):$t[Ct].size=U.options.size}this.clusterDataSet.set($t),this.transferToMercator(this.clusterDataSet),Yt=U.clusterDataSet.get(Ht)}else Yt=U.dataSet.get(Ht);this.processData(Yt);var Cr=q.pointToPixel(new gg.Point(0,0));U.options.unit=="m"?(U.options.size&&(U.options._size=U.options.size/Be),U.options.width&&(U.options._width=U.options.width/Be),U.options.height&&(U.options._height=U.options.height/Be)):(U.options._size=U.options.size,U.options._height=U.options.height,U.options._width=U.options.width),this.drawContext(Xe,Yt,U.options,Cr),U.options.updateCallback&&U.options.updateCallback(N)}}}},{key:"init",value:function(N){var U=this;U.options=N,this.initDataRange(N),this.context=U.options.context||"2d",U.options.zIndex&&this.canvasLayer&&this.canvasLayer.setZIndex(U.options.zIndex),U.options.max&&this.intensity.setMax(U.options.max),U.options.min&&this.intensity.setMin(U.options.min),this.initAnimator(),this.bindEvent()}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"addAnimatorEvent",value:function(){this.map.addEventListener("movestart",this.animatorMovestartEvent.bind(this)),this.map.addEventListener("moveend",this.animatorMoveendEvent.bind(this))}},{key:"show",value:function(){this.map.addOverlay(this.canvasLayer),this.bindEvent()}},{key:"hide",value:function(){this.unbindEvent(),this.map.removeOverlay(this.canvasLayer)}},{key:"draw",value:function(){this.canvasLayer&&this.canvasLayer.draw()}},{key:"clearData",value:function(){this.dataSet&&this.dataSet.clear(),this.update({options:null})}},{key:"destroy",value:function(){this.unbindEvent(),this.clearData(),this.map.removeOverlay(this.canvasLayer),this.canvasLayer=null}}]),O}(Kl);function ho(B){this.isAdded_=!1,this.isAnimated_=!1,this.paneName_=ho.DEFAULT_PANE_NAME_,this.updateHandler_=null,this.resizeHandler_=null,this.topLeft_=null,this.centerListener_=null,this.resizeListener_=null,this.needsResize_=!0,this.requestAnimationFrameId_=null;var O=document.createElement("canvas");O.style.position="absolute",O.style.top=0,O.style.left=0,O.style.pointerEvents="none",this.canvas=O,this.canvasCssWidth_=300,this.canvasCssHeight_=150,this.resolutionScale_=1;function F(N,U){return function(){U.apply(N)}}this.repositionFunction_=F(this,this.repositionCanvas_),this.resizeFunction_=F(this,this.resize_),this.requestUpdateFunction_=F(this,this.update_),B&&this.setOptions(B)}var Es=typeof window>"u"?{}:window;Es.google&&Es.google.maps&&(ho.prototype=new google.maps.OverlayView,ho.DEFAULT_PANE_NAME_="overlayLayer",ho.CSS_TRANSFORM_=function(){for(var B=document.createElement("div"),O=["transform","WebkitTransform","MozTransform","OTransform","msTransform"],F=0;FU.options.maxZoom)){var Je=1;this.context!="2d"&&(Je=this.canvasLayer.devicePixelRatio);var Re=this.map,Be=Re.getProjection(),Je=Math.pow(2,Re.zoom)*resolutionScale,Xe=Be.fromLatLngToPoint(this.canvasLayer.getTopLeft()),_t={transferCoordinate:function(Ue){var Bt=new google.maps.LatLng(Ue[1],Ue[0]),$t=Be.fromLatLngToPoint(Bt),ee={x:($t.x-Xe.x)*Je,y:($t.y-Xe.y)*Je};return[ee.x,ee.y]}};N!==void 0&&(_t.filter=function(ye){var Ue=X.trails||10;return!!(N&&ye.time>N-Ue&&ye.timeU-ne&&Yt.time0&&arguments[0]!==void 0?arguments[0]:null,N=arguments[1],U=arguments[2];h(this,O);var X=v(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,F,N,U));return X.options=U,X.canvasLayer={canvas:null,devicePixelRatio:window.devicePixelRatio},X.layer_=null,X.initDataRange(U),X.initAnimator(),X.onEvents(),F.on("complete",function(){this.init(F,U),this.argCheck(U)},X),X}return c(O,[{key:"init",value:function(N,U){if(N)this.map=N,this.context=this.options.context||"2d",this.getCanvasLayer();else throw new Error("not map object")}},{key:"_canvasUpdate",value:function(N){this.render(this.canvasLayer.canvas,N)}},{key:"render",value:function(N,U){if(!!N){var X=this.map,q=N.getContext(this.context),Ae=this.options.animation;if(this.isEnabledTime()){if(U===void 0)return i(q),this;this.context==="2d"&&(q.save(),q.globalCompositeOperation="destination-out",q.fillStyle="rgba(0, 0, 0, .1)",q.fillRect(0,0,q.canvas.width,q.canvas.height),q.restore())}else i(q);if(this.context==="2d")for(var Re in this.options)q[Re]=this.options[Re];else q.clear(q.COLOR_BUFFER_BIT);var Be={transferCoordinate:function(_t){var rt=X.lngLatToContainer(new AMap.LngLat(_t[0],_t[1]));return[rt.x,rt.y]}};U!==void 0&&(Be.filter=function(Xe){var _t=Ae.trails||10;return!!(U&&Xe.time>U-_t&&Xe.time0&&arguments[0]!==void 0?arguments[0]:null,N=arguments[1],U=arguments[2];h(this,O);var X=v(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,F,N,U));return X.options=U,X.canvasLayer={canvas:null,devicePixelRatio:window.devicePixelRatio},X.layer_=null,X.previousCursor_=void 0,X.init(F,U),X.argCheck(U),X}return c(O,[{key:"init",value:function(N,U){if(N&&N instanceof ol.Map)this.$Map=N,this.context=this.options.context||"2d",this.getCanvasLayer(),this.initDataRange(U),this.initAnimator(),this.onEvents();else throw new Error("not map object")}},{key:"_canvasUpdate",value:function(N){this.render(this.canvasLayer.canvas,N)}},{key:"render",value:function(N,U){var X=this.$Map,q=N.getContext(this.context),Ae=this.options.animation,Re=this.options.hasOwnProperty("projection")?this.options.projection:"EPSG:4326",Be=this.$Map.getView().getProjection().getCode();if(this.isEnabledTime()){if(U===void 0)return i(q),this;this.context==="2d"&&(q.save(),q.globalCompositeOperation="destination-out",q.fillStyle="rgba(0, 0, 0, .1)",q.fillRect(0,0,q.canvas.width,q.canvas.height),q.restore())}else i(q);if(this.context==="2d")for(var Je in this.options)q[Je]=this.options[Je];else q.clear(q.COLOR_BUFFER_BIT);var Xe={};Xe.transferCoordinate=Re===Be?function(rt){return X.getPixelFromCoordinate(rt)}:function(rt){return X.getPixelFromCoordinate(ol.proj.transform(rt,Re,Be))},U!==void 0&&(Xe.filter=function(rt){var Ht=Ae.trails||10;return!!(U&&rt.time>U-Ht&&rt.timeU.options.maxZoom)){var Be=Ae.getBounds(),Je=Be.getEast()-Be.getWest(),Xe=Be.getNorth()-Be.getSouth(),_t=Ae.getSize(),rt=Je/_t.x,Ht=Xe/_t.y,Yt=this.canvasLayer.getTopLeft(),ne=Ae.latLngToContainerPoint(Yt),ye={transferCoordinate:function(Se){var Ze;U.context==="2d"?Ze=Ae.latLngToContainerPoint(L.latLng(Se[1],Se[0])):Ze={x:(Se[0]-Yt.lng)/rt,y:(Yt.lat-Se[1])/Ht};var Ct={x:Ze.x-ne.x,y:Ze.y-ne.y};return[Ct.x,Ct.y]}};N!==void 0&&(ye.filter=function(ee){var Se=X.trails||10;return N&&ee.time>N-Se&&ee.time"u"?{}:window,N=this.devicePixelRatio=F.devicePixelRatio;return(!this.mapVOptions.context||this.mapVOptions.context==="2d")&&O.getContext("2d").scale(N,N),O},_resize:function(){var O=this.canvas;if(!!O){var F=this._map,N=F.getSize();O.width=N.x,O.height=N.y,O.style.width=N.x+"px",O.style.height=N.y+"px";var U=F.getBounds(),X=F.latLngToLayerPoint(U.getNorthWest());L.DomUtil.setPosition(O,X)}},_reset:function(){this._resize(),this._render()},redraw:function(){this._resize(),this._render()},_render:function(){this.render()}});mg=function(O,F,N){return new Uv(O,F,N)}}var _h=mg,Vv=function(B){d(O,B);function O(F,N,U,X){h(this,O);var q=v(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,F,N,U));return Kl?(q.map=F,q.scene=F.scene,q.dataSet=N,U=U||{},q.init(U),q.argCheck(U),q.initDevicePixelRatio(),q.canvasLayer=X,q.stopAniamation=!1,q.animation=U.animation,q.clickEvent=q.clickEvent.bind(q),q.mousemoveEvent=q.mousemoveEvent.bind(q),q.bindEvent(),q):v(q)}return c(O,[{key:"initDevicePixelRatio",value:function(){this.devicePixelRatio=window.devicePixelRatio||1}},{key:"clickEvent",value:function(N){var U=N.point;f(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"clickEvent",this).call(this,U,N)}},{key:"mousemoveEvent",value:function(N){var U=N.point;f(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"mousemoveEvent",this).call(this,U,N)}},{key:"addAnimatorEvent",value:function(){}},{key:"animatorMovestartEvent",value:function(){var N=this.options.animation;this.isEnabledTime()&&this.animator&&(this.steps.step=N.stepsRange.start)}},{key:"animatorMoveendEvent",value:function(){this.isEnabledTime()&&this.animator}},{key:"bindEvent",value:function(){this.map,this.options.methods&&(this.options.methods.click,this.options.methods.mousemove)}},{key:"unbindEvent",value:function(){var N=this.map;this.options.methods&&(this.options.methods.click&&N.off("click",this.clickEvent),this.options.methods.mousemove&&N.off("mousemove",this.mousemoveEvent))}},{key:"getContext",value:function(){return this.canvasLayer.canvas.getContext(this.context)}},{key:"init",value:function(N){this.options=N,this.initDataRange(N),this.context=this.options.context||"2d",this.options.zIndex&&this.canvasLayer&&this.canvasLayer.setZIndex(this.options.zIndex),this.initAnimator()}},{key:"_canvasUpdate",value:function(N){this.map;var U=this.scene;if(this.canvasLayer&&!this.stopAniamation){var X=this.options.animation,q=this.getContext();if(this.isEnabledTime()){if(N===void 0)return void this.clear(q);this.context==="2d"&&(q.save(),q.globalCompositeOperation="destination-out",q.fillStyle="rgba(0, 0, 0, .1)",q.fillRect(0,0,q.canvas.width,q.canvas.height),q.restore())}else this.clear(q);if(this.context==="2d")for(var Ae in this.options)q[Ae]=this.options[Ae];else q.clear(q.COLOR_BUFFER_BIT);var Re={transferCoordinate:function(_t){var rt=Cesium.Cartesian3.fromDegrees(_t[0],_t[1]),Ht=Cesium.SceneTransforms.wgs84ToWindowCoordinates(U,rt);return Ht==null?[-1,-1]:[Ht.x,Ht.y]}};N!==void 0&&(Re.filter=function(Xe){var _t=X.trails||10;return!!(N&&Xe.time>N-_t&&Xe.time"u"?{}:window,f=c.devicePixelRatio||1;h=f}var d={transferCoordinate:function(m){var y=(m[0]-t._mapCenter[0])/t._reselutions,_=(t._mapCenter[1]-m[1])/t._reselutions,x=[y+t._mapCenterPx[0],_+t._mapCenterPx[1]];return x=v(x,t._mapCenterPx,1),[(x[0]+t.offset[0])*h,(x[1]+t.offset[1])*h]}};function v(m,y,_){var x=(m[0]-y[0])*_+y[0],S=(m[1]-y[1])*_+y[1];return[x,S]}e!==void 0&&(d.filter=function(m){var y=r.trails||10;return e&&m.time>e-y&&m.time\xA9 SuperMap iClient",canvasFunction:r,logo:br.getOlVersion()==="4"?t.logo:null,projection:t.projection,ratio:t.ratio,resolutions:t.resolutions,state:t.state}),this.map=e.map,this.dataSet=e.dataSet,this.mapvOptions=e.mapvOptions;function r(i,a,o,s,l){var u=s[0]/o,h=s[1]/o,c=this.map.getSize()[0],f=this.map.getSize()[1];this.layer||(this.layer=new WFr(this.map,this.dataSet,this.mapvOptions,u,h,this)),this.layer.pixelRatio=o,this.layer.offset=[(u-c)/2,(h-f)/2],this.rotate?this.rotate!==this.map.getView().getRotation()&&(this.layer.canvasLayer.resize(u,h),this.rotate=this.map.getView().getRotation()):this.rotate=this.map.getView().getRotation();var d=this.layer.canvasLayer.canvas;this.layer.isEnabledTime()||(this.layer.canvasLayer.resize(u,h),this.layer.canvasLayer.draw()),this.context||(this.context=br.createCanvasContext2D(u,h));var v=this.context.canvas;return this.context.clearRect(0,0,v.width,v.height),v.width=s[0],v.height=s[1],v.style.width=s[0]+"px",v.style.height=s[1]+"px",this.context.drawImage(d,0,0),(this.resolution!==a||JSON.stringify(this.extent)!==JSON.stringify(i))&&(this.resolution=a,this.extent=i),this.context.canvas}}addData(e,t){this.layer.addData(e,t)}getData(){return this.layer&&(this.dataSet=this.layer.getData()),this.dataSet}removeData(e){this.layer&&this.layer.removeData(e)}clearData(){this.layer.clearData()}update(e){this.layer.update(e),this.changed()}}class jFr extends AS{constructor(e,t){super(e,t),this.style=t.style,this.isHoverAble=t.isHoverAble,this.highlightStyle=t.highlightStyle,this.themeField=t.themeField,this.styleGroups=t.styleGroups}destroy(){this.style=null,this.themeField=null,this.styleGroups=null,AS.prototype.destroy.apply(this,arguments)}createThematicFeature(e){var t=this.getStyleByData(e),r={};r.nodesClipPixel=this.nodesClipPixel,r.isHoverAble=this.isHoverAble,r.isMultiHover=this.isMultiHover,r.isClickAble=this.isClickAble,r.highlightStyle=Vn.transformStyle(this.highlightStyle);for(var i=new f3(e,this,Vn.transformStyle(t),r),a=0;a0&&r.attributes){var i=this.themeField,a=r.attributes,o=this.styleGroups,s=!1,l=null;for(var u in a)if(i===u){s=!0,l=a[u];break}if(s){for(var h=0,c=o.length;h=o[h].start&&l=0))throw new Error("precision must be a positive number");var t=Math.pow(10,e||0);return Math.round(n*t)/t}function qM(n,e){e===void 0&&(e="kilometers");var t=v$[e];if(!t)throw new Error(e+" units is invalid");return n*t}function S2(n,e){e===void 0&&(e="kilometers");var t=v$[e];if(!t)throw new Error(e+" units is invalid");return n/t}function O7(n,e){return aw(S2(n,e))}function w2(n){var e=n%360;return e<0&&(e+=360),e}function aw(n){var e=n%(2*Math.PI);return e*180/Math.PI}function ku(n){var e=n%360;return e*Math.PI/180}function b2(n,e,t){if(e===void 0&&(e="kilometers"),t===void 0&&(t="kilometers"),!(n>=0))throw new Error("length must be a positive number");return qM(S2(n,e),t)}function xZe(n,e,t){if(e===void 0&&(e="meters"),t===void 0&&(t="kilometers"),!(n>=0))throw new Error("area must be a positive number");var r=P7[e];if(!r)throw new Error("invalid original units");var i=P7[t];if(!i)throw new Error("invalid final units");return n/r*i}function Gu(n){return!isNaN(n)&&n!==null&&!Array.isArray(n)}function Io(n){return!!n&&n.constructor===Object}function SZe(n){if(!n)throw new Error("bbox is required");if(!Array.isArray(n))throw new Error("bbox must be an Array");if(n.length!==4&&n.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");n.forEach(function(e){if(!Gu(e))throw new Error("bbox must only contain numbers")})}function wZe(n){if(!n)throw new Error("id is required");if(["string","number"].indexOf(typeof n)===-1)throw new Error("id must be a number or a string")}const bZe=Object.freeze(Object.defineProperty({__proto__:null,earthRadius:Au,factors:v$,unitsFactors:vZe,areaFactors:P7,feature:fu,geometry:pZe,point:Vi,points:gZe,polygon:Qi,polygons:yZe,lineString:yo,lineStrings:mZe,featureCollection:Zn,multiLineString:Pw,multiPoint:$k,multiPolygon:Ld,geometryCollection:Lhe,round:_Ze,radiansToLength:qM,lengthToRadians:S2,lengthToDegrees:O7,bearingToAzimuth:w2,radiansToDegrees:aw,degreesToRadians:ku,convertLength:b2,convertArea:xZe,isNumber:Gu,isObject:Io,validateBBox:SZe,validateId:wZe},Symbol.toStringTag,{value:"Module"}));function pl(n,e,t){if(n!==null)for(var r,i,a,o,s,l,u,h=0,c=0,f,d=n.type,v=d==="FeatureCollection",p=d==="Feature",g=v?n.features.length:1,m=0;ml||v>u||p>h){s=c,l=r,u=v,h=p,a=0;return}var g=yo([s,c],t.properties);if(e(g,r,i,p,a)===!1)return!1;a++,s=c})===!1)return!1}}})}function Nhe(n,e,t){var r=t,i=!1;return B1(n,function(a,o,s,l,u){i===!1&&t===void 0?r=a:r=e(r,a,o,s,l,u),i=!0}),r}function khe(n,e){if(!n)throw new Error("geojson is required");fh(n,function(t,r,i){if(t.geometry!==null){var a=t.geometry.type,o=t.geometry.coordinates;switch(a){case"LineString":if(e(t,r,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;st[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]=2&&!Array.isArray(n[0])&&!Array.isArray(n[1]))return n;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function ri(n){if(Array.isArray(n))return n;if(n.type==="Feature"){if(n.geometry!==null)return n.geometry.coordinates}else if(n.coordinates)return n.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Bhe(n){if(n.length>1&&Gu(n[0])&&Gu(n[1]))return!0;if(Array.isArray(n[0])&&n[0].length)return Bhe(n[0]);throw new Error("coordinates must only contain numbers")}function IZe(n,e,t){if(!e||!t)throw new Error("type and name required");if(!n||n.type!==e)throw new Error("Invalid input to "+t+": must be a "+e+", given "+n.type)}function xN(n,e,t){if(!n)throw new Error("No feature passed");if(!t)throw new Error(".featureOf() requires a name");if(!n||n.type!=="Feature"||!n.geometry)throw new Error("Invalid input to "+t+", Feature with geometry required");if(!n.geometry||n.geometry.type!==e)throw new Error("Invalid input to "+t+": must be a "+e+", given "+n.geometry.type)}function Y_(n,e,t){if(!n)throw new Error("No featureCollection passed");if(!t)throw new Error(".collectionOf() requires a name");if(!n||n.type!=="FeatureCollection")throw new Error("Invalid input to "+t+", FeatureCollection required");for(var r=0,i=n.features;r + * v. 1.2.0 + * https://github.com/RaumZeit/MarchingSquares.js + * + * MarchingSquaresJS is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * MarchingSquaresJS is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * As additional permission under GNU Affero General Public License version 3 + * section 7, third-party projects (personal or commercial) may distribute, + * include, or link against UNMODIFIED VERSIONS of MarchingSquaresJS without the + * requirement that said third-party project for that reason alone becomes + * subject to any requirement of the GNU Affero General Public License version 3. + * Any modifications to MarchingSquaresJS, however, must be shared with the public + * and made available. + * + * In summary this: + * - allows you to use MarchingSquaresJS at no cost + * - allows you to use MarchingSquaresJS for both personal and commercial purposes + * - allows you to distribute UNMODIFIED VERSIONS of MarchingSquaresJS under any + * license as long as this license notice is included + * - enables you to keep the source code of your program that uses MarchingSquaresJS + * undisclosed + * - forces you to share any modifications you have made to MarchingSquaresJS, + * e.g. bug-fixes + * + * You should have received a copy of the GNU Affero General Public License + * along with MarchingSquaresJS. If not, see . + */var _Me={successCallback:null,verbose:!1},D6={};function e4r(n,e,t){t=t||{};for(var r=Object.keys(_Me),i=0;i=e?8:0,s|=u>=e?4:0,s|=h>=e?2:0,s|=c>=e?1:0;var f=!1;if(s===5||s===10){var d=(l+u+h+c)/4;s===5&&d=0;f--)if(Math.abs(e[f][0][0]-h)<=r&&Math.abs(e[f][0][1]-c)<=r){for(var d=l.path.length-2;d>=0;--d)e[f].unshift(l.path[d]);u=!0;break}}u||(e[t++]=l.path)}})}),e}function i4r(n,e,t){var r=n.length,i=[],a=[0,0,1,1,0,0,0,0,-1,0,1,1,-1,0,-1,0],o=[0,-1,0,0,1,1,1,1,0,-1,0,0,0,-1,0,0],s,l,u=["none","left","bottom","left","right","none","bottom","left","top","top","none","top","right","right","bottom","none"],h=["none","bottom","right","right","top","top","top","top","left","bottom","right","right","left","bottom","left","none"],d,c=n[e][t],f=c.cval,d=u[f],v=tZ(c,d);i.push([t+v[0],e+v[1]]),d=h[f],v=tZ(c,d),i.push([t+v[0],e+v[1]]),xMe(c);for(var p=t+a[f],g=e+o[f],m=f;p>=0&&g>=0&&g"u"));){if(f=c.cval,f===0||f===15)return{path:i,info:"mergeable"};d=h[f],s=a[f],l=o[f],(f===5||f===10)&&(f===5?c.flipped?o[m]===-1?(d="left",s=-1,l=0):(d="right",s=1,l=0):a[m]===-1&&(d="bottom",s=0,l=-1):f===10&&(c.flipped?a[m]===-1?(d="top",s=0,l=1):(d="bottom",s=0,l=-1):o[m]===1&&(d="left",s=-1,l=0))),v=tZ(c,d),i.push([p+v[0],g+v[1]]),xMe(c),p+=s,g+=l,m=f}return{path:i,info:"closed"}}function a4r(n,e){if(e=e||{},!Io(e))throw new Error("options is invalid");var t=e.zProperty||"elevation",r=e.flip,i=e.flags;Y_(n,"Point","input must contain Points");for(var a=o4r(n,r),o=[],s=0;sC;){if(A-C>600){var I=A-C+1,R=T-C+1,k=Math.log(I),D=.5*Math.exp(2*k/3),G=.5*Math.sqrt(k*D*(I-D)/I)*(R-I/2<0?-1:1),V=Math.max(C,Math.floor(T-R*D/I+G)),z=Math.min(A,Math.floor(T+(I-R)*D/I+G));b(E,T,V,z,M)}var j=E[T],Z=C,Y=A;for(r(E,C,T),M(E[A],j)>0&&r(E,C,A);Z0;)Y--}M(E[C],j)===0?r(E,C,Y):r(E,++Y,A),Y<=T&&(C=Y+1),T<=Y&&(A=Y-1)}})(y,_,x||0,S||y.length-1,w||i)}function r(y,_,x){var S=y[_];y[_]=y[x],y[x]=S}function i(y,_){return y<_?-1:y>_?1:0}var a=function(y){y===void 0&&(y=9),this._maxEntries=Math.max(4,y),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function o(y,_,x){if(!x)return _.indexOf(y);for(var S=0;S<_.length;S++)if(x(y,_[S]))return S;return-1}function s(y,_){l(y,0,y.children.length,_,y)}function l(y,_,x,S,w){w||(w=g(null)),w.minX=1/0,w.minY=1/0,w.maxX=-1/0,w.maxY=-1/0;for(var b=_;b=y.minX&&_.maxY>=y.minY}function g(y){return{children:y,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(y,_,x,S,w){for(var b=[_,x];b.length;)if(!((x=b.pop())-(_=b.pop())<=S)){var E=_+Math.ceil((x-_)/S/2)*S;t(y,E,_,x,w),b.push(_,E,E,x)}}return a.prototype.all=function(){return this._all(this.data,[])},a.prototype.search=function(y){var _=this.data,x=[];if(!p(y,_))return x;for(var S=this.toBBox,w=[];_;){for(var b=0;b<_.children.length;b++){var E=_.children[b],T=_.leaf?S(E):E;p(y,T)&&(_.leaf?x.push(E):v(y,T)?this._all(E,x):w.push(E))}_=w.pop()}return x},a.prototype.collides=function(y){var _=this.data;if(!p(y,_))return!1;for(var x=[];_;){for(var S=0;S<_.children.length;S++){var w=_.children[S],b=_.leaf?this.toBBox(w):w;if(p(y,b)){if(_.leaf||v(y,b))return!0;x.push(w)}}_=x.pop()}return!1},a.prototype.load=function(y){if(!y||!y.length)return this;if(y.length=0&&w[_].children.length>this._maxEntries;)this._split(w,_),_--;this._adjustParentBBoxes(S,w,_)},a.prototype._split=function(y,_){var x=y[_],S=x.children.length,w=this._minEntries;this._chooseSplitAxis(x,w,S);var b=this._chooseSplitIndex(x,w,S),E=g(x.children.splice(b,x.children.length-b));E.height=x.height,E.leaf=x.leaf,s(x,this.toBBox),s(E,this.toBBox),_?y[_-1].children.push(E):this._splitRoot(x,E)},a.prototype._splitRoot=function(y,_){this.data=g([y,_]),this.data.height=y.height+1,this.data.leaf=!1,s(this.data,this.toBBox)},a.prototype._chooseSplitIndex=function(y,_,x){for(var S,w,b,E,T,C,A,M=1/0,I=1/0,R=_;R<=x-_;R++){var k=l(y,0,R,this.toBBox),D=l(y,R,x,this.toBBox),G=(w=k,b=D,E=void 0,T=void 0,C=void 0,A=void 0,E=Math.max(w.minX,b.minX),T=Math.max(w.minY,b.minY),C=Math.min(w.maxX,b.maxX),A=Math.min(w.maxY,b.maxY),Math.max(0,C-E)*Math.max(0,A-T)),V=f(k)+f(D);G=_;M--){var I=y.children[M];u(E,y.leaf?w(I):I),T+=d(E)}return T},a.prototype._adjustParentBBoxes=function(y,_,x){for(var S=x;S>=0;S--)u(_[S],y)},a.prototype._condense=function(y){for(var _=y.length-1,x=void 0;_>=0;_--)y[_].children.length===0?_>0?(x=y[_-1].children).splice(x.indexOf(y[_]),1):this.clear():s(y[_],this.toBBox)},a})})(PZe);class h4r{constructor(e=[],t=c4r){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:r}=this,i=t[e];for(;e>0;){const a=e-1>>1,o=t[a];if(r(i,o)>=0)break;t[e]=o,e=a}t[e]=i}_down(e){const{data:t,compare:r}=this,i=this.length>>1,a=t[e];for(;e=0)break;t[e]=s,e=o}t[e]=a}}function c4r(n,e){return ne?1:0}const f4r=Object.freeze(Object.defineProperty({__proto__:null,default:h4r},Symbol.toStringTag,{value:"Module"})),d4r=Nd(f4r);var p$={exports:{}},v4r=function(e,t,r,i){var a=e[0],o=e[1],s=!1;r===void 0&&(r=0),i===void 0&&(i=t.length);for(var l=(i-r)/2,u=0,h=l-1;uo!=v>o&&a<(d-c)*(o-f)/(v-f)+c;p&&(s=!s)}return s},p4r=function(e,t,r,i){var a=e[0],o=e[1],s=!1;r===void 0&&(r=0),i===void 0&&(i=t.length);for(var l=i-r,u=0,h=l-1;uo!=v>o&&a<(d-c)*(o-f)/(v-f)+c;p&&(s=!s)}return s},OZe=v4r,RZe=p4r;p$.exports=function(e,t,r,i){return t.length>0&&Array.isArray(t[0])?RZe(e,t,r,i):OZe(e,t,r,i)};p$.exports.nested=RZe;p$.exports.flat=OZe;var xre={exports:{}};(function(n,e){(function(t,r){r(e)})(at,function(t){const i=33306690738754706e-32;function a(p,g,m,y,_){let x,S,w,b,E=g[0],T=y[0],C=0,A=0;T>E==T>-E?(x=E,E=g[++C]):(x=T,T=y[++A]);let M=0;if(CE==T>-E?(w=x-((S=E+x)-E),E=g[++C]):(w=x-((S=T+x)-T),T=y[++A]),x=S,w!==0&&(_[M++]=w);CE==T>-E?(w=x-((S=x+E)-(b=S-x))+(E-b),E=g[++C]):(w=x-((S=x+T)-(b=S-x))+(T-b),T=y[++A]),x=S,w!==0&&(_[M++]=w);for(;C0!=w>0)return b;const E=Math.abs(S+w);return Math.abs(b)>=s*E?b:-function(T,C,A,M,I,R,k){let D,G,V,z,j,Z,Y,le,H,Q,ie,oe,se,me,Ce,Le,re,yt;const je=T-I,st=A-I,Nt=C-R,Zt=M-R;j=(Ce=(le=je-(Y=(Z=134217729*je)-(Z-je)))*(Q=Zt-(H=(Z=134217729*Zt)-(Z-Zt)))-((me=je*Zt)-Y*H-le*H-Y*Q))-(ie=Ce-(re=(le=Nt-(Y=(Z=134217729*Nt)-(Z-Nt)))*(Q=st-(H=(Z=134217729*st)-(Z-st)))-((Le=Nt*st)-Y*H-le*H-Y*Q))),h[0]=Ce-(ie+j)+(j-re),j=(se=me-((oe=me+ie)-(j=oe-me))+(ie-j))-(ie=se-Le),h[1]=se-(ie+j)+(j-Le),j=(yt=oe+ie)-oe,h[2]=oe-(yt-j)+(ie-j),h[3]=yt;let qe=function(J,We){let Tt=We[0];for(let Qe=1;Qe=ur||-qe>=ur||(D=T-(je+(j=T-je))+(j-I),V=A-(st+(j=A-st))+(j-I),G=C-(Nt+(j=C-Nt))+(j-R),z=M-(Zt+(j=M-Zt))+(j-R),D===0&&G===0&&V===0&&z===0)||(ur=u*k+i*Math.abs(qe),(qe+=je*z+Zt*D-(Nt*V+st*G))>=ur||-qe>=ur))return qe;j=(Ce=(le=D-(Y=(Z=134217729*D)-(Z-D)))*(Q=Zt-(H=(Z=134217729*Zt)-(Z-Zt)))-((me=D*Zt)-Y*H-le*H-Y*Q))-(ie=Ce-(re=(le=G-(Y=(Z=134217729*G)-(Z-G)))*(Q=st-(H=(Z=134217729*st)-(Z-st)))-((Le=G*st)-Y*H-le*H-Y*Q))),v[0]=Ce-(ie+j)+(j-re),j=(se=me-((oe=me+ie)-(j=oe-me))+(ie-j))-(ie=se-Le),v[1]=se-(ie+j)+(j-Le),j=(yt=oe+ie)-oe,v[2]=oe-(yt-j)+(ie-j),v[3]=yt;const Dt=a(4,h,4,v,c);j=(Ce=(le=je-(Y=(Z=134217729*je)-(Z-je)))*(Q=z-(H=(Z=134217729*z)-(Z-z)))-((me=je*z)-Y*H-le*H-Y*Q))-(ie=Ce-(re=(le=Nt-(Y=(Z=134217729*Nt)-(Z-Nt)))*(Q=V-(H=(Z=134217729*V)-(Z-V)))-((Le=Nt*V)-Y*H-le*H-Y*Q))),v[0]=Ce-(ie+j)+(j-re),j=(se=me-((oe=me+ie)-(j=oe-me))+(ie-j))-(ie=se-Le),v[1]=se-(ie+j)+(j-Le),j=(yt=oe+ie)-oe,v[2]=oe-(yt-j)+(ie-j),v[3]=yt;const ft=a(Dt,c,4,v,f);j=(Ce=(le=D-(Y=(Z=134217729*D)-(Z-D)))*(Q=z-(H=(Z=134217729*z)-(Z-z)))-((me=D*z)-Y*H-le*H-Y*Q))-(ie=Ce-(re=(le=G-(Y=(Z=134217729*G)-(Z-G)))*(Q=V-(H=(Z=134217729*V)-(Z-V)))-((Le=G*V)-Y*H-le*H-Y*Q))),v[0]=Ce-(ie+j)+(j-re),j=(se=me-((oe=me+ie)-(j=oe-me))+(ie-j))-(ie=se-Le),v[1]=se-(ie+j)+(j-Le),j=(yt=oe+ie)-oe,v[2]=oe-(yt-j)+(ie-j),v[3]=yt;const Oe=a(ft,f,4,v,d);return d[Oe-1]}(p,g,m,y,_,x,E)},t.orient2dfast=function(p,g,m,y,_,x){return(g-x)*(m-_)-(p-_)*(y-x)},Object.defineProperty(t,"__esModule",{value:!0})})})(xre,xre.exports);var SMe=PZe.exports,x8=d4r,g4r=p$.exports,y4r=xre.exports.orient2d;x8.default&&(x8=x8.default);zhe.exports=DZe;zhe.exports.default=DZe;function DZe(n,e,t){e=Math.max(0,e===void 0?2:e),t=t||0;var r=w4r(n),i=new SMe(16);i.toBBox=function(y){return{minX:y[0],minY:y[1],maxX:y[0],maxY:y[1]}},i.compareMinX=function(y,_){return y[0]-_[0]},i.compareMinY=function(y,_){return y[1]-_[1]},i.load(n);for(var a=[],o=0,s;oa||s.push({node:h,dist:c})}for(;s.length&&!s.peek().node.children;){var f=s.pop(),d=f.node,v=iZ(d,e,t),p=iZ(d,r,i);if(f.dist=e.minX&&n[0]<=e.maxX&&n[1]>=e.minY&&n[1]<=e.maxY}function bMe(n,e,t){for(var r=Math.min(n[0],e[0]),i=Math.min(n[1],e[1]),a=Math.max(n[0],e[0]),o=Math.max(n[1],e[1]),s=t.search({minX:r,minY:i,maxX:a,maxY:o}),l=0;l0!=AA(n,e,r)>0&&AA(t,r,n)>0!=AA(t,r,e)>0}function rZ(n){var e=n.p,t=n.next.p;return n.minX=Math.min(e[0],t[0]),n.minY=Math.min(e[1],t[1]),n.maxX=Math.max(e[0],t[0]),n.maxY=Math.max(e[1],t[1]),n}function w4r(n){for(var e=n[0],t=n[0],r=n[0],i=n[0],a=0;ar[0]&&(r=o),o[1]i[1]&&(i=o)}var s=[e,t,r,i],l=s.slice();for(a=0;a1?(r=t[0],i=t[1]):s>0&&(r+=a*s,i+=o*s)}return a=n[0]-r,o=n[1]-i,a*a+o*o}function N6(n,e,t,r,i,a,o,s){var l=t-n,u=r-e,h=o-i,c=s-a,f=n-i,d=e-a,v=l*l+u*u,p=l*h+u*c,g=h*h+c*c,m=l*f+u*d,y=h*f+c*d,_=v*g-p*p,x,S,w,b,E=_,T=_;_===0?(S=0,E=1,b=y,T=g):(S=p*y-g*m,b=v*y-p*m,S<0?(S=0,b=y,T=g):S>E&&(S=E,b=y+p,T=g)),b<0?(b=0,-m<0?S=0:-m>v?S=E:(S=-m,E=v)):b>T&&(b=T,-m+p<0?S=0:-m+p>v?S=E:(S=-m+p,E=v)),x=S===0?0:S/E,w=b===0?0:b/T;var C=(1-x)*n+x*t,A=(1-x)*e+x*r,M=(1-w)*i+w*o,I=(1-w)*a+w*s,R=M-C,k=I-A;return R*R+k*k}function b4r(n,e){return n[0]===e[0]?n[1]-e[1]:n[0]-e[0]}function E4r(n){n.sort(b4r);for(var e=[],t=0;t=2&&AA(e[e.length-2],e[e.length-1],n[t])<=0;)e.pop();e.push(n[t])}for(var r=[],i=n.length-1;i>=0;i--){for(;r.length>=2&&AA(r[r.length-2],r[r.length-1],n[i])<=0;)r.pop();r.push(n[i])}return r.pop(),e.pop(),e.concat(r)}function NZe(n,e){e===void 0&&(e={}),e.concavity=e.concavity||1/0;var t=[];if(pl(n,function(i){t.push([i[0],i[1]])}),!t.length)return null;var r=zhe.exports(t,e.concavity);return r.length>3?Qi([r]):null}function ss(n,e,t){if(t===void 0&&(t={}),!n)throw new Error("point is required");if(!e)throw new Error("polygon is required");var r=Wo(n),i=ls(e),a=i.type,o=e.bbox,s=i.coordinates;if(o&&T4r(r,o)===!1)return!1;a==="Polygon"&&(s=[s]);for(var l=!1,u=0;un[1]!=u>n[1]&&n[0]<(l-o)*(n[1]-s)/(u-s)+o;c&&(r=!r)}return r}function T4r(n,e){return e[0]<=n[0]&&e[1]<=n[1]&&e[2]>=n[0]&&e[3]>=n[1]}function Sre(n,e){var t=[];return uo(n,function(r){var i=!1;if(r.geometry.type==="Point")Pd(e,function(o){ss(r,o)&&(i=!0)}),i&&t.push(r);else if(r.geometry.type==="MultiPoint"){var a=[];Pd(e,function(o){pl(r,function(s){ss(s,o)&&(i=!0,a.push(s))})}),i&&t.push($k(a))}else throw new Error("Input geometry must be a Point or MultiPoint")}),Zn(t)}function Mo(n,e,t){t===void 0&&(t={});var r=Wo(n),i=Wo(e),a=ku(i[1]-r[1]),o=ku(i[0]-r[0]),s=ku(r[1]),l=ku(i[1]),u=Math.pow(Math.sin(a/2),2)+Math.pow(Math.sin(o/2),2)*Math.cos(s)*Math.cos(l);return qM(2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u)),t.units)}function kZe(n,e){var t=!1;return Zn(M4r(n.features.map(function(r){var i={x:r.geometry.coordinates[0],y:r.geometry.coordinates[1]};return e?i.z=r.properties[e]:r.geometry.coordinates.length===3&&(t=!0,i.z=r.geometry.coordinates[2]),i})).map(function(r){var i=[r.a.x,r.a.y],a=[r.b.x,r.b.y],o=[r.c.x,r.c.y],s={};return t?(i.push(r.a.z),a.push(r.b.z),o.push(r.c.z)):s={a:r.a.z,b:r.b.z,c:r.c.z},Qi([[i,a,o,i]],s)}))}var CMe=function(){function n(e,t,r){this.a=e,this.b=t,this.c=r;var i=t.x-e.x,a=t.y-e.y,o=r.x-e.x,s=r.y-e.y,l=i*(e.x+t.x)+a*(e.y+t.y),u=o*(e.x+r.x)+s*(e.y+r.y),h=2*(i*(r.y-t.y)-a*(r.x-t.x)),c,f;this.x=(s*l-a*u)/h,this.y=(i*u-o*l)/h,c=this.x-e.x,f=this.y-e.y,this.r=c*c+f*f}return n}();function C4r(n,e){return e.x-n.x}function A4r(n){var e=n.length,t,r,i,a,o;e:for(;e;)for(r=n[--e],t=n[--e],i=e;i;)if(o=n[--i],a=n[--i],t===a&&r===o||t===o&&r===a){n.splice(e,2),n.splice(i,2),e-=2;continue e}}function M4r(n){if(n.length<3)return[];n.sort(C4r);for(var e=n.length-1,t=n[e].x,r=n[0].x,i=n[e].y,a=i,o=1e-12,s,l,u,h,c,f;e--;)n[e].ya&&(a=n[e].y);var d=r-t,v=a-i,p=d>v?d:v,g=(r+t)*.5,m=(a+i)*.5,y=[new CMe({__sentinel:!0,x:g-20*p,y:m-p},{__sentinel:!0,x:g,y:m+20*p},{__sentinel:!0,x:g+20*p,y:m-p})],_=[],x=[],S;for(e=n.length;e--;){for(x.length=0,S=y.length;S--;){if(d=n[e].x-y[S].x,d>0&&d*d>y[S].r){_.push(y[S]),y.splice(S,1);continue}v=n[e].y-y[S].y,!(d*d+v*v>y[S].r)&&(x.push(y[S].a,y[S].b,y[S].b,y[S].c,y[S].c,y[S].a),y.splice(S,1))}for(A4r(x),S=x.length;S;)l=x[--S],s=x[--S],u=n[e],h=l.x-s.x,c=l.y-s.y,f=2*(h*(u.y-l.y)-c*(u.x-l.x)),Math.abs(f)>o&&y.push(new CMe(s,l,u))}for(Array.prototype.push.apply(_,y),e=_.length;e--;)(_[e].a.__sentinel||_[e].b.__sentinel||_[e].c.__sentinel)&&_.splice(e,1);return _}function Xh(n){if(!n)throw new Error("geojson is required");switch(n.type){case"Feature":return FZe(n);case"FeatureCollection":return I4r(n);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return Uhe(n);default:throw new Error("unknown GeoJSON type")}}function FZe(n){var e={type:"Feature"};return Object.keys(n).forEach(function(t){switch(t){case"type":case"properties":case"geometry":return;default:e[t]=n[t]}}),e.properties=BZe(n.properties),e.geometry=Uhe(n.geometry),e}function BZe(n){var e={};return n&&Object.keys(n).forEach(function(t){var r=n[t];typeof r=="object"?r===null?e[t]=null:Array.isArray(r)?e[t]=r.map(function(i){return i}):e[t]=BZe(r):e[t]=r}),e}function I4r(n){var e={type:"FeatureCollection"};return Object.keys(n).forEach(function(t){switch(t){case"type":case"features":return;default:e[t]=n[t]}}),e.features=n.features.map(function(t){return FZe(t)}),e}function Uhe(n){var e={type:n.type};return n.bbox&&(e.bbox=n.bbox),n.type==="GeometryCollection"?(e.geometries=n.geometries.map(function(t){return Uhe(t)}),e):(e.coordinates=GZe(n.coordinates),e)}function GZe(n){var e=n;return typeof e[0]!="object"?e.slice():e.map(function(t){return GZe(t)})}function L4r(n,e){if(e===void 0&&(e={}),e=e||{},!Io(e))throw new Error("options is invalid");var t=e.mutate;if(Gf(n)!=="FeatureCollection")throw new Error("geojson must be a FeatureCollection");if(!n.features.length)throw new Error("geojson is empty");(t===!1||t===void 0)&&(n=Xh(n));var r=[],i=Fhe(n,function(a,o){var s=P4r(a,o);return s||(r.push(a),o)});return i&&r.push(i),r.length?r.length===1?r[0]:Pw(r.map(function(a){return a.coordinates})):null}function k6(n){return n[0].toString()+","+n[1].toString()}function P4r(n,e){var t=n.geometry.coordinates,r=e.geometry.coordinates,i=k6(t[0]),a=k6(t[t.length-1]),o=k6(r[0]),s=k6(r[r.length-1]),l;if(i===s)l=r.concat(t.slice(1));else if(o===a)l=t.concat(r.slice(1));else if(i===o)l=t.slice(1).reverse().concat(r);else if(a===s)l=t.concat(r.reverse().slice(1));else return null;return yo(l)}function O4r(n){return n}function R4r(n){if(n==null)return O4r;var e,t,r=n.scale[0],i=n.scale[1],a=n.translate[0],o=n.translate[1];return function(s,l){l||(e=t=0);var u=2,h=s.length,c=new Array(h);for(c[0]=(e+=s[0])*r+a,c[1]=(t+=s[1])*i+o;u1)for(var c=1,f=s(u[0]),d,v;cf&&(v=u[0],u[0]=u[c],u[c]=v,f=d);return u}).filter(function(l){return l.length>0})}}var g$=Object.prototype.hasOwnProperty;function G4r(n){var e=1/0,t=1/0,r=-1/0,i=-1/0;function a(c){c!=null&&g$.call(o,c.type)&&o[c.type](c)}var o={GeometryCollection:function(c){c.geometries.forEach(a)},Point:function(c){s(c.coordinates)},MultiPoint:function(c){c.coordinates.forEach(s)},LineString:function(c){l(c.arcs)},MultiLineString:function(c){c.arcs.forEach(l)},Polygon:function(c){c.arcs.forEach(l)},MultiPolygon:function(c){c.arcs.forEach(u)}};function s(c){var f=c[0],d=c[1];fr&&(r=f),di&&(i=d)}function l(c){c.forEach(s)}function u(c){c.forEach(l)}for(var h in n)a(n[h]);return r>=e&&i>=t?[e,t,r,i]:void 0}function z4r(n,e,t,r,i){arguments.length===3&&(r=Array,i=null);for(var a=new r(n=1<=n)throw new Error("full hashset");d=a[f=f+1&o]}return a[f]=c,!0}function u(c){for(var f=e(c)&o,d=a[f],v=0;d!=i;){if(t(d,c))return!0;if(++v>=n)break;d=a[f=f+1&o]}return!1}function h(){for(var c=[],f=0,d=a.length;f=n)throw new Error("full hashmap");m=o[g=g+1&l]}return o[g]=v,s[g]=p,p}function c(v,p){for(var g=e(v)&l,m=o[g],y=0;m!=i;){if(t(m,v))return s[g];if(++y>=n)throw new Error("full hashmap");m=o[g=g+1&l]}return o[g]=v,s[g]=p,p}function f(v,p){for(var g=e(v)&l,m=o[g],y=0;m!=i;){if(t(m,v))return s[g];if(++y>=n)break;m=o[g=g+1&l]}return p}function d(){for(var v=[],p=0,g=o.length;p>7^F6[2]^F6[3],e&2147483647}function U4r(n){var e=n.coordinates,t=n.lines,r=n.rings,i=w(),a=new Int32Array(e.length),o=new Int32Array(e.length),s=new Int32Array(e.length),l=new Int8Array(e.length),u=0,h,c,f,d,v;for(h=0,c=e.length;h=0){var D=s[I];(k!==M||D!==R)&&(k!==R||D!==M)&&(++u,l[I]=1)}else o[I]=M,s[I]=R}}function w(){for(var A=Vhe(e.length*1.4,b,E,Int32Array,-1,Int32Array),M=new Int32Array(e.length),I=0,R=e.length;I>1),i;e0&&t&&Z4r(n,t,e),i=W4r(V4r(j4r(n))),a=i.coordinates,o=Vhe(i.arcs.length*1.4,J4r,Q4r);n=i.objects,i.bbox=t,i.arcs=i.arcs.map(function(f,d){return o.set(f,d),a.slice(f[0],f[1]+1)}),delete i.coordinates,a=null;function s(f){f&&g$.call(l,f.type)&&l[f.type](f)}var l={GeometryCollection:function(f){f.geometries.forEach(s)},LineString:function(f){f.arcs=u(f.arcs)},MultiLineString:function(f){f.arcs=f.arcs.map(u)},Polygon:function(f){f.arcs=f.arcs.map(u)},MultiPolygon:function(f){f.arcs=f.arcs.map(h)}};function u(f){var d=[];do{var v=o.get(f);d.push(f[0]l;){if(u-l>600){var c=u-l+1,f=s-l+1,d=Math.log(c),v=.5*Math.exp(2*d/3),p=.5*Math.sqrt(d*v*(c-v)/c)*(f-c/2<0?-1:1),g=Math.max(l,Math.floor(s-f*v/c+p)),m=Math.min(u,Math.floor(s+(c-f)*v/c+p));r(o,s,g,m,h)}var y=o[s],_=l,x=u;for(i(o,l,s),h(o[u],y)>0&&i(o,l,u);_0;)x--}h(o[l],y)===0?i(o,l,x):(x++,i(o,x,u)),x<=s&&(l=x+1),s<=x&&(u=x-1)}}function i(o,s,l){var u=o[s];o[s]=o[l],o[l]=u}function a(o,s){return os?1:0}return t})})($Ze);Wk.exports=SN;Wk.exports.default=SN;var a5r=$Ze.exports;function SN(n,e){if(!(this instanceof SN))return new SN(n,e);this._maxEntries=Math.max(4,n||9),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),e&&this._initFormat(e),this.clear()}SN.prototype={all:function(){return this._all(this.data,[])},search:function(n){var e=this.data,t=[],r=this.toBBox;if(!G6(n,e))return t;for(var i=[],a,o,s,l;e;){for(a=0,o=e.children.length;a=0&&a[e].children.length>this._maxEntries;)this._split(a,e),e--;this._adjustParentBBoxes(i,a,e)},_split:function(n,e){var t=n[e],r=t.children.length,i=this._minEntries;this._chooseSplitAxis(t,i,r);var a=this._chooseSplitIndex(t,i,r),o=iA(t.children.splice(a,t.children.length-a));o.height=t.height,o.leaf=t.leaf,MC(t,this.toBBox),MC(o,this.toBBox),e?n[e-1].children.push(o):this._splitRoot(t,o)},_splitRoot:function(n,e){this.data=iA([n,e]),this.data.height=n.height+1,this.data.leaf=!1,MC(this.data,this.toBBox)},_chooseSplitIndex:function(n,e,t){var r,i,a,o,s,l,u,h;for(l=u=1/0,r=e;r<=t-e;r++)i=PO(n,0,r,this.toBBox),a=PO(n,r,t,this.toBBox),o=l5r(i,a),s=oZ(i)+oZ(a),o=e;l--)u=n.children[l],OO(o,n.leaf?i(u):u),s+=B6(o);return s},_adjustParentBBoxes:function(n,e,t){for(var r=t;r>=0;r--)OO(e[r],n)},_condense:function(n){for(var e=n.length-1,t;e>=0;e--)n[e].children.length===0?e>0?(t=n[e-1].children,t.splice(t.indexOf(n[e]),1)):this.clear():MC(n[e],this.toBBox)},_initFormat:function(n){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(n[0])),this.compareMinY=new Function("a","b",e.join(n[1])),this.toBBox=new Function("a","return {minX: a"+n[0]+", minY: a"+n[1]+", maxX: a"+n[2]+", maxY: a"+n[3]+"};")}};function o5r(n,e,t){if(!t)return e.indexOf(n);for(var r=0;r=n.minX&&e.maxY>=n.minY}function iA(n){return{children:n,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function LMe(n,e,t,r,i){for(var a=[e,t],o;a.length;)t=a.pop(),e=a.pop(),!(t-e<=r)&&(o=e+Math.ceil((t-e)/r/2)*r,a5r(n,o,e,t,i),a.push(e,o,o,t))}function u5r(n,e,t,r){var i=Wk.exports(6),a=e.features.map(function(o){var s;return{minX:o.geometry.coordinates[0],minY:o.geometry.coordinates[1],maxX:o.geometry.coordinates[0],maxY:o.geometry.coordinates[1],property:(s=o.properties)===null||s===void 0?void 0:s[t]}});return i.load(a),n.features.forEach(function(o){o.properties||(o.properties={});var s=gl(o),l=i.search({minX:s[0],minY:s[1],maxX:s[2],maxY:s[3]}),u=[];l.forEach(function(h){ss([h.minX,h.minY],o)&&u.push(h.property)}),o.properties[r]=u}),n}function h5r(n,e){if(e=e||{},!Io(e))throw new Error("options is invalid");var t=e.mutate;if(!n)throw new Error("geojson is required");return(t===!1||t===void 0)&&(n=Xh(n)),pl(n,function(r){var i=r[0],a=r[1];r[0]=a,r[1]=i}),n}function E2(n,e){e===void 0&&(e={});var t=typeof e=="object"?e.mutate:e;if(!n)throw new Error("geojson is required");var r=Gf(n),i=[];switch(r){case"LineString":i=lZ(n);break;case"MultiLineString":case"Polygon":ri(n).forEach(function(o){i.push(lZ(o))});break;case"MultiPolygon":ri(n).forEach(function(o){var s=[];o.forEach(function(l){s.push(lZ(l))}),i.push(s)});break;case"Point":return n;case"MultiPoint":var a={};ri(n).forEach(function(o){var s=o.join("-");Object.prototype.hasOwnProperty.call(a,s)||(i.push(o),a[s]=!0)});break;default:throw new Error(r+" geometry not supported")}return n.coordinates?t===!0?(n.coordinates=i,n):{type:r,coordinates:i}:t===!0?(n.geometry.coordinates=i,n):fu({type:r,coordinates:i},n.properties,{bbox:n.bbox,id:n.id})}function lZ(n){var e=ri(n);if(e.length===2&&!PMe(e[0],e[1]))return e;var t=[],r=e.length-1,i=t.length;t.push(e[0]);for(var a=1;a2&&OMe(t[i-3],t[i-1],t[i-2])&&t.splice(t.length-2,1))}if(t.push(e[e.length-1]),i=t.length,PMe(e[0],e[e.length-1])&&i<4)throw new Error("invalid polygon");return OMe(t[i-3],t[i-1],t[i-2])&&t.splice(t.length-2,1),t}function PMe(n,e){return n[0]===e[0]&&n[1]===e[1]}function OMe(n,e,t){var r=t[0],i=t[1],a=n[0],o=n[1],s=e[0],l=e[1],u=r-a,h=i-o,c=s-a,f=l-o,d=u*f-h*c;return d!==0?!1:Math.abs(c)>=Math.abs(f)?c>0?a<=r&&r<=s:s<=r&&r<=a:f>0?o<=i&&i<=l:l<=i&&i<=o}function c5r(n,e){var t=n.x-e.x,r=n.y-e.y;return t*t+r*r}function f5r(n,e,t){var r=e.x,i=e.y,a=t.x-r,o=t.y-i;if(a!==0||o!==0){var s=((n.x-r)*a+(n.y-i)*o)/(a*a+o*o);s>1?(r=t.x,i=t.y):s>0&&(r+=a*s,i+=o*s)}return a=n.x-r,o=n.y-i,a*a+o*o}function d5r(n,e){for(var t=n[0],r=[t],i,a=1,o=n.length;ae&&(r.push(i),t=i);return t!==i&&r.push(i),r}function bre(n,e,t,r,i){for(var a=r,o,s=e+1;sa&&(o=s,a=l)}a>r&&(o-e>1&&bre(n,e,o,r,i),i.push(n[o]),t-o>1&&bre(n,o,t,r,i))}function v5r(n,e){var t=n.length-1,r=[n[0]];return bre(n,0,t,e,r),r.push(n[t]),r}function Ere(n,e,t){if(n.length<=2)return n;var r=e!==void 0?e*e:1;return n=t?n:d5r(n,r),n=v5r(n,r),n}function p5r(n,e){if(e=e||{},!Io(e))throw new Error("options is invalid");var t=e.tolerance!==void 0?e.tolerance:1,r=e.highQuality||!1,i=e.mutate||!1;if(!n)throw new Error("geojson is required");if(t&&t<0)throw new Error("invalid tolerance");return i!==!0&&(n=Xh(n)),Pd(n,function(a){g5r(a,t,r)}),n}function g5r(n,e,t){var r=n.type;if(r==="Point"||r==="MultiPoint")return n;E2(n,!0);var i=n.coordinates;switch(r){case"LineString":n.coordinates=RMe(i,e,t);break;case"MultiLineString":n.coordinates=i.map(function(a){return RMe(a,e,t)});break;case"Polygon":n.coordinates=DMe(i,e,t);break;case"MultiPolygon":n.coordinates=i.map(function(a){return DMe(a,e,t)})}return n}function RMe(n,e,t){return Ere(n.map(function(r){return{x:r[0],y:r[1],z:r[2]}}),e,t).map(function(r){return r.z?[r.x,r.y,r.z]:[r.x,r.y]})}function DMe(n,e,t){return n.map(function(r){var i=r.map(function(o){return{x:o[0],y:o[1]}});if(i.length<4)throw new Error("invalid polygon");for(var a=Ere(i,e,t).map(function(o){return[o.x,o.y]});!y5r(a);)e-=e*.01,a=Ere(i,e,t).map(function(o){return[o.x,o.y]});return(a[a.length-1][0]!==a[0][0]||a[a.length-1][1]!==a[0][1])&&a.push(a[0]),a})}function y5r(n){return n.length<3?!1:!(n.length===3&&n[2][0]===n[0][0]&&n[2][1]===n[0][1])}var m5r=function(){function n(e){this.points=e.points||[],this.duration=e.duration||1e4,this.sharpness=e.sharpness||.85,this.centers=[],this.controls=[],this.stepLength=e.stepLength||60,this.length=this.points.length,this.delay=0;for(var t=0;te&&(t.push(i),r=a)}return t},n.prototype.vector=function(e){var t=this.pos(e+10),r=this.pos(e-10);return{angle:180*Math.atan2(t.y-r.y,t.x-r.x)/3.14,speed:Math.sqrt((r.x-t.x)*(r.x-t.x)+(r.y-t.y)*(r.y-t.y)+(r.z-t.z)*(r.z-t.z))}},n.prototype.pos=function(e){var t=e-this.delay;t<0&&(t=0),t>this.duration&&(t=this.duration-1);var r=t/this.duration;if(r>=1)return this.points[this.length-1];var i=Math.floor((this.points.length-1)*r),a=(this.length-1)*r-i;return x5r(a,this.points[i],this.controls[i][1],this.controls[i+1][0],this.points[i+1])},n}();const _5r=m5r;function x5r(n,e,t,r,i){var a=S5r(n),o={x:i.x*a[0]+r.x*a[1]+t.x*a[2]+e.x*a[3],y:i.y*a[0]+r.y*a[1]+t.y*a[2]+e.y*a[3],z:i.z*a[0]+r.z*a[1]+t.z*a[2]+e.z*a[3]};return o}function S5r(n){var e=n*n,t=e*n;return[t,3*e*(1-n),3*n*(1-n)*(1-n),(1-n)*(1-n)*(1-n)]}function NMe(n,e){e===void 0&&(e={});for(var t=e.resolution||1e4,r=e.sharpness||.85,i=[],a=ls(n).coordinates.map(function(u){return{x:u[0],y:u[1]}}),o=new _5r({duration:t,points:a,sharpness:r}),s=function(u){var h=o.pos(u);Math.floor(u/100)%2===0&&i.push([h.x,h.y])},l=0;li;)o=Math.floor((r+1)*Math.random()),a=t[o],t[o]=t[r],t[r]=a;return t.slice(i)}function Whe(n,e){e===void 0&&(e={});var t=Number(n[0]),r=Number(n[1]),i=Number(n[2]),a=Number(n[3]);if(n.length===6)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var o=[t,r],s=[t,a],l=[i,a],u=[i,r];return Qi([[o,u,l,s,o]],e.properties,{bbox:n,id:e.id})}function WZe(n){return Whe(gl(n))}function HZe(n){var e=n[0],t=n[1],r=n[2],i=n[3],a=Mo(n.slice(0,2),[r,t]),o=Mo(n.slice(0,2),[e,i]);if(a>=o){var s=(t+i)/2;return[e,s-(r-e)/2,r,s+(r-e)/2]}else{var l=(e+r)/2;return[l-(i-t)/2,t,l+(i-t)/2,i]}}function _m(n,e,t,r){r===void 0&&(r={});var i=Wo(n),a=ku(i[0]),o=ku(i[1]),s=ku(t),l=S2(e,r.units),u=Math.asin(Math.sin(o)*Math.cos(l)+Math.cos(o)*Math.sin(l)*Math.cos(s)),h=a+Math.atan2(Math.sin(s)*Math.sin(l)*Math.cos(o),Math.cos(l)-Math.sin(o)*Math.sin(u)),c=aw(h),f=aw(u);return Vi([c,f],r.properties)}function Hhe(n,e,t){t===void 0&&(t={});for(var r=t.steps||64,i=t.properties?t.properties:!Array.isArray(n)&&n.type==="Feature"&&n.properties?n.properties:{},a=[],o=0;o80*t){s=u=n[0],l=h=n[1];for(var v=t;vu&&(u=c),f>h&&(h=f);d=Math.max(u-s,h-l),d=d!==0?32767/d:0}return wN(a,o,t,s,l,d,0),o}function XZe(n,e,t,r,i){var a,o;if(i===Are(n,e,t,r)>0)for(a=e;a=e;a-=r)o=kMe(a,n[a],n[a+1],o);return o&&x$(o,o.next)&&(EN(o),o=o.next),o}function T2(n,e){if(!n)return n;e||(e=n);var t=n,r;do if(r=!1,!t.steiner&&(x$(t,t.next)||Ll(t.prev,t,t.next)===0)){if(EN(t),t=e=t.prev,t===t.next)break;r=!0}else t=t.next;while(r||t!==e);return e}function wN(n,e,t,r,i,a,o){if(!!n){!o&&a&&F5r(n,r,i,a);for(var s=n,l,u;n.prev!==n.next;){if(l=n.prev,u=n.next,a?I5r(n,r,i,a):M5r(n)){e.push(l.i/t|0),e.push(n.i/t|0),e.push(u.i/t|0),EN(n),n=u.next,s=u.next;continue}if(n=u,n===s){o?o===1?(n=L5r(T2(n),e,t),wN(n,e,t,r,i,a,2)):o===2&&P5r(n,e,t,r,i,a):wN(T2(n),e,t,r,i,a,1);break}}}}function M5r(n){var e=n.prev,t=n,r=n.next;if(Ll(e,t,r)>=0)return!1;for(var i=e.x,a=t.x,o=r.x,s=e.y,l=t.y,u=r.y,h=ia?i>o?i:o:a>o?a:o,d=s>l?s>u?s:u:l>u?l:u,v=r.next;v!==e;){if(v.x>=h&&v.x<=f&&v.y>=c&&v.y<=d&&MA(i,s,a,l,o,u,v.x,v.y)&&Ll(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function I5r(n,e,t,r){var i=n.prev,a=n,o=n.next;if(Ll(i,a,o)>=0)return!1;for(var s=i.x,l=a.x,u=o.x,h=i.y,c=a.y,f=o.y,d=sl?s>u?s:u:l>u?l:u,g=h>c?h>f?h:f:c>f?c:f,m=Tre(d,v,e,t,r),y=Tre(p,g,e,t,r),_=n.prevZ,x=n.nextZ;_&&_.z>=m&&x&&x.z<=y;){if(_.x>=d&&_.x<=p&&_.y>=v&&_.y<=g&&_!==i&&_!==o&&MA(s,h,l,c,u,f,_.x,_.y)&&Ll(_.prev,_,_.next)>=0||(_=_.prevZ,x.x>=d&&x.x<=p&&x.y>=v&&x.y<=g&&x!==i&&x!==o&&MA(s,h,l,c,u,f,x.x,x.y)&&Ll(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;_&&_.z>=m;){if(_.x>=d&&_.x<=p&&_.y>=v&&_.y<=g&&_!==i&&_!==o&&MA(s,h,l,c,u,f,_.x,_.y)&&Ll(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;x&&x.z<=y;){if(x.x>=d&&x.x<=p&&x.y>=v&&x.y<=g&&x!==i&&x!==o&&MA(s,h,l,c,u,f,x.x,x.y)&&Ll(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function L5r(n,e,t){var r=n;do{var i=r.prev,a=r.next.next;!x$(i,a)&&YZe(i,r,r.next,a)&&bN(i,a)&&bN(a,i)&&(e.push(i.i/t|0),e.push(r.i/t|0),e.push(a.i/t|0),EN(r),EN(r.next),r=n=a),r=r.next}while(r!==n);return T2(r)}function P5r(n,e,t,r,i,a){var o=n;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&z5r(o,s)){var l=qZe(o,s);o=T2(o,o.next),l=T2(l,l.next),wN(o,e,t,r,i,a,0),wN(l,e,t,r,i,a,0);return}s=s.next}o=o.next}while(o!==n)}function O5r(n,e,t,r){var i=[],a,o,s,l,u;for(a=0,o=e.length;a=t.next.y&&t.next.y!==t.y){var s=t.x+(i-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(s<=r&&s>a&&(a=s,o=t.x=t.x&&t.x>=u&&r!==t.x&&MA(io.x||t.x===o.x&&k5r(o,t)))&&(o=t,c=f)),t=t.next;while(t!==l);return o}function k5r(n,e){return Ll(n.prev,n,e.prev)<0&&Ll(e.next,n,n.next)<0}function F5r(n,e,t,r){var i=n;do i.z===0&&(i.z=Tre(i.x,i.y,e,t,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==n);i.prevZ.nextZ=null,i.prevZ=null,B5r(i)}function B5r(n){var e,t,r,i,a,o,s,l,u=1;do{for(t=n,n=null,a=null,o=0;t;){for(o++,r=t,s=0,e=0;e0||l>0&&r;)s!==0&&(l===0||!r||t.z<=r.z)?(i=t,t=t.nextZ,s--):(i=r,r=r.nextZ,l--),a?a.nextZ=i:n=i,i.prevZ=a,a=i;t=r}a.nextZ=null,u*=2}while(o>1);return n}function Tre(n,e,t,r,i){return n=(n-t)*i|0,e=(e-r)*i|0,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,n|e<<1}function G5r(n){var e=n,t=n;do(e.x=(n-o)*(a-s)&&(n-o)*(r-s)>=(t-o)*(e-s)&&(t-o)*(a-s)>=(i-o)*(r-s)}function z5r(n,e){return n.next.i!==e.i&&n.prev.i!==e.i&&!U5r(n,e)&&(bN(n,e)&&bN(e,n)&&V5r(n,e)&&(Ll(n.prev,n,e.prev)||Ll(n,e.prev,e))||x$(n,e)&&Ll(n.prev,n,n.next)>0&&Ll(e.prev,e,e.next)>0)}function Ll(n,e,t){return(e.y-n.y)*(t.x-e.x)-(e.x-n.x)*(t.y-e.y)}function x$(n,e){return n.x===e.x&&n.y===e.y}function YZe(n,e,t,r){var i=U6(Ll(n,e,t)),a=U6(Ll(n,e,r)),o=U6(Ll(t,r,n)),s=U6(Ll(t,r,e));return!!(i!==a&&o!==s||i===0&&z6(n,t,e)||a===0&&z6(n,r,e)||o===0&&z6(t,n,r)||s===0&&z6(t,e,r))}function z6(n,e,t){return e.x<=Math.max(n.x,t.x)&&e.x>=Math.min(n.x,t.x)&&e.y<=Math.max(n.y,t.y)&&e.y>=Math.min(n.y,t.y)}function U6(n){return n>0?1:n<0?-1:0}function U5r(n,e){var t=n;do{if(t.i!==n.i&&t.next.i!==n.i&&t.i!==e.i&&t.next.i!==e.i&&YZe(t,t.next,n,e))return!0;t=t.next}while(t!==n);return!1}function bN(n,e){return Ll(n.prev,n,n.next)<0?Ll(n,e,n.next)>=0&&Ll(n,n.prev,e)>=0:Ll(n,e,n.prev)<0||Ll(n,n.next,e)<0}function V5r(n,e){var t=n,r=!1,i=(n.x+e.x)/2,a=(n.y+e.y)/2;do t.y>a!=t.next.y>a&&t.next.y!==t.y&&i<(t.next.x-t.x)*(a-t.y)/(t.next.y-t.y)+t.x&&(r=!r),t=t.next;while(t!==n);return r}function qZe(n,e){var t=new Cre(n.i,n.x,n.y),r=new Cre(e.i,e.x,e.y),i=n.next,a=e.prev;return n.next=e,e.prev=n,t.next=i,i.prev=t,r.next=t,t.prev=r,a.next=r,r.prev=a,r}function kMe(n,e,t,r){var i=new Cre(n,e,t);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function EN(n){n.next.prev=n.prev,n.prev.next=n.next,n.prevZ&&(n.prevZ.nextZ=n.nextZ),n.nextZ&&(n.nextZ.prevZ=n.prevZ)}function Cre(n,e,t){this.i=n,this.x=e,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}_$.deviation=function(n,e,t,r){var i=e&&e.length,a=i?e[0]*t:n.length,o=Math.abs(Are(n,0,a,t));if(i)for(var s=0,l=e.length;s0&&(r+=n[i-1].length,t.holes.push(r))}return t};function $5r(n){if(!n.geometry||n.geometry.type!=="Polygon"&&n.geometry.type!=="MultiPolygon")throw new Error("input must be a Polygon or MultiPolygon");var e={type:"FeatureCollection",features:[]};return n.geometry.type==="Polygon"?e.features=FMe(n.geometry.coordinates):n.geometry.coordinates.forEach(function(t){e.features=e.features.concat(FMe(t))}),e}function FMe(n){var e=W5r(n),t=2,r=jhe.exports(e.vertices,e.holes,t),i=[],a=[];r.forEach(function(l,u){var h=r[u];a.push([e.vertices[h*t],e.vertices[h*t+1]])});for(var o=0;o0&&(r+=n[i-1].length,t.holes.push(r))}return t}function R7(n,e){if(!n)throw new Error("targetPoint is required");if(!e)throw new Error("points is required");var t,r=1/0,i=0;return uo(e,function(a,o){var s=Mo(n,a);si?t:i,u=r>a?r:a;return[o,s,l,u]}var cL={exports:{}},ZZe={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(at,function(){function t(y,_,x,S,w){(function b(E,T,C,A,M){for(;A>C;){if(A-C>600){var I=A-C+1,R=T-C+1,k=Math.log(I),D=.5*Math.exp(2*k/3),G=.5*Math.sqrt(k*D*(I-D)/I)*(R-I/2<0?-1:1),V=Math.max(C,Math.floor(T-R*D/I+G)),z=Math.min(A,Math.floor(T+(I-R)*D/I+G));b(E,T,V,z,M)}var j=E[T],Z=C,Y=A;for(r(E,C,T),M(E[A],j)>0&&r(E,C,A);Z0;)Y--}M(E[C],j)===0?r(E,C,Y):r(E,++Y,A),Y<=T&&(C=Y+1),T<=Y&&(A=Y-1)}})(y,_,x||0,S||y.length-1,w||i)}function r(y,_,x){var S=y[_];y[_]=y[x],y[x]=S}function i(y,_){return y<_?-1:y>_?1:0}var a=function(y){y===void 0&&(y=9),this._maxEntries=Math.max(4,y),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function o(y,_,x){if(!x)return _.indexOf(y);for(var S=0;S<_.length;S++)if(x(y,_[S]))return S;return-1}function s(y,_){l(y,0,y.children.length,_,y)}function l(y,_,x,S,w){w||(w=g(null)),w.minX=1/0,w.minY=1/0,w.maxX=-1/0,w.maxY=-1/0;for(var b=_;b=y.minX&&_.maxY>=y.minY}function g(y){return{children:y,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(y,_,x,S,w){for(var b=[_,x];b.length;)if(!((x=b.pop())-(_=b.pop())<=S)){var E=_+Math.ceil((x-_)/S/2)*S;t(y,E,_,x,w),b.push(_,E,E,x)}}return a.prototype.all=function(){return this._all(this.data,[])},a.prototype.search=function(y){var _=this.data,x=[];if(!p(y,_))return x;for(var S=this.toBBox,w=[];_;){for(var b=0;b<_.children.length;b++){var E=_.children[b],T=_.leaf?S(E):E;p(y,T)&&(_.leaf?x.push(E):v(y,T)?this._all(E,x):w.push(E))}_=w.pop()}return x},a.prototype.collides=function(y){var _=this.data;if(!p(y,_))return!1;for(var x=[];_;){for(var S=0;S<_.children.length;S++){var w=_.children[S],b=_.leaf?this.toBBox(w):w;if(p(y,b)){if(_.leaf||v(y,b))return!0;x.push(w)}}_=x.pop()}return!1},a.prototype.load=function(y){if(!y||!y.length)return this;if(y.length=0&&w[_].children.length>this._maxEntries;)this._split(w,_),_--;this._adjustParentBBoxes(S,w,_)},a.prototype._split=function(y,_){var x=y[_],S=x.children.length,w=this._minEntries;this._chooseSplitAxis(x,w,S);var b=this._chooseSplitIndex(x,w,S),E=g(x.children.splice(b,x.children.length-b));E.height=x.height,E.leaf=x.leaf,s(x,this.toBBox),s(E,this.toBBox),_?y[_-1].children.push(E):this._splitRoot(x,E)},a.prototype._splitRoot=function(y,_){this.data=g([y,_]),this.data.height=y.height+1,this.data.leaf=!1,s(this.data,this.toBBox)},a.prototype._chooseSplitIndex=function(y,_,x){for(var S,w,b,E,T,C,A,M=1/0,I=1/0,R=_;R<=x-_;R++){var k=l(y,0,R,this.toBBox),D=l(y,R,x,this.toBBox),G=(w=k,b=D,E=void 0,T=void 0,C=void 0,A=void 0,E=Math.max(w.minX,b.minX),T=Math.max(w.minY,b.minY),C=Math.min(w.maxX,b.maxX),A=Math.min(w.maxY,b.maxY),Math.max(0,C-E)*Math.max(0,A-T)),V=f(k)+f(D);G=_;M--){var I=y.children[M];u(E,y.leaf?w(I):I),T+=d(E)}return T},a.prototype._adjustParentBBoxes=function(y,_,x){for(var S=x;S>=0;S--)u(_[S],y)},a.prototype._condense=function(y){for(var _=y.length-1,x=void 0;_>=0;_--)y[_].children.length===0?_>0?(x=y[_-1].children).splice(x.indexOf(y[_]),1):this.clear():s(y[_],this.toBBox)},a})})(ZZe);const Y5r=Nd(bZe),q5r=Nd(MZe),Z5r=Nd(YFr);var cy=ZZe.exports,KZe=Y5r,JZe=q5r,IC=Z5r.default,K5r=JZe.featureEach;JZe.coordEach;KZe.polygon;var BMe=KZe.featureCollection;function QZe(n){var e=new cy(n);return e.insert=function(t){if(t.type!=="Feature")throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:IC(t),cy.prototype.insert.call(this,t)},e.load=function(t){var r=[];return Array.isArray(t)?t.forEach(function(i){if(i.type!=="Feature")throw new Error("invalid features");i.bbox=i.bbox?i.bbox:IC(i),r.push(i)}):K5r(t,function(i){if(i.type!=="Feature")throw new Error("invalid features");i.bbox=i.bbox?i.bbox:IC(i),r.push(i)}),cy.prototype.load.call(this,r)},e.remove=function(t,r){if(t.type!=="Feature")throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:IC(t),cy.prototype.remove.call(this,t,r)},e.clear=function(){return cy.prototype.clear.call(this)},e.search=function(t){var r=cy.prototype.search.call(this,this.toBBox(t));return BMe(r)},e.collides=function(t){return cy.prototype.collides.call(this,this.toBBox(t))},e.all=function(){var t=cy.prototype.all.call(this);return BMe(t)},e.toJSON=function(){return cy.prototype.toJSON.call(this)},e.fromJSON=function(t){return cy.prototype.fromJSON.call(this,t)},e.toBBox=function(t){var r;if(t.bbox)r=t.bbox;else if(Array.isArray(t)&&t.length===4)r=t;else if(Array.isArray(t)&&t.length===6)r=[t[0],t[1],t[3],t[4]];else if(t.type==="Feature")r=IC(t);else if(t.type==="FeatureCollection")r=IC(t);else throw new Error("invalid geojson");return{minX:r[0],minY:r[1],maxX:r[2],maxY:r[3]}},e}cL.exports=QZe;cL.exports.default=QZe;function q_(n,e){var t={},r=[];if(n.type==="LineString"&&(n=fu(n)),e.type==="LineString"&&(e=fu(e)),n.type==="Feature"&&e.type==="Feature"&&n.geometry!==null&&e.geometry!==null&&n.geometry.type==="LineString"&&e.geometry.type==="LineString"&&n.geometry.coordinates.length===2&&e.geometry.coordinates.length===2){var i=GMe(n,e);return i&&r.push(i),Zn(r)}var a=cL.exports();return a.load(C2(e)),uo(C2(n),function(o){uo(a.search(o),function(s){var l=GMe(o,s);if(l){var u=ri(l).join(",");t[u]||(t[u]=!0,r.push(l))}})}),Zn(r)}function GMe(n,e){var t=ri(n),r=ri(e);if(t.length!==2)throw new Error(" line1 must only contain 2 coordinates");if(r.length!==2)throw new Error(" line2 must only contain 2 coordinates");var i=t[0][0],a=t[0][1],o=t[1][0],s=t[1][1],l=r[0][0],u=r[0][1],h=r[1][0],c=r[1][1],f=(c-u)*(o-i)-(h-l)*(s-a),d=(h-l)*(a-u)-(c-u)*(i-l),v=(o-i)*(a-u)-(s-a)*(i-l);if(f===0)return d===0&&v===0,null;var p=d/f,g=v/f;if(p>=0&&p<=1&&g>=0&&g<=1){var m=i+p*(o-i),y=a+p*(s-a);return Vi([m,y])}return null}function G1(n,e,t){t===void 0&&(t={});var r=Vi([1/0,1/0],{dist:1/0}),i=0;return fh(n,function(a){for(var o=ri(a),s=0;s0&&(g=p.features[0],g.properties.dist=Mo(e,g,t),g.properties.location=i+Mo(l,g,t)),l.properties.dist180?-360:r[0]-i[0]>180?360:0;var a=J5r(r,i),o=b2(a,"meters",t.units);return o}function J5r(n,e,t){t=t===void 0?Au:Number(t);var r=t,i=n[1]*Math.PI/180,a=e[1]*Math.PI/180,o=a-i,s=Math.abs(e[0]-n[0])*Math.PI/180;s>Math.PI&&(s-=2*Math.PI);var l=Math.log(Math.tan(a/2+Math.PI/4)/Math.tan(i/2+Math.PI/4)),u=Math.abs(l)>1e-11?o/l:Math.cos(i),h=Math.sqrt(o*o+u*u*s*s),c=h*r;return c}function eKe(n,e,t){if(t===void 0&&(t={}),t.method||(t.method="geodesic"),t.units||(t.units="kilometers"),!n)throw new Error("pt is required");if(Array.isArray(n)?n=Vi(n):n.type==="Point"?n=fu(n):xN(n,"Point","point"),!e)throw new Error("line is required");Array.isArray(e)?e=yo(e):e.type==="LineString"?e=fu(e):xN(e,"LineString","line");var r=1/0,i=n.geometry.coordinates;return B1(e,function(a){var o=a.geometry.coordinates[0],s=a.geometry.coordinates[1],l=Q5r(i,o,s,t);l=0&&u<=1&&(d.onLine1=!0),h>=0&&h<=1&&(d.onLine2=!0),d.onLine1&&d.onLine2?[d.x,d.y]:!1)}function UMe(n){for(var e=a6r(n),t=y$(e),r=!1,i=0;!r&&i0){e+=Math.abs(HMe(n[0]));for(var t=1;t2){for(s=0;s=a&&o===i.length-1);o++)if(a>=e){var s=e-a;if(s){var l=x_(i[o],i[o-1])-180,u=_m(i[o],s,l,t);return u}else return Vi(i[o])}else a+=Mo(i[o],i[o+1],t);return Vi(i[i.length-1])}function Mre(n,e){return e===void 0&&(e={}),Nhe(n,function(t,r){var i=r.geometry.coordinates;return t+Mo(i[0],i[1],e)},0)}function l6r(n,e,t){var r=ri(t);if(Gf(t)!=="LineString")throw new Error("line must be a LineString");var i=G1(t,n),a=G1(t,e),o;i.properties.index<=a.properties.index?o=[i,a]:o=[a,i];for(var s=[o[0].geometry.coordinates],l=o[0].properties.index+1;l=s&&c===i.length-1);c++){if(s>e&&a.length===0){if(l=e-s,!l)return a.push(i[c]),yo(a);u=x_(i[c],i[c-1])-180,h=_m(i[c],l,u,r),a.push(h.geometry.coordinates)}if(s>=t)return l=t-s,l?(u=x_(i[c],i[c-1])-180,h=_m(i[c],l,u,r),a.push(h.geometry.coordinates),yo(a)):(a.push(i[c]),yo(a));if(s>=e&&a.push(i[c]),c===i.length-1)return yo(a);s+=Mo(i[c],i[c+1],r)}if(s"u"?null:t.epsilon))return!0}return!1}function u6r(n,e,t,r,i){var a=t[0],o=t[1],s=n[0],l=n[1],u=e[0],h=e[1],c=t[0]-s,f=t[1]-l,d=u-s,v=h-l,p=c*v-f*d;if(i!==null){if(Math.abs(p)>i)return!1}else if(p!==0)return!1;if(r){if(r==="start")return Math.abs(d)>=Math.abs(v)?d>0?s0?l=Math.abs(v)?d>0?s<=a&&a0?l<=o&&o=Math.abs(v)?d>0?s0?l=Math.abs(v)?d>0?s<=a&&a<=u:u<=a&&a<=s:v>0?l<=o&&o<=h:h<=o&&o<=l;return!1}function rKe(n,e){var t=ls(n),r=ls(e),i=t.type,a=r.type;switch(i){case"Point":switch(a){case"MultiPoint":return h6r(t,r);case"LineString":return yd(t,r,{ignoreEndVertices:!0});case"Polygon":case"MultiPolygon":return ss(t,r,{ignoreBoundary:!0});default:throw new Error("feature2 "+a+" geometry not supported")}case"MultiPoint":switch(a){case"MultiPoint":return c6r(t,r);case"LineString":return f6r(t,r);case"Polygon":case"MultiPolygon":return d6r(t,r);default:throw new Error("feature2 "+a+" geometry not supported")}case"LineString":switch(a){case"LineString":return v6r(t,r);case"Polygon":case"MultiPolygon":return p6r(t,r);default:throw new Error("feature2 "+a+" geometry not supported")}case"Polygon":switch(a){case"Polygon":case"MultiPolygon":return g6r(t,r);default:throw new Error("feature2 "+a+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}}function h6r(n,e){var t,r=!1;for(t=0;te[0]||n[2]e[1]||n[3] is required");if(typeof t!="number")throw new Error(" must be a number");if(typeof r!="number")throw new Error(" must be a number");(i===!1||i===void 0)&&(n=JSON.parse(JSON.stringify(n)));var a=Math.pow(10,t);return pl(n,function(o){m6r(o,a,r)}),n}function m6r(n,e,t){n.length>t&&n.splice(t,n.length);for(var r=0;r=1||C<=0||A>=1||A<=0)){var M=T,I=!a[M];I&&(a[M]=!0),e?i.push(e(T,m,y,S,w,C,_,x,b,E,A,I)):i.push(T)}}}function g(m,y){var _=r[m][y],x=r[m][y+1],S,w,b,E;return _[0]l[H.isect].coord?-1:1});for(var b=[];m.length>0;){var E=m.pop(),T=E.isect,C=E.parent,A=E.winding,M=b.length,I=[l[T].coord],R=T;if(l[T].ringAndEdge1Walkable)var k=l[T].ringAndEdge1,D=l[T].nxtIsectAlongRingAndEdge1;else var k=l[T].ringAndEdge2,D=l[T].nxtIsectAlongRingAndEdge2;for(;!DO(l[T].coord,l[D].coord);){I.push(l[D].coord);for(var G=void 0,y=0;y1)for(var H=0;H"u"&&(e=!0),n.length!=3)throw new Error("This function requires an array of three points [x,y]");var t=(n[1][0]-n[0][0])*(n[2][1]-n[0][1])-(n[1][1]-n[0][1])*(n[2][0]-n[0][0]);return t>=0==e}function E6r(n){for(var e=0,t=0;tf&&(p>h&&vh&&pl&&(l=g)}var m=[];if(s&&l0&&Math.abs(x-t[_-1][0])>f){var S=parseFloat(t[_-1][0]),w=parseFloat(t[_-1][1]),b=parseFloat(t[_][0]),E=parseFloat(t[_][1]);if(S>-180&&S-180&&t[_-1][0]h&&S<180&&b===-180&&_+1h&&t[_-1][0]<180){y.push([180,t[_][1]]),_++,y.push([t[_][0],t[_][1]]);continue}if(Sh){var T=S;S=b,b=T;var C=w;w=E,E=C}if(S>h&&b=180&&Sh?180:-180,M]),y=[],y.push([t[_-1][0]>h?-180:180,M]),m.push(y)}else y=[],m.push(y);y.push([x,t[_][1]])}else y.push([t[_][0],t[_][1]])}}else{var I=[];m.push(I);for(var R=0;R1&&t.push(yo(h)),Zn(t)}function lKe(n,e){if(!e.features.length)throw new Error("lines must contain features");if(e.features.length===1)return e.features[0];var t,r=1/0;return uo(e,function(i){var a=G1(i,n),o=a.properties.dist;oh&&f.push(_m(n,e,h,i).geometry.coordinates),yo(f,l)}function KMe(n){var e=n%360;return e<0&&(e+=360),e}function CN(n,e){e===void 0&&(e={});var t=ls(n);switch(!e.properties&&n.type==="Feature"&&(e.properties=n.properties),t.type){case"Polygon":return hKe(t,e);case"MultiPolygon":return I6r(t,e);default:throw new Error("invalid poly")}}function hKe(n,e){e===void 0&&(e={});var t=ls(n),r=t.coordinates,i=e.properties?e.properties:n.type==="Feature"?n.properties:{};return cKe(r,i)}function I6r(n,e){e===void 0&&(e={});var t=ls(n),r=t.coordinates,i=e.properties?e.properties:n.type==="Feature"?n.properties:{},a=[];return r.forEach(function(o){a.push(cKe(o,i))}),Zn(a)}function cKe(n,e){return n.length>1?Pw(n,e):yo(n[0],e)}function JMe(n,e){e===void 0&&(e={});var t,r,i,a=e.properties,o=(t=e.autoComplete)!==null&&t!==void 0?t:!0,s=(r=e.orderCoords)!==null&&r!==void 0?r:!0,l=(i=e.mutate)!==null&&i!==void 0?i:!1;switch(l||(n=Xh(n)),n.type){case"FeatureCollection":var u=[];return n.features.forEach(function(h){u.push(ri(QMe(h,{},o,s)))}),Ld(u,a);default:return QMe(n,a,o,s)}}function QMe(n,e,t,r){e=e||(n.type==="Feature"?n.properties:{});var i=ls(n),a=i.coordinates,o=i.type;if(!a.length)throw new Error("line must contain coordinates");switch(o){case"LineString":return t&&(a=eIe(a)),Qi([a],e);case"MultiLineString":var s=[],l=0;return a.forEach(function(u){if(t&&(u=eIe(u)),r){var h=L6r(gl(yo(u)));h>l?(s.unshift(u),l=h):s.push(u)}else s.push(u)}),Qi(s,e);default:throw new Error("geometry type "+o+" is not supported")}}function eIe(n){var e=n[0],t=e[0],r=e[1],i=n[n.length-1],a=i[0],o=i[1];return(t!==a||r!==o)&&n.push(e),n}function L6r(n){var e=n[0],t=n[1],r=n[2],i=n[3];return Math.abs(e-r)*Math.abs(t-i)}function P6r(n,e,t){var r=n.length,i=LA(n[0],e),a=[],o,s,l,u,h;for(t||(t=[]),o=1;oe[2]&&(t|=2),n[1]e[3]&&(t|=8),t}function R6r(n,e){var t=ls(n),r=t.type,i=n.type==="Feature"?n.properties:{},a=t.coordinates;switch(r){case"LineString":case"MultiLineString":{var o=[];return r==="LineString"&&(a=[a]),a.forEach(function(s){P6r(s,e,o)}),o.length===1?yo(o[0],i):Pw(o,i)}case"Polygon":return Qi(tIe(a,e),i);case"MultiPolygon":return Ld(a.map(function(s){return tIe(s,e)}),i);default:throw new Error("geometry "+r+" not supported")}}function tIe(n,e){for(var t=[],r=0,i=n;r0&&((o[0][0]!==o[o.length-1][0]||o[0][1]!==o[o.length-1][1])&&o.push(o[0]),o.length>=4&&t.push(o))}return t}var rIe=Object.prototype.toString,fKe=function(e){var t=rIe.call(e),r=t==="[object Arguments]";return r||(r=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&rIe.call(e.callee)==="[object Function]"),r},fZ,nIe;function D6r(){if(nIe)return fZ;nIe=1;var n;if(!Object.keys){var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=fKe,i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),o=i.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(f){var d=f.constructor;return d&&d.prototype===f},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&e.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{l(window[f])}catch{return!0}}catch{return!0}return!1}(),c=function(f){if(typeof window>"u"||!h)return l(f);try{return l(f)}catch{return!1}};n=function(d){var v=d!==null&&typeof d=="object",p=t.call(d)==="[object Function]",g=r(d),m=v&&t.call(d)==="[object String]",y=[];if(!v&&!p&&!g)throw new TypeError("Object.keys called on a non-object");var _=o&&p;if(m&&d.length>0&&!e.call(d,0))for(var x=0;x0)for(var S=0;S"u"||!Ah?Za:Ah(Uint8Array),$E={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Za:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Za:ArrayBuffer,"%ArrayIteratorPrototype%":LC&&Ah?Ah([][Symbol.iterator]()):Za,"%AsyncFromSyncIteratorPrototype%":Za,"%AsyncFunction%":aA,"%AsyncGenerator%":aA,"%AsyncGeneratorFunction%":aA,"%AsyncIteratorPrototype%":aA,"%Atomics%":typeof Atomics>"u"?Za:Atomics,"%BigInt%":typeof BigInt>"u"?Za:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Za:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Za:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Za:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":bBr,"%eval%":eval,"%EvalError%":EBr,"%Float16Array%":typeof Float16Array>"u"?Za:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Za:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Za:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Za:FinalizationRegistry,"%Function%":TKe,"%GeneratorFunction%":aA,"%Int8Array%":typeof Int8Array>"u"?Za:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Za:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Za:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":LC&&Ah?Ah(Ah([][Symbol.iterator]())):Za,"%JSON%":typeof JSON=="object"?JSON:Za,"%Map%":typeof Map>"u"?Za:Map,"%MapIteratorPrototype%":typeof Map>"u"||!LC||!Ah?Za:Ah(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":wBr,"%Object.getOwnPropertyDescriptor%":AN,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Za:Promise,"%Proxy%":typeof Proxy>"u"?Za:Proxy,"%RangeError%":TBr,"%ReferenceError%":CBr,"%Reflect%":typeof Reflect>"u"?Za:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Za:Set,"%SetIteratorPrototype%":typeof Set>"u"||!LC||!Ah?Za:Ah(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Za:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":LC&&Ah?Ah(""[Symbol.iterator]()):Za,"%Symbol%":LC?Symbol:Za,"%SyntaxError%":KM,"%ThrowTypeError%":kBr,"%TypedArray%":GBr,"%TypeError%":iM,"%Uint8Array%":typeof Uint8Array>"u"?Za:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Za:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Za:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Za:Uint32Array,"%URIError%":ABr,"%WeakMap%":typeof WeakMap>"u"?Za:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Za:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Za:WeakSet,"%Function.prototype.call%":jk,"%Function.prototype.apply%":CKe,"%Object.defineProperty%":NBr,"%Object.getPrototypeOf%":FBr,"%Math.abs%":MBr,"%Math.floor%":IBr,"%Math.max%":LBr,"%Math.min%":PBr,"%Math.pow%":OBr,"%Math.round%":RBr,"%Math.sign%":DBr,"%Reflect.getPrototypeOf%":BBr};if(Ah)try{null.error}catch(n){var zBr=Ah(Ah(n));$E["%Error.prototype%"]=zBr}var UBr=function n(e){var t;if(e==="%AsyncFunction%")t=pZ("async function () {}");else if(e==="%GeneratorFunction%")t=pZ("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=pZ("async function* () {}");else if(e==="%AsyncGenerator%"){var r=n("%AsyncGeneratorFunction%");r&&(t=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=n("%AsyncGenerator%");i&&Ah&&(t=Ah(i.prototype))}return $E[e]=t,t},dIe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Xk=Hk,D7=EKe,VBr=Xk.call(jk,Array.prototype.concat),$Br=Xk.call(CKe,Array.prototype.splice),vIe=Xk.call(jk,String.prototype.replace),N7=Xk.call(jk,String.prototype.slice),WBr=Xk.call(jk,RegExp.prototype.exec),HBr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,jBr=/\\(\\)?/g,XBr=function(e){var t=N7(e,0,1),r=N7(e,-1);if(t==="%"&&r!=="%")throw new KM("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&t!=="%")throw new KM("invalid intrinsic syntax, expected opening `%`");var i=[];return vIe(e,HBr,function(a,o,s,l){i[i.length]=s?vIe(l,jBr,"$1"):o||a}),i},YBr=function(e,t){var r=e,i;if(D7(dIe,r)&&(i=dIe[r],r="%"+i[0]+"%"),D7($E,r)){var a=$E[r];if(a===aA&&(a=UBr(r)),typeof a>"u"&&!t)throw new iM("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:a}}throw new KM("intrinsic "+e+" does not exist!")},AKe=function(e,t){if(typeof e!="string"||e.length===0)throw new iM("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new iM('"allowMissing" argument must be a boolean');if(WBr(/^%?[^%]*%?$/,e)===null)throw new KM("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=XBr(e),i=r.length>0?r[0]:"",a=YBr("%"+i+"%",t),o=a.name,s=a.value,l=!1,u=a.alias;u&&(i=u[0],$Br(r,VBr([0,1],u)));for(var h=1,c=!0;h=r.length){var p=AN(s,f);c=!!p,c&&"get"in p&&!("originalValue"in p.get)?s=p.get:s=s[f]}else c=D7(s,f),s=s[f];c&&!l&&($E[o]=s)}}return s},MKe=AKe,IKe=Qhe,qBr=IKe([MKe("%String.prototype.indexOf%")]),ece=function(e,t){var r=MKe(e,!!t);return typeof r=="function"&&qBr(e,".prototype.")>-1?IKe([r]):r},ZBr=Zhe(),KBr=ece,Ore=KBr("Object.prototype.toString"),b$=function(e){return ZBr&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Ore(e)==="[object Arguments]"},LKe=function(e){return b$(e)?!0:e!==null&&typeof e=="object"&&"length"in e&&typeof e.length=="number"&&e.length>=0&&Ore(e)!=="[object Array]"&&"callee"in e&&Ore(e.callee)==="[object Function]"},JBr=function(){return b$(arguments)}();b$.isLegacyArguments=LKe;var QBr=JBr?b$:LKe,pIe=w$,e8r=yKe,PC=fL,gIe=dL,tce=function(e,t,r){if(!e||typeof e!="object"&&typeof e!="function")throw new PC("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new PC("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new PC("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new PC("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new PC("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new PC("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!gIe&&gIe(e,t);if(pIe)pIe(e,t,{configurable:o===null&&l?l.configurable:!o,enumerable:i===null&&l?l.enumerable:!i,value:r,writable:a===null&&l?l.writable:!a});else if(s||!i&&!a&&!o)e[t]=r;else throw new e8r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Rre=w$,PKe=function(){return!!Rre};PKe.hasArrayLengthDefineBug=function(){if(!Rre)return null;try{return Rre([],"length",{value:1}).length!==1}catch{return!0}};var rce=PKe,t8r=dKe,r8r=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",n8r=Object.prototype.toString,i8r=Array.prototype.concat,yIe=tce,a8r=function(n){return typeof n=="function"&&n8r.call(n)==="[object Function]"},OKe=rce(),o8r=function(n,e,t,r){if(e in n){if(r===!0){if(n[e]===t)return}else if(!a8r(r)||!r())return}OKe?yIe(n,e,t,!0):yIe(n,e,t)},RKe=function(n,e){var t=arguments.length>2?arguments[2]:{},r=t8r(e);r8r&&(r=i8r.call(r,Object.getOwnPropertySymbols(e)));for(var i=0;i4294967295||u8r(t)!==t)throw new xIe("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in e&&_Ie){var o=_Ie(e,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!r)&&(l8r?mIe(e,"length",t,!0,!0):mIe(e,"length",t)),e},c8r=Hk,f8r=Jhe,d8r=xKe,v8r=function(){return d8r(c8r,f8r,arguments)};(function(n){var e=h8r,t=w$,r=Qhe,i=v8r;n.exports=function(o){var s=r(arguments),l=o.length-(arguments.length-1);return e(s,1+(l>0?l:0),!0)},t?t(n.exports,"apply",{value:i}):n.exports.apply=i})(nce);var SIe=function(n){return n!==n},DKe=function(e,t){return e===0&&t===0?1/e===1/t:!!(e===t||SIe(e)&&SIe(t))},p8r=DKe,NKe=function(){return typeof Object.is=="function"?Object.is:p8r},g8r=NKe,y8r=Yk,m8r=function(){var e=g8r();return y8r(Object,{is:e},{is:function(){return Object.is!==e}}),e},_8r=Yk,x8r=nce.exports,S8r=DKe,kKe=NKe,w8r=m8r,FKe=x8r(kKe(),Object);_8r(FKe,{getPolyfill:kKe,implementation:S8r,shim:w8r});var b8r=FKe,wIe=ece,E8r=Zhe(),T8r=EKe,C8r=dL,Dre;if(E8r){var A8r=wIe("RegExp.prototype.exec"),bIe={},yZ=function(){throw bIe},EIe={toString:yZ,valueOf:yZ};typeof Symbol.toPrimitive=="symbol"&&(EIe[Symbol.toPrimitive]=yZ),Dre=function(e){if(!e||typeof e!="object")return!1;var t=C8r(e,"lastIndex"),r=t&&T8r(t,"value");if(!r)return!1;try{A8r(e,EIe)}catch(i){return i===bIe}}}else{var M8r=wIe("Object.prototype.toString"),I8r="[object RegExp]";Dre=function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:M8r(e)===I8r}}var L8r=Dre,MN=function(){return typeof function(){}.name=="string"},DR=Object.getOwnPropertyDescriptor;if(DR)try{DR([],"length")}catch{DR=null}MN.functionsHaveConfigurableNames=function(){if(!MN()||!DR)return!1;var e=DR(function(){},"name");return!!e&&!!e.configurable};var P8r=Function.prototype.bind;MN.boundFunctionsHaveNames=function(){return MN()&&typeof P8r=="function"&&function(){}.bind().name!==""};var O8r=MN,TIe=tce,R8r=rce(),D8r=O8r.functionsHaveConfigurableNames(),N8r=fL,k8r=function(e,t){if(typeof e!="function")throw new N8r("`fn` is not a function");var r=arguments.length>2&&!!arguments[2];return(!r||D8r)&&(R8r?TIe(e,"name",t,!0,!0):TIe(e,"name",t)),e},F8r=k8r,B8r=fL,G8r=Object,BKe=F8r(function(){if(this==null||this!==G8r(this))throw new B8r("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},"get flags",!0),z8r=BKe,U8r=Yk.supportsDescriptors,V8r=Object.getOwnPropertyDescriptor,GKe=function(){if(U8r&&/a/mig.flags==="gim"){var e=V8r(RegExp.prototype,"flags");if(e&&typeof e.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var t="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(r,"sticky",{get:function(){t+="y"}}),e.get.call(r),t==="dy")return e.get}}return z8r},$8r=Yk.supportsDescriptors,W8r=GKe,H8r=dL,j8r=Object.defineProperty,X8r=gKe,CIe=bKe,Y8r=/a/,q8r=function(){if(!$8r||!CIe)throw new X8r("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=W8r(),t=CIe(Y8r),r=H8r(t,"flags");return(!r||r.get!==e)&&j8r(t,"flags",{configurable:!0,enumerable:!1,get:e}),e},Z8r=Yk,K8r=nce.exports,J8r=BKe,zKe=GKe,Q8r=q8r,UKe=K8r(zKe());Z8r(UKe,{getPolyfill:zKe,implementation:J8r,shim:Q8r});var eGr=UKe,VKe=ece,tGr=VKe("Date.prototype.getDay"),rGr=function(e){try{return tGr(e),!0}catch{return!1}},nGr=VKe("Object.prototype.toString"),iGr="[object Date]",aGr=Zhe(),oGr=function(e){return typeof e!="object"||e===null?!1:aGr?rGr(e):nGr(e)===iGr},AIe=dKe,MIe=QBr,IIe=b8r,LIe=L8r,PIe=eGr,OIe=oGr,RIe=Date.prototype.getTime;function $Ke(n,e,t){var r=t||{};return(r.strict?IIe(n,e):n===e)?!0:!n||!e||typeof n!="object"&&typeof e!="object"?r.strict?IIe(n,e):n==e:sGr(n,e,r)}function DIe(n){return n==null}function NIe(n){return!(!n||typeof n!="object"||typeof n.length!="number"||typeof n.copy!="function"||typeof n.slice!="function"||n.length>0&&typeof n[0]!="number")}function sGr(n,e,t){var r,i;if(typeof n!=typeof e||DIe(n)||DIe(e)||n.prototype!==e.prototype||MIe(n)!==MIe(e))return!1;var a=LIe(n),o=LIe(e);if(a!==o)return!1;if(a||o)return n.source===e.source&&PIe(n)===PIe(e);if(OIe(n)&&OIe(e))return RIe.call(n)===RIe.call(e);var s=NIe(n),l=NIe(e);if(s!==l)return!1;if(s||l){if(n.length!==e.length)return!1;for(r=0;r=0;r--)if(u[r]!=h[r])return!1;for(r=u.length-1;r>=0;r--)if(i=u[r],!$Ke(n[i],e[i],t))return!1;return!0}var PA=$Ke;function WKe(n,e,t){if(t===void 0&&(t={}),t=t||{},!Io(t))throw new Error("options is invalid");var r=t.tolerance||0,i=[],a=cL.exports(),o=C2(n);a.load(o);var s;return B1(e,function(l){var u=!1;!l||(uo(a.search(l),function(h){if(u===!1){var c=ri(l).sort(),f=ri(h).sort();PA(c,f)||(r===0?yd(c[0],h)&&yd(c[1],h):G1(h,c[0]).properties.dist<=r&&G1(h,c[1]).properties.dist<=r)?(u=!0,s?s=mZ(s,l):s=l):(r===0?yd(f[0],l)&&yd(f[1],l):G1(l,f[0]).properties.dist<=r&&G1(l,f[1]).properties.dist<=r)&&(s?s=mZ(s,h):s=h)}}),u===!1&&s&&(i.push(s),s=void 0))}),s&&i.push(s),Zn(i)}function mZ(n,e){var t=ri(e),r=ri(n),i=r[0],a=r[r.length-1],o=n.geometry.coordinates;return PA(t[0],i)?o.unshift(t[1]):PA(t[0],a)?o.push(t[1]):PA(t[1],i)?o.unshift(t[0]):PA(t[1],a)&&o.push(t[0]),n}function lGr(n,e,t,r,i){if(i=i||{},!Io(i))throw new Error("options is invalid");var a=i.properties;if(!n)throw new Error("center is required");if(t==null)throw new Error("bearing1 is required");if(r==null)throw new Error("bearing2 is required");if(!e)throw new Error("radius is required");if(typeof i!="object")throw new Error("options must be an object");if(kIe(t)===kIe(r))return Hhe(n,e,i);var o=ri(n),s=uKe(n,e,t,r,i),l=[[o]];return pl(s,function(u){l[0].push(u)}),l[0].push(o),Qi(l,a)}function kIe(n){var e=n%360;return e<0&&(e+=360),e}function A2(n,e,t){t===void 0&&(t={});var r;t.final?r=FIe(Wo(e),Wo(n)):r=FIe(Wo(n),Wo(e));var i=r>180?-(360-r):r;return i}function FIe(n,e){var t=ku(n[1]),r=ku(e[1]),i=ku(e[0]-n[0]);i>Math.PI&&(i-=2*Math.PI),i<-Math.PI&&(i+=2*Math.PI);var a=Math.log(Math.tan(r/2+Math.PI/4)/Math.tan(t/2+Math.PI/4)),o=Math.atan2(i,a);return(aw(o)+360)%360}function JM(n,e,t,r){r===void 0&&(r={});var i=e<0,a=b2(Math.abs(e),r.units,"meters");i&&(a=-Math.abs(a));var o=Wo(n),s=uGr(o,a,t);return s[0]+=s[0]-o[0]>180?-360:o[0]-s[0]>180?360:0,Vi(s,r.properties)}function uGr(n,e,t,r){r=r===void 0?Au:Number(r);var i=e/r,a=n[0]*Math.PI/180,o=ku(n[1]),s=ku(t),l=i*Math.cos(s),u=o+l;Math.abs(u)>Math.PI/2&&(u=u>0?Math.PI-u:-Math.PI-u);var h=Math.log(Math.tan(u/2+Math.PI/4)/Math.tan(o/2+Math.PI/4)),c=Math.abs(h)>1e-11?l/h:Math.cos(o),f=i*Math.sin(s)/c,d=a+f;return[(d*180/Math.PI+540)%360-180,u*180/Math.PI]}function hGr(n,e){var t=ri(n),r=ri(e),i,a,o,s,l=gl(e),u=0,h=null;t[0]>l[0]&&t[0]l[1]&&t[1]0?fGr(e,s,i)||(i=s):t>0&&r<=0&&(cGr(e,s,a)||(a=s)),t=r}return[i,a]}function cGr(n,e,t){return IN(n,e,t)>0}function fGr(n,e,t){return IN(n,e,t)<0}function IN(n,e,t){return(e[0]-n[0])*(t[1]-n[1])-(t[0]-n[0])*(e[1]-n[1])}function k7(n){for(var e=ri(n),t=0,r=1,i,a;r0}function dGr(n,e){if(e=e||{},!Io(e))throw new Error("options is invalid");var t=e.reverse||!1,r=e.mutate||!1;if(!n)throw new Error(" is required");if(typeof t!="boolean")throw new Error(" must be a boolean");if(typeof r!="boolean")throw new Error(" must be a boolean");r===!1&&(n=Xh(n));var i=[];switch(n.type){case"GeometryCollection":return Pd(n,function(a){T8(a,t)}),n;case"FeatureCollection":return uo(n,function(a){uo(T8(a,t),function(o){i.push(o)})}),Zn(i)}return T8(n,t)}function T8(n,e){var t=n.type==="Feature"?n.geometry.type:n.type;switch(t){case"GeometryCollection":return Pd(n,function(r){T8(r,e)}),n;case"LineString":return GIe(ri(n),e),n;case"Polygon":return zIe(ri(n),e),n;case"MultiLineString":return ri(n).forEach(function(r){GIe(r,e)}),n;case"MultiPolygon":return ri(n).forEach(function(r){zIe(r,e)}),n;case"Point":case"MultiPoint":return n}}function GIe(n,e){k7(n)===e&&n.reverse()}function zIe(n,e){k7(n[0])!==e&&n[0].reverse();for(var t=1;t + * v. 1.2.0 + * https://github.com/RaumZeit/MarchingSquares.js + * + * MarchingSquaresJS is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * MarchingSquaresJS is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * As additional permission under GNU Affero General Public License version 3 + * section 7, third-party projects (personal or commercial) may distribute, + * include, or link against UNMODIFIED VERSIONS of MarchingSquaresJS without the + * requirement that said third-party project for that reason alone becomes + * subject to any requirement of the GNU Affero General Public License version 3. + * Any modifications to MarchingSquaresJS, however, must be shared with the public + * and made available. + * + * In summary this: + * - allows you to use MarchingSquaresJS at no cost + * - allows you to use MarchingSquaresJS for both personal and commercial purposes + * - allows you to distribute UNMODIFIED VERSIONS of MarchingSquaresJS under any + * license as long as this license notice is included + * - enables you to keep the source code of your program that uses MarchingSquaresJS + * undisclosed + * - forces you to share any modifications you have made to MarchingSquaresJS, + * e.g. bug-fixes + * + * You should have received a copy of the GNU Affero General Public License + * along with MarchingSquaresJS. If not, see . + */var UIe={successCallback:null,verbose:!1,polygons:!1},Ab={};function gGr(n,e,t,r){r=r||{};for(var i=Object.keys(UIe),a=0;a-1}function qGr(n,e,t){for(var r=n.length-1,i=n[0].length-1,a={rows:r,cols:i,cells:[]},o=e+Math.abs(t),s=0;so?128:64,u|=co?32:16,u|=fo?8:4,u|=do?2:1;var v=+u,p=0;if(u===17||u===18||u===33||u===34||u===38||u===68||u===72||u===98||u===102||u===132||u===136||u===137||u===152||u===153){var g=(h+c+f+d)/4;p=g>o?2:g0?(u=156,p=4):u=152:u===33?p>0?(u=139,p=4):u=137:u===72?p>0?(u=99,p=4):u=98:u===132&&(p>0?(u=39,p=4):u=38)}if(u!=0&&u!=170){var m,y,_,x,S,w,b,E;m=y=_=x=S=w=b=E=.5;var T=[];u===1?(_=1-he(e,f,d),E=1-he(e,h,d),T.push(En[u])):u===169?(_=he(o,d,f),E=he(o,d,h),T.push(En[u])):u===4?(w=1-he(e,c,f),x=he(e,d,f),T.push(Yr[u])):u===166?(w=he(o,f,c),x=1-he(o,f,d),T.push(Yr[u])):u===16?(S=he(e,f,c),y=he(e,h,c),T.push(Qr[u])):u===154?(S=1-he(o,c,f),y=1-he(o,c,h),T.push(Qr[u])):u===64?(b=he(e,d,h),m=1-he(e,c,h),T.push(Yn[u])):u===106?(b=1-he(o,h,d),m=he(o,h,c),T.push(Yn[u])):u===168?(x=he(o,d,f),_=he(e,d,f),E=he(e,d,h),b=he(o,d,h),T.push(kn[u]),T.push(En[u])):u===2?(x=1-he(e,f,d),_=1-he(o,f,d),E=1-he(o,h,d),b=1-he(e,h,d),T.push(kn[u]),T.push(En[u])):u===162?(S=he(o,f,c),w=he(e,f,c),x=1-he(e,f,d),_=1-he(o,f,d),T.push(kn[u]),T.push(En[u])):u===8?(S=1-he(e,c,f),w=1-he(o,c,f),x=he(o,d,f),_=he(e,d,f),T.push(Qr[u]),T.push(Yr[u])):u===138?(S=1-he(e,c,f),w=1-he(o,c,f),m=1-he(o,c,h),y=1-he(e,c,h),T.push(Qr[u]),T.push(Yr[u])):u===32?(S=he(o,f,c),w=he(e,f,c),m=he(e,h,c),y=he(o,h,c),T.push(Qr[u]),T.push(Yr[u])):u===42?(E=1-he(o,h,d),b=1-he(e,h,d),m=he(e,h,c),y=he(o,h,c),T.push(ei[u]),T.push(Yn[u])):u===128&&(E=he(e,d,h),b=he(o,d,h),m=1-he(o,c,h),y=1-he(e,c,h),T.push(ei[u]),T.push(Yn[u])),u===5?(w=1-he(e,c,f),E=1-he(e,h,d),T.push(Yr[u])):u===165?(w=he(o,f,c),E=he(o,d,h),T.push(Yr[u])):u===20?(x=he(e,d,f),y=he(e,h,c),T.push(kn[u])):u===150?(x=1-he(o,f,d),y=1-he(o,c,h),T.push(kn[u])):u===80?(S=he(e,f,c),b=he(e,d,h),T.push(Qr[u])):u===90?(S=1-he(o,c,f),b=1-he(o,h,d),T.push(Qr[u])):u===65?(_=1-he(e,f,d),m=1-he(e,c,h),T.push(En[u])):u===105?(_=he(o,d,f),m=he(o,h,c),T.push(En[u])):u===160?(S=he(o,f,c),w=he(e,f,c),E=he(e,d,h),b=he(o,d,h),T.push(Qr[u]),T.push(Yr[u])):u===10?(S=1-he(e,c,f),w=1-he(o,c,f),E=1-he(o,h,d),b=1-he(e,h,d),T.push(Qr[u]),T.push(Yr[u])):u===130?(x=1-he(e,f,d),_=1-he(o,f,d),m=1-he(o,c,h),y=1-he(e,c,h),T.push(kn[u]),T.push(En[u])):u===40?(x=he(o,d,f),_=he(e,d,f),m=he(e,h,c),y=he(o,h,c),T.push(kn[u]),T.push(En[u])):u===101?(w=he(o,f,c),m=he(o,h,c),T.push(Yr[u])):u===69?(w=1-he(e,c,f),m=1-he(e,c,h),T.push(Yr[u])):u===149?(E=he(o,d,h),y=1-he(o,c,h),T.push(ei[u])):u===21?(E=1-he(e,h,d),y=he(e,h,c),T.push(ei[u])):u===86?(x=1-he(o,f,d),b=1-he(o,h,d),T.push(kn[u])):u===84?(x=he(e,d,f),b=he(e,d,h),T.push(kn[u])):u===89?(S=1-he(o,c,f),_=he(o,d,f),T.push(En[u])):u===81?(S=he(e,f,c),_=1-he(e,f,d),T.push(En[u])):u===96?(S=he(o,f,c),w=he(e,f,c),b=he(e,d,h),m=he(o,h,c),T.push(Qr[u]),T.push(Yr[u])):u===74?(S=1-he(e,c,f),w=1-he(o,c,f),b=1-he(o,h,d),m=1-he(e,c,h),T.push(Qr[u]),T.push(Yr[u])):u===24?(S=1-he(o,c,f),x=he(o,d,f),_=he(e,d,f),y=he(e,h,c),T.push(Qr[u]),T.push(En[u])):u===146?(S=he(e,f,c),x=1-he(e,f,d),_=1-he(o,f,d),y=1-he(o,c,h),T.push(Qr[u]),T.push(En[u])):u===6?(w=1-he(e,c,f),x=1-he(o,f,d),E=1-he(o,h,d),b=1-he(e,h,d),T.push(Yr[u]),T.push(kn[u])):u===164?(w=he(o,f,c),x=he(e,d,f),E=he(e,d,h),b=he(o,d,h),T.push(Yr[u]),T.push(kn[u])):u===129?(_=1-he(e,f,d),E=he(o,d,h),m=1-he(o,c,h),y=1-he(e,c,h),T.push(En[u]),T.push(ei[u])):u===41?(_=he(o,d,f),E=1-he(e,h,d),m=he(e,h,c),y=he(o,h,c),T.push(En[u]),T.push(ei[u])):u===66?(x=1-he(e,f,d),_=1-he(o,f,d),b=1-he(o,h,d),m=1-he(e,c,h),T.push(kn[u]),T.push(En[u])):u===104?(x=he(o,d,f),_=he(e,d,f),b=he(e,d,h),m=he(o,h,c),T.push(En[u]),T.push($a[u])):u===144?(S=he(e,f,c),E=he(e,d,h),b=he(o,d,h),y=1-he(o,c,h),T.push(Qr[u]),T.push(Yn[u])):u===26?(S=1-he(o,c,f),E=1-he(o,h,d),b=1-he(e,h,d),y=he(e,h,c),T.push(Qr[u]),T.push(Yn[u])):u===36?(w=he(o,f,c),x=he(e,d,f),m=he(e,h,c),y=he(o,h,c),T.push(Yr[u]),T.push(kn[u])):u===134?(w=1-he(e,c,f),x=1-he(o,f,d),m=1-he(o,c,h),y=1-he(e,c,h),T.push(Yr[u]),T.push(kn[u])):u===9?(S=1-he(e,c,f),w=1-he(o,c,f),_=he(o,d,f),E=1-he(e,h,d),T.push(Qr[u]),T.push(Yr[u])):u===161?(S=he(o,f,c),w=he(e,f,c),_=1-he(e,f,d),E=he(o,d,h),T.push(Qr[u]),T.push(Yr[u])):u===37?(w=he(o,f,c),E=1-he(e,h,d),m=he(e,h,c),y=he(o,h,c),T.push(Yr[u]),T.push(ei[u])):u===133?(w=1-he(e,c,f),E=he(o,d,h),m=1-he(o,c,h),y=1-he(e,c,h),T.push(Yr[u]),T.push(ei[u])):u===148?(x=he(e,d,f),E=he(e,d,h),b=he(o,d,h),y=1-he(o,c,h),T.push(kn[u]),T.push(Yn[u])):u===22?(x=1-he(o,f,d),E=1-he(o,h,d),b=1-he(e,h,d),y=he(e,h,c),T.push(kn[u]),T.push(Yn[u])):u===82?(S=he(e,f,c),x=1-he(e,f,d),_=1-he(o,f,d),b=1-he(o,h,d),T.push(Qr[u]),T.push(En[u])):u===88?(S=1-he(o,c,f),x=he(o,d,f),_=he(e,d,f),b=he(e,d,h),T.push(Qr[u]),T.push(En[u])):u===73?(S=1-he(e,c,f),w=1-he(o,c,f),_=he(o,d,f),m=1-he(e,c,h),T.push(Qr[u]),T.push(Yr[u])):u===97?(S=he(o,f,c),w=he(e,f,c),_=1-he(e,f,d),m=he(o,h,c),T.push(Qr[u]),T.push(Yr[u])):u===145?(S=he(e,f,c),_=1-he(e,f,d),E=he(o,d,h),y=1-he(o,c,h),T.push(Qr[u]),T.push(ei[u])):u===25?(S=1-he(o,c,f),_=he(o,d,f),E=1-he(e,h,d),y=he(e,h,c),T.push(Qr[u]),T.push(ei[u])):u===70?(w=1-he(e,c,f),x=1-he(o,f,d),b=1-he(o,h,d),m=1-he(e,c,h),T.push(Yr[u]),T.push(kn[u])):u===100?(w=he(o,f,c),x=he(e,d,f),b=he(e,d,h),m=he(o,h,c),T.push(Yr[u]),T.push(kn[u])):u===34?(p===0?(S=1-he(e,c,f),w=1-he(o,c,f),x=he(o,d,f),_=he(e,d,f),E=he(e,d,h),b=he(o,d,h),m=1-he(o,c,h),y=1-he(e,c,h)):(S=he(o,f,c),w=he(e,f,c),x=1-he(e,f,d),_=1-he(o,f,d),E=1-he(o,h,d),b=1-he(e,h,d),m=he(e,h,c),y=he(o,h,c)),T.push(Qr[u]),T.push(Yr[u]),T.push(ei[u]),T.push(Yn[u])):u===35?(p===4?(S=1-he(e,c,f),w=1-he(o,c,f),x=he(o,d,f),_=he(e,d,f),E=he(e,d,h),b=he(o,d,h),m=1-he(o,c,h),y=1-he(e,c,h)):(S=he(o,f,c),w=he(e,f,c),x=1-he(e,f,d),_=1-he(o,f,d),E=1-he(o,h,d),b=1-he(e,h,d),m=he(e,h,c),y=he(o,h,c)),T.push(Qr[u]),T.push(Yr[u]),T.push(En[u]),T.push(Yn[u])):u===136?(p===0?(S=he(o,f,c),w=he(e,f,c),x=1-he(e,f,d),_=1-he(o,f,d),E=1-he(o,h,d),b=1-he(e,h,d),m=he(e,h,c),y=he(o,h,c)):(S=1-he(e,c,f),w=1-he(o,c,f),x=he(o,d,f),_=he(e,d,f),E=he(e,d,h),b=he(o,d,h),m=1-he(o,c,h),y=1-he(e,c,h)),T.push(Qr[u]),T.push(Yr[u]),T.push(ei[u]),T.push(Yn[u])):u===153?(p===0?(S=he(e,f,c),_=1-he(e,f,d),E=1-he(e,h,d),y=he(e,h,c)):(S=1-he(o,c,f),_=he(o,d,f),E=he(o,d,h),y=1-he(o,c,h)),T.push(Qr[u]),T.push(En[u])):u===102?(p===0?(w=1-he(e,c,f),x=he(e,d,f),b=he(e,d,h),m=1-he(e,c,h)):(w=he(o,f,c),x=1-he(o,f,d),b=1-he(o,h,d),m=he(o,h,c)),T.push(Yr[u]),T.push(Yn[u])):u===155?(p===4?(S=he(e,f,c),_=1-he(e,f,d),E=1-he(e,h,d),y=he(e,h,c)):(S=1-he(o,c,f),_=he(o,d,f),E=he(o,d,h),y=1-he(o,c,h)),T.push(Qr[u]),T.push(ei[u])):u===103?(p===4?(w=1-he(e,c,f),x=he(e,d,f),b=he(e,d,h),m=1-he(e,c,h)):(w=he(o,f,c),x=1-he(o,f,d),b=1-he(o,h,d),m=he(o,h,c)),T.push(Yr[u]),T.push(kn[u])):u===152?(p===0?(S=he(e,f,c),x=1-he(e,f,d),_=1-he(o,f,d),E=1-he(o,h,d),b=1-he(e,h,d),y=he(e,h,c)):(S=1-he(o,c,f),x=he(o,d,f),_=he(e,d,f),E=he(e,d,h),b=he(o,d,h),y=1-he(o,c,h)),T.push(Qr[u]),T.push(kn[u]),T.push(En[u])):u===156?(p===4?(S=he(e,f,c),x=1-he(e,f,d),_=1-he(o,f,d),E=1-he(o,h,d),b=1-he(e,h,d),y=he(e,h,c)):(S=1-he(o,c,f),x=he(o,d,f),_=he(e,d,f),E=he(e,d,h),b=he(o,d,h),y=1-he(o,c,h)),T.push(Qr[u]),T.push(En[u]),T.push(Yn[u])):u===137?(p===0?(S=he(o,f,c),w=he(e,f,c),_=1-he(e,f,d),E=1-he(e,h,d),m=he(e,h,c),y=he(o,h,c)):(S=1-he(e,c,f),w=1-he(o,c,f),_=he(o,d,f),E=he(o,d,h),m=1-he(o,c,h),y=1-he(e,c,h)),T.push(Qr[u]),T.push(Yr[u]),T.push(En[u])):u===139?(p===4?(S=he(o,f,c),w=he(e,f,c),_=1-he(e,f,d),E=1-he(e,h,d),m=he(e,h,c),y=he(o,h,c)):(S=1-he(e,c,f),w=1-he(o,c,f),_=he(o,d,f),E=he(o,d,h),m=1-he(o,c,h),y=1-he(e,c,h)),T.push(Qr[u]),T.push(Yr[u]),T.push(ei[u])):u===98?(p===0?(S=1-he(e,c,f),w=1-he(o,c,f),x=he(o,d,f),_=he(e,d,f),b=he(e,d,h),m=1-he(e,c,h)):(S=he(o,f,c),w=he(e,f,c),x=1-he(e,f,d),_=1-he(o,f,d),b=1-he(o,h,d),m=he(o,h,c)),T.push(Qr[u]),T.push(Yr[u]),T.push(Yn[u])):u===99?(p===4?(S=1-he(e,c,f),w=1-he(o,c,f),x=he(o,d,f),_=he(e,d,f),b=he(e,d,h),m=1-he(e,c,h)):(S=he(o,f,c),w=he(e,f,c),x=1-he(e,f,d),_=1-he(o,f,d),b=1-he(o,h,d),m=he(o,h,c)),T.push(Qr[u]),T.push(Yr[u]),T.push(En[u])):u===38?(p===0?(w=1-he(e,c,f),x=he(e,d,f),E=he(e,d,h),b=he(o,d,h),m=1-he(o,c,h),y=1-he(e,c,h)):(w=he(o,f,c),x=1-he(o,f,d),E=1-he(o,h,d),b=1-he(e,h,d),m=he(e,h,c),y=he(o,h,c)),T.push(Yr[u]),T.push(ei[u]),T.push(Yn[u])):u===39?(p===4?(w=1-he(e,c,f),x=he(e,d,f),E=he(e,d,h),b=he(o,d,h),m=1-he(o,c,h),y=1-he(e,c,h)):(w=he(o,f,c),x=1-he(o,f,d),E=1-he(o,h,d),b=1-he(e,h,d),m=he(e,h,c),y=he(o,h,c)),T.push(Yr[u]),T.push(kn[u]),T.push(Yn[u])):u===85&&(S=1,w=0,x=1,_=0,E=0,b=1,m=0,y=1),(m<0||m>1||y<0||y>1||S<0||S>1||x<0||x>1||E<0||E>1||b<0||b>1)&&console.log("MarchingSquaresJS-isoBands: "+u+" "+v+" "+h+","+c+","+f+","+d+" "+p+" "+m+" "+y+" "+S+" "+w+" "+x+" "+_+" "+E+" "+b),a.cells[s][l]={cval:u,cval_real:v,flipped:p,topleft:m,topright:y,righttop:S,rightbottom:w,bottomright:x,bottomleft:_,leftbottom:E,lefttop:b,edges:T}}}}}return a}function ZGr(n){for(var e=[],t=n.rows,r=n.cols,i=[],a=0;a0){var s=n.cells[a][o],l=QGr(s),u=null,h=o,c=a;l!==null&&i.push([l.p[0]+h,l.p[1]+c]);do{if(u=e9r(n.cells[c][h],l.x,l.y,l.o),u!==null)i.push([u.p[0]+h,u.p[1]+c]),h+=u.x,c+=u.y,l=u;else break;if(c<0||c>=t||h<0||h>=r||typeof n.cells[c][h]>"u"){h-=u.x,c-=u.y;var f=KGr(n,h,c,u.x,u.y,u.o);if(f!==null)f.path.forEach(function(d){i.push(d)}),h=f.i,c=f.j,l=f;else break}}while(typeof n.cells[c][h]<"u"&&n.cells[c][h].edges.length>0);e.push(i),i=[],n.cells[a][o].edges.length>0&&o--}return e}function KGr(n,e,t,r,i,a){for(var o=n.cells[t][e],s=o.cval_real,l=e+r,u=t+i,h=[],c=!1;!c;){if(typeof n.cells[u]>"u"||typeof n.cells[u][l]>"u")if(u-=i,l-=r,o=n.cells[u][l],s=o.cval_real,i===-1)if(a===0)if(s&Rh)h.push([l,u]),r=-1,i=0,a=0;else if(s&th)h.push([l+1,u]),r=1,i=0,a=0;else{h.push([l+o.bottomright,u]),r=0,i=1,a=1,c=!0;break}else if(s&Rh)h.push([l,u]),r=-1,i=0,a=0;else if(s&th){h.push([l+o.bottomright,u]),r=0,i=1,a=1,c=!0;break}else{h.push([l+o.bottomleft,u]),r=0,i=1,a=0,c=!0;break}else if(i===1)if(a===0)if(s&Rp)h.push([l+1,u+1]),r=1,i=0,a=1;else if(s&lc){h.push([l+o.topleft,u+1]),r=0,i=-1,a=0,c=!0;break}else{h.push([l+o.topright,u+1]),r=0,i=-1,a=1,c=!0;break}else s&Rp?(h.push([l+1,u+1]),r=1,i=0,a=1):(h.push([l+1,u+1]),r=1,i=0,a=1);else if(r===-1)if(a===0)if(s&lc)h.push([l,u+1]),r=0,i=1,a=0;else if(s&Rh){h.push([l,u+o.leftbottom]),r=1,i=0,a=0,c=!0;break}else{h.push([l,u+o.lefttop]),r=1,i=0,a=1,c=!0;break}else if(s&lc)h.push([l,u+1]),r=0,i=1,a=0;else{console.log("MarchingSquaresJS-isoBands: wtf");break}else if(r===1)if(a===0)if(s&th)h.push([l+1,u]),r=0,i=-1,a=1;else{h.push([l+1,u+o.rightbottom]),r=-1,i=0,a=0,c=!0;break}else if(s&th)h.push([l+1,u]),r=0,i=-1,a=1;else if(s&Rp){h.push([l+1,u+o.righttop]),r=-1,i=0,a=1;break}else{h.push([l+1,u+o.rightbottom]),r=-1,i=0,a=0,c=!0;break}else{console.log("MarchingSquaresJS-isoBands: we came from nowhere!");break}else if(o=n.cells[u][l],s=o.cval_real,r===-1)if(a===0)if(typeof n.cells[u-1]<"u"&&typeof n.cells[u-1][l]<"u")r=0,i=-1,a=1;else if(s&Rh)h.push([l,u]);else{h.push([l+o.bottomright,u]),r=0,i=1,a=1,c=!0;break}else if(s&lc)console.log("MarchingSquaresJS-isoBands: proceeding in x-direction!");else{console.log("MarchingSquaresJS-isoBands: found entry from top at "+l+","+u);break}else if(r===1)if(a===0){console.log("MarchingSquaresJS-isoBands: wtf");break}else if(typeof n.cells[u+1]<"u"&&typeof n.cells[u+1][l]<"u")r=0,i=1,a=0;else if(s&Rp)h.push([l+1,u+1]),r=1,i=0,a=1;else{h.push([l+o.topleft,u+1]),r=0,i=-1,a=0,c=!0;break}else if(i===-1)if(a===1)if(typeof n.cells[u][l+1]<"u")r=1,i=0,a=1;else if(s&th)h.push([l+1,u]),r=0,i=-1,a=1;else{h.push([l+1,u+o.righttop]),r=-1,i=0,a=1,c=!0;break}else{console.log("MarchingSquaresJS-isoBands: wtf");break}else if(i===1)if(a===0)if(typeof n.cells[u][l-1]<"u")r=-1,i=0,a=0;else if(s&lc)h.push([l,u+1]),r=0,i=1,a=0;else{h.push([l,u+o.leftbottom]),r=1,i=0,a=0,c=!0;break}else{console.log("MarchingSquaresJS-isoBands: wtf");break}else{console.log("MarchingSquaresJS-isoBands: where did we came from???");break}if(l+=r,u+=i,l===e&&u===t)break}return{path:h,i:l,j:u,x:r,y:i,o:a}}function JGr(n,e){delete n.edges[e];for(var t=e+1;t0){var e=n.edges[n.edges.length-1],t=n.cval_real;switch(e){case 0:return t&Rp?{p:[1,n.righttop],x:-1,y:0,o:1}:{p:[n.topleft,1],x:0,y:-1,o:0};case 1:return t&th?{p:[n.topleft,1],x:0,y:-1,o:0}:{p:[1,n.rightbottom],x:-1,y:0,o:0};case 2:return t&th?{p:[n.bottomright,0],x:0,y:1,o:1}:{p:[n.topleft,1],x:0,y:-1,o:0};case 3:return t&Rh?{p:[n.topleft,1],x:0,y:-1,o:0}:{p:[n.bottomleft,0],x:0,y:1,o:0};case 4:return t&Rp?{p:[1,n.righttop],x:-1,y:0,o:1}:{p:[n.topright,1],x:0,y:-1,o:1};case 5:return t&th?{p:[n.topright,1],x:0,y:-1,o:1}:{p:[1,n.rightbottom],x:-1,y:0,o:0};case 6:return t&th?{p:[n.bottomright,0],x:0,y:1,o:1}:{p:[n.topright,1],x:0,y:-1,o:1};case 7:return t&Rh?{p:[n.topright,1],x:0,y:-1,o:1}:{p:[n.bottomleft,0],x:0,y:1,o:0};case 8:return t&th?{p:[n.bottomright,0],x:0,y:1,o:1}:{p:[1,n.righttop],x:-1,y:0,o:1};case 9:return t&Rh?{p:[1,n.righttop],x:-1,y:0,o:1}:{p:[n.bottomleft,0],x:0,y:1,o:0};case 10:return t&Rh?{p:[0,n.leftbottom],x:1,y:0,o:0}:{p:[1,n.righttop],x:-1,y:0,o:1};case 11:return t&lc?{p:[1,n.righttop],x:-1,y:0,o:1}:{p:[0,n.lefttop],x:1,y:0,o:1};case 12:return t&th?{p:[n.bottomright,0],x:0,y:1,o:1}:{p:[1,n.rightbottom],x:-1,y:0,o:0};case 13:return t&Rh?{p:[1,n.rightbottom],x:-1,y:0,o:0}:{p:[n.bottomleft,0],x:0,y:1,o:0};case 14:return t&Rh?{p:[0,n.leftbottom],x:1,y:0,o:0}:{p:[1,n.rightbottom],x:-1,y:0,o:0};case 15:return t&lc?{p:[1,n.rightbottom],x:-1,y:0,o:0}:{p:[0,n.lefttop],x:1,y:0,o:1};case 16:return t&th?{p:[n.bottomright,0],x:0,y:1,o:1}:{p:[0,n.leftbottom],x:1,y:0,o:0};case 17:return t&lc?{p:[n.bottomright,0],x:0,y:1,o:1}:{p:[0,n.lefttop],x:1,y:0,o:1};case 18:return t&Rh?{p:[0,n.leftbottom],x:1,y:0,o:0}:{p:[n.bottomleft,0],x:0,y:1,o:0};case 19:return t&lc?{p:[n.bottomleft,0],x:0,y:1,o:0}:{p:[0,n.lefttop],x:1,y:0,o:1};case 20:return t&lc?{p:[n.topleft,1],x:0,y:-1,o:0}:{p:[0,n.leftbottom],x:1,y:0,o:0};case 21:return t&Rp?{p:[0,n.leftbottom],x:1,y:0,o:0}:{p:[n.topright,1],x:0,y:-1,o:1};case 22:return t&lc?{p:[n.topleft,1],x:0,y:-1,o:0}:{p:[0,n.lefttop],x:1,y:0,o:1};case 23:return t&Rp?{p:[0,n.lefttop],x:1,y:0,o:1}:{p:[n.topright,1],x:0,y:-1,o:1};default:console.log("MarchingSquaresJS-isoBands: edge index out of range!"),console.log(n);break}}return null}function e9r(n,e,t,r){var i,a,o,s,l=n.cval,u;switch(e){case-1:switch(r){case 0:i=Yr[l],o=Ma[l],s=Ia[l],u=La[l];break;default:i=Qr[l],o=Ta[l],s=Ca[l],u=Aa[l];break}break;case 1:switch(r){case 0:i=ei[l],o=za[l],s=Ua[l],u=Va[l];break;default:i=Yn[l],o=Fa[l],s=Ba[l],u=Ga[l];break}break;default:switch(t){case-1:switch(r){case 0:i=$a[l],o=_a[l],s=xa[l],u=Sa[l];break;default:i=Ya[l],o=wa[l],s=ba[l],u=Ea[l];break}break;case 1:switch(r){case 0:i=En[l],o=Pa[l],s=Oa[l],u=Ra[l];break;default:i=kn[l],o=Da[l],s=Na[l],u=ka[l];break}break}break}if(a=n.edges.indexOf(i),typeof n.edges[a]<"u")JGr(n,a);else return null;switch(l=n.cval_real,i){case 0:l&Rp?(e=n.topleft,t=1):(e=1,t=n.righttop);break;case 1:l&th?(e=1,t=n.rightbottom):(e=n.topleft,t=1);break;case 2:l&th?(e=n.topleft,t=1):(e=n.bottomright,t=0);break;case 3:l&Rh?(e=n.bottomleft,t=0):(e=n.topleft,t=1);break;case 4:l&Rp?(e=n.topright,t=1):(e=1,t=n.righttop);break;case 5:l&th?(e=1,t=n.rightbottom):(e=n.topright,t=1);break;case 6:l&th?(e=n.topright,t=1):(e=n.bottomright,t=0);break;case 7:l&Rh?(e=n.bottomleft,t=0):(e=n.topright,t=1);break;case 8:l&th?(e=1,t=n.righttop):(e=n.bottomright,t=0);break;case 9:l&Rh?(e=n.bottomleft,t=0):(e=1,t=n.righttop);break;case 10:l&Rh?(e=1,t=n.righttop):(e=0,t=n.leftbottom);break;case 11:l&lc?(e=0,t=n.lefttop):(e=1,t=n.righttop);break;case 12:l&th?(e=1,t=n.rightbottom):(e=n.bottomright,t=0);break;case 13:l&Rh?(e=n.bottomleft,t=0):(e=1,t=n.rightbottom);break;case 14:l&Rh?(e=1,t=n.rightbottom):(e=0,t=n.leftbottom);break;case 15:l&lc?(e=0,t=n.lefttop):(e=1,t=n.rightbottom);break;case 16:l&th?(e=0,t=n.leftbottom):(e=n.bottomright,t=0);break;case 17:l&lc?(e=0,t=n.lefttop):(e=n.bottomright,t=0);break;case 18:l&Rh?(e=n.bottomleft,t=0):(e=0,t=n.leftbottom);break;case 19:l&lc?(e=0,t=n.lefttop):(e=n.bottomleft,t=0);break;case 20:l&lc?(e=0,t=n.leftbottom):(e=n.topleft,t=1);break;case 21:l&Rp?(e=n.topright,t=1):(e=0,t=n.leftbottom);break;case 22:l&lc?(e=0,t=n.lefttop):(e=n.topleft,t=1);break;case 23:l&Rp?(e=n.topright,t=1):(e=0,t=n.lefttop);break;default:return console.log("MarchingSquaresJS-isoBands: edge index out of range!"),console.log(n),null}return(typeof e>"u"||typeof t>"u"||typeof o>"u"||typeof s>"u"||typeof u>"u")&&(console.log("MarchingSquaresJS-isoBands: undefined value!"),console.log(n),console.log(e+" "+t+" "+o+" "+s+" "+u)),{p:[e,t],x:o,y:s,o:u}}function t9r(n){var e=[],t=0;return n.cells.forEach(function(r,i){r.forEach(function(a,o){if(typeof a<"u"){var s=zr[a.cval](a);typeof s=="object"&&_Z(s)?typeof s[0]=="object"&&_Z(s[0])?typeof s[0][0]=="object"&&_Z(s[0][0])?s.forEach(function(l){l.forEach(function(u){u[0]+=o,u[1]+=i}),e[t++]=l}):(s.forEach(function(l){l[0]+=o,l[1]+=i}),e[t++]=s):console.log("MarchingSquaresJS-isoBands: bandcell polygon with malformed coordinates"):console.log("MarchingSquaresJS-isoBands: bandcell polygon with null coordinates")}})}),e}function r9r(n,e,t){if(t=t||{},!Io(t))throw new Error("options is invalid");var r=t.zProperty||"elevation",i=t.commonProperties||{},a=t.breaksProperties||[];if(Y_(n,"Point","Input must contain Points"),!e)throw new Error("breaks is required");if(!Array.isArray(e))throw new Error("breaks is not an Array");if(!Io(i))throw new Error("commonProperties is not an Object");if(!Array.isArray(a))throw new Error("breaksProperties is not an Array");var o=vGr(n,{zProperty:r,flip:!0}),s=n9r(o,e,r);s=i9r(s,o,n);var l=s.map(function(u,h){if(a[h]&&!Io(a[h]))throw new Error("Each mappedProperty is required to be an Object");var c=Ghe({},i,a[h]);c[r]=u[r];var f=Ld(u.groupedRings,c);return f});return Zn(l)}function n9r(n,e,t){for(var r=[],i=1;i0){var h=r[l-1],c=g9r(u,h);c!==!1&&(h[1]=c,u[0]=c),o.push(h[0]),l===a.length-2&&(o.push(u[0]),o.push(u[1]))}a.length===2&&(o.push(u[0]),o.push(u[1]))}}),yo(o,n.properties)}function m9r(n,e,t){var r=Math.sqrt((n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1])),i=n[0]+t*(e[1]-n[1])/r,a=e[0]+t*(e[1]-n[1])/r,o=n[1]+t*(n[0]-e[0])/r,s=e[1]+t*(n[0]-e[0])/r;return[[i,o],[a,s]]}function _9r(n){return(n>0)-(n<0)||+n}function fce(n,e,t){var r=e[0]-n[0],i=e[1]-n[1],a=t[0]-e[0],o=t[1]-e[1];return _9r(r*o-a*i)}function x9r(n,e){var t=n.geometry.coordinates[0].map(function(o){return o[0]}),r=n.geometry.coordinates[0].map(function(o){return o[1]}),i=e.geometry.coordinates[0].map(function(o){return o[0]}),a=e.geometry.coordinates[0].map(function(o){return o[1]});return Math.max.apply(null,t)===Math.max.apply(null,i)&&Math.max.apply(null,r)===Math.max.apply(null,a)&&Math.min.apply(null,t)===Math.min.apply(null,i)&&Math.min.apply(null,r)===Math.min.apply(null,a)}function WIe(n,e){return e.geometry.coordinates[0].every(function(t){return ss(Vi(t),n)})}function S9r(n,e){return n[0]===e[0]&&n[1]===e[1]}var w9r=function(){function n(e){this.id=n.buildId(e),this.coordinates=e,this.innerEdges=[],this.outerEdges=[],this.outerEdgesSorted=!1}return n.buildId=function(e){return e.join(",")},n.prototype.removeInnerEdge=function(e){this.innerEdges=this.innerEdges.filter(function(t){return t.from.id!==e.from.id})},n.prototype.removeOuterEdge=function(e){this.outerEdges=this.outerEdges.filter(function(t){return t.to.id!==e.to.id})},n.prototype.addOuterEdge=function(e){this.outerEdges.push(e),this.outerEdgesSorted=!1},n.prototype.sortOuterEdges=function(){var e=this;this.outerEdgesSorted||(this.outerEdges.sort(function(t,r){var i=t.to,a=r.to;if(i.coordinates[0]-e.coordinates[0]>=0&&a.coordinates[0]-e.coordinates[0]<0)return 1;if(i.coordinates[0]-e.coordinates[0]<0&&a.coordinates[0]-e.coordinates[0]>=0)return-1;if(i.coordinates[0]-e.coordinates[0]===0&&a.coordinates[0]-e.coordinates[0]===0)return i.coordinates[1]-e.coordinates[1]>=0||a.coordinates[1]-e.coordinates[1]>=0?i.coordinates[1]-a.coordinates[1]:a.coordinates[1]-i.coordinates[1];var o=fce(e.coordinates,i.coordinates,a.coordinates);if(o<0)return 1;if(o>0)return-1;var s=Math.pow(i.coordinates[0]-e.coordinates[0],2)+Math.pow(i.coordinates[1]-e.coordinates[1],2),l=Math.pow(a.coordinates[0]-e.coordinates[0],2)+Math.pow(a.coordinates[1]-e.coordinates[1],2);return s-l}),this.outerEdgesSorted=!0)},n.prototype.getOuterEdges=function(){return this.sortOuterEdges(),this.outerEdges},n.prototype.getOuterEdge=function(e){return this.sortOuterEdges(),this.outerEdges[e]},n.prototype.addInnerEdge=function(e){this.innerEdges.push(e)},n}();const HIe=w9r;var b9r=function(){function n(e,t){this.from=e,this.to=t,this.next=void 0,this.label=void 0,this.symetric=void 0,this.ring=void 0,this.from.addOuterEdge(this),this.to.addInnerEdge(this)}return n.prototype.getSymetric=function(){return this.symetric||(this.symetric=new n(this.to,this.from),this.symetric.symetric=this),this.symetric},n.prototype.deleteEdge=function(){this.from.removeOuterEdge(this),this.to.removeInnerEdge(this)},n.prototype.isEqual=function(e){return this.from.id===e.from.id&&this.to.id===e.to.id},n.prototype.toString=function(){return"Edge { "+this.from.id+" -> "+this.to.id+" }"},n.prototype.toLineString=function(){return yo([this.from.coordinates,this.to.coordinates])},n.prototype.compareTo=function(e){return fce(e.from.coordinates,e.to.coordinates,this.to.coordinates)},n}();const E9r=b9r;var T9r=function(){function n(){this.edges=[],this.polygon=void 0,this.envelope=void 0}return n.prototype.push=function(e){this.edges.push(e),this.polygon=this.envelope=void 0},n.prototype.get=function(e){return this.edges[e]},Object.defineProperty(n.prototype,"length",{get:function(){return this.edges.length},enumerable:!0,configurable:!0}),n.prototype.forEach=function(e){this.edges.forEach(e)},n.prototype.map=function(e){return this.edges.map(e)},n.prototype.some=function(e){return this.edges.some(e)},n.prototype.isValid=function(){return!0},n.prototype.isHole=function(){var e=this,t=this.edges.reduce(function(o,s,l){return s.from.coordinates[1]>e.edges[o].from.coordinates[1]&&(o=l),o},0),r=(t===0?this.length:t)-1,i=(t+1)%this.length,a=fce(this.edges[r].from.coordinates,this.edges[t].from.coordinates,this.edges[i].from.coordinates);return a===0?this.edges[r].from.coordinates[0]>this.edges[i].from.coordinates[0]:a>0},n.prototype.toMultiPoint=function(){return $k(this.edges.map(function(e){return e.from.coordinates}))},n.prototype.toPolygon=function(){if(this.polygon)return this.polygon;var e=this.edges.map(function(t){return t.from.coordinates});return e.push(this.edges[0].from.coordinates),this.polygon=Qi([e])},n.prototype.getEnvelope=function(){return this.envelope?this.envelope:this.envelope=WZe(this.toPolygon())},n.findEdgeRingContaining=function(e,t){var r=e.getEnvelope(),i,a;return t.forEach(function(o){var s=o.getEnvelope();if(a&&(i=a.getEnvelope()),!x9r(s,r)&&WIe(s,r)){for(var l=e.map(function(v){return v.from.coordinates}),u=void 0,h=function(v){o.some(function(p){return S9r(v,p.from.coordinates)})||(u=v)},c=0,f=l;c"u"?Object.keys(this.nodes).forEach(function(r){return t._computeNextCWEdges(t.nodes[r])}):e.getOuterEdges().forEach(function(r,i){e.getOuterEdge((i===0?e.getOuterEdges().length:i)-1).symetric.next=r})},n.prototype._computeNextCCWEdges=function(e,t){for(var r=e.getOuterEdges(),i,a,o=r.length-1;o>=0;--o){var s=r[o],l=s.symetric,u=void 0,h=void 0;s.label===t&&(u=s),l.label===t&&(h=l),!(!u||!h)&&(h&&(a=h),u&&(a&&(a.next=u,a=void 0),i||(i=u)))}a&&(a.next=i)},n.prototype._findLabeledEdgeRings=function(){var e=[],t=0;return this.edges.forEach(function(r){if(!(r.label>=0)){e.push(r);var i=r;do i.label=t,i=i.next;while(!r.isEqual(i));t++}}),e},n.prototype.getEdgeRings=function(){var e=this;this._computeNextCWEdges(),this.edges.forEach(function(r){r.label=void 0}),this._findLabeledEdgeRings().forEach(function(r){e._findIntersectionNodes(r).forEach(function(i){e._computeNextCCWEdges(i,r.label)})});var t=[];return this.edges.forEach(function(r){r.ring||t.push(e._findEdgeRing(r))}),t},n.prototype._findIntersectionNodes=function(e){var t=[],r=e,i=function(){var a=0;r.from.getOuterEdges().forEach(function(o){o.label===e.label&&++a}),a>1&&t.push(r.from),r=r.next};do i();while(!e.isEqual(r));return t},n.prototype._findEdgeRing=function(e){var t=e,r=new XKe;do r.push(t),t.ring=r,t=t.next;while(!e.isEqual(t));return r},n.prototype.removeNode=function(e){var t=this;e.getOuterEdges().forEach(function(r){return t.removeEdge(r)}),e.innerEdges.forEach(function(r){return t.removeEdge(r)}),delete this.nodes[e.id]},n.prototype.removeEdge=function(e){this.edges=this.edges.filter(function(t){return!t.isEqual(e)}),e.deleteEdge()},n}();const M9r=A9r;function I9r(n){var e=M9r.fromGeoJson(n);e.deleteDangles(),e.deleteCutEdges();var t=[],r=[];return e.getEdgeRings().filter(function(i){return i.isValid()}).forEach(function(i){i.isHole()?t.push(i):r.push(i)}),t.forEach(function(i){XKe.findEdgeRingContaining(i,r)&&r.push(i)}),Zn(r.map(function(i){return i.toPolygon()}))}function YKe(n,e){var t=!0;return fh(n,function(r){fh(e,function(i){if(t===!1)return!1;t=L9r(r.geometry,i.geometry)})}),t}function L9r(n,e){switch(n.type){case"Point":switch(e.type){case"Point":return!D9r(n.coordinates,e.coordinates);case"LineString":return!jIe(e,n);case"Polygon":return!ss(n,e)}break;case"LineString":switch(e.type){case"Point":return!jIe(n,e);case"LineString":return!P9r(n,e);case"Polygon":return!XIe(e,n)}break;case"Polygon":switch(e.type){case"Point":return!ss(e,n);case"LineString":return!XIe(n,e);case"Polygon":return!O9r(e,n)}}return!1}function jIe(n,e){for(var t=0;t0}function XIe(n,e){for(var t=0,r=e.coordinates;t0}function O9r(n,e){for(var t=0,r=n.coordinates[0];t0}function R9r(n,e,t){var r=t[0]-n[0],i=t[1]-n[1],a=e[0]-n[0],o=e[1]-n[1],s=r*o-i*a;return s!==0?!1:Math.abs(a)>=Math.abs(o)?a>0?n[0]<=t[0]&&t[0]<=e[0]:e[0]<=t[0]&&t[0]<=n[0]:o>0?n[1]<=t[1]&&t[1]<=e[1]:e[1]<=t[1]&&t[1]<=n[1]}function D9r(n,e){return n[0]===e[0]&&n[1]===e[1]}function N9r(n,e){var t=ls(n),r=ls(e),i=t.type,a=r.type,o=t.coordinates,s=r.coordinates;switch(i){case"Point":switch(a){case"Point":return dce(o,s);default:throw new Error("feature2 "+a+" geometry not supported")}case"MultiPoint":switch(a){case"Point":return k9r(t,r);case"MultiPoint":return F9r(t,r);default:throw new Error("feature2 "+a+" geometry not supported")}case"LineString":switch(a){case"Point":return yd(r,t,{ignoreEndVertices:!0});case"LineString":return z9r(t,r);case"MultiPoint":return B9r(t,r);default:throw new Error("feature2 "+a+" geometry not supported")}case"Polygon":switch(a){case"Point":return ss(r,t,{ignoreBoundary:!0});case"LineString":return U9r(t,r);case"Polygon":return V9r(t,r);case"MultiPoint":return G9r(t,r);default:throw new Error("feature2 "+a+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}}function k9r(n,e){var t,r=!1;for(t=0;te[0]||n[2]e[1]||n[3]0)for(var r=0;r0}function ZIe(n,e){for(var t=!1,r=!1,i=n.coordinates.length,a=0;a=Math.abs(s)?o>0?n[0]<=t[0]&&t[0]<=e[0]:e[0]<=t[0]&&t[0]<=n[0]:s>0?n[1]<=t[1]&&t[1]<=e[1]:e[1]<=t[1]&&t[1]<=n[1]:Math.abs(o)>=Math.abs(s)?o>0?n[0]0?n[1]=0&&(t=[].concat(n.slice(r,n.length),n.slice(1,r+1))),t};Gm.prototype.comparePath=function(n,e){var t=this;return n.every(function(r,i){return t.compareCoord(r,this[i])},e)};Gm.prototype.comparePolygon=function(n,e){if(this.compareLine(n.coordinates[0],e.coordinates[0],1,!0)){var t=n.coordinates.slice(1,n.coordinates.length),r=e.coordinates.slice(1,e.coordinates.length),i=this;return t.every(function(a){return this.some(function(o){return i.compareLine(a,o,1,!0)})},r)}else return!1};Gm.prototype.compareFeature=function(n,e){return n.id!==e.id||!this.objectComparator(n.properties,e.properties)||!this.compareBBox(n,e)?!1:this.compare(n.geometry,e.geometry)};Gm.prototype.compareBBox=function(n,e){return!!(!n.bbox&&!e.bbox||n.bbox&&e.bbox&&this.compareCoord(n.bbox,e.bbox))};Gm.prototype.removePseudo=function(n){return n};function X9r(n,e){return j9r(n,e,{strict:!0})}var Y9r=Gm;const JKe=Y9r;function q9r(n,e){var t=ls(n),r=ls(e),i=t.type,a=r.type;if(i==="MultiPoint"&&a!=="MultiPoint"||(i==="LineString"||i==="MultiLineString")&&a!=="LineString"&&a!=="MultiLineString"||(i==="Polygon"||i==="MultiPolygon")&&a!=="Polygon"&&a!=="MultiPolygon")throw new Error("features must be of the same type");if(i==="Point")throw new Error("Point geometry not supported");var o=new JKe({precision:6});if(o.compare(n,e))return!1;var s=0;switch(i){case"MultiPoint":for(var l=0;l0}function Z9r(n,e){var t=ls(n).type,r=ls(e).type;if(t!==r)return!1;var i=new JKe({precision:6});return i.compare(E2(n),E2(e))}function QKe(n,e){var t=!1;return fh(n,function(r){fh(e,function(i){if(t===!0)return!0;t=!YKe(r.geometry,i.geometry)})}),t}var eJe={exports:{}},xZ={exports:{}},JIe;function K9r(){return JIe||(JIe=1,function(n){function e(t,r,i,a){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(t,r,i,a)}e.prototype.run=function(t,r,i,a){this._init(t,r,i,a);for(var o=0;o=this.minPts&&(r=this._mergeArrays(r,o))}this._assigned[a]!==1&&this._addToCluster(a,t)}},e.prototype._addToCluster=function(t,r){this.clusters[r].push(t),this._assigned[t]=1},e.prototype._regionQuery=function(t){for(var r=[],i=0;i0){for(var h=0;h=0);return r},e.prototype.assign=function(){for(var t=!1,r=this.dataset.length,i,a=0;a"u"&&(t[r]=[]),t[r].push(i);return t},e.prototype.argmin=function(t,r,i){for(var a=Number.MAX_VALUE,o=0,s=r.length,l,u=0;uo&&(i=a):r=this.minPts)return a}},t.prototype._regionQuery=function(r,i){i=i||this.epsilon;for(var a=[],o=0,s=this.dataset.length;o0;i.length0;){var l=e[Math.floor(Math.random()*o)],u=s?l.join("_"):""+l;r[u]||(r[u]=!0,i.push(l))}if(i.length0,s=e[Math.floor(Math.random()*a)];for(o?s.join("_"):""+s,i.push(s);i.length0,d=[];if(t)t=="kmrand"?i=s7r(n,e):t=="kmpp"?i=l7r(n,e):i=t;else for(var v={};i.lengtht&&(e.numberOfClusters=t),e.mutate!==!0&&(n=Xh(n));var r=ZM(n),i=r.slice(0,e.numberOfClusters),a=h7r(r,e.numberOfClusters,i),o={};return a.centroids.forEach(function(s,l){o[l]=s}),uo(n,function(s,l){var u=a.idxs[l];s.properties.cluster=u,s.properties.centroid=o[u]}),n}function f7r(n,e){if(!n)throw new Error("line1 is required");if(!e)throw new Error("line2 is required");var t=iLe(n,"line1");if(t!=="LineString")throw new Error("line1 must be a LineString");var r=iLe(e,"line2");if(r!=="LineString")throw new Error("line2 must be a LineString");for(var i=C2(E2(n)).features,a=C2(E2(e)).features,o=0;o0;){var l=o.pop();if(l===t)return aLe(l);l.closed=!0;for(var u=n.neighbors(l),h=0,c=u.length;h0&&(this.content[0]=e,this.bubbleUp(0)),n},remove:function(n){var e=this.content.indexOf(n),t=this.content.pop();e!==this.content.length-1&&(this.content[e]=t,this.scoreFunction(t)0;){var t=(n+1>>1)-1,r=this.content[t];if(this.scoreFunction(e)=f;){for(var G=[],V=[],z=c+b,j=0;z<=d;){var Z=Vi([z,k]),Y=g7r(Z,a);G.push(Y?0:1),V.push(z+"|"+k);var le=Mo(Z,n);!Y&&le0)){if(p/=d,d<0){if(p0){if(p>f)return;p>c&&(c=p)}if(p=r-s,!(!d&&p<0)){if(p/=d,d<0){if(p>f)return;p>c&&(c=p)}else if(d>0){if(p0)){if(p/=v,v<0){if(p0){if(p>f)return;p>c&&(c=p)}if(p=i-l,!(!v&&p<0)){if(p/=v,v<0){if(p>f)return;p>c&&(c=p)}else if(v>0){if(p0)&&!(f<1)||(c>0&&(n[0]=[s+c*d,l+c*v]),f<1&&(n[1]=[s+f*d,l+f*v])),!0}}}}}function x7r(n,e,t,r,i){var a=n[1];if(a)return!0;var o=n[0],s=n.left,l=n.right,u=s[0],h=s[1],c=l[0],f=l[1],d=(u+c)/2,v=(h+f)/2,p,g;if(f===h){if(d=r)return;if(u>c){if(!o)o=[d,t];else if(o[1]>=i)return;a=[d,i]}else{if(!o)o=[d,i];else if(o[1]1)if(u>c){if(!o)o=[(t-g)/p,t];else if(o[1]>=i)return;a=[(i-g)/p,i]}else{if(!o)o=[(i-g)/p,i];else if(o[1]=r)return;a=[r,p*r+g]}else{if(!o)o=[r,p*r+g];else if(o[0]vs||Math.abs(a[0][1]-a[1][1])>vs))&&delete Nc[i]}function w7r(n){return hv[n.index]={site:n,halfedges:[]}}function b7r(n,e){var t=n.site,r=e.left,i=e.right;return t===i&&(i=r,r=t),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(t===r?(r=e[1],i=e[0]):(r=e[0],i=e[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function oJe(n,e){return e[+(e.left!==n.site)]}function E7r(n,e){return e[+(e.left===n.site)]}function T7r(){for(var n=0,e=hv.length,t,r,i,a;nvs||Math.abs(g-d)>vs)&&(u.splice(l,0,Nc.push(WP(s,v,Math.abs(p-n)vs?[n,Math.abs(f-n)vs?[Math.abs(d-r)vs?[t,Math.abs(f-t)vs?[Math.abs(d-e)=-O7r)){var d=l*l+u*u,v=h*h+c*c,p=(c*d-u*v)/f,g=(l*v-h*d)/f,m=sJe.pop()||new A7r;m.arc=n,m.site=i,m.x=p+o,m.y=(m.cy=g+s)+Math.sqrt(p*p+g*g),n.circle=m;for(var y=null,_=LN._;_;)if(m.y<_.y||m.y===_.y&&m.x<=_.x)if(_.L)_=_.L;else{y=_.P;break}else if(_.R)_=_.R;else{y=_;break}LN.insert(y,m),y||(vce=m)}}}}function aM(n){var e=n.circle;e&&(e.P||(vce=e.N),LN.remove(e),sJe.push(e),C$(e),n.circle=null)}var lJe=[];function M7r(){C$(this),this.edge=this.site=this.circle=null}function lLe(n){var e=lJe.pop()||new M7r;return e.site=n,e}function EZ(n){aM(n),oM.remove(n),lJe.push(n),C$(n)}function I7r(n){var e=n.circle,t=e.x,r=e.cy,i=[t,r],a=n.P,o=n.N,s=[n];EZ(n);for(var l=a;l.circle&&Math.abs(t-l.circle.x)vs)s=s.L;else if(o=e-P7r(s,t),o>vs){if(!s.R){r=s;break}s=s.R}else{a>-vs?(r=s.P,i=s):o>-vs?(r=s,i=s.N):r=i=s;break}w7r(n);var l=lLe(n);if(oM.insert(r,l),!(!r&&!i)){if(r===i){aM(r),i=lLe(r.site),oM.insert(l,i),l.edge=i.edge=NO(r.site,l.site),OA(r),OA(i);return}if(!i){l.edge=NO(r.site,l.site);return}aM(r),aM(i);var u=r.site,h=u[0],c=u[1],f=n[0]-h,d=n[1]-c,v=i.site,p=v[0]-h,g=v[1]-c,m=2*(f*g-d*p),y=f*f+d*d,_=p*p+g*g,x=[(g*y-d*_)/m+h,(f*_-p*y)/m+c];G7(i.edge,u,v,x),l.edge=NO(u,n,null,x),i.edge=NO(n,v,null,x),OA(r),OA(i)}}function uJe(n,e){var t=n.site,r=t[0],i=t[1],a=i-e;if(!a)return r;var o=n.P;if(!o)return-1/0;t=o.site;var s=t[0],l=t[1],u=l-e;if(!u)return s;var h=s-r,c=1/a-1/u,f=h/u;return c?(-f+Math.sqrt(f*f-2*c*(h*h/(-2*u)-l+u/2+i-a/2)))/c+r:(r+s)/2}function P7r(n,e){var t=n.N;if(t)return uJe(t,e);var r=n.site;return r[1]===e?r[0]:1/0}var vs=1e-6,O7r=1e-12,oM,hv,LN,Nc;function R7r(n,e,t){return(n[0]-t[0])*(e[1]-n[1])-(n[0]-e[0])*(t[1]-n[1])}function D7r(n,e){return e[1]-n[1]||e[0]-n[0]}function kre(n,e){var t=n.sort(D7r).pop(),r,i,a;for(Nc=[],hv=new Array(n.length),oM=new B7,LN=new B7;;)if(a=vce,t&&(!a||t[1]=o)return null;var l=n-s.site[0],u=e-s.site[1],h=l*l+u*u;do s=r.cells[i=a],a=null,s.halfedges.forEach(function(c){var f=r.edges[c],d=f.left;if(!((d===s.site||!d)&&!(d=f.right))){var v=n-d[0],p=e-d[1],g=v*v+p*p;g=-270&&(v=-v),d<-180&&d>=-360&&(p=-p),a==="degrees"){var g=v*Math.cos(h)+p*Math.sin(h),m=p*Math.cos(h)-v*Math.sin(h);v=g,p=m}c.push([v+u[0],p+u[1]])}return c.push(c[0]),a==="degrees"?Qi([c],l):HKe(Qi([c],l),o,{pivot:s})}function uLe(n){var e=n*Math.PI/180;return Math.tan(e)}function pce(n,e){e===void 0&&(e={});var t=0,r=0,i=0;return Pd(n,function(a,o,s){var l=e.weight?s==null?void 0:s[e.weight]:void 0;if(l=l==null?1:l,!Gu(l))throw new Error("weight value must be a number for feature index "+o);l=Number(l),l>0&&pl(a,function(u){t+=u[0]*l,r+=u[1]*l,i+=l})}),Vi([t/i,r/i],e.properties,e)}function B7r(n,e){if(e===void 0&&(e={}),e=e||{},!Io(e))throw new Error("options is invalid");var t=e.counter||10;if(!Gu(t))throw new Error("counter must be a number");var r=e.weight,i=pce(n,{weight:e.weight}),a=Zn([]);uo(n,function(s){var l;a.features.push(ow(s,{properties:{weight:(l=s.properties)===null||l===void 0?void 0:l[r]}}))});var o={tolerance:e.tolerance,medianCandidates:[]};return cJe(i.geometry.coordinates,[0,0],a,o,t)}function cJe(n,e,t,r,i){var a=r.tolerance||.001,o=0,s=0,l=0,u=0;if(uo(t,function(f){var d,v=(d=f.properties)===null||d===void 0?void 0:d.weight,p=v==null?1:v;if(p=Number(p),!Gu(p))throw new Error("weight value must be a number");if(p>0){u+=1;var g=p*Mo(f,n);g===0&&(g=1);var m=p/g;o+=f.geometry.coordinates[0]*m,s+=f.geometry.coordinates[1]*m,l+=m}}),u<1)throw new Error("no features to measure");var h=o/l,c=s/l;return u===1||i===0||Math.abs(h-e[0])0&&(l=Qi(s).geometry),V7r(l,u),s=u.slice(0);t.push(Qi(s,o));break;case"MultiPolygon":s=[[[]]];for(var c=0;c0&&(l=Ld(s).geometry),$7r(l,u),s=u.slice(0);t.push(Ld(s,o));break;default:throw new Error("geometry is invalid, must be Polygon or MultiPolygon")}}),Zn(t)}function V7r(n,e){var t=0,r=0;pl(n,function(i,a,o,s,l){l>t&&(t=l,r=a,e.push([]));var u=a-r,h=n.coordinates[l][u+1],c=i[0],f=i[1],d=h[0],v=h[1];e[l].push([.75*c+.25*d,.75*f+.25*v]),e[l].push([.25*c+.75*d,.25*f+.75*v])},!0),e.forEach(function(i){i.push(i[0])})}function $7r(n,e){var t=0,r=0,i=0;pl(n,function(a,o,s,l,u){l>i&&(i=l,r=o,e.push([[]])),u>t&&(t=u,r=o,e[l].push([]));var h=o-r,c=n.coordinates[l][u][h+1],f=a[0],d=a[1],v=c[0],p=c[1];e[l][u].push([.75*f+.25*v,.75*d+.25*p]),e[l][u].push([.25*f+.75*v,.25*d+.75*p])},!0),e.forEach(function(a){a.forEach(function(o){o.push(o[0])})})}function W7r(n,e,t){t===void 0&&(t=2);var r=Wo(n),i=Wo(e),a=r[0]-i[0],o=r[1]-i[1];return t===1?Math.abs(a)+Math.abs(o):Math.pow(Math.pow(a,t)+Math.pow(o,t),1/t)}function fJe(n,e){e=e||{};var t=e.threshold||1e4,r=e.p||2,i=e.binary||!1,a=e.alpha||-1,o=e.standardization||!1,s=[];uo(n,function(d){s.push(ow(d))});for(var l=[],u=0;ur&&(a[0]=r),a[0]<-r&&(a[0]=-r),a[1]>r&&(a[1]=r),a[1]<-r&&(a[1]=-r),a}function fLe(n){var e=180/Math.PI,t=6378137;return[n[0]*e/t,(Math.PI*.5-2*Math.atan(Math.exp(-n[1]/t)))*e]}function X7r(n){return n<0?-1:n>0?1:0}const Y7r=Object.freeze(Object.defineProperty({__proto__:null,toMercator:vJe,toWgs84:pJe},Symbol.toStringTag,{value:"Module"}));var q7r=globalThis&&globalThis.__spreadArrays||function(){for(var n=0,e=0,t=arguments.length;e0?l+h[u-1]:l}),s.forEach(function(l){l=l*2*Math.PI/s[s.length-1];var u=Math.random();o.push([u*(e.max_radial_length||10)*Math.sin(l),u*(e.max_radial_length||10)*Math.cos(l)])}),o[o.length-1]=o[0],o=o.map(Z7r(qk(e.bbox))),t.push(Qi([o]))},i=0;i + * @license MIT + * @preserve + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */function tzr(n,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(h){return l([u,h])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]e?1:n0){if(e.right===null)break;if(t(n,e.right.key)>0){var s=e.right;if(e.right=s.left,s.left=e,e=s,e.right===null)break}i.right=e,i=e,e=e.right}else break}return i.right=e.left,a.left=e.right,e.left=r.right,e.right=r.left,e}function TZ(n,e,t,r){var i=new sw(n,e);if(t===null)return i.left=i.right=null,i;t=qx(n,t,r);var a=r(n,t.key);return a<0?(i.left=t.left,i.right=t,t.left=null):a>=0&&(i.right=t.right,i.left=t,t.right=null),i}function vLe(n,e,t){var r=null,i=null;if(e){e=qx(n,e,t);var a=t(e.key,n);a===0?(r=e.left,i=e.right):a<0?(i=e.right,e.right=null,r=e):(r=e.left,e.left=null,i=e)}return{left:r,right:i}}function nzr(n,e,t){return e===null?n:(n===null||(e=qx(n.key,e,t),e.left=n),e)}function Fre(n,e,t,r,i){if(n){r(""+e+(t?"\u2514\u2500\u2500 ":"\u251C\u2500\u2500 ")+i(n)+` +`);var a=e+(t?" ":"\u2502 ");n.left&&Fre(n.left,a,!1,r,i),n.right&&Fre(n.right,a,!0,r,i)}}var _ce=function(){function n(e){e===void 0&&(e=rzr),this._root=null,this._size=0,this._comparator=e}return n.prototype.insert=function(e,t){return this._size++,this._root=TZ(e,t,this._root,this._comparator)},n.prototype.add=function(e,t){var r=new sw(e,t);this._root===null&&(r.left=r.right=null,this._size++,this._root=r);var i=this._comparator,a=qx(e,this._root,i),o=i(e,a.key);return o===0?this._root=a:(o<0?(r.left=a.left,r.right=a,a.left=null):o>0&&(r.right=a.right,r.left=a,a.right=null),this._size++,this._root=r),this._root},n.prototype.remove=function(e){this._root=this._remove(e,this._root,this._comparator)},n.prototype._remove=function(e,t,r){var i;if(t===null)return null;t=qx(e,t,r);var a=r(e,t.key);return a===0?(t.left===null?i=t.right:(i=qx(e,t.left,r),i.right=t.right),this._size--,i):t},n.prototype.pop=function(){var e=this._root;if(e){for(;e.left;)e=e.left;return this._root=qx(e.key,this._root,this._comparator),this._root=this._remove(e.key,this._root,this._comparator),{key:e.key,data:e.data}}return null},n.prototype.findStatic=function(e){for(var t=this._root,r=this._comparator;t;){var i=r(e,t.key);if(i===0)return t;i<0?t=t.left:t=t.right}return null},n.prototype.find=function(e){return this._root&&(this._root=qx(e,this._root,this._comparator),this._comparator(e,this._root.key)!==0)?null:this._root},n.prototype.contains=function(e){for(var t=this._root,r=this._comparator;t;){var i=r(e,t.key);if(i===0)return!0;i<0?t=t.left:t=t.right}return!1},n.prototype.forEach=function(e,t){for(var r=this._root,i=[],a=!1;!a;)r!==null?(i.push(r),r=r.left):i.length!==0?(r=i.pop(),e.call(t,r),r=r.right):a=!0;return this},n.prototype.range=function(e,t,r,i){for(var a=[],o=this._comparator,s=this._root,l;a.length!==0||s;)if(s)a.push(s),s=s.left;else{if(s=a.pop(),l=o(s.key,t),l>0)break;if(o(s.key,e)>=0&&r.call(i,s))return this;s=s.right}return this},n.prototype.keys=function(){var e=[];return this.forEach(function(t){var r=t.key;return e.push(r)}),e},n.prototype.values=function(){var e=[];return this.forEach(function(t){var r=t.data;return e.push(r)}),e},n.prototype.min=function(){return this._root?this.minNode(this._root).key:null},n.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},n.prototype.minNode=function(e){if(e===void 0&&(e=this._root),e)for(;e.left;)e=e.left;return e},n.prototype.maxNode=function(e){if(e===void 0&&(e=this._root),e)for(;e.right;)e=e.right;return e},n.prototype.at=function(e){for(var t=this._root,r=!1,i=0,a=[];!r;)if(t)a.push(t),t=t.left;else if(a.length>0){if(t=a.pop(),i===e)return t;i++,t=t.right}else r=!0;return null},n.prototype.next=function(e){var t=this._root,r=null;if(e.right){for(r=e.right;r.left;)r=r.left;return r}for(var i=this._comparator;t;){var a=i(e.key,t.key);if(a===0)break;a<0?(r=t,t=t.left):t=t.right}return r},n.prototype.prev=function(e){var t=this._root,r=null;if(e.left!==null){for(r=e.left;r.right;)r=r.right;return r}for(var i=this._comparator;t;){var a=i(e.key,t.key);if(a===0)break;a<0?t=t.left:(r=t,t=t.right)}return r},n.prototype.clear=function(){return this._root=null,this._size=0,this},n.prototype.toList=function(){return azr(this._root)},n.prototype.load=function(e,t,r){t===void 0&&(t=[]),r===void 0&&(r=!1);var i=e.length,a=this._comparator;if(r&&zre(e,t,0,i-1,a),this._root===null)this._root=Bre(e,t,0,i),this._size=i;else{var o=ozr(this.toList(),izr(e,t),a);i=this._size+i,this._root=Gre({head:o},0,i)}return this},n.prototype.isEmpty=function(){return this._root===null},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),n.prototype.toString=function(e){e===void 0&&(e=function(r){return String(r.key)});var t=[];return Fre(this._root,"",!0,function(r){return t.push(r)},e),t.join("")},n.prototype.update=function(e,t,r){var i=this._comparator,a=vLe(e,this._root,i),o=a.left,s=a.right;i(e,t)<0?s=TZ(t,r,s,i):o=TZ(t,r,o,i),this._root=nzr(o,s,i)},n.prototype.split=function(e){return vLe(e,this._root,this._comparator)},n.prototype[Symbol.iterator]=function(){var e,t,r;return tzr(this,function(i){switch(i.label){case 0:e=this._root,t=[],r=!1,i.label=1;case 1:return r?[3,6]:e===null?[3,2]:(t.push(e),e=e.left,[3,5]);case 2:return t.length===0?[3,4]:(e=t.pop(),[4,e]);case 3:return i.sent(),e=e.right,[3,5];case 4:r=!0,i.label=5;case 5:return[3,1];case 6:return[2]}})},n}();function Bre(n,e,t,r){var i=r-t;if(i>0){var a=t+Math.floor(i/2),o=n[a],s=e[a],l=new sw(o,s);return l.left=Bre(n,e,t,a),l.right=Bre(n,e,a+1,r),l}return null}function izr(n,e){for(var t=new sw(null,null),r=t,i=0;i0?(e=a=a.next=t.pop(),e=e.right):r=!0;return a.next=null,i.next}function Gre(n,e,t){var r=t-e;if(r>0){var i=e+Math.floor(r/2),a=Gre(n,e,i),o=n.head;return o.left=a,n.head=n.head.next,o.right=Gre(n,i+1,t),o}return null}function ozr(n,e,t){for(var r=new sw(null,null),i=r,a=n,o=e;a!==null&&o!==null;)t(a.key,o.key)<0?(i.next=a,a=a.next):(i.next=o,o=o.next),i=i.next;return a!==null?i.next=a:o!==null&&(i.next=o),r.next}function zre(n,e,t,r,i){if(!(t>=r)){for(var a=n[t+r>>1],o=t-1,s=r+1;;){do o++;while(i(n[o],a)<0);do s--;while(i(n[s],a)>0);if(o>=s)break;var l=n[o];n[o]=n[s],n[s]=l,l=e[o],e[o]=e[s],e[s]=l}zre(n,e,t,s,i),zre(n,e,s+1,r,i)}}const e_=11102230246251565e-32,Mc=134217729,szr=(3+8*e_)*e_;function CZ(n,e,t,r,i){let a,o,s,l,u=e[0],h=r[0],c=0,f=0;h>u==h>-u?(a=u,u=e[++c]):(a=h,h=r[++f]);let d=0;if(cu==h>-u?(o=u+a,s=a-(o-u),u=e[++c]):(o=h+a,s=a-(o-h),h=r[++f]),a=o,s!==0&&(i[d++]=s);cu==h>-u?(o=a+u,l=o-a,s=a-(o-l)+(u-l),u=e[++c]):(o=a+h,l=o-a,s=a-(o-l)+(h-l),h=r[++f]),a=o,s!==0&&(i[d++]=s);for(;c=R||-I>=R||(c=n-T,s=n-(T+c)+(c-i),c=t-C,u=t-(C+c)+(c-i),c=e-A,l=e-(A+c)+(c-a),c=r-M,h=r-(M+c)+(c-a),s===0&&l===0&&u===0&&h===0)||(R=czr*o+szr*Math.abs(I),I+=T*h+M*s-(A*u+C*l),I>=R||-I>=R))return I;x=s*M,f=Mc*s,d=f-(f-s),v=s-d,f=Mc*M,p=f-(f-M),g=M-p,S=v*g-(x-d*p-v*p-d*g),w=l*C,f=Mc*l,d=f-(f-l),v=l-d,f=Mc*C,p=f-(f-C),g=C-p,b=v*g-(w-d*p-v*p-d*g),m=S-b,c=S-m,vf[0]=S-(m+c)+(c-b),y=x+m,c=y-x,_=x-(y-c)+(m-c),m=_-w,c=_-m,vf[1]=_-(m+c)+(c-w),E=y+m,c=E-y,vf[2]=y-(E-c)+(m-c),vf[3]=E;const k=CZ(4,OC,4,vf,pLe);x=T*h,f=Mc*T,d=f-(f-T),v=T-d,f=Mc*h,p=f-(f-h),g=h-p,S=v*g-(x-d*p-v*p-d*g),w=A*u,f=Mc*A,d=f-(f-A),v=A-d,f=Mc*u,p=f-(f-u),g=u-p,b=v*g-(w-d*p-v*p-d*g),m=S-b,c=S-m,vf[0]=S-(m+c)+(c-b),y=x+m,c=y-x,_=x-(y-c)+(m-c),m=_-w,c=_-m,vf[1]=_-(m+c)+(c-w),E=y+m,c=E-y,vf[2]=y-(E-c)+(m-c),vf[3]=E;const D=CZ(k,pLe,4,vf,gLe);x=s*h,f=Mc*s,d=f-(f-s),v=s-d,f=Mc*h,p=f-(f-h),g=h-p,S=v*g-(x-d*p-v*p-d*g),w=l*u,f=Mc*l,d=f-(f-l),v=l-d,f=Mc*u,p=f-(f-u),g=u-p,b=v*g-(w-d*p-v*p-d*g),m=S-b,c=S-m,vf[0]=S-(m+c)+(c-b),y=x+m,c=y-x,_=x-(y-c)+(m-c),m=_-w,c=_-m,vf[1]=_-(m+c)+(c-w),E=y+m,c=E-y,vf[2]=y-(E-c)+(m-c),vf[3]=E;const G=CZ(D,gLe,4,vf,yLe);return yLe[G-1]}function dzr(n,e,t,r,i,a){const o=(e-a)*(t-i),s=(n-i)*(r-a),l=o-s,u=Math.abs(o+s);return Math.abs(l)>=uzr*u?l:-fzr(n,e,t,r,i,a,u)}const HP=(n,e)=>n.ll.x<=e.x&&e.x<=n.ur.x&&n.ll.y<=e.y&&e.y<=n.ur.y,Ure=(n,e)=>{if(e.ur.x{if(-dSn.x*e.y-n.y*e.x,EJe=(n,e)=>n.x*e.x+n.y*e.y,xLe=(n,e,t)=>{const r=dzr(n.x,n.y,e.x,e.y,t.x,t.y);return r>0?-1:r<0?1:0},z7=n=>Math.sqrt(EJe(n,n)),gzr=(n,e,t)=>{const r={x:e.x-n.x,y:e.y-n.y},i={x:t.x-n.x,y:t.y-n.y};return C8(i,r)/z7(i)/z7(r)},yzr=(n,e,t)=>{const r={x:e.x-n.x,y:e.y-n.y},i={x:t.x-n.x,y:t.y-n.y};return EJe(i,r)/z7(i)/z7(r)},SLe=(n,e,t)=>e.y===0?null:{x:n.x+e.x/e.y*(t-n.y),y:t},wLe=(n,e,t)=>e.x===0?null:{x:t,y:n.y+e.y/e.x*(t-n.x)},mzr=(n,e,t,r)=>{if(e.x===0)return wLe(t,r,n.x);if(r.x===0)return wLe(n,e,t.x);if(e.y===0)return SLe(t,r,n.y);if(r.y===0)return SLe(n,e,t.y);const i=C8(e,r);if(i==0)return null;const a={x:t.x-n.x,y:t.y-n.y},o=C8(a,e)/i,s=C8(a,r)/i,l=n.x+s*e.x,u=t.x+o*r.x,h=n.y+s*e.y,c=t.y+o*r.y,f=(l+u)/2,d=(h+c)/2;return{x:f,y:d}};class xp{static compare(e,t){const r=xp.comparePoints(e.point,t.point);return r!==0?r:(e.point!==t.point&&e.link(t),e.isLeft!==t.isLeft?e.isLeft?1:-1:MS.compare(e.segment,t.segment))}static comparePoints(e,t){return e.xt.x?1:e.yt.y?1:0}constructor(e,t){e.events===void 0?e.events=[this]:e.events.push(this),this.point=e,this.isLeft=t}link(e){if(e.point===this.point)throw new Error("Tried to link already linked events");const t=e.point.events;for(let r=0,i=t.length;r{const a=i.otherSE;t.set(i,{sine:gzr(this.point,e.point,a.point),cosine:yzr(this.point,e.point,a.point)})};return(i,a)=>{t.has(i)||r(i),t.has(a)||r(a);const{sine:o,cosine:s}=t.get(i),{sine:l,cosine:u}=t.get(a);return o>=0&&l>=0?su?-1:0:o<0&&l<0?su?1:0:lo?1:0}}}let _zr=0;class MS{static compare(e,t){const r=e.leftSE.point.x,i=t.leftSE.point.x,a=e.rightSE.point.x,o=t.rightSE.point.x;if(os&&l>u)return-1;const c=e.comparePoint(t.leftSE.point);if(c<0)return 1;if(c>0)return-1;const f=t.comparePoint(e.rightSE.point);return f!==0?f:-1}if(r>i){if(sl&&s>h)return 1;const c=t.comparePoint(e.leftSE.point);if(c!==0)return c;const f=e.comparePoint(t.rightSE.point);return f<0?1:f>0?-1:1}if(sl)return 1;if(ao){const c=e.comparePoint(t.rightSE.point);if(c<0)return 1;if(c>0)return-1}if(a!==o){const c=u-s,f=a-r,d=h-l,v=o-i;if(c>f&&dv)return-1}return a>o?1:ah?1:e.idt.id?1:0}constructor(e,t,r,i){this.id=++_zr,this.leftSE=e,e.segment=this,e.otherSE=t,this.rightSE=t,t.segment=this,t.otherSE=e,this.rings=r,this.windings=i}static fromRing(e,t,r){let i,a,o;const s=xp.comparePoints(e,t);if(s<0)i=e,a=t,o=1;else if(s>0)i=t,a=e,o=-1;else throw new Error(`Tried to create degenerate segment at [${e.x}, ${e.y}]`);const l=new xp(i,!0),u=new xp(a,!1);return new MS(l,u,[r],[o])}replaceRightSE(e){this.rightSE=e,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}bbox(){const e=this.leftSE.point.y,t=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:et?e:t}}}vector(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}isAnEndpoint(e){return e.x===this.leftSE.point.x&&e.y===this.leftSE.point.y||e.x===this.rightSE.point.x&&e.y===this.rightSE.point.y}comparePoint(e){if(this.isAnEndpoint(e))return 0;const t=this.leftSE.point,r=this.rightSE.point,i=this.vector();if(t.x===r.x)return e.x===t.x?0:e.x0&&s.swapEvents(),xp.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),r&&(i.checkForConsuming(),a.checkForConsuming()),t}swapEvents(){const e=this.rightSE;this.rightSE=this.leftSE,this.leftSE=e,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(let t=0,r=this.windings.length;t0){const a=t;t=r,r=a}if(t.prev===r){const a=t;t=r,r=a}for(let a=0,o=r.rings.length;ai.length===1&&i[0].isSubject;this._isInResult=r(e)!==r(t);break}default:throw new Error(`Unrecognized operation type found ${o0.type}`)}return this._isInResult}}class bLe{constructor(e,t,r){if(!Array.isArray(e)||e.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=t,this.isExterior=r,this.segments=[],typeof e[0][0]!="number"||typeof e[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");const i=PN.round(e[0][0],e[0][1]);this.bbox={ll:{x:i.x,y:i.y},ur:{x:i.x,y:i.y}};let a=i;for(let o=1,s=e.length;othis.bbox.ur.x&&(this.bbox.ur.x=l.x),l.y>this.bbox.ur.y&&(this.bbox.ur.y=l.y),a=l)}(i.x!==a.x||i.y!==a.y)&&this.segments.push(MS.fromRing(a,i,this))}getSweepEvents(){const e=[];for(let t=0,r=this.segments.length;tthis.bbox.ur.x&&(this.bbox.ur.x=a.bbox.ur.x),a.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=a.bbox.ur.y),this.interiorRings.push(a)}this.multiPoly=t}getSweepEvents(){const e=this.exteriorRing.getSweepEvents();for(let t=0,r=this.interiorRings.length;tthis.bbox.ur.x&&(this.bbox.ur.x=a.bbox.ur.x),a.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=a.bbox.ur.y),this.polys.push(a)}this.isSubject=t}getSweepEvents(){const e=[];for(let t=0,r=this.polys.length;t0&&(e=o)}let t=e.segment.prevInResult(),r=t?t.prevInResult():null;for(;;){if(!t)return null;if(!r)return t.ringOut;if(r.ringOut!==t.ringOut)return r.ringOut.enclosingRing()!==t.ringOut?t.ringOut:t.ringOut.enclosingRing();t=r.prevInResult(),r=t?t.prevInResult():null}}}class TLe{constructor(e){this.exteriorRing=e,e.poly=this,this.interiorRings=[]}addInterior(e){this.interiorRings.push(e),e.poly=this}getGeom(){const e=[this.exteriorRing.getGeom()];if(e[0]===null)return null;for(let t=0,r=this.interiorRings.length;t1&&arguments[1]!==void 0?arguments[1]:MS.compare;this.queue=e,this.tree=new _ce(t),this.segments=[]}process(e){const t=e.segment,r=[];if(e.consumedBy)return e.isLeft?this.queue.remove(e.otherSE):this.tree.remove(t),r;const i=e.isLeft?this.tree.add(t):this.tree.find(t);if(!i)throw new Error(`Unable to find segment #${t.id} [${t.leftSE.point.x}, ${t.leftSE.point.y}] -> [${t.rightSE.point.x}, ${t.rightSE.point.y}] in SweepLine tree.`);let a=i,o=i,s,l;for(;s===void 0;)a=this.tree.prev(a),a===null?s=null:a.key.consumedBy===void 0&&(s=a.key);for(;l===void 0;)o=this.tree.next(o),o===null?l=null:o.key.consumedBy===void 0&&(l=o.key);if(e.isLeft){let u=null;if(s){const c=s.getIntersection(t);if(c!==null&&(t.isAnEndpoint(c)||(u=c),!s.isAnEndpoint(c))){const f=this._splitSafely(s,c);for(let d=0,v=f.length;d0?(this.tree.remove(t),r.push(e)):(this.segments.push(t),t.prev=s)}else{if(s&&l){const u=s.getIntersection(l);if(u!==null){if(!s.isAnEndpoint(u)){const h=this._splitSafely(s,u);for(let c=0,f=h.length;cCLe)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).")}const o=new wzr(a);let s=a.size,l=a.pop();for(;l;){const c=l.key;if(a.size===s){const d=c.segment;throw new Error(`Unable to pop() ${c.isLeft?"left":"right"} SweepEvent [${c.point.x}, ${c.point.y}] from segment #${d.id} [${d.leftSE.point.x}, ${d.leftSE.point.y}] -> [${d.rightSE.point.x}, ${d.rightSE.point.y}] from queue.`)}if(a.size>CLe)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big).");if(o.segments.length>bzr)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");const f=o.process(c);for(let d=0,v=f.length;d1?e-1:0),r=1;r1?e-1:0),r=1;r1?e-1:0),r=1;r1?e-1:0),r=1;rt.x?1:this.yt.y?1:0};tt.prototype.clone=function(){};tt.prototype.copy=function(){return new tt(this)};tt.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+")"};tt.prototype.distance3D=function(e){var t=this.x-e.x,r=this.y-e.y,i=this.z-e.z;return Math.sqrt(t*t+r*r+i*i)};tt.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)};tt.prototype.hashCode=function(){var e=17;return e=37*e+tt.hashCode(this.x),e=37*e+tt.hashCode(this.y),e};tt.prototype.setCoordinate=function(e){this.x=e.x,this.y=e.y,this.z=e.z};tt.prototype.interfaces_=function(){return[$d,M$,Wd]};tt.prototype.getClass=function(){return tt};tt.hashCode=function(){if(arguments.length===1){var e=arguments[0],t=ui.doubleToLongBits(e);return Math.trunc((t^t)>>>32)}};xT.DimensionalComparator.get=function(){return z1};xT.serialVersionUID.get=function(){return 6683108902428367e3};xT.NULL_ORDINATE.get=function(){return ui.NaN};xT.X.get=function(){return 0};xT.Y.get=function(){return 1};xT.Z.get=function(){return 2};Object.defineProperties(tt,xT);var z1=function(e){if(this._dimensionsToTest=2,arguments.length!==0){if(arguments.length===1){var t=arguments[0];if(t!==2&&t!==3)throw new Ss("only 2 or 3 dimensions may be specified");this._dimensionsToTest=t}}};z1.prototype.compare=function(e,t){var r=e,i=t,a=z1.compare(r.x,i.x);if(a!==0)return a;var o=z1.compare(r.y,i.y);if(o!==0)return o;if(this._dimensionsToTest<=2)return 0;var s=z1.compare(r.z,i.z);return s};z1.prototype.interfaces_=function(){return[QM]};z1.prototype.getClass=function(){return z1};z1.compare=function(e,t){return et?1:ui.isNaN(e)?ui.isNaN(t)?0:-1:ui.isNaN(t)?1:0};var eI=function(){};eI.prototype.create=function(){};eI.prototype.interfaces_=function(){return[]};eI.prototype.getClass=function(){return eI};var dt=function(){},Kk={INTERIOR:{configurable:!0},BOUNDARY:{configurable:!0},EXTERIOR:{configurable:!0},NONE:{configurable:!0}};dt.prototype.interfaces_=function(){return[]};dt.prototype.getClass=function(){return dt};dt.toLocationSymbol=function(e){switch(e){case dt.EXTERIOR:return"e";case dt.BOUNDARY:return"b";case dt.INTERIOR:return"i";case dt.NONE:return"-"}throw new Ss("Unknown location value: "+e)};Kk.INTERIOR.get=function(){return 0};Kk.BOUNDARY.get=function(){return 1};Kk.EXTERIOR.get=function(){return 2};Kk.NONE.get=function(){return-1};Object.defineProperties(dt,Kk);var zn=function(n,e){return n.interfaces_&&n.interfaces_().indexOf(e)>-1},zf=function(){},CJe={LOG_10:{configurable:!0}};zf.prototype.interfaces_=function(){return[]};zf.prototype.getClass=function(){return zf};zf.log10=function(e){var t=Math.log(e);return ui.isInfinite(t)||ui.isNaN(t)?t:t/zf.LOG_10};zf.min=function(e,t,r,i){var a=e;return tr?r:e}else if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var i=arguments[0],a=arguments[1],o=arguments[2];return io?o:i}};zf.wrap=function(e,t){return e<0?t- -e%t:e%t};zf.max=function(){if(arguments.length===3){var e=arguments[0],t=arguments[1],r=arguments[2],i=e;return t>i&&(i=t),r>i&&(i=r),i}else if(arguments.length===4){var a=arguments[0],o=arguments[1],s=arguments[2],l=arguments[3],u=a;return o>u&&(u=o),s>u&&(u=s),l>u&&(u=l),u}};zf.average=function(e,t){return(e+t)/2};CJe.LOG_10.get=function(){return Math.log(10)};Object.defineProperties(zf,CJe);var hg=function(e){this.str=e};hg.prototype.append=function(e){this.str+=e};hg.prototype.setCharAt=function(e,t){this.str=this.str.substr(0,e)+t+this.str.substr(e+1)};hg.prototype.toString=function(e){return this.str};var jp=function(e){this.value=e};jp.prototype.intValue=function(){return this.value};jp.prototype.compareTo=function(e){return this.valuee?1:0};jp.isNaN=function(e){return Number.isNaN(e)};var ON=function(){};ON.isWhitespace=function(e){return e<=32&&e>=0||e===127};ON.toUpperCase=function(e){return e.toUpperCase()};var Et=function n(){if(this._hi=0,this._lo=0,arguments.length===0)this.init(0);else if(arguments.length===1){if(typeof arguments[0]=="number"){var e=arguments[0];this.init(e)}else if(arguments[0]instanceof n){var t=arguments[0];this.init(t)}else if(typeof arguments[0]=="string"){var r=arguments[0];n.call(this,n.parse(r))}}else if(arguments.length===2){var i=arguments[0],a=arguments[1];this.init(i,a)}},Fv={PI:{configurable:!0},TWO_PI:{configurable:!0},PI_2:{configurable:!0},E:{configurable:!0},NaN:{configurable:!0},EPS:{configurable:!0},SPLIT:{configurable:!0},MAX_PRINT_DIGITS:{configurable:!0},TEN:{configurable:!0},ONE:{configurable:!0},SCI_NOT_EXPONENT_CHAR:{configurable:!0},SCI_NOT_ZERO:{configurable:!0}};Et.prototype.le=function(e){return(this._hi9?(c=!0,f="9"):f="0"+h,s.append(f),r=r.subtract(Et.valueOf(h)).multiply(Et.TEN),c&&r.selfAdd(Et.TEN);var d=!0,v=Et.magnitude(r._hi);if(v<0&&Math.abs(v)>=l-u&&(d=!1),!d)break}return t[0]=i,s.toString()};Et.prototype.sqr=function(){return this.multiply(this)};Et.prototype.doubleValue=function(){return this._hi+this._lo};Et.prototype.subtract=function(){if(arguments[0]instanceof Et){var e=arguments[0];return this.add(e.negate())}else if(typeof arguments[0]=="number"){var t=arguments[0];return this.add(-t)}};Et.prototype.equals=function(){if(arguments.length===1){var e=arguments[0];return this._hi===e._hi&&this._lo===e._lo}};Et.prototype.isZero=function(){return this._hi===0&&this._lo===0};Et.prototype.selfSubtract=function(){if(arguments[0]instanceof Et){var e=arguments[0];return this.isNaN()?this:this.selfAdd(-e._hi,-e._lo)}else if(typeof arguments[0]=="number"){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t,0)}};Et.prototype.getSpecialNumberString=function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null};Et.prototype.min=function(e){return this.le(e)?this:e};Et.prototype.selfDivide=function(){if(arguments.length===1){if(arguments[0]instanceof Et){var e=arguments[0];return this.selfDivide(e._hi,e._lo)}else if(typeof arguments[0]=="number"){var t=arguments[0];return this.selfDivide(t,0)}}else if(arguments.length===2){var r=arguments[0],i=arguments[1],a=null,o=null,s=null,l=null,u=null,h=null,c=null,f=null;return u=this._hi/r,h=Et.SPLIT*u,a=h-u,f=Et.SPLIT*r,a=h-a,o=u-a,s=f-r,c=u*r,s=f-s,l=r-s,f=a*s-c+a*l+o*s+o*l,h=(this._hi-c-f+this._lo-u*i)/r,f=u+h,this._hi=f,this._lo=u-f+h,this}};Et.prototype.dump=function(){return"DD<"+this._hi+", "+this._lo+">"};Et.prototype.divide=function(){if(arguments[0]instanceof Et){var e=arguments[0],t=null,r=null,i=null,a=null,o=null,s=null,l=null,u=null;o=this._hi/e._hi,s=Et.SPLIT*o,t=s-o,u=Et.SPLIT*e._hi,t=s-t,r=o-t,i=u-e._hi,l=o*e._hi,i=u-i,a=e._hi-i,u=t*i-l+t*a+r*i+r*a,s=(this._hi-l-u+this._lo-o*e._lo)/e._hi,u=o+s;var h=u,c=o-u+s;return new Et(h,c)}else if(typeof arguments[0]=="number"){var f=arguments[0];return ui.isNaN(f)?Et.createNaN():Et.copy(this).selfDivide(f,0)}};Et.prototype.ge=function(e){return(this._hi>e._hi||this._hi===e._hi)&&this._lo>=e._lo};Et.prototype.pow=function(e){if(e===0)return Et.valueOf(1);var t=new Et(this),r=Et.valueOf(1),i=Math.abs(e);if(i>1)for(;i>0;)i%2===1&&r.selfMultiply(t),i/=2,i>0&&(t=t.sqr());else r=t;return e<0?r.reciprocal():r};Et.prototype.ceil=function(){if(this.isNaN())return Et.NaN;var e=Math.ceil(this._hi),t=0;return e===this._hi&&(t=Math.ceil(this._lo)),new Et(e,t)};Et.prototype.compareTo=function(e){var t=e;return this._hit._hi?1:this._lot._lo?1:0};Et.prototype.rint=function(){if(this.isNaN())return this;var e=this.add(.5);return e.floor()};Et.prototype.setValue=function(){if(arguments[0]instanceof Et){var e=arguments[0];return this.init(e),this}else if(typeof arguments[0]=="number"){var t=arguments[0];return this.init(t),this}};Et.prototype.max=function(e){return this.ge(e)?this:e};Et.prototype.sqrt=function(){if(this.isZero())return Et.valueOf(0);if(this.isNegative())return Et.NaN;var e=1/Math.sqrt(this._hi),t=this._hi*e,r=Et.valueOf(t),i=this.subtract(r.sqr()),a=i._hi*(e*.5);return r.add(a)};Et.prototype.selfAdd=function(){if(arguments.length===1){if(arguments[0]instanceof Et){var e=arguments[0];return this.selfAdd(e._hi,e._lo)}else if(typeof arguments[0]=="number"){var t=arguments[0],r=null,i=null,a=null,o=null,s=null,l=null;return a=this._hi+t,s=a-this._hi,o=a-s,o=t-s+(this._hi-o),l=o+this._lo,r=a+l,i=l+(a-r),this._hi=r+i,this._lo=i+(r-this._hi),this}}else if(arguments.length===2){var u=arguments[0],h=arguments[1],c=null,f=null,d=null,v=null,p=null,g=null,m=null,y=null;p=this._hi+u,d=this._lo+h,m=p-this._hi,y=d-this._lo,g=p-m,v=d-y,g=u-m+(this._hi-g),v=h-y+(this._lo-v),m=g+d,c=p+m,f=m+(p-c),m=v+f;var _=c+m,x=m+(c-_);return this._hi=_,this._lo=x,this}};Et.prototype.selfMultiply=function(){if(arguments.length===1){if(arguments[0]instanceof Et){var e=arguments[0];return this.selfMultiply(e._hi,e._lo)}else if(typeof arguments[0]=="number"){var t=arguments[0];return this.selfMultiply(t,0)}}else if(arguments.length===2){var r=arguments[0],i=arguments[1],a=null,o=null,s=null,l=null,u=null,h=null;u=Et.SPLIT*this._hi,a=u-this._hi,h=Et.SPLIT*r,a=u-a,o=this._hi-a,s=h-r,u=this._hi*r,s=h-s,l=r-s,h=a*s-u+a*l+o*s+o*l+(this._hi*i+this._lo*r);var c=u+h;a=u-c;var f=h+a;return this._hi=c,this._lo=f,this}};Et.prototype.selfSqr=function(){return this.selfMultiply(this)};Et.prototype.floor=function(){if(this.isNaN())return Et.NaN;var e=Math.floor(this._hi),t=0;return e===this._hi&&(t=Math.floor(this._lo)),new Et(e,t)};Et.prototype.negate=function(){return this.isNaN()?this:new Et(-this._hi,-this._lo)};Et.prototype.clone=function(){};Et.prototype.multiply=function(){if(arguments[0]instanceof Et){var e=arguments[0];return e.isNaN()?Et.createNaN():Et.copy(this).selfMultiply(e)}else if(typeof arguments[0]=="number"){var t=arguments[0];return ui.isNaN(t)?Et.createNaN():Et.copy(this).selfMultiply(t,0)}};Et.prototype.isNaN=function(){return ui.isNaN(this._hi)};Et.prototype.intValue=function(){return Math.trunc(this._hi)};Et.prototype.toString=function(){var e=Et.magnitude(this._hi);return e>=-3&&e<=20?this.toStandardNotation():this.toSciNotation()};Et.prototype.toStandardNotation=function(){var e=this.getSpecialNumberString();if(e!==null)return e;var t=new Array(1).fill(null),r=this.extractSignificantDigits(!0,t),i=t[0]+1,a=r;if(r.charAt(0)===".")a="0"+r;else if(i<0)a="0."+Et.stringOfChar("0",-i)+r;else if(r.indexOf(".")===-1){var o=i-r.length,s=Et.stringOfChar("0",o);a=r+s+".0"}return this.isNegative()?"-"+a:a};Et.prototype.reciprocal=function(){var e=null,t=null,r=null,i=null,a=null,o=null,s=null,l=null;a=1/this._hi,o=Et.SPLIT*a,e=o-a,l=Et.SPLIT*this._hi,e=o-e,t=a-e,r=l-this._hi,s=a*this._hi,r=l-r,i=this._hi-r,l=e*r-s+e*i+t*r+t*i,o=(1-s-l-a*this._lo)/this._hi;var u=a+o,h=a-u+o;return new Et(u,h)};Et.prototype.toSciNotation=function(){if(this.isZero())return Et.SCI_NOT_ZERO;var e=this.getSpecialNumberString();if(e!==null)return e;var t=new Array(1).fill(null),r=this.extractSignificantDigits(!1,t),i=Et.SCI_NOT_EXPONENT_CHAR+t[0];if(r.charAt(0)==="0")throw new Error("Found leading zero: "+r);var a="";r.length>1&&(a=r.substring(1));var o=r.charAt(0)+"."+a;return this.isNegative()?"-"+o+i:o+i};Et.prototype.abs=function(){return this.isNaN()?Et.NaN:this.isNegative()?this.negate():new Et(this)};Et.prototype.isPositive=function(){return(this._hi>0||this._hi===0)&&this._lo>0};Et.prototype.lt=function(e){return(this._hie._hi||this._hi===e._hi)&&this._lo>e._lo};Et.prototype.isNegative=function(){return(this._hi<0||this._hi===0)&&this._lo<0};Et.prototype.trunc=function(){return this.isNaN()?Et.NaN:this.isPositive()?this.floor():this.ceil()};Et.prototype.signum=function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0};Et.prototype.interfaces_=function(){return[Wd,$d,M$]};Et.prototype.getClass=function(){return Et};Et.sqr=function(e){return Et.valueOf(e).selfMultiply(e)};Et.valueOf=function(){if(typeof arguments[0]=="string"){var e=arguments[0];return Et.parse(e)}else if(typeof arguments[0]=="number"){var t=arguments[0];return new Et(t)}};Et.sqrt=function(e){return Et.valueOf(e).sqrt()};Et.parse=function(e){for(var t=0,r=e.length;ON.isWhitespace(e.charAt(t));)t++;var i=!1;if(t=r);){var h=e.charAt(t);if(t++,ON.isDigit(h)){var c=h-"0";o.selfMultiply(Et.TEN),o.selfAdd(c),s++;continue}if(h==="."){l=s;continue}if(h==="e"||h==="E"){var f=e.substring(t);try{u=jp.parseInt(f)}catch(m){throw m instanceof Error?new Error("Invalid exponent "+f+" in string "+e):m}finally{}break}throw new Error("Unexpected character '"+h+"' at position "+t+" in string "+e)}var d=o,v=s-l-u;if(v===0)d=o;else if(v>0){var p=Et.TEN.pow(v);d=o.divide(p)}else if(v<0){var g=Et.TEN.pow(-v);d=o.multiply(g)}return i?d.negate():d};Et.createNaN=function(){return new Et(ui.NaN,ui.NaN)};Et.copy=function(e){return new Et(e)};Et.magnitude=function(e){var t=Math.abs(e),r=Math.log(t)/Math.log(10),i=Math.trunc(Math.floor(r)),a=Math.pow(10,i);return a*10<=t&&(i+=1),i};Et.stringOfChar=function(e,t){for(var r=new hg,i=0;i0){if(o<=0)return uc.signum(s);i=a+o}else if(a<0){if(o>=0)return uc.signum(s);i=-a-o}else return uc.signum(s);var l=uc.DP_SAFE_EPSILON*i;return s>=l||-s>=l?uc.signum(s):2};uc.signum=function(e){return e>0?1:e<0?-1:0};AJe.DP_SAFE_EPSILON.get=function(){return 1e-15};Object.defineProperties(uc,AJe);var ua=function(){},Jk={X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0},M:{configurable:!0}};Jk.X.get=function(){return 0};Jk.Y.get=function(){return 1};Jk.Z.get=function(){return 2};Jk.M.get=function(){return 3};ua.prototype.setOrdinate=function(e,t,r){};ua.prototype.size=function(){};ua.prototype.getOrdinate=function(e,t){};ua.prototype.getCoordinate=function(){};ua.prototype.getCoordinateCopy=function(e){};ua.prototype.getDimension=function(){};ua.prototype.getX=function(e){};ua.prototype.clone=function(){};ua.prototype.expandEnvelope=function(e){};ua.prototype.copy=function(){};ua.prototype.getY=function(e){};ua.prototype.toCoordinateArray=function(){};ua.prototype.interfaces_=function(){return[M$]};ua.prototype.getClass=function(){return ua};Object.defineProperties(ua,Jk);var MJe=function(){},pL=function(n){function e(){n.call(this,"Projective point not representable on the Cartesian plane.")}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(MJe),zu=function(){};zu.arraycopy=function(e,t,r,i,a){for(var o=0,s=t;se._minx?this._minx:e._minx,r=this._miny>e._miny?this._miny:e._miny,i=this._maxx=this._minx&&t.getMaxX()<=this._maxx&&t.getMinY()>=this._miny&&t.getMaxY()<=this._maxy}}else if(arguments.length===2){var r=arguments[0],i=arguments[1];return this.isNull()?!1:r>=this._minx&&r<=this._maxx&&i>=this._miny&&i<=this._maxy}};gn.prototype.intersects=function(){if(arguments.length===1){if(arguments[0]instanceof gn){var e=arguments[0];return this.isNull()||e.isNull()?!1:!(e._minx>this._maxx||e._maxxthis._maxy||e._maxythis._maxx||rthis._maxy||ithis._maxx&&(this._maxx=t._maxx),t._minythis._maxy&&(this._maxy=t._maxy))}}else if(arguments.length===2){var r=arguments[0],i=arguments[1];this.isNull()?(this._minx=r,this._maxx=r,this._miny=i,this._maxy=i):(rthis._maxx&&(this._maxx=r),ithis._maxy&&(this._maxy=i))}};gn.prototype.minExtent=function(){if(this.isNull())return 0;var e=this.getWidth(),t=this.getHeight();return et._minx?1:this._minyt._miny?1:this._maxxt._maxx?1:this._maxyt._maxy?1:0};gn.prototype.translate=function(e,t){if(this.isNull())return null;this.init(this.getMinX()+e,this.getMaxX()+e,this.getMinY()+t,this.getMaxY()+t)};gn.prototype.toString=function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"};gn.prototype.setToNull=function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1};gn.prototype.getHeight=function(){return this.isNull()?0:this._maxy-this._miny};gn.prototype.maxExtent=function(){if(this.isNull())return 0;var e=this.getWidth(),t=this.getHeight();return e>t?e:t};gn.prototype.expandBy=function(){if(arguments.length===1){var e=arguments[0];this.expandBy(e,e)}else if(arguments.length===2){var t=arguments[0],r=arguments[1];if(this.isNull())return null;this._minx-=t,this._maxx+=t,this._miny-=r,this._maxy+=r,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}};gn.prototype.contains=function(){if(arguments.length===1){if(arguments[0]instanceof gn){var e=arguments[0];return this.covers(e)}else if(arguments[0]instanceof tt){var t=arguments[0];return this.covers(t)}}else if(arguments.length===2){var r=arguments[0],i=arguments[1];return this.covers(r,i)}};gn.prototype.centre=function(){return this.isNull()?null:new tt((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)};gn.prototype.init=function(){if(arguments.length===0)this.setToNull();else if(arguments.length===1){if(arguments[0]instanceof tt){var e=arguments[0];this.init(e.x,e.x,e.y,e.y)}else if(arguments[0]instanceof gn){var t=arguments[0];this._minx=t._minx,this._maxx=t._maxx,this._miny=t._miny,this._maxy=t._maxy}}else if(arguments.length===2){var r=arguments[0],i=arguments[1];this.init(r.x,i.x,r.y,i.y)}else if(arguments.length===4){var a=arguments[0],o=arguments[1],s=arguments[2],l=arguments[3];ae._maxx&&(t=this._minx-e._maxx);var r=0;return this._maxye._maxy&&(r=this._miny-e._maxy),t===0?r:r===0?t:Math.sqrt(t*t+r*r)};gn.prototype.hashCode=function(){var e=17;return e=37*e+tt.hashCode(this._minx),e=37*e+tt.hashCode(this._maxx),e=37*e+tt.hashCode(this._miny),e=37*e+tt.hashCode(this._maxy),e};gn.prototype.interfaces_=function(){return[$d,Wd]};gn.prototype.getClass=function(){return gn};gn.intersects=function(){if(arguments.length===3){var e=arguments[0],t=arguments[1],r=arguments[2];return r.x>=(e.xt.x?e.x:t.x)&&r.y>=(e.yt.y?e.y:t.y)}else if(arguments.length===4){var i=arguments[0],a=arguments[1],o=arguments[2],s=arguments[3],l=Math.min(o.x,s.x),u=Math.max(o.x,s.x),h=Math.min(i.x,a.x),c=Math.max(i.x,a.x);return!(h>u||cu)||cr?(this._intLineIndex[e][0]=0,this._intLineIndex[e][1]=1):(this._intLineIndex[e][0]=1,this._intLineIndex[e][1]=0)}};Ls.prototype.isProper=function(){return this.hasIntersection()&&this._isProper};Ls.prototype.setPrecisionModel=function(e){this._precisionModel=e};Ls.prototype.isInteriorIntersection=function(){var e=this;if(arguments.length===0)return!!(this.isInteriorIntersection(0)||this.isInteriorIntersection(1));if(arguments.length===1){for(var t=arguments[0],r=0;ra?o=i:o=a;else{var s=Math.abs(e.x-t.x),l=Math.abs(e.y-t.y);i>a?o=s:o=l,o===0&&!e.equals(t)&&(o=Math.max(s,l))}return mi.isTrue(!(o===0&&!e.equals(t)),"Bad distance calculation"),o};Ls.nonRobustComputeEdgeDistance=function(e,t,r){var i=e.x-t.x,a=e.y-t.y,o=Math.sqrt(i*i+a*a);return mi.isTrue(!(o===0&&!e.equals(t)),"Invalid distance calculation"),o};ST.DONT_INTERSECT.get=function(){return 0};ST.DO_INTERSECT.get=function(){return 1};ST.COLLINEAR.get=function(){return 2};ST.NO_INTERSECTION.get=function(){return 0};ST.POINT_INTERSECTION.get=function(){return 1};ST.COLLINEAR_INTERSECTION.get=function(){return 2};Object.defineProperties(Ls,ST);var Ow=function(n){function e(){n.apply(this,arguments)}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.isInSegmentEnvelopes=function(r){var i=new gn(this._inputLines[0][0],this._inputLines[0][1]),a=new gn(this._inputLines[1][0],this._inputLines[1][1]);return i.contains(r)&&a.contains(r)},e.prototype.computeIntersection=function(){if(arguments.length===3){var r=arguments[0],i=arguments[1],a=arguments[2];if(this._isProper=!1,gn.intersects(i,a,r)&&Gr.orientationIndex(i,a,r)===0&&Gr.orientationIndex(a,i,r)===0)return this._isProper=!0,(r.equals(i)||r.equals(a))&&(this._isProper=!1),this._result=n.POINT_INTERSECTION,null;this._result=n.NO_INTERSECTION}else return n.prototype.computeIntersection.apply(this,arguments)},e.prototype.normalizeToMinimum=function(r,i,a,o,s){s.x=this.smallestInAbsValue(r.x,i.x,a.x,o.x),s.y=this.smallestInAbsValue(r.y,i.y,a.y,o.y),r.x-=s.x,r.y-=s.y,i.x-=s.x,i.y-=s.y,a.x-=s.x,a.y-=s.y,o.x-=s.x,o.y-=s.y},e.prototype.safeHCoordinateIntersection=function(r,i,a,o){var s=null;try{s=Sv.intersection(r,i,a,o)}catch(l){if(l instanceof pL)s=e.nearestEndpoint(r,i,a,o);else throw l}finally{}return s},e.prototype.intersection=function(r,i,a,o){var s=this.intersectionWithNormalization(r,i,a,o);return this.isInSegmentEnvelopes(s)||(s=new tt(e.nearestEndpoint(r,i,a,o))),this._precisionModel!==null&&this._precisionModel.makePrecise(s),s},e.prototype.smallestInAbsValue=function(r,i,a,o){var s=r,l=Math.abs(s);return Math.abs(i)1e-4&&zu.out.println("Distance = "+s.distance(l))},e.prototype.intersectionWithNormalization=function(r,i,a,o){var s=new tt(r),l=new tt(i),u=new tt(a),h=new tt(o),c=new tt;this.normalizeToEnvCentre(s,l,u,h,c);var f=this.safeHCoordinateIntersection(s,l,u,h);return f.x+=c.x,f.y+=c.y,f},e.prototype.computeCollinearIntersection=function(r,i,a,o){var s=gn.intersects(r,i,a),l=gn.intersects(r,i,o),u=gn.intersects(a,o,r),h=gn.intersects(a,o,i);return s&&l?(this._intPt[0]=a,this._intPt[1]=o,n.COLLINEAR_INTERSECTION):u&&h?(this._intPt[0]=r,this._intPt[1]=i,n.COLLINEAR_INTERSECTION):s&&u?(this._intPt[0]=a,this._intPt[1]=r,a.equals(r)&&!l&&!h?n.POINT_INTERSECTION:n.COLLINEAR_INTERSECTION):s&&h?(this._intPt[0]=a,this._intPt[1]=i,a.equals(i)&&!l&&!u?n.POINT_INTERSECTION:n.COLLINEAR_INTERSECTION):l&&u?(this._intPt[0]=o,this._intPt[1]=r,o.equals(r)&&!s&&!h?n.POINT_INTERSECTION:n.COLLINEAR_INTERSECTION):l&&h?(this._intPt[0]=o,this._intPt[1]=i,o.equals(i)&&!s&&!u?n.POINT_INTERSECTION:n.COLLINEAR_INTERSECTION):n.NO_INTERSECTION},e.prototype.normalizeToEnvCentre=function(r,i,a,o,s){var l=r.xi.x?r.x:i.x,c=r.y>i.y?r.y:i.y,f=a.xo.x?a.x:o.x,p=a.y>o.y?a.y:o.y,g=l>f?l:f,m=hd?u:d,_=c0&&l>0||s<0&&l<0)return n.NO_INTERSECTION;var u=Gr.orientationIndex(a,o,r),h=Gr.orientationIndex(a,o,i);if(u>0&&h>0||u<0&&h<0)return n.NO_INTERSECTION;var c=s===0&&l===0&&u===0&&h===0;return c?this.computeCollinearIntersection(r,i,a,o):(s===0||l===0||u===0||h===0?(this._isProper=!1,r.equals2D(a)||r.equals2D(o)?this._intPt[0]=r:i.equals2D(a)||i.equals2D(o)?this._intPt[0]=i:s===0?this._intPt[0]=new tt(a):l===0?this._intPt[0]=new tt(o):u===0?this._intPt[0]=new tt(r):h===0&&(this._intPt[0]=new tt(i))):(this._isProper=!0,this._intPt[0]=this.intersection(r,i,a,o)),n.POINT_INTERSECTION)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.nearestEndpoint=function(r,i,a,o){var s=r,l=Gr.distancePointLine(r,a,o),u=Gr.distancePointLine(i,a,o);return u0?r>0?-a:a:r>0?a:-a;if(t===0||r===0)return i>0?e>0?a:-a:e>0?-a:a;if(t>0?i>0?t<=i||(a=-a,o=e,e=r,r=o,o=t,t=i,i=o):t<=-i?(a=-a,r=-r,i=-i):(o=e,e=-r,r=o,o=t,t=-i,i=o):i>0?-t<=i?(a=-a,e=-e,t=-t):(o=-e,e=r,r=o,o=-t,t=i,i=o):t>=i?(e=-e,t=-t,r=-r,i=-i):(a=-a,o=-e,e=-r,r=o,o=-t,t=-i,i=o),e>0)if(r>0){if(!(e<=r))return a}else return a;else{if(r>0)return-a;if(e>=r)a=-a,e=-e,r=-r;else return-a}for(;;){if(s=Math.floor(r/e),r=r-s*e,i=i-s*t,i<0)return-a;if(i>t)return a;if(e>r+r){if(ti+i)return-a;r=e-r,i=t-i,a=-a}if(i===0)return r===0?0:-a;if(r===0||(s=Math.floor(e/r),e=e-s*r,t=t-s*i,t<0))return a;if(t>i)return-a;if(r>e+e){if(it+t)return a;e=r-e,t=i-t,a=-a}if(t===0)return e===0?0:a;if(e===0)return-a}};var Gp=function(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var e=arguments[0];this._p=e};Gp.prototype.countSegment=function(e,t){if(e.xi&&(r=t.x,i=e.x),this._p.x>=r&&this._p.x<=i&&(this._isPointOnSegment=!0),null}if(e.y>this._p.y&&t.y<=this._p.y||t.y>this._p.y&&e.y<=this._p.y){var a=e.x-this._p.x,o=e.y-this._p.y,s=t.x-this._p.x,l=t.y-this._p.y,u=I2.signOfDet2x2(a,o,s,l);if(u===0)return this._isPointOnSegment=!0,null;l0&&this._crossingCount++}};Gp.prototype.isPointInPolygon=function(){return this.getLocation()!==dt.EXTERIOR};Gp.prototype.getLocation=function(){return this._isPointOnSegment?dt.BOUNDARY:this._crossingCount%2===1?dt.INTERIOR:dt.EXTERIOR};Gp.prototype.isOnSegment=function(){return this._isPointOnSegment};Gp.prototype.interfaces_=function(){return[]};Gp.prototype.getClass=function(){return Gp};Gp.locatePointInRing=function(){if(arguments[0]instanceof tt&&zn(arguments[1],ua)){for(var e=arguments[0],t=arguments[1],r=new Gp(e),i=new tt,a=new tt,o=1;o1||u<0||u>1)&&(a=!0)}}return a?zf.min(Gr.distancePointLine(e,r,i),Gr.distancePointLine(t,r,i),Gr.distancePointLine(r,e,t),Gr.distancePointLine(i,e,t)):0};Gr.isPointInRing=function(e,t){return Gr.locatePointInRing(e,t)!==dt.EXTERIOR};Gr.computeLength=function(e){var t=e.size();if(t<=1)return 0;var r=0,i=new tt;e.getCoordinate(0,i);for(var a=i.x,o=i.y,s=1;sr.y&&(r=o,i=a)}var s=i;do s=s-1,s<0&&(s=t);while(e[s].equals2D(r)&&s!==i);var l=i;do l=(l+1)%t;while(e[l].equals2D(r)&&l!==i);var u=e[s],h=e[l];if(u.equals2D(r)||h.equals2D(r)||u.equals2D(h))return!1;var c=Gr.computeOrientation(u,r,h),f=!1;return c===0?f=u.x>h.x:f=c>0,f};Gr.locatePointInRing=function(e,t){return Gp.locatePointInRing(e,t)};Gr.distancePointLinePerpendicular=function(e,t,r){var i=(r.x-t.x)*(r.x-t.x)+(r.y-t.y)*(r.y-t.y),a=((t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y))/i;return Math.abs(a)*Math.sqrt(i)};Gr.computeOrientation=function(e,t,r){return Gr.orientationIndex(e,t,r)};Gr.distancePointLine=function(){if(arguments.length===2){var e=arguments[0],t=arguments[1];if(t.length===0)throw new Ss("Line array must contain at least one vertex");for(var r=e.distance(t[0]),i=0;i=1)return o.distance(l);var c=((s.y-o.y)*(l.x-s.x)-(s.x-o.x)*(l.y-s.y))/u;return Math.abs(c)*Math.sqrt(u)}};Gr.isOnLine=function(e,t){for(var r=new Ow,i=1;i0};rI.prototype.interfaces_=function(){return[Od]};rI.prototype.getClass=function(){return rI};var nI=function(){};nI.prototype.isInBoundary=function(e){return e>1};nI.prototype.interfaces_=function(){return[Od]};nI.prototype.getClass=function(){return nI};var iI=function(){};iI.prototype.isInBoundary=function(e){return e===1};iI.prototype.interfaces_=function(){return[Od]};iI.prototype.getClass=function(){return iI};var Al=function(){};Al.prototype.add=function(){};Al.prototype.addAll=function(){};Al.prototype.isEmpty=function(){};Al.prototype.iterator=function(){};Al.prototype.size=function(){};Al.prototype.toArray=function(){};Al.prototype.remove=function(){};function Sce(n){this.message=n||""}Sce.prototype=new Error;Sce.prototype.name="IndexOutOfBoundsException";var gL=function(){};gL.prototype.hasNext=function(){};gL.prototype.next=function(){};gL.prototype.remove=function(){};var wv=function(n){function e(){n.apply(this,arguments)}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.get=function(){},e.prototype.set=function(){},e.prototype.isEmpty=function(){},e}(Al);function yL(n){this.message=n||""}yL.prototype=new Error;yL.prototype.name="NoSuchElementException";var Pr=function(n){function e(){n.call(this),this.array_=[],arguments[0]instanceof Al&&this.addAll(arguments[0])}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.ensureCapacity=function(){},e.prototype.interfaces_=function(){return[n,Al]},e.prototype.add=function(r){return arguments.length===1?this.array_.push(r):this.array_.splice(arguments[0],arguments[1]),!0},e.prototype.clear=function(){this.array_=[]},e.prototype.addAll=function(r){for(var i=this,a=r.iterator();a.hasNext();)i.add(a.next());return!0},e.prototype.set=function(r,i){var a=this.array_[r];return this.array_[r]=i,a},e.prototype.iterator=function(){return new Lzr(this)},e.prototype.get=function(r){if(r<0||r>=this.size())throw new Sce;return this.array_[r]},e.prototype.isEmpty=function(){return this.array_.length===0},e.prototype.size=function(){return this.array_.length},e.prototype.toArray=function(){for(var r=this,i=[],a=0,o=this.array_.length;a=1){var h=this.get(this.size()-1);if(h.equals2D(l))return null}n.prototype.add.call(this,l)}else if(arguments[0]instanceof Object&&typeof arguments[1]=="boolean"){var c=arguments[0],f=arguments[1];return this.add(c,f),!0}}else if(arguments.length===3){if(typeof arguments[2]=="boolean"&&arguments[0]instanceof Array&&typeof arguments[1]=="boolean"){var d=arguments[0],v=arguments[1],p=arguments[2];if(p)for(var g=0;g=0;m--)i.add(d[m],v);return!0}else if(typeof arguments[2]=="boolean"&&Number.isInteger(arguments[0])&&arguments[1]instanceof tt){var y=arguments[0],_=arguments[1],x=arguments[2];if(!x){var S=this.size();if(S>0){if(y>0){var w=this.get(y-1);if(w.equals2D(_))return null}if(yA&&(M=-1);for(var I=C;I!==A;I+=M)i.add(E[I],T);return!0}},e.prototype.closeRing=function(){this.size()>0&&this.add(new tt(this.get(0)),!1)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},Object.defineProperties(e,t),e}(Pr),Bi=function(){},L$={ForwardComparator:{configurable:!0},BidirectionalComparator:{configurable:!0},coordArrayType:{configurable:!0}};L$.ForwardComparator.get=function(){return RN};L$.BidirectionalComparator.get=function(){return aI};L$.coordArrayType.get=function(){return new Array(0).fill(null)};Bi.prototype.interfaces_=function(){return[]};Bi.prototype.getClass=function(){return Bi};Bi.isRing=function(e){return!(e.length<4||!e[0].equals2D(e[e.length-1]))};Bi.ptNotInList=function(e,t){for(var r=0;r=e?t:[]};Bi.indexOf=function(e,t){for(var r=0;r0)&&(t=e[r]);return t};Bi.extract=function(e,t,r){t=zf.clamp(t,0,e.length),r=zf.clamp(r,-1,e.length);var i=r-t+1;r<0&&(i=0),t>=e.length&&(i=0),ri.length)return 1;if(r.length===0)return 0;var a=Bi.compare(r,i),o=Bi.isEqualReversed(r,i);return o?0:a};aI.prototype.OLDcompare=function(e,t){var r=e,i=t;if(r.lengthi.length)return 1;if(r.length===0)return 0;for(var a=Bi.increasingDirection(r),o=Bi.increasingDirection(i),s=a>0?0:r.length-1,l=o>0?0:r.length-1,u=0;u0)e=e.right;else return e.value}return null};dh.prototype.put=function(n,e){if(this.root_===null)return this.root_={key:n,value:e,left:null,right:null,parent:null,color:Ty,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var t=this.root_,r,i;do if(r=t,i=n.compareTo(t.key),i<0)t=t.left;else if(i>0)t=t.right;else{var a=t.value;return t.value=e,a}while(t!==null);var o={key:n,left:null,right:null,value:e,parent:r,color:Ty,getValue:function(){return this.value},getKey:function(){return this.key}};return i<0?r.left=o:r.right=o,this.fixAfterInsertion(o),this.size_++,null};dh.prototype.fixAfterInsertion=function(n){var e=this;for(n.color=bx;n!=null&&n!==this.root_&&n.parent.color===bx;)if(Bo(n)===AZ(Bo(Bo(n)))){var t=MLe(Bo(Bo(n)));ALe(t)===bx?(fy(Bo(n),Ty),fy(t,Ty),fy(Bo(Bo(n)),bx),n=Bo(Bo(n))):(n===MLe(Bo(n))&&(n=Bo(n),e.rotateLeft(n)),fy(Bo(n),Ty),fy(Bo(Bo(n)),bx),e.rotateRight(Bo(Bo(n))))}else{var r=AZ(Bo(Bo(n)));ALe(r)===bx?(fy(Bo(n),Ty),fy(r,Ty),fy(Bo(Bo(n)),bx),n=Bo(Bo(n))):(n===AZ(Bo(n))&&(n=Bo(n),e.rotateRight(n)),fy(Bo(n),Ty),fy(Bo(Bo(n)),bx),e.rotateLeft(Bo(Bo(n))))}this.root_.color=Ty};dh.prototype.values=function(){var n=new Pr,e=this.getFirstEntry();if(e!==null)for(n.add(e.value);(e=dh.successor(e))!==null;)n.add(e.value);return n};dh.prototype.entrySet=function(){var n=new wce,e=this.getFirstEntry();if(e!==null)for(n.add(e);(e=dh.successor(e))!==null;)n.add(e);return n};dh.prototype.rotateLeft=function(n){if(n!=null){var e=n.right;n.right=e.left,e.left!=null&&(e.left.parent=n),e.parent=n.parent,n.parent===null?this.root_=e:n.parent.left===n?n.parent.left=e:n.parent.right=e,e.left=n,n.parent=e}};dh.prototype.rotateRight=function(n){if(n!=null){var e=n.left;n.left=e.right,e.right!=null&&(e.right.parent=n),e.parent=n.parent,n.parent===null?this.root_=e:n.parent.right===n?n.parent.right=e:n.parent.left=e,e.right=n,n.parent=e}};dh.prototype.getFirstEntry=function(){var n=this.root_;if(n!=null)for(;n.left!=null;)n=n.left;return n};dh.successor=function(n){if(n===null)return null;if(n.right!==null){for(var e=n.right;e.left!==null;)e=e.left;return e}else{for(var t=n.parent,r=n;t!==null&&r===t.right;)r=t,t=t.parent;return t}};dh.prototype.size=function(){return this.size_};var DN=function(){};DN.prototype.interfaces_=function(){return[]};DN.prototype.getClass=function(){return DN};function LJe(){}LJe.prototype=new P$;function Xp(){this.array_=[],arguments[0]instanceof Al&&this.addAll(arguments[0])}Xp.prototype=new LJe;Xp.prototype.contains=function(n){for(var e=this,t=0,r=this.array_.length;t=0;){var s=a.substring(0,o);i.add(s),a=a.substring(o+r),o=a.indexOf(t)}a.length>0&&i.add(a);for(var l=new Array(i.size()).fill(null),u=0;u0)for(var o=a;o0&&i.append(" ");for(var o=0;o0&&i.append(","),i.append(xd.toString(e.getOrdinate(a,o)))}return i.append(")"),i.toString()}};rl.ensureValidRing=function(e,t){var r=t.size();if(r===0)return t;if(r<=3)return rl.createClosedRing(e,t,4);var i=t.getOrdinate(0,ua.X)===t.getOrdinate(r-1,ua.X)&&t.getOrdinate(0,ua.Y)===t.getOrdinate(r-1,ua.Y);return i?t:rl.createClosedRing(e,t,r+1)};rl.createClosedRing=function(e,t,r){var i=e.create(r,t.getDimension()),a=t.size();rl.copy(t,0,i,0,a);for(var o=a;o0&&rl.reverse(i._points),null}},e.prototype.getCoordinate=function(){return this.isEmpty()?null:this._points.getCoordinate(0)},e.prototype.getBoundaryDimension=function(){return this.isClosed()?Ja.FALSE:0},e.prototype.isClosed=function(){return this.isEmpty()?!1:this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},e.prototype.getEndPoint=function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},e.prototype.getDimension=function(){return 1},e.prototype.getLength=function(){return Gr.computeLength(this._points)},e.prototype.getNumPoints=function(){return this._points.size()},e.prototype.reverse=function(){var i=this._points.copy();rl.reverse(i);var a=this.getFactory().createLineString(i);return a},e.prototype.compareToSameClass=function(){var i=this;if(arguments.length===1){for(var a=arguments[0],o=a,s=0,l=0;s= 2)");this._points=i},e.prototype.isCoordinate=function(i){for(var a=this,o=0;o=1&&this.getCoordinateSequence().size()= 4)")},e.prototype.getGeometryType=function(){return"LinearRing"},e.prototype.copy=function(){return new e(this._points.copy(),this._factory)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},t.MINIMUM_VALID_SIZE.get=function(){return 4},t.serialVersionUID.get=function(){return-0x3b229e262367a600},Object.defineProperties(e,t),e}($s),p0=function(n){function e(){n.apply(this,arguments)}n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e;var t={serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return Gn.SORTINDEX_MULTIPOLYGON},e.prototype.equalsExact=function(){if(arguments.length===2){var i=arguments[0],a=arguments[1];return this.isEquivalentClass(i)?n.prototype.equalsExact.call(this,i,a):!1}else return n.prototype.equalsExact.apply(this,arguments)},e.prototype.getBoundaryDimension=function(){return 1},e.prototype.getDimension=function(){return 2},e.prototype.reverse=function(){for(var i=this,a=this._geometries.length,o=new Array(a).fill(null),s=0;s0?t.createPoint(r[0]):t.createPoint():e};FN.prototype.interfaces_=function(){return[Rd.GeometryEditorOperation]};FN.prototype.getClass=function(){return FN};var BN=function(){};BN.prototype.edit=function(e,t){return e instanceof b0?t.createLinearRing(this.edit(e.getCoordinateSequence(),e)):e instanceof $s?t.createLineString(this.edit(e.getCoordinateSequence(),e)):e instanceof Jc?t.createPoint(this.edit(e.getCoordinateSequence(),e)):e};BN.prototype.interfaces_=function(){return[Rd.GeometryEditorOperation]};BN.prototype.getClass=function(){return BN};var el=function(){var e=this;if(this._dimension=3,this._coordinates=null,arguments.length===1){if(arguments[0]instanceof Array)this._coordinates=arguments[0],this._dimension=3;else if(Number.isInteger(arguments[0])){var t=arguments[0];this._coordinates=new Array(t).fill(null);for(var r=0;r0){var t=new hg(17*this._coordinates.length);t.append("("),t.append(this._coordinates[0]);for(var r=1;r3&&(i=3),i<2?new el(r):new el(r,i)}};E0.prototype.interfaces_=function(){return[eI,Wd]};E0.prototype.getClass=function(){return E0};E0.instance=function(){return E0.instanceObject};Ece.serialVersionUID.get=function(){return-0x38e49fa6cf6f2e00};Ece.instanceObject.get=function(){return new E0};Object.defineProperties(E0,Ece);var OJe=function(n){function e(){n.call(this),this.map_=new Map}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.get=function(r){return this.map_.get(r)||null},e.prototype.put=function(r,i){return this.map_.set(r,i),i},e.prototype.values=function(){for(var r=new Pr,i=this.map_.values(),a=i.next();!a.done;)r.add(a.value),a=i.next();return r},e.prototype.entrySet=function(){var r=new wce;return this.map_.entries().forEach(function(i){return r.add(i)}),r},e.prototype.size=function(){return this.map_.size()},e}(bT),to=function n(){if(this._modelType=null,this._scale=null,arguments.length===0)this._modelType=n.FLOATING;else if(arguments.length===1){if(arguments[0]instanceof qp){var e=arguments[0];this._modelType=e,e===n.FIXED&&this.setScale(1)}else if(typeof arguments[0]=="number"){var t=arguments[0];this._modelType=n.FIXED,this.setScale(t)}else if(arguments[0]instanceof n){var r=arguments[0];this._modelType=r._modelType,this._scale=r._scale}}},Tce={serialVersionUID:{configurable:!0},maximumPreciseValue:{configurable:!0}};to.prototype.equals=function(e){if(!(e instanceof to))return!1;var t=e;return this._modelType===t._modelType&&this._scale===t._scale};to.prototype.compareTo=function(e){var t=e,r=this.getMaximumSignificantDigits(),i=t.getMaximumSignificantDigits();return new jp(r).compareTo(new jp(i))};to.prototype.getScale=function(){return this._scale};to.prototype.isFloating=function(){return this._modelType===to.FLOATING||this._modelType===to.FLOATING_SINGLE};to.prototype.getType=function(){return this._modelType};to.prototype.toString=function(){var e="UNKNOWN";return this._modelType===to.FLOATING?e="Floating":this._modelType===to.FLOATING_SINGLE?e="Floating-Single":this._modelType===to.FIXED&&(e="Fixed (Scale="+this.getScale()+")"),e};to.prototype.makePrecise=function(){if(typeof arguments[0]=="number"){var e=arguments[0];if(ui.isNaN(e))return e;if(this._modelType===to.FLOATING_SINGLE){var t=e;return t}return this._modelType===to.FIXED?Math.round(e*this._scale)/this._scale:e}else if(arguments[0]instanceof tt){var r=arguments[0];if(this._modelType===to.FLOATING)return null;r.x=this.makePrecise(r.x),r.y=this.makePrecise(r.y)}};to.prototype.getMaximumSignificantDigits=function(){var e=16;return this._modelType===to.FLOATING?e=16:this._modelType===to.FLOATING_SINGLE?e=6:this._modelType===to.FIXED&&(e=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),e};to.prototype.setScale=function(e){this._scale=Math.abs(e)};to.prototype.interfaces_=function(){return[Wd,$d]};to.prototype.getClass=function(){return to};to.mostPrecise=function(e,t){return e.compareTo(t)>=0?e:t};Tce.serialVersionUID.get=function(){return 7777263578777804e3};Tce.maximumPreciseValue.get=function(){return 9007199254740992};Object.defineProperties(to,Tce);var qp=function n(e){this._name=e||null,n.nameToTypeMap.put(e,this)},Cce={serialVersionUID:{configurable:!0},nameToTypeMap:{configurable:!0}};qp.prototype.readResolve=function(){return qp.nameToTypeMap.get(this._name)};qp.prototype.toString=function(){return this._name};qp.prototype.interfaces_=function(){return[Wd]};qp.prototype.getClass=function(){return qp};Cce.serialVersionUID.get=function(){return-552860263173159e4};Cce.nameToTypeMap.get=function(){return new OJe};Object.defineProperties(qp,Cce);to.Type=qp;to.FIXED=new qp("FIXED");to.FLOATING=new qp("FLOATING");to.FLOATING_SINGLE=new qp("FLOATING SINGLE");var Fi=function n(){this._precisionModel=new to,this._SRID=0,this._coordinateSequenceFactory=n.getDefaultCoordinateSequenceFactory(),arguments.length===0||(arguments.length===1?zn(arguments[0],eI)?this._coordinateSequenceFactory=arguments[0]:arguments[0]instanceof to&&(this._precisionModel=arguments[0]):arguments.length===2?(this._precisionModel=arguments[0],this._SRID=arguments[1]):arguments.length===3&&(this._precisionModel=arguments[0],this._SRID=arguments[1],this._coordinateSequenceFactory=arguments[2]))},RJe={serialVersionUID:{configurable:!0}};Fi.prototype.toGeometry=function(e){return e.isNull()?this.createPoint(null):e.getMinX()===e.getMaxX()&&e.getMinY()===e.getMaxY()?this.createPoint(new tt(e.getMinX(),e.getMinY())):e.getMinX()===e.getMaxX()||e.getMinY()===e.getMaxY()?this.createLineString([new tt(e.getMinX(),e.getMinY()),new tt(e.getMaxX(),e.getMaxY())]):this.createPolygon(this.createLinearRing([new tt(e.getMinX(),e.getMinY()),new tt(e.getMinX(),e.getMaxY()),new tt(e.getMaxX(),e.getMaxY()),new tt(e.getMaxX(),e.getMinY()),new tt(e.getMinX(),e.getMinY())]),null)};Fi.prototype.createLineString=function(e){if(e){if(e instanceof Array)return new $s(this.getCoordinateSequenceFactory().create(e),this);if(zn(e,ua))return new $s(e,this)}else return new $s(this.getCoordinateSequenceFactory().create([]),this)};Fi.prototype.createMultiLineString=function(){if(arguments.length===0)return new lw(null,this);if(arguments.length===1){var e=arguments[0];return new lw(e,this)}};Fi.prototype.buildGeometry=function(e){for(var t=null,r=!1,i=!1,a=e.iterator();a.hasNext();){var o=a.next(),s=o.getClass();t===null&&(t=s),s!==t&&(r=!0),o.isGeometryCollectionOrDerived()&&(i=!0)}if(t===null)return this.createGeometryCollection();if(r||i)return this.createGeometryCollection(Fi.toGeometryArray(e));var l=e.iterator().next(),u=e.size()>1;if(u){if(l instanceof Rl)return this.createMultiPolygon(Fi.toPolygonArray(e));if(l instanceof $s)return this.createMultiLineString(Fi.toLineStringArray(e));if(l instanceof Jc)return this.createMultiPoint(Fi.toPointArray(e));mi.shouldNeverReachHere("Unhandled class: "+l.getClass().getName())}return l};Fi.prototype.createMultiPointFromCoords=function(e){return this.createMultiPoint(e!==null?this.getCoordinateSequenceFactory().create(e):null)};Fi.prototype.createPoint=function(){if(arguments.length===0)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof tt){var e=arguments[0];return this.createPoint(e!==null?this.getCoordinateSequenceFactory().create([e]):null)}else if(zn(arguments[0],ua)){var t=arguments[0];return new Jc(t,this)}}};Fi.prototype.getCoordinateSequenceFactory=function(){return this._coordinateSequenceFactory};Fi.prototype.createPolygon=function(){if(arguments.length===0)return new Rl(null,null,this);if(arguments.length===1){if(zn(arguments[0],ua)){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}else if(arguments[0]instanceof Array){var t=arguments[0];return this.createPolygon(this.createLinearRing(t))}else if(arguments[0]instanceof b0){var r=arguments[0];return this.createPolygon(r,null)}}else if(arguments.length===2){var i=arguments[0],a=arguments[1];return new Rl(i,a,this)}};Fi.prototype.getSRID=function(){return this._SRID};Fi.prototype.createGeometryCollection=function(){if(arguments.length===0)return new Yh(null,this);if(arguments.length===1){var e=arguments[0];return new Yh(e,this)}};Fi.prototype.createGeometry=function(e){var t=new Rd(this);return t.edit(e,{edit:function(){if(arguments.length===2){var r=arguments[0];return this._coordinateSequenceFactory.create(r)}}})};Fi.prototype.getPrecisionModel=function(){return this._precisionModel};Fi.prototype.createLinearRing=function(){if(arguments.length===0)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof Array){var e=arguments[0];return this.createLinearRing(e!==null?this.getCoordinateSequenceFactory().create(e):null)}else if(zn(arguments[0],ua)){var t=arguments[0];return new b0(t,this)}}};Fi.prototype.createMultiPolygon=function(){if(arguments.length===0)return new p0(null,this);if(arguments.length===1){var e=arguments[0];return new p0(e,this)}};Fi.prototype.createMultiPoint=function(){var e=this;if(arguments.length===0)return new oI(null,this);if(arguments.length===1){if(arguments[0]instanceof Array){var t=arguments[0];return new oI(t,this)}else if(arguments[0]instanceof Array){var r=arguments[0];return this.createMultiPoint(r!==null?this.getCoordinateSequenceFactory().create(r):null)}else if(zn(arguments[0],ua)){var i=arguments[0];if(i===null)return this.createMultiPoint(new Array(0).fill(null));for(var a=new Array(i.size()).fill(null),o=0;o=this.size())throw new Error;return this.array_[n]};cg.prototype.push=function(n){return this.array_.push(n),n};cg.prototype.pop=function(n){if(this.array_.length===0)throw new k$;return this.array_.pop()};cg.prototype.peek=function(){if(this.array_.length===0)throw new k$;return this.array_[this.array_.length-1]};cg.prototype.empty=function(){return this.array_.length===0};cg.prototype.isEmpty=function(){return this.empty()};cg.prototype.search=function(n){return this.array_.indexOf(n)};cg.prototype.size=function(){return this.array_.length};cg.prototype.toArray=function(){for(var n=this,e=[],t=0,r=this.array_.length;t0&&this._minIndexthis._minCoord.y&&r.y>this._minCoord.y&&i===Gr.CLOCKWISE)&&(a=!0),a&&(this._minIndex=this._minIndex-1)};Zp.prototype.getRightmostSideOfSegment=function(e,t){var r=e.getEdge(),i=r.getCoordinates();if(t<0||t+1>=i.length||i[t].y===i[t+1].y)return-1;var a=wr.LEFT;return i[t].yt._minCoord.x)&&(t._minDe=e,t._minIndex=i,t._minCoord=r[i])};Zp.prototype.findRightmostEdgeAtNode=function(){var e=this._minDe.getNode(),t=e.getEdges();this._minDe=t.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)};Zp.prototype.findEdge=function(e){for(var t=this,r=e.iterator();r.hasNext();){var i=r.next();!i.isForward()||t.checkForRightmostCoordinate(i)}mi.isTrue(this._minIndex!==0||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),this._minIndex===0?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe;var a=this.getRightmostSide(this._minDe,this._minIndex);a===wr.LEFT&&(this._orientedDe=this._minDe.getSym())};Zp.prototype.interfaces_=function(){return[]};Zp.prototype.getClass=function(){return Zp};var wm=function(n){function e(t,r){n.call(this,e.msgWithCoord(t,r)),this.pt=r?new tt(r):null,this.name="TopologyException"}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.getCoordinate=function(){return this.pt},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.msgWithCoord=function(r,i){return i?r:r+" [ "+i+" ]"},e}(xm),F$=function(){this.array_=[]};F$.prototype.addLast=function(e){this.array_.push(e)};F$.prototype.removeFirst=function(){return this.array_.shift()};F$.prototype.isEmpty=function(){return this.array_.length===0};var qh=function(){this._finder=null,this._dirEdgeList=new Pr,this._nodes=new Pr,this._rightMostCoord=null,this._env=null,this._finder=new Zp};qh.prototype.clearVisitedEdges=function(){for(var e=this._dirEdgeList.iterator();e.hasNext();){var t=e.next();t.setVisited(!1)}};qh.prototype.getRightmostCoordinate=function(){return this._rightMostCoord};qh.prototype.computeNodeDepth=function(e){for(var t=this,r=null,i=e.getEdges().iterator();i.hasNext();){var a=i.next();if(a.isVisited()||a.getSym().isVisited()){r=a;break}}if(r===null)throw new wm("unable to find edge to compute depths at "+e.getCoordinate());e.getEdges().computeDepths(r);for(var o=e.getEdges().iterator();o.hasNext();){var s=o.next();s.setVisited(!0),t.copySymDepths(s)}};qh.prototype.computeDepth=function(e){this.clearVisitedEdges();var t=this._finder.getEdge();t.setEdgeDepths(wr.RIGHT,e),this.copySymDepths(t),this.computeDepths(t)};qh.prototype.create=function(e){this.addReachable(e),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()};qh.prototype.findResultEdges=function(){for(var e=this._dirEdgeList.iterator();e.hasNext();){var t=e.next();t.getDepth(wr.RIGHT)>=1&&t.getDepth(wr.LEFT)<=0&&!t.isInteriorAreaEdge()&&t.setInResult(!0)}};qh.prototype.computeDepths=function(e){var t=this,r=new wce,i=new F$,a=e.getNode();for(i.addLast(a),r.add(a),e.setVisited(!0);!i.isEmpty();){var o=i.removeFirst();r.add(o),t.computeNodeDepth(o);for(var s=o.getEdges().iterator();s.hasNext();){var l=s.next(),u=l.getSym();if(!u.isVisited()){var h=u.getNode();r.contains(h)||(i.addLast(h),r.add(h))}}}};qh.prototype.compareTo=function(e){var t=e;return this._rightMostCoord.xt._rightMostCoord.x?1:0};qh.prototype.getEnvelope=function(){if(this._env===null){for(var e=new gn,t=this._dirEdgeList.iterator();t.hasNext();)for(var r=t.next(),i=r.getEdge().getCoordinates(),a=0;athis.location.length){var r=new Array(3).fill(null);r[wr.ON]=this.location[wr.ON],r[wr.LEFT]=dt.NONE,r[wr.RIGHT]=dt.NONE,this.location=r}for(var i=0;i1&&e.append(dt.toLocationSymbol(this.location[wr.LEFT])),e.append(dt.toLocationSymbol(this.location[wr.ON])),this.location.length>1&&e.append(dt.toLocationSymbol(this.location[wr.RIGHT])),e.toString()};Uo.prototype.setLocations=function(e,t,r){this.location[wr.ON]=e,this.location[wr.LEFT]=t,this.location[wr.RIGHT]=r};Uo.prototype.get=function(e){return e1};Uo.prototype.isAnyNull=function(){for(var e=this,t=0;te._maxNodeDegree&&(e._maxNodeDegree=i),t=e.getNext(t)}while(t!==this._startDe);this._maxNodeDegree*=2};yl.prototype.addPoints=function(e,t,r){var i=this,a=e.getCoordinates();if(t){var o=1;r&&(o=0);for(var s=o;s=0;u--)i._pts.add(a[u])}};yl.prototype.isHole=function(){return this._isHole};yl.prototype.setInResult=function(){var e=this._startDe;do e.getEdge().setInResult(!0),e=e.getNext();while(e!==this._startDe)};yl.prototype.containsPoint=function(e){var t=this.getLinearRing(),r=t.getEnvelopeInternal();if(!r.contains(e)||!Gr.isPointInRing(e,t.getCoordinates()))return!1;for(var i=this._holes.iterator();i.hasNext();){var a=i.next();if(a.containsPoint(e))return!1}return!0};yl.prototype.addHole=function(e){this._holes.add(e)};yl.prototype.isShell=function(){return this._shell===null};yl.prototype.getLabel=function(){return this._label};yl.prototype.getEdges=function(){return this._edges};yl.prototype.getMaxNodeDegree=function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree};yl.prototype.getShell=function(){return this._shell};yl.prototype.mergeLabel=function(){if(arguments.length===1){var e=arguments[0];this.mergeLabel(e,0),this.mergeLabel(e,1)}else if(arguments.length===2){var t=arguments[0],r=arguments[1],i=t.getLocation(r,wr.RIGHT);if(i===dt.NONE)return null;if(this._label.getLocation(r)===dt.NONE)return this._label.setLocation(r,i),null}};yl.prototype.setShell=function(e){this._shell=e,e!==null&&e.addHole(this)};yl.prototype.toPolygon=function(e){for(var t=this,r=new Array(this._holes.size()).fill(null),i=0;i=2,"found partial label"),this.computeIM(e)};Uf.prototype.isInResult=function(){return this._isInResult};Uf.prototype.isVisited=function(){return this._isVisited};Uf.prototype.interfaces_=function(){return[]};Uf.prototype.getClass=function(){return Uf};var B$=function(n){function e(){n.call(this),this._coord=null,this._edges=null;var t=arguments[0],r=arguments[1];this._coord=t,this._edges=r,this._label=new fo(0,dt.NONE)}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.isIncidentEdgeInResult=function(){for(var r=this.getEdges().getEdges().iterator();r.hasNext();){var i=r.next();if(i.getEdge().isInResult())return!0}return!1},e.prototype.isIsolated=function(){return this._label.getGeometryCount()===1},e.prototype.getCoordinate=function(){return this._coord},e.prototype.print=function(r){r.println("node "+this._coord+" lbl: "+this._label)},e.prototype.computeIM=function(r){},e.prototype.computeMergedLocation=function(r,i){var a=dt.NONE;if(a=this._label.getLocation(i),!r.isNull(i)){var o=r.getLocation(i);a!==dt.BOUNDARY&&(a=o)}return a},e.prototype.setLabel=function(){if(arguments.length===2){var r=arguments[0],i=arguments[1];this._label===null?this._label=new fo(r,i):this._label.setLocation(r,i)}else return n.prototype.setLabel.apply(this,arguments)},e.prototype.getEdges=function(){return this._edges},e.prototype.mergeLabel=function(){var r=this;if(arguments[0]instanceof e){var i=arguments[0];this.mergeLabel(i._label)}else if(arguments[0]instanceof fo)for(var a=arguments[0],o=0;o<2;o++){var s=r.computeMergedLocation(a,o),l=r._label.getLocation(o);l===dt.NONE&&r._label.setLocation(o,s)}},e.prototype.add=function(r){this._edges.insert(r),r.setNode(this)},e.prototype.setLabelBoundary=function(r){if(this._label===null)return null;var i=dt.NONE;this._label!==null&&(i=this._label.getLocation(r));var a=null;switch(i){case dt.BOUNDARY:a=dt.INTERIOR;break;case dt.INTERIOR:a=dt.BOUNDARY;break;default:a=dt.BOUNDARY;break}this._label.setLocation(r,a)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Uf),Kp=function(){this.nodeMap=new dh,this.nodeFact=null;var e=arguments[0];this.nodeFact=e};Kp.prototype.find=function(e){return this.nodeMap.get(e)};Kp.prototype.addNode=function(){if(arguments[0]instanceof tt){var e=arguments[0],t=this.nodeMap.get(e);return t===null&&(t=this.nodeFact.createNode(e),this.nodeMap.put(e,t)),t}else if(arguments[0]instanceof B$){var r=arguments[0],i=this.nodeMap.get(r.getCoordinate());return i===null?(this.nodeMap.put(r.getCoordinate(),r),r):(i.mergeLabel(r),i)}};Kp.prototype.print=function(e){for(var t=this.iterator();t.hasNext();){var r=t.next();r.print(e)}};Kp.prototype.iterator=function(){return this.nodeMap.values().iterator()};Kp.prototype.values=function(){return this.nodeMap.values()};Kp.prototype.getBoundaryNodes=function(e){for(var t=new Pr,r=this.iterator();r.hasNext();){var i=r.next();i.getLabel().getLocation(e)===dt.BOUNDARY&&t.add(i)}return t};Kp.prototype.add=function(e){var t=e.getCoordinate(),r=this.addNode(t);r.add(e)};Kp.prototype.interfaces_=function(){return[]};Kp.prototype.getClass=function(){return Kp};var Eo=function(){},tF={NE:{configurable:!0},NW:{configurable:!0},SW:{configurable:!0},SE:{configurable:!0}};Eo.prototype.interfaces_=function(){return[]};Eo.prototype.getClass=function(){return Eo};Eo.isNorthern=function(e){return e===Eo.NE||e===Eo.NW};Eo.isOpposite=function(e,t){if(e===t)return!1;var r=(e-t+4)%4;return r===2};Eo.commonHalfPlane=function(e,t){if(e===t)return e;var r=(e-t+4)%4;if(r===2)return-1;var i=et?e:t;return i===0&&a===3?3:i};Eo.isInHalfPlane=function(e,t){return t===Eo.SE?e===Eo.SE||e===Eo.SW:e===t||e===t+1};Eo.quadrant=function(){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var e=arguments[0],t=arguments[1];if(e===0&&t===0)throw new Ss("Cannot compute the quadrant for point ( "+e+", "+t+" )");return e>=0?t>=0?Eo.NE:Eo.SE:t>=0?Eo.NW:Eo.SW}else if(arguments[0]instanceof tt&&arguments[1]instanceof tt){var r=arguments[0],i=arguments[1];if(i.x===r.x&&i.y===r.y)throw new Ss("Cannot compute the quadrant for two identical points "+r);return i.x>=r.x?i.y>=r.y?Eo.NE:Eo.SE:i.y>=r.y?Eo.NW:Eo.SW}};tF.NE.get=function(){return 0};tF.NW.get=function(){return 1};tF.SW.get=function(){return 2};tF.SE.get=function(){return 3};Object.defineProperties(Eo,tF);var vh=function(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=null,arguments.length===1){var e=arguments[0];this._edge=e}else if(arguments.length===3){var t=arguments[0],r=arguments[1],i=arguments[2],a=null;this._edge=t,this.init(r,i),this._label=a}else if(arguments.length===4){var o=arguments[0],s=arguments[1],l=arguments[2],u=arguments[3];this._edge=o,this.init(s,l),this._label=u}};vh.prototype.compareDirection=function(e){return this._dx===e._dx&&this._dy===e._dy?0:this._quadrant>e._quadrant?1:this._quadrant2){s.linkDirectedEdgesForMinimalEdgeRings();var l=s.buildMinimalRings(),u=i.findShell(l);u!==null?(i.placePolygonHoles(u,l),t.add(u)):r.addAll(l)}else a.add(s)}return a};Qc.prototype.containsPoint=function(e){for(var t=this._shellList.iterator();t.hasNext();){var r=t.next();if(r.containsPoint(e))return!0}return!1};Qc.prototype.buildMaximalEdgeRings=function(e){for(var t=this,r=new Pr,i=e.iterator();i.hasNext();){var a=i.next();if(a.isInResult()&&a.getLabel().isArea()&&a.getEdgeRing()===null){var o=new Uzr(a,t._geometryFactory);r.add(o),o.setInResult()}}return r};Qc.prototype.placePolygonHoles=function(e,t){for(var r=t.iterator();r.hasNext();){var i=r.next();i.isHole()&&i.setShell(e)}};Qc.prototype.getPolygons=function(){var e=this.computePolygons(this._shellList);return e};Qc.prototype.findEdgeRingContaining=function(e,t){for(var r=e.getLinearRing(),i=r.getEnvelopeInternal(),a=r.getCoordinateN(0),o=null,s=null,l=t.iterator();l.hasNext();){var u=l.next(),h=u.getLinearRing(),c=h.getEnvelopeInternal();o!==null&&(s=o.getLinearRing().getEnvelopeInternal());var f=!1;c.contains(i)&&Gr.isPointInRing(a,h.getCoordinates())&&(f=!0),f&&(o===null||s.contains(c))&&(o=u)}return o};Qc.prototype.findShell=function(e){for(var t=0,r=null,i=e.iterator();i.hasNext();){var a=i.next();a.isHole()||(r=a,t++)}return mi.isTrue(t<=1,"found two shells in MinimalEdgeRing list"),r};Qc.prototype.add=function(){if(arguments.length===1){var e=arguments[0];this.add(e.getEdgeEnds(),e.getNodes())}else if(arguments.length===2){var t=arguments[0],r=arguments[1];Ps.linkResultDirectedEdges(r);var i=this.buildMaximalEdgeRings(t),a=new Pr,o=this.buildMinimalEdgeRings(i,this._shellList,a);this.sortShellsAndHoles(o,this._shellList,a),this.placeFreeHoles(this._shellList,a)}};Qc.prototype.interfaces_=function(){return[]};Qc.prototype.getClass=function(){return Qc};var lI=function(){};lI.prototype.getBounds=function(){};lI.prototype.interfaces_=function(){return[]};lI.prototype.getClass=function(){return lI};var Lv=function(){this._bounds=null,this._item=null;var e=arguments[0],t=arguments[1];this._bounds=e,this._item=t};Lv.prototype.getItem=function(){return this._item};Lv.prototype.getBounds=function(){return this._bounds};Lv.prototype.interfaces_=function(){return[lI,Wd]};Lv.prototype.getClass=function(){return Lv};var bm=function(){this._size=null,this._items=null,this._size=0,this._items=new Pr,this._items.add(null)};bm.prototype.poll=function(){if(this.isEmpty())return null;var e=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),e};bm.prototype.size=function(){return this._size};bm.prototype.reorder=function(e){for(var t=this,r=null,i=this._items.get(e);e*2<=this._size&&(r=e*2,r!==t._size&&t._items.get(r+1).compareTo(t._items.get(r))<0&&r++,t._items.get(r).compareTo(i)<0);e=r)t._items.set(e,t._items.get(r));this._items.set(e,i)};bm.prototype.clear=function(){this._size=0,this._items.clear()};bm.prototype.isEmpty=function(){return this._size===0};bm.prototype.add=function(e){var t=this;this._items.add(null),this._size+=1;var r=this._size;for(this._items.set(0,e);e.compareTo(this._items.get(Math.trunc(r/2)))<0;r/=2)t._items.set(r,t._items.get(Math.trunc(r/2)));this._items.set(r,e)};bm.prototype.interfaces_=function(){return[]};bm.prototype.getClass=function(){return bm};var w_=function(){};w_.prototype.visitItem=function(e){};w_.prototype.interfaces_=function(){return[]};w_.prototype.getClass=function(){return w_};var L2=function(){};L2.prototype.insert=function(e,t){};L2.prototype.remove=function(e,t){};L2.prototype.query=function(){};L2.prototype.interfaces_=function(){return[]};L2.prototype.getClass=function(){return L2};var Ol=function(){if(this._childBoundables=new Pr,this._bounds=null,this._level=null,arguments.length!==0){if(arguments.length===1){var e=arguments[0];this._level=e}}},NJe={serialVersionUID:{configurable:!0}};Ol.prototype.getLevel=function(){return this._level};Ol.prototype.size=function(){return this._childBoundables.size()};Ol.prototype.getChildBoundables=function(){return this._childBoundables};Ol.prototype.addChildBoundable=function(e){mi.isTrue(this._bounds===null),this._childBoundables.add(e)};Ol.prototype.isEmpty=function(){return this._childBoundables.isEmpty()};Ol.prototype.getBounds=function(){return this._bounds===null&&(this._bounds=this.computeBounds()),this._bounds};Ol.prototype.interfaces_=function(){return[lI,Wd]};Ol.prototype.getClass=function(){return Ol};NJe.serialVersionUID.get=function(){return 6493722185909574e3};Object.defineProperties(Ol,NJe);var Pv=function(){};Pv.reverseOrder=function(){return{compare:function(t,r){return r.compareTo(t)}}};Pv.min=function(e){return Pv.sort(e),e.get(0)};Pv.sort=function(e,t){var r=e.toArray();t?IS.sort(r,t):IS.sort(r);for(var i=e.iterator(),a=0,o=r.length;acl.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,e,t),null):(this.expand(this._boundable2,this._boundable1,e,t),null);if(r)return this.expand(this._boundable1,this._boundable2,e,t),null;if(i)return this.expand(this._boundable2,this._boundable1,e,t),null;throw new Ss("neither boundable is composite")};cl.prototype.isLeaves=function(){return!(cl.isComposite(this._boundable1)||cl.isComposite(this._boundable2))};cl.prototype.compareTo=function(e){var t=e;return this._distancet._distance?1:0};cl.prototype.expand=function(e,t,r,i){for(var a=this,o=e.getChildBoundables(),s=o.iterator();s.hasNext();){var l=s.next(),u=new cl(l,t,a._itemDistance);u.getDistance()1,"Node capacity must be greater than 1"),this._nodeCapacity=t}},G$={IntersectsOp:{configurable:!0},serialVersionUID:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};du.prototype.getNodeCapacity=function(){return this._nodeCapacity};du.prototype.lastNode=function(e){return e.get(e.size()-1)};du.prototype.size=function(){var e=this;if(arguments.length===0)return this.isEmpty()?0:(this.build(),this.size(this._root));if(arguments.length===1){for(var t=arguments[0],r=0,i=t.getChildBoundables().iterator();i.hasNext();){var a=i.next();a instanceof Ol?r+=e.size(a):a instanceof Lv&&(r+=1)}return r}};du.prototype.removeItem=function(e,t){for(var r=null,i=e.getChildBoundables().iterator();i.hasNext();){var a=i.next();a instanceof Lv&&a.getItem()===t&&(r=a)}return r!==null?(e.getChildBoundables().remove(r),!0):!1};du.prototype.itemsTree=function(){var e=this;if(arguments.length===0){this.build();var t=this.itemsTree(this._root);return t===null?new Pr:t}else if(arguments.length===1){for(var r=arguments[0],i=new Pr,a=r.getChildBoundables().iterator();a.hasNext();){var o=a.next();if(o instanceof Ol){var s=e.itemsTree(o);s!==null&&i.add(s)}else o instanceof Lv?i.add(o.getItem()):mi.shouldNeverReachHere()}return i.size()<=0?null:i}};du.prototype.insert=function(e,t){mi.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new Lv(e,t))};du.prototype.boundablesAtLevel=function(){var e=this;if(arguments.length===1){var t=arguments[0],r=new Pr;return this.boundablesAtLevel(t,this._root,r),r}else if(arguments.length===3){var i=arguments[0],a=arguments[1],o=arguments[2];if(mi.isTrue(i>-2),a.getLevel()===i)return o.add(a),null;for(var s=a.getChildBoundables().iterator();s.hasNext();){var l=s.next();l instanceof Ol?e.boundablesAtLevel(i,l,o):(mi.isTrue(l instanceof Lv),i===-1&&o.add(l))}return null}};du.prototype.query=function(){var e=this;if(arguments.length===1){var t=arguments[0];this.build();var r=new Pr;return this.isEmpty()||this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.query(t,this._root,r),r}else if(arguments.length===2){var i=arguments[0],a=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),i)&&this.query(i,this._root,a)}else if(arguments.length===3){if(zn(arguments[2],w_)&&arguments[0]instanceof Object&&arguments[1]instanceof Ol)for(var o=arguments[0],s=arguments[1],l=arguments[2],u=s.getChildBoundables(),h=0;hr&&(r=o)}}return r+1}};du.prototype.createParentBoundables=function(e,t){var r=this;mi.isTrue(!e.isEmpty());var i=new Pr;i.add(this.createNode(t));var a=new Pr(e);Pv.sort(a,this.getComparator());for(var o=a.iterator();o.hasNext();){var s=o.next();r.lastNode(i).getChildBoundables().size()===r.getNodeCapacity()&&i.add(r.createNode(t)),r.lastNode(i).addChildBoundable(s)}return i};du.prototype.isEmpty=function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()};du.prototype.interfaces_=function(){return[Wd]};du.prototype.getClass=function(){return du};du.compareDoubles=function(e,t){return e>t?1:e0);for(var s=new Pr,l=0;l0;){var p=v.poll(),g=p.getDistance();if(g>=f)break;p.isLeaves()?(f=g,d=p):p.expandToQueue(v,f)}return[d.getBoundable(0).getItem(),d.getBoundable(1).getItem()]}}else if(arguments.length===3){var m=arguments[0],y=arguments[1],_=arguments[2],x=new Lv(m,y),S=new cl(this.getRoot(),x,_);return this.nearestNeighbour(S)[0]}},e.prototype.interfaces_=function(){return[L2,Wd]},e.prototype.getClass=function(){return e},e.centreX=function(i){return e.avg(i.getMinX(),i.getMaxX())},e.avg=function(i,a){return(i+a)/2},e.centreY=function(i){return e.avg(i.getMinY(),i.getMaxY())},t.STRtreeNode.get=function(){return ILe},t.serialVersionUID.get=function(){return 0x39920f7d5f261e0},t.xComparator.get=function(){return{interfaces_:function(){return[QM]},compare:function(r,i){return n.compareDoubles(e.centreX(r.getBounds()),e.centreX(i.getBounds()))}}},t.yComparator.get=function(){return{interfaces_:function(){return[QM]},compare:function(r,i){return n.compareDoubles(e.centreY(r.getBounds()),e.centreY(i.getBounds()))}}},t.intersectsOp.get=function(){return{interfaces_:function(){return[n.IntersectsOp]},intersects:function(r,i){return r.intersects(i)}}},t.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(e,t),e}(du),ILe=function(n){function e(){var t=arguments[0];n.call(this,t)}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.computeBounds=function(){for(var r=null,i=this.getChildBoundables().iterator();i.hasNext();){var a=i.next();r===null?r=new gn(a.getBounds()):r.expandToInclude(a.getBounds())}return r},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Ol),ac=function(){};ac.prototype.interfaces_=function(){return[]};ac.prototype.getClass=function(){return ac};ac.relativeSign=function(e,t){return et?1:0};ac.compare=function(e,t,r){if(t.equals2D(r))return 0;var i=ac.relativeSign(t.x,r.x),a=ac.relativeSign(t.y,r.y);switch(e){case 0:return ac.compareValue(i,a);case 1:return ac.compareValue(a,i);case 2:return ac.compareValue(a,-i);case 3:return ac.compareValue(-i,a);case 4:return ac.compareValue(-i,-a);case 5:return ac.compareValue(-a,-i);case 6:return ac.compareValue(-a,i);case 7:return ac.compareValue(i,-a)}return mi.shouldNeverReachHere("invalid octant value"),0};ac.compareValue=function(e,t){return e<0?-1:e>0?1:t<0?-1:t>0?1:0};var b_=function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var e=arguments[0],t=arguments[1],r=arguments[2],i=arguments[3];this._segString=e,this.coord=new tt(t),this.segmentIndex=r,this._segmentOctant=i,this._isInterior=!t.equals2D(e.getCoordinate(r))};b_.prototype.getCoordinate=function(){return this.coord};b_.prototype.print=function(e){e.print(this.coord),e.print(" seg # = "+this.segmentIndex)};b_.prototype.compareTo=function(e){var t=e;return this.segmentIndext.segmentIndex?1:this.coord.equals2D(t.coord)?0:ac.compare(this._segmentOctant,this.coord,t.coord)};b_.prototype.isEndPoint=function(e){return this.segmentIndex===0&&!this._isInterior||this.segmentIndex===e};b_.prototype.isInterior=function(){return this._isInterior};b_.prototype.interfaces_=function(){return[$d]};b_.prototype.getClass=function(){return b_};var Zh=function(){this._nodeMap=new dh,this._edge=null;var e=arguments[0];this._edge=e};Zh.prototype.getSplitCoordinates=function(){var e=this,t=new Qk;this.addEndpoints();for(var r=this.iterator(),i=r.next();r.hasNext();){var a=r.next();e.addEdgeCoordinates(i,a,t),i=a}return t.toCoordinateArray()};Zh.prototype.addCollapsedNodes=function(){var e=this,t=new Pr;this.findCollapsesFromInsertedNodes(t),this.findCollapsesFromExistingVertices(t);for(var r=t.iterator();r.hasNext();){var i=r.next().intValue();e.add(e._edge.getCoordinate(i),i)}};Zh.prototype.print=function(e){e.println("Intersections:");for(var t=this.iterator();t.hasNext();){var r=t.next();r.print(e)}};Zh.prototype.findCollapsesFromExistingVertices=function(e){for(var t=this,r=0;r=0?t>=0?r>=i?0:1:r>=i?7:6:t>=0?r>=i?3:2:r>=i?4:5}else if(arguments[0]instanceof tt&&arguments[1]instanceof tt){var a=arguments[0],o=arguments[1],s=o.x-a.x,l=o.y-a.y;if(s===0&&l===0)throw new Ss("Cannot compute the octant for two identical points "+a);return P2.octant(s,l)}};var T0=function(){};T0.prototype.getCoordinates=function(){};T0.prototype.size=function(){};T0.prototype.getCoordinate=function(e){};T0.prototype.isClosed=function(){};T0.prototype.setData=function(e){};T0.prototype.getData=function(){};T0.prototype.interfaces_=function(){return[]};T0.prototype.getClass=function(){return T0};var GN=function(){};GN.prototype.addIntersection=function(e,t){};GN.prototype.interfaces_=function(){return[T0]};GN.prototype.getClass=function(){return GN};var al=function(){this._nodeList=new Zh(this),this._pts=null,this._data=null;var e=arguments[0],t=arguments[1];this._pts=e,this._data=t};al.prototype.getCoordinates=function(){return this._pts};al.prototype.size=function(){return this._pts.length};al.prototype.getCoordinate=function(e){return this._pts[e]};al.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])};al.prototype.getSegmentOctant=function(e){return e===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(e),this.getCoordinate(e+1))};al.prototype.setData=function(e){this._data=e};al.prototype.safeOctant=function(e,t){return e.equals2D(t)?0:P2.octant(e,t)};al.prototype.getData=function(){return this._data};al.prototype.addIntersection=function(){if(arguments.length===2){var e=arguments[0],t=arguments[1];this.addIntersectionNode(e,t)}else if(arguments.length===4){var r=arguments[0],i=arguments[1],a=arguments[3],o=new tt(r.getIntersection(a));this.addIntersection(o,i)}};al.prototype.toString=function(){return Mv.toLineString(new el(this._pts))};al.prototype.getNodeList=function(){return this._nodeList};al.prototype.addIntersectionNode=function(e,t){var r=t,i=r+1;if(i=0&&r>=0||t<=0&&r<=0?Math.max(t,r):0}else if(arguments[0]instanceof tt){var i=arguments[0];return Gr.orientationIndex(this.p0,this.p1,i)}};wn.prototype.toGeometry=function(e){return e.createLineString([this.p0,this.p1])};wn.prototype.isVertical=function(){return this.p0.x===this.p1.x};wn.prototype.equals=function(e){if(!(e instanceof wn))return!1;var t=e;return this.p0.equals(t.p0)&&this.p1.equals(t.p1)};wn.prototype.intersection=function(e){var t=new Ow;return t.computeIntersection(this.p0,this.p1,e.p0,e.p1),t.hasIntersection()?t.getIntersection(0):null};wn.prototype.project=function(){if(arguments[0]instanceof tt){var e=arguments[0];if(e.equals(this.p0)||e.equals(this.p1))return new tt(e);var t=this.projectionFactor(e),r=new tt;return r.x=this.p0.x+t*(this.p1.x-this.p0.x),r.y=this.p0.y+t*(this.p1.y-this.p0.y),r}else if(arguments[0]instanceof wn){var i=arguments[0],a=this.projectionFactor(i.p0),o=this.projectionFactor(i.p1);if(a>=1&&o>=1||a<=0&&o<=0)return null;var s=this.project(i.p0);a<0&&(s=this.p0),a>1&&(s=this.p1);var l=this.project(i.p1);return o<0&&(l=this.p0),o>1&&(l=this.p1),new wn(s,l)}};wn.prototype.normalize=function(){this.p1.compareTo(this.p0)<0&&this.reverse()};wn.prototype.angle=function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)};wn.prototype.getCoordinate=function(e){return e===0?this.p0:this.p1};wn.prototype.distancePerpendicular=function(e){return Gr.distancePointLinePerpendicular(e,this.p0,this.p1)};wn.prototype.minY=function(){return Math.min(this.p0.y,this.p1.y)};wn.prototype.midPoint=function(){return wn.midPoint(this.p0,this.p1)};wn.prototype.projectionFactor=function(e){if(e.equals(this.p0))return 0;if(e.equals(this.p1))return 1;var t=this.p1.x-this.p0.x,r=this.p1.y-this.p0.y,i=t*t+r*r;if(i<=0)return ui.NaN;var a=((e.x-this.p0.x)*t+(e.y-this.p0.y)*r)/i;return a};wn.prototype.closestPoints=function(e){var t=this.intersection(e);if(t!==null)return[t,t];var r=new Array(2).fill(null),i=ui.MAX_VALUE,a=null,o=this.closestPoint(e.p0);i=o.distance(e.p0),r[0]=o,r[1]=e.p0;var s=this.closestPoint(e.p1);a=s.distance(e.p1),a0&&t<1)return this.project(e);var r=this.p0.distance(e),i=this.p1.distance(e);return r1||ui.isNaN(t))&&(t=1),t};wn.prototype.toString=function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"};wn.prototype.isHorizontal=function(){return this.p0.y===this.p1.y};wn.prototype.distance=function(){if(arguments[0]instanceof wn){var e=arguments[0];return Gr.distanceLineLine(this.p0,this.p1,e.p0,e.p1)}else if(arguments[0]instanceof tt){var t=arguments[0];return Gr.distancePointLine(t,this.p0,this.p1)}};wn.prototype.pointAlong=function(e){var t=new tt;return t.x=this.p0.x+e*(this.p1.x-this.p0.x),t.y=this.p0.y+e*(this.p1.y-this.p0.y),t};wn.prototype.hashCode=function(){var e=ui.doubleToLongBits(this.p0.x);e^=ui.doubleToLongBits(this.p0.y)*31;var t=Math.trunc(e)^Math.trunc(e>>32),r=ui.doubleToLongBits(this.p1.x);r^=ui.doubleToLongBits(this.p1.y)*31;var i=Math.trunc(r)^Math.trunc(r>>32);return t^i};wn.prototype.interfaces_=function(){return[$d,Wd]};wn.prototype.getClass=function(){return wn};wn.midPoint=function(e,t){return new tt((e.x+t.x)/2,(e.y+t.y)/2)};FJe.serialVersionUID.get=function(){return 0x2d2172135f411c00};Object.defineProperties(wn,FJe);var zN=function(){this.tempEnv1=new gn,this.tempEnv2=new gn,this._overlapSeg1=new wn,this._overlapSeg2=new wn};zN.prototype.overlap=function(){if(arguments.length!==2){if(arguments.length===4){var e=arguments[0],t=arguments[1],r=arguments[2],i=arguments[3];e.getLineSegment(t,this._overlapSeg1),r.getLineSegment(i,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}}};zN.prototype.interfaces_=function(){return[]};zN.prototype.getClass=function(){return zN};var ef=function(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var e=arguments[0],t=arguments[1],r=arguments[2],i=arguments[3];this._pts=e,this._start=t,this._end=r,this._context=i};ef.prototype.getLineSegment=function(e,t){t.p0=this._pts[e],t.p1=this._pts[e+1]};ef.prototype.computeSelect=function(e,t,r,i){var a=this._pts[t],o=this._pts[r];if(i.tempEnv1.init(a,o),r-t===1)return i.select(this,t),null;if(!e.intersects(i.tempEnv1))return null;var s=Math.trunc((t+r)/2);t=e.length-1)return e.length-1;for(var i=Eo.quadrant(e[r],e[r+1]),a=t+1;as.getId()&&(s.computeOverlaps(h,a),i._nOverlaps++),i._segInt.isDone())return null}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},t.SegmentOverlapAction.get=function(){return LLe},Object.defineProperties(e,t),e}(UN),LLe=function(n){function e(){n.call(this),this._si=null;var t=arguments[0];this._si=t}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.overlap=function(){if(arguments.length===4){var r=arguments[0],i=arguments[1],a=arguments[2],o=arguments[3],s=r.getContext(),l=a.getContext();this._si.processIntersections(s,i,l,o)}else return n.prototype.overlap.apply(this,arguments)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(zN),eo=function n(){if(this._quadrantSegments=n.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=n.CAP_ROUND,this._joinStyle=n.JOIN_ROUND,this._mitreLimit=n.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=n.DEFAULT_SIMPLIFY_FACTOR,arguments.length!==0){if(arguments.length===1){var e=arguments[0];this.setQuadrantSegments(e)}else if(arguments.length===2){var t=arguments[0],r=arguments[1];this.setQuadrantSegments(t),this.setEndCapStyle(r)}else if(arguments.length===4){var i=arguments[0],a=arguments[1],o=arguments[2],s=arguments[3];this.setQuadrantSegments(i),this.setEndCapStyle(a),this.setJoinStyle(o),this.setMitreLimit(s)}}},Um={CAP_ROUND:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},JOIN_ROUND:{configurable:!0},JOIN_MITRE:{configurable:!0},JOIN_BEVEL:{configurable:!0},DEFAULT_QUADRANT_SEGMENTS:{configurable:!0},DEFAULT_MITRE_LIMIT:{configurable:!0},DEFAULT_SIMPLIFY_FACTOR:{configurable:!0}};eo.prototype.getEndCapStyle=function(){return this._endCapStyle};eo.prototype.isSingleSided=function(){return this._isSingleSided};eo.prototype.setQuadrantSegments=function(e){this._quadrantSegments=e,this._quadrantSegments===0&&(this._joinStyle=eo.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=eo.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),e<=0&&(this._quadrantSegments=1),this._joinStyle!==eo.JOIN_ROUND&&(this._quadrantSegments=eo.DEFAULT_QUADRANT_SEGMENTS)};eo.prototype.getJoinStyle=function(){return this._joinStyle};eo.prototype.setJoinStyle=function(e){this._joinStyle=e};eo.prototype.setSimplifyFactor=function(e){this._simplifyFactor=e<0?0:e};eo.prototype.getSimplifyFactor=function(){return this._simplifyFactor};eo.prototype.getQuadrantSegments=function(){return this._quadrantSegments};eo.prototype.setEndCapStyle=function(e){this._endCapStyle=e};eo.prototype.getMitreLimit=function(){return this._mitreLimit};eo.prototype.setMitreLimit=function(e){this._mitreLimit=e};eo.prototype.setSingleSided=function(e){this._isSingleSided=e};eo.prototype.interfaces_=function(){return[]};eo.prototype.getClass=function(){return eo};eo.bufferDistanceError=function(e){var t=Math.PI/2/e;return 1-Math.cos(t/2)};Um.CAP_ROUND.get=function(){return 1};Um.CAP_FLAT.get=function(){return 2};Um.CAP_SQUARE.get=function(){return 3};Um.JOIN_ROUND.get=function(){return 1};Um.JOIN_MITRE.get=function(){return 2};Um.JOIN_BEVEL.get=function(){return 3};Um.DEFAULT_QUADRANT_SEGMENTS.get=function(){return 8};Um.DEFAULT_MITRE_LIMIT.get=function(){return 5};Um.DEFAULT_SIMPLIFY_FACTOR.get=function(){return .01};Object.defineProperties(eo,Um);var Hs=function(e){this._distanceTol=null,this._isDeleted=null,this._angleOrientation=Gr.COUNTERCLOCKWISE,this._inputLine=e||null},rF={INIT:{configurable:!0},DELETE:{configurable:!0},KEEP:{configurable:!0},NUM_PTS_TO_CHECK:{configurable:!0}};Hs.prototype.isDeletable=function(e,t,r,i){var a=this._inputLine[e],o=this._inputLine[t],s=this._inputLine[r];return!this.isConcave(a,o,s)||!this.isShallow(a,o,s,i)?!1:this.isShallowSampled(a,o,e,r,i)};Hs.prototype.deleteShallowConcavities=function(){for(var e=this,t=1,r=this.findNextNonDeletedIndex(t),i=this.findNextNonDeletedIndex(r),a=!1;i=0;a--)r.addPt(e[a])};Vf.prototype.isRedundant=function(e){if(this._ptList.size()<1)return!1;var t=this._ptList.get(this._ptList.size()-1),r=e.distance(t);return rMath.PI;)e-=ea.PI_TIMES_2;for(;e<=-Math.PI;)e+=ea.PI_TIMES_2;return e};ea.angle=function(){if(arguments.length===1){var e=arguments[0];return Math.atan2(e.y,e.x)}else if(arguments.length===2){var t=arguments[0],r=arguments[1],i=r.x-t.x,a=r.y-t.y;return Math.atan2(a,i)}};ea.isAcute=function(e,t,r){var i=e.x-t.x,a=e.y-t.y,o=r.x-t.x,s=r.y-t.y,l=i*o+a*s;return l>0};ea.isObtuse=function(e,t,r){var i=e.x-t.x,a=e.y-t.y,o=r.x-t.x,s=r.y-t.y,l=i*o+a*s;return l<0};ea.interiorAngle=function(e,t,r){var i=ea.angle(t,e),a=ea.angle(t,r);return Math.abs(a-i)};ea.normalizePositive=function(e){if(e<0){for(;e<0;)e+=ea.PI_TIMES_2;e>=ea.PI_TIMES_2&&(e=0)}else{for(;e>=ea.PI_TIMES_2;)e-=ea.PI_TIMES_2;e<0&&(e=0)}return e};ea.angleBetween=function(e,t,r){var i=ea.angle(t,e),a=ea.angle(t,r);return ea.diff(i,a)};ea.diff=function(e,t){var r=null;return eMath.PI&&(r=2*Math.PI-r),r};ea.toRadians=function(e){return e*Math.PI/180};ea.getTurn=function(e,t){var r=Math.sin(t-e);return r>0?ea.COUNTERCLOCKWISE:r<0?ea.CLOCKWISE:ea.NONE};ea.angleBetweenOriented=function(e,t,r){var i=ea.angle(t,e),a=ea.angle(t,r),o=a-i;return o<=-Math.PI?o+ea.PI_TIMES_2:o>Math.PI?o-ea.PI_TIMES_2:o};ET.PI_TIMES_2.get=function(){return 2*Math.PI};ET.PI_OVER_2.get=function(){return Math.PI/2};ET.PI_OVER_4.get=function(){return Math.PI/4};ET.COUNTERCLOCKWISE.get=function(){return Gr.COUNTERCLOCKWISE};ET.CLOCKWISE.get=function(){return Gr.CLOCKWISE};ET.NONE.get=function(){return Gr.COLLINEAR};Object.defineProperties(ea,ET);var us=function n(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new wn,this._seg1=new wn,this._offset0=new wn,this._offset1=new wn,this._side=0,this._hasNarrowConcaveAngle=!1;var e=arguments[0],t=arguments[1],r=arguments[2];this._precisionModel=e,this._bufParams=t,this._li=new Ow,this._filletAngleQuantum=Math.PI/2/t.getQuadrantSegments(),t.getQuadrantSegments()>=8&&t.getJoinStyle()===eo.JOIN_ROUND&&(this._closingSegLengthFactor=n.MAX_CLOSING_SEG_LEN_FACTOR),this.init(r)},nF={OFFSET_SEGMENT_SEPARATION_FACTOR:{configurable:!0},INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},CURVE_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},MAX_CLOSING_SEG_LEN_FACTOR:{configurable:!0}};us.prototype.addNextSegment=function(e,t){if(this._s0=this._s1,this._s1=this._s2,this._s2=e,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var r=Gr.computeOrientation(this._s0,this._s1,this._s2),i=r===Gr.CLOCKWISE&&this._side===wr.LEFT||r===Gr.COUNTERCLOCKWISE&&this._side===wr.RIGHT;r===0?this.addCollinear(t):i?this.addOutsideTurn(r,t):this.addInsideTurn(r,t)};us.prototype.addLineEndCap=function(e,t){var r=new wn(e,t),i=new wn;this.computeOffsetSegment(r,wr.LEFT,this._distance,i);var a=new wn;this.computeOffsetSegment(r,wr.RIGHT,this._distance,a);var o=t.x-e.x,s=t.y-e.y,l=Math.atan2(s,o);switch(this._bufParams.getEndCapStyle()){case eo.CAP_ROUND:this._segList.addPt(i.p1),this.addFilletArc(t,l+Math.PI/2,l-Math.PI/2,Gr.CLOCKWISE,this._distance),this._segList.addPt(a.p1);break;case eo.CAP_FLAT:this._segList.addPt(i.p1),this._segList.addPt(a.p1);break;case eo.CAP_SQUARE:var u=new tt;u.x=Math.abs(this._distance)*Math.cos(l),u.y=Math.abs(this._distance)*Math.sin(l);var h=new tt(i.p1.x+u.x,i.p1.y+u.y),c=new tt(a.p1.x+u.x,a.p1.y+u.y);this._segList.addPt(h),this._segList.addPt(c);break}};us.prototype.getCoordinates=function(){var e=this._segList.getCoordinates();return e};us.prototype.addMitreJoin=function(e,t,r,i){var a=!0,o=null;try{o=Sv.intersection(t.p0,t.p1,r.p0,r.p1);var s=i<=0?1:o.distance(e)/Math.abs(i);s>this._bufParams.getMitreLimit()&&(a=!1)}catch(l){if(l instanceof pL)o=new tt(0,0),a=!1;else throw l}finally{}a?this._segList.addPt(o):this.addLimitedMitreJoin(t,r,i,this._bufParams.getMitreLimit())};us.prototype.addFilletCorner=function(e,t,r,i,a){var o=t.x-e.x,s=t.y-e.y,l=Math.atan2(s,o),u=r.x-e.x,h=r.y-e.y,c=Math.atan2(h,u);i===Gr.CLOCKWISE?l<=c&&(l+=2*Math.PI):l>=c&&(l-=2*Math.PI),this._segList.addPt(t),this.addFilletArc(e,l,c,i,a),this._segList.addPt(r)};us.prototype.addOutsideTurn=function(e,t){if(this._offset0.p1.distance(this._offset1.p0)0){var r=new tt((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(r);var i=new tt((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(i)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}};us.prototype.createCircle=function(e){var t=new tt(e.x+this._distance,e.y);this._segList.addPt(t),this.addFilletArc(e,0,2*Math.PI,-1,this._distance),this._segList.closeRing()};us.prototype.addBevelJoin=function(e,t){this._segList.addPt(e.p1),this._segList.addPt(t.p0)};us.prototype.init=function(e){this._distance=e,this._maxCurveSegmentError=e*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new Vf,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(e*us.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)};us.prototype.addCollinear=function(e){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2);var t=this._li.getIntersectionNum();t>=2&&(this._bufParams.getJoinStyle()===eo.JOIN_BEVEL||this._bufParams.getJoinStyle()===eo.JOIN_MITRE?(e&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,Gr.CLOCKWISE,this._distance))};us.prototype.closeRing=function(){this._segList.closeRing()};us.prototype.hasNarrowConcaveAngle=function(){return this._hasNarrowConcaveAngle};us.prototype.interfaces_=function(){return[]};us.prototype.getClass=function(){return us};nF.OFFSET_SEGMENT_SEPARATION_FACTOR.get=function(){return .001};nF.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return .001};nF.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return 1e-6};nF.MAX_CLOSING_SEG_LEN_FACTOR.get=function(){return 80};Object.defineProperties(us,nF);var yc=function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var e=arguments[0],t=arguments[1];this._precisionModel=e,this._bufParams=t};yc.prototype.getOffsetCurve=function(e,t){if(this._distance=t,t===0)return null;var r=t<0,i=Math.abs(t),a=this.getSegGen(i);e.length<=1?this.computePointCurve(e[0],a):this.computeOffsetCurve(e,r,a);var o=a.getCoordinates();return r&&Bi.reverse(o),o};yc.prototype.computeSingleSidedBufferCurve=function(e,t,r){var i=this.simplifyTolerance(this._distance);if(t){r.addSegments(e,!0);var a=Hs.simplify(e,-i),o=a.length-1;r.initSideSegments(a[o],a[o-1],wr.LEFT),r.addFirstSegment();for(var s=o-2;s>=0;s--)r.addNextSegment(a[s],!0)}else{r.addSegments(e,!1);var l=Hs.simplify(e,i),u=l.length-1;r.initSideSegments(l[0],l[1],wr.LEFT),r.addFirstSegment();for(var h=2;h<=u;h++)r.addNextSegment(l[h],!0)}r.addLastSegment(),r.closeRing()};yc.prototype.computeRingBufferCurve=function(e,t,r){var i=this.simplifyTolerance(this._distance);t===wr.RIGHT&&(i=-i);var a=Hs.simplify(e,i),o=a.length-1;r.initSideSegments(a[o-1],a[0],t);for(var s=1;s<=o;s++){var l=s!==1;r.addNextSegment(a[s],l)}r.closeRing()};yc.prototype.computeLineBufferCurve=function(e,t){var r=this.simplifyTolerance(this._distance),i=Hs.simplify(e,r),a=i.length-1;t.initSideSegments(i[0],i[1],wr.LEFT);for(var o=2;o<=a;o++)t.addNextSegment(i[o],!0);t.addLastSegment(),t.addLineEndCap(i[a-1],i[a]);var s=Hs.simplify(e,-r),l=s.length-1;t.initSideSegments(s[l],s[l-1],wr.LEFT);for(var u=l-2;u>=0;u--)t.addNextSegment(s[u],!0);t.addLastSegment(),t.addLineEndCap(s[1],s[0]),t.closeRing()};yc.prototype.computePointCurve=function(e,t){switch(this._bufParams.getEndCapStyle()){case eo.CAP_ROUND:t.createCircle(e);break;case eo.CAP_SQUARE:t.createSquare(e);break}};yc.prototype.getLineCurve=function(e,t){if(this._distance=t,t<0&&!this._bufParams.isSingleSided()||t===0)return null;var r=Math.abs(t),i=this.getSegGen(r);if(e.length<=1)this.computePointCurve(e[0],i);else if(this._bufParams.isSingleSided()){var a=t<0;this.computeSingleSidedBufferCurve(e,a,i)}else this.computeLineBufferCurve(e,i);var o=i.getCoordinates();return o};yc.prototype.getBufferParameters=function(){return this._bufParams};yc.prototype.simplifyTolerance=function(e){return e*this._bufParams.getSimplifyFactor()};yc.prototype.getRingCurve=function(e,t,r){if(this._distance=r,e.length<=2)return this.getLineCurve(e,r);if(r===0)return yc.copyCoordinates(e);var i=this.getSegGen(r);return this.computeRingBufferCurve(e,t,i),i.getCoordinates()};yc.prototype.computeOffsetCurve=function(e,t,r){var i=this.simplifyTolerance(this._distance);if(t){var a=Hs.simplify(e,-i),o=a.length-1;r.initSideSegments(a[o],a[o-1],wr.LEFT),r.addFirstSegment();for(var s=o-2;s>=0;s--)r.addNextSegment(a[s],!0)}else{var l=Hs.simplify(e,i),u=l.length-1;r.initSideSegments(l[0],l[1],wr.LEFT),r.addFirstSegment();for(var h=2;h<=u;h++)r.addNextSegment(l[h],!0)}r.addLastSegment()};yc.prototype.getSegGen=function(e){return new us(this._precisionModel,this._bufParams,e)};yc.prototype.interfaces_=function(){return[]};yc.prototype.getClass=function(){return yc};yc.copyCoordinates=function(e){for(var t=new Array(e.length).fill(null),r=0;ro.getMaxY()||e.findStabbedSegments(t,a.getDirectedEdges(),r)}return r}else if(arguments.length===3){if(zn(arguments[2],wv)&&arguments[0]instanceof tt&&arguments[1]instanceof Vre)for(var s=arguments[0],l=arguments[1],u=arguments[2],h=l.getEdge().getCoordinates(),c=0;ce._seg.p1.y&&e._seg.reverse();var f=Math.max(e._seg.p0.x,e._seg.p1.x);if(!(fe._seg.p1.y)&&Gr.computeOrientation(e._seg.p0,e._seg.p1,s)!==Gr.RIGHT){var d=l.getDepth(wr.LEFT);e._seg.p0.equals(h[c])||(d=l.getDepth(wr.RIGHT));var v=new hw(e._seg,d);u.add(v)}}else if(zn(arguments[2],wv)&&arguments[0]instanceof tt&&zn(arguments[1],wv))for(var p=arguments[0],g=arguments[1],m=arguments[2],y=g.iterator();y.hasNext();){var _=y.next();!_.isForward()||e.findStabbedSegments(p,_,m)}}};O2.prototype.getDepth=function(e){var t=this.findStabbedSegments(e);if(t.size()===0)return 0;var r=Pv.min(t);return r._leftDepth};O2.prototype.interfaces_=function(){return[]};O2.prototype.getClass=function(){return O2};GJe.DepthSegment.get=function(){return hw};Object.defineProperties(O2,GJe);var hw=function(){this._upwardSeg=null,this._leftDepth=null;var e=arguments[0],t=arguments[1];this._upwardSeg=new wn(e),this._leftDepth=t};hw.prototype.compareTo=function(e){var t=e;if(this._upwardSeg.minX()>=t._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=t._upwardSeg.minX())return-1;var r=this._upwardSeg.orientationIndex(t._upwardSeg);return r!==0||(r=-1*t._upwardSeg.orientationIndex(this._upwardSeg),r!==0)?r:this._upwardSeg.compareTo(t._upwardSeg)};hw.prototype.compareX=function(e,t){var r=e.p0.compareTo(t.p0);return r!==0?r:e.p1.compareTo(t.p1)};hw.prototype.toString=function(){return this._upwardSeg.toString()};hw.prototype.interfaces_=function(){return[$d]};hw.prototype.getClass=function(){return hw};var ro=function(e,t,r){this.p0=e||null,this.p1=t||null,this.p2=r||null};ro.prototype.area=function(){return ro.area(this.p0,this.p1,this.p2)};ro.prototype.signedArea=function(){return ro.signedArea(this.p0,this.p1,this.p2)};ro.prototype.interpolateZ=function(e){if(e===null)throw new Ss("Supplied point is null.");return ro.interpolateZ(e,this.p0,this.p1,this.p2)};ro.prototype.longestSideLength=function(){return ro.longestSideLength(this.p0,this.p1,this.p2)};ro.prototype.isAcute=function(){return ro.isAcute(this.p0,this.p1,this.p2)};ro.prototype.circumcentre=function(){return ro.circumcentre(this.p0,this.p1,this.p2)};ro.prototype.area3D=function(){return ro.area3D(this.p0,this.p1,this.p2)};ro.prototype.centroid=function(){return ro.centroid(this.p0,this.p1,this.p2)};ro.prototype.inCentre=function(){return ro.inCentre(this.p0,this.p1,this.p2)};ro.prototype.interfaces_=function(){return[]};ro.prototype.getClass=function(){return ro};ro.area=function(e,t,r){return Math.abs(((r.x-e.x)*(t.y-e.y)-(t.x-e.x)*(r.y-e.y))/2)};ro.signedArea=function(e,t,r){return((r.x-e.x)*(t.y-e.y)-(t.x-e.x)*(r.y-e.y))/2};ro.det=function(e,t,r,i){return e*i-t*r};ro.interpolateZ=function(e,t,r,i){var a=t.x,o=t.y,s=r.x-a,l=i.x-a,u=r.y-o,h=i.y-o,c=s*h-l*u,f=e.x-a,d=e.y-o,v=(h*f-l*d)/c,p=(-u*f+s*d)/c,g=t.z+v*(r.z-t.z)+p*(i.z-t.z);return g};ro.longestSideLength=function(e,t,r){var i=e.distance(t),a=t.distance(r),o=r.distance(e),s=i;return a>s&&(s=a),o>s&&(s=o),s};ro.isAcute=function(e,t,r){return!(!ea.isAcute(e,t,r)||!ea.isAcute(t,r,e)||!ea.isAcute(r,e,t))};ro.circumcentre=function(e,t,r){var i=r.x,a=r.y,o=e.x-i,s=e.y-a,l=t.x-i,u=t.y-a,h=2*ro.det(o,s,l,u),c=ro.det(s,o*o+s*s,u,l*l+u*u),f=ro.det(o,o*o+s*s,l,l*l+u*u),d=i-c/h,v=a+f/h;return new tt(d,v)};ro.perpendicularBisector=function(e,t){var r=t.x-e.x,i=t.y-e.y,a=new Sv(e.x+r/2,e.y+i/2,1),o=new Sv(e.x-i+r/2,e.y+r+i/2,1);return new Sv(a,o)};ro.angleBisector=function(e,t,r){var i=t.distance(e),a=t.distance(r),o=i/(i+a),s=r.x-e.x,l=r.y-e.y,u=new tt(e.x+o*s,e.y+o*l);return u};ro.area3D=function(e,t,r){var i=t.x-e.x,a=t.y-e.y,o=t.z-e.z,s=r.x-e.x,l=r.y-e.y,u=r.z-e.z,h=a*u-o*l,c=o*s-i*u,f=i*l-a*s,d=h*h+c*c+f*f,v=Math.sqrt(d)/2;return v};ro.centroid=function(e,t,r){var i=(e.x+t.x+r.x)/3,a=(e.y+t.y+r.y)/3;return new tt(i,a)};ro.inCentre=function(e,t,r){var i=t.distance(r),a=e.distance(r),o=e.distance(t),s=i+a+o,l=(i*e.x+a*t.x+o*r.x)/s,u=(i*e.y+a*t.y+o*r.y)/s;return new tt(l,u)};var Dd=function(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new Pr;var e=arguments[0],t=arguments[1],r=arguments[2];this._inputGeom=e,this._distance=t,this._curveBuilder=r};Dd.prototype.addPoint=function(e){if(this._distance<=0)return null;var t=e.getCoordinates(),r=this._curveBuilder.getLineCurve(t,this._distance);this.addCurve(r,dt.EXTERIOR,dt.INTERIOR)};Dd.prototype.addPolygon=function(e){var t=this,r=this._distance,i=wr.LEFT;this._distance<0&&(r=-this._distance,i=wr.RIGHT);var a=e.getExteriorRing(),o=Bi.removeRepeatedPoints(a.getCoordinates());if(this._distance<0&&this.isErodedCompletely(a,this._distance)||this._distance<=0&&o.length<3)return null;this.addPolygonRing(o,r,i,dt.EXTERIOR,dt.INTERIOR);for(var s=0;s0&&t.isErodedCompletely(l,-t._distance)||t.addPolygonRing(u,r,wr.opposite(i),dt.INTERIOR,dt.EXTERIOR)}};Dd.prototype.isTriangleErodedCompletely=function(e,t){var r=new ro(e[0],e[1],e[2]),i=r.inCentre(),a=Gr.distancePointLine(i,r.p0,r.p1);return a=b0.MINIMUM_VALID_SIZE&&Gr.isCCW(e)&&(o=a,s=i,r=wr.opposite(r));var l=this._curveBuilder.getRingCurve(e,r,t);this.addCurve(l,o,s)};Dd.prototype.add=function(e){if(e.isEmpty())return null;e instanceof Rl?this.addPolygon(e):e instanceof $s?this.addLineString(e):e instanceof Jc?this.addPoint(e):e instanceof oI?this.addCollection(e):e instanceof lw?this.addCollection(e):e instanceof p0?this.addCollection(e):e instanceof Yh&&this.addCollection(e)};Dd.prototype.isErodedCompletely=function(e,t){var r=e.getCoordinates();if(r.length<4)return t<0;if(r.length===4)return this.isTriangleErodedCompletely(r,t);var i=e.getEnvelopeInternal(),a=Math.min(i.getHeight(),i.getWidth());return t<0&&2*Math.abs(t)>a};Dd.prototype.addCollection=function(e){for(var t=this,r=0;r=this._max)throw new yL;var e=this._parent.getGeometryN(this._index++);return e instanceof Yh?(this._subcollectionIterator=new g0(e),this._subcollectionIterator.next()):e};g0.prototype.remove=function(){throw new Error(this.getClass().getName())};g0.prototype.hasNext=function(){if(this._atStart)return!0;if(this._subcollectionIterator!==null){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)};g0.prototype.interfaces_=function(){return[gL]};g0.prototype.getClass=function(){return g0};g0.isAtomic=function(e){return!(e instanceof Yh)};var kf=function(){this._geom=null;var e=arguments[0];this._geom=e};kf.prototype.locate=function(e){return kf.locate(e,this._geom)};kf.prototype.interfaces_=function(){return[hI]};kf.prototype.getClass=function(){return kf};kf.isPointInRing=function(e,t){return t.getEnvelopeInternal().intersects(e)?Gr.isPointInRing(e,t.getCoordinates()):!1};kf.containsPointInPolygon=function(e,t){if(t.isEmpty())return!1;var r=t.getExteriorRing();if(!kf.isPointInRing(e,r))return!1;for(var i=0;i=0;o--){var s=r._edgeList.get(o),l=s.getSym();a===null&&(a=l),i!==null&&l.setNext(i),i=s}a.setNext(i)},e.prototype.computeDepths=function(){var r=this;if(arguments.length===1){var i=arguments[0],a=this.findIndex(i),o=i.getDepth(wr.LEFT),s=i.getDepth(wr.RIGHT),l=this.computeDepths(a+1,this._edgeList.size(),o),u=this.computeDepths(0,a,l);if(u!==s)throw new wm("depth mismatch at "+i.getCoordinate())}else if(arguments.length===3){for(var h=arguments[0],c=arguments[1],f=arguments[2],d=f,v=h;v=0;l--){var u=i._resultAreaEdgeList.get(l),h=u.getSym();switch(a===null&&u.getEdgeRing()===r&&(a=u),s){case i._SCANNING_FOR_INCOMING:if(h.getEdgeRing()!==r)continue;o=h,s=i._LINKING_TO_OUTGOING;break;case i._LINKING_TO_OUTGOING:if(u.getEdgeRing()!==r)continue;o.setNextMin(u),s=i._SCANNING_FOR_INCOMING;break}}s===this._LINKING_TO_OUTGOING&&(mi.isTrue(a!==null,"found null for first outgoing dirEdge"),mi.isTrue(a.getEdgeRing()===r,"unable to link last incoming dirEdge"),o.setNextMin(a))},e.prototype.getOutgoingDegree=function(){if(arguments.length===0){for(var r=0,i=this.iterator();i.hasNext();){var a=i.next();a.isInResult()&&r++}return r}else if(arguments.length===1){for(var o=arguments[0],s=0,l=this.iterator();l.hasNext();){var u=l.next();u.getEdgeRing()===o&&s++}return s}},e.prototype.getLabel=function(){return this._label},e.prototype.findCoveredLineEdges=function(){for(var r=dt.NONE,i=this.iterator();i.hasNext();){var a=i.next(),o=a.getSym();if(!a.isLineEdge()){if(a.isInResult()){r=dt.INTERIOR;break}if(o.isInResult()){r=dt.EXTERIOR;break}}}if(r===dt.NONE)return null;for(var s=r,l=this.iterator();l.hasNext();){var u=l.next(),h=u.getSym();u.isLineEdge()?u.getEdge().setCovered(s===dt.INTERIOR):(u.isInResult()&&(s=dt.EXTERIOR),h.isInResult()&&(s=dt.INTERIOR))}},e.prototype.computeLabelling=function(r){var i=this;n.prototype.computeLabelling.call(this,r),this._label=new fo(dt.NONE);for(var a=this.iterator();a.hasNext();)for(var o=a.next(),s=o.getEdge(),l=s.getLabel(),u=0;u<2;u++){var h=l.getLocation(u);(h===dt.INTERIOR||h===dt.BOUNDARY)&&i._label.setLocation(u,dt.INTERIOR)}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(ph),zJe=function(n){function e(){n.apply(this,arguments)}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.createNode=function(r){return new B$(r,new $zr)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(sI),E_=function n(){this._pts=null,this._orientation=null;var e=arguments[0];this._pts=e,this._orientation=n.orientation(e)};E_.prototype.compareTo=function(e){var t=e,r=E_.compareOriented(this._pts,this._orientation,t._pts,t._orientation);return r};E_.prototype.interfaces_=function(){return[$d]};E_.prototype.getClass=function(){return E_};E_.orientation=function(e){return Bi.increasingDirection(e)===1};E_.compareOriented=function(e,t,r,i){for(var a=t?1:-1,o=i?1:-1,s=t?e.length:-1,l=i?r.length:-1,u=t?0:e.length-1,h=i?0:r.length-1;;){var c=e[u].compareTo(r[h]);if(c!==0)return c;u+=a,h+=o;var f=u===s,d=h===l;if(f&&!d)return-1;if(!f&&d)return 1;if(f&&d)return 0}};var Ov=function(){this._edges=new Pr,this._ocaMap=new dh};Ov.prototype.print=function(e){var t=this;e.print("MULTILINESTRING ( ");for(var r=0;r0&&e.print(","),e.print("(");for(var a=i.getCoordinates(),o=0;o0&&e.print(","),e.print(a[o].x+" "+a[o].y);e.println(")")}e.print(") ")};Ov.prototype.addAll=function(e){for(var t=this,r=e.iterator();r.hasNext();)t.add(r.next())};Ov.prototype.findEdgeIndex=function(e){for(var t=this,r=0;r0||!t.coord.equals2D(a);o||i--;var s=new Array(i).fill(null),l=0;s[l++]=new tt(e.coord);for(var u=e.segmentIndex+1;u<=t.segmentIndex;u++)s[l++]=r.edge.pts[u];return o&&(s[l]=t.coord),new W7(s,new fo(this.edge._label))};C0.prototype.add=function(e,t,r){var i=new Jp(e,t,r),a=this._nodeMap.get(i);return a!==null?a:(this._nodeMap.put(i,i),i)};C0.prototype.isIntersection=function(e){for(var t=this.iterator();t.hasNext();){var r=t.next();if(r.coord.equals(e))return!0}return!1};C0.prototype.interfaces_=function(){return[]};C0.prototype.getClass=function(){return C0};var fw=function(){};fw.prototype.getChainStartIndices=function(e){var t=this,r=0,i=new Pr;i.add(new jp(r));do{var a=t.findChainEnd(e,r);i.add(new jp(a)),r=a}while(rr?t:r};Em.prototype.getMinX=function(e){var t=this.pts[this.startIndex[e]].x,r=this.pts[this.startIndex[e+1]].x;return tr&&(a=1),e._depth[t][i]=a}}};Fu.prototype.getDelta=function(e){return this._depth[e][wr.RIGHT]-this._depth[e][wr.LEFT]};Fu.prototype.getLocation=function(e,t){return this._depth[e][t]<=0?dt.EXTERIOR:dt.INTERIOR};Fu.prototype.toString=function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]};Fu.prototype.add=function(){var e=this;if(arguments.length===1)for(var t=arguments[0],r=0;r<2;r++)for(var i=1;i<3;i++){var a=t.getLocation(r,i);(a===dt.EXTERIOR||a===dt.INTERIOR)&&(e.isNull(r,i)?e._depth[r][i]=Fu.depthAtLocation(a):e._depth[r][i]+=Fu.depthAtLocation(a))}else if(arguments.length===3){var o=arguments[0],s=arguments[1],l=arguments[2];l===dt.INTERIOR&&this._depth[o][s]++}};Fu.prototype.interfaces_=function(){return[]};Fu.prototype.getClass=function(){return Fu};Fu.depthAtLocation=function(e){return e===dt.EXTERIOR?0:e===dt.INTERIOR?1:Fu.NULL_VALUE};UJe.NULL_VALUE.get=function(){return-1};Object.defineProperties(Fu,UJe);var W7=function(n){function e(){if(n.call(this),this.pts=null,this._env=null,this.eiList=new C0(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new Fu,this._depthDelta=0,arguments.length===1){var t=arguments[0];e.call(this,t,null)}else if(arguments.length===2){var r=arguments[0],i=arguments[1];this.pts=r,this._label=i}}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.getDepth=function(){return this._depth},e.prototype.getCollapsedEdge=function(){var r=new Array(2).fill(null);r[0]=this.pts[0],r[1]=this.pts[1];var i=new e(r,fo.toLineLabel(this._label));return i},e.prototype.isIsolated=function(){return this._isIsolated},e.prototype.getCoordinates=function(){return this.pts},e.prototype.setIsolated=function(r){this._isIsolated=r},e.prototype.setName=function(r){this._name=r},e.prototype.equals=function(r){var i=this;if(!(r instanceof e))return!1;var a=r;if(this.pts.length!==a.pts.length)return!1;for(var o=!0,s=!0,l=this.pts.length,u=0;u0?this.pts[0]:null;if(arguments.length===1){var r=arguments[0];return this.pts[r]}},e.prototype.print=function(r){var i=this;r.print("edge "+this._name+": "),r.print("LINESTRING (");for(var a=0;a0&&r.print(","),r.print(i.pts[a].x+" "+i.pts[a].y);r.print(") "+this._label+" "+this._depthDelta)},e.prototype.computeIM=function(r){e.updateIM(this._label,r)},e.prototype.isCollapsed=function(){return!this._label.isArea()||this.pts.length!==3?!1:!!this.pts[0].equals(this.pts[2])},e.prototype.isClosed=function(){return this.pts[0].equals(this.pts[this.pts.length-1])},e.prototype.getMaximumSegmentIndex=function(){return this.pts.length-1},e.prototype.getDepthDelta=function(){return this._depthDelta},e.prototype.getNumPoints=function(){return this.pts.length},e.prototype.printReverse=function(r){var i=this;r.print("edge "+this._name+": ");for(var a=this.pts.length-1;a>=0;a--)r.print(i.pts[a]+" ");r.println("")},e.prototype.getMonotoneChainEdge=function(){return this._mce===null&&(this._mce=new Em(this)),this._mce},e.prototype.getEnvelope=function(){var r=this;if(this._env===null){this._env=new gn;for(var i=0;i0&&i.append(","),i.append(r.pts[a].x+" "+r.pts[a].y);return i.append(") "+this._label+" "+this._depthDelta),i.toString()},e.prototype.isPointwiseEqual=function(r){var i=this;if(this.pts.length!==r.pts.length)return!1;for(var a=0;ai||this._maxyo;if(s)return!1;var l=this.intersectsToleranceSquare(e,t);return mi.isTrue(!(s&&l),"Found bad envelope test"),l};mc.prototype.initCorners=function(e){var t=.5;this._minx=e.x-t,this._maxx=e.x+t,this._miny=e.y-t,this._maxy=e.y+t,this._corner[0]=new tt(this._maxx,this._maxy),this._corner[1]=new tt(this._minx,this._maxy),this._corner[2]=new tt(this._minx,this._miny),this._corner[3]=new tt(this._maxx,this._miny)};mc.prototype.intersects=function(e,t){return this._scaleFactor===1?this.intersectsScaled(e,t):(this.copyScaled(e,this._p0Scaled),this.copyScaled(t,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))};mc.prototype.scale=function(e){return Math.round(e*this._scaleFactor)};mc.prototype.getCoordinate=function(){return this._originalPt};mc.prototype.copyScaled=function(e,t){t.x=this.scale(e.x),t.y=this.scale(e.y)};mc.prototype.getSafeEnvelope=function(){if(this._safeEnv===null){var e=mc.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new gn(this._originalPt.x-e,this._originalPt.x+e,this._originalPt.y-e,this._originalPt.y+e)}return this._safeEnv};mc.prototype.intersectsPixelClosure=function(e,t){return this._li.computeIntersection(e,t,this._corner[0],this._corner[1]),!!(this._li.hasIntersection()||(this._li.computeIntersection(e,t,this._corner[1],this._corner[2]),this._li.hasIntersection())||(this._li.computeIntersection(e,t,this._corner[2],this._corner[3]),this._li.hasIntersection())||(this._li.computeIntersection(e,t,this._corner[3],this._corner[0]),this._li.hasIntersection()))};mc.prototype.intersectsToleranceSquare=function(e,t){var r=!1,i=!1;return this._li.computeIntersection(e,t,this._corner[0],this._corner[1]),!!(this._li.isProper()||(this._li.computeIntersection(e,t,this._corner[1],this._corner[2]),this._li.isProper())||(this._li.hasIntersection()&&(r=!0),this._li.computeIntersection(e,t,this._corner[2],this._corner[3]),this._li.isProper())||(this._li.hasIntersection()&&(i=!0),this._li.computeIntersection(e,t,this._corner[3],this._corner[0]),this._li.isProper())||r&&i||e.equals(this._pt)||t.equals(this._pt))};mc.prototype.addSnappedNode=function(e,t){var r=e.getCoordinate(t),i=e.getCoordinate(t+1);return this.intersects(r,i)?(e.addIntersection(this.getCoordinate(),t),!0):!1};mc.prototype.interfaces_=function(){return[]};mc.prototype.getClass=function(){return mc};$Je.SAFE_ENV_EXPANSION_FACTOR.get=function(){return .75};Object.defineProperties(mc,$Je);var VN=function(){this.tempEnv1=new gn,this.selectedSegment=new wn};VN.prototype.select=function(){if(arguments.length!==1){if(arguments.length===2){var e=arguments[0],t=arguments[1];e.getLineSegment(t,this.selectedSegment),this.select(this.selectedSegment)}}};VN.prototype.interfaces_=function(){return[]};VN.prototype.getClass=function(){return VN};var cI=function(){this._index=null;var e=arguments[0];this._index=e},WJe={HotPixelSnapAction:{configurable:!0}};cI.prototype.snap=function(){if(arguments.length===1){var e=arguments[0];return this.snap(e,null,-1)}else if(arguments.length===3){var t=arguments[0],r=arguments[1],i=arguments[2],a=t.getSafeEnvelope(),o=new HJe(t,r,i);return this._index.query(a,{interfaces_:function(){return[w_]},visitItem:function(s){var l=s;l.select(a,o)}}),o.isNodeAdded()}};cI.prototype.interfaces_=function(){return[]};cI.prototype.getClass=function(){return cI};WJe.HotPixelSnapAction.get=function(){return HJe};Object.defineProperties(cI,WJe);var HJe=function(n){function e(){n.call(this),this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var t=arguments[0],r=arguments[1],i=arguments[2];this._hotPixel=t,this._parentEdge=r,this._hotPixelVertexIndex=i}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.isNodeAdded=function(){return this._isNodeAdded},e.prototype.select=function(){if(arguments.length===2){var r=arguments[0],i=arguments[1],a=r.getContext();if(this._parentEdge!==null&&a===this._parentEdge&&i===this._hotPixelVertexIndex)return null;this._isNodeAdded=this._hotPixel.addSnappedNode(a,i)}else return n.prototype.select.apply(this,arguments)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(VN),R2=function(){this._li=null,this._interiorIntersections=null;var e=arguments[0];this._li=e,this._interiorIntersections=new Pr};R2.prototype.processIntersections=function(e,t,r,i){var a=this;if(e===r&&t===i)return null;var o=e.getCoordinates()[t],s=e.getCoordinates()[t+1],l=r.getCoordinates()[i],u=r.getCoordinates()[i+1];if(this._li.computeIntersection(o,s,l,u),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var h=0;h=0;t--){try{e.bufferReducedPrecision(t)}catch(o){if(o instanceof wm)e._saveException=o;else throw o}finally{}if(e._resultGeometry!==null)return null}throw this._saveException}else if(arguments.length===1){var r=arguments[0],i=Ou.precisionScaleFactor(this._argGeom,this._distance,r),a=new to(i);this.bufferFixedPrecision(a)}};Ou.prototype.computeGeometry=function(){if(this.bufferOriginalPrecision(),this._resultGeometry!==null)return null;var e=this._argGeom.getFactory().getPrecisionModel();e.getType()===to.FIXED?this.bufferFixedPrecision(e):this.bufferReducedPrecision()};Ou.prototype.setQuadrantSegments=function(e){this._bufParams.setQuadrantSegments(e)};Ou.prototype.bufferOriginalPrecision=function(){try{var e=new jh(this._bufParams);this._resultGeometry=e.buffer(this._argGeom,this._distance)}catch(t){if(t instanceof xm)this._saveException=t;else throw t}finally{}};Ou.prototype.getResultGeometry=function(e){return this._distance=e,this.computeGeometry(),this._resultGeometry};Ou.prototype.setEndCapStyle=function(e){this._bufParams.setEndCapStyle(e)};Ou.prototype.interfaces_=function(){return[]};Ou.prototype.getClass=function(){return Ou};Ou.bufferOp=function(){if(arguments.length===2){var e=arguments[0],t=arguments[1],r=new Ou(e),i=r.getResultGeometry(t);return i}else if(arguments.length===3){if(Number.isInteger(arguments[2])&&arguments[0]instanceof Gn&&typeof arguments[1]=="number"){var a=arguments[0],o=arguments[1],s=arguments[2],l=new Ou(a);l.setQuadrantSegments(s);var u=l.getResultGeometry(o);return u}else if(arguments[2]instanceof eo&&arguments[0]instanceof Gn&&typeof arguments[1]=="number"){var h=arguments[0],c=arguments[1],f=arguments[2],d=new Ou(h,f),v=d.getResultGeometry(c);return v}}else if(arguments.length===4){var p=arguments[0],g=arguments[1],m=arguments[2],y=arguments[3],_=new Ou(p);_.setQuadrantSegments(m),_.setEndCapStyle(y);var x=_.getResultGeometry(g);return x}};Ou.precisionScaleFactor=function(e,t,r){var i=e.getEnvelopeInternal(),a=zf.max(Math.abs(i.getMaxX()),Math.abs(i.getMaxY()),Math.abs(i.getMinX()),Math.abs(i.getMinY())),o=t>0?t:0,s=a+2*o,l=Math.trunc(Math.log(s)/Math.log(10)+1),u=r-l,h=Math.pow(10,u);return h};mL.CAP_ROUND.get=function(){return eo.CAP_ROUND};mL.CAP_BUTT.get=function(){return eo.CAP_FLAT};mL.CAP_FLAT.get=function(){return eo.CAP_FLAT};mL.CAP_SQUARE.get=function(){return eo.CAP_SQUARE};mL.MAX_PRECISION_DIGITS.get=function(){return 12};Object.defineProperties(Ou,mL);var Uh=function(){this._pt=[new tt,new tt],this._distance=ui.NaN,this._isNull=!0};Uh.prototype.getCoordinates=function(){return this._pt};Uh.prototype.getCoordinate=function(e){return this._pt[e]};Uh.prototype.setMinimum=function(){if(arguments.length===1){var e=arguments[0];this.setMinimum(e._pt[0],e._pt[1])}else if(arguments.length===2){var t=arguments[0],r=arguments[1];if(this._isNull)return this.initialize(t,r),null;var i=t.distance(r);ithis._distance&&this.initialize(t,r,i)}};Uh.prototype.interfaces_=function(){return[]};Uh.prototype.getClass=function(){return Uh};var Yg=function(){};Yg.prototype.interfaces_=function(){return[]};Yg.prototype.getClass=function(){return Yg};Yg.computeDistance=function(){if(arguments[2]instanceof Uh&&arguments[0]instanceof $s&&arguments[1]instanceof tt)for(var e=arguments[0],t=arguments[1],r=arguments[2],i=e.getCoordinates(),a=new wn,o=0;o0||this._isIn?dt.INTERIOR:dt.EXTERIOR)};Rv.prototype.interfaces_=function(){return[]};Rv.prototype.getClass=function(){return Rv};var Vh=function n(){if(this._component=null,this._segIndex=null,this._pt=null,arguments.length===2){var e=arguments[0],t=arguments[1];n.call(this,e,n.INSIDE_AREA,t)}else if(arguments.length===3){var r=arguments[0],i=arguments[1],a=arguments[2];this._component=r,this._segIndex=i,this._pt=a}},jJe={INSIDE_AREA:{configurable:!0}};Vh.prototype.isInsideArea=function(){return this._segIndex===Vh.INSIDE_AREA};Vh.prototype.getCoordinate=function(){return this._pt};Vh.prototype.getGeometryComponent=function(){return this._component};Vh.prototype.getSegmentIndex=function(){return this._segIndex};Vh.prototype.interfaces_=function(){return[]};Vh.prototype.getClass=function(){return Vh};jJe.INSIDE_AREA.get=function(){return-1};Object.defineProperties(Vh,jJe);var r_=function(e){this._pts=e||null};r_.prototype.filter=function(e){e instanceof Jc&&this._pts.add(e)};r_.prototype.interfaces_=function(){return[Yp]};r_.prototype.getClass=function(){return r_};r_.getPoints=function(){if(arguments.length===1){var e=arguments[0];return e instanceof Jc?Pv.singletonList(e):r_.getPoints(e,new Pr)}else if(arguments.length===2){var t=arguments[0],r=arguments[1];return t instanceof Jc?r.add(t):t instanceof Yh&&t.apply(new r_(r)),r}};var N2=function(){this._locations=null;var e=arguments[0];this._locations=e};N2.prototype.filter=function(e){(e instanceof Jc||e instanceof $s||e instanceof Rl)&&this._locations.add(new Vh(e,0,e.getCoordinate()))};N2.prototype.interfaces_=function(){return[Yp]};N2.prototype.getClass=function(){return N2};N2.getLocations=function(e){var t=new Pr;return e.apply(new N2(t)),t};var Vu=function(){if(this._geom=null,this._terminateDistance=0,this._ptLocator=new Rv,this._minDistanceLocation=null,this._minDistance=ui.MAX_VALUE,arguments.length===2){var e=arguments[0],t=arguments[1];this._geom=[e,t],this._terminateDistance=0}else if(arguments.length===3){var r=arguments[0],i=arguments[1],a=arguments[2];this._geom=new Array(2).fill(null),this._geom[0]=r,this._geom[1]=i,this._terminateDistance=a}};Vu.prototype.computeContainmentDistance=function(){var e=this;if(arguments.length===0){var t=new Array(2).fill(null);if(this.computeContainmentDistance(0,t),this._minDistance<=this._terminateDistance)return null;this.computeContainmentDistance(1,t)}else if(arguments.length===2){var r=arguments[0],i=arguments[1],a=1-r,o=im.getPolygons(this._geom[r]);if(o.size()>0){var s=N2.getLocations(this._geom[a]);if(this.computeContainmentDistance(s,o,i),this._minDistance<=this._terminateDistance)return this._minDistanceLocation[a]=i[0],this._minDistanceLocation[r]=i[1],null}}else if(arguments.length===3){if(arguments[2]instanceof Array&&zn(arguments[0],wv)&&zn(arguments[1],wv)){for(var l=arguments[0],u=arguments[1],h=arguments[2],c=0;cthis._minDistance)return null;for(var a=t.getCoordinates(),o=r.getCoordinate(),s=0;sthis._minDistance)return null;for(var v=c.getCoordinates(),p=f.getCoordinates(),g=0;gthis._distance&&this.initialize(t,r,i)}};oh.prototype.interfaces_=function(){return[]};oh.prototype.getClass=function(){return oh};var Ep=function(){};Ep.prototype.interfaces_=function(){return[]};Ep.prototype.getClass=function(){return Ep};Ep.computeDistance=function(){if(arguments[2]instanceof oh&&arguments[0]instanceof $s&&arguments[1]instanceof tt)for(var e=arguments[0],t=arguments[1],r=arguments[2],i=new wn,a=e.getCoordinates(),o=0;o1||e<=0)throw new Ss("Fraction is not in range (0.0 - 1.0]");this._densifyFrac=e};Sd.prototype.compute=function(e,t){this.computeOrientedDistance(e,t,this._ptDist),this.computeOrientedDistance(t,e,this._ptDist)};Sd.prototype.distance=function(){return this.compute(this._g0,this._g1),this._ptDist.getDistance()};Sd.prototype.computeOrientedDistance=function(e,t,r){var i=new k2(t);if(e.apply(i),r.setMaximum(i.getMaxPointDistance()),this._densifyFrac>0){var a=new A_(t,this._densifyFrac);e.apply(a),r.setMaximum(a.getMaxPointDistance())}};Sd.prototype.orientedDistance=function(){return this.computeOrientedDistance(this._g0,this._g1,this._ptDist),this._ptDist.getDistance()};Sd.prototype.interfaces_=function(){return[]};Sd.prototype.getClass=function(){return Sd};Sd.distance=function(){if(arguments.length===2){var e=arguments[0],t=arguments[1],r=new Sd(e,t);return r.distance()}else if(arguments.length===3){var i=arguments[0],a=arguments[1],o=arguments[2],s=new Sd(i,a);return s.setDensifyFraction(o),s.distance()}};Lce.MaxPointDistanceFilter.get=function(){return k2};Lce.MaxDensifiedByFractionDistanceFilter.get=function(){return A_};Object.defineProperties(Sd,Lce);var k2=function(){this._maxPtDist=new oh,this._minPtDist=new oh,this._euclideanDist=new Ep,this._geom=null;var e=arguments[0];this._geom=e};k2.prototype.filter=function(e){this._minPtDist.initialize(),Ep.computeDistance(this._geom,e,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)};k2.prototype.getMaxPointDistance=function(){return this._maxPtDist};k2.prototype.interfaces_=function(){return[w0]};k2.prototype.getClass=function(){return k2};var A_=function(){this._maxPtDist=new oh,this._minPtDist=new oh,this._geom=null,this._numSubSegs=0;var e=arguments[0],t=arguments[1];this._geom=e,this._numSubSegs=Math.trunc(Math.round(1/t))};A_.prototype.filter=function(e,t){var r=this;if(t===0)return null;for(var i=e.getCoordinate(t-1),a=e.getCoordinate(t),o=(a.x-i.x)/this._numSubSegs,s=(a.y-i.y)/this._numSubSegs,l=0;lr){this._isValid=!1;var a=i.getCoordinates();this._errorLocation=a[1],this._errorIndicator=e.getFactory().createLineString(a),this._errMsg="Distance between buffer curve and input is too large ("+this._maxDistanceFound+" at "+Mv.toLineString(a[0],a[1])+")"}};Xc.prototype.isValid=function(){var e=Math.abs(this._bufDistance),t=Xc.MAX_DISTANCE_DIFF_FRAC*e;return this._minValidDistance=e-t,this._maxValidDistance=e+t,this._input.isEmpty()||this._result.isEmpty()?!0:(this._bufDistance>0?this.checkPositiveValid():this.checkNegativeValid(),Xc.VERBOSE&&zu.out.println("Min Dist= "+this._minDistanceFound+" err= "+(1-this._minDistanceFound/this._bufDistance)+" Max Dist= "+this._maxDistanceFound+" err= "+(this._maxDistanceFound/this._bufDistance-1)),this._isValid)};Xc.prototype.checkNegativeValid=function(){if(!(this._input instanceof Rl||this._input instanceof p0||this._input instanceof Yh))return null;var e=this.getPolygonLines(this._input);if(this.checkMinimumDistance(e,this._result,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(e,this._result,this._maxValidDistance)};Xc.prototype.getErrorIndicator=function(){return this._errorIndicator};Xc.prototype.checkMinimumDistance=function(e,t,r){var i=new Vu(e,t,r);if(this._minDistanceFound=i.distance(),this._minDistanceFound0&&e>t&&(this._isValid=!1,this._errorMsg="Area of positive buffer is smaller than input",this._errorIndicator=this._result),this._distance<0&&e=2||this._distance>0)return null;this._result.isEmpty()||(this._isValid=!1,this._errorMsg="Result is non-empty",this._errorIndicator=this._result),this.report("ExpectedEmpty")};$u.prototype.report=function(e){if(!$u.VERBOSE)return null;zu.out.println("Check "+e+": "+(this._isValid?"passed":"FAILED"))};$u.prototype.getErrorMessage=function(){return this._errorMsg};$u.prototype.interfaces_=function(){return[]};$u.prototype.getClass=function(){return $u};$u.isValidMsg=function(e,t,r){var i=new $u(e,t,r);return i.isValid()?null:i.getErrorMessage()};$u.isValid=function(e,t,r){var i=new $u(e,t,r);return!!i.isValid()};Oce.VERBOSE.get=function(){return!1};Oce.MAX_ENV_DIFF_FRAC.get=function(){return .012};Object.defineProperties($u,Oce);var eg=function(){this._pts=null,this._data=null;var e=arguments[0],t=arguments[1];this._pts=e,this._data=t};eg.prototype.getCoordinates=function(){return this._pts};eg.prototype.size=function(){return this._pts.length};eg.prototype.getCoordinate=function(e){return this._pts[e]};eg.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])};eg.prototype.getSegmentOctant=function(e){return e===this._pts.length-1?-1:P2.octant(this.getCoordinate(e),this.getCoordinate(e+1))};eg.prototype.setData=function(e){this._data=e};eg.prototype.getData=function(){return this._data};eg.prototype.toString=function(){return Mv.toLineString(new el(this._pts))};eg.prototype.interfaces_=function(){return[T0]};eg.prototype.getClass=function(){return eg};var vu=function(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new Pr,this._intersectionCount=0,this._keepIntersections=!0;var e=arguments[0];this._li=e,this._interiorIntersection=null};vu.prototype.getInteriorIntersection=function(){return this._interiorIntersection};vu.prototype.setCheckEndSegmentsOnly=function(e){this._isCheckEndSegmentsOnly=e};vu.prototype.getIntersectionSegments=function(){return this._intSegments};vu.prototype.count=function(){return this._intersectionCount};vu.prototype.getIntersections=function(){return this._intersections};vu.prototype.setFindAllIntersections=function(e){this._findAllIntersections=e};vu.prototype.setKeepIntersections=function(e){this._keepIntersections=e};vu.prototype.processIntersections=function(e,t,r,i){if(!this._findAllIntersections&&this.hasIntersection()||e===r&&t===i)return null;if(this._isCheckEndSegmentsOnly){var a=this.isEndSegment(e,t)||this.isEndSegment(r,i);if(!a)return null}var o=e.getCoordinates()[t],s=e.getCoordinates()[t+1],l=r.getCoordinates()[i],u=r.getCoordinates()[i+1];this._li.computeIntersection(o,s,l,u),this._li.hasIntersection()&&this._li.isInteriorIntersection()&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=o,this._intSegments[1]=s,this._intSegments[2]=l,this._intSegments[3]=u,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)};vu.prototype.isEndSegment=function(e,t){return t===0||t>=e.size()-2};vu.prototype.hasIntersection=function(){return this._interiorIntersection!==null};vu.prototype.isDone=function(){return this._findAllIntersections?!1:this._interiorIntersection!==null};vu.prototype.interfaces_=function(){return[cw]};vu.prototype.getClass=function(){return vu};vu.createAllIntersectionsFinder=function(e){var t=new vu(e);return t.setFindAllIntersections(!0),t};vu.createAnyIntersectionFinder=function(e){return new vu(e)};vu.createIntersectionCounter=function(e){var t=new vu(e);return t.setFindAllIntersections(!0),t.setKeepIntersections(!1),t};var Dv=function(){this._li=new Ow,this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;var e=arguments[0];this._segStrings=e};Dv.prototype.execute=function(){if(this._segInt!==null)return null;this.checkInteriorIntersections()};Dv.prototype.getIntersections=function(){return this._segInt.getIntersections()};Dv.prototype.isValid=function(){return this.execute(),this._isValid};Dv.prototype.setFindAllIntersections=function(e){this._findAllIntersections=e};Dv.prototype.checkInteriorIntersections=function(){this._isValid=!0,this._segInt=new vu(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);var e=new Mce;if(e.setSegmentIntersector(this._segInt),e.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null};Dv.prototype.checkValid=function(){if(this.execute(),!this._isValid)throw new wm(this.getErrorMessage(),this._segInt.getInteriorIntersection())};Dv.prototype.getErrorMessage=function(){if(this._isValid)return"no intersections found";var e=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+Mv.toLineString(e[0],e[1])+" and "+Mv.toLineString(e[2],e[3])};Dv.prototype.interfaces_=function(){return[]};Dv.prototype.getClass=function(){return Dv};Dv.computeIntersections=function(e){var t=new Dv(e);return t.setFindAllIntersections(!0),t.isValid(),t.getIntersections()};var vw=function n(){this._nv=null;var e=arguments[0];this._nv=new Dv(n.toSegmentStrings(e))};vw.prototype.checkValid=function(){this._nv.checkValid()};vw.prototype.interfaces_=function(){return[]};vw.prototype.getClass=function(){return vw};vw.toSegmentStrings=function(e){for(var t=new Pr,r=e.iterator();r.hasNext();){var i=r.next();t.add(new eg(i.getCoordinates(),i))}return t};vw.checkValid=function(e){var t=new vw(e);t.checkValid()};var F2=function(e){this._mapOp=e};F2.prototype.map=function(e){for(var t=this,r=new Pr,i=0;i0&&i<4&&!this._preserveType?this._factory.createLineString(r):this._factory.createLinearRing(r)};_c.prototype.interfaces_=function(){return[]};_c.prototype.getClass=function(){return _c};var M0=function n(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new wn,this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof $s&&typeof arguments[1]=="number"){var e=arguments[0],t=arguments[1];n.call(this,e.getCoordinates(),t)}else if(arguments[0]instanceof Array&&typeof arguments[1]=="number"){var r=arguments[0],i=arguments[1];this._srcPts=r,this._isClosed=n.isClosed(r),this._snapTolerance=i}};M0.prototype.snapVertices=function(e,t){for(var r=this,i=this._isClosed?e.size()-1:e.size(),a=0;a=0&&e.add(s+1,new tt(o),!1)}};M0.prototype.findSegmentIndexToSnap=function(e,t){for(var r=this,i=ui.MAX_VALUE,a=-1,o=0;ot&&(t=i)}return t}else if(arguments.length===2){var a=arguments[0],o=arguments[1];return Math.min(tl.computeOverlaySnapTolerance(a),tl.computeOverlaySnapTolerance(o))}};tl.computeSizeBasedSnapTolerance=function(e){var t=e.getEnvelopeInternal(),r=Math.min(t.getHeight(),t.getWidth()),i=r*tl.SNAP_PRECISION_FACTOR;return i};tl.snapToSelf=function(e,t,r){var i=new tl(e);return i.snapToSelf(t,r)};XJe.SNAP_PRECISION_FACTOR.get=function(){return 1e-9};Object.defineProperties(tl,XJe);var YJe=function(n){function e(t,r,i){n.call(this),this._snapTolerance=t||null,this._snapPts=r||null,this._isSelfSnap=i!==void 0?i:!1}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.snapLine=function(r,i){var a=new M0(r,this._snapTolerance);return a.setAllowSnappingToSourceVertices(this._isSelfSnap),a.snapTo(i)},e.prototype.transformCoordinates=function(r,i){var a=r.toCoordinateArray(),o=this.snapLine(a,this._snapPts);return this._factory.getCoordinateSequenceFactory().create(o)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(_c),Bh=function(){this._isFirst=!0,this._commonMantissaBitsCount=53,this._commonBits=0,this._commonSignExp=null};Bh.prototype.getCommon=function(){return ui.longBitsToDouble(this._commonBits)};Bh.prototype.add=function(e){var t=ui.doubleToLongBits(e);if(this._isFirst)return this._commonBits=t,this._commonSignExp=Bh.signExpBits(this._commonBits),this._isFirst=!1,null;var r=Bh.signExpBits(t);if(r!==this._commonSignExp)return this._commonBits=0,null;this._commonMantissaBitsCount=Bh.numCommonMostSigMantissaBits(this._commonBits,t),this._commonBits=Bh.zeroLowerBits(this._commonBits,64-(12+this._commonMantissaBitsCount))};Bh.prototype.toString=function(){if(arguments.length===1){var e=arguments[0],t=ui.longBitsToDouble(e),r=ui.toBinaryString(e),i="0000000000000000000000000000000000000000000000000000000000000000"+r,a=i.substring(i.length-64),o=a.substring(0,1)+" "+a.substring(1,12)+"(exp) "+a.substring(12)+" [ "+t+" ]";return o}};Bh.prototype.interfaces_=function(){return[]};Bh.prototype.getClass=function(){return Bh};Bh.getBit=function(e,t){var r=1<>52};Bh.zeroLowerBits=function(e,t){var r=(1<=0;i--){if(Bh.getBit(e,i)!==Bh.getBit(t,i))return r;r++}return 52};var M_=function(){this._commonCoord=null,this._ccFilter=new G2},Rce={CommonCoordinateFilter:{configurable:!0},Translater:{configurable:!0}};M_.prototype.addCommonBits=function(e){var t=new I_(this._commonCoord);e.apply(t),e.geometryChanged()};M_.prototype.removeCommonBits=function(e){if(this._commonCoord.x===0&&this._commonCoord.y===0)return e;var t=new tt(this._commonCoord);t.x=-t.x,t.y=-t.y;var r=new I_(t);return e.apply(r),e.geometryChanged(),e};M_.prototype.getCommonCoordinate=function(){return this._commonCoord};M_.prototype.add=function(e){e.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()};M_.prototype.interfaces_=function(){return[]};M_.prototype.getClass=function(){return M_};Rce.CommonCoordinateFilter.get=function(){return G2};Rce.Translater.get=function(){return I_};Object.defineProperties(M_,Rce);var G2=function(){this._commonBitsX=new Bh,this._commonBitsY=new Bh};G2.prototype.filter=function(e){this._commonBitsX.add(e.x),this._commonBitsY.add(e.y)};G2.prototype.getCommonCoordinate=function(){return new tt(this._commonBitsX.getCommon(),this._commonBitsY.getCommon())};G2.prototype.interfaces_=function(){return[w0]};G2.prototype.getClass=function(){return G2};var I_=function(){this.trans=null;var e=arguments[0];this.trans=e};I_.prototype.filter=function(e,t){var r=e.getOrdinate(t,0)+this.trans.x,i=e.getOrdinate(t,1)+this.trans.y;e.setOrdinate(t,0,r),e.setOrdinate(t,1,i)};I_.prototype.isDone=function(){return!1};I_.prototype.isGeometryChanged=function(){return!0};I_.prototype.interfaces_=function(){return[Iv]};I_.prototype.getClass=function(){return I_};var pu=function(e,t){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null,this._geom[0]=e,this._geom[1]=t,this.computeSnapTolerance()};pu.prototype.selfSnap=function(e){var t=new tl(e),r=t.snapTo(e,this._snapTolerance);return r};pu.prototype.removeCommonBits=function(e){this._cbr=new M_,this._cbr.add(e[0]),this._cbr.add(e[1]);var t=new Array(2).fill(null);return t[0]=this._cbr.removeCommonBits(e[0].copy()),t[1]=this._cbr.removeCommonBits(e[1].copy()),t};pu.prototype.prepareResult=function(e){return this._cbr.addCommonBits(e),e};pu.prototype.getResultGeometry=function(e){var t=this.snap(this._geom),r=pi.overlayOp(t[0],t[1],e);return this.prepareResult(r)};pu.prototype.checkValid=function(e){e.isValid()||zu.out.println("Snapped geometry is invalid")};pu.prototype.computeSnapTolerance=function(){this._snapTolerance=tl.computeOverlaySnapTolerance(this._geom[0],this._geom[1])};pu.prototype.snap=function(e){var t=this.removeCommonBits(e),r=tl.snap(t[0],t[1],this._snapTolerance);return r};pu.prototype.interfaces_=function(){return[]};pu.prototype.getClass=function(){return pu};pu.overlayOp=function(e,t,r){var i=new pu(e,t);return i.getResultGeometry(r)};pu.union=function(e,t){return pu.overlayOp(e,t,pi.UNION)};pu.intersection=function(e,t){return pu.overlayOp(e,t,pi.INTERSECTION)};pu.symDifference=function(e,t){return pu.overlayOp(e,t,pi.SYMDIFFERENCE)};pu.difference=function(e,t){return pu.overlayOp(e,t,pi.DIFFERENCE)};var Kh=function(e,t){this._geom=new Array(2).fill(null),this._geom[0]=e,this._geom[1]=t};Kh.prototype.getResultGeometry=function(e){var t=null,r=!1,i=null;try{t=pi.overlayOp(this._geom[0],this._geom[1],e);var a=!0;a&&(r=!0)}catch(o){if(o instanceof xm)i=o;else throw o}finally{}if(!r)try{t=pu.overlayOp(this._geom[0],this._geom[1],e)}catch(o){throw o instanceof xm?i:o}finally{}return t};Kh.prototype.interfaces_=function(){return[]};Kh.prototype.getClass=function(){return Kh};Kh.overlayOp=function(e,t,r){var i=new Kh(e,t);return i.getResultGeometry(r)};Kh.union=function(e,t){return Kh.overlayOp(e,t,pi.UNION)};Kh.intersection=function(e,t){return Kh.overlayOp(e,t,pi.INTERSECTION)};Kh.symDifference=function(e,t){return Kh.overlayOp(e,t,pi.SYMDIFFERENCE)};Kh.difference=function(e,t){return Kh.overlayOp(e,t,pi.DIFFERENCE)};var $N=function(){this.mce=null,this.chainIndex=null;var e=arguments[0],t=arguments[1];this.mce=e,this.chainIndex=t};$N.prototype.computeIntersections=function(e,t){this.mce.computeIntersectsForChain(this.chainIndex,e.mce,e.chainIndex,t)};$N.prototype.interfaces_=function(){return[]};$N.prototype.getClass=function(){return $N};var tf=function n(){if(this._label=null,this._xValue=null,this._eventType=null,this._insertEvent=null,this._deleteEventIndex=null,this._obj=null,arguments.length===2){var e=arguments[0],t=arguments[1];this._eventType=n.DELETE,this._xValue=e,this._insertEvent=t}else if(arguments.length===3){var r=arguments[0],i=arguments[1],a=arguments[2];this._eventType=n.INSERT,this._label=r,this._xValue=i,this._obj=a}},Dce={INSERT:{configurable:!0},DELETE:{configurable:!0}};tf.prototype.isDelete=function(){return this._eventType===tf.DELETE};tf.prototype.setDeleteEventIndex=function(e){this._deleteEventIndex=e};tf.prototype.getObject=function(){return this._obj};tf.prototype.compareTo=function(e){var t=e;return this._xValuet._xValue?1:this._eventTypet._eventType?1:0};tf.prototype.getInsertEvent=function(){return this._insertEvent};tf.prototype.isInsert=function(){return this._eventType===tf.INSERT};tf.prototype.isSameLabel=function(e){return this._label===null?!1:this._label===e._label};tf.prototype.getDeleteEventIndex=function(){return this._deleteEventIndex};tf.prototype.interfaces_=function(){return[$d]};tf.prototype.getClass=function(){return tf};Dce.INSERT.get=function(){return 1};Dce.DELETE.get=function(){return 2};Object.defineProperties(tf,Dce);var H7=function(){};H7.prototype.interfaces_=function(){return[]};H7.prototype.getClass=function(){return H7};var Wu=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._properIntersectionPoint=null,this._li=null,this._includeProper=null,this._recordIsolated=null,this._isSelfIntersection=null,this._numIntersections=0,this.numTests=0,this._bdyNodes=null,this._isDone=!1,this._isDoneWhenProperInt=!1;var e=arguments[0],t=arguments[1],r=arguments[2];this._li=e,this._includeProper=t,this._recordIsolated=r};Wu.prototype.isTrivialIntersection=function(e,t,r,i){if(e===r&&this._li.getIntersectionNum()===1){if(Wu.isAdjacentSegments(t,i))return!0;if(e.isClosed()){var a=e.getNumPoints()-1;if(t===0&&i===a||i===0&&t===a)return!0}}return!1};Wu.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint};Wu.prototype.setIsDoneIfProperInt=function(e){this._isDoneWhenProperInt=e};Wu.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior};Wu.prototype.isBoundaryPointInternal=function(e,t){for(var r=t.iterator();r.hasNext();){var i=r.next(),a=i.getCoordinate();if(e.isIntersection(a))return!0}return!1};Wu.prototype.hasProperIntersection=function(){return this._hasProper};Wu.prototype.hasIntersection=function(){return this._hasIntersection};Wu.prototype.isDone=function(){return this._isDone};Wu.prototype.isBoundaryPoint=function(e,t){return t===null?!1:!!(this.isBoundaryPointInternal(e,t[0])||this.isBoundaryPointInternal(e,t[1]))};Wu.prototype.setBoundaryNodes=function(e,t){this._bdyNodes=new Array(2).fill(null),this._bdyNodes[0]=e,this._bdyNodes[1]=t};Wu.prototype.addIntersections=function(e,t,r,i){if(e===r&&t===i)return null;this.numTests++;var a=e.getCoordinates()[t],o=e.getCoordinates()[t+1],s=r.getCoordinates()[i],l=r.getCoordinates()[i+1];this._li.computeIntersection(a,o,s,l),this._li.hasIntersection()&&(this._recordIsolated&&(e.setIsolated(!1),r.setIsolated(!1)),this._numIntersections++,this.isTrivialIntersection(e,t,r,i)||(this._hasIntersection=!0,(this._includeProper||!this._li.isProper())&&(e.addIntersections(this._li,t,0),r.addIntersections(this._li,i,1)),this._li.isProper()&&(this._properIntersectionPoint=this._li.getIntersection(0).copy(),this._hasProper=!0,this._isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this._li,this._bdyNodes)||(this._hasProperInterior=!0))))};Wu.prototype.interfaces_=function(){return[]};Wu.prototype.getClass=function(){return Wu};Wu.isAdjacentSegments=function(e,t){return Math.abs(e-t)===1};var Wzr=function(n){function e(){n.call(this),this.events=new Pr,this.nOverlaps=null}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.prepareEvents=function(){var r=this;Pv.sort(this.events);for(var i=0;it||this._maxo?1:0};WN.prototype.interfaces_=function(){return[QM]};WN.prototype.getClass=function(){return WN};var Hzr=function(n){function e(){n.call(this),this._item=null;var t=arguments[0],r=arguments[1],i=arguments[2];this._min=t,this._max=r,this._item=i}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.query=function(r,i,a){if(!this.intersects(r,i))return null;a.visitItem(this._item)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(I0),jzr=function(n){function e(){n.call(this),this._node1=null,this._node2=null;var t=arguments[0],r=arguments[1];this._node1=t,this._node2=r,this.buildExtent(this._node1,this._node2)}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.buildExtent=function(r,i){this._min=Math.min(r._min,i._min),this._max=Math.max(r._max,i._max)},e.prototype.query=function(r,i,a){if(!this.intersects(r,i))return null;this._node1!==null&&this._node1.query(r,i,a),this._node2!==null&&this._node2.query(r,i,a)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(I0),L0=function(){this._leaves=new Pr,this._root=null,this._level=0};L0.prototype.buildTree=function(){var e=this;Pv.sort(this._leaves,new I0.NodeComparator);for(var t=this._leaves,r=null,i=new Pr;;){if(e.buildLevel(t,i),i.size()===1)return i.get(0);r=t,t=i,i=r}};L0.prototype.insert=function(e,t,r){if(this._root!==null)throw new Error("Index cannot be added to once it has been queried");this._leaves.add(new Hzr(e,t,r))};L0.prototype.query=function(e,t,r){this.init(),this._root.query(e,t,r)};L0.prototype.buildRoot=function(){if(this._root!==null)return null;this._root=this.buildTree()};L0.prototype.printNode=function(e){zu.out.println(Mv.toLineString(new tt(e._min,this._level),new tt(e._max,this._level)))};L0.prototype.init=function(){if(this._root!==null)return null;this.buildRoot()};L0.prototype.buildLevel=function(e,t){this._level++,t.clear();for(var r=0;r=2,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,i[0]),this.insertBoundaryPoint(this._argIndex,i[i.length-1])},e.prototype.getInvalidPoint=function(){return this._invalidPoint},e.prototype.getBoundaryPoints=function(){for(var r=this.getBoundaryNodes(),i=new Array(r.size()).fill(null),a=0,o=r.iterator();o.hasNext();){var s=o.next();i[a++]=s.getCoordinate().copy()}return i},e.prototype.getBoundaryNodes=function(){return this._boundaryNodes===null&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes},e.prototype.addSelfIntersectionNode=function(r,i,a){if(this.isBoundaryNode(r,i))return null;a===dt.BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(r,i):this.insertPoint(r,i,a)},e.prototype.addPolygonRing=function(r,i,a){if(r.isEmpty())return null;var o=Bi.removeRepeatedPoints(r.getCoordinates());if(o.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=o[0],null;var s=i,l=a;Gr.isCCW(o)&&(s=a,l=i);var u=new W7(o,new fo(this._argIndex,dt.BOUNDARY,s,l));this._lineEdgeMap.put(r,u),this.insertEdge(u),this.insertPoint(this._argIndex,o[0],dt.BOUNDARY)},e.prototype.insertPoint=function(r,i,a){var o=this._nodes.addNode(i),s=o.getLabel();s===null?o._label=new fo(r,a):s.setLocation(r,a)},e.prototype.createEdgeSetIntersector=function(){return new Wzr},e.prototype.addSelfIntersectionNodes=function(r){for(var i=this,a=this._edges.iterator();a.hasNext();)for(var o=a.next(),s=o.getLabel().getLocation(r),l=o.eiList.iterator();l.hasNext();){var u=l.next();i.addSelfIntersectionNode(r,u.coord,s)}},e.prototype.add=function(){if(arguments.length===1){var r=arguments[0];if(r.isEmpty())return null;if(r instanceof p0&&(this._useBoundaryDeterminationRule=!1),r instanceof Rl)this.addPolygon(r);else if(r instanceof $s)this.addLineString(r);else if(r instanceof Jc)this.addPoint(r);else if(r instanceof oI)this.addCollection(r);else if(r instanceof lw)this.addCollection(r);else if(r instanceof p0)this.addCollection(r);else if(r instanceof Yh)this.addCollection(r);else throw new Error(r.getClass().getName())}else return n.prototype.add.apply(this,arguments)},e.prototype.addCollection=function(r){for(var i=this,a=0;a50?(this._areaPtLocator===null&&(this._areaPtLocator=new dI(this._parentGeom)),this._areaPtLocator.locate(r)):this._ptLocator.locate(r,this._parentGeom)},e.prototype.findEdge=function(){if(arguments.length===1){var r=arguments[0];return this._lineEdgeMap.get(r)}else return n.prototype.findEdge.apply(this,arguments)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.determineBoundary=function(r,i){return r.isInBoundary(i)?dt.BOUNDARY:dt.INTERIOR},e}(Ps),pI=function(){if(this._li=new Ow,this._resultPrecisionModel=null,this._arg=null,arguments.length===1){var e=arguments[0];this.setComputationPrecision(e.getPrecisionModel()),this._arg=new Array(1).fill(null),this._arg[0]=new jP(0,e)}else if(arguments.length===2){var t=arguments[0],r=arguments[1],i=Od.OGC_SFS_BOUNDARY_RULE;t.getPrecisionModel().compareTo(r.getPrecisionModel())>=0?this.setComputationPrecision(t.getPrecisionModel()):this.setComputationPrecision(r.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new jP(0,t,i),this._arg[1]=new jP(1,r,i)}else if(arguments.length===3){var a=arguments[0],o=arguments[1],s=arguments[2];a.getPrecisionModel().compareTo(o.getPrecisionModel())>=0?this.setComputationPrecision(a.getPrecisionModel()):this.setComputationPrecision(o.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new jP(0,a,s),this._arg[1]=new jP(1,o,s)}};pI.prototype.getArgGeometry=function(e){return this._arg[e].getGeometry()};pI.prototype.setComputationPrecision=function(e){this._resultPrecisionModel=e,this._li.setPrecisionModel(this._resultPrecisionModel)};pI.prototype.interfaces_=function(){return[]};pI.prototype.getClass=function(){return pI};var LS=function(){};LS.prototype.interfaces_=function(){return[]};LS.prototype.getClass=function(){return LS};LS.map=function(){if(arguments[0]instanceof Gn&&zn(arguments[1],LS.MapOp)){for(var e=arguments[0],t=arguments[1],r=new Pr,i=0;i=e.size()?null:e.get(t)};fl.union=function(e){var t=new fl(e);return t.union()};KJe.STRTREE_NODE_CAPACITY.get=function(){return 4};Object.defineProperties(fl,KJe);var j7=function(){};j7.prototype.interfaces_=function(){return[]};j7.prototype.getClass=function(){return j7};j7.union=function(e,t){if(e.isEmpty()||t.isEmpty()){if(e.isEmpty()&&t.isEmpty())return pi.createEmptyResult(pi.UNION,e,t,e.getFactory());if(e.isEmpty())return t.copy();if(t.isEmpty())return e.copy()}return e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(t),Kh.overlayOp(e,t,pi.UNION)};function Rw(){return new X7}function X7(){this.reset()}X7.prototype={constructor:X7,reset:function(){this.s=this.t=0},add:function(n){PLe(V6,n,this.t),PLe(this,V6.s,this.s),this.s?this.t+=V6.t:this.s=V6.t},valueOf:function(){return this.s}};var V6=new X7;function PLe(n,e,t){var r=n.s=e+t,i=r-e,a=r-i;n.t=e-a+(t-i)}var Us=1e-6,Oo=Math.PI,Yy=Oo/2,OLe=Oo/4,Tm=Oo*2,Ex=180/Oo,vp=Oo/180,$h=Math.abs,Xzr=Math.atan,yI=Math.atan2,Ml=Math.cos,Il=Math.sin,_L=Math.sqrt;function JJe(n){return n>1?0:n<-1?Oo:Math.acos(n)}function z2(n){return n>1?Yy:n<-1?-Yy:Math.asin(n)}function kO(){}function Y7(n,e){n&&DLe.hasOwnProperty(n.type)&&DLe[n.type](n,e)}var RLe={Feature:function(n,e){Y7(n.geometry,e)},FeatureCollection:function(n,e){for(var t=n.features,r=-1,i=t.length;++rOo?n-Tm:n<-Oo?n+Tm:n,e]}jre.invert=jre;function qzr(n,e,t){return(n%=Tm)?e||t?QJe(FLe(n),BLe(e,t)):FLe(n):e||t?BLe(e,t):jre}function kLe(n){return function(e,t){return e+=n,[e>Oo?e-Tm:e<-Oo?e+Tm:e,t]}}function FLe(n){var e=kLe(n);return e.invert=kLe(-n),e}function BLe(n,e){var t=Ml(n),r=Il(n),i=Ml(e),a=Il(e);function o(s,l){var u=Ml(l),h=Ml(s)*u,c=Il(s)*u,f=Il(l),d=f*t+h*r;return[yI(c*i-d*a,h*t-f*r),z2(d*i+c*a)]}return o.invert=function(s,l){var u=Ml(l),h=Ml(s)*u,c=Il(s)*u,f=Il(l),d=f*i-c*a;return[yI(c*i+f*a,h*t+d*r),z2(d*t-h*r)]},o}function Zzr(n,e,t,r,i,a){if(!!t){var o=Ml(e),s=Il(e),l=r*t;i==null?(i=e+r*Tm,a=e-l/2):(i=GLe(o,i),a=GLe(o,a),(r>0?ia)&&(i+=r*Tm));for(var u,h=i;r>0?h>a:h1&&n.push(n.pop().concat(n.shift()))},result:function(){var t=n;return n=[],e=null,t}}}function Kzr(n,e,t,r,i,a){var o=n[0],s=n[1],l=e[0],u=e[1],h=0,c=1,f=l-o,d=u-s,v;if(v=t-o,!(!f&&v>0)){if(v/=f,f<0){if(v0){if(v>c)return;v>h&&(h=v)}if(v=i-o,!(!f&&v<0)){if(v/=f,f<0){if(v>c)return;v>h&&(h=v)}else if(f>0){if(v0)){if(v/=d,d<0){if(v0){if(v>c)return;v>h&&(h=v)}if(v=a-s,!(!d&&v<0)){if(v/=d,d<0){if(v>c)return;v>h&&(h=v)}else if(d>0){if(v0&&(n[0]=o+h*f,n[1]=s+h*d),c<1&&(e[0]=o+c*f,e[1]=s+c*d),!0}}}}}function A8(n,e){return $h(n[0]-e[0])=0;--s)i.point((c=h[s])[0],c[1]);else r(f.x,f.p.x,-1,i);f=f.p}f=f.o,h=f.z,d=!d}while(!f.v);i.lineEnd()}}}function zLe(n){if(!!(e=n.length)){for(var e,t=0,r=n[0],i;++te?1:n>=e?0:NaN}function Jzr(n){return n.length===1&&(n=Qzr(n)),{left:function(e,t,r,i){for(r==null&&(r=0),i==null&&(i=e.length);r>>1;n(e[a],t)<0?r=a+1:i=a}return r},right:function(e,t,r,i){for(r==null&&(r=0),i==null&&(i=e.length);r>>1;n(e[a],t)>0?i=a:r=a+1}return r}}}function Qzr(n){return function(e,t){return rQe(n(e),t)}}Jzr(rQe);function nQe(n){for(var e=n.length,t,r=-1,i=0,a,o;++r=0;)for(o=n[e],t=o.length;--t>=0;)a[--i]=o[t];return a}var FO=1e9,j6=-FO;function eUr(n,e,t,r){function i(u,h){return n<=u&&u<=t&&e<=h&&h<=r}function a(u,h,c,f){var d=0,v=0;if(u==null||(d=o(u,c))!==(v=o(h,c))||l(u,h)<0^c>0)do f.point(d===0||d===3?n:t,d>1?r:e);while((d=(d+c+4)%4)!==v);else f.point(h[0],h[1])}function o(u,h){return $h(u[0]-n)0?0:3:$h(u[0]-t)0?2:1:$h(u[1]-e)0?1:0:h>0?3:2}function s(u,h){return l(u.x,h.x)}function l(u,h){var c=o(u,1),f=o(h,1);return c!==f?c-f:c===0?h[1]-u[1]:c===1?u[0]-h[0]:c===2?u[1]-h[1]:h[0]-u[0]}return function(u){var h=u,c=eQe(),f,d,v,p,g,m,y,_,x,S,w,b={point:E,lineStart:M,lineEnd:I,polygonStart:C,polygonEnd:A};function E(k,D){i(k,D)&&h.point(k,D)}function T(){for(var k=0,D=0,G=d.length;Dr&&(H-Y)*(r-le)>(Q-le)*(n-Y)&&++k:Q<=r&&(H-Y)*(r-le)<(Q-le)*(n-Y)&&--k;return k}function C(){h=c,f=[],d=[],w=!0}function A(){var k=T(),D=w&&k,G=(f=nQe(f)).length;(D||G)&&(u.polygonStart(),D&&(u.lineStart(),a(null,null,1,u),u.lineEnd()),G&&tQe(f,s,k,a,u),u.polygonEnd()),h=u,f=d=v=null}function M(){b.point=R,d&&d.push(v=[]),S=!0,x=!1,y=_=NaN}function I(){f&&(R(p,g),m&&x&&c.rejoin(),f.push(c.result())),b.point=E,x&&h.lineEnd()}function R(k,D){var G=i(k,D);if(d&&v.push([k,D]),S)p=k,g=D,m=G,S=!1,G&&(h.lineStart(),h.point(k,D));else if(G&&x)h.point(k,D);else{var V=[y=Math.max(j6,Math.min(FO,y)),_=Math.max(j6,Math.min(FO,_))],z=[k=Math.max(j6,Math.min(FO,k)),D=Math.max(j6,Math.min(FO,D))];Kzr(V,z,n,e,t,r)?(x||(h.lineStart(),h.point(V[0],V[1])),h.point(z[0],z[1]),G||h.lineEnd(),w=!1):G&&(h.lineStart(),h.point(k,D),w=!1)}y=k,_=D,x=G}return b}}var IZ=Rw();function tUr(n,e){var t=e[0],r=e[1],i=[Il(t),-Ml(t),0],a=0,o=0;IZ.reset();for(var s=0,l=n.length;s=0?1:-1,E=b*w,T=E>Oo,C=v*x;if(IZ.add(yI(C*b*Il(E),p*S+C*Ml(E))),a+=T?w+b*Tm:w,T^f>=t^y>=t){var A=q7(mI(c),mI(m));Hre(A);var M=q7(i,A);Hre(M);var I=(T^w>=0?-1:1)*z2(M[2]);(r>I||r===I&&(A[0]||A[1]))&&(o+=T^w>=0?1:-1)}}return(a<-Us||aHN&&(HN=n),eK7&&(K7=e)}Rw();function iQe(n,e,t,r){return function(i,a){var o=e(a),s=i.invert(r[0],r[1]),l=eQe(),u=e(l),h=!1,c,f,d,v={point:p,lineStart:m,lineEnd:y,polygonStart:function(){v.point=_,v.lineStart=x,v.lineEnd=S,f=[],c=[]},polygonEnd:function(){v.point=p,v.lineStart=m,v.lineEnd=y,f=nQe(f);var w=tUr(c,s);f.length?(h||(a.polygonStart(),h=!0),tQe(f,iUr,w,t,a)):w&&(h||(a.polygonStart(),h=!0),a.lineStart(),t(null,null,1,a),a.lineEnd()),h&&(a.polygonEnd(),h=!1),f=c=null},sphere:function(){a.polygonStart(),a.lineStart(),t(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function p(w,b){var E=i(w,b);n(w=E[0],b=E[1])&&a.point(w,b)}function g(w,b){var E=i(w,b);o.point(E[0],E[1])}function m(){v.point=g,o.lineStart()}function y(){v.point=p,o.lineEnd()}function _(w,b){d.push([w,b]);var E=i(w,b);u.point(E[0],E[1])}function x(){u.lineStart(),d=[]}function S(){_(d[0][0],d[0][1]),u.lineEnd();var w=u.clean(),b=l.result(),E,T=b.length,C,A,M;if(d.pop(),c.push(d),d=null,!!T){if(w&1){if(A=b[0],(C=A.length-1)>0){for(h||(a.polygonStart(),h=!0),a.lineStart(),E=0;E1&&w&2&&b.push(b.pop().concat(b.shift())),f.push(b.filter(nUr))}}return v}}function nUr(n){return n.length>1}function iUr(n,e){return((n=n.x)[0]<0?n[1]-Yy-Us:Yy-n[1])-((e=e.x)[0]<0?e[1]-Yy-Us:Yy-e[1])}const $Le=iQe(function(){return!0},aUr,sUr,[-Oo,-Yy]);function aUr(n){var e=NaN,t=NaN,r=NaN,i;return{lineStart:function(){n.lineStart(),i=1},point:function(a,o){var s=a>0?Oo:-Oo,l=$h(a-e);$h(l-Oo)0?Yy:-Yy),n.point(r,t),n.lineEnd(),n.lineStart(),n.point(s,t),n.point(a,t),i=0):r!==s&&l>=Oo&&($h(e-r)Us?Xzr((Il(e)*(a=Ml(r))*Il(t)-Il(r)*(i=Ml(e))*Il(n))/(i*a*o)):(e+r)/2}function sUr(n,e,t,r){var i;if(n==null)i=t*Yy,r.point(-Oo,i),r.point(0,i),r.point(Oo,i),r.point(Oo,0),r.point(Oo,-i),r.point(0,-i),r.point(-Oo,-i),r.point(-Oo,0),r.point(-Oo,i);else if($h(n[0]-e[0])>Us){var a=n[0]0,i=$h(t)>Us;function a(h,c,f,d){Zzr(d,n,e,f,h,c)}function o(h,c){return Ml(h)*Ml(c)>t}function s(h){var c,f,d,v,p;return{lineStart:function(){v=d=!1,p=1},point:function(g,m){var y=[g,m],_,x=o(g,m),S=r?x?0:u(g,m):x?u(g+(g<0?Oo:-Oo),m):0;if(!c&&(v=d=x)&&h.lineStart(),x!==d&&(_=l(c,y),(!_||A8(c,_)||A8(y,_))&&(y[0]+=Us,y[1]+=Us,x=o(y[0],y[1]))),x!==d)p=0,x?(h.lineStart(),_=l(y,c),h.point(_[0],_[1])):(_=l(c,y),h.point(_[0],_[1]),h.lineEnd()),c=_;else if(i&&c&&r^x){var w;!(S&f)&&(w=l(y,c,!0))&&(p=0,r?(h.lineStart(),h.point(w[0][0],w[0][1]),h.point(w[1][0],w[1][1]),h.lineEnd()):(h.point(w[1][0],w[1][1]),h.lineEnd(),h.lineStart(),h.point(w[0][0],w[0][1])))}x&&(!c||!A8(c,y))&&h.point(y[0],y[1]),c=y,d=x,f=S},lineEnd:function(){d&&h.lineEnd(),c=null},clean:function(){return p|(v&&d)<<1}}}function l(h,c,f){var d=mI(h),v=mI(c),p=[1,0,0],g=q7(d,v),m=$6(g,g),y=g[0],_=m-y*y;if(!_)return!f&&h;var x=t*m/_,S=-t*y/_,w=q7(p,g),b=W6(p,x),E=W6(g,S);MZ(b,E);var T=w,C=$6(b,T),A=$6(T,T),M=C*C-A*($6(b,b)-1);if(!(M<0)){var I=_L(M),R=W6(T,(-C-I)/A);if(MZ(R,b),R=Wre(R),!f)return R;var k=h[0],D=c[0],G=h[1],V=c[1],z;D0^R[1]<($h(R[0]-k)Oo^(k<=R[0]&&R[0]<=D)){var le=W6(T,(-C+I)/A);return MZ(le,b),[R,Wre(le)]}}}function u(h,c){var f=r?n:Oo-n,d=0;return h<-f?d|=1:h>f&&(d|=2),c<-f?d|=4:c>f&&(d|=8),d}return iQe(o,s,a,r?[0,-n]:[-Oo,n-Oo])}function aQe(n){return function(e){var t=new Xre;for(var r in n)t[r]=n[r];return t.stream=e,t}}function Xre(){}Xre.prototype={constructor:Xre,point:function(n,e){this.stream.point(n,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function oQe(n,e,t){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=n.clipExtent&&n.clipExtent();n.scale(150).translate([0,0]),a!=null&&n.clipExtent(null),Yzr(t,n.stream(VLe));var o=VLe.result(),s=Math.min(r/(o[1][0]-o[0][0]),i/(o[1][1]-o[0][1])),l=+e[0][0]+(r-s*(o[1][0]+o[0][0]))/2,u=+e[0][1]+(i-s*(o[1][1]+o[0][1]))/2;return a!=null&&n.clipExtent(a),n.scale(s*150).translate([l,u])}function uUr(n,e,t){return oQe(n,[[0,0],e],t)}var WLe=16,hUr=Ml(30*vp);function HLe(n,e){return+e?fUr(n,e):cUr(n)}function cUr(n){return aQe({point:function(e,t){e=n(e,t),this.stream.point(e[0],e[1])}})}function fUr(n,e){function t(r,i,a,o,s,l,u,h,c,f,d,v,p,g){var m=u-r,y=h-i,_=m*m+y*y;if(_>4*e&&p--){var x=o+f,S=s+d,w=l+v,b=_L(x*x+S*S+w*w),E=z2(w/=b),T=$h($h(w)-1)e||$h((m*I+y*R)/_-.5)>.3||o*f+s*d+l*v2?R[2]%360*vp:0,M()):[u*Ex,h*Ex,c*Ex]},T.precision=function(R){return arguments.length?(w=HLe(A,S=R*R),I()):_L(S)},T.fitExtent=function(R,k){return oQe(T,R,k)},T.fitSize=function(R,k){return uUr(T,R,k)};function M(){d=QJe(f=qzr(u,h,c),e);var R=e(s,l);return a=r-R[0]*t,o=i+R[1]*t,I()}function I(){return b=E=null,T}return function(){return e=n.apply(this,arguments),T.invert=e.invert&&C,M()}}function sQe(n){return function(e,t){var r=Ml(e),i=Ml(t),a=n(r*i);return[a*i*Il(e),a*Il(t)]}}function lQe(n){return function(e,t){var r=_L(e*e+t*t),i=n(r),a=Il(i),o=Ml(i);return[yI(e*a,r*o),z2(r&&t*a/r)]}}var gUr=sQe(function(n){return _L(2/(1+n))});gUr.invert=lQe(function(n){return 2*z2(n/2)});var uQe=sQe(function(n){return(n=JJe(n))&&n/Il(n)});uQe.invert=lQe(function(n){return n});function yUr(){return vUr(uQe).scale(79.4188).clipAngle(180-.001)}function jLe(n,e){return[n,e]}jLe.invert=jLe;function mUr(n,e,t){t=t||{};var r=t.units||"kilometers",i=t.steps||8;if(!n)throw new Error("geojson is required");if(typeof t!="object")throw new Error("options must be an object");if(typeof i!="number")throw new Error("steps must be an number");if(e===void 0)throw new Error("radius is required");if(i<=0)throw new Error("steps must be greater than 0");var a=[];switch(n.type){case"GeometryCollection":return Pd(n,function(o){var s=M8(o,e,r,i);s&&a.push(s)}),Zn(a);case"FeatureCollection":return uo(n,function(o){var s=M8(o,e,r,i);s&&uo(s,function(l){l&&a.push(l)})}),Zn(a)}return M8(n,e,r,i)}function M8(n,e,t,r){var i=n.properties||{},a=n.type==="Feature"?n.geometry:n;if(a.type==="GeometryCollection"){var o=[];return Pd(n,function(p){var g=M8(p,e,t,r);g&&o.push(g)}),Zn(o)}var s=_Ur(a),l={type:a.type,coordinates:cQe(a.coordinates,s)},u=new Ace,h=u.read(l),c=qM(S2(e,t),"meters"),f=Ou.bufferOp(h,c,r),d=new DJe;if(f=d.write(f),!hQe(f.coordinates)){var v={type:f.type,coordinates:fQe(f.coordinates,s)};return fu(v,i)}}function hQe(n){return Array.isArray(n[0])?hQe(n[0]):isNaN(n[0])}function cQe(n,e){return typeof n[0]!="object"?e(n):n.map(function(t){return cQe(t,e)})}function fQe(n,e){return typeof n[0]!="object"?e.invert(n):n.map(function(t){return fQe(t,e)})}function _Ur(n){var e=y$(n).geometry.coordinates,t=[-e[0],-e[1]];return yUr().rotate(t).scale(Au)}function xUr(n,e,t){t===void 0&&(t={});var r=ls(n),i=ls(e),a=t_.union(r.coordinates,i.coordinates);return a.length===0?null:a.length===1?Qi(a[0],t.properties):Ld(a,t.properties)}function jN(n,e,t){t===void 0&&(t={});var r=ls(n),i=ls(e),a=t_.intersection(r.coordinates,i.coordinates);return a.length===0?null:a.length===1?Qi(a[0],t.properties):Ld(a,t.properties)}function SUr(n,e){if(e=e||{},!Io(e))throw new Error("options is invalid");var t=e.propertyName;Y_(n,"Polygon","dissolve");var r=[];if(e.propertyName){var i={};uo(n,function(l){Object.prototype.hasOwnProperty.call(i,l.properties[t])||(i[l.properties[t]]=[]),i[l.properties[t]].push(l)});for(var a=Object.keys(i),o=0;og/2;C&&(T-=g/4);for(var A=[],M=[],I=0;I<6;I++){var R=2*Math.PI/6*I;A.push(Math.cos(R)),M.push(Math.sin(R))}for(var k=[],D=0;D<=w;D++)for(var G=0;G<=E;G++){var V=D%2===1;if(!(G===0&&V)&&!(G===0&&C)){var z=D*_+i-b,j=G*x+a+T;if(V&&(j-=g/2),t.triangles===!0)bUr([z,j],c/2,d/2,JSON.parse(r),A,M).forEach(function(Y){t.mask?jN(t.mask,Y)&&k.push(Y):k.push(Y)});else{var Z=wUr([z,j],c/2,d/2,JSON.parse(r),A,M);t.mask?jN(t.mask,Z)&&k.push(Z):k.push(Z)}}}return Zn(k)}function wUr(n,e,t,r,i,a){for(var o=[],s=0;s<6;s++){var l=n[0]+e*i[s],u=n[1]+t*a[s];o.push([l,u])}return o.push(o[0].slice()),Qi([o],r)}function bUr(n,e,t,r,i,a){for(var o=[],s=0;s<6;s++){var l=[];l.push(n),l.push([n[0]+e*i[s],n[1]+t*a[s]]),l.push([n[0]+e*i[(s+1)%6],n[1]+t*a[(s+1)%6]]),l.push(n),o.push(Qi([l],r))}return o}function EUr(n,e){var t=CUr(e),r=null;return n.type==="FeatureCollection"?r=TUr(n):r=vQe(t_.union(n.geometry.coordinates)),r.geometry.coordinates.forEach(function(i){t.geometry.coordinates.push(i[0])}),t}function TUr(n){var e=n.features.length===2?t_.union(n.features[0].geometry.coordinates,n.features[1].geometry.coordinates):t_.union.apply(t_,n.features.map(function(t){return t.geometry.coordinates}));return vQe(e)}function vQe(n){return Ld(n)}function CUr(n){var e=[[[180,90],[-180,90],[-180,-90],[180,-90],[180,90]]],t=n&&n.geometry.coordinates||e;return Qi(t)}function AUr(n,e,t,r){r===void 0&&(r={});for(var i=[],a=n[0],o=n[1],s=n[2],l=n[3],u=e/Mo([a,o],[s,o],r),h=u*(s-a),c=t/Mo([a,o],[a,l],r),f=c*(l-o),d=s-a,v=l-o,p=Math.floor(d/h),g=Math.floor(v/f),m=(d-p*h)/2,y=(v-g*f)/2,_=a+m,x=0;x\xA9 turfjs with \xA9 SuperMap iClient",features:t.features,format:t.format,extent:t.extent,logo:br.getOlVersion()==="4"?t.logo:null,projection:t.projection,wrapX:t.wrapX}),this.turfMap={"Measurement.along":["line","distance","units"],"Measurement.area":["geojson"],"Measurement.bbox":["geojson"],"Measurement.bboxPolygon":["bbox"],"Measurement.bearing":["start","end","final"],"Measurement.center":["geojson","properties"],"Measurement.centerOfMass":["geojson","properties"],"Measurement.centroid":["geojson","properties"],"Measurement.destination":["origin","distance","bearing","units"],"Measurement.distance":["from","to","units"],"Measurement.envelope":["geojson"],"Measurement.length":["geojson","units"],"Measurement.midpoint":["point1","point2"],"Measurement.pointOnFeature":["geojson"],"Measurement.polygonTangents":["point","polygon"],"Measurement.rhumbBearing":["start","end","final"],"Measurement.rhumbDestination":["origin","distance","bearing","units"],"Measurement.rhumbDistance":["from","to","units"],"Measurement.square":["bbox"],"Measurement.greatCircle":["start","end","properties","npoints","offset"],"CoordinateMutation.cleanCoords":["geojson","mutate"],"CoordinateMutation.flip":["geojson","mutate"],"CoordinateMutation.rewind":["geojson","reverse","mutate"],"CoordinateMutation.round":["num","precision"],"CoordinateMutation.truncate":["geojson","precision","coordinates","mutate"],"Transformation.bboxClip":["feature","bbox"],"Transformation.bezierSpline":["line","resolution","sharpness"],"Transformation.buffer":["geojson","radius","units","steps"],"Transformation.circle":["center","radius","steps","units","properties"],"Transformation.clone":["geojson"],"Transformation.concave":["points","maxEdge","units"],"Transformation.convex":["geojson","concavity"],"Transformation.difference":["polygon1","polygon2"],"Transformation.dissolve":["featureCollection","propertyName"],"Transformation.intersect":["poly1","poly2"],"Transformation.lineOffset":["geojson","distance","units"],"Transformation.simplify":["feature","tolerance","highQuality"],"Transformation.tesselate":["poly"],"Transformation.transformRotate":["geojson","angle","pivot","mutate"],"Transformation.transformTranslate":["geojson","distance","direction","units","zTranslation","mutate"],"Transformation.transformScale":["geojson","factor","origin","mutate"],"Transformation.union":["A"],"Transformation.voronoi":["points","bbox"],"featureConversion.combine":["fc"],"featureConversion.explode":["geojson"],"featureConversion.flatten":["geojson"],"featureConversion.lineStringToPolygon":["lines","properties","autoComplete","orderCoords"],"featureConversion.polygonize":["geojson"],"featureConversion.polygonToLineString":["polygon","properties"],"Misc.kinks":["featureIn"],"Misc.lineArc":["center","radius","bearing1","bearing2","steps","units"],"Misc.lineChunk":["geojson","segmentLength","units","reverse"],"Misc.lineIntersect":["line1","line2"],"Misc.lineOverlap":["line1","line2"],"Misc.lineSegment":["geojson"],"Misc.lineSlice":["startPt","stopPt","line"],"Misc.lineSliceAlong":["line","startDist","stopDist","units"],"Misc.lineSplit":["line","splitter"],"Misc.mask":["polygon","mask"],"Misc.pointOnLine":["lines","pt","units"],"Misc.sector":["center","radius","bearing1","bearing2","steps","units"],"Misc.shortestPath":["start","end","obstacles","units","resolution"],"Misc.unkinkPolygon":["geojson"],"Helper.featureCollection":["features","bbox","id"],"Helper.feature":["geometry","properties","bbox","id"],"Helper.geometryCollection":["geometries","properties","bbox","id"],"Helper.lineString":["coordinates","properties","bbox","id"],"Helper.multiLineString":["coordinates","properties","bbox","id"],"Helper.multiPoint":["coordinates","properties","bbox","id"],"Helper.multiPolygon":["coordinates","properties","bbox","id"],"Helper.point":["coordinates","properties","bbox","id"],"Helper.polygon":["coordinates","properties","bbox","id"],"Data.sample":["featurecollection","num"],"Interpolation.interpolate":["points","cellSize","gridType","property","units","weight"],"Interpolation.isobands":["pointGrid","breaks","zProperty","commonProperties","breaksProperties"],"Interpolation.isolines":["pointGrid","breaks","zProperty","commonProperties","breaksProperties"],"Interpolation.planepoint":["point","triangle"],"Interpolation.tin":["points","z"],"Joins.pointsWithinPolygon":["points","polygons"],"Joins.tag":["points","polygons","field","outField","mask","properties"],"Grids.hexGrid":["bbox","cellSide","units","triangles"],"Grids.pointGrid":["bbox","cellSide","units","mask","properties"],"Grids.squareGrid":["bbox","cellSide","units","mask","properties"],"Grids.triangleGrid":["bbox","cellSide","units","mask","properties"],"Classification.nearestPoint":["targetPoint","points"],"Aggregation.collect":["polygons","points","inProperty","outProperty"],"Aggregation.clustersDbscan":["points","maxDistance","units","minPoints","mutate"],"Aggregation.clustersKmeans":["points","numberOfClusters","mutate"],"Meta.coordAll":["geojson"],"Meta.coordEach":["geojson","callback","excludeWrapCoord"],"Meta.coordReduce":["geojson","callback","initialValue","excludeWrapCoord"],"Meta.featureEach":["geojson","callback"],"Meta.featureReduce":["geojson","callback","initialValue"],"Meta.flattenEach":["geojson","callback"],"Meta.flattenReduce":["geojson","callback","initialValue"],"Meta.getCoord":["coord"],"Meta.getCoords":["coords"],"Meta.getGeom":["geojson"],"Meta.getGeomType":["geojson","name"],"Meta.geomEach":["geojson","callback"],"Meta.geomReduce":["geojson","callback","initialValue"],"Meta.propEach":["geojson","callback"],"Meta.propReduce":["geojson","callback","initialValue"],"Meta.segmentEach":["geojson","callback"],"Meta.segmentReduce":["geojson","callback","initialValue"],"Meta.getCluster":["geojson","filter"],"Meta.clusterEach":["geojson","property","callback"],"Meta.clusterReduce":["geojson","property","callback","initialValue"],"Assertions.collectionOf":["featureCollection","type","name"],"Assertions.containsNumber":["coordinates"],"Assertions.geojsonType":["value","type","name"],"Assertions.featureOf":["feature","type","name"],"Booleans.booleanClockwise":["line"],"Booleans.booleanContains":["feature1","feature2"],"Booleans.booleanCrosses":["feature1","feature2"],"Booleans.booleanDisjoint":["feature1","feature2"],"Booleans.booleanEqual":["feature1","feature2"],"Booleans.booleanOverlap":["feature1","feature2"],"Booleans.booleanParallel":["feature1","feature2"],"Booleans.booleanPointInPolygon":["point","polygon","ignoreBoundary"],"Booleans.booleanPointOnLine":["point","linestring","ignoreEndVertices"],"UnitConversion.bearingToAngle":["bearing"],"UnitConversion.convertArea":["area","originalUnit","finalUnit"],"UnitConversion.convertLength":["length","originalUnit","finalUnit"],"UnitConversion.degreesToradians":["degrees"],"UnitConversion.lengthToRadians":["distance","units"],"UnitConversion.lengthToDegrees":["distance","units"],"UnitConversion.radiansToLength":["radians","units"],"UnitConversion.radiansToDegrees":["radians"],"UnitConversion.toMercator":["geojson","mutate"],"UnitConversion.toWgs84":["geojson","mutate"]},this.turfOptionMap={"Measurement.along":["line","distance",{units:""}],"Measurement.bboxPolygon":["bbox",{properties:"",id:""}],"Measurement.bearing":["start","end",{final:""}],"Measurement.center":["geojson",{properties:""}],"Measurement.destination":["origin","distance","bearing",{units:"",properties:""}],"Measurement.distance":["from","to",{units:""}],"Measurement.length":["geojson",{units:""}],"Measurement.rhumbBearing":["start","end",{final:""}],"Measurement.rhumbDestination":["origin","distance","bearing",{units:"",properties:""}],"Measurement.rhumbDistance":["from","to",{units:""}],"Measurement.greatCircle":["start","end",{properties:"",npoints:"",offset:""}],"CoordinateMutation.cleanCoords":["geojson",{mutate:""}],"CoordinateMutation.flip":["geojson",{mutate:""}],"CoordinateMutation.rewind":["geojson",{mutate:"",reverse:""}],"CoordinateMutation.truncate":["geojson",{precision:"",coordinates:"",mutate:""}],"Transformation.bezierSpline":["line",{resolution:"",sharpness:""}],"Transformation.buffer":["geojson","radius",{units:"",steps:""}],"Transformation.circle":["center","radius",{units:"",steps:"",properties:""}],"Transformation.concave":["points",{maxEdge:"",units:""}],"Transformation.convex":["geojson",{concavity:""}],"Transformation.dissolve":["featureCollection",{propertyName:""}],"Transformation.lineOffset":["geojson","distance",{units:""}],"Transformation.simplify":["geojson",{tolerance:"",highQuality:""}],"Transformation.transformRotate":["geojson","angle",{pivot:"",mutate:""}],"Transformation.transformTranslate":["geojson","distance","direction",{units:"",zTranslation:"",mutate:""}],"Transformation.transformScale":["geojson","factor",{origin:"",mutate:""}],"Transformation.voronoi":["points",{bbox:""}],"featureConversion.lineStringToPolygon":["lines",{properties:"",autoComplete:"",orderCoords:""}],"featureConversion.polygonToLineString":["polygon",{properties:""}],"Misc.lineArc":["center","radius","bearing1","bearing2",{steps:"",units:""}],"Misc.lineChunk":["geojson","segmentLength",{units:"",reverse:""}],"Misc.lineOverlap":["line1","line2",{tolerance:""}],"Misc.lineSliceAlong":["line","startDist","stopDist",{units:""}],"Misc.pointOnLine":["lines","pt",{units:""}],"Misc.sector":["center","radius","bearing1","bearing2",{units:"",steps:"",properties:""}],"Misc.shortestPath":["start","end",{obstacles:"",units:"",resolution:""}],"Helper.feature":["geometry","properties",{bbox:"",id:""}],"Helper.geometryCollection":["geometries","properties",{bbox:"",id:""}],"Helper.lineString":["coordinates","properties",{bbox:"",id:""}],"Helper.multiLineString":["coordinates","properties",{bbox:"",id:""}],"Helper.multiPoint":["coordinates","properties",{bbox:"",id:""}],"Helper.multiPolygon":["coordinates","properties",{bbox:"",id:""}],"Helper.point":["coordinates","properties",{bbox:"",id:""}],"Helper.polygon":["coordinates","properties",{bbox:"",id:""}],"Interpolation.interpolate":["points","cellSize",{gridType:"",property:"",units:"",weight:""}],"Interpolation.isobands":["pointGrid","breaks",{zProperty:"",commonProperties:"",breaksProperties:""}],"Interpolation.isolines":["pointGrid","breaks",{zProperty:"",commonProperties:"",breaksProperties:""}],"Grids.hexGrid":["bbox","cellSide",{units:"",triangles:"",properties:"",mask:""}],"Grids.pointGrid":["bbox","cellSide",{units:"",mask:"",properties:""}],"Grids.squareGrid":["bbox","cellSide",{units:"",mask:"",properties:""}],"Grids.triangleGrid":["bbox","cellSide",{units:"",mask:"",properties:""}],"Aggregation.clustersDbscan":["points","maxDistance",{units:"",minPoints:"",mutate:""}],"Aggregation.clustersKmeans":["points",{numberOfClusters:"",mutate:""}],"Booleans.booleanPointInPolygon":["point","polygon",{ignoreBoundary:""}],"Booleans.booleanPointOnLine":["point","linestring",{ignoreEndVertices:""}],"UnitConversion.toMercator":["geojson",{mutate:""}],"UnitConversion.toWgs84":["geojson",{mutate:""}]}}process(e,t,r,i){var a;try{a=XLe[e.split(".")[1]].apply(this,this.parse(e,t))}catch{a=XLe[e.split(".")[1]].apply(this,this.parseOption(e,t))}var o=null;try{o=new jc().readFeatures(a)}catch{r&&r(a);return}i=i==null?!0:i,i&&this.addFeatures(o),r&&r(a)}parse(e,t){if(e==="Transformation.union")return t.A;var r=[],i=this.turfMap[e];return i&&i.map(function(a){return r.push(t[a]),t[a]}),r}parseOption(e,t){var r=[],i=this.turfOptionMap[e];return i.map(function(a){if(a instanceof Object){var o=a;Object.keys(o).forEach(function(s){o[s]=t[s]}),r.push(o)}else r.push(t[a]);return t}),r}}class LUr extends AS{constructor(e,t){super(e,t),this.themeField=t.themeField,this.style=t.style,this.styleGroups=t.styleGroups,this.isHoverAble=t.isHoverAble,this.highlightStyle=t.highlightStyle}destroy(){this.style=null,this.themeField=null,this.styleGroups=null,AS.prototype.destroy.apply(this,arguments)}createThematicFeature(e){var t=this.getStyleByData(e),r={};r.nodesClipPixel=this.nodesClipPixel,r.isHoverAble=this.isHoverAble,r.isMultiHover=this.isMultiHover,r.isClickAble=this.isClickAble,r.highlightStyle=Vn.transformStyle(this.highlightStyle);for(var i=new f3(e,this,Vn.transformStyle(t),r),a=0;a0&&r.attributes){var i=this.themeField,a=r.attributes,o=this.styleGroups,s=!1,l=null;for(var u in a)if(i===u){s=!0,l=a[u];break}if(s){for(var h=0,c=o.length;h-1;k--)if(A.indexOf(R[k])>-1){I=A.replace(R[k],E[R[k]]);break}I=I.replace(/[#]/gi,"#"),E[A]=M,b=b.replace(new RegExp(I,"g"),M)}),b=b.replace(/[#]/gi,` +#`),b=b.replace(/\[zoom/gi,"[scale")}var T=new Pt(b).getShaders(),C={};T.forEach(function(A){return C[A.elements[0].clean]=C[A.elements[0].clean]||{},C[A.elements[0].clean][A.attachment]=C[A.elements[0].clean][A.attachment]||[],C[A.elements[0].clean][A.attachment].push(A),A}),Ka.setCartoShaders(C)}},_.send(null)}if(Ka.getCartoCss()){var x=new Pt(Ka.getCartoCss()).getShaders(),S={};x.forEach(function(w){return S[w.elements[0].clean]=S[w.elements[0].clean]||{},S[w.elements[0].clean][w.attachment]=S[w.elements[0].clean][w.attachment]||[],S[w.elements[0].clean][w.attachment].push(w),w}),Ka.setClientCartoShaders(S)}}},s.open("GET",W.urlPathAppend(Ka.getUrl(),"layers.json"),!1),s.send(null),this.on("featureSelected",function(f){Ka.setSelectedId(f.selectedId),Ka.setLayerName(f.layerName)});function l(){return new So({image:new rm({radius:5,fill:new Zo({color:"blue"})})})}function u(){return new So({stroke:new es({color:"blue",width:3})})}function h(){return new So({fill:new Zo({color:[0,0,255,.5]}),stroke:new es({color:"blue",width:3})})}function c(){return new So({text:new J1({font:"15px Microsoft YaHei",fill:new Zo({color:"blue"}),stroke:new es({color:"white",width:1})})})}}static setCartoShaders(e){this.cartoShaders=e}static getCartoShaders(){return this.cartoShaders}static setClientCartoShaders(e){this.clientCartoShaders=e}static getClientCartoShaders(){return this.clientCartoShaders}static setCartoCss(e){this.cartoCss=e}static getCartoCss(){return this.cartoCss}static setDonotNeedServerCartoCss(e){this.donotNeedServerCartoCss=e}static getDonotNeedServerCartoCss(){return this.donotNeedServerCartoCss}static setLayersInfo(e){this.layersInfo=e}static getLayersInfo(){return this.layersInfo}static setUrl(e){this.url=e}static getUrl(){return this.url}static setView(e){this.view=e}static getView(){return this.view}static setSelectedId(e){this.selectedId=e}static getSelectedId(){return this.selectedId}static setLayerName(e){this.layerName=e}static getLayerName(){return this.layerName}static setSelectedPointStyle(e){this.selectedPointStyle=e}static setSelectedLineStyle(e){this.selectedLineStyle=e}static setSelectedRegionStyle(e){this.selectedRegionStyle=e}static setSelectedTextStyle(e){this.selectedTextStyle=e}static getSelectedStyle(e){if(e==="POINT"||e==="MULTIPOINT")return this.selectedPointStyle;if(e==="LINESTRING"||e==="MULTILINESTRING")return this.selectedLineStyle;if(e==="POLYGON"||e==="MULTIPOLYGON")return this.selectedRegionStyle;if(e==="TEXT")return this.selectedTextStyle}static getLayerInfo(e){var t=Ka.getLayersInfo();if(t===void 0)return null;var r=t[e];if(!r)return null;var i={layerIndex:r.layerIndex,ugcLayerType:r.ugcLayerType};switch(r.ugcLayerType){case"VECTOR":i.layerStyle=r.style?r.style:null;break;case"THEME":var a=r.theme;i.layerStyle=a?a.defaultStyle:null,a&&a.type==="LABEL"&&(i.type=a.type,i.textField=a.labelExpression);break;default:r.style&&(i.layerStyle=r.style);break}return i}static getStyle(e,t){var r=Ka.getUrl(),i=Ka.getView(),a=i.getZoom(),o=96,s=br.resolutionToScale(i.getResolution(),o,Wl.METER),l=e.replace(/(@)/gi,"___").replace(/(#)/gi,"___");if(Ka.getCartoCss()&&Ka.getClientCartoShaders()[l])return c(Ka.getClientCartoShaders()[l]);var u=Ka.getLayerInfo(e);if(!Ka.getDonotNeedServerCartoCss()&&Ka.getCartoShaders()[l]){if(t.getProperties().textStyle||t.getProperties().TEXT_FEATURE_CONTENT||u.type=="LABEL"&&u.textField){var h=ts.getValidStyleFromLayerInfo(u,t,r);return t.getGeometry().getType().toUpperCase()==="POINT"&&(h=f(u,t,r)),h}return c(Ka.getCartoShaders()[l])}if(u)return ts.getValidStyleFromLayerInfo(u,t,r);function c(d){var v=[];for(var p in d)d[p].map(function(g){return v.push(ts.getStyleFromCarto(a,s,g,t,!0,r)),g});return v}function f(d,v,p){var g=ts.getValidStyleFromLayerInfo(d,v,p);if(d.type=="LABEL"){v.setProperties({type:"TEXT"});for(var m=c(Ka.getCartoShaders()[l]),y=g.getText(),_=0;_ */kce.read=function(n,e,t,r,i){var a,o,s=i*8-r-1,l=(1<>1,h=-7,c=t?i-1:0,f=t?-1:1,d=n[e+c];for(c+=f,a=d&(1<<-h)-1,d>>=-h,h+=s;h>0;a=a*256+n[e+c],c+=f,h-=8);for(o=a&(1<<-h)-1,a>>=-h,h+=r;h>0;o=o*256+n[e+c],c+=f,h-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-u}return(d?-1:1)*o*Math.pow(2,a-r)};kce.write=function(n,e,t,r,i,a){var o,s,l,u=a*8-i-1,h=(1<>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:a-1,v=r?1:-1,p=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+c>=1?e+=f/l:e+=f*Math.pow(2,1-c),e*l>=2&&(o++,l/=2),o+c>=h?(s=0,o=h):o+c>=1?(s=(e*l-1)*Math.pow(2,i),o=o+c):(s=e*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;n[t+d]=s&255,d+=v,s/=256,i-=8);for(o=o<0;n[t+d]=o&255,d+=v,o/=256,u-=8);n[t+d-v]|=p*128};var UUr=Go,X6=kce;function Go(n){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(n)?n:new Uint8Array(n||0),this.pos=0,this.type=0,this.length=this.buf.length}Go.Varint=0;Go.Fixed64=1;Go.Bytes=2;Go.Fixed32=5;var Yre=(1<<16)*(1<<16),qLe=1/Yre,VUr=12,yQe=typeof TextDecoder>"u"?null:new TextDecoder("utf8");Go.prototype={destroy:function(){this.buf=null},readFields:function(n,e,t){for(t=t||this.length;this.pos>3,a=this.pos;this.type=r&7,n(i,e,this),this.pos===a&&this.skip(r)}return e},readMessage:function(n,e){return this.readFields(n,e,this.readVarint()+this.pos)},readFixed32:function(){var n=Y6(this.buf,this.pos);return this.pos+=4,n},readSFixed32:function(){var n=KLe(this.buf,this.pos);return this.pos+=4,n},readFixed64:function(){var n=Y6(this.buf,this.pos)+Y6(this.buf,this.pos+4)*Yre;return this.pos+=8,n},readSFixed64:function(){var n=Y6(this.buf,this.pos)+KLe(this.buf,this.pos+4)*Yre;return this.pos+=8,n},readFloat:function(){var n=X6.read(this.buf,this.pos,!0,23,4);return this.pos+=4,n},readDouble:function(){var n=X6.read(this.buf,this.pos,!0,52,8);return this.pos+=8,n},readVarint:function(n){var e=this.buf,t,r;return r=e[this.pos++],t=r&127,r<128||(r=e[this.pos++],t|=(r&127)<<7,r<128)||(r=e[this.pos++],t|=(r&127)<<14,r<128)||(r=e[this.pos++],t|=(r&127)<<21,r<128)?t:(r=e[this.pos],t|=(r&15)<<28,$Ur(t,n,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var n=this.readVarint();return n%2===1?(n+1)/-2:n/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var n=this.readVarint()+this.pos,e=this.pos;return this.pos=n,n-e>=VUr&&yQe?nVr(this.buf,e,n):rVr(this.buf,e,n)},readBytes:function(){var n=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,n);return this.pos=n,e},readPackedVarint:function(n,e){if(this.type!==Go.Bytes)return n.push(this.readVarint(e));var t=h1(this);for(n=n||[];this.pos127;);else if(e===Go.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Go.Fixed32)this.pos+=4;else if(e===Go.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+e)},writeTag:function(n,e){this.writeVarint(n<<3|e)},realloc:function(n){for(var e=this.length||16;e268435455||n<0){WUr(n,this);return}this.realloc(4),this.buf[this.pos++]=n&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=(n>>>=7)&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=(n>>>=7)&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=n>>>7&127)))},writeSVarint:function(n){this.writeVarint(n<0?-n*2-1:n*2)},writeBoolean:function(n){this.writeVarint(Boolean(n))},writeString:function(n){n=String(n),this.realloc(n.length*4),this.pos++;var e=this.pos;this.pos=iVr(this.buf,n,this.pos);var t=this.pos-e;t>=128&&ZLe(e,t,this),this.pos=e-1,this.writeVarint(t),this.pos+=t},writeFloat:function(n){this.realloc(4),X6.write(this.buf,n,this.pos,!0,23,4),this.pos+=4},writeDouble:function(n){this.realloc(8),X6.write(this.buf,n,this.pos,!0,52,8),this.pos+=8},writeBytes:function(n){var e=n.length;this.writeVarint(e),this.realloc(e);for(var t=0;t=128&&ZLe(t,r,this),this.pos=t-1,this.writeVarint(r),this.pos+=r},writeMessage:function(n,e,t){this.writeTag(n,Go.Bytes),this.writeRawMessage(e,t)},writePackedVarint:function(n,e){e.length&&this.writeMessage(n,XUr,e)},writePackedSVarint:function(n,e){e.length&&this.writeMessage(n,YUr,e)},writePackedBoolean:function(n,e){e.length&&this.writeMessage(n,KUr,e)},writePackedFloat:function(n,e){e.length&&this.writeMessage(n,qUr,e)},writePackedDouble:function(n,e){e.length&&this.writeMessage(n,ZUr,e)},writePackedFixed32:function(n,e){e.length&&this.writeMessage(n,JUr,e)},writePackedSFixed32:function(n,e){e.length&&this.writeMessage(n,QUr,e)},writePackedFixed64:function(n,e){e.length&&this.writeMessage(n,eVr,e)},writePackedSFixed64:function(n,e){e.length&&this.writeMessage(n,tVr,e)},writeBytesField:function(n,e){this.writeTag(n,Go.Bytes),this.writeBytes(e)},writeFixed32Field:function(n,e){this.writeTag(n,Go.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(n,e){this.writeTag(n,Go.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(n,e){this.writeTag(n,Go.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(n,e){this.writeTag(n,Go.Fixed64),this.writeSFixed64(e)},writeVarintField:function(n,e){this.writeTag(n,Go.Varint),this.writeVarint(e)},writeSVarintField:function(n,e){this.writeTag(n,Go.Varint),this.writeSVarint(e)},writeStringField:function(n,e){this.writeTag(n,Go.Bytes),this.writeString(e)},writeFloatField:function(n,e){this.writeTag(n,Go.Fixed32),this.writeFloat(e)},writeDoubleField:function(n,e){this.writeTag(n,Go.Fixed64),this.writeDouble(e)},writeBooleanField:function(n,e){this.writeVarintField(n,Boolean(e))}};function $Ur(n,e,t){var r=t.buf,i,a;if(a=r[t.pos++],i=(a&112)>>4,a<128||(a=r[t.pos++],i|=(a&127)<<3,a<128)||(a=r[t.pos++],i|=(a&127)<<10,a<128)||(a=r[t.pos++],i|=(a&127)<<17,a<128)||(a=r[t.pos++],i|=(a&127)<<24,a<128)||(a=r[t.pos++],i|=(a&1)<<31,a<128))return RC(n,i,e);throw new Error("Expected varint not more than 10 bytes")}function h1(n){return n.type===Go.Bytes?n.readVarint()+n.pos:n.pos+1}function RC(n,e,t){return t?e*4294967296+(n>>>0):(e>>>0)*4294967296+(n>>>0)}function WUr(n,e){var t,r;if(n>=0?(t=n%4294967296|0,r=n/4294967296|0):(t=~(-n%4294967296),r=~(-n/4294967296),t^4294967295?t=t+1|0:(t=0,r=r+1|0)),n>=18446744073709552e3||n<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),HUr(t,r,e),jUr(r,e)}function HUr(n,e,t){t.buf[t.pos++]=n&127|128,n>>>=7,t.buf[t.pos++]=n&127|128,n>>>=7,t.buf[t.pos++]=n&127|128,n>>>=7,t.buf[t.pos++]=n&127|128,n>>>=7,t.buf[t.pos]=n&127}function jUr(n,e){var t=(n&7)<<4;e.buf[e.pos++]|=t|((n>>>=3)?128:0),n&&(e.buf[e.pos++]=n&127|((n>>>=7)?128:0),n&&(e.buf[e.pos++]=n&127|((n>>>=7)?128:0),n&&(e.buf[e.pos++]=n&127|((n>>>=7)?128:0),n&&(e.buf[e.pos++]=n&127|((n>>>=7)?128:0),n&&(e.buf[e.pos++]=n&127)))))}function ZLe(n,e,t){var r=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(Math.LN2*7));t.realloc(r);for(var i=t.pos-1;i>=n;i--)t.buf[i+r]=t.buf[i]}function XUr(n,e){for(var t=0;t>>8,n[t+2]=e>>>16,n[t+3]=e>>>24}function KLe(n,e){return(n[e]|n[e+1]<<8|n[e+2]<<16)+(n[e+3]<<24)}function rVr(n,e,t){for(var r="",i=e;i239?4:a>223?3:a>191?2:1;if(i+s>t)break;var l,u,h;s===1?a<128&&(o=a):s===2?(l=n[i+1],(l&192)===128&&(o=(a&31)<<6|l&63,o<=127&&(o=null))):s===3?(l=n[i+1],u=n[i+2],(l&192)===128&&(u&192)===128&&(o=(a&15)<<12|(l&63)<<6|u&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(l=n[i+1],u=n[i+2],h=n[i+3],(l&192)===128&&(u&192)===128&&(h&192)===128&&(o=(a&15)<<18|(l&63)<<12|(u&63)<<6|h&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,r+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),r+=String.fromCharCode(o),i+=s}return r}function nVr(n,e,t){return yQe.decode(n.subarray(e,t))}function iVr(n,e,t){for(var r=0,i,a;r55295&&i<57344)if(a)if(i<56320){n[t++]=239,n[t++]=191,n[t++]=189,a=i;continue}else i=a-55296<<10|i-56320|65536,a=null;else{i>56319||r+1===e.length?(n[t++]=239,n[t++]=191,n[t++]=189):a=i;continue}else a&&(n[t++]=239,n[t++]=191,n[t++]=189,a=null);i<128?n[t++]=i:(i<2048?n[t++]=i>>6|192:(i<65536?n[t++]=i>>12|224:(n[t++]=i>>18|240,n[t++]=i>>12&63|128),n[t++]=i>>6&63|128),n[t++]=i&63|128)}return t}var JLe=Nu(),XN=function(){function n(e,t,r,i,a){this.styleFunction,this.extent_,this.id_=a,this.type_=e,this.flatCoordinates_=t,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=r,this.properties_=i}return n.prototype.get=function(e){return this.properties_[e]},n.prototype.getExtent=function(){return this.extent_||(this.extent_=this.type_===Kr.POINT?zje(this.flatCoordinates_):lue(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},n.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var e=Nf(this.getExtent());this.flatInteriorPoints_=mhe(this.flatCoordinates_,0,this.ends_,2,e,0)}return this.flatInteriorPoints_},n.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var e=Aqe(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=dqe(this.flatCoordinates_,0,this.ends_,2,e)}return this.flatInteriorPoints_},n.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=x7(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},n.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var e=this.flatCoordinates_,t=0,r=this.ends_,i=0,a=r.length;i>3}l--,s===1||s===2?(u+=t.readSVarint(),h+=t.readSVarint(),s===1&&c>f&&(a.push(c),f=c),i.push(u,h),c+=2):s===7?c>f&&(i.push(i[f],i[f+1]),c+=2):ki(!1,59)}c>f&&(a.push(c),f=c)},e.prototype.createFeature_=function(t,r,i){var a=r.type;if(a===0)return null;var o,s=r.properties,l;this.idProperty_?(l=s[this.idProperty_],delete s[this.idProperty_]):l=r.id,s[this.layerName_]=r.layer.name;var u=[],h=[];this.readRawGeometry_(t,r,u,h);var c=cVr(a,h.length);if(this.featureClass_===qre)o=new this.featureClass_(c,u,h,s,l),o.transform(i.dataProjection);else{var f=void 0;if(c==Kr.POLYGON){var d=_Pr(u,h);f=d.length>1?new Mqe(u,Ro.XY,d):new m2(u,Ro.XY,h)}else f=c===Kr.POINT?new Qs(u,Ro.XY):c===Kr.LINE_STRING?new gm(u,Ro.XY):c===Kr.POLYGON?new m2(u,Ro.XY,h):c===Kr.MULTI_POINT?new whe(u,Ro.XY):c===Kr.MULTI_LINE_STRING?new Cqe(u,Ro.XY,h):null;var v=this.featureClass_;o=new v,this.geometryName_&&o.setGeometryName(this.geometryName_);var p=The(f,!1,i);o.setGeometry(p),l!==void 0&&o.setId(l),o.setProperties(s,!0)}return o},e.prototype.getType=function(){return qb.ARRAY_BUFFER},e.prototype.readFeatures=function(t,r){var i=this.layers_,a=this.adaptOptions(r),o=ya(a.dataProjection);o.setWorldExtent(a.extent),a.dataProjection=o;var s=new UUr(t),l=s.readFields(sVr,{}),u=[];for(var h in l)if(!(i&&i.indexOf(h)==-1)){var c=l[h],f=c?[0,0,c.extent,c.extent]:null;o.setExtent(f);for(var d=0,v=c.length;d>3,r=n===1?t.readString():n===2?t.readFloat():n===3?t.readDouble():n===4?t.readVarint64():n===5?t.readVarint():n===6?t.readSVarint():n===7?t.readBoolean():null;e.values.push(r)}}function uVr(n,e,t){if(n==1)e.id=t.readVarint();else if(n==2)for(var r=t.readVarint()+t.pos;t.pos\xA9 SuperMap iServer with \xA9 SuperMap iClient",["4","5"].indexOf(br.getOlVersion())<0&&(e.tileSize=e.format instanceof w1&&e.style?512:256),super({attributions:e.attributions,cacheSize:e.cacheSize,format:e.format||new jc,logo:br.getOlVersion()==="4"?e.logo:null,overlaps:e.overlaps,projection:e.projection,state:e.format instanceof w1&&e.style&&Object.prototype.toString.call(e.style)=="[object String]"?"loading":e.state,tileClass:e.tileClass,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction||(e.format instanceof w1&&e.style?u:l),tileLoadFunction:e.tileLoadFunction||(e.format instanceof w1?c:h),wrapX:e.wrapX!==void 0?e.wrapX:!1,tileSize:e.tileSize||null,zDirection:["4","5"].indexOf(br.getOlVersion())>-1?null:0});var o=this;if(o.withCredentials=e.withCredentials,o._tileType=e.tileType||"ScaleXY",this.vectorTileStyles=new Ka,e.format instanceof w1&&e.style)if(Object.prototype.toString.call(e.style)=="[object String]"){var s=xs.appendCredential(e.style);li.get(s,null,{withCredentials:e.withCredentials}).then(f=>f.json()).then(f=>{this._fillByStyleJSON(f,e.source),this.setState("ready")})}else this._fillByStyleJSON(e.style,e.source);else this._fillByRestMapOptions(e.url,e);function l(f,d,v){o.tileGrid||(o.tileGrid=o.getTileGridForProjection(v));var p=f[0],g=f[1],m=["4","5"].indexOf(br.getOlVersion())>-1?-f[2]-1:f[2],y=nh(o.tileGrid.getTileSize(p,o.tmpSize)),_="";if(o.tileType==="ZXY")_="&width="+y[0]+"&height="+y[1]+"&x="+g+"&y="+m+"&z="+p;else if(o.tileType==="ViewBounds"){var x=o.tileGrid.getTileCoordExtent(f);_="&width="+y[0]+"&height="+y[1]+"&viewBounds="+x[0]+","+x[1]+","+x[2]+","+x[3]}else{var S=o.tileGrid.getOrigin(p),w=o.tileGrid.getResolution(p),b=96,E=v.getUnits()||"degrees";E==="degrees"&&(E=Wl.DEGREE),E==="m"&&(E=Wl.METER);var T=br.resolutionToScale(w,b,E);_="&x="+g+"&y="+m+"&width="+y[0]+"&height="+y[1]+"&scale="+T+"&origin={'x':"+S[0]+",'y':"+S[1]+"}"}return o._tileUrl+encodeURI(_)}function u(f){if(f)return o._tileUrl.replace(t,f[0].toString()).replace(r,f[1].toString()).replace(i,function(){var d=["4","5"].indexOf(br.getOlVersion())>-1?-f[2]-1:f[2];return d.toString()}).replace(a,function(){var d=f[0],v=o.tileGrid.getFullTileRange(d),p=v.getHeight()+f[2];return p.toString()})}function h(f,d){var v=new RegExp("(^|\\?|&)width=([^&]*)(\\s|&|$)"),p=new RegExp("(^|\\?|&)height=([^&]*)(\\s|&|$)"),g=Number(d.match(v)[2]),m=Number(d.match(p)[2]);f.setLoader(function(y,_,x){li.get(d).then(function(S){if(f.getFormat()instanceof jc)return S.json()}).then(function(S){var w=[];if(f.getFormat()instanceof jc){S.recordsets.map(function(E){return E.features.map(function(T){for(var C=[],A=0,M=0;M-1?(f.setExtent([0,0,g,m]),f.setProjection(b),w=f.getFormat().readFeatures(br.toGeoJSON(w))):w=f.getFormat().readFeatures(br.toGeoJSON(w),{extent:y,dataProjection:b,featureProjection:x}),f.setFeatures(w)}})})}function c(f,d){const v=f.getFormat(),p=f.onLoad.bind(f),g=f.onError.bind(f);f.setLoader(function(m,y,_){const x=new XMLHttpRequest;x.open("GET",typeof d=="function"?d(m,y,_):d,!0),v.getType()=="arraybuffer"&&(x.responseType="arraybuffer"),x.withCredentials=o.withCredentials,x.onload=function(){if(!x.status||x.status>=200&&x.status<300){const S=v.getType();let w;S==="json"||S==="text"?w=x.responseText:S==="xml"?(w=x.responseXML,w||(w=new DOMParser().parseFromString(x.responseText,"application/xml"))):S==="arraybuffer"&&(w=x.response),w?["4","5"].indexOf(br.getOlVersion())>-1?p.call(this,v.readFeatures(w,{featureProjection:_}),v.readProjection(w),v.getLastExtent()):p.call(this,v.readFeatures(w,{extent:m,featureProjection:_}),v.readProjection(w)):g.call(this)}else g.call(this)}.bind(this),x.onerror=function(){g.call(this)}.bind(this),x.send()})}}_fillByStyleJSON(e,t){if(t||(t=Object.keys(e.sources)[0]),e.sources&&e.sources[t]&&(this._tileUrl=xs.appendCredential(e.sources[t].tiles[0])),e.metadata&&e.metadata.indexbounds){const i=e.metadata.indexbounds;var r=Math.max(i[2]-i[0],i[3]-i[1]);const a=[];for(let o=0;o<30;o++)a.push(r/512/Math.pow(2,o));this.tileGrid=new ym({extent:e.metadata.indexbounds,resolutions:a,tileSize:[512,512]})}}_fillByRestMapOptions(e,t){this._tileUrl=W.urlPathAppend(t.url,"tileFeature.json"),t.format instanceof w1&&(this._tileUrl=W.urlPathAppend(t.url,"tileFeature.mvt")),this._tileUrl=xs.appendCredential(this._tileUrl);var r=!0;t.returnAttributes!==void 0&&(r=t.returnAttributes);var i={};i.returnAttributes=r,t._cache!==void 0&&(i._cache=t._cache),t.layersID!==void 0&&(i.layersID=t.layersID),t.layerNames!==void 0&&(i.layerNames=t.layerNames),t.expands!==void 0&&(i.expands=t.expands),t.compressTolerance!==void 0&&(i.compressTolerance=t.compressTolerance),t.coordinateType!==void 0&&(i.coordinateType=t.coordinateType),t.returnCutEdges!==void 0&&(i.returnCutEdges=t.returnCutEdges),this._tileUrl=W.urlAppend(this._tileUrl,W.getParameterString(i))}static optionsFromMapJSON(e,t){var r={};r.url=e,r.crossOrigin="anonymous";var i=[t.bounds.left,t.bounds.bottom,t.bounds.right,t.bounds.top],a=o();function o(){var l=17,u=96,h=i[2]-i[0],c=i[3]-i[1],f=h>=c?h:c,d;f===h?d=f/t.viewer.width:d=f/t.viewer.height;var v=[],p=Wl.METER;if(t.coordUnit===Wl.DEGREE&&(p=Wl.DEGREE),t.visibleScales.length>0){var g=s(t);for(let m=0;m\xA9 SuperMap iServer with \xA9 SuperMap iClient",canvasFunction:i,logo:br.getOlVersion()==="4"?r.logo:null,projection:r.projection,ratio:r.ratio,resolutions:r.resolutions,state:r.state});function i(o,s,l,u,h){var c=u[0]*l,f=u[1]*l;if(this.rootCanvas.width=this.maxWidth=c,this.rootCanvas.height=this.maxHeight=f,!this.features)return this.rootCanvas;this.pixelRatio=l;var d=this.map.getSize()[0]*l,v=this.map.getSize()[1]*l;return this.offset=[(c-d)/2/l,(f-v)/2/l],this.updateHeatPoints(s),this.rootCanvas}if(this.canvasFunctionInternal_=i,this.features=[],this.name=e,!r.map)throw new Error("options.map is not found.");this.map=r.map,this.id=r.id?r.id:W.createUniqueID("HeatMapSource_"),this.opacity=r.opacity?r.opacity:1,this.colors=r.colors?r.colors:["blue","cyan","lime","yellow","red"],this.useGeoUnit=r.useGeoUnit?r.useGeoUnit:!1,this.radius=r.radius?r.radius:50,this.featureWeight=r.featureWeight?r.featureWeight:null,this.maxWeight=null,this.minWeight=null,this.maxWidth=null,this.maxHeight=null,this.rootCanvas=document.createElement("canvas");var a=this.map.getSize();this.rootCanvas.width=this.maxWidth=parseInt(a[0]),this.rootCanvas.height=this.maxHeight=parseInt(a[1]),W.modifyDOMElement(this.rootCanvas,null,null,null,null,null,null,this.opacity),this.canvasContext=this.rootCanvas.getContext("2d")}addFeatures(e){this.features=this.toiClientFeature(e),this.changed()}setOpacity(e){if(e!==this.opacity){this.opacity=e;var t=this.rootCanvas;W.modifyDOMElement(t,null,null,null,null,null,null,e),this.map!==null&&this.changed()}}updateHeatPoints(e){this.features&&this.features.length>0?this.convertFastToPixelPoints(e):this.canvasContext.clearRect(0,0,this.maxWidth,this.maxWidth)}convertFastToPixelPoints(e){var t=[],r,i,a,o,s,l;this.useRadius=this.useGeoUnit?parseInt(this.radius/e):this.radius;for(var u=0;u0&&this.maxWidth>0){var r=this.canvasContext;this.canvasContext.clearRect(0,0,this.maxWidth,this.maxHeight),this.drawCircle(this.useRadius),this.createGradient();for(var i=0;i>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return BigInt.asIntN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<>8}writeUint16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeInt32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeUint32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeInt64(e,t){this.writeInt32(e,Number(BigInt.asIntN(32,t))),this.writeInt32(e+4,Number(BigInt.asIntN(32,t>>BigInt(32))))}writeUint64(e,t){this.writeUint32(e,Number(BigInt.asUintN(32,t))),this.writeUint32(e+4,Number(BigInt.asUintN(32,t>>BigInt(32))))}writeFloat32(e,t){QLe[0]=t,this.writeInt32(e,Wx[0])}writeFloat64(e,t){ePe[0]=t,this.writeInt32(e,Wx[q6?0:1]),this.writeInt32(e+4,Wx[q6?1:0])}getBufferIdentifier(){if(this.bytes_.length>10)+55296,(o&(1<<10)-1)+56320))}return i}__union_with_string(e,t){return typeof e=="string"?this.__string(t):this.__union(e,t)}__indirect(e){return e+this.readInt32(e)}__vector(e){return e+this.readInt32(e)+XP}__vector_len(e){return this.readInt32(e+this.readInt32(e))}__has_identifier(e){if(e.length!=YP)throw new Error("FlatBuffers: file identifier must be length "+YP);for(let t=0;t=0;r--)e.addInt32(t[r]);return e.endVector()}static startEndsVector(e,t){e.startVector(4,t,4)}static addXy(e,t){e.addFieldOffset(1,t,0)}static createXyVector(e,t){e.startVector(8,t.length,8);for(let r=t.length-1;r>=0;r--)e.addFloat64(t[r]);return e.endVector()}static startXyVector(e,t){e.startVector(8,t,8)}static addZ(e,t){e.addFieldOffset(2,t,0)}static createZVector(e,t){e.startVector(8,t.length,8);for(let r=t.length-1;r>=0;r--)e.addFloat64(t[r]);return e.endVector()}static startZVector(e,t){e.startVector(8,t,8)}static addM(e,t){e.addFieldOffset(3,t,0)}static createMVector(e,t){e.startVector(8,t.length,8);for(let r=t.length-1;r>=0;r--)e.addFloat64(t[r]);return e.endVector()}static startMVector(e,t){e.startVector(8,t,8)}static addT(e,t){e.addFieldOffset(4,t,0)}static createTVector(e,t){e.startVector(8,t.length,8);for(let r=t.length-1;r>=0;r--)e.addFloat64(t[r]);return e.endVector()}static startTVector(e,t){e.startVector(8,t,8)}static addTm(e,t){e.addFieldOffset(5,t,0)}static createTmVector(e,t){e.startVector(8,t.length,8);for(let r=t.length-1;r>=0;r--)e.addInt64(t[r]);return e.endVector()}static startTmVector(e,t){e.startVector(8,t,8)}static addType(e,t){e.addFieldInt8(6,t,Dh.Unknown)}static addParts(e,t){e.addFieldOffset(7,t,0)}static createPartsVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startPartsVector(e,t){e.startVector(4,t,4)}static endGeometry(e){return e.endObject()}static createGeometry(e,t,r,i,a,o,s,l,u){return gf.startGeometry(e),gf.addEnds(e,t),gf.addXy(e,r),gf.addZ(e,i),gf.addM(e,a),gf.addT(e,o),gf.addTm(e,s),gf.addType(e,l),gf.addParts(e,u),gf.endGeometry(e)}}function Jre(n,e){const t=[];for(let r=0;r>1]),t.push(i)}return t}function tPe(n,e,t){if(!t||t.length===0)return[Jre(n,e)];let r=0;const i=Array.from(t).map(o=>n.slice(r,r=o<<1));let a;return e&&(r=0,a=Array.from(t).map(o=>e.slice(r,r=o))),i.map((o,s)=>Jre(o,a?a[s]:void 0))}function dVr(n,e){const t=n.xyArray(),r=n.zArray();switch(e){case Dh.Point:{const i=Array.from(t);return r&&i.push(r[0]),i}case Dh.MultiPoint:case Dh.LineString:return Jre(t,r);case Dh.MultiLineString:return tPe(t,r,n.endsArray());case Dh.Polygon:return tPe(t,r,n.endsArray())}}function Qre(n,e){let t=e;if(t===Dh.Unknown&&(t=n.type()),t===Dh.GeometryCollection){const i=[];for(let a=0;aa.coordinates)}}const r=dVr(n,t);return{type:Dh[t],coordinates:r}}var Ch;(function(n){n[n.Byte=0]="Byte",n[n.UByte=1]="UByte",n[n.Bool=2]="Bool",n[n.Short=3]="Short",n[n.UShort=4]="UShort",n[n.Int=5]="Int",n[n.UInt=6]="UInt",n[n.Long=7]="Long",n[n.ULong=8]="ULong",n[n.Float=9]="Float",n[n.Double=10]="Double",n[n.String=11]="String",n[n.Json=12]="Json",n[n.DateTime=13]="DateTime",n[n.Binary=14]="Binary"})(Ch||(Ch={}));class Th{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsColumn(e,t){return(t||new Th).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsColumn(e,t){return e.setPosition(e.position()+iF),(t||new Th).__init(e.readInt32(e.position())+e.position(),e)}name(e){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}type(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):Ch.Byte}title(e){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__string(this.bb_pos+t,e):null}description(e){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__string(this.bb_pos+t,e):null}width(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.readInt32(this.bb_pos+e):-1}precision(){const e=this.bb.__offset(this.bb_pos,14);return e?this.bb.readInt32(this.bb_pos+e):-1}scale(){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.readInt32(this.bb_pos+e):-1}nullable(){const e=this.bb.__offset(this.bb_pos,18);return e?!!this.bb.readInt8(this.bb_pos+e):!0}unique(){const e=this.bb.__offset(this.bb_pos,20);return e?!!this.bb.readInt8(this.bb_pos+e):!1}primaryKey(){const e=this.bb.__offset(this.bb_pos,22);return e?!!this.bb.readInt8(this.bb_pos+e):!1}metadata(e){const t=this.bb.__offset(this.bb_pos,24);return t?this.bb.__string(this.bb_pos+t,e):null}static startColumn(e){e.startObject(11)}static addName(e,t){e.addFieldOffset(0,t,0)}static addType(e,t){e.addFieldInt8(1,t,Ch.Byte)}static addTitle(e,t){e.addFieldOffset(2,t,0)}static addDescription(e,t){e.addFieldOffset(3,t,0)}static addWidth(e,t){e.addFieldInt32(4,t,-1)}static addPrecision(e,t){e.addFieldInt32(5,t,-1)}static addScale(e,t){e.addFieldInt32(6,t,-1)}static addNullable(e,t){e.addFieldInt8(7,+t,1)}static addUnique(e,t){e.addFieldInt8(8,+t,0)}static addPrimaryKey(e,t){e.addFieldInt8(9,+t,0)}static addMetadata(e,t){e.addFieldOffset(10,t,0)}static endColumn(e){const t=e.endObject();return e.requiredField(t,4),t}static createColumn(e,t,r,i,a,o,s,l,u,h,c,f){return Th.startColumn(e),Th.addName(e,t),Th.addType(e,r),Th.addTitle(e,i),Th.addDescription(e,a),Th.addWidth(e,o),Th.addPrecision(e,s),Th.addScale(e,l),Th.addNullable(e,u),Th.addUnique(e,h),Th.addPrimaryKey(e,c),Th.addMetadata(e,f),Th.endColumn(e)}}class $g{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFeature(e,t){return(t||new $g).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFeature(e,t){return e.setPosition(e.position()+iF),(t||new $g).__init(e.readInt32(e.position())+e.position(),e)}geometry(e){const t=this.bb.__offset(this.bb_pos,4);return t?(e||new gf).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}properties(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint8(this.bb.__vector(this.bb_pos+t)+e):0}propertiesLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}propertiesArray(){const e=this.bb.__offset(this.bb_pos,6);return e?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}columns(e,t){const r=this.bb.__offset(this.bb_pos,8);return r?(t||new Th).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}columnsLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFeature(e){e.startObject(3)}static addGeometry(e,t){e.addFieldOffset(0,t,0)}static addProperties(e,t){e.addFieldOffset(1,t,0)}static createPropertiesVector(e,t){e.startVector(1,t.length,1);for(let r=t.length-1;r>=0;r--)e.addInt8(t[r]);return e.endVector()}static startPropertiesVector(e,t){e.startVector(1,t,1)}static addColumns(e,t){e.addFieldOffset(2,t,0)}static createColumnsVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startColumnsVector(e,t){e.startVector(4,t,4)}static endFeature(e){return e.endObject()}static finishFeatureBuffer(e,t){e.finish(t)}static finishSizePrefixedFeatureBuffer(e,t){e.finish(t,void 0,!0)}static createFeature(e,t,r,i){return $g.startFeature(e),$g.addGeometry(e,t),$g.addProperties(e,r),$g.addColumns(e,i),$g.endFeature(e)}}new TextEncoder;const rPe=new TextDecoder;function vVr(n,e){const t={};if(!e||e.length===0)return t;const r=n.propertiesArray();if(!r)return t;const i=new DataView(r.buffer,r.byteOffset),a=n.propertiesLength();let o=0;for(;o0?{done:!1,value:e}:{done:!0,value:void 0}:{done:!1,value:gVr(e,t.value)}})}function mVr(n){if((n|=0)<0)throw new Error("invalid length");var e=this,t=this._array.length-this._index;if(this._index+n<=this._array.length)return Promise.resolve(this._array.subarray(this._index,this._index+=n));var r=new Uint8Array(n);return r.set(this._array.subarray(this._index)),function i(){return e._source.read().then(function(a){return a.done?(e._array=Bce,e._index=0,t>0?r.subarray(0,t):null):t+a.value.length>=n?(e._array=a.value,e._index=n-t,r.set(a.value.subarray(0,n-t),t),r):(r.set(a.value,t),t+=a.value.length,i())})}()}function _Vr(n){return typeof n.slice=="function"?n:new z$(typeof n.read=="function"?n:n.getReader())}function z$(n){this._source=n,this._array=Bce,this._index=0}z$.prototype.read=yVr;z$.prototype.slice=mVr;z$.prototype.cancel=pVr;class op{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsCrs(e,t){return(t||new op).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsCrs(e,t){return e.setPosition(e.position()+iF),(t||new op).__init(e.readInt32(e.position())+e.position(),e)}org(e){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}code(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}name(e){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__string(this.bb_pos+t,e):null}description(e){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__string(this.bb_pos+t,e):null}wkt(e){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__string(this.bb_pos+t,e):null}codeString(e){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__string(this.bb_pos+t,e):null}static startCrs(e){e.startObject(6)}static addOrg(e,t){e.addFieldOffset(0,t,0)}static addCode(e,t){e.addFieldInt32(1,t,0)}static addName(e,t){e.addFieldOffset(2,t,0)}static addDescription(e,t){e.addFieldOffset(3,t,0)}static addWkt(e,t){e.addFieldOffset(4,t,0)}static addCodeString(e,t){e.addFieldOffset(5,t,0)}static endCrs(e){return e.endObject()}static createCrs(e,t,r,i,a,o,s){return op.startCrs(e),op.addOrg(e,t),op.addCode(e,r),op.addName(e,i),op.addDescription(e,a),op.addWkt(e,o),op.addCodeString(e,s),op.endCrs(e)}}class J7{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsHeader(e,t){return(t||new J7).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsHeader(e,t){return e.setPosition(e.position()+iF),(t||new J7).__init(e.readInt32(e.position())+e.position(),e)}name(e){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}envelope(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readFloat64(this.bb.__vector(this.bb_pos+t)+e*8):0}envelopeLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}envelopeArray(){const e=this.bb.__offset(this.bb_pos,6);return e?new Float64Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}geometryType(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):Dh.Unknown}hasZ(){const e=this.bb.__offset(this.bb_pos,10);return e?!!this.bb.readInt8(this.bb_pos+e):!1}hasM(){const e=this.bb.__offset(this.bb_pos,12);return e?!!this.bb.readInt8(this.bb_pos+e):!1}hasT(){const e=this.bb.__offset(this.bb_pos,14);return e?!!this.bb.readInt8(this.bb_pos+e):!1}hasTm(){const e=this.bb.__offset(this.bb_pos,16);return e?!!this.bb.readInt8(this.bb_pos+e):!1}columns(e,t){const r=this.bb.__offset(this.bb_pos,18);return r?(t||new Th).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}columnsLength(){const e=this.bb.__offset(this.bb_pos,18);return e?this.bb.__vector_len(this.bb_pos+e):0}featuresCount(){const e=this.bb.__offset(this.bb_pos,20);return e?this.bb.readUint64(this.bb_pos+e):BigInt("0")}indexNodeSize(){const e=this.bb.__offset(this.bb_pos,22);return e?this.bb.readUint16(this.bb_pos+e):16}crs(e){const t=this.bb.__offset(this.bb_pos,24);return t?(e||new op).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}title(e){const t=this.bb.__offset(this.bb_pos,26);return t?this.bb.__string(this.bb_pos+t,e):null}description(e){const t=this.bb.__offset(this.bb_pos,28);return t?this.bb.__string(this.bb_pos+t,e):null}metadata(e){const t=this.bb.__offset(this.bb_pos,30);return t?this.bb.__string(this.bb_pos+t,e):null}static startHeader(e){e.startObject(14)}static addName(e,t){e.addFieldOffset(0,t,0)}static addEnvelope(e,t){e.addFieldOffset(1,t,0)}static createEnvelopeVector(e,t){e.startVector(8,t.length,8);for(let r=t.length-1;r>=0;r--)e.addFloat64(t[r]);return e.endVector()}static startEnvelopeVector(e,t){e.startVector(8,t,8)}static addGeometryType(e,t){e.addFieldInt8(2,t,Dh.Unknown)}static addHasZ(e,t){e.addFieldInt8(3,+t,0)}static addHasM(e,t){e.addFieldInt8(4,+t,0)}static addHasT(e,t){e.addFieldInt8(5,+t,0)}static addHasTm(e,t){e.addFieldInt8(6,+t,0)}static addColumns(e,t){e.addFieldOffset(7,t,0)}static createColumnsVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startColumnsVector(e,t){e.startVector(4,t,4)}static addFeaturesCount(e,t){e.addFieldInt64(8,t,BigInt("0"))}static addIndexNodeSize(e,t){e.addFieldInt16(9,t,16)}static addCrs(e,t){e.addFieldOffset(10,t,0)}static addTitle(e,t){e.addFieldOffset(11,t,0)}static addDescription(e,t){e.addFieldOffset(12,t,0)}static addMetadata(e,t){e.addFieldOffset(13,t,0)}static endHeader(e){return e.endObject()}static finishHeaderBuffer(e,t){e.finish(t)}static finishSizePrefixedHeaderBuffer(e,t){e.finish(t,void 0,!0)}}function Gce(n){const e=J7.getRootAsHeader(n),t=e.featuresCount(),r=e.indexNodeSize(),i=[];for(let l=0;l0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function YN(n){return this instanceof YN?(this.v=n,this):new YN(n)}function SVr(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(n,e||[]),i,a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(f){r[f]&&(i[f]=function(d){return new Promise(function(v,p){a.push([f,d,v,p])>1||s(f,d)})})}function s(f,d){try{l(r[f](d))}catch(v){c(a[0][3],v)}}function l(f){f.value instanceof YN?Promise.resolve(f.value.v).then(u,h):c(a[0][2],f)}function u(f){s("next",f)}function h(f){s("throw",f)}function c(f,d){f(d),a.shift(),a.length&&s(a[0][0],a[0][1])}}var mQe=function(n){xVr(e,n);function e(t){var r=n.call(this,t)||this;return Object.defineProperty(r,"name",{value:"RepeaterOverflowError",enumerable:!1}),typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(r,r.constructor.prototype):r.__proto__=r.constructor.prototype,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(r,r.constructor),r}return e}(Error);(function(){function n(e){if(e<0)throw new RangeError("Capacity may not be less than 0");this._c=e,this._q=[]}return Object.defineProperty(n.prototype,"empty",{get:function(){return this._q.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"full",{get:function(){return this._q.length>=this._c},enumerable:!1,configurable:!0}),n.prototype.add=function(e){if(this.full)throw new Error("Buffer full");this._q.push(e)},n.prototype.remove=function(){if(this.empty)throw new Error("Buffer empty");return this._q.shift()},n})();(function(){function n(e){if(e<1)throw new RangeError("Capacity may not be less than 1");this._c=e,this._q=[]}return Object.defineProperty(n.prototype,"empty",{get:function(){return this._q.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"full",{get:function(){return!1},enumerable:!1,configurable:!0}),n.prototype.add=function(e){for(;this._q.length>=this._c;)this._q.shift();this._q.push(e)},n.prototype.remove=function(){if(this.empty)throw new Error("Buffer empty");return this._q.shift()},n})();(function(){function n(e){if(e<1)throw new RangeError("Capacity may not be less than 1");this._c=e,this._q=[]}return Object.defineProperty(n.prototype,"empty",{get:function(){return this._q.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"full",{get:function(){return!1},enumerable:!1,configurable:!0}),n.prototype.add=function(e){this._q.length=Q7;return Promise.resolve(e).then(function(r){return!t&&n.state>=rne?sM(n).then(function(i){return{value:i,done:!0}}):{value:r,done:t}})}function zce(n,e){var t,r;if(!(n.state>=U2))if(n.state=U2,n.onnext(),n.onstop(),n.err==null&&(n.err=e),n.pushes.length===0&&(typeof n.buffer>"u"||n.buffer.empty))NR(n);else try{for(var i=xL(n.pushes),a=i.next();!a.done;a=i.next()){var o=a.value;o.resolve()}}catch(s){t={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}function NR(n){var e,t;if(!(n.state>=Q7)){n.state=rne||(n.state=ez)throw new mQe("No more than "+ez+" pending calls to push are allowed on a single repeater.");if(n.state>=U2)return Promise.resolve(void 0);var t=n.pending===void 0?Promise.resolve(e):n.pending.then(function(){return e});t=t.catch(function(l){n.state=nPe)){n.state=nPe;var e=wVr.bind(null,n),t=bVr(n);n.execution=new Promise(function(r){return r(n.executor(e,t))}),n.execution.catch(function(){return zce(n)})}}var Z6=new WeakMap,aF=function(){function n(e,t){Z6.set(this,{executor:e,buffer:t,err:void 0,state:LZ,pushes:[],nexts:[],pending:void 0,execution:void 0,onnext:tz,onstop:tz})}return n.prototype.next=function(e){tne(e);var t=Z6.get(this);if(t===void 0)throw new Error("WeakMap error");if(t.nexts.length>=ez)throw new mQe("No more than "+ez+" pending calls to next are allowed on a single repeater.");if(t.state<=LZ&&EVr(t),t.onnext(e),typeof t.buffer<"u"&&!t.buffer.empty){var r=Jb(t,t.buffer.remove());if(t.pushes.length){var i=t.pushes.shift();t.buffer.add(i.value),t.onnext=i.resolve}return r}else if(t.pushes.length){var a=t.pushes.shift();return t.onnext=a.resolve,Jb(t,a.value)}else if(t.state>=U2)return NR(t),Jb(t,sM(t));return new Promise(function(o){return t.nexts.push({resolve:o,value:e})})},n.prototype.return=function(e){tne(e);var t=Z6.get(this);if(t===void 0)throw new Error("WeakMap error");return NR(t),t.execution=Promise.resolve(t.execution).then(function(){return e}),Jb(t,sM(t))},n.prototype.throw=function(e){var t=Z6.get(this);if(t===void 0)throw new Error("WeakMap error");return t.state<=LZ||t.state>=U2||typeof t.buffer<"u"&&!t.buffer.empty?(NR(t),t.err==null&&(t.err=e),Jb(t,sM(t))):this.next(Promise.reject(e))},n.prototype[Symbol.asyncIterator]=function(){return this},n.race=TVr,n.merge=CVr,n.zip=AVr,n.latest=MVr,n}();function U$(n,e){var t,r,i=[],a=function(u){u!=null&&typeof u[Symbol.asyncIterator]=="function"?i.push(u[Symbol.asyncIterator]()):u!=null&&typeof u[Symbol.iterator]=="function"?i.push(u[Symbol.iterator]()):i.push(function(){return SVr(this,arguments,function(){return yw(this,function(f){switch(f.label){case 0:return e.yieldValues?[4,YN(u)]:[3,3];case 1:return[4,f.sent()];case 2:f.sent(),f.label=3;case 3:return e.returnValues?[4,YN(u)]:[3,5];case 4:return[2,f.sent()];case 5:return[2]}})})}())};try{for(var o=xL(n),s=o.next();!s.done;s=o.next()){var l=s.value;a(l)}}catch(u){t={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return i}function TVr(n){var e=this,t=U$(n,{returnValues:!0});return new aF(function(r,i){return xI(e,void 0,void 0,function(){var a,o,s,l,u,h;return yw(this,function(c){switch(c.label){case 0:if(!t.length)return i(),[2];o=!1,i.then(function(){a(),o=!0}),c.label=1;case 1:c.trys.push([1,,5,7]),l=void 0,u=0,h=function(){var f,d,v,p,g,m;return yw(this,function(y){switch(y.label){case 0:f=u;try{for(d=(g=void 0,xL(t)),v=d.next();!v.done;v=d.next())p=v.value,Promise.resolve(p.next()).then(function(_){_.done?(i(),s===void 0&&(s=_)):u===f&&(u++,a(_))},function(_){return i(_)})}catch(_){g={error:_}}finally{try{v&&!v.done&&(m=d.return)&&m.call(d)}finally{if(g)throw g.error}}return[4,new Promise(function(_){return a=_})];case 1:return l=y.sent(),l===void 0?[3,3]:[4,r(l.value)];case 2:y.sent(),y.label=3;case 3:return[2]}})},c.label=2;case 2:return o?[3,4]:[5,h()];case 3:return c.sent(),[3,2];case 4:return[2,s&&s.value];case 5:return i(),[4,Promise.race(t.map(function(f){return f.return&&f.return()}))];case 6:return c.sent(),[7];case 7:return[2]}})})})}function CVr(n){var e=this,t=U$(n,{yieldValues:!0});return new aF(function(r,i){return xI(e,void 0,void 0,function(){var a,o,s,l=this;return yw(this,function(u){switch(u.label){case 0:if(!t.length)return i(),[2];a=[],o=!1,i.then(function(){var h,c;o=!0;try{for(var f=xL(a),d=f.next();!d.done;d=f.next()){var v=d.value;v()}}catch(p){h={error:p}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(h)throw h.error}}}),u.label=1;case 1:return u.trys.push([1,,3,4]),[4,Promise.all(t.map(function(h,c){return xI(l,void 0,void 0,function(){var f,d;return yw(this,function(v){switch(v.label){case 0:v.trys.push([0,,6,9]),v.label=1;case 1:return o?[3,5]:(Promise.resolve(h.next()).then(function(p){return a[c](p)},function(p){return i(p)}),[4,new Promise(function(p){a[c]=p})]);case 2:return f=v.sent(),f===void 0?[3,4]:f.done?(s=f,[2]):[4,r(f.value)];case 3:v.sent(),v.label=4;case 4:return[3,1];case 5:return[3,9];case 6:return d=h.return,d?[4,h.return()]:[3,8];case 7:d=v.sent(),v.label=8;case 8:return[7];case 9:return[2]}})})}))];case 2:return u.sent(),[2,s&&s.value];case 3:return i(),[7];case 4:return[2]}})})})}function AVr(n){var e=this,t=U$(n,{returnValues:!0});return new aF(function(r,i){return xI(e,void 0,void 0,function(){var a,o,s,l;return yw(this,function(u){switch(u.label){case 0:if(!t.length)return i(),[2,[]];o=!1,i.then(function(){a(),o=!0}),u.label=1;case 1:u.trys.push([1,,6,8]),u.label=2;case 2:return o?[3,5]:(Promise.all(t.map(function(h){return h.next()})).then(function(h){return a(h)},function(h){return i(h)}),[4,new Promise(function(h){return a=h})]);case 3:return s=u.sent(),s===void 0?[2]:(l=s.map(function(h){return h.value}),s.some(function(h){return h.done})?[2,l]:[4,r(l)]);case 4:return u.sent(),[3,2];case 5:return[3,8];case 6:return i(),[4,Promise.all(t.map(function(h){return h.return&&h.return()}))];case 7:return u.sent(),[7];case 8:return[2]}})})})}function MVr(n){var e=this,t=U$(n,{yieldValues:!0,returnValues:!0});return new aF(function(r,i){return xI(e,void 0,void 0,function(){var a,o,s,l,u,h=this;return yw(this,function(c){switch(c.label){case 0:if(!t.length)return i(),[2,[]];o=[],s=!1,i.then(function(){var f,d;a();try{for(var v=xL(o),p=v.next();!p.done;p=v.next()){var g=p.value;g()}}catch(m){f={error:m}}finally{try{p&&!p.done&&(d=v.return)&&d.call(v)}finally{if(f)throw f.error}}s=!0}),c.label=1;case 1:return c.trys.push([1,,5,7]),Promise.all(t.map(function(f){return f.next()})).then(function(f){return a(f)},function(f){return i(f)}),[4,new Promise(function(f){return a=f})];case 2:return l=c.sent(),l===void 0?[2]:(u=l.map(function(f){return f.value}),l.every(function(f){return f.done})?[2,u]:[4,r(u.slice())]);case 3:return c.sent(),[4,Promise.all(t.map(function(f,d){return xI(h,void 0,void 0,function(){var v;return yw(this,function(p){switch(p.label){case 0:if(l[d].done)return[2,l[d].value];p.label=1;case 1:return s?[3,4]:(Promise.resolve(f.next()).then(function(g){return o[d](g)},function(g){return i(g)}),[4,new Promise(function(g){return o[d]=g})]);case 2:return v=p.sent(),v===void 0?[2,l[d].value]:v.done?[2,v.value]:(u[d]=v.value,[4,r(u.slice())]);case 3:return p.sent(),[3,1];case 4:return[2]}})})}))];case 4:return[2,c.sent()];case 5:return i(),[4,Promise.all(t.map(function(f){return f.return&&f.return()}))];case 6:return c.sent(),[7];case 7:return[2]}})})})}class qN{constructor(){this._extraRequestThreshold=256*1024}extraRequestThreshold(){return this._extraRequestThreshold}setExtraRequestThreshold(e){if(e<0)throw new Error("extraRequestThreshold cannot be negative");this._extraRequestThreshold=e}}qN.global=new qN;var Ug;(function(n){n[n.Debug=0]="Debug",n[n.Info=1]="Info",n[n.Warn=2]="Warn",n[n.Error=3]="Error"})(Ug||(Ug={}));class Nh{static debug(...e){this.log(Ug.Debug,...e)}static info(...e){this.log(Ug.Info,...e)}static warn(...e){this.log(Ug.Warn,...e)}static error(...e){this.log(Ug.Error,...e)}static log(e,...t){if(!(this.logLevel>e))switch(e){case Ug.Debug:{console.debug(...t);break}case Ug.Info:{console.info(...t);break}case Ug.Warn:{console.warn(...t);break}case Ug.Error:{console.error(...t);break}}}}Nh.logLevel=Ug.Info;const kR=8*4+8,IVr=16;function Uce(n,e){e=Math.min(Math.max(+e,2),65535);let t=n,r=t;do t=Math.ceil(t/e),r+=t;while(t!==1);return r*kR}function LVr(n,e){if(e<2)throw new Error("Node size must be at least 2");if(n===0)throw new Error("Number of items must be greater than 0");let t=n,r=t;const i=[t];do t=Math.ceil(t/e),r+=t,i.push(t);while(t!==1);const a=[];t=r;for(const s of i)a.push(t-s),t-=s;a.reverse(),i.reverse();const o=[];for(let s=0;sthis.nodes[1]),this.nodes[1]=v}toString(){return`[NodeRange level: ${this._level}, nodes: ${this.nodes[0]}-${this.nodes[1]}]`}}const{minX:a,minY:o,maxX:s,maxY:l}=t;Nh.info(`tree items: ${n}, nodeSize: ${e}`);const u=LVr(n,e),h=u[0][0],f=[(()=>{const d=[0,1],v=u.length-1;return new i(d,v)})()];for(Nh.debug(`starting stream search with queue: ${f}, numItems: ${n}, nodeSize: ${e}, levelBounds: ${u}`);f.length!=0;){const d=f.shift();Nh.debug(`popped node: ${d}, queueLength: ${f.length}`);const v=d.startNode(),p=v>=h,[,g]=u[d.level()],m=Math.min(d.endNode()+e,g),y=m-v,_=await r(v*kR,y*kR),x=new Float64Array(_),S=new Uint32Array(_);for(let w=v;wx[b+2]||o>x[b+3])continue;const E=S[(b<<1)+8],T=S[(b<<1)+9],C=aPe(T,E);if(p){const R=(()=>{if(w ${C}`),M.extendEndNodeToNewOffset(C);continue}const I=(()=>{const R=d.level()-1,k=[C,C+1];return new i(k,R)})();M!==void 0&&M.level()==I.level()?Nh.info(`Same level, but too far away. Pushing new request at offset: ${C} rather than merging with distant ${M}`):Nh.info(`Pushing new level for ${I} onto queue with nearestNodeRange: ${M} since there's not already a range for this level.`),f.push(I)}}}function aPe(n,e){if((n&4293918720)!=0)throw Error("integer is too large to be safely represented");return e+n*2**32}const vS=new Uint8Array([102,103,98,3,102,103,98,0]),U1=4;class Vce{constructor(e,t,r,i){this.headerClient=e,this.header=t,this.headerLength=r,this.indexLength=i}static async open(e){const r=new oPe(e),i=(()=>{const c=IVr,f=3;let d=0,v;for(v=0;vvS[d]===f))throw Nh.error(`bytes: ${c} != ${vS}`),new Error("Not a FlatGeobuf file");Nh.debug("magic bytes look good")}let o;{const c=await r.getRange(8,4,a,"header");o=new DataView(c).getUint32(0,!0);const f=1048576*10;if(o>f||o<8)throw new Error("Invalid header size");Nh.debug(`headerLength: ${o}`)}const s=await r.getRange(12,o,a,"header"),l=new L_(new Uint8Array(s)),u=Gce(l),h=Uce(u.featuresCount,u.indexNodeSize);return Nh.debug("completed: opening http reader"),new Vce(r,u,o,h)}async*selectBbox(e){const t=this.lengthBeforeTree(),r=this.headerClient,i=async function(l,u){return r.getRange(t+l,u,0,"index")},a=[];let o=[];for await(const l of PVr(this.header.featuresCount,this.header.indexNodeSize,e,i)){const[u,,]=l;let[,,h]=l;if(h||(Nh.info("final feature"),h=qN.global.extraRequestThreshold()),o.length==0){o.push([u,h]);continue}const c=o[o.length-1],f=u-(c[0]+c[1]);f>qN.global.extraRequestThreshold()&&(Nh.info(`Pushing new feature batch, since gap ${f} was too large`),a.push(o),o=[]),o.push([u,h])}this.headerClient.logUsage("header+index"),o.length>0&&a.push(o);const s=a.flatMap(l=>this.readFeatureBatch(l));yield*aF.merge(s)}lengthBeforeTree(){return vS.length+U1+this.headerLength}lengthBeforeFeatures(){return this.lengthBeforeTree()+this.indexLength}buildFeatureClient(){return new oPe(this.headerClient.httpClient)}async*readFeatureBatch(e){const[t]=e[0],[r,i]=e[e.length-1],a=t,s=r+i-a,l=this.buildFeatureClient();for(const[u]of e)yield await this.readFeature(l,u,s);l.logUsage("feature")}async readFeature(e,t,r){const i=t+this.lengthBeforeFeatures();let a;{const h=await e.getRange(i,4,r,"feature length");a=new DataView(h).getUint32(0,!0)}const o=await e.getRange(i+4,a,r,"feature data"),s=new Uint8Array(o),l=new Uint8Array(a+U1);l.set(s,U1);const u=new L_(l);return u.setPosition(U1),$g.getRootAsFeature(u)}}class oPe{constructor(e){this.bytesEverUsed=0,this.bytesEverFetched=0,this.buffer=new ArrayBuffer(0),this.head=0,typeof e=="string"?this.httpClient=new OVr(e):this.httpClient=e}async getRange(e,t,r,i){this.bytesEverUsed+=t;const a=e-this.head,o=a+t;if(a>=0&&o<=this.buffer.byteLength)return this.buffer.slice(a,o);const s=Math.max(t,r);return this.bytesEverFetched+=s,Nh.debug(`requesting for new Range: ${e}-${e+t-1}`),this.buffer=await this.httpClient.getRange(e,s,i),this.head=e,this.buffer.slice(0,t)}logUsage(e){const t=e.split(" ")[0],r=this.bytesEverUsed,i=this.bytesEverFetched,a=(100*r/i).toFixed(2);Nh.info(`${t} bytes used/requested: ${r} / ${i} = ${a}%`)}}class OVr{constructor(e){this.requestsEverMade=0,this.bytesEverRequested=0,this.url=e}async getRange(e,t,r){this.requestsEverMade+=1,this.bytesEverRequested+=t;const i=`bytes=${e}-${e+t-1}`;return Nh.info(`request: #${this.requestsEverMade}, purpose: ${r}), bytes: (this_request: ${t}, ever: ${this.bytesEverRequested}), Range: ${i}`),(await fetch(this.url,{headers:{Range:i}})).arrayBuffer()}}function RVr(n,e,t){if(!n.subarray(0,3).every((h,c)=>vS[c]===h))throw new Error("Not a FlatGeobuf file");const r=new L_(n),i=r.readUint32(vS.length);r.setPosition(vS.length+U1);const a=Gce(r);t&&t(a);let o=vS.length+U1+i;const{indexNodeSize:s,featuresCount:l}=a;s>0&&(o+=Uce(l,s));const u=[];for(;oawait r.slice(f);let a=new Uint8Array(await i(8));if(!a.subarray(0,3).every((f,d)=>vS[d]===f))throw new Error("Not a FlatGeobuf file");a=new Uint8Array(await i(4));let o=new L_(a);const s=o.readUint32(0);a=new Uint8Array(await i(s)),o=new L_(a);const l=Gce(o);t&&t(l);const{indexNodeSize:u,featuresCount:h}=l;if(u>0){const f=Uce(h,u);await i(f)}let c;for(;c=await kVr(i,l,e);)yield c}async function*NVr(n,e,t,r){const i=await Vce.open(n);Nh.debug("opened reader"),r&&r(i.header);for await(const a of i.selectBbox(e))yield t(a,i.header)}async function kVr(n,e,t){let r=new Uint8Array(await n(4,"feature length"));if(r.byteLength===0)return;let i=new L_(r);const a=i.readUint32(0);r=new Uint8Array(await n(a,"feature data"));const o=new Uint8Array(a+4);o.set(r,4),i=new L_(o),i.setPosition(U1);const s=$g.getRootAsFeature(i);return t(s,e)}function FVr(n,e){return{type:"FeatureCollection",features:RVr(n,Fce,e)}}function BVr(n,e){return DVr(n,Fce,e)}function GVr(n,e,t){return NVr(n,e,Fce,t)}function zVr(n,e,t){return n instanceof Uint8Array?FVr(n,t):n instanceof ReadableStream?BVr(n,t):GVr(n,e,t)}class UVr extends _f{constructor(e){const t=Object.assign({strategy:uTe},e);delete t.url,delete t.extent,delete t.idField,super(t),this.options=e||{},this.strategy=t.strategy,this.url=this.options.url,this.extent=this.options.extent,this._idField=this.options.idField||"SmID",this._validatedId=!1,this._checked=!1,this.setLoader(async function(r){if(this.strategy===uTe&&(this._validatedId||this.clear(),this.extent)){const a=Not(this.extent,r);r=a&&a.length?a:this.extent}!this.extent&&(this.strategy===oXe||!isFinite(r[0]))&&(r=[]);let i;Object.keys(r).length||(i=await this._getStream(this.url)),this._handleFeatures(i&&i.body||this.url,r)})}async _handleFeatures(e,t){let r={};t&&t.length&&(r={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]});const i=zVr(e,r);for await(let a of i){let o=a.properties[this._idField];o&&!this._validatedId&&(this._validatedId=!0,this._checked=!0),a=new jc().readFeature(a),o&&this._checked&&a.setId(o),this.options.featureLoader&&typeof this.options.featureLoader=="function"&&(a=this.options.featureLoader(a)),this.addFeature(a)}}async _getStream(e){return await li.get(e,{},{withoutFormatSuffix:!0}).then(function(t){return t})}}class _Qe extends ml{constructor(e,t){super(e,t),this._knowledgeGraphService=new Sot(e,t)}query(e,t){return this._knowledgeGraphService.query(e,t)}getGraphMaps(e){return this._knowledgeGraphService.getGraphMaps(e)}getGraphMap(e,t){return this._knowledgeGraphService.getGraphMap(e,t)}async getGraphMapData(e){return await this._knowledgeGraphService.getGraphMapData(e)}}class VVr extends fT{constructor(e,t){super(),this.graph=null,this.EVENT_TYPES=["loaded"],this.url=e,this.options=t;const r=e.split("/").pop();this.url=e.replace(`/graphmaps/${r}`,""),this.createGraphMap(r,t)}async createGraphMap(e,t){this.knowledgeGraphService=this.createKnowledgeGraphService(this.url,t);const r=await this.knowledgeGraphService.getGraphMapData(e),i=mte.dataFromGraphMap(r.data,r.graphMap);this.graph=new mte(t&&t.config),this.graph.on("beforelayout",()=>{this.dispatchEvent(this.EVENT_TYPES[0])}),this.graph.setData(i),this.graph.handleNodeStatus(k4t(r.graphMap))}createKnowledgeGraphService(e,t){return new _Qe(e,t)}}var xQe=function(n){if(gm.prototype.getFlatMidpoint||(gm.prototype.getFlatMidpoint=function(){return this.getCoordinateAt(.5)}),br.getOlVersion()==="4"&&window&&window.ol&&window.ol.geom.flat){window.targetMapCache=n;let e=window.ol;e.format.MVT.prototype.readProjection=function(t){return new e.proj.Projection({code:"",units:e.proj.Units.TILE_PIXELS})},e.format.MVT.prototype.readProjection=function(t){return new e.proj.Projection({code:"",units:e.proj.Units.TILE_PIXELS})},e.render.canvas.Replay.prototype.applyFill=function(t,r){var i=t.fillStyle,a=[e.render.canvas.Instruction.SET_FILL_STYLE,i];if(typeof i!="string"){var o=window.targetMapCache.getView().getProjection().getExtent();a.push([o[0],o[3]])}this.instructions.push(a)},e.render.canvas.Replay.prototype.applyFill=function(t,r){var i=t.fillStyle,a=[e.render.canvas.Instruction.SET_FILL_STYLE,i];if(typeof i!="string"){var o=window.targetMapCache.getView().getProjection().getExtent();a.push([o[0],o[3]])}this.instructions.push(a)},e.format.MVT.prototype.createFeature_=function(t,r,i){var a=r.type;if(a===0)return null;var o,s=r.id,l=r.properties;l[this.layerName_]=r.layer.name;var u=[],h=[];e.format.MVT.readRawGeometry_(t,r,u,h);var c=e.format.MVT.getGeometryType_(a,h.length);if(this.featureClass_===e.render.Feature)o=new this.featureClass_(c,u,h,l,s);else{var f;if(c==e.geom.GeometryType.POLYGON){for(var d=[],v=0,p=0,g=0,m=h.length;g1?(h=d,f=new e.geom.MultiPolygon(null)):f=new e.geom.Polygon(null)}else f=c===e.geom.GeometryType.POINT?new e.geom.Point(null):c===e.geom.GeometryType.LINE_STRING?new e.geom.LineString(null):c===e.geom.GeometryType.POLYGON?new e.geom.Polygon(null):c===e.geom.GeometryType.MULTI_POINT?new e.geom.MultiPoint(null):c===e.geom.GeometryType.MULTI_LINE_STRING?new e.geom.MultiLineString(null):null;if(f){f.setFlatCoordinates(e.geom.GeometryLayout.XY,u,h),o=new this.featureClass_,this.geometryName_&&o.setGeometryName(this.geometryName_);var _=e.format.Feature.transformWithOptions(f,!1,this.adaptOptions(i));o.setGeometry(_),o.setId(s),o.setProperties(l)}}return o},e.geom.flat.textpath.lineString=function(t,r,i,a,o,s,l,u){var h=[],c=Math.atan2(t[i-a+1]-t[r+1],t[i-a]-t[r]),f=c<-.785||c>2.356,d=c<-.785&&c>-2.356||c>.785&&c<2.356,v=o.length,p=t[r],g=t[r+1];r+=a;for(var m=t[r],y=t[r+1],_=0,x=Math.sqrt(Math.pow(m-p,2)+Math.pow(y-g,2));r=19968&&D<=40907;E=f?k+E:E+k;var V=s(E)-T;for(T+=V;r1?le:le<0||le>1?Y:Y1?le:le<0||le>1?Y:Y0?-Math.PI:Math.PI),G&&d&&(se+=se>0?-Math.PI/2:Math.PI/2),M!==void 0){var me=se-M;if(me+=me>Math.PI?-2*Math.PI:me<-Math.PI?2*Math.PI:0,G===I?Math.abs(me)>u:Math.abs(me)>u+Math.PI/2)return null}M==se&&!d?(f&&(C[0]=H,C[1]=Q,C[2]=V/2),C[4]=E):(E=k,T=V,C=[H,Q,V/2,se,E],f?h.unshift(C):h.push(C),M=se,I=G),w=ie,b=oe,l+=V}return h},e.layer.VectorTile.prototype.setFastRender=function(t){return this.fastRender=t},e.renderer.canvas.VectorTileLayer.prototype.postCompose=function(t,r,i){var a=this.getLayer(),o=a.getDeclutter()?{}:null,s=a.getSource(),l=a.getRenderMode(),u=e.renderer.canvas.VectorTileLayer.VECTOR_REPLAYS[l],h=r.pixelRatio,c=r.viewState.rotation,f=r.size,d,v;c&&(d=Math.round(h*f[0]/2),v=Math.round(h*f[1]/2),e.render.canvas.rotateAtOffset(t,-c,d,v)),o&&this.declutterTree_.clear();for(var p=this.renderedTiles,g=s.getTileGridForProjection(r.viewState.projection),m=[],y=[],_=p.length-1;_>=0;--_){var x=p[_];if(x.getState()!=e.TileState.ABORT)for(var S=x.tileCoord,w=g.getTileCoordExtent(S)[0]-g.getTileCoordExtent(x.wrappedTileCoord)[0],b=void 0,E=0,T=x.tileKeys.length;E-1}function ut(ne,ye){var Ue=this.__data__,Bt=js(Ue,ne);return Bt<0?Ue.push([ne,ye]):Ue[Bt][1]=ye,this}Me.prototype.clear=nt,Me.prototype.delete=It,Me.prototype.get=ot,Me.prototype.has=ht,Me.prototype.set=ut;function qt(ne){var ye=-1,Ue=ne?ne.length:0;for(this.clear();++ye$t?0:$t+ye),Ue=Ue>$t?$t:Ue,Ue<0&&(Ue+=$t),$t=ye>Ue?0:Ue-ye>>>0,ye>>>=0;for(var ee=Array($t);++Bt<$t;)ee[Bt]=ne[Bt+ye];return ee}function bs(ne){if(typeof ne=="string")return ne;if(Re(ne))return Pn?Pn.call(ne):"";var ye=ne+"";return ye=="0"&&1/ne==-s?"-0":ye}function lf(ne){return O(ne)?ne:Vv(ne)}function gg(ne,ye,Ue,Bt,$t,ee){var Se=$t&o,Ze=ne.length,Ct=ye.length;if(Ze!=Ct&&!(Se&&Ct>Ze))return!1;var vr=ee.get(ne);if(vr&&ee.get(ye))return vr==ye;var Cr=-1,Jr=!0,nn=$t&a?new bi:void 0;for(ee.set(ne,ye),ee.set(ye,ne);++Cr-1&&ne%1==0&&ne-1&&ne%1==0&&ne<=l}function q(ne){var ye=typeof ne;return!!ne&&(ye=="object"||ye=="function")}function Ae(ne){return!!ne&&typeof ne=="object"}function Re(ne){return typeof ne=="symbol"||Ae(ne)&&Sr.call(ne)==b}var Be=Zt?ft(Zt):pg;function Je(ne){return ne==null?"":bs(ne)}function Xe(ne,ye,Ue){var Bt=ne==null?void 0:fg(ne,ye);return Bt===void 0?Ue:Bt}function _t(ne,ye){return ne!=null&&Hm(ne,ye,Xd)}function rt(ne){return F(ne)?ec(ne):of(ne)}function Ht(ne){return ne}function Yt(ne){return bc(ne)?ur(hf(ne)):Kl(ne)}n.exports=_g})(nne,nne.exports);const $Vr=nne.exports;class SQe extends fT{constructor(e){super(),e=e||{},this.spriteRegEx=/^(.*)(\?.*)$/,this.defaultFont=["DIN Offc Pro Medium","Arial Unicode MS Regular"],this.map=e.map,this.source=e.source,this.styleTarget=e.style||W.urlAppend(W.urlPathAppend(e.url,"tileFeature/vectorstyles"),"type=MapBox_GL&styleonly=true"),this.resolutions=e.resolutions,this.withCredentials=e.withCredentials,this.selectedObjects=[],this.selectedStyle=e.selectedStyle||function(){return new So({fill:new Zo({color:"rgba(255, 0, 0, 1)"}),stroke:new es({color:"rgba(255, 0, 0, 1)",width:10}),text:new J1({font:'normal 400 11.19px "Microsoft YaHei"',placement:"point",fill:new Zo({color:"blue"})}),image:new rm({radius:5,fill:new Zo({color:"blue"})})})},this.layersBySourceLayer={},xQe(this.map),this._loadStyle(this.styleTarget)}getStyleFunction(){return this.featureStyleFuntion}getStylesBySourceLayer(e){if(this.layersBySourceLayer[e])return this.layersBySourceLayer[e];const t=[];for(let r=0;r{$Vr(this.selectedObjects,r=>t.id===r.id&&t.sourceLayer===r.sourceLayer)})}clearSelectedObjects(){this.selectedObjects=[]}updateStyles(e){Object.prototype.toString.call(e)!=="[object Array]"&&(e=[e]);const t={};e.forEach(i=>{t[i.id]=i});let r=0;for(const i in this._mbStyle.layers){const a=this._mbStyle.layers[i];if(r>=e.length)break;if(!t[a.id])continue;const o=JSON.parse(JSON.stringify(t[a.id]));o.paint&&(o.paint=Object.assign({},a.paint,o.paint)),o.layout&&(o.layout=Object.assign({},a.layout,o.layout)),Object.assign(a,o),r++}this._createStyleFunction()}setStyle(e){this.layersBySourceLayer={},this._loadStyle(e)}_loadStyle(e){if(Object.prototype.toString.call(e)=="[object Object]")this._mbStyle=e,this._resolve();else{var t=xs.appendCredential(e);li.get(t,null,{withCredentials:this.withCredentials}).then(r=>r.json()).then(r=>{this._mbStyle=r,this._resolve()})}}_resolve(){if(this.source||(this.source=Object.keys(this._mbStyle.sources)[0]),this._mbStyle.sprite){const t=(window.devicePixelRatio>=1.5?.5:1)==.5?"@2x":"";this._mbStyle.sprite=this._mbStyle.sprite.replace("@2x","");const r=this._toSpriteUrl(this._mbStyle.sprite,this.path,t+".json");li.get(xs.appendCredential(r),null,{withCredentials:this.withCredentials}).then(i=>i.json()).then(i=>{this._spriteData=i,this._spriteImageUrl=xs.appendCredential(this._toSpriteUrl(this._mbStyle.sprite,this.path,t+".png")),this._spriteImage=null;const a=new Image;a.crossOrigin=this.withCredentials?"use-credentials":"anonymous",a.onload=()=>{this._spriteImage=a,this._initStyleFunction()},a.onerror=()=>{this._spriteImage=null,this._initStyleFunction()},a.src=this._spriteImageUrl}).catch(i=>{console.log(i),this._spriteImage=null,this._initStyleFunction()})}else this._initStyleFunction()}_initStyleFunction(){if(!this.resolutions&&this._mbStyle.metadata&&this._mbStyle.metadata.indexbounds){const t=this._mbStyle.metadata.indexbounds;var e=Math.max(t[2]-t[0],t[3]-t[1]);const r=[];for(let i=0;i<30;i++)r.push(e/512/Math.pow(2,i));this.resolutions=r}this._createStyleFunction(),this.dispatchEvent("styleloaded")}_createStyleFunction(){this.map&&window.olms.applyBackground(this.map,this._mbStyle),this.featureStyleFuntion=this._getStyleFunction()}_getStyleFunction(){return this.fun=window.olms.stylefunction({setStyle:function(){},set:function(){},changed:function(){}},this._mbStyle,this.source,this.resolutions,this._spriteData,"",this._spriteImage),(e,t)=>{const r=this.fun(e,t);if(this.selectedObjects.length>0&&this.selectedObjects.find(i=>i.id===e.getId()&&i.sourceLayer===e.get("layer"))){const i=r&&r[0]?r[0].getZIndex():99999;let a=this.selectedStyle(e,t);Array.isArray(a)||(a=[a]);for(let o=0;o2?i[2]:""):e+r}}class WVr extends ml{constructor(e,t){super(e,t),this._addressMatchService=new jOe(this.url,{proxy:this.options.proxy,withCredentials:this.options.withCredentials,crossOrigin:this.options.crossOrigin,headers:this.options.headers})}code(e,t){return this._addressMatchService.code(W.urlPathAppend(this.url,"geocoding"),e,t)}decode(e,t){return this._addressMatchService.decode(W.urlPathAppend(this.url,"geodecoding"),e,t)}}class HVr{constructor(e,t){this.url=e,this.options=t||{}}queryChart(e,t,r){var i=this,a=e,o=i._processFormat(r),s=new nRe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:o});return s.processAsync(a,t)}getChartFeatureInfo(e){var t=this,r=W.urlPathAppend(t.url,"chartFeatureInfoSpecs"),i=new eRe(r,{proxy:t.options.proxy,withCredentials:t.options.withCredentials,crossOrigin:t.options.crossOrigin,headers:t.options.headers});return i.processAsync(e)}_processFormat(e){return e||Ni.GEOJSON}}class jVr extends ml{constructor(e,t){super(e,t),this._chartService=new HVr(e,t)}queryChart(e,t,r){return e=this._processParams(e),this._chartService.queryChart(e,t,r)}getChartFeatureInfo(e){return this._chartService.getChartFeatureInfo(e)}_processParams(e){if(!e)return{};e.returnContent=e.returnContent==null?!0:e.returnContent,e.filter&&(e.chartQueryFilterParameters=br.isArray(e.filter)?e.filter:[e.filter]),e.bounds&&(e.bounds=new po(e.bounds[0],e.bounds[1],e.bounds[2],e.bounds[3]))}}class XVr{constructor(e,t){this.url=e,this.options=t||{}}getFields(e,t){var r=this,i=new QRe(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,datasource:e.datasource,dataset:e.dataset});return i.processAsync(t)}getFieldStatisticsInfo(e,t){if(e instanceof CRe){var r=this,i=e.fieldName,a=e.statisticMode;a&&!Array.isArray(a)&&(a=[a]),r.currentStatisticResult={fieldName:i},r._statisticsCallback=t,a.forEach(o=>{r.currentStatisticResult[o]=null,r._fieldStatisticRequest(e.datasource,e.dataset,i,o)})}}_fieldStatisticRequest(e,t,r,i){var a=this,o=new ARe(a.url,{datasource:e,dataset:t,field:r,statisticMode:i,crossOrigin:a.options.crossOrigin,headers:a.options.headers});o.processAsync(a._processCompleted.bind(a))}_processCompleted(e){var t=this;if(e.error){t._statisticsCallback(e);return}var r=!0,i=e.result;this.currentStatisticResult&&t.currentStatisticResult[i.mode]==null&&(this.currentStatisticResult[i.mode]=i.result);for(var a in t.currentStatisticResult)if(t.currentStatisticResult[a]==null){r=!1;break}r&&t._statisticsCallback({result:t.currentStatisticResult})}}class YVr extends ml{constructor(e,t){super(e,t),this._fieldService=new XVr(e,t)}getFields(e,t){return this._fieldService.getFields(e,t)}getFieldStatisticsInfo(e,t){return this._fieldService.getFieldStatisticsInfo(e,t)}}class qVr extends ml{constructor(e,t){super(e,t),this._datasetService=new jRe(this.url,{proxy:this.options.proxy,withCredentials:this.options.withCredentials,crossOrigin:this.options.crossOrigin,headers:this.options.headers})}getDatasets(e,t){if(!!e)return this._datasetService.getDatasetsService(e,t)}getDataset(e,t,r){if(!(!e||!t))return this._datasetService.getDatasetService(e,t,r)}setDataset(e,t){if(!(!(e instanceof xK)&&!(e instanceof SK))){if(e instanceof xK)var r={datasetType:e.datasetType,datasetName:e.datasetName,datasourceName:e.datasourceName};else e instanceof SK&&(r={datasetName:e.datasetName,datasourceName:e.datasourceName,isFileCache:e.isFileCache,description:e.description,prjCoordSys:e.prjCoordSys,charset:e.charset});return this._datasetService.setDatasetService(r,t)}}deleteDataset(e,t,r){return this._datasetService.deleteDatasetService(e,t,r)}}class ZVr extends ml{constructor(e,t){super(e,t),this._datasourceService=new cRe(this.url,{proxy:this.proxy,withCredentials:this.withCredentials,crossOrigin:this.crossOrigin,headers:this.headers})}getDatasources(e){return this._datasourceService.getDatasourcesService(e)}getDatasource(e,t){if(!!e)return this._datasourceService.getDatasourceService(e,t)}setDatasource(e,t){if(!(e instanceof $De))return;const r={description:e.description,coordUnit:e.coordUnit,distanceUnit:e.distanceUnit,datasourceName:e.datasourceName};return this._datasourceService.setDatasourceService(r,t)}}class KVr extends ml{constructor(e,t){super(e,t),this._gridCellQueryService=new tDe(this.url,{proxy:this.options.proxy,withCredentials:this.options.withCredentials,crossOrigin:this.options.crossOrigin,headers:this.options.headers})}getGridCellInfos(e,t){return e?this._gridCellQueryService.processAsync(e,t):null}}class JVr extends ml{constructor(e,t){super(e,t),this.headers=!0,this.crossOrigin=!0,this.withCredentials=!0,this.proxy=!0,this._geoprocessingJobsService=new $Re(this.url,{proxy:this.options.proxy,withCredentials:this.options.withCredentials,crossOrigin:this.options.crossOrigin,headers:this.options.headers})}getTools(e){return this._geoprocessingJobsService.getTools(e)}getTool(e,t){return this._geoprocessingJobsService.getTool(e,t)}execute(e,t,r,i){return this._geoprocessingJobsService.execute(e,t,r,i)}submitJob(e,t,r,i){return this._geoprocessingJobsService.submitJob(e,t,r,i)}waitForJobCompletion(e,t,r,i){return this._geoprocessingJobsService.waitForJobCompletion(e,t,r,i)}getJobInfo(e,t,r){return this._geoprocessingJobsService.getJobInfo(e,t,r)}cancelJob(e,t,r){return this._geoprocessingJobsService.cancelJob(e,t,r)}getJobs(e,t){return this._geoprocessingJobsService.getJobs(e,t)}getResults(e,t,r,i){return this._geoprocessingJobsService.getResults(e,t,r,i)}}class QVr{constructor(e,t){this.url=e,this.options=t||{}}getLayersInfo(e){var t=this,r=new lDe(t.url,{proxy:t.options.proxy,withCredentials:t.options.withCredentials,crossOrigin:t.options.crossOrigin,headers:t.options.headers});return r.processAsync(e)}getLayersLegendInfo(e,t){var r=this,i=new FDe(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers});return i.processAsync(e,t)}setLayerInfo(e,t){if(!!e){var r=this,i=e.resourceID,a=e.tempLayerName,o=e.layerInfo;if(!(!i||!a)){var s=W.urlPathAppend(r.url,"tempLayersSet/"+i+"/"+a),l=new WDe(s,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers});return l.processAsync(o,t)}}}setLayersInfo(e,t){if(!!e){var r=this,i=e.resourceID,a=e.isTempLayers?e.isTempLayers:!1,o=e.layersInfo;if(!(a&&!i||!o)){var s=new HDe(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,resourceID:i,isTempLayers:a});return s.processAsync(o,t)}}}setLayerStatus(e,t){if(!!e){var r=this,i=new XDe(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers});return i.processAsync(e,t)}}}class e$r extends ml{constructor(e,t){super(e,t),this._layerInfoService=new QVr(e,t)}getLayersInfo(e){return this._layerInfoService.getLayersInfo(e)}getLayersLegendInfo(e,t){return this._layerInfoService.getLayersLegendInfo(e,t)}setLayerInfo(e,t){return this._layerInfoService.setLayerInfo(e,t)}setLayersInfo(e,t){return this._layerInfoService.setLayersInfo(e,t)}setLayerStatus(e,t){return this._layerInfoService.setLayerStatus(e,t)}}class t$r extends ml{constructor(e,t){super(e,t)}measureDistance(e,t){return this.measure(e,"DISTANCE",t)}measureArea(e,t){return this.measure(e,"AREA",t)}measure(e,t,r){var i=this,a=new yDe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,measureMode:t});return a.processAsync(i._processParam(e),r)}_processParam(e){return e&&e.geometry&&(e.geometry=br.toSuperMapGeometry(JSON.parse(new jc().writeGeometry(e.geometry)))),e}}class r$r{constructor(e,t){this.url=e,this.options=t||{}}sinksFacilityAnalyst(e,t){var r=this,i=new vRe(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers});return i.processAsync(e,t)}sourcesFacilityAnalyst(e,t){var r=this,i=new gRe(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers});return i.processAsync(e,t)}traceUpFacilityAnalyst(e,t){var r=this,i=new wRe(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers});return i.processAsync(e,t)}traceDownFacilityAnalyst(e,t){var r=this,i=new xRe(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers});return i.processAsync(e,t)}upstreamFacilityAnalyst(e,t){var r=this,i=new ERe(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers});return i.processAsync(e,t)}}class n$r extends ml{constructor(e,t){super(e,t),this._networkAnalyst3DService=new r$r(e,t)}sinksFacilityAnalyst(e,t){return this._networkAnalyst3DService.sinksFacilityAnalyst(e,t)}sourcesFacilityAnalyst(e,t){return this._networkAnalyst3DService.sourcesFacilityAnalyst(e,t)}traceUpFacilityAnalyst(e,t){return this._networkAnalyst3DService.traceUpFacilityAnalyst(e,t)}traceDownFacilityAnalyst(e,t){return this._networkAnalyst3DService.traceDownFacilityAnalyst(e,t)}upstreamFacilityAnalyst(e,t){return this._networkAnalyst3DService.upstreamFacilityAnalyst(e,t)}}class i$r{constructor(e,t){this.url=e,this.options=t||{}}burstPipelineAnalyst(e,t){var r=this,i=new QOe(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers});return i.processAsync(e,t)}computeWeightMatrix(e,t){var r=this,i=new sRe(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers});return i.processAsync(e,t)}findClosestFacilities(e,t,r){var i=this,a=new IRe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}traceAnalyst(e,t,r){var i=this,a=new DDe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}connectedEdgesAnalyst(e,t,r){var i=this,a=new kDe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}streamFacilityAnalyst(e,t,r){var i=this,a=new mRe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}findLocation(e,t,r){var i=this,a=new PRe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}findPath(e,t,r){var i=this,a=new NRe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}findTSPPaths(e,t,r){var i=this,a=new GRe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}findMTSPPaths(e,t,r){var i=this,a=new RRe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}findServiceAreas(e,t,r){var i=this,a=new FRe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}updateEdgeWeight(e,t){var r=this,i=new dNe(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers});return i.processAsync(e,t)}updateTurnNodeWeight(e,t){var r=this,i=new pNe(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers});return i.processAsync(e,t)}_processFormat(e){return e||Ni.GEOJSON}}class a$r extends ml{constructor(e,t){super(e,t),this._networkAnalystService=new i$r(e,t)}burstPipelineAnalyst(e,t){return e=this._processParams(e),this._networkAnalystService.burstPipelineAnalyst(e,t)}computeWeightMatrix(e,t){return e=this._processParams(e),this._networkAnalystService.computeWeightMatrix(e,t)}findClosestFacilities(e,t,r){return e=this._processParams(e),this._networkAnalystService.findClosestFacilities(e,t,r)}traceAnalyst(e,t,r){return e=this._processParams(e),this._networkAnalystService.traceAnalyst(e,t,r)}connectedEdgesAnalyst(e,t,r){return e=this._processParams(e),this._networkAnalystService.connectedEdgesAnalyst(e,t,r)}streamFacilityAnalyst(e,t,r){return e=this._processParams(e),this._networkAnalystService.streamFacilityAnalyst(e,t,r)}findLocation(e,t,r){return e=this._processParams(e),this._networkAnalystService.findLocation(e,t,r)}findPath(e,t,r){return e=this._processParams(e),this._networkAnalystService.findPath(e,t,r)}findTSPPaths(e,t,r){return e=this._processParams(e),this._networkAnalystService.findTSPPaths(e,t,r)}findMTSPPaths(e,t,r){return e=this._processParams(e),this._networkAnalystService.findMTSPPaths(e,t,r)}findServiceAreas(e,t,r){return e=this._processParams(e),this._networkAnalystService.findServiceAreas(e,t,r)}updateEdgeWeight(e,t){return this._networkAnalystService.updateEdgeWeight(e,t)}updateTurnNodeWeight(e,t){return this._networkAnalystService.updateTurnNodeWeight(e,t)}_processParams(e){if(!e)return{};if(e.centers&&br.isArray(e.centers)&&e.centers.map(function(r,i){return e.centers[i]=r instanceof Qs?{x:r.getCoordinates()[0],y:r.getCoordinates()[1]}:r,e.centers[i]}),e.nodes&&br.isArray(e.nodes)&&e.nodes.map(function(r,i){return e.nodes[i]=r instanceof Qs?{x:r.getCoordinates()[0],y:r.getCoordinates()[1]}:r,e.nodes[i]}),e.event&&e.event instanceof Qs&&(e.event={x:e.event.getCoordinates()[0],y:e.event.getCoordinates()[1]}),e.facilities&&br.isArray(e.facilities)&&e.facilities.map(function(r,i){return e.facilities[i]=r instanceof Qs?{x:r.getCoordinates()[0],y:r.getCoordinates()[1]}:r,e.facilities[i]}),e.parameter&&e.parameter.barrierPoints){var t=e.parameter.barrierPoints;br.isArray(t)?t.map(function(r,i){return e.parameter.barrierPoints[i]=r instanceof Qs?{x:r.getCoordinates()[0],y:r.getCoordinates()[1]}:r,e.parameter.barrierPoints[i]}):e.parameter.barrierPoints=[t instanceof Qs?{x:t.getCoordinates()[0],y:t.getCoordinates()[1]}:t]}return e}_processFormat(e){return e||Ni.GEOJSON}}class o$r{constructor(e,t){this.url=e,this.options=t||{},this.kernelDensityJobs={},this.summaryMeshJobs={},this.queryJobs={},this.summaryRegionJobs={},this.vectorClipJobs={},this.overlayGeoJobs={},this.buffersJobs={},this.topologyValidatorJobs={},this.summaryAttributesJobs={}}getKernelDensityJobs(e,t){var r=this,i=r._processFormat(t),a=new aB(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,format:i});return a.getKernelDensityJobs(e)}getKernelDensityJob(e,t,r){var i=this,a=i._processFormat(r),o=new aB(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:a});return o.getKernelDensityJob(e,t)}addKernelDensityJob(e,t,r,i){var a=this,o=a._processFormat(i),s=new aB(a.url,{proxy:a.options.proxy,withCredentials:a.options.withCredentials,crossOrigin:a.options.crossOrigin,headers:a.options.headers,format:o});return s.addKernelDensityJob(e,r,t,function(l){a.kernelDensityJobs[l.id]=l.state})}getKernelDensityJobState(e){return this.kernelDensityJobs[e]}getSummaryMeshJobs(e,t){var r=this,i=r._processFormat(t),a=new uB(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,format:i});return a.getSummaryMeshJobs(e)}getSummaryMeshJob(e,t,r){var i=this,a=i._processFormat(r),o=new uB(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:a});return o.getSummaryMeshJob(e,t)}addSummaryMeshJob(e,t,r,i){var a=this,o=a._processFormat(i),s=new uB(a.url,{proxy:a.options.proxy,withCredentials:a.options.withCredentials,crossOrigin:a.options.crossOrigin,headers:a.options.headers,format:o});return s.addSummaryMeshJob(e,r,t,function(l){a.summaryMeshJobs[l.id]=l.state})}getSummaryMeshJobState(e){return this.summaryMeshJobs[e]}getQueryJobs(e,t){var r=this,i=r._processFormat(t),a=new sB(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,format:i});return a.getQueryJobs(e)}getQueryJob(e,t,r){var i=this,a=i._processFormat(r),o=new sB(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:a});return o.getQueryJob(e,t)}addQueryJob(e,t,r,i){var a=this,o=a._processFormat(i),s=new sB(a.url,{proxy:a.options.proxy,withCredentials:a.options.withCredentials,crossOrigin:a.options.crossOrigin,headers:a.options.headers,format:o});return s.addQueryJob(e,r,t,function(l){a.queryJobs[l.id]=l.state})}getQueryJobState(e){return this.queryJobs[e]}getSummaryRegionJobs(e,t){var r=this,i=r._processFormat(t),a=new hB(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,format:i});return a.getSummaryRegionJobs(e)}getSummaryRegionJob(e,t,r){var i=this,a=i._processFormat(r),o=new hB(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:a});return o.getSummaryRegionJob(e,t)}addSummaryRegionJob(e,t,r,i){var a=this,o=a._processFormat(i),s=new hB(a.url,{proxy:a.options.proxy,withCredentials:a.options.withCredentials,crossOrigin:a.options.crossOrigin,headers:a.options.headers,format:o});return s.addSummaryRegionJob(e,r,t,function(l){a.summaryRegionJobs[l.id]=l.state})}getSummaryRegionJobState(e){return this.summaryRegionJobs[e]}getVectorClipJobs(e,t){var r=this,i=r._processFormat(t),a=new fB(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,format:i});return a.getVectorClipJobs(e)}getVectorClipJob(e,t,r){var i=this,a=i._processFormat(r),o=new fB(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:a});return o.getVectorClipJob(e,t)}addVectorClipJob(e,t,r,i){var a=this,o=a._processFormat(i),s=new fB(a.url,{proxy:a.options.proxy,withCredentials:a.options.withCredentials,crossOrigin:a.options.crossOrigin,headers:a.options.headers,format:o});return s.addVectorClipJob(e,r,t,function(l){a.vectorClipJobs[l.id]=l.state})}getVectorClipJobState(e){return this.vectorClipJobs[e]}getOverlayGeoJobs(e,t){var r=this,i=r._processFormat(t),a=new oB(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,format:i});return a.getOverlayGeoJobs(e)}getOverlayGeoJob(e,t,r){var i=this,a=i._processFormat(r),o=new oB(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:a});return o.getOverlayGeoJob(e,t)}addOverlayGeoJob(e,t,r,i){var a=this,o=a._processFormat(i),s=new oB(a.url,{proxy:a.options.proxy,withCredentials:a.options.withCredentials,crossOrigin:a.options.crossOrigin,headers:a.options.headers,format:o});return s.addOverlayGeoJob(e,r,t,function(l){a.overlayGeoJobs[l.id]=l.state})}getoverlayGeoJobState(e){return this.overlayGeoJobs[e]}getBuffersJobs(e,t){var r=this,i=r._processFormat(t),a=new iB(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,format:i});return a.getBuffersJobs(e)}getBuffersJob(e,t,r){var i=this,a=i._processFormat(r),o=new iB(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:a});return o.getBuffersJob(e,t)}addBuffersJob(e,t,r,i){var a=this,o=a._processFormat(i),s=new iB(a.url,{proxy:a.options.proxy,withCredentials:a.options.withCredentials,crossOrigin:a.options.crossOrigin,headers:a.options.headers,format:o});return s.addBuffersJob(e,r,t,function(l){a.buffersJobs[l.id]=l.state})}getBuffersJobState(e){return this.buffersJobs[e]}getTopologyValidatorJobs(e,t){var r=this,i=r._processFormat(t),a=new cB(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,format:i});return a.getTopologyValidatorJobs(e)}getTopologyValidatorJob(e,t,r){var i=this,a=i._processFormat(r),o=new cB(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:a});return o.getTopologyValidatorJob(e,t)}addTopologyValidatorJob(e,t,r,i){var a=this,o=a._processFormat(i),s=new cB(a.url,{proxy:a.options.proxy,withCredentials:a.options.withCredentials,crossOrigin:a.options.crossOrigin,headers:a.options.headers,format:o});return s.addTopologyValidatorJob(e,r,t,function(l){a.topologyValidatorJobs[l.id]=l.state})}getTopologyValidatorJobState(e){return this.topologyValidatorJobs[e]}getSummaryAttributesJobs(e,t){var r=this,i=r._processFormat(t),a=new lB(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,format:i});return a.getSummaryAttributesJobs(e)}getSummaryAttributesJob(e,t,r){var i=this,a=i._processFormat(r),o=new lB(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:a});return o.getSummaryAttributesJob(e,t)}addSummaryAttributesJob(e,t,r,i){var a=this,o=a._processFormat(i),s=new lB(a.url,{proxy:a.options.proxy,withCredentials:a.options.withCredentials,crossOrigin:a.options.crossOrigin,headers:a.options.headers,format:o});return s.addSummaryAttributesJob(e,r,t,function(l){a.summaryAttributesJobs[l.id]=l.state})}getSummaryAttributesJobState(e){return this.summaryAttributesJobs[e]}_processFormat(e){return e||Ni.GEOJSON}}class s$r extends ml{constructor(e,t){super(e,t),this._processingService=new o$r(e,t)}getKernelDensityJobs(e,t){return this._processingService.getKernelDensityJobs(e,t)}getKernelDensityJob(e,t,r){return this._processingService.getKernelDensityJob(e,t,r)}addKernelDensityJob(e,t,r,i){return e=this._processParams(e),this._processingService.addKernelDensityJob(e,t,r,i)}getKernelDensityJobState(e){return this._processingService.getKernelDensityJobState(e)}getSummaryMeshJobs(e,t){return this._processingService.getSummaryMeshJobs(e,t)}getSummaryMeshJob(e,t,r){return this._processingService.getSummaryMeshJob(e,t,r)}addSummaryMeshJob(e,t,r,i){return e=this._processParams(e),this._processingService.addSummaryMeshJob(e,t,r,i)}getSummaryMeshJobState(e){return this._processingService.getSummaryMeshJobState(e)}getQueryJobs(e,t){return this._processingService.getQueryJobs(e,t)}getQueryJob(e,t,r){return this._processingService.getQueryJob(e,t,r)}addQueryJob(e,t,r,i){return e=this._processParams(e),this._processingService.addQueryJob(e,t,r,i)}getQueryJobState(e){return this._processingService.getQueryJobState(e)}getSummaryRegionJobs(e,t){return this._processingService.getSummaryRegionJobs(e,t)}getSummaryRegionJob(e,t,r){return this._processingService.getSummaryRegionJob(e,t,r)}addSummaryRegionJob(e,t,r,i){return e=this._processParams(e),this._processingService.addSummaryRegionJob(e,t,r,i)}getSummaryRegionJobState(e){return this._processingService.getSummaryRegionJobState(e)}getVectorClipJobs(e,t){return this._processingService.getVectorClipJobs(e,t)}getVectorClipJob(e,t,r){return this._processingService.getVectorClipJob(e,t,r)}addVectorClipJob(e,t,r,i){return e=this._processParams(e),this._processingService.addVectorClipJob(e,t,r,i)}getVectorClipJobState(e){return this._processingService.getVectorClipJobState(e)}getOverlayGeoJobs(e,t){return this._processingService.getOverlayGeoJobs(e,t)}getOverlayGeoJob(e,t,r){return this._processingService.getOverlayGeoJob(e,t,r)}addOverlayGeoJob(e,t,r,i){return e=this._processParams(e),this._processingService.addOverlayGeoJob(e,t,r,i)}getoverlayGeoJobState(e){return this._processingService.getoverlayGeoJobState(e)}getBuffersJobs(e,t){return this._processingService.getBuffersJobs(e,t)}getBuffersJob(e,t,r){return this._processingService.getBuffersJob(e,t,r)}addBuffersJob(e,t,r,i){return e=this._processParams(e),this._processingService.addBuffersJob(e,t,r,i)}getBuffersJobState(e){return this._processingService.getBuffersJobState(e)}getTopologyValidatorJobs(e,t){return this._processingService.getTopologyValidatorJobs(e,t)}getTopologyValidatorJob(e,t,r){return this._processingService.getTopologyValidatorJob(e,t,r)}addTopologyValidatorJob(e,t,r,i){return e=this._processParams(e),this._processingService.addTopologyValidatorJob(e,t,r,i)}getTopologyValidatorJobState(e){return this._processingService.getTopologyValidatorJobState(e)}getSummaryAttributesJobs(e,t){return this._processingService.getSummaryAttributesJobs(e,t)}getSummaryAttributesJob(e,t,r){return this._processingService.getSummaryAttributesJob(e,t,r)}addSummaryAttributesJob(e,t,r,i){return e=this._processParams(e),this._processingService.addSummaryAttributesJob(e,t,r,i)}getSummaryAttributesJobState(e){return this._processingService.getSummaryAttributesJobState(e)}_processFormat(e){return e||Ni.GEOJSON}_processParams(e){return e?(e.bounds&&(e.bounds=br.toSuperMapBounds(e.bounds)),e.query&&(e.query=br.toSuperMapBounds(e.query)),e.geometryQuery&&(e.geometryQuery=br.toProcessingParam(e.geometryQuery)),e.geometryClip&&(e.geometryClip=br.toProcessingParam(e.geometryClip)),e):{}}}class l$r{constructor(e,t){this.url=e,this.options=t||{}}getAreaSolarRadiationResult(e,t,r){var i=this,a=new YOe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}bufferAnalysis(e,t,r){var i=this,a=new ZOe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}densityAnalysis(e,t,r){var i=this,a=new fRe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}generateSpatialData(e,t,r){var i=this,a=new URe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}geoRelationAnalysis(e,t,r){var i=this,a=new HRe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}interpolationAnalysis(e,t,r){var i=this,a=new dDe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}mathExpressionAnalysis(e,t,r){var i=this,a=new pDe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}overlayAnalysis(e,t,r){var i=this,a=new mDe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}routeCalculateMeasure(e,t,r){var i=this,a=new zDe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}routeLocate(e,t,r){var i=this,a=new VDe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}surfaceAnalysis(e,t,r){var i=this,a=new eNe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}terrainCurvatureCalculate(e,t,r){var i=this,a=new tNe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}terrainCutFillCalculate(e,t,r){var i=this,a=new IDe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}terrainAspectCalculate(e,t,r){var i=this,a=new LDe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}terrainSlopeCalculate(e,t,r){var i=this,a=new PDe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}thiessenAnalysis(e,t,r){var i=this,a=new iNe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}minDistanceAnalysis(e,t,r){var i=this,a=new MDe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}convexHullAnalysis(e,t,r){var i=this,a=new ODe(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,headers:i.options.headers,format:i._processFormat(r)});return a.processAsync(e,t)}geometrybatchAnalysis(e,t,r){for(var i=this,a=new aNe(i.url,{format:i._processFormat(r)}),o=[],s=0;s0&&h.length>0;)p=h.pop(),i=l.pop(),o=u.pop(),y=p.toString(),y in c||(r.push(o[0],o[1]),c[y]=!0),g=h.pop(),a=l.pop(),s=u.pop(),m=(p+g)/2,d=n(m),v=e(d),kje(v[0],v[1],o[0],o[1],s[0],s[1])this.featurePool_.length;)f=new d0,this.featurePool_.push(f);var d=a.getFeaturesCollection();d.clear();var v=0,p,g;for(p=0,g=this.meridians_.length;pMath.PI/2;d=d!==g}for(var m=rXe(t),y=c;y<=f;++y){var _=this.meridians_.length+this.parallels_.length,x=void 0,S=void 0,w=void 0,b=void 0;if(this.meridiansLabels_)for(S=0,w=this.meridiansLabels_.length;S=u?(t[0]=l[0],t[2]=l[2]):s=!0);var h=[Ui(r[0],this.minX_,this.maxX_),Ui(r[1],this.minY_,this.maxY_)],c=this.toLonLatTransform_(h);isNaN(c[1])&&(c[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_);var f=Ui(c[0],this.minLon_,this.maxLon_),d=Ui(c[1],this.minLat_,this.maxLat_),v=this.maxLines_,p,g,m,y,_=t;s||(_=[Ui(t[0],this.minX_,this.maxX_),Ui(t[1],this.minY_,this.maxY_),Ui(t[2],this.minX_,this.maxX_),Ui(t[3],this.minY_,this.maxY_)]);var x=bte(_,this.toLonLatTransform_,void 0,8),S=x[3],w=x[2],b=x[1],E=x[0];if(s||(dv(_,this.bottomLeft_)&&(E=this.minLon_,b=this.minLat_),dv(_,this.bottomRight_)&&(w=this.maxLon_,b=this.minLat_),dv(_,this.topLeft_)&&(E=this.minLon_,S=this.maxLat_),dv(_,this.topRight_)&&(w=this.maxLon_,S=this.maxLat_),S=Ui(S,d,this.maxLat_),w=Ui(w,f,this.maxLon_),b=Ui(b,this.minLat_,d),E=Ui(E,this.minLon_,f)),f=Math.floor(f/o)*o,y=Ui(f,this.minLon_,this.maxLon_),g=this.addMeridian_(y,b,S,a,t,0),p=0,s)for(;(y-=o)>=E&&p++a[s]&&(o=s,s=1);var l=Math.max(r[1],a[o]),u=Math.min(r[3],a[s]),h=Ui(r[1]+Math.abs(r[1]-r[3])*this.lonLabelPosition_,l,u),c=a[o-1]+(a[s-1]-a[o-1])*(h-a[o])/(a[s]-a[o]),f=[c,h],d=this.meridiansLabels_[i].geom;return d.setCoordinates(f),d},e.prototype.getMeridians=function(){return this.meridians_},e.prototype.getParallel_=function(t,r,i,a,o){var s=x$r(t,r,i,this.projection_,a),l=this.parallels_[o];return l?(l.setFlatCoordinates(Ro.XY,s),l.changed()):l=new gm(s,Ro.XY),l},e.prototype.getParallelPoint_=function(t,r,i){var a=t.getFlatCoordinates(),o=0,s=a.length-2;a[o]>a[s]&&(o=s,s=0);var l=Math.max(r[0],a[o]),u=Math.min(r[2],a[s]),h=Ui(r[0]+Math.abs(r[0]-r[2])*this.latLabelPosition_,l,u),c=a[o+1]+(a[s+1]-a[o+1])*(h-a[o])/(a[s]-a[o]),f=[h,c],d=this.parallelsLabels_[i].geom;return d.setCoordinates(f),d},e.prototype.getParallels=function(){return this.parallels_},e.prototype.updateProjectionInfo_=function(t){var r=ya("EPSG:4326"),i=t.getWorldExtent();this.maxLat_=i[3],this.maxLon_=i[2],this.minLat_=i[1],this.minLon_=i[0];var a=__(t,r);if(this.minLon_=Math.abs(this.minLat_)?this.maxLat_:this.minLat_),this.projection_=t},e}(Sy);const T$r=E$r;var rz=34962,$ce=34963,C$r=35040,A$r=35044,I8=35048,M$r=5121,I$r=5123,L$r=5125,EQe=5126,sPe=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function TQe(n,e){for(var t=Ao({preserveDrawingBuffer:!0,antialias:!G0r},e),r=sPe.length,i=0;i0))){var t=e.canvas,r=TQe(t),i=r.getExtension("WEBGL_lose_context");i&&i.loseContext(),delete nz[n]}}var U$r=function(n){F$r(e,n);function e(t){var r=n.call(this)||this,i=t||{};r.boundHandleWebGLContextLost_=r.handleWebGLContextLost.bind(r),r.boundHandleWebGLContextRestored_=r.handleWebGLContextRestored.bind(r),r.canvasCacheKey_=i.canvasCacheKey?uPe(i.canvasCacheKey):B$r(),r.canvas_=G$r(r.canvasCacheKey_),r.gl_=TQe(r.canvas_),r.bufferCache_={},r.extensionCache_={},r.currentProgram_=null,r.canvas_.addEventListener(K6.LOST,r.boundHandleWebGLContextLost_),r.canvas_.addEventListener(K6.RESTORED,r.boundHandleWebGLContextRestored_),r.offsetRotateMatrix_=Nu(),r.offsetScaleMatrix_=Nu(),r.tmpMat4_=k$r(),r.uniformLocations_={},r.attribLocations_={},r.uniforms_=[],i.uniforms&&r.setUniforms(i.uniforms);var a=r.getGL();return r.postProcessPasses_=i.postProcesses?i.postProcesses.map(function(o){return new lPe({webGlContext:a,scaleRatio:o.scaleRatio,vertexShader:o.vertexShader,fragmentShader:o.fragmentShader,uniforms:o.uniforms})}):[new lPe({webGlContext:a})],r.shaderCompileErrors_=null,r.startTime_=Date.now(),r}return e.prototype.setUniforms=function(t){this.uniforms_=[];for(var r in t)this.uniforms_.push({name:r,value:t[r]});this.uniformLocations_={}},e.prototype.canvasCacheKeyMatches=function(t){return this.canvasCacheKey_===uPe(t)},e.prototype.getExtension=function(t){if(t in this.extensionCache_)return this.extensionCache_[t];var r=this.gl_.getExtension(t);return this.extensionCache_[t]=r,r},e.prototype.bindBuffer=function(t){var r=this.getGL(),i=vi(t),a=this.bufferCache_[i];if(!a){var o=r.createBuffer();a={buffer:t,webGlBuffer:o},this.bufferCache_[i]=a}r.bindBuffer(t.getType(),a.webGlBuffer)},e.prototype.flushBufferData=function(t){var r=this.getGL();this.bindBuffer(t),r.bufferData(t.getType(),t.getArray(),t.getUsage())},e.prototype.deleteBuffer=function(t){var r=this.getGL(),i=vi(t),a=this.bufferCache_[i];a&&!r.isContextLost()&&r.deleteBuffer(a.webGlBuffer),delete this.bufferCache_[i]},e.prototype.disposeInternal=function(){this.canvas_.removeEventListener(K6.LOST,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(K6.RESTORED,this.boundHandleWebGLContextRestored_),z$r(this.canvasCacheKey_),delete this.gl_,delete this.canvas_},e.prototype.prepareDraw=function(t,r){var i=this.getGL(),a=this.getCanvas(),o=t.size,s=t.pixelRatio;a.width=o[0]*s,a.height=o[1]*s,a.style.width=o[0]+"px",a.style.height=o[1]+"px",i.useProgram(this.currentProgram_);for(var l=this.postProcessPasses_.length-1;l>=0;l--)this.postProcessPasses_[l].init(t);i.bindTexture(i.TEXTURE_2D,null),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.enable(i.BLEND),i.blendFunc(i.ONE,r?i.ZERO:i.ONE_MINUS_SRC_ALPHA),i.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.prepareDrawToRenderTarget=function(t,r,i){var a=this.getGL(),o=r.getSize();a.bindFramebuffer(a.FRAMEBUFFER,r.getFramebuffer()),a.viewport(0,0,o[0],o[1]),a.bindTexture(a.TEXTURE_2D,r.getTexture()),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.enable(a.BLEND),a.blendFunc(a.ONE,i?a.ZERO:a.ONE_MINUS_SRC_ALPHA),a.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.drawElements=function(t,r){var i=this.getGL();this.getExtension("OES_element_index_uint");var a=i.UNSIGNED_INT,o=4,s=r-t,l=t*o;i.drawElements(i.TRIANGLES,s,a,l)},e.prototype.finalizeDraw=function(t,r,i){for(var a=0,o=this.postProcessPasses_.length;athis.size_[0]||t>=this.size_[1])return dy[0]=0,dy[1]=0,dy[2]=0,dy[3]=0,dy;this.readAll();var r=Math.floor(e)+(this.size_[1]-Math.floor(t)-1)*this.size_[0];return dy[0]=this.data_[r*4],dy[1]=this.data_[r*4+1],dy[2]=this.data_[r*4+2],dy[3]=this.data_[r*4+3],dy},n.prototype.getTexture=function(){return this.texture_},n.prototype.getFramebuffer=function(){return this.framebuffer_},n.prototype.updateSize_=function(){var e=this.size_,t=this.helper_.getGL();this.texture_=this.helper_.createTexture(e,null,this.texture_),t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.viewport(0,0,e[0],e[1]),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture_,0),this.data_=new Uint8Array(e[0]*e[1]*4)},n}();const q$r=Y$r;function Z$r(){var n='var e="function"==typeof Object.assign?Object.assign:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,o=arguments.length;r"u"?"data:application/javascript;base64,"+Buffer.from(n,"binary").toString("base64"):URL.createObjectURL(new Blob([n],{type:"application/javascript"})))}var K$r=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),J$r=function(n){K$r(e,n);function e(t,r){var i=this,a=r.uniforms||{},o=Nu();a[oA.PROJECTION_MATRIX]=o,i=n.call(this,t,{uniforms:a,postProcesses:r.postProcesses})||this,i.ready=!1,i.sourceRevision_=-1,i.verticesBuffer_=new OZ(rz,I8),i.hitVerticesBuffer_=new OZ(rz,I8),i.indicesBuffer_=new OZ($ce,I8),i.vertexShader_=r.vertexShader,i.fragmentShader_=r.fragmentShader,i.program_,i.hitDetectionEnabled_=!!(r.hitFragmentShader&&r.hitVertexShader),i.hitVertexShader_=r.hitVertexShader,i.hitFragmentShader_=r.hitFragmentShader,i.hitProgram_;var s=r.attributes?r.attributes.map(function(u){return{name:"a_"+u.name,size:1,type:Wg.FLOAT}}):[];i.attributes=[{name:"a_position",size:2,type:Wg.FLOAT},{name:"a_index",size:1,type:Wg.FLOAT}].concat(s),i.hitDetectionAttributes=[{name:"a_position",size:2,type:Wg.FLOAT},{name:"a_index",size:1,type:Wg.FLOAT},{name:"a_hitColor",size:4,type:Wg.FLOAT},{name:"a_featureUid",size:1,type:Wg.FLOAT}].concat(s),i.customAttributes=r.attributes?r.attributes:[],i.previousExtent_=Md(),i.currentTransform_=o,i.renderTransform_=Nu(),i.invertRenderTransform_=Nu(),i.renderInstructions_=new Float32Array(0),i.hitRenderInstructions_=new Float32Array(0),i.hitRenderTarget_,i.generateBuffersRun_=0,i.worker_=Z$r(),i.worker_.addEventListener("message",function(u){var h=u.data;if(h.type===DZ.GENERATE_BUFFERS){var c=h.projectionTransform;h.hitDetection?(this.hitVerticesBuffer_.fromArrayBuffer(h.vertexBuffer),this.helper.flushBufferData(this.hitVerticesBuffer_)):(this.verticesBuffer_.fromArrayBuffer(h.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_)),this.indicesBuffer_.fromArrayBuffer(h.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=c,bk(this.invertRenderTransform_,this.renderTransform_),h.hitDetection?this.hitRenderInstructions_=new Float32Array(u.data.renderInstructions):(this.renderInstructions_=new Float32Array(u.data.renderInstructions),h.generateBuffersRun===this.generateBuffersRun_&&(this.ready=!0)),this.getLayer().changed()}}.bind(i)),i.featureCache_={},i.featureCount_=0;var l=i.getLayer().getSource();return i.sourceListenKeys_=[pa(l,yf.ADDFEATURE,i.handleSourceFeatureAdded_,i),pa(l,yf.CHANGEFEATURE,i.handleSourceFeatureChanged_,i),pa(l,yf.REMOVEFEATURE,i.handleSourceFeatureDelete_,i),pa(l,yf.CLEAR,i.handleSourceFeatureClear_,i)],l.forEachFeature(function(u){this.featureCache_[vi(u)]={feature:u,properties:u.getProperties(),geometry:u.getGeometry()},this.featureCount_++}.bind(i)),i}return e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.hitDetectionEnabled_&&(this.hitProgram_=this.helper.getProgram(this.hitFragmentShader_,this.hitVertexShader_),this.hitRenderTarget_=new q$r(this.helper))},e.prototype.handleSourceFeatureAdded_=function(t){var r=t.feature;this.featureCache_[vi(r)]={feature:r,properties:r.getProperties(),geometry:r.getGeometry()},this.featureCount_++},e.prototype.handleSourceFeatureChanged_=function(t){var r=t.feature;this.featureCache_[vi(r)]={feature:r,properties:r.getProperties(),geometry:r.getGeometry()}},e.prototype.handleSourceFeatureDelete_=function(t){var r=t.feature;delete this.featureCache_[vi(r)],this.featureCount_--},e.prototype.handleSourceFeatureClear_=function(){this.featureCache_={},this.featureCount_=0},e.prototype.renderFrame=function(t){var r=this.helper.getGL();this.preRender(r,t);var i=this.indicesBuffer_.getSize();this.helper.drawElements(0,i),this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);var a=this.helper.getCanvas();return this.hitDetectionEnabled_&&(this.renderHitDetection(t),this.hitRenderTarget_.clearCachedData()),this.postRender(r,t),a},e.prototype.prepareFrameInternal=function(t){var r=this.getLayer(),i=r.getSource(),a=t.viewState,o=!t.viewHints[Gs.ANIMATING]&&!t.viewHints[Gs.INTERACTING],s=!m_(this.previousExtent_,t.extent),l=this.sourceRevision_0&&(this.newTiles_=!0):h.setState(Xr.LOADED)),this.isDrawableTile(h)||(h=h.getInterimTile()),h},e.prototype.getData=function(t){var r=this.frameState;if(!r)return null;var i=this.getLayer(),a=ks(r.pixelToCoordinateTransform,t.slice()),o=i.getExtent();if(o&&!dv(o,a))return null;for(var s=r.pixelRatio,l=r.viewState.projection,u=r.viewState,h=i.getRenderSource(),c=h.getTileGridForProjection(u.projection),f=h.getTilePixelRatio(r.pixelRatio),d=c.getZForResolution(u.resolution);d>=c.getMinZoom();--d){var v=c.getTileCoordForCoordAndZ(a,d),p=h.getTile(d,v[1],v[2],s,l);if(!(p instanceof Iqe||p instanceof Dqe))return null;if(p.getState()===Xr.LOADED){var g=c.getOrigin(d),m=nh(c.getTileSize(d)),y=c.getResolution(d),_=Math.floor(f*((a[0]-g[0])/y-v[1]*m[0])),x=Math.floor(f*((g[1]-a[1])/y-v[2]*m[1]));return this.getImageData(p.getImage(),_,x)}}return null},e.prototype.loadedTileCallback=function(t,r,i){return this.isDrawableTile(i)?n.prototype.loadedTileCallback.call(this,t,r,i):!1},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,r){var i=t.layerStatesArray[t.layerIndex],a=t.viewState,o=a.projection,s=a.resolution,l=a.center,u=a.rotation,h=t.pixelRatio,c=this.getLayer(),f=c.getSource(),d=f.getRevision(),v=f.getTileGridForProjection(o),p=v.getZForResolution(s,f.zDirection),g=v.getResolution(p),m=t.extent,y=i.extent&&F1(i.extent);y&&(m=tm(m,F1(i.extent)));var _=f.getTilePixelRatio(h),x=Math.round(t.size[0]*_),S=Math.round(t.size[1]*_);if(u){var w=Math.round(Math.sqrt(x*x+S*S));x=w,S=w}var b=g*x/2/_,E=g*S/2/_,T=[l[0]-b,l[1]-E,l[0]+b,l[1]+E],C=v.getTileRangeForExtentAndZ(m,p),A={};A[p]={};var M=this.createLoadedTileFinder(f,o,A),I=this.tmpExtent,R=this.tmpTileRange_;this.newTiles_=!1;for(var k=C.minX;k<=C.maxX;++k)for(var D=C.minY;D<=C.maxY;++D){var G=this.getTile(p,k,D,t);if(this.isDrawableTile(G)){var V=vi(this);if(G.getState()==Xr.LOADED){A[p][G.tileCoord.toString()]=G;var z=G.inTransition(V);!this.newTiles_&&(z||this.renderedTiles.indexOf(G)===-1)&&(this.newTiles_=!0)}if(G.getAlpha(V,t.time)===1)continue}var j=v.getTileCoordChildTileRange(G.tileCoord,R,I),Z=!1;j&&(Z=M(p+1,j)),Z||v.forEachTileCoordParentTileRange(G.tileCoord,M,R,I)}var Y=g/s;Id(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/_,1/_,u,-x/2,-S/2);var le=gue(this.pixelTransform);this.useContainer(r,le,i.opacity,this.getBackground(t));var H=this.context,Q=H.canvas;bk(this.inversePixelTransform,this.pixelTransform),Id(this.tempTransform,x/2,S/2,Y,Y,0,-x/2,-S/2),Q.width!=x||Q.height!=S?(Q.width=x,Q.height=S):this.containerReused||H.clearRect(0,0,x,S),y&&this.clipUnrotated(H,t,y),f.getInterpolate()||Ao(H,S7),this.preRender(H,t),this.renderedTiles.length=0;var ie=Object.keys(A).map(Number);ie.sort(f2);var oe,se,me;i.opacity===1&&(!this.containerReused||f.getOpaque(t.viewState.projection))?ie=ie.reverse():(oe=[],se=[]);for(var Ce=ie.length-1;Ce>=0;--Ce){var Le=ie[Ce],re=f.getTilePixelSize(Le,h,o),yt=v.getResolution(Le),je=yt/g,st=re[0]*je*Y,Nt=re[1]*je*Y,Zt=v.getTileCoordForCoordAndZ(Lw(T),Le),qe=v.getTileCoordExtent(Zt),ur=ks(this.tempTransform,[_*(qe[0]-T[0])/g,_*(T[3]-qe[3])/g]),Dt=_*f.getGutterForProjection(o),ft=A[Le];for(var Oe in ft){var G=ft[Oe],J=G.tileCoord,We=Zt[1]-J[1],Tt=Math.round(ur[0]-(We-1)*st),Qe=Zt[2]-J[2],zt=Math.round(ur[1]-(Qe-1)*Nt),k=Math.round(ur[0]-We*st),D=Math.round(ur[1]-Qe*Nt),mt=Tt-k,wt=zt-D,pt=p===Le,z=pt&&G.getAlpha(vi(this),t.time)!==1,ar=!1;if(!z)if(oe){me=[k,D,k+mt,D,k+mt,D+wt,k,D+wt];for(var kt=0,Dr=oe.length;kt0){r([]);return}var y=c.getTileCoordExtent(v.wrappedTileCoord),_=Lw(y),x=[(f[0]-_[0])/h,(_[1]-f[1])/h],S=v.getSourceTiles().reduce(function(C,A){return C.concat(A.getFeatures())},[]),w=v.hitDetectionImageData[o];if(!w&&!this.animatingOrInteracting_){var b=nh(c.getTileSize(c.getZForResolution(h))),E=this.renderedRotation_,T=[this.getRenderTransform(c.getTileCoordCenter(v.wrappedTileCoord),h,0,uv,b[0]*uv,b[1]*uv,0)];w=yXe(b,T,S,a.getStyleFunction(),c.getTileCoordExtent(v.wrappedTileCoord),v.getReplayState(a).renderedResolution,E),v.hitDetectionImageData[o]=w}r(mXe(x,S,w))}.bind(this))},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.renderedLayerRevision_!==void 0&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.renderDeclutter=function(t){var r=this.context,i=r.globalAlpha;r.globalAlpha=this.getLayer().getOpacity();for(var a=t.viewHints,o=!(a[Gs.ANIMATING]||a[Gs.INTERACTING]),s=this.renderedTiles,l=0,u=s.length;l=0;--f)c[f].execute(this.context,1,this.getTileRenderTransform(h,t),t.viewState.rotation,o,void 0,t.declutterTree)}r.globalAlpha=i},e.prototype.getTileRenderTransform=function(t,r){var i=r.pixelRatio,a=r.viewState,o=a.center,s=a.resolution,l=a.rotation,u=r.size,h=Math.round(u[0]*i),c=Math.round(u[1]*i),f=this.getLayer().getSource(),d=f.getTileGridForProjection(r.viewState.projection),v=t.tileCoord,p=d.getTileCoordExtent(t.wrappedTileCoord),g=d.getTileCoordExtent(v,this.tmpExtent)[0]-p[0],m=rL(IR(this.inversePixelTransform.slice(),1/i,1/i),this.getRenderTransform(o,s,l,i,h,c,g));return m},e.prototype.renderFrame=function(t,r){var i=t.viewHints,a=!(i[Gs.ANIMATING]||i[Gs.INTERACTING]);n.prototype.renderFrame.call(this,t,r),this.renderedPixelToCoordinateTransform_=t.pixelToCoordinateTransform.slice(),this.renderedRotation_=t.viewState.rotation;var o=this.getLayer(),s=o.getRenderMode(),l=this.context,u=l.globalAlpha;l.globalAlpha=o.getOpacity();for(var h=lWr[s],c=t.viewState,f=c.rotation,d=o.getSource(),v=d.getTileGridForProjection(c.projection),p=v.getZForResolution(c.resolution,d.zDirection),g=this.renderedTiles,m=[],y=[],_=g.length-1;_>=0;--_){var x=g[_],S=x.executorGroups[vi(o)].filter(function(D){return D.hasExecutors(h)});if(S.length!==0){for(var w=this.getTileRenderTransform(x,t),b=x.tileCoord[0],E=!1,T=S[0].getClipCoords(w),C=0,A=m.length;C=0},e.prototype.tileUrlFunction=function(t,r,i){var a=this.getTileGrid();if(a||(a=this.getTileGridForProjection(i)),!(a.getResolutions().length<=t[0])){r!=1&&(!this.hidpi_||this.serverType_===void 0)&&(r=1);var o=a.getResolution(t[0]),s=a.getTileCoordExtent(t,this.tmpExtent_),l=nh(a.getTileSize(t[0]),this.tmpSize),u=this.gutter_;u!==0&&(l=cTe(l,u,this.tmpSize),s=f0(s,o*u,s)),r!=1&&(l=hXe(l,r,this.tmpSize));var h={SERVICE:"WMS",VERSION:J6,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return Ao(h,this.params_),this.getRequestUrl_(t,l,s,r,i,h)}},e}(Fk);const ljr=sjr;var ujr=200,jce="__lodash_hash_undefined__",hjr=9007199254740991,cjr="[object Arguments]",fjr="[object Function]",djr="[object GeneratorFunction]",vjr=/[\\^$.*+?()[\]{}|]/g,pjr=/^\[object .+?Constructor\]$/,gjr=typeof at=="object"&&at&&at.Object===Object&&at,yjr=typeof self=="object"&&self&&self.Object===Object&&self,Xce=gjr||yjr||Function("return this")();function mjr(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}function _jr(n,e){var t=n?n.length:0;return!!t&&Ejr(n,e,0)>-1}function xjr(n,e,t){for(var r=-1,i=n?n.length:0;++r-1}function Hjr(n,e){var t=this.__data__,r=$$(t,n);return r<0?t.push([n,e]):t[r][1]=e,this}bL.prototype.clear=Ujr;bL.prototype.delete=Vjr;bL.prototype.get=$jr;bL.prototype.has=Wjr;bL.prototype.set=Hjr;function EL(n){var e=-1,t=n?n.length:0;for(this.clear();++e=ujr&&(a=Ajr,o=!1,e=new az(e));e:for(;++i0&&t(s)?e>1?kQe(s,e-1,t,r,i):wjr(i,s):r||(i[i.length]=s)}return i}function eXr(n){if(!GQe(n)||iXr(n))return!1;var e=BQe(n)||Ijr(n)?Ojr:pjr;return e.test(aXr(n))}function tXr(n,e){return e=yPe(e===void 0?n.length-1:e,0),function(){for(var t=arguments,r=-1,i=yPe(t.length-e,0),a=Array(i);++r-1&&n%1==0&&n<=hjr}function GQe(n){var e=typeof n;return!!n&&(e=="object"||e=="function")}function fXr(n){return!!n&&typeof n=="object"}var dXr=oXr;window.proj4=Bu;window.Proj4js=Bu;const eB=new jc,vXr=1e3,mPe={DEGREES:2*Math.PI*6370997/360,DEGREE:2*Math.PI*6370997/360,FEET:.3048,METERS:1,METER:1,M:1,USFEET:1200/3937},qP={default:96,iServerWMTS:90.7142857142857};class pXr extends fT{constructor(e,t){super(),br.isObject(e)?(t=e,this.mapId=t.id):this.mapId=e,t=t||{},this.server=t.server,this.successCallback=t.successCallback,this.errorCallback=t.errorCallback,this.credentialKey=t.credentialKey,this.credentialValue=t.credentialValue,this.withCredentials=t.withCredentials||!1,this.target=t.target||"map",this.excludePortalProxyUrl=t.excludePortalProxyUrl||!1,this.serviceProxy=t.serviceProxy||null,this.tiandituKey=t.tiandituKey,this.googleMapsAPIKey=t.googleMapsAPIKey||"",this.proxy=t.proxy,this.layerAdded=0,this.layers=[],this.events=new y0(this,null,["updateDataflowFeature"],!0),this.webMap=t.webMap,this.tileFormat=t.tileFormat&&t.tileFormat.toLowerCase(),this.restDataSingleRequestCount=t.restDataSingleRequestCount||1e3,this.createMap(t.mapSetting),this.webMap?br.isString(this.webMap)?this.createWebmap(this.webMap):this.getMapInfoSuccess(t.webMap):this.createWebmap()}_removeBaseLayer(){const e=this.map,{layer:t,labelLayer:r}=this.baseLayer;r&&e.removeLayer(r),t&&e.removeLayer(t),this.baseLayer=null}_removeLayers(){const e=this.map;this.layers.forEach(({layerType:t,layer:r,labelLayer:i,pathLayer:a,dataflowService:o})=>{if(!!r){if(t==="MIGRATION"){r.remove();return}(t==="DATAFLOW_POINT_TRACK"||t==="DATAFLOW_HEAT")&&(a&&e.removeLayer(a),o&&o.unSubscribe()),i&&e.removeLayer(i),e.removeLayer(r)}}),this.layers=[]}_clear(){this.scales=[],this.resolutionArray=[],this.resolutions={},this.layerAdded=0,this._removeBaseLayer(),this._removeLayers()}refresh(){this._clear(),this.createWebmap()}createMap(e){let t,r,i;e&&(i=e.interactions,t=e.overlays,r=e.controls),this.map=new EA({interactions:i,overlays:t,controls:r,target:this.target}),e&&this.registerMapEvent({mapClickCallback:e.mapClickCallback})}registerMapEvent(e){this.map.on("click",function(r){e.mapClickCallback&&e.mapClickCallback(r)})}createWebmap(e){let t;if(e)t=e;else{let r=this.server.split("");r[r.length-1]!=="/"&&(this.server+="/"),t=this.server+"web/maps/"+this.mapId+"/map";let i="getUrlResource.json?url=";if(this.excludePortalProxyUrl&&this.server.indexOf(i)>-1){let a=this.server.split(i);a.length>1&&(t=a[0]+i+this.server+"web/maps/"+this.mapId+"/map.json")}}this.getMapInfo(t)}getMapInfo(e){let t=this,r=e;e.indexOf(".json")===-1&&(e=this.handleJSONSuffix(e),r=e),li.get(t.getRequestUrl(r),null,{withCredentials:this.withCredentials}).then(function(i){return i.json()}).then(function(i){t.getMapInfoSuccess(i)}).catch(function(i){t.errorCallback&&t.errorCallback(i,"getMapFaild",t.map)})}async getMapInfoSuccess(e){let t=this;if(e.succeed===!1){t.errorCallback&&t.errorCallback(e.error,"getMapFaild",t.map);return}let r=await t.handleCRS(e.projection,e.baseLayer.url);if(t.mapParams={title:e.title,description:e.description},r.action==="BrowseMap")t.createSpecLayer(e);else if(r.action==="OpenMap")t.baseProjection=r.newCrs||e.projection,t.webMapVersion=e.version,t.baseLayer=e.baseLayer,t.isHaveGraticule=e.grid&&e.grid.graticule,e.baseLayer&&e.baseLayer.layerType==="MAPBOXSTYLE"?t.addMVTMapLayer(e,e.baseLayer,0).then(async()=>{t.createView(e),!e.layers||e.layers.length===0?t.sendMapToUser(0):await t.addLayers(e),t.addGraticule(e)}).catch(function(i){t.errorCallback&&t.errorCallback(i,"getMapFaild",t.map)}):(await t.addBaseMap(e),!e.layers||e.layers.length===0?t.sendMapToUser(0):await t.addLayers(e),t.addGraticule(e));else{t.errorCallback&&t.errorCallback({type:"Not support CS",errorMsg:`Not support CS: ${e.projection}`},"getMapFaild",t.map);return}}async handleCRS(e,t){let r=this,i={},a=e,o="OpenMap";return this.isCustomProjection(e)?await li.get(r.getRequestUrl(`${t}/prjCoordSys.wkt`),null,{withCredentials:r.withCredentials,withoutFormatSuffix:!0}).then(function(s){return s.text()}).then(async function(s){if(s.indexOf("")===-1)r.addProjctionFromWKT(s,e),i={action:o,newCrs:a};else throw"ERROR"}).catch(function(){o="BrowseMap",i={action:o,newCrs:a}}):(e.indexOf("EPSG")===0&&e.split(":")[1]<=0?o="BrowseMap":e==="EPSG:910111"||e==="EPSG:910112"?a="EPSG:3857":e==="EPSG:910101"||e==="EPSG:910102"?a="EPSG:4326":e.indexOf("EPSG")!==0&&(r.addProjctionFromWKT(a),a=r.getEpsgInfoFromWKT(e)),i={action:o,newCrs:a}),i}getScales(e){let t=[],r={},i,a,o=[],s=e.coordUnit||ya(e.projection).getUnits();if(s||(s=this.baseProjection=="EPSG:3857"?"m":"degree"),e.visibleScales&&e.visibleScales.length>0)e.visibleScales.forEach(l=>{let u=1/l;i=this.getResFromScale(u,s),l=`1:${u}`,r[this.formatScale(l)]=i,o.push(i),t.push(l)},this);else if(e.layerType==="WMTS")e.scales.forEach(l=>{i=this.getResFromScale(l,s,90.7),l=`1:${l}`,r[this.formatScale(l)]=i,o.push(i),t.push(l)},this);else{let{minZoom:l=0,maxZoom:u=22}=e,h=this.map.getView();for(let c=l;c<=u;c++)if(i=h.getResolutionForZoom(c),a=this.getScaleFromRes(i,s),t.indexOf(a)===-1){t.push(a);let f=a.replace(/,/g,"");r[f]=i,o.push(i)}}this.scales=t,this.resolutions=r,this.resolutionArray=o}getResFromScale(e,t="DEGREE",r=96){let i=mPe[t.toUpperCase()];return e*.0254/r/i}getScaleFromRes(e,t="DEGREE",r=96){let i,a=mPe[t.toUpperCase()];return i=e*r*a/.0254,"1:"+i}formatScale(e){return e.replace(/,/g,"")}createSpecLayer(e){let t=this,r=e.baseLayer,i=r.url,a=r.layerType,o=[e.extent.leftBottom.x,e.extent.leftBottom.y,e.extent.rightTop.x,e.extent.rightTop.y],s=new ew({extent:o,units:"m",code:"EPSG:0"});fue(s);let l={center:e.center,level:0};t.baseProjection=s;let u={center:l.center?[l.center.x,l.center.y]:[0,0],zoom:0,projection:s};["4","5"].indexOf(br.getOlVersion())<0&&(u.multiWorld=!0);let h=new Lp(u);t.map.setView(h),t.mapParams&&(t.mapParams.extent=o,t.mapParams.projection=e.projection),i&&i.indexOf("?token=")>-1&&(t.credentialKey="token",t.credentialValue=e.baseLayer.credential=i.split("?token=")[1],i=i.split("?token=")[0]);let c;a==="TILE"?(i=this.handleJSONSuffix(i),li.get(t.getRequestUrl(i),null,{withCredentials:this.withCredentials}).then(function(f){return f.json()}).then(function(f){r.originResult=f;let d="IPORTAL",v=r.credential,p="Token",g=r.url;(r.url.indexOf("www.supermapol.com")>-1||r.url.indexOf("itest.supermapol.com")>-1)&&(p="Key",g=[g],d="ONLINE"),v&&xs[`register${p}`](g,v);let m={serverType:d,url:i,tileGrid:Bp.optionsFromMapJSON(i,f).tileGrid};i&&!W.isInTheSameDomain(i)&&!this.isIportalProxyServiceUrl(i)&&(m.tileProxy=t.server+"apps/viewer/getUrlResource.png?url="),c=new Bp(m),t.addSpecToMap(c)}).catch(function(f){t.errorCallback&&t.errorCallback(f,"getMapFaild",t.map)})):a==="WMS"?(c=t.createWMSSource(r),t.addSpecToMap(c)):a==="WMTS"?li.get(t.getRequestUrl(i,!0),null,{withCredentials:this.withCredentials}).then(function(f){return f.text()}).then(function(f){r.extent=[e.extent.leftBottom.x,e.extent.leftBottom.y,e.extent.rightTop.x,e.extent.rightTop.y],r.scales=t.getWMTSScales(r.tileMatrixSet,f),r.dpi=qP.iServerWMTS,c=t.createWMTSSource(r),t.addSpecToMap(c)}).catch(function(f){t.errorCallback&&t.errorCallback(f,"getMapFaild",t.map)}):t.errorCallback&&t.errorCallback({type:"Not support CS",errorMsg:`Not support CS: ${a}`},"getMapFaild",t.map),h&&h.fit(o)}addSpecToMap(e){let t=new L8({source:e,zIndex:0});this.map.addLayer(t),this.sendMapToUser(0)}getWMTSScales(e,t){let o=new dPe().read(t).Contents.TileMatrixSet,s=[];for(let l=0;l=1)}limitScale(e,t){if(this.validScale(e.minScale)&&this.validScale(e.maxScale)){let r,i,a;if(t.layerType==="WMTS")r=t.scales,i=+e.minScale.split(":")[1],a=+e.maxScale.split(":")[1];else{const h=this.scales.map(c=>1/c.split(":")[1]);Array.isArray(t.visibleScales)&&t.visibleScales.length&&t.visibleScales?r=t.visibleScales:r=h,i=1/+e.minScale.split(":")[1],a=1/+e.maxScale.split(":")[1]}const o=this.findNearest(r,i),s=this.findNearest(r,a);let l=r.indexOf(o),u=r.indexOf(s);l>u&&([l,u]=[u,l]),(l!==0||u!==r.length-1)&&(this.map.setView(new Lp(Object.assign({},this.map.getView().options_,{maxResolution:void 0,minResolution:void 0,minZoom:l,maxZoom:u,constrainResolution:!1}))),this.map.addInteraction(new Tqe({constrainResolution:!0})))}}parseNumber(e){return Number(e.split(":")[1])}findNearest(e,t){let r=0,i=t;for(let a=1,o=e.length;athis.createMVTLayer(i).then(a=>{let o=br.newGuid(8);t.name&&a.setProperties({name:t.name,layerID:o,layerType:"VECTOR_TILE"}),t.visibleScale&&this.setVisibleScales(a,t.visibleScale),t.layer=a,t.layerID=o,this.map.addLayer(a)})).catch(function(i){throw i})}createView(e){let t=e.center,r=e.level!==void 0?e.level:1,i=e.maxZoom||22,a,o=this.baseProjection,s=[];for(let c in t)s.push(t[c]);s.length===0&&(s=[0,0]),this.baseLayerExtent=a=e.baseLayer&&e.baseLayer.extent,this.mapParams&&(this.mapParams.extent=a,this.mapParams.projection=o),!dv(a,s)&&(s=Nf(a));let l=e.baseLayer,u;if(l.visibleScales&&l.visibleScales.length>0||l.scales&&l.scales.length>0)this.getScales(l);else if(e.baseLayer&&a&&a.length===4){let c=a[2]-a[0],f=a[3]-a[1],d=c/512,v=f/512;u=Math.max(d,v)}this.map.setView(new Lp({zoom:r,center:s,projection:o,maxZoom:i,maxResolution:u}));let h={};if(l.scales&&l.scales.length>0&&l.layerType==="WMTS"||this.resolutionArray&&this.resolutionArray.length>0?h={zoom:r,center:s,projection:o,resolutions:this.resolutionArray,maxZoom:i}:l.layerType==="WMTS"?(h={zoom:r,center:s,projection:o,maxZoom:i},this.getScales(l)):(h={zoom:r,center:s,projection:o,maxResolution:u,maxZoom:i},this.getScales(l)),["4","5"].indexOf(br.getOlVersion())<0&&(h.multiWorld=!0,h.showFullExtent=!0,h.enableRotation=!1,h.constrainResolution=!0),this.map.setView(new Lp(h)),e.visibleExtent){const c=this.map.getView(),f=c.getResolutionForExtent(e.visibleExtent,this.map.getSize());c.setResolution(f),c.setCenter(Nf(e.visibleExtent))}}createBaseLayer(e,t,r,i,a){let o,s=this;i&&(s=i);let l=e.layerType;switch((l.indexOf("TIANDITU_VEC")>-1||l.indexOf("TIANDITU_IMG")>-1||l.indexOf("TIANDITU_TER")>-1)&&(l=l.substr(0,12)),l){case"TIANDITU_VEC":case"TIANDITU_IMG":case"TIANDITU_TER":o=this.createTiandituSource(l,e.projection);break;case"BAIDU":o=this.createBaiduSource();break;case"BING":o=this.createBingSource(e,e.projection);break;case"WMS":o=this.createWMSSource(e);break;case"WMTS":o=s.createWMTSSource(e);break;case"TILE":case"SUPERMAP_REST":o=s.createDynamicTiledSource(e,a);break;case"CLOUD":case"CLOUD_BLACK":case"OSM":case"JAPAN_ORT":case"JAPAN_RELIEF":case"JAPAN_PALE":case"JAPAN_STD":case"GOOGLE_CN":case"GOOGLE":o=this.createXYZSource(e);break}var u=new L8({source:o,zIndex:e.zIndex||1,visible:e.visible}),h=br.newGuid(8);e.name&&u.setProperties({name:e.name,layerID:h}),(e.visible===void 0||e.visible===null)&&(e.visible=!0),u.setVisible(e.visible),e.opacity&&u.setOpacity(e.opacity),t&&u.setZIndex(t),e.layer=u,e.layerID=h;let{visibleScale:c,autoUpdateTime:f}=e,d,v;return c&&(v=this.resolutions[c.minScale],d=this.resolutions[c.maxScale],v>1?u.setMaxResolution(Math.ceil(v)):u.setMaxResolution(v*1.1),u.setMinResolution(d)),f&&!e.autoUpdateInterval&&(e.autoUpdateInterval=setInterval(()=>{s.updateTileToMap(e,t)},f)),r&&(u.setZIndex(0),s.map.addLayer(u)),u}updateTileToMap(e,t){this.map.removeLayer(e.layer),this.map.addLayer(this.createBaseLayer(e,t))}getInternetMapInfo(e){const t=[-200375083427892e-7,-200375083427892e-7,200375083427892e-7,200375083427892e-7],r=[-180,-90,180,90],i=[-2003750834e-2,-2003750834e-2,2003750834e-2,2003750834e-2],a=[1255566753929e-5,128185298656e-5,1752590886651e-5,748487070596e-5],o=[-1974111714519e-5,-1000392136848e-5,1998167771404e-5,1966098356089e-5];switch(e.units="m",e.layerType){case"BAIDU":e.iServerUrl="https://map.baidu.com/",e.epsgCode="EPSG:3857",e.minZoom=1,e.maxZoom=19,e.level=1,e.extent=t;break;case"CLOUD":e.url="http://t2.dituhui.com/FileService/image?map=quanguo&type=web&x={x}&y={y}&z={z}",e.epsgCode="EPSG:3857",e.minZoom=1,e.maxZoom=18,e.level=1,e.extent=t;break;case"CLOUD_BLACK":e.url="http://t3.dituhui.com/MapService/getGdp?x={x}&y={y}&z={z}",e.epsgCode="EPSG:3857",e.minZoom=1,e.maxZoom=18,e.level=1,e.extent=t;break;case"tencent":e.epsgCode="EPSG:3857",e.minZoom=1,e.maxZoom=18,e.level=1,e.extent=t;break;case"TIANDITU_VEC_3857":case"TIANDITU_IMG_3857":case"TIANDITU_TER_3857":e.iserverUrl="https://map.tianditu.gov.cn/",e.epsgCode="EPSG:3857",e.minZoom=0,e.maxZoom=19,e.level=1,e.extent=t,e.layerType==="TIANDITU_TER_3857"&&(e.maxZoom=14);break;case"TIANDITU_VEC_4326":case"TIANDITU_IMG_4326":case"TIANDITU_TER_4326":e.iserverUrl="https://map.tianditu.gov.cn/",e.epsgCode="EPSG:4326",e.minZoom=0,e.maxZoom=19,e.level=1,e.extent=r,e.layerType==="TIANDITU_TER_4326"&&(e.maxZoom=14);break;case"OSM":e.url="http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",e.epsgCode="EPSG:3857",e.minZoom=1,e.maxZoom=19,e.level=1,e.extent=i,e.iserverUrl="https://www.openstreetmap.org";break;case"GOOGLE":e.url=`https://maps.googleapis.com/maps/vt?pb=!1m5!1m4!1i{z}!2i{x}!3i{y}!4i256!2m3!1e0!2sm!3i540264686!3m12!2s${this.getLang()}!3sUS!5e18!12m4!1e68!2m2!1sset!2sRoadmap!12m3!1e37!2m1!1ssmartmaps!4e0&key=${this.googleMapsAPIKey}`,e.epsgCode="EPSG:3857",e.minZoom=1,e.maxZoom=22,e.level=1,e.extent=i,e.iserverUrl="https://www.google.cn/maps";break;case"JAPAN_STD":e.url="https://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png",e.epsgCode="EPSG:3857",e.minZoom=1,e.maxZoom=19,e.level=0,e.extent=i;break;case"JAPAN_PALE":e.url="https://cyberjapandata.gsi.go.jp/xyz/pale/{z}/{x}/{y}.png",e.epsgCode="EPSG:3857",e.minZoom=2,e.maxZoom=19,e.level=2,e.extent=i;break;case"JAPAN_RELIEF":e.url="https://cyberjapandata.gsi.go.jp/xyz/relief/{z}/{x}/{y}.png",e.epsgCode="EPSG:3857",e.minZoom=5,e.maxZoom=14,e.level=5,e.extent=a;break;case"JAPAN_ORT":e.url="https://cyberjapandata.gsi.go.jp/xyz/ort/{z}/{x}/{y}.jpg",e.epsgCode="EPSG:3857",e.minZoom=2,e.maxZoom=12,e.level=2,e.extent=o;break}}createDynamicTiledSource(e,t){let r="IPORTAL",i=e.credential?e.credential.token:void 0,a="Token",o=e.url;(e.url.indexOf("www.supermapol.com")>-1||e.url.indexOf("itest.supermapol.com")>-1)&&(a="Key",o=[o],r="ONLINE"),i&&xs[`register${a}`](o,i);let s={transparent:!0,url:e.url,wrapX:!1,serverType:r,format:e.format};if(!t&&!this.isCustomProjection(this.baseProjection)&&(s.prjCoordSys={epsgCode:this.baseProjection.split(":")[1]}),e.visibleScales&&e.visibleScales.length>0){let u=[];for(let c in e.visibleScales){let f=br.scaleToResolution(e.visibleScales[c],qP.default,e.coordUnit);u.push(f)}e.visibleResolutions=u;let h=new ym({extent:e.extent,resolutions:u});s.tileGrid=h}else{s.extent=this.baseLayerExtent;let u=new ym({extent:e.extent,resolutions:this.getResolutionsFromBounds(e.extent)});s.tileGrid=u}e.url&&!W.isInTheSameDomain(e.url)&&!this.isIportalProxyServiceUrl(e.url)&&e.format!=="webp"&&(s.tileProxy=this.server+"apps/viewer/getUrlResource.png?url=");let l=new Bp(s);return xs[`register${a}`](e.url),l}getResolutionsFromBounds(e){let t=[],r=Math.abs(e[0]-e[2])/512;for(let i=0;i<22;i++){if(i===0){t[i]=r;continue}r=r/2,t[i]=r}return t}createTiandituSource(e,t,r){let i={layerType:e.split("_")[1].toLowerCase(),isLabel:r||!1,projection:t,url:`https://t{0-7}.tianditu.gov.cn/{layer}_{proj}/wmts?tk=${this.tiandituKey}`};return new tM(i)}createBaiduSource(){return new h$}createBingSource(e,t){let r="https://dynamic.t0.tiles.ditu.live.com/comp/ch/{quadKey}?it=G,TW,L,LA&mkt=zh-cn&og=109&cstl=w4c&ur=CN&n=z";return new b7({wrapX:!1,projection:t,crossOrigin:"anonymous",tileUrlFunction:function(i){let[a,o,s]=[...i];s=s>0?s-1:-s-1;let l="";for(let u=a;u>0;u--){let h=0,c=1<{if(l.succeed===!1)return l;let u="png";return r.tileFormat==="webp"&&(u=await r.isSupportWebp(e.url,i)?"webp":"png"),{units:l.coordUnit&&l.coordUnit.toLowerCase(),coordUnit:l.coordUnit,visibleScales:l.visibleScales,extent:[l.bounds.left,l.bounds.bottom,l.bounds.right,l.bounds.top],projection:`EPSG:${l.prjCoordSys.epsgCode}`,format:u}}).catch(l=>({succeed:!1,error:l}))}getTileInfo(e,t,r){let i=this,a={withCredentials:this.withCredentials,withoutFormatSuffix:!0};e.url.indexOf("?token=")>-1&&(i.credentialKey="token",i.credentialValue=e.credential=e.url.split("?token=")[1],e.url=e.url.split("?token=")[0]);let o=this.handleJSONSuffix(e.url);return li.get(i.getRequestUrl(o),null,a).then(function(s){return s.json()}).then(async function(s){if(s&&s.code&&s.code!==200)throw s;s.visibleScales&&(e.visibleScales=s.visibleScales,e.coordUnit=s.coordUnit),e.maxZoom=s.maxZoom,e.maxZoom=s.minZoom;let l=e.credential?e.credential.token:void 0;if(e.format="png",i.tileFormat==="webp"&&e.url!=="https://maptiles.supermapol.com/iserver/services/map_China/rest/maps/China_Dark"){const u=await i.isSupportWebp(e.url,l);e.format=u?"webp":"png"}r?t&&t(r,null,!0,i):t&&t(e)}).catch(function(s){i.errorCallback&&i.errorCallback(s,"getTileInfo",i.map)})}getWMTSUrl(e,t){let r="?";return e.indexOf("?")>-1&&(r="&"),t?e+=r+"SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetCapabilities":e+=r+"/1.0.0/WMTSCapabilities.xml",this.getRequestUrl(e,!0)}getWmtsInfo(e,t){let r=this,i={withCredentials:r.withCredentials,withoutFormatSuffix:!0};const a=!e.requestEncoding||e.requestEncoding==="KVP";return li.get(r.getWMTSUrl(e.url,a),null,i).then(function(o){return o.text()}).then(function(o){let l=new dPe().read(o);if(r.isValidResponse(l)){let h=l.Contents,c=h.TileMatrixSet,f=h.Layer,d,v,p,g="default";for(let S=0;S{S.isDefault&&(g=S.Identifier)});let m=[],y=[];for(let S=0;S-1?[b[1],b[0]]:b;break}let _=e.name,x;u?(u[0]<-180&&(u[0]=-180),u[1]<-90&&(u[1]=-90),u[2]>180&&(u[2]=180),u[3]>90&&(u[3]=90),x=Cte(u,"EPSG:4326",r.baseProjection)):x=ya(r.baseProjection).getExtent(),e.tileUrl=r.getTileUrl(l.OperationsMetadata.GetTile.DCP.HTTP.Get,d,p,a),e.extent=x,e.name=_,e.orginEpsgCode=e.projection,e.overLayer=!0,e.scales=m,e.style=g,e.title=_,e.unit="m",e.layerFormat=p,e.matrixIds=y,t&&t(e)}}).catch(function(o){r.errorCallback&&r.errorCallback(o,"getWmtsFaild",r.map)})}getWmsInfo(e){let t=this,r=e.url.trim();r+=r.indexOf("?")>-1?"&SERVICE=WMS&REQUEST=GetCapabilities":"?SERVICE=WMS&REQUEST=GetCapabilities";let i={withCredentials:t.withCredentials,withoutFormatSuffix:!0};return new Promise(function(o){return li.get(t.getRequestUrl(r,!0),null,i).then(function(s){return s.text()}).then(async function(s){let u=new ajr().read(s);if(u){let h=u.Capability.Layer.Layer,c=e.projection;e.subLayers=e.layers[0],e.version=u.version;for(let f=0;f{o.Constraint[0].AllowedValues.Value[0].toUpperCase()==="KVP"&&(a=o.href)}):a=t.ResourceURL.filter(s=>s.format===r)[0].template,a}createWMTSSource(e){let t=e.extent||ya(e.projection).getExtent(),r=ya(this.baseProjection).getUnits();return new qqe({url:e.tileUrl||e.url,layer:e.layer,format:e.layerFormat,style:e.style,matrixSet:e.tileMatrixSet,requestEncoding:e.requestEncoding||"KVP",tileGrid:this.getWMTSTileGrid(t,e.scales,r,e.dpi,e.origin,e.matrixIds),tileLoadFunction:function(i,a){if(a.indexOf("tianditu.gov.cn")>=0){i.getImage().src=`${a}&tk=${W.getParameters(e.url).tk}`;return}i.getImage().src=a}})}getWMTSTileGrid(e,t,r,i,a,o){let s=this.getReslutionsFromScales(t,i||qP.iServerWMTS,r);return new pre({origin:a,extent:e,resolutions:s.res,matrixIds:o||s.matrixIds})}getReslutionsFromScales(e,t,r,i){r=r&&r.toLowerCase()||"degrees",t=t||qP.iServerWMTS,i=i||6378137;let a=[],o=[];if(br.isArray(e))e&&e.forEach(function(s,l){s>1&&(o.push(l),a.push(this.getResolutionFromScale(s,t,r,i)))},this);else{let s=e.TileMatrix;s&&s.forEach(function(l){o.push(l.Identifier),a.push(this.getResolutionFromScale(l.ScaleDenominator,t,r,i))},this)}return{res:a,matrixIds:o}}getResolutionFromScale(e,t=qP.default,r,i){let a;return e=+e,e=e>1?1/e:e,r==="degrees"||r==="dd"||r==="degree"?a=.0254*1e4/t/e/(Math.PI*2*i/360)/1e4:a=.0254*1e4/t/e/1e4,a}isValidResponse(e){let t=["Contents","OperationsMetadata"],r=!0;for(let i=0;i0){this.layers=t;for(let o=0;o{r.layerAdded++,r.sendMapToUser(a)}).catch(function(c){r.layerAdded++,r.sendMapToUser(a),r.errorCallback&&r.errorCallback(c,"getLayerFaild",r.map)});else if(u&&u.serverId||s.layerType==="MARKER"||s.layerType==="HOSTED_TILE"||h){let c=s.dataSource,f=c?c.serverId:s.serverId;if(!f&&!h){await r.addLayer(s,null,l),r.layerAdded++,r.sendMapToUser(a);return}if(s.layerType==="MARKER"||c&&(!c.accessType||c.accessType==="DIRECT")||h){let d=h?`${r.server}apps/dataviz/libs/sample-datas/${c.name}.json`:`${r.server}web/datas/${f}/content.json?pageSize=9999999¤tPage=1`;d=r.getRequestUrl(d),li.get(d,null,{withCredentials:this.withCredentials}).then(function(v){return v.json()}).then(async function(v){if(v.succeed===!1){r.layerAdded++,r.sendMapToUser(a),r.errorCallback&&r.errorCallback(v.error,"getLayerFaild",r.map);return}if(v&&v.type){if(v.type==="JSON"||v.type==="GEOJSON")v.content=v.content.type?v.content:JSON.parse(v.content),i=r.geojsonToFeature(v.content,s);else if(v.type==="EXCEL"||v.type==="CSV")if(s.dataSource&&s.dataSource.administrativeInfo){v.content.rows.unshift(v.content.colTitles);let{divisionType:p,divisionField:g}=s.dataSource.administrativeInfo,m=r.excelData2FeatureByDivision(v.content,p,g);i=r._parseGeoJsonData2Feature({allDatas:{features:m.features},fileCode:s.projection})}else i=await r.excelData2Feature(v.content,s);else if(v.type==="SHP"){let p=JSON.parse(v.content);v.content=p.layers[0],i=r.geojsonToFeature(v.content,s)}await r.addLayer(s,i,l),r.layerAdded++,r.sendMapToUser(a)}}).catch(function(v){r.layerAdded++,r.sendMapToUser(a),r.errorCallback&&r.errorCallback(v,"getLayerFaild",r.map)})}else{let d=s.layerType==="HOSTED_TILE",v=c?c.serverId:s.serverId;r.checkUploadToRelationship(v).then(function(p){if(p&&p.length>0){let g=p[0].name,m=p[0].type.toUpperCase();r.getDataService(v,g).then(async function(y){let _=y.dataItemServices;if(_.length===0){r.layerAdded++,r.sendMapToUser(a),r.errorCallback&&r.errorCallback(null,"getLayerFaild",r.map);return}if(d){let x=r.getService(_,"RESTDATA");r.isMvt(x.address,g).then(async S=>{await r.getServiceInfoFromLayer(l,a,s,_,g,m,S)}).catch(async()=>{await r.getServiceInfoFromLayer(l,a,s,_,g,m)})}else await r.getServiceInfoFromLayer(l,a,s,_,g,m)})}else r.layerAdded++,r.sendMapToUser(a),r.errorCallback&&r.errorCallback(null,"getLayerFaild",r.map)}).catch(function(p){r.layerAdded++,r.sendMapToUser(a),r.errorCallback&&r.errorCallback(p,"getLayerFaild",r.map)})}}else u&&u.type==="USER_DATA"?r.addGeojsonFromUrl(s,a,l,!1):s.layerType==="TILE"?r.getTileLayerExtent(s,function(c){r.map.addLayer(r.createBaseLayer(c,l)),r.layerAdded++,r.sendMapToUser(a)},function(c){r.layerAdded++,r.sendMapToUser(a),r.errorCallback&&r.errorCallback(c,"getLayerFaild",r.map)}):s.layerType==="SUPERMAP_REST"||s.layerType==="WMS"||s.layerType==="WMTS"?s.layerType==="WMTS"?r.getWmtsInfo(s,function(c){r.map.addLayer(r.createBaseLayer(c,l)),r.layerAdded++,r.sendMapToUser(a)}):s.layerType==="WMS"?r.getWmsInfo(s).then(()=>{r.map.addLayer(r.createBaseLayer(s,l)),r.layerAdded++,r.sendMapToUser(a)}):(s.projection=r.baseProjection,r.map.addLayer(r.createBaseLayer(s,l)),r.layerAdded++,r.sendMapToUser(a)):u&&u.type==="REST_DATA"?r.getFeaturesFromRestData(s,l,a):u&&u.type==="REST_MAP"&&u.url?vMe(u.url,u.layerName,"smid=1",null,null,function(c){var f=c&&c.result.recordsets,d=f&&f[0],v=d.fields;if(d&&v){let m=[];for(var p in v){var g=v[p];(g.indexOf("Sm")!==0||g==="SmID")&&m.push(g)}r.getFeatures(m,s,async function(y){await r.addLayer(s,y,l),r.layerAdded++,r.sendMapToUser(a)},function(y){r.layerAdded++,r.errorCallback&&r.errorCallback(y,"getFeatureFaild",r.map)})}},function(c){r.errorCallback&&r.errorCallback(c,"getFeatureFaild",r.map)}):(s.layerType==="DATAFLOW_POINT_TRACK"||s.layerType==="DATAFLOW_HEAT")&&r.getDataflowInfo(s,async function(){await r.addLayer(s,i,l),r.layerAdded++,r.sendMapToUser(a)},function(c){r.layerAdded++,r.errorCallback&&r.errorCallback(c,"getFeatureFaild",r.map)})}}}addGeojsonFromUrl(e,t,r,i=this.withCredentials){let{dataSource:a}=e,{url:o}=a,s=this;li.get(o,null,{withCredentials:i,withoutFormatSuffix:!0}).then(function(l){return l.json()}).then(async function(l){if(!l||l.succeed===!1){t?s.errorCallback&&s.errorCallback(l.error,"autoUpdateFaild",s.map):(s.layerAdded++,s.sendMapToUser(t),s.errorCallback&&s.errorCallback(l.error,"getLayerFaild",s.map));return}var u;if(l.type==="CSV"||l.type==="EXCEL")if(e.dataSource&&e.dataSource.administrativeInfo){l.content.rows.unshift(l.content.colTitles);let{divisionType:c,divisionField:f}=e.dataSource.administrativeInfo,d=s.excelData2FeatureByDivision(l.content,c,f);u=s._parseGeoJsonData2Feature({allDatas:{features:d.features},fileCode:e.projection})}else u=await s.excelData2Feature(l.content,e);else{var h=l.content?JSON.parse(l.content):l;u=s.geojsonToFeature(h,e)}t?(await s.addLayer(e,u,r),s.layerAdded++,s.sendMapToUser(t)):(s.map.removeLayer(e.layer),e.labelLayer&&s.map.removeLayer(e.labelLayer),await s.addLayer(e,u,r))}).catch(function(l){s.layerAdded++,s.sendMapToUser(t),s.errorCallback&&s.errorCallback(l,"getLayerFaild",s.map)})}async getServiceInfoFromLayer(e,t,r,i,a,o,s){let l=this,u=s?!s.isMvt:r.layerType==="HOSTED_TILE",h=!1;for(let c=0;cv.json());t.xyField={xField:d.xField,yField:d.yField},d.xIndex?(c=d.xIndex,f=d.yIndex):(c=i.indexOf(d.xField),f=i.indexOf(d.yField))}else if(o.type==="SAMPLE_DATA"){const d=m$r.find(v=>v.id===o.name)||{};u=d.xField,h=d.yField,t.xyField={xField:u,yField:h},c=i.findIndex(v=>v===u),f=i.findIndex(v=>v===h)}}catch(d){console.error(d)}for(let d=0,v=r.length;d-1){const E=b+"_1";g[E]=p[S]}else g[b]=p[S]}let x=new d0({geometry:_,attributes:g});l.push(x)}}return Promise.resolve(l)}excelData2FeatureByDivision(e,t,r){let i=this,a;if(t==="Province"?a=window.ProvinceData:t==="City"?a=window.MunicipalData:t==="GB-T_2260"&&(a=window.AdministrativeArea),a)return i.changeExcel2Geojson(a.features,e.rows,t,r)}_parseGeoJsonData2Feature(e){let t=e.allDatas.features,r=[];for(let i=0,a=t.length;iu===i);return s.forEach(u=>{let h;if(r==="GB-T_2260"?h=e.find(c=>c.properties.GB===u[l]):h=br.getHighestMatchAdministration(e,u[l]),h){let c=window.cloneDeep(h);c.properties={},u.forEach((f,d)=>{let v=o[d].trim();c.properties[v]=f}),a.features.push(c)}}),a}geojsonToFeature(e,t){let r=e.features,i=[];for(let a=0,o=r.length;a-1||p._smiportal_imgLinkUrl.indexOf("https://")>-1?g=p._smiportal_imgLinkUrl:p._smiportal_imgLinkUrl!==void 0&&p._smiportal_imgLinkUrl!==null&&p._smiportal_imgLinkUrl!==""&&(g=`${br.getIPortalUrl()}resources/markerIcon/${p._smiportal_imgLinkUrl}`),c={dataViz_description:p._smiportal_description,dataViz_imgUrl:g,dataViz_title:p._smiportal_title,dataViz_url:p._smiportal_otherLinkUrl},v.anchor=[.5,1],v.src=v.externalGraphic,f=v,d=Object.assign({},{attributes:c},{useStyle:f}),delete p._smiportal_description,delete p._smiportal_imgLinkUrl,delete p._smiportal_title,delete p._smiportal_otherLinkUrl}else d={attributes:s};l.setProperties(d),i.push(l)}return i}parseGeoJsonData2Feature(e){let t=e.allDatas.features,r=[];for(let i=0,a=t.length;i{a.updateFeaturesToMap(e,r,!0)},l)}}e.layer=i,e.layerID=o,e.labelStyle&&e.labelStyle.labelField&&e.layerType!=="DATAFLOW_POINT_TRACK"&&(t=e.filterCondition?this.getFiterFeatures(e.filterCondition,t):t,this.addLabelLayer(e,t))}updateFeaturesToMap(e,t){let r=this,i=e.dataSource,a=e.dataSource.url,o=i.dataSourceName||e.name;if(i.type==="USER_DATA"||i.accessType==="DIRECT")r.addGeojsonFromUrl(e,null,t);else{let s=r.formatUrlWithCredential(a),l={};l.withCredentials=this.withCredentials,!this.excludePortalProxyUrl&&!W.isInTheSameDomain(s)&&!this.isIportalProxyServiceUrl(s)&&(l.proxy=this.getProxy()),dMe(s,[o],l,async function(u){let h=r.parseGeoJsonData2Feature({allDatas:{features:u.result.features.features},fileCode:e.projection,featureProjection:r.baseProjection});r.map.removeLayer(e.layer),e.labelLayer&&r.map.removeLayer(e.labelLayer),await r.addLayer(e,h,t)},function(u){r.errorCallback&&r.errorCallback(u,"autoUpdateFaild",r.map)},void 0,this.restDataSingleRequestCount)}}async addVectorTileLayer(e,t,r){let i;r==="RESTDATA"&&(i=await this.createDataVectorTileLayer(e));let a=br.newGuid(8);return i&&(e.name&&i.setProperties({name:e.name,layerID:a}),e.opacity!=null&&i.setOpacity(e.opacity),i.setVisible(e.visible),i.setZIndex(t)),e.layer=i,e.layerID=a,i}async createDataVectorTileLayer(e){var t=new w1({featureClass:d0});w1.prototype.readProjection=function(){return new ew({code:"",units:$c.TILE_PIXELS})};let r=e.featureType,i=await ts.toOpenLayersStyle(this.getDataVectorTileStyle(r),r);return new fPe({source:new Zre({url:e.url,projection:e.projection,tileType:"ScaleXY",format:t}),style:i})}getDataVectorTileStyle(e){let t={radius:8,fillColor:"#EE4D5A",fillOpacity:.9,strokeColor:"#ffffff",strokeWidth:1,strokeOpacity:1,lineDash:"solid",type:"BASIC_POINT"};return["LINE","LINESTRING","MULTILINESTRING"].indexOf(e)>-1?(t.strokeColor="#4CC8A3",t.strokeWidth=2):["REGION","POLYGON","MULTIPOLYGON"].indexOf(e)>-1&&(t.fillColor="#826DBA"),t}getFiterFeatures(e,t){let r=this.parseFilterCondition(e),i=[];for(let a=0;a0&&i.push(o)}return i}parseFilterCondition(e){return e.replace(/=/g,"==").replace(/AND|and/g,"&&").replace(/or|OR/g,"||").replace(/<==/g,"<=").replace(/>==/g,">=").replace(/\(?[^\(]+?\s*in\s*\([^\)]+?\)\)?/gi,t=>{const r=t.match(/([^(]+?)\s*in\s*\(([^)]+?)\)/i);return r.length===3?`(${r[2].split(",").map(i=>`${r[1]} == ${i.trim()}`).join(" || ")})`:t})}async createGraphicLayer(e,t){t=e.filterCondition?this.getFiterFeatures(e.filterCondition,t):t;let r=await this.getGraphicsFromFeatures(t,e.style,e.featureType),i=new d$({graphics:r,render:"canvas",map:this.map,isHighLight:!1});return new dZe({source:i})}async getGraphicsFromFeatures(e,t,r){let i=await ts.getOpenlayersStyle(t,r),a=i.getImage(),o=[];for(let s in e){let l=new YM(e[s].getGeometry());l.setStyle(a),l.setProperties({attributes:e[s].get("attributes")}),o.push(l)}return o}createSymbolLayer(e,t){let r=ts.getSymbolStyle(e.style);return new Sy({style:r,source:new _f({features:e.filterCondition?this.getFiterFeatures(e.filterCondition,t):t,wrapX:!1}),renderMode:"image"})}addLabelLayer(e,t){let r=e.labelStyle,i=this.getLabelStyle(r,e),a=e.labelLayer=new Sy({declutter:!0,styleOL:i,labelField:r.labelField,source:new _f({features:t,wrapX:!1})});a.setStyle(s=>{let l=r.labelField,u=s.get("attributes")[l.trim()]+"";if(u==="undefined")return null;let h=a.get("styleOL"),c=h.getText();return c&&c.setText&&c.setText(u),h}),this.map.addLayer(a),a.setVisible(e.visible),a.setZIndex(1e3);const{visibleScale:o}=e;return o&&this.setVisibleScales(a,o),a}setVisibleScales(e,t){let r=this.resolutions[t.minScale],i=this.resolutions[t.maxScale];r>1?e.setMaxResolution(Math.ceil(r)):e.setMaxResolution(r*1.1),e.setMinResolution(i)}getLabelStyle(e,t){let r=t.style||t.pointStyle;const{radius:i=0,strokeWidth:a=0}=r,o=-(i+a),{fontSize:s="14px",fontFamily:l,fill:u,backgroundFill:h,offsetX:c=0,offsetY:f=o,placement:d="point",textBaseline:v="bottom",textAlign:p="center",outlineColor:g="#000000",outlineWidth:m=0}=e,y={font:`${s} ${l}`,placement:d,textBaseline:v,fill:new Zo({color:u}),backgroundFill:new Zo({color:h}),padding:[3,3,3,3],offsetX:t.featureType==="POINT"?c:0,offsetY:t.featureType==="POINT"?f:0,overflow:!0,maxAngle:0};return t.featureType==="POINT"&&(y.textAlign=p),m>0&&(y.stroke=new es({color:g,width:m})),new So({text:new J1(y)})}async createVectorLayer(e,t){const{featureType:r,style:i}=e;let a;if(r==="LINE"&&br.isArray(i)&&i.length===2){const[o,s]=i;a=!s.lineDash||s.lineDash==="solid"?ts.getRoadPath(s,o):ts.getPathway(s,o)}else br.isArray(i)&&(e.style=i[0]),a=await ts.toOpenLayersStyle(e.style,e.featureType);return new Sy({style:a,source:new _f({features:e.filterCondition?this.getFiterFeatures(e.filterCondition,t):t,wrapX:!1})})}createHeatLayer(e,t){t=e.filterCondition?this.getFiterFeatures(e.filterCondition,t):t;let i={source:new _f({features:t,wrapX:!1})},a=e.themeSetting;i.gradient=a.colors.slice(),i.radius=parseInt(a.radius);let o=a.customSettings;for(let s in o)i.gradient[s]=o[s];return a.weight&&this.changeWeight(t,a.weight),new cPe(i)}changeWeight(e,t){let r=this;this.fieldMaxValue={},this.getMaxValue(e,t);let i=this.fieldMaxValue[t];e.forEach(function(a){let o=a.get("attributes");try{let s=o[t];a.set("weight",s/i)}catch(s){r.errorCallback&&r.errorCallback(s)}})}getMaxValue(e,t){let r=[],i=this,a,o=t;this.fieldMaxValue[o]||(e.forEach(function(s){a=s.get("attributes");try{r.push(parseFloat(a[o]))}catch(l){i.errorCallback&&i.errorCallback(l)}}),this.fieldMaxValue[o]=vB.getArrayStatistic(r,"Maximum"))}async createUniqueLayer(e,t){let r=await this.createUniqueSource(e,t),i=new Sy({styleSource:r,source:new _f({features:e.filterCondition?this.getFiterFeatures(e.filterCondition,t):t,wrapX:!1})});return i.setStyle(a=>{let o=i.get("styleSource"),s=o.themeField,l=a.get("attributes")[s];return o.styleGroups.find(h=>h.value===l).olStyle}),i}async createUniqueSource(e,t){let r=await this.getUniqueStyleGroup(e,t);return{map:this.map,style:e.style,isHoverAble:e.isHoverAble,highlightStyle:e.highlightStyle,themeField:e.themeSetting.themeField,styleGroups:r}}async getUniqueStyleGroup(e,t){let r=e.featureType,i=e.style,a=e.themeSetting,o=a.themeField,s=[],l=a.customSettings;for(let d in t){let p=t[d].get("attributes")[o],g=!1;for(let m in s)if(s[m]===p){g=!0;break}g||s.push(p)}let u=[];const h=this.getCustomSettingColors(l,r).map(d=>d.toLowerCase()),c=this.getUniqueColors(a.colors||this.defaultParameters.themeSetting.colors,s.length+Object.keys(l).length).map(d=>d.toLowerCase()),f=dXr(c,h);for(let d=0;d{if(br.isString(e[a])){i.push(e[a]);return}t==="LINE"?i.push(e[a].strokeColor):i.push(e[a].fillColor)}),i}getUniqueColors(e,t){return dB.getGradientColors(e,t)}async createRangeLayer(e,t){let r=await this.createRangeSource(e,t),i=new Sy({styleSource:r,source:new _f({features:e.filterCondition?this.getFiterFeatures(e.filterCondition,t):t,wrapX:!1})});return i.setStyle(a=>{let o=i.get("styleSource");if(o){let s=o.themeField,l=Number(a.get("attributes")[s.trim()]),u=o.styleGroups;for(let h=0;h=u[h].start&&l<=u[h].end)return u[h].olStyle}else if(l>u[h].start&&l<=u[h].end)return u[h].olStyle}}),i}async createRangeSource(e,t){let r=await this.getRangeStyleGroup(e,t);return r?{style:e.style,themeField:e.themeSetting.themeField,styleGroups:r}:!1}async getRangeStyleGroup(e,t){let r=e.featureType,i=e.themeSetting,a=e.style,o=i.segmentCount,s=i.segmentMethod,l=i.colors,u=i.customSettings,h=i.themeField,c=[],f,d=o,v=s,p=this;t.forEach(function(m){f=m.get("attributes");try{if(f){let y=f[h.trim()];y!=null&&br.isNumber(y)&&c.push(parseFloat(y))}else m.get(h)&&br.isNumber(m.get(h))&&m.get(h)&&c.push(parseFloat(m.get(h)))}catch(y){p.errorCallback&&p.errorCallback(y)}});let g;try{g=vB.getArraySegments(c,v,d)}catch(m){p.errorCallback&&p.errorCallback(m)}if(g){let m=d;f&&g[0]===g[f.length-1]&&(m=1,g.length=2);for(let x in g){let S=g[x];Number(x)===0?S=Math.floor(S*100)/100:S=Math.ceil(S*100)/100+.1,g[x]=Number(S.toFixed(2))}let y=l;y=dB.getGradientColors(y,m,"RANGE");for(let x=0;x0&&p.addDataflowFeature(_,e.identifyField,{dataflowSource:a,featureCache:g,labelSource:s,labelFeatureCache:m,pathSource:u,pathFeatureCache:y,maxPointCount:e.maxPointCount})}else p.addDataflowFeature(_,e.identifyField,{dataflowSource:a,featureCache:g,labelSource:s,labelFeatureCache:m,pathSource:u,pathFeatureCache:y,maxPointCount:e.maxPointCount})}}(f,d,v)),this.setFeatureStyle(h,e.directionField,r.type),h}addDataflowFeature(e,t,r){r.dataflowSource&&this.addFeatureFromDataflowService(r.dataflowSource,e,t,r.featureCache),r.labelSource&&this.addFeatureFromDataflowService(r.labelSource,e,t,r.labelFeatureCache),r.pathSource&&this.addPathFeature(r.pathSource,e,t,r.pathFeatureCache,r.maxPointCount)}addPathFeature(e,t,r,i,a){let o=[];var s=t.get(r);i[s]?(o=i[s].getGeometry().getCoordinates(),o.push(t.getGeometry().getCoordinates()),a&&o.length>a&&o.splice(0,o.length-a),i[s].getGeometry().setCoordinates(o)):(o.push(t.getGeometry().getCoordinates()),i[s]=new d0({geometry:new gm(o)}),e.addFeature(i[s]))}setFeatureStyle(e,t,r){let i=e.get("styleOL");e.setStyle(a=>{let o,s;if(t!==void 0&&t!=="\u672A\u8BBE\u7F6E"&&t!=="None"?o=a.get("attributes")[t]:o=0,o>360||o<0)return null;r==="SYMBOL_POINT"?s=i.getText():s=i.getImage();let l=Math.PI*o/180;return s&&s.setRotation(l),i})}createDataflowHeatLayer(e){let r={source:this.createDataflowHeatSource(e)};if(r.gradient=e.themeSetting.colors.slice(),r.radius=parseInt(e.themeSetting.radius),e.themeSetting.customSettings){let i=e.themeSetting.customSettings;for(let a in i)r.gradient[a]=i[a]}return new cPe(r)}createDataflowHeatSource(e){let t=this,r=new _f({wrapX:!1}),i={};return this.createDataflowService(e,function(a){return function(o){if(e.filterCondition){let s=t.parseFilterCondition(e.filterCondition);const l=o.get("attributes"),u=Jq(s,Object.keys(l)),h=Qq(l),c="select * from json where ("+u+")";let f=window.jsonsql.query(c,{attributes:h});f&&f.length>0&&t.addDataflowFeature(o,e.identifyField,{dataflowSource:r,featureCache:a})}else t.addDataflowFeature(o,e.identifyField,{dataflowSource:r,featureCache:a});e.themeSetting.weight&&t.changeWeight(r.getFeatures(),e.themeSetting.weight)}}(i)),r}addFeatureFromDataflowService(e,t,r,i){var a=t.get(r);a!==void 0&&i[a]?(i[a].setGeometry(t.getGeometry()),i[a].setProperties(t.getProperties()),e.changed()):(e.addFeature(t),i[a]=t)}createDataflowService(e,t){let r=this,i=new Ihe(e.wsUrl).initSubscribe();i.on("messageSucceeded",function(a){let o=JSON.parse(a.value.data),s=eB.readFeature(o,{dataProjection:e.projection||"EPSG:4326",featureProjection:r.baseProjection||"EPSG:4326"});s.setProperties({attributes:o.properties}),t(s)}),e.dataflowService=i}async setEachFeatureDefaultStyle(e){let t=this;e=br.isArray(e)||e instanceof gd?e:[e];for(let r=0;r{let o=i.get("styleSource"),s=o.parameters.themeSetting.themeField,l=Number(a.get("attributes")[s]),u=o.styleGroups;for(let h=0,c=u.length;h=u[h].start&&l{let y=m.get("attributes"),_=y[e];_==null||!br.isNumber(_)||a.push(Number(_))});try{o=vB.getArraySegments(a,u,h)}catch(m){console.error(m)}for(let m=0;m0&&r>0?`EPSG:${e.substring(t,r).split(",")[1].substr(1)}`:!1}}createMigrationLayer(e,t){window.ol3Echarts.prototype.getContainer||(window.ol3Echarts.prototype.getContainer=function(){return this.$container}),window.ol3Echarts.prototype.setVisible||(window.ol3Echarts.prototype.setVisible=function(l){if(l){let u=this.get("options");u&&(this.setChartOptions(u),this.unset("options"))}else{let u=this.getChartOptions();this.set("options",u),this.clear(),this.setChartOptions({})}}),window.ol3Echarts.prototype.setZIndex||(window.ol3Echarts.prototype.setZIndex=function(l){let u=this.getContainer();u&&(u.style.zIndex=l)}),window.ol3Echarts.prototype.setCursor||(window.ol3Echarts.prototype.setCursor=function(l="default"){let u=this.getContainer();u&&l==="default"&&u.classList.add("cursor-default")});let r=_Fr(t),i=this.createLinesData(e,r),a=this.createPointsData(i,e,r),o=this.createOptions(e,i,a),s=new window.ol3Echarts(o,{hideOnMoving:!1,hideOnZooming:!1,forcedPrecomposeRerender:!0});return s.type="ECHARTS",s}createOptions(e,t,r){let i,a=this.createLineSeries(e,t);if(r&&r.length){let s=this.createPointSeries(e,r);i=a.concat(s)}else i=a.slice();return{series:i}}createLineSeries(e,t){let r=e.lineSetting,i=e.animationSetting,a=[{name:"line-series",type:"lines",zlevel:1,silent:!0,effect:{show:i.show,constantSpeed:i.constantSpeed,trailLength:0,symbol:i.symbol,symbolSize:i.symbolSize},lineStyle:{normal:{color:r.color,type:r.type,width:r.width,opacity:r.opacity,curveness:r.curveness}},data:t}];return t.length>vXr&&(a[0].blendMode="lighter"),a}createPointSeries(e,t){let r=e.lineSetting,i=e.animationSetting,a=e.labelSetting,o=[{name:"point-series",coordinateSystem:"geo",zlevel:2,silent:!0,label:{normal:{show:a.show,position:"right",formatter:"{b}",color:a.color,fontFamily:a.fontFamily}},itemStyle:{normal:{color:r.color||a.color}},data:t}];return i.show?(o[0].type="effectScatter",o[0].rippleEffect={brushType:"stroke"}):o[0].type="scatter",o}createPointsData(e,t,r){let i=[],a=t.labelSetting;if(!a.show||!e.length)return i;let o=[],s=[];return e.forEach((l,u)=>{let h=l.coords,c=h[0],f=h[1],d=r[u][a.from],v=r[u][a.to];!o.find(m=>m.value[0]===c[0]&&m.value[1]===c[1])&&o.push({name:d,value:c}),!s.find(m=>m.value[0]===f[0]&&m.value[1]===f[1])&&s.push({name:v,value:f})}),i=o.concat(s),i}createLinesData(e,t){let r=[];if(t&&t.length){let i=e.from,a=e.to,o,s;if(i.type==="XY_FIELD"&&i.xField&&i.yField&&a.xField&&a.yField)t.forEach(l=>{let u=l[i.xField],h=l[i.yField],c=l[a.xField],f=l[a.yField];!u||!h||!c||!f||(o=[l[i.xField],l[i.yField]],s=[l[a.xField],l[a.yField]],r.push({coords:[o,s]}))});else if(i.type==="PLACE_FIELD"&&i.field&&a.field){const l=g$r.concat(y$r);t.forEach(u=>{let h=u[i.field],c=u[a.field];o=l.find(f=>br.isMatchAdministrativeName(f.name,h)),s=l.find(f=>br.isMatchAdministrativeName(f.name,c)),!(!o||!s)&&r.push({coords:[o.coord,s.coord]})})}}return r}getService(e,t){return e.filter(i=>i&&i.serviceType===t)[0]}isMvt(e,t){let r=this;return this.getDatasetsInfo(e,t).then(i=>i.epsgCode==r.baseProjection.split("EPSG:")[1]?li.get(r.getRequestUrl(`${i.url}/tilefeature.mvt`),null,{withCredentials:r.withCredentials}).then(function(a){return a.json()}).then(function(a){return i.isMvt=a.error&&a.error.code===400,i}).catch(()=>i):i)}getDatasetsInfo(e,t){let r=this;return r.getDatasources(e).then(function(i){let a=`${e}/data/datasources/${i}/datasets/${t}.json`;return li.get(r.getRequestUrl(a),null,{withCredentials:r.withCredentials}).then(function(o){return o.json()}).then(function(o){return{epsgCode:o.datasetInfo.prjCoordSys.epsgCode,bounds:o.datasetInfo.bounds,url:a}})})}isRestMapMapboxStyle(e){const t="/tileFeature/vectorstyles.json?type=MapBox_GL&styleonly=true&tileURLTemplate=ZXY";let r=e.dataSource,i=e.layerType;return!!(r&&r.type==="EXTERNAL"&&r.url.indexOf(t)>-1&&(i==="MAPBOXSTYLE"||i==="VECTOR_TILE"))}getMapboxStyleLayerInfo(e,t){let r=this;return new Promise((i,a)=>r.getMapLayerExtent(t).then(o=>r.getMapboxStyle(e,o).then(s=>{Object.assign(o,s),i(o)}).catch(s=>{a(s)})).catch(o=>{a(o)}))}getMapLayerExtent(e){const t="/tileFeature/vectorstyles.json?type=MapBox_GL&styleonly=true&tileURLTemplate=ZXY";let i=e.dataSource.url;this.isRestMapMapboxStyle(e)&&(i=i.replace(t,"")),i=this.getRequestUrl(i+".json");let a=e.credential,o,s;return a&&(s=Object.keys(a)[0],o=a[s],i=`${i}?${s}=${o}`),li.get(i,null,{withCredentials:this.withCredentials,withoutFormatSuffix:!0,headers:{"Content-Type":"application/json;chartset=uft-8"}}).then(function(l){return l.json()}).then(l=>(e.visibleScales=l.visibleScales,e.coordUnit=l.coordUnit,e.scale=l.scale,e.epsgCode=l.prjCoordSys.epsgCode,e.bounds=l.bounds,e)).catch(l=>{throw l})}getMapboxStyle(e,t){let r=this,i=t.url||t.dataSource.url,a=i;a.indexOf("/restjsr/")>-1&&(a=`${a}/style.json`),a=this.getRequestUrl(a);let o=t.credential,s,l;return o&&(l=Object.keys(o)[0],s=o[l],a=`${a}?${l}=${s}`),li.get(a,null,{withCredentials:this.withCredentials,withoutFormatSuffix:!0,headers:{"Content-Type":"application/json;chartset=uft-8"}}).then(function(u){return u.json()}).then(u=>{r._matchStyleObject(u);let h=t.bounds;if(s){u.sprite=`${u.sprite}?${l}=${s}`;let f=u.sources;Object.keys(f).forEach(function(v){u.sources[v].tiles.forEach(function(p,g){u.sources[v].tiles[g]=`${p}?${l}=${s}`})})}let c={url:i,sourceType:"VECTOR_TILE",layerType:"VECTOR_TILE",styles:u,extent:h&&[h.left,h.bottom,h.right,h.top],bounds:t.bounds,projection:"EPSG:"+t.epsgCode,epsgCode:t.epsgCode,name:t.name};return Object.assign(t,c),t.zIndex>0&&r.modifyMapboxstyleLayer(e,t),t}).catch(u=>u)}modifyMapboxstyleLayer(e,t){let r=this;if(e.layers&&e.layers.length===0)return;let i=t.styles.layers;if(!i)return;i=i.filter(o=>o.type!=="background"),t.styles.layers=i;let a=e.layers.filter(o=>o.layerType==="VECTOR_TILE"&&o.zIndex!==t.zIndex).map(o=>o.styles&&o.styles.layers);!a||a&&a.length===0||a.forEach(o=>{i.forEach(s=>{r.renameLayerId(o,s)})})}renameLayerId(e,t){if(e.find(r=>r.id===t.id)){const r=t.id.match(/(.+)\((\w)\)$/);r?t.id=`${r[1]}(${+r[2]+1})`:t.id+="(1)",e.find(i=>i.id===t.id)&&this.renameLayerId(e,t)}}_matchStyleObject(e){let{sprite:t,glyphs:r}=e;t&&typeof t=="object"&&(e.sprite=Object.values(t)[0]),r&&typeof r=="object"&&(e.glyphs=Object.values(r)[0])}isIportalProxyServiceUrl(e){if(this.serviceProxy&&this.serviceProxy.enable&&e){let t="";return this.serviceProxy.proxyServerRootUrl?t=`${this.serviceProxy.proxyServerRootUrl}/`:this.serviceProxy.rootUrlPostfix?t=`${this.serviceProxy.port}/${this.serviceProxy.rootUrlPostfix}/`:this.serviceProxy.rootUrlPostfix||(t=`${this.serviceProxy.port}/`),this.serviceProxy.port!==80?e.indexOf(t)>=0:e.indexOf(t)>=0||e.indexOf(t.replace(":80",""))>=0}else return!1}getStyleResolutions(e,t=0,r=22){let i=[],o=Math.abs(e.left-e.right)/512;for(let s=t;s<=r;s++){if(s===0){i[s]=o;continue}o=o/2,i[s]=o}return i}createVisibleResolution(e,t,r,i){let a=[];if(e&&e.length>0)a=e.map(o=>{let s=1/o;return this.getResFromScale(s,i)});else{let o=this.getEnvelope(t,r);a=this.getStyleResolutions(o)}return a}getEnvelope(e,t){let r={};return e&&e.length===4?(r.left=e[0],r.bottom=e[1],r.right=e[2],r.top=e[3]):r=t,r}createMVTLayer(e){let t=e.styles;const r=t&&t.metadata&&t.metadata.indexbounds,i=this.createVisibleResolution(e.visibleScales,r,e.bounds,e.coordUnit),a=this.getEnvelope(r,e.bounds),o=this.getStyleResolutions(a);let s=this.isIportalProxyServiceUrl(t.sprite),l=new SQe({style:t,source:t.name,resolutions:o,map:this.map,withCredentials:s});return new Promise(u=>{l.on("styleloaded",function(){let h=i[i.length-1],c=i[0],f=new fPe({declutter:!0,source:new Zre({style:t,withCredentials:s,projection:e.projection,format:new w1({featureClass:qre}),wrapX:!1}),style:l.featureStyleFuntion,visible:e.visible,zIndex:e.zIndex,opacity:e.opacity,minResolution:h,maxResolution:c>1?Math.ceil(c):c*1.1});u(f)})})}isSupportWebp(e,t){if(this.isIE()||this.isFirefox()&&this.getFirefoxVersion()<65||this.isChrome()&&this.getChromeVersion()<32)return!1;e=t?`${e}/tileImage.webp?token=${t}`:`${e}/tileImage.webp`;let i=W.isInTheSameDomain(e),a;return i&&!t?a=!1:a=!0,e=this.getRequestUrl(e,a),li.get(e,null,{withCredentials:this.withCredentials,withoutFormatSuffix:!0}).then(function(o){if(o.status!==200)throw o.status;return o}).then(()=>!0).catch(()=>!1)}isIE(){return!!window.ActiveXObject||"ActiveXObject"in window}isFirefox(){return navigator.userAgent.indexOf("Firefox")>-1}isChrome(){return navigator.userAgent.indexOf("Chrome")>-1}getFirefoxVersion(){return+navigator.userAgent.toLowerCase().match(/firefox\/([\d.]+)/)[1]}getChromeVersion(){return+navigator.userAgent.toLowerCase().match(/chrome\/([\d.]+)/)[1]}addGraticule(e){if(this.isHaveGraticule){this.createGraticuleLayer(e.grid.graticule),this.layerAdded++;const t=e.layers?e.layers.length:0;this.sendMapToUser(t)}}createGraticuleLayer(e){const{strokeColor:t,strokeWidth:r,lineDash:i,extent:a,visible:o,interval:s,lonLabelStyle:l,latLabelStyle:u}=e,h=this.baseProjection;let c=new ya(h);c.setExtent(a),c.setWorldExtent(Cte(a,h,"EPSG:4326"));let f={layerID:"graticule_layer",strokeStyle:new es({color:t,width:r,lineDash:i}),extent:a,visible:o,intervals:s,showLabels:!0,zIndex:9999,wrapX:!1,targetSize:0};l&&(f.lonLabelStyle=new J1({font:`${l.fontSize} ${l.fontFamily}`,textBaseline:l.textBaseline,fill:new Zo({color:l.fill}),stroke:new es({color:l.outlineColor,width:l.outlineWidth})})),u&&(f.latLabelStyle=new J1({font:`${u.fontSize} ${u.fontFamily}`,textBaseline:u.textBaseline,fill:new Zo({color:u.fill}),stroke:new es({color:u.outlineColor,width:u.outlineWidth})}));const d=new T$r(f);this.map.addLayer(d)}getLang(){if(this.getCookie("language")){const e=this.getCookie("language");return this.formatCookieLang(e)}else return navigator.language||navigator.browserLanguage}getCookie(e){e=e.toLowerCase();let t=null;return document.cookie.split(";").forEach(function(i){const a=i.split("=");if(a[0].toLowerCase().trim()===e){t=a[1].trim();return}}),t}formatCookieLang(e){let t;switch(e){case"zh":t="zh-CN";break;case"ar":t="ar-EG";break;case"bg":t="bg-BG";break;case"ca":t="ca-ES";break;case"cs":t="cs-CZ";break;case"da":t="da-DK";break;case"de":t="de-DE";break;case"el":t="el-GR";break;case"es":t="es-ES";break;case"et":t="et-EE";break;case"fa":t="fa-IR";break;case"fl":t="fi-FI";break;case"fr":t="fr-FR";break;case"he":t="he-IL";break;case"hu":t="hu-HU";break;case"id":t="id-ID";break;case"is":t="is-IS";break;case"it":t="it-IT";break;case"ja":t="ja-JP";break;case"ko":t="ko-KR";break;case"ku":t="ku-IQ";break;case"mn":t="mn-MN";break;case"nb":t="nb-NO";break;case"ne":t="ne-NP";break;case"nl":t="nl-NL";break;case"pl":t="pl-PL";break;case"pt":t="pt-PT";break;case"ru":t="ru-RU";break;case"sk":t="sk-SK";break;case"sl":t="sl-SI";break;case"sr":t="sr-RS";break;case"sv":t="sv-SE";break;case"th":t="th-TH";break;case"tr":t="tr-TR";break;case"uk":t="uk-UA";break;case"vi":t="vi-VN";break;default:t="en-US";break}return t}isCustomProjection(e){return br.isNumber(e)?[-1e3,-1].includes(+e):["EPSG:-1000","EPSG:-1"].includes(e)}handleJSONSuffix(e){if(!e.includes(".json"))if(e.includes("?")){let t=e.split("?");t[0]=t[0]+".json",e=t.join("?")}else e=e+".json";return e}}class gXr extends b7{constructor(e){e=e||{},e.format=e.format||"png",e.transparent=e.transparent===void 0?!0:e.transparent===!0,e.cacheEnabled=e.cacheEnabled===void 0?!0:e.cacheEnabled===!0;var t=e.attributions||"Map Data \xA9 SuperMap iServer",r=s(e.url,e),i={...e,attributions:t,url:r};!e.tileLoadFunction&&e.tileProxy&&(i.tileLoadFunction=o),super(i);var a=this;this.options=e,e.tileProxy&&(this.tileProxy=e.tileProxy);function o(h,c){h.getImage().src=a.tileProxy+encodeURIComponent(c)}function s(h,c){var f=W.urlPathAppend(h,`/collections/${c.collectionId}/tile.${c.format}?x={x}&y={y}&z={z}`),d=l(c);return f=W.urlAppend(f,u(d)),f=xs.appendCredential(f),c.cacheEnabled||(f+="&_t="+new Date().getTime()),f}function l(h){var c={};return c.transparent=h.transparent,c.cacheEnabled=h.cacheEnabled!==!1,h.sqlFilter&&(c.sqlFilter=h.sqlFilter),h.renderingRule&&(c.renderingRule=JSON.stringify(h.renderingRule)),h.ids&&(c.ids=h.ids.join(",")),h.names&&(c.names=h.names.join(",")),c}function u(h){var c=[];for(var f in h)c.push(encodeURIComponent(f)+"="+encodeURIComponent(h[f]));return c.join("&")}}}class yXr{constructor(e,t,r){this.MapService=e,this.url=t,this.options=r,this.CLASS_NAME="SuperMap.InitMapServiceBase"}createMapService(){const e=this.MapService,t=this.url,r=this.options;return new e(t,{proxy:r.proxy,withCredentials:r.withCredentials,crossOrigin:r.crossOrigin,headers:r.headers,projection:r.projection})}getMapInfo(e){return new Promise((t,r)=>{this.createMapService().getMapInfo(a=>{e(a,t,r)})})}getWKT(){return new Promise((e,t)=>{this.createMapService().getWKT(i=>{try{const a=i.result.data;e(a)}catch(a){t(a)}})})}}function mXr(n){return n==="PCS_NON_EARTH"}window.proj4=Bu;function _Xr(n,e={}){const{mapOptions:t,viewOptions:r,layerOptions:i,sourceOptions:a}=e,o=new yXr(nue,n,e);return o.getMapInfo(async function(s,l,u){if(!s||!s.result){u("service is not work!");return}let{prjCoordSys:h,bounds:c}=s.result;if(!ya(`EPSG:${h.epsgCode}`)&&!mXr(h.type)){const p=await o.getWKT();SXr(h.epsgCode,p,c)}let f=xXr(s.result,t,r),{layer:d,source:v}=wXr(n,s.result,a,i);f.addLayer(d),l({map:f,source:v,layer:d})})}function zQe(n,e=22){let{bounds:t,dpi:r,center:i,visibleScales:a,scale:o,coordUnit:s,prjCoordSys:l}=n;const u=i.x&&i.y?[i.x,i.y]:[(t.left+t.right)/2,(t.bottom+t.top)/2],h=[t.left,t.bottom,t.right,t.top];let c=br.getProjection(l,h);var f=br.scalesToResolutions(a,t,r,s,e);const d=br.getZoomByResolution(br.scaleToResolution(o,r,s),f);return{center:u,projection:c,zoom:d,resolutions:f}}function xXr(n,e,t){let r=zQe(n);var i=new EA({target:"map",view:new Lp({...r,...t}),...e});return i}function SXr(n,e,t){const r=[t.left,t.bottom,t.right,t.top];let i=`EPSG:${n}`;if(!ya(i)&&Bu.defs(i,e),wQe&&ZN){ZN(Bu);var a=ya(i);a.setExtent(r)}}function wXr(n,e,t,r){let i=Bp.optionsFromMapJSON(n,e,!0);i={...i,...t};var a=new Bp(i),o=new L8({source:a,...r});return{layer:o,source:a}}if(window&&window.ol){let n=window.ol;n.supermap={...ae,...n.supermap},n.supermap.control=n.supermap.control||{},n.supermap.control.ChangeTileVersion=X0r,n.supermap.control.Logo=Dyr,n.supermap.control.ScaleLine=Ryr,n.supermap.StyleUtils=ts,n.supermap.Util=br,n.source.BaiduMap=h$,n.source.ImageSuperMapRest=YRr,n.source.SuperMapCloud=KRr,n.source.ImageTileSuperMapRest=gXr,n.source.Tianditu=tM,n.source.TileSuperMapRest=Bp,n.supermap.WebMap=pXr,n.style.CloverShape=I7,n.Graphic=YM,n.style.HitCloverShape=_8,n.source.GeoFeature=AS,n.source.Theme=fS,n.supermap.ThemeFeature=fZe,n.supermap.MapboxStyles=SQe,n.supermap.VectorTileStyles=Ka,n.source.DataFlow=bFr,n.source.Graph=m8,n.source.Graphic=d$,n.source.HeatMap=fVr,n.source.Label=UFr,n.source.Mapv=HFr,n.source.Range=jFr,n.source.RankSymbol=XFr,n.source.Turf=IUr,n.source.FGB=UVr,n.source.Unique=LUr,n.source.VectorTileSuperMapRest=Zre,n.supermap.GraphMap=VVr,n.supermap.AddressMatchService=WVr,n.supermap.ChartService=jVr,n.supermap.DataFlowService=Ihe,n.supermap.DatasetService=qVr,n.supermap.DatasourceService=ZVr,n.supermap.FeatureService=cZe,n.supermap.FieldService=YVr,n.supermap.GridCellInfosService=KVr,n.supermap.GeoprocessingService=JVr,n.supermap.LayerInfoService=e$r,n.supermap.MapService=nue,n.supermap.MeasureService=t$r,n.supermap.NetworkAnalyst3DService=n$r,n.supermap.NetworkAnalystService=a$r,n.supermap.ProcessingService=s$r,n.supermap.QueryService=hZe,n.supermap.ServiceBase=ml,n.supermap.SpatialAnalystService=u$r,n.supermap.ThemeService=h$r,n.supermap.TrafficTransferAnalystService=f$r,n.supermap.WebPrintingJobService=d$r,n.supermap.ImageService=v$r,n.supermap.ImageCollectionService=p$r,n.supermap.KnowledgeGraphService=_Qe,n.supermap.initMap=_Xr,n.supermap.viewOptionsFromMapJSON=zQe,n.supermap.CommonUtil=W}const Gv=n=>(kd("data-v-ff64246d"),n=n(),Fd(),n),bXr={class:"layer-switcher"},EXr={key:0,class:"layer-panel"},TXr={class:"panel-tabs"},CXr={class:"tabs-left"},AXr={class:"tabs-right"},MXr={class:"checkbox-container master-select"},IXr=["checked"],LXr=Gv(()=>fe("span",{class:"checkmark"},null,-1)),PXr=Gv(()=>fe("span",{class:"layer-name"},"\u5168\u9009",-1)),OXr=Gv(()=>fe("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[fe("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),fe("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)),RXr=[OXr],DXr={key:0,class:"panel-content"},NXr={class:"layer-group"},kXr={class:"layer-grid"},FXr={class:"checkbox-container"},BXr=["onUpdate:modelValue","onChange"],GXr=Gv(()=>fe("span",{class:"checkmark"},null,-1)),zXr={class:"layer-name"},UXr={key:1,class:"panel-content"},VXr={class:"layer-group"},$Xr={class:"layer-grid"},WXr={class:"checkbox-container"},HXr=["onUpdate:modelValue","onChange"],jXr=Gv(()=>fe("span",{class:"checkmark"},null,-1)),XXr={class:"layer-name"},YXr={key:2,class:"panel-content"},qXr={class:"layer-group"},ZXr={class:"layer-grid-full"},KXr={class:"layer-item"},JXr={class:"checkbox-container"},QXr=["checked"],eYr=Gv(()=>fe("span",{class:"checkmark"},null,-1)),tYr=Gv(()=>fe("span",{class:"layer-name"},"\u7535\u5B50\u56F4\u680F",-1)),rYr={class:"layer-item"},nYr={class:"checkbox-container"},iYr=Gv(()=>fe("span",{class:"checkmark"},null,-1)),aYr=Gv(()=>fe("span",{class:"layer-name"},"\u8DEF\u7EBF\u56FE",-1)),oYr={class:"layer-item"},sYr={class:"checkbox-container"},lYr=Gv(()=>fe("span",{class:"checkmark"},null,-1)),uYr=Gv(()=>fe("span",{class:"layer-name"},"\u6D4B\u8BD5\u533A\u57DF1",-1)),hYr={class:"layer-item"},cYr={class:"checkbox-container"},fYr=Gv(()=>fe("span",{class:"checkmark"},null,-1)),dYr=Gv(()=>fe("span",{class:"layer-name"},"\u6D4B\u8BD5\u533A\u57DF2",-1)),vYr={__name:"LayerSwitcher",props:{map:Object,categories:Object},emits:["layerChange","setCategoryVisibility"],setup(n,{expose:e,emit:t}){const r=n,i=un(!1),a=un("icon");un("white");const o=un(!1),s=El(()=>!o.value);let l=null;const u=un(!0);let h=null;const c=un(!0);let f=null;const d=un(!0);let v=null;const p=El(()=>r.categories?Object.values(r.categories).every(j=>j.visible):!1),g=El(()=>r.categories?Object.values(r.categories).every(j=>j.showLabel):!1),m=El(()=>!o.value&&u.value&&c.value&&d.value),y=El(()=>a.value==="icon"?p.value:a.value==="text"?g.value:a.value==="road"?m.value:!1);function _(){i.value=!i.value}function x(){if(!r.categories)return;const j=!p.value;Object.keys(r.categories).forEach(Z=>{r.categories[Z].visible=j,z(Z)})}function S(){if(!r.categories)return;const j=!g.value;Object.keys(r.categories).forEach(Z=>{r.categories[Z].showLabel=j,z(Z)})}function w(){const j=!m.value;o.value===j&&E(),u.value=j,c.value=j,d.value=j}function b(){a.value==="icon"?x():a.value==="text"?S():a.value==="road"&&w()}function E(){o.value=!o.value,console.log("toggleHideRoadLayer: hideRoadLayer =",o.value,"showRoadLayer =",s.value),s.value?A():R()}P0(()=>{r.map&&(T(),s.value&&A(),k(),G())}),Af(()=>r.map,j=>{j&&(T(),s.value&&A(),k(),G())}),e({setLayerVisibility(j,Z){var Y;t("setCategoryVisibility",j,{visible:Z,showLabel:((Y=r.categories[j])==null?void 0:Y.showLabel)||!0})}});async function T(){if(C(),!!r.map)try{const Z=await(await fetch("./roadTest.json")).json(),Y=new Hx({features:new $b().readFeatures(Z,{dataProjection:"EPSG:4326",featureProjection:r.map.getView().getProjection()})});h=new sp({source:Y,style:new T1({stroke:new jx({color:"#C9C9C9",width:1})}),zIndex:2,visible:u.value}),r.map.addLayer(h),console.log("loadCustomRoadLayer: \u5DF2\u6DFB\u52A0\u81EA\u5B9A\u4E49\u8DEF\u7EBF\u56FE\u5C42",h)}catch(j){console.error("loadCustomRoadLayer: \u52A0\u8F7D\u6216\u6DFB\u52A0\u81EA\u5B9A\u4E49\u8DEF\u7EBF\u56FE\u5C42\u5931\u8D25",j)}}function C(){if(!r.map)return;let j=!1;const Z=r.map.getLayers().getArray();for(let Y=Z.length-1;Y>=0;Y--){const le=Z[Y];le instanceof sp&&le.getZIndex&&le.getZIndex()===2&&(r.map.removeLayer(le),j=!0,console.log("removeCustomRoadLayer: \u5DF2\u79FB\u9664\u81EA\u5B9A\u4E49\u8DEF\u7EBF\u56FE\u5C42",le))}h=null,j||console.log("removeCustomRoadLayer: \u6CA1\u6709\u627E\u5230\u53EF\u79FB\u9664\u7684\u81EA\u5B9A\u4E49\u8DEF\u7EBF\u56FE\u5C42")}Af(u,j=>{console.log("showCustomRoadLayer\u53D8\u5316:",j),j?h?h.setVisible(!0):T():h&&h.setVisible(!1)});async function A(){if(R(),!!r.map)try{const Z=await(await fetch("./dianziweilan3.json")).json(),Y=new Hx({features:new $b().readFeatures(Z,{dataProjection:"EPSG:4326",featureProjection:r.map.getView().getProjection()})}),le=new T1({stroke:new jx({color:"rgba(255, 0, 0, 0.8)",width:1}),fill:new C1({color:"rgba(255, 0, 0, 0.3)"})});l=new sp({source:Y,style:le,zIndex:2,className:"fence-layer"}),r.map.addLayer(l),console.log("addRoadLayer: \u5DF2\u6DFB\u52A0\u7535\u5B50\u56F4\u680F\u56FE\u5C42",l),await M()}catch(j){console.error("addRoadLayer: \u52A0\u8F7D\u6216\u6DFB\u52A0\u7535\u5B50\u56F4\u680F\u56FE\u5C42\u5931\u8D25",j)}}async function M(){try{const Z=await(await fetch("./dianziweilan2.json")).json(),Y=new Hx({features:new $b().readFeatures(Z,{dataProjection:"EPSG:4326",featureProjection:r.map.getView().getProjection()})}),le=new T1({stroke:new jx({color:"rgba(255, 255, 0, 0.8)",width:1}),fill:new C1({color:"rgba(255, 255, 0, 0.3)"})});I=new sp({source:Y,style:le,zIndex:1,className:"second-fence-layer"}),r.map.addLayer(I),console.log("addSecondRoadLayer: \u5DF2\u6DFB\u52A0\u7B2C\u4E8C\u4E2A\u7535\u5B50\u56F4\u680F\u56FE\u5C42",I)}catch(j){console.error("addSecondRoadLayer: \u52A0\u8F7D\u6216\u6DFB\u52A0\u7B2C\u4E8C\u4E2A\u7535\u5B50\u56F4\u680F\u56FE\u5C42\u5931\u8D25",j)}}let I=null;function R(){if(!r.map)return;let j=!1;const Z=r.map.getLayers().getArray();for(let Y=Z.length-1;Y>=0;Y--){const le=Z[Y];le instanceof sp&&le.getZIndex&&(le.getZIndex()===1||le.getZIndex()===2)&&(r.map.removeLayer(le),j=!0,console.log("removeRoadLayer: \u5DF2\u79FB\u9664\u9053\u8DEF\u56FE\u5C42",le))}l=null,I=null,j||console.log("removeRoadLayer: \u6CA1\u6709\u627E\u5230\u53EF\u79FB\u9664\u7684\u9053\u8DEF\u56FE\u5C42")}Af(s,j=>{console.log("showRoadLayer\u53D8\u5316:",j),j?A():R()});async function k(){if(D(),!!r.map)try{const Z=await(await fetch("./quyu1.json")).json(),Y=new Hx({features:new $b().readFeatures(Z,{dataProjection:"EPSG:4326",featureProjection:r.map.getView().getProjection()})});f=new sp({source:Y,style:new T1({stroke:new jx({color:"#FF5733",width:2}),fill:new C1({color:"rgba(255, 87, 51, 0.3)"})}),zIndex:3,visible:c.value}),r.map.addLayer(f),console.log("loadArea1Layer: \u5DF2\u6DFB\u52A0\u533A\u57DF1\u56FE\u5C42",f)}catch(j){console.error("loadArea1Layer: \u52A0\u8F7D\u6216\u6DFB\u52A0\u533A\u57DF1\u56FE\u5C42\u5931\u8D25",j)}}function D(){if(!r.map)return;let j=!1;const Z=r.map.getLayers().getArray();for(let Y=Z.length-1;Y>=0;Y--){const le=Z[Y];le instanceof sp&&le.getZIndex&&le.getZIndex()===3&&(r.map.removeLayer(le),j=!0,console.log("removeArea1Layer: \u5DF2\u79FB\u9664\u533A\u57DF1\u56FE\u5C42",le))}f=null,j||console.log("removeArea1Layer: \u6CA1\u6709\u627E\u5230\u53EF\u79FB\u9664\u7684\u533A\u57DF1\u56FE\u5C42")}async function G(){if(V(),!!r.map)try{const Z=await(await fetch("./quyu2.json")).json(),Y=new Hx({features:new $b().readFeatures(Z,{dataProjection:"EPSG:4326",featureProjection:r.map.getView().getProjection()})});v=new sp({source:Y,style:new T1({stroke:new jx({color:"#3374FF",width:2}),fill:new C1({color:"rgba(51, 116, 255, 0.3)"})}),zIndex:4,visible:d.value}),r.map.addLayer(v),console.log("loadArea2Layer: \u5DF2\u6DFB\u52A0\u533A\u57DF2\u56FE\u5C42",v)}catch(j){console.error("loadArea2Layer: \u52A0\u8F7D\u6216\u6DFB\u52A0\u533A\u57DF2\u56FE\u5C42\u5931\u8D25",j)}}function V(){if(!r.map)return;let j=!1;const Z=r.map.getLayers().getArray();for(let Y=Z.length-1;Y>=0;Y--){const le=Z[Y];le instanceof sp&&le.getZIndex&&le.getZIndex()===4&&(r.map.removeLayer(le),j=!0,console.log("removeArea2Layer: \u5DF2\u79FB\u9664\u533A\u57DF2\u56FE\u5C42",le))}v=null,j||console.log("removeArea2Layer: \u6CA1\u6709\u627E\u5230\u53EF\u79FB\u9664\u7684\u533A\u57DF2\u56FE\u5C42")}Af(c,j=>{console.log("showArea1Layer\u53D8\u5316:",j),j?f?f.setVisible(!0):k():f&&f.setVisible(!1)}),Af(d,j=>{console.log("showArea2Layer\u53D8\u5316:",j),j?v?v.setVisible(!0):G():v&&v.setVisible(!1)}),i_(()=>{R(),C(),D(),V()});function z(j){console.log(`LayerSwitcher: \u8BBE\u7F6E\u5206\u7C7B ${j} \u53EF\u89C1\u6027`,{visible:r.categories[j].visible,showLabel:r.categories[j].showLabel}),t("setCategoryVisibility",j,{visible:r.categories[j].visible,showLabel:r.categories[j].showLabel})}return(j,Z)=>(qr(),hn("div",bXr,[fe("div",{class:"layer-icon",onClick:_}),i.value?(qr(),hn("div",EXr,[fe("div",TXr,[fe("div",CXr,[fe("div",{class:hl(["tab",{active:a.value==="icon"}]),onClick:Z[0]||(Z[0]=Y=>a.value="icon")}," \u56FE\u6807 ",2),fe("div",{class:hl(["tab",{active:a.value==="text"}]),onClick:Z[1]||(Z[1]=Y=>a.value="text")}," \u6587\u672C ",2),fe("div",{class:hl(["tab",{active:a.value==="road"}]),onClick:Z[2]||(Z[2]=Y=>a.value="road")}," \u9053\u8DEF ",2)]),fe("div",AXr,[fe("label",MXr,[fe("input",{type:"checkbox",checked:Qo(y),onChange:b},null,40,IXr),LXr,PXr]),fe("div",{class:"close-btn",onClick:_,title:"\u5173\u95ED\u56FE\u5C42\u9762\u677F"},RXr)])]),a.value==="icon"?(qr(),hn("div",DXr,[fe("div",NXr,[fe("div",kXr,[(qr(!0),hn(Dp,null,Np(n.categories,(Y,le)=>(qr(),hn("div",{class:"layer-item",key:le},[fe("label",FXr,[lu(fe("input",{type:"checkbox","onUpdate:modelValue":H=>Y.visible=H,onChange:H=>z(le)},null,40,BXr),[[kC,Y.visible]]),GXr,fe("span",zXr,mn(Y.name),1)])]))),128))])])])):a.value==="text"?(qr(),hn("div",UXr,[fe("div",VXr,[fe("div",$Xr,[(qr(!0),hn(Dp,null,Np(n.categories,(Y,le)=>(qr(),hn("div",{class:"layer-item",key:le},[fe("label",WXr,[lu(fe("input",{type:"checkbox","onUpdate:modelValue":H=>Y.showLabel=H,onChange:H=>z(le)},null,40,HXr),[[kC,Y.showLabel]]),jXr,fe("span",XXr,mn(Y.name),1)])]))),128))])])])):(qr(),hn("div",YXr,[fe("div",qXr,[fe("div",ZXr,[fe("div",KXr,[fe("label",JXr,[fe("input",{type:"checkbox",checked:!o.value,onChange:E},null,40,QXr),eYr,tYr])]),fe("div",rYr,[fe("label",nYr,[lu(fe("input",{type:"checkbox","onUpdate:modelValue":Z[3]||(Z[3]=Y=>u.value=Y)},null,512),[[kC,u.value]]),iYr,aYr])]),fe("div",oYr,[fe("label",sYr,[lu(fe("input",{type:"checkbox","onUpdate:modelValue":Z[4]||(Z[4]=Y=>c.value=Y)},null,512),[[kC,c.value]]),lYr,uYr])]),fe("div",hYr,[fe("label",cYr,[lu(fe("input",{type:"checkbox","onUpdate:modelValue":Z[5]||(Z[5]=Y=>d.value=Y)},null,512),[[kC,d.value]]),fYr,dYr])])])])]))])):Bs("",!0)]))}},pYr=rf(vYr,[["__scopeId","data-v-ff64246d"]]);function H$(n,e){return n&&typeof n=="object"&&n.status==="error"&&n.message||e}async function gYr(n){const e=await PS({url:"/api/VehicleRegistry",method:"post",data:n});if(e&&typeof e=="object"&&e.status==="error")throw new Error(H$(e,"\u5BF9\u8C61\u6CE8\u518C\u540C\u6B65\u5931\u8D25"));return e}async function yYr(n){const e=await PS({url:"/config/runway/alert_zone_radius/aircraft",method:"post",data:{value:n}});if(e&&typeof e=="object"&&e.status==="error")throw new Error(H$(e,"\u4FEE\u6539\u544A\u8B66\u533A\u534A\u5F84\u5931\u8D25"));return e}async function mYr(n){const e=(()=>{if(typeof n=="number")return{value:n};if(!n||typeof n!="object")return{};if(Object.prototype.hasOwnProperty.call(n,"value"))return{value:n.value};const r={};return Object.prototype.hasOwnProperty.call(n,"vehicleDistance")&&(r.vehicleDistance=n.vehicleDistance),Object.prototype.hasOwnProperty.call(n,"aircraftDistance")&&(r.aircraftDistance=n.aircraftDistance),r})(),t=await PS({url:"/config/collision/diverging_release_distance",method:"post",data:e});if(t&&typeof t=="object"&&t.status==="error")throw new Error(H$(t,"\u4FEE\u6539\u51B2\u7A81\u89E3\u9664\u8DDD\u79BB\u9608\u503C\u5931\u8D25"));return t}async function _Yr(n){const e=await PS({url:"/api/vehicle-route/assignment",method:"post",data:n});if(e&&typeof e=="object"&&e.status==="error")throw new Error(H$(e,"\u8F66\u8F86\u8DEF\u7EBF\u5206\u914D\u5931\u8D25"));return e}const j$=n=>(kd("data-v-f567b4ae"),n=n(),Fd(),n),xYr=["onClick"],SYr={class:"vehicle-edit-dialog"},wYr={class:"dialog-header"},bYr=j$(()=>fe("span",{class:"dialog-title"},"\u8FD0\u884C\u5BF9\u8C61\u7F16\u8F91",-1)),EYr=["src"],TYr={class:"dialog-body"},CYr={class:"search-row"},AYr=j$(()=>fe("span",{class:"search-label"},"\u5BF9\u8C61\u68C0\u7D22\uFF1A",-1)),MYr=["onKeyup"],IYr=vne('
    \u542F\u52A8
    \u822A\u73ED\u53F7/\u8F66\u724C\u53F7
    \u7C7B\u578B
    \u8DEF\u7EBF
    ',1),LYr={class:"table-body"},PYr={key:0,class:"table-empty"},OYr={key:1,class:"table-empty"},RYr={key:2,class:"table-rows"},DYr={class:"col col-enable"},NYr={class:"checkbox-container"},kYr=["onUpdate:modelValue"],FYr=j$(()=>fe("span",{class:"checkmark"},null,-1)),BYr={class:"col col-id"},GYr={class:"cell-box"},zYr={class:"col col-type"},UYr=["onUpdate:modelValue"],VYr=["value"],$Yr={class:"col col-route"},WYr=["onUpdate:modelValue"],HYr=j$(()=>fe("option",{value:""},"\u672A\u9009\u62E9",-1)),jYr=["value"],XYr={class:"dialog-footer"},YYr=["disabled"],qYr=["disabled"],ZYr={__name:"VehicleRunningEditDialog",props:{visible:{type:Boolean,default:!1}},emits:["close"],setup(n,{emit:e}){const t=n,r=OPe(),i=un(!1),a=un(!1),o=un(""),s=un([]);let l=null,u=null,h=null;const c=[{label:"\u822A\u7A7A\u5668",value:"AIRCRAFT"},{label:"\u65E0\u4EBA\u8F66",value:"UNMANNED_VEHICLE"},{label:"\u7279\u52E4\u8F66",value:"SPECIAL_VEHICLE"}],f=[{label:"807-805",routeName:"807-805",description:"\u6D4B\u8BD5\u8DEF\u7EBF-807-805",points:[{lon:40508513641064e-6,lat:4024186813497e-6},{lon:40508714127776e-6,lat:4024250934516e-6},{lon:40508853166318e-6,lat:4024293929307e-6},{lon:40508966275693e-6,lat:4024330441807e-6}]},{label:"M4 829-826-K1",routeName:"M4 829-826-K1",description:"\u6D4B\u8BD5\u8DEF\u7EBF-M4 829-826-K1",points:[{lon:40507849913313e-6,lat:4023625932486e-6},{lon:40507732597485e-6,lat:4023991671027e-6},{lon:40507723998527e-6,lat:4023986908527e-6},{lon:40507674841898e-6,lat:402413830738e-5}]},{label:"M1 K2-1-1-1#\u6D88\u9632",routeName:"M1 K2-1-1-1#\u6D88\u9632",description:"\u6D4B\u8BD5\u8DEF\u7EBF-M1 K2-1-1-1#\u6D88\u9632",points:[{lon:40509113197805e-6,lat:4024029951692e-6},{lon:40508997734226e-6,lat:4024393687528e-6},{lon:40509007523809e-6,lat:4024395275028e-6},{lon:40508957783071e-6,lat:4024548361738e-6}]}],d=El(()=>{const T=(o.value||"").trim().toLowerCase();return T?s.value.filter(C=>String((C==null?void 0:C.id)||"").toLowerCase().includes(T)):s.value});function v(){o.value=(o.value||"").trim()}function p(T){if(!T)return null;if(typeof T=="object")return T;if(typeof T!="string")return null;try{return JSON.parse(T)}catch{return null}}function g(T){const C=String(T||"").toUpperCase();return C==="UNMANNED_VEHICLE"?"\u65E0\u4EBA\u8F66":C==="SPECIAL_VEHICLE"?"\u7279\u52E4\u8F66":C==="AIRCRAFT"?"\u822A\u7A7A\u5668":C==="WUREN"?"\u65E0\u4EBA\u8F66":C==="TEQIN"?"\u7279\u52E4\u8F66":C==="AIRCRAFT"||C==="AIRCRAFT_IN"||C==="AIRCRAFT_OUT"||C==="HANGKONG"?"\u822A\u7A7A\u5668":C||"\u672A\u77E5"}function m(T){const C=String(T||"").toUpperCase();return C==="UNMANNED_VEHICLE"||C==="WUREN"?"UNMANNED_VEHICLE":C==="SPECIAL_VEHICLE"||C==="TEQIN"?"SPECIAL_VEHICLE":(C==="AIRCRAFT"||C==="HANGKONG"||C==="AIRCRAFT_IN"||C==="AIRCRAFT_OUT","AIRCRAFT")}function y(T){const C=String(T||"").toUpperCase();return C==="UNMANNED_VEHICLE"?"WUREN":C==="SPECIAL_VEHICLE"?"TEQIN":C==="AIRCRAFT"?"HANGKONG":C==="WUREN"?"WUREN":C==="TEQIN"?"TEQIN":C==="AIRCRAFT"||C==="AIRCRAFT_IN"||C==="AIRCRAFT_OUT"||C==="HANGKONG"?"HANGKONG":C==="JIUYUAN"?"JIUYUAN":"PUTONG"}function _(T){const C=String(T||"").toUpperCase();return C==="UNMANNED_VEHICLE"||C==="WUREN"?"UNMANNED_VEHICLE":C==="SPECIAL_VEHICLE"||C==="TEQIN"?"SPECIAL_VEHICLE":""}function x(T,C){const A=String(T||"").trim();if(!A)return;g(C);const M=String(C||"").trim(),I=r.getVehicleRouteAssignment(A),R=s.value.find(G=>(G==null?void 0:G.id)===A);if(R){if(R.lastSeen=Date.now(),M&&(R.objectType=M),!R.typeSelected){const G=r.getVehicleTypeOverride(A);R.typeSelected=G||m(M)}!R.routeName&&I&&(R.routeName=I);return}const k=r.isVehicleEnabled(A),D=r.getVehicleTypeOverride(A);s.value=[...s.value,{id:A,enabled:k,objectType:M,typeSelected:D||m(M),routeName:I||"",lastSeen:Date.now()}]}function S(){var C;const T=(C=window.APP_CONFIG)==null?void 0:C.WS_BASE_URL;if(!T){i.value=!1;return}l=wrt(T,{reconnectInterval:3e3,maxReconnectAttempts:5}),u=A=>{const M=p(A);if(!M||M.type!=="position_update")return;const I=M.payload||{};x(I.object_id,I.object_type),i.value&&(i.value=!1)},l.on("message",u),l.send(JSON.stringify({type:"subscribe",topics:["position_update","collision_warning","rule_violation"],timestamp:Date.now()})),h&&clearTimeout(h),h=setTimeout(()=>{i.value=!1},1200)}function w(){h&&(clearTimeout(h),h=null),l&&u&&l.off("message",u),u=null,l=null}function b(){a.value||e("close")}async function E(){if(!a.value){a.value=!0;try{const T=(s.value||[]).filter(I=>!!(I!=null&&I.id)&&I.enabled===!0).map(I=>({vehicleID:String(I.id),vehicleType:y(I.typeSelected||I.objectType)})),C=(s.value||[]).filter(I=>!!(I!=null&&I.id)&&I.enabled!==!0&&r.isVehicleEnabled(I.id)).map(I=>({vehicleID:String(I.id),vehicleType:"PUTONG"})),A=[...T,...C];A.length&&await gYr(A);const M=(s.value||[]).filter(I=>!!(I!=null&&I.id)&&I.enabled===!0&&!!I.routeName).map(I=>{const R=f.find(D=>D.routeName===I.routeName),k=_(I.typeSelected||I.objectType);return!R||!k?null:{vehicleID:String(I.id),vehicleType:k,routeName:R.routeName,description:R.description,status:"ACTIVE",isBidirectional:!1,maxSpeedKph:25,typicalSpeedKph:15,points:R.points,route:{points:R.points}}}).filter(Boolean);M.length&&await Promise.all(M.map(I=>_Yr(I))),(s.value||[]).forEach(I=>{!(I!=null&&I.id)||(r.setVehicleTypeOverride(I.id,I.typeSelected||m(I.objectType)),r.setVehicleRouteAssignment(I.id,I.routeName),r.setVehicleEnabled(I.id,I.enabled===!0))}),Sp.success("\u5DF2\u540C\u6B65\u5230\u540E\u7AEF"),e("close")}catch(T){Sp.error((T==null?void 0:T.message)||"\u540C\u6B65\u5931\u8D25")}finally{a.value=!1}}}return Af(()=>t.visible,async T=>{if(!T){w();return}o.value="",s.value=[],i.value=!0,S()},{immediate:!1}),(T,C)=>n.visible?(qr(),hn("div",{key:0,class:"vehicle-edit-mask",onClick:BR(b,["self"])},[fe("div",SYr,[fe("div",wYr,[bYr,fe("img",{class:"dialog-close",src:Qo(uz),alt:"close",onClick:b},null,8,EYr)]),fe("div",TYr,[fe("div",CYr,[AYr,lu(fe("input",{"onUpdate:modelValue":C[0]||(C[0]=A=>o.value=A),class:"search-input",placeholder:"\u8BF7\u8F93\u5165\u822A\u73ED\u53F7/\u8F66\u724C\u53F7",onKeyup:RPe(v,["enter"])},null,40,MYr),[[qg,o.value]])]),IYr,fe("div",LYr,[i.value?(qr(),hn("div",PYr,"\u52A0\u8F7D\u4E2D...")):Qo(d).length===0?(qr(),hn("div",OYr,"\u6682\u65E0\u6570\u636E")):(qr(),hn("div",RYr,[(qr(!0),hn(Dp,null,Np(Qo(d),A=>(qr(),hn("div",{key:A.id,class:"table-row"},[fe("div",DYr,[fe("label",NYr,[lu(fe("input",{type:"checkbox","onUpdate:modelValue":M=>A.enabled=M},null,8,kYr),[[kC,A.enabled]]),FYr])]),fe("div",BYr,[fe("div",GYr,mn(A.id),1)]),fe("div",zYr,[lu(fe("select",{"onUpdate:modelValue":M=>A.typeSelected=M,class:"type-select"},[(qr(),hn(Dp,null,Np(c,M=>fe("option",{key:M.value,value:M.value},mn(M.label),9,VYr)),64))],8,UYr),[[Dde,A.typeSelected]])]),fe("div",$Yr,[lu(fe("select",{"onUpdate:modelValue":M=>A.routeName=M,class:"type-select"},[HYr,(qr(),hn(Dp,null,Np(f,M=>fe("option",{key:M.routeName,value:M.routeName},mn(M.label),9,jYr)),64))],8,WYr),[[Dde,A.routeName]])])]))),128))]))])]),fe("div",XYr,[fe("button",{class:"footer-btn cancel",disabled:a.value,onClick:b},"\u53D6\u6D88",8,YYr),fe("button",{class:"footer-btn confirm",disabled:a.value,onClick:E},mn(a.value?"\u63D0\u4EA4\u4E2D...":"\u786E\u5B9A"),9,qYr)])])],8,xYr)):Bs("",!0)}},KYr=rf(ZYr,[["__scopeId","data-v-f567b4ae"]]);const qce=n=>(kd("data-v-0989065e"),n=n(),Fd(),n),JYr=["onClick"],QYr={class:"dialog"},eqr={class:"dialog-header"},tqr=qce(()=>fe("span",{class:"dialog-title"},"\u4FEE\u6539\u9884\u8B66\u8DDD\u79BB",-1)),rqr=["src"],nqr={class:"dialog-body"},iqr={class:"form-row"},aqr=qce(()=>fe("span",{class:"form-label"},"\u544A\u8B66\u8DDD\u79BB\u8C03\u6574\uFF1A",-1)),oqr={class:"form-row"},sqr=qce(()=>fe("span",{class:"form-label"},"\u5206\u79BB\u8DDD\u79BB\u8C03\u6574\uFF1A",-1)),lqr={__name:"WarningDistanceDialog",props:{visible:{type:Boolean,default:!1}},emits:["close","confirm"],setup(n,{emit:e}){const t=n,r=un({vehicleDistance:"",aircraftDistance:"",separationDistance:""});function i(){e("close")}function a(){e("confirm",{...r.value})}return Af(()=>t.visible,o=>{!o||(r.value={vehicleDistance:"",aircraftDistance:"",separationDistance:""})}),(o,s)=>n.visible?(qr(),hn("div",{key:0,class:"dialog-mask",onClick:BR(i,["self"])},[fe("div",QYr,[fe("div",eqr,[tqr,fe("img",{class:"dialog-close",src:Qo(uz),alt:"close",onClick:i},null,8,rqr)]),fe("div",nqr,[fe("div",iqr,[aqr,lu(fe("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>r.value.vehicleDistance=l),class:"form-input",placeholder:"\u65E0\u4EBA\u8F66\u62A5\u8B66\u8DDD\u79BB"},null,512),[[qg,r.value.vehicleDistance]]),lu(fe("input",{"onUpdate:modelValue":s[1]||(s[1]=l=>r.value.aircraftDistance=l),class:"form-input",placeholder:"\u98DE\u673A\u544A\u8B66\u8DDD\u79BB"},null,512),[[qg,r.value.aircraftDistance]])]),fe("div",oqr,[sqr,lu(fe("input",{"onUpdate:modelValue":s[2]||(s[2]=l=>r.value.separationDistance=l),class:"form-input",placeholder:"\u8BF7\u8F93\u5165..."},null,512),[[qg,r.value.separationDistance]])])]),fe("div",{class:"dialog-footer"},[fe("button",{class:"footer-btn cancel",onClick:i},"\u53D6\u6D88"),fe("button",{class:"footer-btn confirm",onClick:a},"\u786E\u5B9A")])])],8,JYr)):Bs("",!0)}},uqr=rf(lqr,[["__scopeId","data-v-0989065e"]]);const oF=n=>(kd("data-v-4ad96261"),n=n(),Fd(),n),hqr=["onClick"],cqr={class:"dialog"},fqr={class:"dialog-header"},dqr=oF(()=>fe("span",{class:"dialog-title"},"\u822A\u7A7A\u5668\u6ED1\u884C\u8DEF\u7531\u67E5\u8BE2",-1)),vqr=["src"],pqr={class:"dialog-tabs"},gqr={class:"dialog-body"},yqr={class:"form-grid"},mqr={class:"form-item"},_qr=oF(()=>fe("span",{class:"form-label"},[a_("flightNo\uFF08\u822A\u73ED\u53F7\uFF09\uFF1A"),fe("span",{class:"required"},"*")],-1)),xqr={class:"form-item"},Sqr=oF(()=>fe("span",{class:"form-label"},"inRunway\uFF08\u8FDB\u6E2F\u8DD1\u9053\uFF09\uFF1A",-1)),wqr={class:"form-item"},bqr=oF(()=>fe("span",{class:"form-label"},"outRunway\uFF08\u51FA\u6E2F\u8DD1\u9053\uFF09\uFF1A",-1)),Eqr={key:0,class:"form-item"},Tqr=oF(()=>fe("span",{class:"form-label"},[a_("contactCross\uFF08\u8054\u7EDC\u9053\u53E3\uFF09\uFF1A"),fe("span",{class:"required"},"*")],-1)),Cqr={class:"form-item"},Aqr={class:"form-label"},Mqr={key:0,class:"required"},Iqr={class:"form-hint"},Lqr={key:0},Pqr={key:1},Oqr={__name:"RouteModifyDialog",props:{visible:{type:Boolean,default:!1}},emits:["close","confirm"],setup(n,{emit:e}){const t=n,r=un("IN"),i=un({flightNo:"",inRunway:"",outRunway:"",contactCross:"",seat:""});function a(){e("close")}function o(){const s=String(i.value.flightNo||"").trim();if(!s){Sp.warning("\u8BF7\u8F93\u5165\u822A\u73ED\u53F7 flightNo");return}const l={routeType:r.value,flightNo:s,objectId:s,vehicleID:s,objectName:s};if(r.value==="IN"){if(!i.value.inRunway||!i.value.contactCross||!i.value.seat){Sp.warning("\u8FDB\u6E2F\u67E5\u8BE2\u5FC5\u987B\u586B\u5199\uFF1A\u8FDB\u6E2F\u8DD1\u9053\u3001\u8054\u7EDC\u9053\u53E3\u3001\u673A\u4F4D\u53F7");return}l.inRunway=i.value.inRunway,l.contactCross=i.value.contactCross,l.seat=i.value.seat,i.value.outRunway&&(l.outRunway=i.value.outRunway)}else{if(!i.value.outRunway){Sp.warning("\u51FA\u6E2F\u67E5\u8BE2\u5FC5\u987B\u586B\u5199\uFF1A\u51FA\u6E2F\u8DD1\u9053");return}const u=String(i.value.seat||"").trim();if(!u){Sp.warning("\u51FA\u6E2F\u67E5\u8BE2\u5FC5\u987B\u586B\u5199\uFF1A\u673A\u4F4D\u53F7 seat");return}l.outRunway=i.value.outRunway,l.seat=u,i.value.inRunway&&(l.inRunway=i.value.inRunway)}e("confirm",l),e("close")}return Af(()=>t.visible,s=>{!s||(r.value="IN",i.value={flightNo:"",inRunway:"",outRunway:"",contactCross:"",seat:""})}),(s,l)=>n.visible?(qr(),hn("div",{key:0,class:"dialog-mask",onClick:BR(a,["self"])},[fe("div",cqr,[fe("div",fqr,[dqr,fe("img",{class:"dialog-close",src:Qo(uz),alt:"close",onClick:a},null,8,vqr)]),fe("div",pqr,[fe("div",{class:hl(["tab",{active:r.value==="IN"}]),onClick:l[0]||(l[0]=u=>r.value="IN")},"\u8FDB\u6E2F\u8DEF\u7531",2),fe("div",{class:hl(["tab",{active:r.value==="OUT"}]),onClick:l[1]||(l[1]=u=>r.value="OUT")},"\u51FA\u6E2F\u8DEF\u7531",2)]),fe("div",gqr,[fe("div",yqr,[fe("div",mqr,[_qr,lu(fe("input",{"onUpdate:modelValue":l[2]||(l[2]=u=>i.value.flightNo=u),class:"form-input",placeholder:"\u8BF7\u8F93\u5165..."},null,512),[[qg,i.value.flightNo]])]),fe("div",xqr,[Sqr,lu(fe("input",{"onUpdate:modelValue":l[3]||(l[3]=u=>i.value.inRunway=u),class:"form-input",placeholder:"\u8BF7\u8F93\u5165..."},null,512),[[qg,i.value.inRunway]])]),fe("div",wqr,[bqr,lu(fe("input",{"onUpdate:modelValue":l[4]||(l[4]=u=>i.value.outRunway=u),class:"form-input",placeholder:"\u8BF7\u8F93\u5165..."},null,512),[[qg,i.value.outRunway]])]),r.value==="IN"?(qr(),hn("div",Eqr,[Tqr,lu(fe("input",{"onUpdate:modelValue":l[5]||(l[5]=u=>i.value.contactCross=u),class:"form-input",placeholder:"\u8BF7\u8F93\u5165..."},null,512),[[qg,i.value.contactCross]])])):Bs("",!0),fe("div",Cqr,[fe("span",Aqr,[a_("seat\uFF08\u673A\u4F4D\u53F7\uFF09\uFF1A"),r.value==="IN"?(qr(),hn("span",Mqr,"*")):Bs("",!0)]),lu(fe("input",{"onUpdate:modelValue":l[6]||(l[6]=u=>i.value.seat=u),class:"form-input",placeholder:"\u8BF7\u8F93\u5165..."},null,512),[[qg,i.value.seat]])])]),fe("div",Iqr,[r.value==="IN"?(qr(),hn("div",Lqr,"\u8FDB\u6E2F\u5FC5\u586B\uFF1AflightNo\u3001inRunway\u3001contactCross\u3001seat\uFF1B\u5EFA\u8BAE\u586B\u5199\uFF1AoutRunway")):(qr(),hn("div",Pqr,"\u51FA\u6E2F\u5FC5\u586B\uFF1AflightNo\u3001outRunway\u3001seat\uFF1B\u5EFA\u8BAE\u586B\u5199\uFF1AinRunway"))])]),fe("div",{class:"dialog-footer"},[fe("button",{class:"footer-btn cancel",onClick:a},"\u53D6\u6D88"),fe("button",{class:"footer-btn confirm",onClick:o},"\u67E5\u8BE2")])])],8,hqr)):Bs("",!0)}},Rqr=rf(Oqr,[["__scopeId","data-v-4ad96261"]]);function Dqr(n){return PS({url:"/api/aircraft-routes/query",method:"post",data:n})}const Nqr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAACklpQ0NQc1JHQiBJRUM2MTk2Ni0yLjEAAEiJnVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkKZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv7+yCW1SNo0eSDpw5ZuAb9qb7Zp3tXBaKg7CQeXBJ9+mfHvjUOihzsPcw83fmX+39QjrSHkr0jq/dawto22gPaG97+iMo50dXh1Hvrf/fu8x42N1xzWPV56gnSg98fnkgpPjp2Snnp1OPz3Umdx590z8mWtdUV29Z0PPnj8XdO5Mt1/3yfPe549d8Lxw9CL3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/stRzjPAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAJcEhZcwAACxMAAAsTAQCanBgAAAEdSURBVEiJtdWxK0VhGAfg5yLLRYhYGLAYDHKZjHexSGQ2Wa3qDkrKH8JgY7BIGZSR0SChpBhkuWIgx3C/6d5c57ud8y2/es953+e833IKSZJodkq7DaUeVJHAZaVpu7bmjxtOERc4RHeahlhgB1OYxHiaho6I4XPYwDPKeErTFLNBBe3YTDs8BujHAh5xEPFRqYFVdGIf33kA5ZDHMcNjgHl84SoPYBDDuBd5PWmBsZC3scPTAn0h7/ICekN+5gVUQ3blBbyEHM0LuAk5nRfwjmuMYCIPAM5CLocs//Viq8BRyHVs4xRDWQLneFC7oi0UMJMlUMRrXa2UFdCGE8zW1TPb4AeLWFP72X+Eej3YMgBv2MMKBrCktlXxv8ZfcIwuNRzwDTEAAAAASUVORK5CYII=",kqr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAACklpQ0NQc1JHQiBJRUM2MTk2Ni0yLjEAAEiJnVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkKZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv7+yCW1SNo0eSDpw5ZuAb9qb7Zp3tXBaKg7CQeXBJ9+mfHvjUOihzsPcw83fmX+39QjrSHkr0jq/dawto22gPaG97+iMo50dXh1Hvrf/fu8x42N1xzWPV56gnSg98fnkgpPjp2Snnp1OPz3Umdx590z8mWtdUV29Z0PPnj8XdO5Mt1/3yfPe549d8Lxw9CL3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/stRzjPAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAJcEhZcwAACxMAAAsTAQCanBgAAAEdSURBVEiJtdW/K4VRGAfwD12DH3eRgZJCMlgUu0HpLgY2A3+IkjIoK6PJLMKidEcTV0bLZWAhQiGluIZ7lKTrXL3nWb6973me99P7LKehUqmoVaPLWrGGXRzg9ft5ab7muMbax+AFBezgDluYQ3vEbBQAxyFbMI0N7MXMxwInv4AFfGQFlH48d6iu7s+q5w8qWEIZvRjLErjBBBaxHt5NZQlAMeR2yPGsga8q4wpDaEsBwGnIwVTAZcjOVMBzyHwqoDnkYyqgP+RDKmAg5EUKIIc+XOM2BTCCJhzGNP8HmAxZrNn1TyCHWbxhMwUwgx7s4z5roBsreMdy7FAsMKy68y6s4igWyEX2neNMdfcLsR+vB3hSvezzIq/Kr/oE3Zs1N+v+bUIAAAAASUVORK5CYII=",Fqr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAASLSURBVHgBzVnPbxtFFH5vZp0fTiyBgg9OKUUcHEsQqa05UdSkd/gDAvf0wg3+jPbGpblxyo1Dwx1EHVWocmhEBbG5QCo5UZQoSG6axJuZx3uzXttx12vHcm1/B+/Oj5355pt5b2aeEfpE7va9PJDNgsW8RVpAhFkASgWlWCWCPUVYAbBl0Lq4s/VzEfoAXqXywsKdFM7oFSJcaZLpuasKEhVR09pfxSd7PX/VSyVHLKlXCWAFBgAk2OiVaFeCuU+XVsjA6tUV69p1BS2u7Wz/8lNcLR1XmLt191teS0wOJmHwSLGUy+nMjdTh/r9PO1WKVNBN6bT3gJDyMAQQURlP7f1SabPaXqYiP5j2Hg2LnAARszStH0SVvTHFMq2s6zIMGeym5qOm+xLB3O2lL9lSv4HRYTGd+bDKJF+EGY0pXrh1Z95aZxAjhRil2ECYbhBE0quIlIFRA8n53EZSfkQ9nu3HME54be6JVTsFRT0YM9gp7XYtR9ACDs2l9AqF6AiinEqIzKNuH8haoLZ0CIK3A0R73wNj8tHuOqykGoQQ2H3zgmDHiuL+idPYSljqkgV3HAg+dr/k8qROkC8/YV4sSGc9fmTjyAkppTVq7gy1Yuk1Wj49cJnkcGd1/Uj4Od7yjpclFzJKSKF/YUh8CaepG0lrKe9ZhfPYYZJEKI/JJSan1VRyVmsvgUo419tlQk5F5RqDy26f2juzZI2l2tmJOX99an1z0ZUkt5/1eKCZaHJKZgi9RELNzmUmkukPJtVEUolKqkUXgMDS2t+5GlhqOlrmB+bi3J4f7/tw8M+ZPXllWE2IBUHK63TOk5Ep9MBLTEAi+Y6eeO+jqfQnS+/qhKeC8nAgYVvBT2NR1ueYmp25pDU+7T/98WD32caRiBA7zey0PYiBJRm1gdrJsXn/xsezyblr0zAAXFv6OrP72+OjXup6csHpqCIz9P1zc/rfgX/456/HE6m5hJqcaVlpIkuv15rQmAgqzzYOLmTRdrNkwipmby5txO3BSmnwPLZdpflVi3k2LTTKOVLzHQN7dSOw4pbY+sVYfN+IxXT1n/x52WM7KhFCR4KWG/J9blpZQ7Vawy82jME9CVRdSVtvumHsIUUK/R/15gNdY1jx2BL4vkrLcfWkQdMwuKDxMNn+hA7pfsCDL/NATRnGFdYW1c5WoRgYytihsvNHoRgctyytw5iBl6oLlQROd9aMHUHNkQd5OoKlzc0qW9jYkGT1NsKwSPNOkjRrY7IWK6F6gsaucPTyZS2duV5jkp/BCIHWPtz5vbAVpi/diw/3d1/M8eWZ/eoijABk7Xppu/BDa17kRpq7eZdDHzDUe4rEZ8rPn3zVnh8dm5kx38k+CEOCuBQJHkWVxR5FshynwQEFLTtBprW8XXjYqTw2PnjEgZz0/PU9HiHHoHHAAUyq8iHj+7+fF9biavUWAubIA7nQCHwBA4Cohme0FhUPbMfVguh1otxFnhW9YhyHFeMtVZ3Rei/E+iLYitzi53yfVnKnzvJUzQeXr3AZkPwN8YovpiU+khThAsqy8UMf+B9ymBOEqiwGgAAAAABJRU5ErkJggg==",Bqr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAYdSURBVHgBvVnNbxtFFH9vZtdrO3bS1EnaWI34Eo6lkqptQFBa+iHEDSQQXMIf0F64wR/AGbUXxIVw4lSJQw9tT1xANFUlkEsLlRq7SBQinH6lbepQx+vdeX2zazub1HZ2t1F/ipV4Z3bmN+/N+82bF4SYKO4/Ng2kCqBwWiFNIkIGgLJ+K9aIYFEQVgFUBaQszV/+qQQxgFE6T04ezOKAnCHCmTUyoaeqIlEJJc1eL11YDP1WmE4esbQ8TgAzsAVAgnNhiW5KsPj6kRly4Xh0i206dRUVzs5f/fl8v16yX2Nx3+HPeS8xObBg65FlUx4dHX8he+/WP5d6depqQc+lKeMkIU3DcwARVbCuTpTLF2sb20TXF1LGt1HJIUSMuOC7iAVKyZPd2p5ysXYrz3QUQg8uQAhAgZL/5A/6VBEIooBfy3dz9zqCxf1HPuBhP4OQ0OQQCU0zgQnLktI0heCZ2GUtetFIMqZGx1+sMclrTxGc3HcwTyS+5PFDR6tg05nSEKnsNiO78+VkOjduouug22yQUopZRibIa8KpkaFdZ5aWFmxvjvZzJHmcrTEedhzPkexJI5HA9PAOMzuxOz0y9d72/IGPclbSQsmmjEFPE/E0t/3VI+hZD+F9iAh2MLAB0bDS0hoaM8f2vDsy/ubHO0d3H93m78N40AeCVhJ/DvCtB1GBvvH1nmNPg0ykO9tFJjPoNaOAuFBJOdMhqACj6x0pn6d2NOjtpjZ4NK79fPDCfYI6K4my9zpTs3UIdQzDOsLtDohd3ok0CWWL+w9NG+C609DHE76UYEvfyJuK1Y6tzgHComII/2UKEGRlRI5wIaVk/pJtu2ZcT4I8KNgUJAsG/yr0aucpPGMYUqI0paajFVnbjbRrDUNiMpkSppQiKCmmIUUmkxH2qq0XorMXpuMRA8exleMoUAo2JclKNW0ogfl+qs8kRHIgI1KZYUOYWj4ktszEIirQtBLCSA+JYECY6YyRGdllua6/L7Vsuy6BcprKfrzs1msP3YbdZHaiL0k2RsHg2bruv7ZrZSKJ6e27ElZuwpJWSrReXNfTkaYwAwQplTPk2KtJqfwt0SJJym2SfHCn6To3Vh1nWTWdJvQFQdbolef5K9MSIlGwG4deeWNwx55jOQiBkdeO5fSnV3v1t7O3K+e//k8boa+bOVDEJisAl93SWL7rpAaHDdgibHtp7yCxyyFEoBj6gtPLihx9ZDdWlXhwx/77x++q+bc+tKU10BFkbwtw0AgzKYzBsURyOJ/Uz+u3//q/8eiurQMhmDDoaNYBc/PCD3ccpTY/qQlrBvda6ZUgaPPrSer1urIXyvWH1a8WvAOutQVZRkQmPSDTubw1UHhnMH/gk536+f3rv9xfuHTmvt2wWxmD70qt5ZqWUg6FySMI1aLBcVRmzegp1N7AWiaUC+i0HuoA4l+GKZXtJITpOBQ0iMMha9u2sptNxQ3+kddyZ6QEQmFVa2ro+yq1P56q6QHWBJqUE1yVtpZnpWD/qNkNL6vCpnArEAO+ZX2ZQ59NYP5nO4c7UKok5i/PlfxAiQb/PPazZ9c/vgIDE1D0bHojqvN/zpV84VV0GmKAs2b/hHAdfUzQGr9Wwh/mvO0BHsLbeh5ByrixCOot5jhNsusrrl1bstvPXRY5TfxZwHnGbIdg+eLFGg8XiaS/+dm9jqtWVx45yzf/qDdWlmy38di9N/9rTQUsGhU87Ll2WaSzmycPcor92Dgbp8QhpYE6odF3FMUJAv94shQTVSHoRJtg51RYWliwR8cn2E34NkRFS4Rdj5wLoVS4B1CpU/O/z11uf193L753699rOb48s1mnICIoltJtGEOp0+Wrc98Hn3UVrOLew1z6gOdSl2lD12cqVy58uvF599rMgPsFWySWgMeBlhRdPOrW1lfyC1ynwS0qWvaCdmvl6typXu1964NLXMgZzU8s8gq5Bo1bXMCkGofWNzeuzM326xWuBOzVbXRpJHr1oRu01XCVZrvVAzciWhG9RZSn4Ls0RrpLexbjI1Ws0ukwxGIRDKI4dYjv00LfqQvsqrx/+WpvA9L/hljhZLvMJ3MJHKjogx9i4AlyrehUszxtEAAAAABJRU5ErkJggg==",Gqr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAgqSURBVHgBvVlbb1TXFd6Xc585nvFcPJ4hvoDxBRK3gAOoOAKiRmoilSRvFX2IKlUiD+1b+AmVWrVJX5oXeIv6wEOSRqKhraK0EDCxVDIBF6g9JliA8Y3B4xnPeC5nztm7ax8z5lLPzLFjsawj27PX3vs731p7rbXXYLRJGdj36hDirA8xPMQw78cY+RHi5uooznOO5gjHswixSURpcuLb80m0CcEbUe7vHzaxjx7nHB9/DMbzVrOY8ySm/PR48tKc51lelFxgBj3BETqOtkAwR3/1CrQpwIGXjxznDjqxccaabj2LGT49MXbh80ZatNHgwN7D74EvATikoq0XE6g8Go13mQ/n747WU1qXQdekuvQ+x3wIPQfhnE/iEns3lbqcf3aMrDtBl049L3BCMMZ9XKfvrzf2fyYWZgVej6LnLBCmEuuZ+ymAA/uOHIOT+uvmixFEMMKSJGFFkalh+KjhD0g6/FYUCcMpBVIwmE74EHf1wS7IgwxG4915AHljba/aH/17hxOcS6dg9Xg9UJwzAEYQJgRTeDRVJZrflNRgu6wE2iQBrLI8X7VyD6yVfN6xKhVmOw4XItYQ85sKx3lUst+s+eMag9H27cK06/qd+xawOyEUEUAGrBGf3y/5Q+2yL9Gj6e39uhrZoQf7DwVDvQdNblcYsUsMIwdAiYdjvLZSEyYxUrFM1JqpcY09wHq27hzBGogsS8CaRnW/SfXwNkUJdanEjMhmYsDX0vmiSajkrmeXCk5u8utM5uaX2dLiXKVYyDqVUpnZjHEGjycmi86rgkX6BHt99cARMKeqKsQAc5rhdsVo79WV6A5NCXdpkd2HW/2xbkOYvTaHyKDb3uPTo90qsyuc2GWXTcbEU2OwMZOMEiuzcDfpAgy1d78HNlg3UwhfUwCcLxCWzfYdqhbbqdNgQgn27A+EevYFZc0n1dtE9oeVwM4DAdmMSHb+gYWZxZ2qJVhEiDcGCGewb3H+7kfUrUoQq5tjJTAbHARqxoG1tp26L95vRHYdCRnhhI4J9ZTLtfALWrD3YKCYvl+ycvNV26o+IpI3QqhGEx1JGmnrPFbvcLgAJYo13ZT0aKcSeenHreHe/a1UUSnaoBBJJaGB4VbkcCd751rBESyiZiySSRGg+hopCX8GP2Isv2AbrdHvnZNDLw63uib2IEDzEGEEJ5opcgaxzCqy9MifF1hp2UablGohU71z7k/TXvUxwX3i6MUbKomHqgTpIalqO2z+yw/vr3x3OYs2INy2WO52Mnv77B/urDy4U/FcJ3NkSk3rPPIIJZFR5OW3I1pru5ZNfpYu3btWaHnp9ZDS1mM0ml7OzpXTY//MSL6AtP3YyS5r+aGVPPWrW8hL7sPclJrpuDHVsTgvph0JDgfVTCk8/E68NDtRyN38IqPNd634el9pJXrLU2sxYG1pKpldnv5vMdz3o0BLx26XCAEQoHlKzEJoJN4tQkxd56cQShTIuarup/bygiUDQDnQpkBsU7T4gFHK3K8UJ84vUcWgUkubIubk744tL3zzeZrIOt124O2YYF18nh0fyXx39o/3Lcg0zI2DTXBCXpZAr1AvSAtxCxEiYUcNUm5E5Fzq4tLK1GgudOBnMQqstQ6+HinOjBeWxv+1hKeuLDOlhVjlghPb/1a0Bswu5e2Fq/9IO+W8o/iDEof0hzwIx2yORmNdQ+Bj3fWUoG7BVJaIovpo52u/TAR3HQ1B2cAzVz5JY8S4Eu7U5ZaoYnTsMRlRELgAjf3gtYjsC8isarHsVDKXvnFhsaVr0IztfSNqxHq02SvnFj0xyPB1Gkl0h+HPQ/V0sPsjfleRagSof9uAXwnGNaNj0F+au1XM/+dcRmndpkBpo2jBmKqHEprIMOXMTGlm9OMFSG0scfCtmBHp1MV66RtfLaYn/13wUjAQjr4AgB3gf/hYXS14U/dtHZsVZ24W7ZWMZcR2GpIRkPX2Xh/STJIdO7fo+mcgLtZCi+Bri6nRXNsPfxKK7DoUIpJCKvlFa+LT305Nf/0XwR73dIgddvpRuXXkfLNwIw6LLFOsahrRND/ddvSdWGTPG1ExxqoVlk2NLGUmLueY4seB7ftaogOHWkVVI8ZnRj+dv3PpzINyLlMVL+up3EJoNnX14pur5VasS22Uj1eJ5EgcPceGZMpsXrg3Vlye+iYX6DlgSppf0tt2GC3bh/xQF/oDnbtNTCnOz6QKEx//Zur+lb9lrPKKwzzk38f7oQtQzXzlAgzvfGESVckvPExDq9aGug5K+WphyX547e8ZbpdsPdKtyUaLIqmG5FhFZ/rSmbnxT343XcjMW6Iw8MjamlDKTz6cu1dwAS5OT1thuFGBvQebT+U1vxRsIpfNmVQxezu5LPuCND89Xhj/7Pd3569fzIn7COPeWVvbAVojqauX3I7D40vT8LCJitLZjbQ4Vm9ryK24qbh1wL+ACbLPalm/MVhrMksIf7fWt1mr6wSL0XiHBdse8r7WaiwTYIQZHWfVlHyz0EAwYx9MXB35tvb/U4Xnw/l7N7ybeusFmD+TGhv56MnP1q17BvYchtYHem6tDyGiPzN57dLPn/18/d6MzzkJZppEz0ngUCRF82i9sYaVYx/0afAWNS3riTDr5NjIB/XGG15+IFCOws1qDt4QetB4ixuYPA/H6cNb10ZON9Ly1gJ2+zb0BESSn6ItEMEaLvPT6/UDn5WNNdEfAYUthoDRONqQAGOMnyFlfsYLsE0BfFIGBl8ZgggND+oDUyVWL181N+Dia4gCwTgFpUQS2Why4vrIpr6G+B/jP7NCPGnPlgAAAABJRU5ErkJggg==";const zqr=n=>(kd("data-v-39e8f4a4"),n=n(),Fd(),n),Uqr=["onClick"],Vqr=zqr(()=>fe("svg",{class:"settings-icon",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none"},[fe("path",{d:"M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z",stroke:"currentColor","stroke-width":"2"}),fe("path",{d:"M19.4 15a8.2 8.2 0 0 0 .1-1 8.2 8.2 0 0 0-.1-1l2-1.6-1.9-3.3-2.4 1a7.9 7.9 0 0 0-1.7-1l-.4-2.6H9l-.4 2.6a7.9 7.9 0 0 0-1.7 1l-2.4-1-1.9 3.3 2 1.6a8.2 8.2 0 0 0-.1 1 8.2 8.2 0 0 0 .1 1l-2 1.6 1.9 3.3 2.4-1c.5.4 1.1.7 1.7 1l.4 2.6h6.2l.4-2.6c.6-.3 1.2-.6 1.7-1l2.4 1 1.9-3.3-2-1.6Z",stroke:"currentColor","stroke-width":"2","stroke-linejoin":"round"})],-1)),$qr=[Vqr],Wqr={__name:"OpenLayersZoomControl",props:{map:Object,resetView:{type:Function,default:null},vehicleCategories:{type:Object,default:()=>({})},vehicleMovementControl:{type:Object,default:null}},emits:["compass","zoomIn","zoomOut","layerChange","rotate","setCategoryVisibility","drawTestRoute","routeQueried"],setup(n,{expose:e,emit:t}){const r=n;[Nqr,kqr,Fqr,Bqr,Gqr].forEach(M=>{const I=new window.Image;I.src=M});const i=un(null),a=un(null),o=un(!1),s=un(!1),l=un(!1),u=un(!1),h=un(0);function c(){r.map&&r.map.getView()&&(h.value=r.map.getView().getRotation()*180/Math.PI)}function f(){r.map&&(r.map.getView().animate({rotation:0,duration:300}),t("rotate",0))}function d(){if(r.map){const I=r.map.getView().getRotation()-Math.PI/2;r.map.getView().animate({rotation:I,duration:300}),t("rotate",I*180/Math.PI)}}function v(){if(r.map){const I=r.map.getView().getRotation()+Math.PI/2;r.map.getView().animate({rotation:I,duration:300}),t("rotate",I*180/Math.PI)}}function p(){if(t("zoomIn"),r.map){const M=r.map.getView(),I=M.getConstrainedZoom(M.getZoom()+1);M.animate({zoom:I,duration:250})}}function g(){if(t("zoomOut"),r.map){const M=r.map.getView(),I=M.getConstrainedZoom(M.getZoom()-1);M.animate({zoom:I,duration:250})}}function m(M){console.log("ZoomControl\u6536\u5230\u56FE\u5C42\u53D8\u5316:",M),t("layerChange",M)}function y(M,I){t("setCategoryVisibility",M,I),r.vehicleMovementControl&&r.vehicleMovementControl.setCategoryVisibility&&r.vehicleMovementControl.setCategoryVisibility(M,I)}function _(){o.value=!o.value}function x(){o.value=!1,s.value=!0}function S(){o.value=!1,l.value=!0}function w(){o.value=!1,u.value=!0}function b(){o.value=!1,t("drawTestRoute")}async function E(M){var I,R,k,D,G;try{const V=await Dqr(M);if(V.code===200&&V.data){Sp.success("\u8DEF\u7531\u67E5\u8BE2\u6210\u529F\uFF0C\u5DF2\u5728\u5730\u56FE\u4E0A\u7ED8\u5236");const j={flightNo:(M==null?void 0:M.objectId)||(M==null?void 0:M.vehicleID)||(M==null?void 0:M.flightNo)||(M==null?void 0:M.objectName)||((I=V==null?void 0:V.data)==null?void 0:I.flightNo)||((R=V==null?void 0:V.data)==null?void 0:R.objectId)||((k=V==null?void 0:V.data)==null?void 0:k.vehicleID)||((D=V==null?void 0:V.data)==null?void 0:D.objectName)||((G=V==null?void 0:V.data)==null?void 0:G.routeCodes)||"QUERY-ROUTE",routeType:M.routeType,routeStatus:V.data.routeStatus||"ACTIVE",routeGeometry:V.data.geoPath||V.data.featureLayer||V.data.featureCollection||V.data.geojson||V.data.routeGeometry};r.vehicleMovementControl&&typeof r.vehicleMovementControl.handleAircraftRouteUpdate=="function"?r.vehicleMovementControl.handleAircraftRouteUpdate(j):window.__injectAircraftRouteUpdate?window.__injectAircraftRouteUpdate(j):t("routeQueried",j)}else Sp.warning(V.msg||"\u67E5\u8BE2\u8DEF\u7531\u5931\u8D25")}catch(V){console.error("\u67E5\u8BE2\u8DEF\u7531\u51FA\u9519:",V),Sp.error(V.message||"\u67E5\u8BE2\u8DEF\u7531\u51FA\u9519")}}async function T(M){const I=Number(M==null?void 0:M.vehicleDistance),R=Number(M==null?void 0:M.aircraftDistance),k=Number(M==null?void 0:M.separationDistance),D=Number.isFinite(I)&&I>0,G=Number.isFinite(R)&&R>0,V=Number.isFinite(k)&&k>0;if(!D&&!G&&!V){Sp.error("\u8BF7\u81F3\u5C11\u586B\u5199\u4E00\u9879\u6709\u6548\u914D\u7F6E\uFF08\u5927\u4E8E 0 \u7684\u6570\u5B57\uFF09");return}try{const z=[];if(D||G){const j={};D&&(j.vehicleDistance=I),G&&(j.aircraftDistance=R),z.push(mYr(j))}V&&z.push(yYr(k)),await Promise.all(z),Sp.success("\u914D\u7F6E\u5DF2\u66F4\u65B0"),l.value=!1}catch(z){Sp.error((z==null?void 0:z.message)||"\u914D\u7F6E\u66F4\u65B0\u5931\u8D25")}}function C(M){const I=a.value;!I||I.contains(M.target)||(o.value=!1)}let A=null;return P0(()=>{document.addEventListener("click",C),r.map&&(c(),A=r.map.getView().on("change:rotation",c))}),i_(()=>{if(document.removeEventListener("click",C),A&&r.map)try{Nde(()=>import("./VehicleMovementControlRefactored.96e4a3ca.js").then(M=>M.bs),["assets/VehicleMovementControlRefactored.96e4a3ca.js","assets/index.79832097.js","assets/index.5ac6245b.css","assets/VehicleMovementControlRefactored.f094f266.css"]).then(({unByKey:M})=>{M(A)}).catch(M=>{console.error("\u6E05\u7406\u4E8B\u4EF6\u76D1\u542C\u5668\u5931\u8D25:",M)})}catch(M){console.error("\u6E05\u7406\u4E8B\u4EF6\u76D1\u542C\u5668\u5931\u8D25:",M)}}),Af(()=>r.map,M=>{if(M){if(c(),A)try{Nde(()=>import("./VehicleMovementControlRefactored.96e4a3ca.js").then(I=>I.bs),["assets/VehicleMovementControlRefactored.96e4a3ca.js","assets/index.79832097.js","assets/index.5ac6245b.css","assets/VehicleMovementControlRefactored.f094f266.css"]).then(({unByKey:I})=>{I(A)}).catch(I=>{console.error("\u6E05\u7406\u4E8B\u4EF6\u76D1\u542C\u5668\u5931\u8D25:",I)})}catch(I){console.error("\u6E05\u7406\u4E8B\u4EF6\u76D1\u542C\u5668\u5931\u8D25:",I)}A=M.getView().on("change:rotation",c)}}),e({setLayerVisibility(M,I){return i.value?i.value.setLayerVisibility(M,I):!1},resetRotation:f,getRotation(){return h.value}}),(M,I)=>(qr(),hn("div",{class:"zoom-control",ref_key:"zoomControlRef",ref:a},[fe("div",{class:hl(["settings-control",{active:o.value}]),onClick:BR(_,["stop"])},$qr,10,Uqr),o.value?(qr(),hn("div",{key:0,class:"settings-panel",onClick:I[0]||(I[0]=BR(()=>{},["stop"]))},[fe("div",{class:"settings-item",onClick:x},"\u7F16\u8F91"),fe("div",{class:"settings-item",onClick:S},"\u4FEE\u6539\u9884\u8B66\u8DDD\u79BB"),fe("div",{class:"settings-item",onClick:w},"\u67E5\u8BE2\u8DEF\u7531"),fe("div",{class:"settings-item",onClick:b},"\u7ED8\u5236\u6D4B\u8BD5\u8DEF\u7531")])):Bs("",!0),dd(KYr,{visible:s.value,onClose:I[1]||(I[1]=R=>s.value=!1)},null,8,["visible"]),dd(uqr,{visible:l.value,onClose:I[2]||(I[2]=R=>l.value=!1),onConfirm:T},null,8,["visible"]),dd(Rqr,{visible:u.value,onClose:I[3]||(I[3]=R=>u.value=!1),onConfirm:E},null,8,["visible"]),dd(pYr,{class:"layer-switcher",map:n.map,categories:n.vehicleCategories,onLayerChange:m,onSetCategoryVisibility:y,ref_key:"layerSwitcherRef",ref:i},null,8,["map","categories"]),fe("div",{class:"compass-container",style:XZ({transform:`rotate(${-h.value}deg)`})},[fe("div",{class:"rotate-left",onClick:d,title:"\u5411\u53F3\u65CB\u8F6C90\xB0"}),fe("div",{class:"rotate-right",onClick:v,title:"\u5411\u5DE6\u65CB\u8F6C90\xB0"})],4),fe("div",{class:"zoom-in",onClick:p}),fe("div",{class:"zoom-out",onClick:g})],512))}},Hqr=rf(Wqr,[["__scopeId","data-v-39e8f4a4"]]);const jqr={class:"map-info"},Xqr=["value"],Yqr=["value"],qqr={__name:"OpenLayersMapInfo",props:{map:Object},setup(n){const e=n,t=un("XY\u5750\u6807: --"),r=un("WGS84: --");function i(s){if(!e.map){console.warn("\u5730\u56FE\u5B9E\u4F8B\u672A\u4F20\u9012\u5230OpenLayersMapInfo\u7EC4\u4EF6");return}try{const l=[s.offsetX,s.offsetY],u=e.map.getCoordinateFromPixel(l);if(u){t.value=`XY\u5750\u6807: X=${u[0].toFixed(6)}, Y=${u[1].toFixed(6)}`;try{const[h,c]=lA(u,"EPSG:4528","EPSG:4326");r.value=`WGS84: \u7ECF\u5EA6=${h.toFixed(6)}\xB0, \u7EAC\u5EA6=${c.toFixed(6)}\xB0`}catch{r.value="WGS84: \u8F6C\u6362\u9519\u8BEF"}}else t.value="XY\u5750\u6807: --",r.value="WGS84: --"}catch(l){console.error("\u5904\u7406\u9F20\u6807\u79FB\u52A8\u4E8B\u4EF6\u65F6\u51FA\u9519:",l),t.value="XY\u5750\u6807: \u9519\u8BEF",r.value="WGS84: \u9519\u8BEF"}}function a(){if(!e.map)return;const s=e.map.getTargetElement();s&&s.addEventListener("mousemove",i)}function o(){if(!e.map)return;const s=e.map.getTargetElement();s&&s.removeEventListener("mousemove",i)}return P0(a),i_(o),Af(()=>e.map,(s,l)=>{o(),a()}),(s,l)=>(qr(),hn("div",jqr,[fe("input",{type:"text",readonly:"",value:t.value},null,8,Xqr),fe("input",{type:"text",readonly:"",value:r.value},null,8,Yqr)]))}},Zqr=rf(qqr,[["__scopeId","data-v-c7543916"]]);const UQe=n=>(kd("data-v-40bee71a"),n=n(),Fd(),n),Kqr={class:"scale-control"},Jqr={class:"scale-bar"},Qqr=UQe(()=>fe("div",{class:"tick left"},null,-1)),eZr=UQe(()=>fe("div",{class:"tick right"},null,-1)),tZr=[Qqr,eZr],rZr={class:"scale-text"},nZr={__name:"OpenLayersScaleControl",props:{map:Object,position:{type:String,default:"bottomleft"}},setup(n){const e=n,t=un("100 \u7C73"),r=un(80);function i(){if(!e.map)return;const s=e.map.getView();if(!s)return;const l=s.getResolution();if(!l)return;const u=60,h=150,c=Math.round((u+h)/2),f=l*c;function d(g){if(g<=0)return 0;const m=Math.floor(Math.log10(g)),y=g/Math.pow(10,m);let _;return y<1.5?_=1:y<3?_=2:y<7?_=5:_=10,_*Math.pow(10,m)}let v=d(f),p=v/l;if((ph)&&(p=Math.max(u,Math.min(h,p)),v=d(p*l)),r.value=Math.round(p),v>=1e3){const g=v/1e3;t.value=Math.round(g*10)/10+" \u516C\u91CC"}else t.value=Math.round(v)+" \u7C73"}function a(){!e.map||(e.map.on("moveend",i),i())}function o(){e.map&&e.map.un("moveend",i)}return Af(()=>e.map,s=>{o(),s&&a()}),P0(()=>{a()}),i_(()=>{o()}),(s,l)=>(qr(),hn("div",Kqr,[fe("div",Jqr,[fe("div",{class:"scale-line",style:XZ({width:r.value+"px"})},null,4),fe("div",{class:"scale-ticks",style:XZ({width:r.value+"px"})},tZr,4),fe("div",rZr,mn(t.value),1)])]))}},iZr=rf(nZr,[["__scopeId","data-v-40bee71a"]]);const Z_=n=>(kd("data-v-6d6fb11e"),n=n(),Fd(),n),aZr={class:"route-draw-control"},oZr={class:"draw-tools"},sZr=Z_(()=>fe("span",null,"\u7ED8\u5236\u8DEF\u7EBF",-1)),lZr=[sZr],uZr=Z_(()=>fe("span",null,"\u7ED8\u5236\u70B9\u7EBF\u9762",-1)),hZr=[uZr],cZr=Z_(()=>fe("span",null,"\u6E05\u9664",-1)),fZr=[cZr],dZr=Z_(()=>fe("span",null,"\u5BFC\u51FA\u6570\u636E",-1)),vZr=[dZr],pZr=Z_(()=>fe("span",null,"\u5BFC\u5165\u6570\u636E",-1)),gZr=[pZr],yZr={key:0,class:"polygon-panel"},mZr=Z_(()=>fe("span",null,"\u70B9\u7EBF\u9762\u4FE1\u606F",-1)),_Zr={class:"panel-content"},xZr={class:"info-header"},SZr={class:"info-content"},wZr=["onClick"],bZr={key:0,class:"no-data"},EZr={key:1,class:"route-lines-panel"},TZr=Z_(()=>fe("span",null,"\u8DEF\u7EBF\u4FE1\u606F",-1)),CZr={class:"panel-content"},AZr={class:"info-header"},MZr={class:"info-content"},IZr=["onClick"],LZr={key:0,class:"no-data"},PZr={key:2,class:"import-dialog"},OZr={class:"dialog-content"},RZr={class:"dialog-header"},DZr=Z_(()=>fe("h3",null,"\u5BFC\u5165\u6570\u636E",-1)),NZr={class:"dialog-body"},kZr={class:"file-upload"},FZr=Z_(()=>fe("label",{for:"jsonFileInput"},"\u6216\u8005\u4E0A\u4F20JSON\u6587\u4EF6",-1)),BZr={class:"dialog-footer"},GZr={__name:"RouteDrawControl",props:{map:Object},setup(n,{expose:e}){const t=n,r=un(!1),i=un(""),a=un(!1),o=un(!1),s=un([]),l=un([]),u=un(!1),h=un("");let c=null,f=null,d=null;function v(){!t.map||(f=new Hx,d=new sp({source:f,style:new T1({fill:new C1({color:"rgba(0, 150, 255, 0.3)"}),stroke:new jx({color:"#0096ff",width:3}),image:new RW({radius:7,fill:new C1({color:"#0096ff"})})})}),t.map.addLayer(d))}function p(){m(),r.value=!0,i.value="LineString",o.value=!0,c=new zde({source:f,type:"LineString",style:new T1({stroke:new jx({color:"#ff0000",width:3}),image:new RW({radius:5,fill:new C1({color:"#ff0000"})})})}),c.on("drawend",function(T){const C=T.feature,A=C.getGeometry(),M=RF(A),I=A.getCoordinates().length;C.setProperties({type:"route",length:M,vertices:I}),l.value.push({id:Date.now(),feature:C,length:M,vertices:I,extent:A.getExtent()}),r.value=!1}),t.map.addInteraction(c)}function g(){m(),r.value=!0,i.value="Polygon",a.value=!0,c=new zde({source:f,type:"Polygon",style:new T1({fill:new C1({color:"rgba(255, 165, 0, 0.3)"}),stroke:new jx({color:"#ffa500",width:3}),image:new RW({radius:5,fill:new C1({color:"#ffa500"})})})}),c.on("drawend",function(T){const C=T.feature,A=C.getGeometry(),M=Pde(A),I=RF(A.getLinearRing(0)),R=A.getLinearRing(0).getCoordinates().length-1;C.setProperties({type:"polygon",area:M,perimeter:I,vertices:R}),s.value.push({id:Date.now(),feature:C,area:M,perimeter:I,vertices:R,extent:A.getExtent()}),r.value=!1}),t.map.addInteraction(c)}function m(){c&&(t.map.removeInteraction(c),c=null),f&&f.clear(),r.value=!1,s.value=[],l.value=[]}function y(){a.value=!1}function _(){o.value=!1}function x(T){t.map&&T.extent&&t.map.getView().fit(T.extent,{padding:[50,50,50,50],duration:1e3})}function S(T){t.map&&T.extent&&t.map.getView().fit(T.extent,{padding:[50,50,50,50],duration:1e3})}function w(){if(!f||f.getFeatures().length===0){alert("\u6CA1\u6709\u53EF\u5BFC\u51FA\u7684\u6570\u636E\uFF0C\u8BF7\u5148\u7ED8\u5236\u8DEF\u7EBF\u6216\u70B9\u7EBF\u9762");return}const T=new $b,C=f.getFeatures(),A=T.writeFeaturesObject(C,{dataProjection:"EPSG:4326",featureProjection:t.map.getView().getProjection()}),M=JSON.stringify(A,null,2),I=new Blob([M],{type:"application/json"}),R=URL.createObjectURL(I),k=document.createElement("a");k.href=R,k.download="roadTest.json",document.body.appendChild(k),k.click(),document.body.removeChild(k),URL.revokeObjectURL(R),console.log("\u6570\u636E\u5DF2\u5BFC\u51FA\u4E3AGeoJSON\uFF0C\u6587\u4EF6\u540D\uFF1AroadTest.json"),alert("\u6587\u4EF6\u5DF2\u4E0B\u8F7D\u4E3AroadTest.json\uFF0C\u8BF7\u5C06\u5176\u590D\u5236\u5230\u9879\u76EE\u7684public\u76EE\u5F55\u4E0B")}function b(T){const C=T.target.files[0];if(!C)return;const A=new FileReader;A.onload=M=>{h.value=M.target.result},A.readAsText(C)}function E(){if(!h.value){alert("\u8BF7\u8F93\u5165\u6216\u4E0A\u4F20JSON\u6570\u636E");return}try{const T=JSON.parse(h.value),C=new $b;m();const A=C.readFeatures(T,{dataProjection:"EPSG:4326",featureProjection:t.map.getView().getProjection()});if(f.addFeatures(A),A.forEach(M=>{const I=M.getGeometry(),R=M.getProperties();if(I instanceof rB||R.type==="route"){const k=RF(I),D=I.getCoordinates().length;l.value.push({id:Date.now()+Math.random(),feature:M,length:R.length||k,vertices:R.vertices||D,extent:I.getExtent()})}else if(I instanceof cne||R.type==="polygon"){const k=Pde(I),D=RF(I.getLinearRing(0)),G=I.getLinearRing(0).getCoordinates().length-1;s.value.push({id:Date.now()+Math.random(),feature:M,area:R.area||k,perimeter:R.perimeter||D,vertices:R.vertices||G,extent:I.getExtent()})}}),l.value.length>0&&(o.value=!0),s.value.length>0&&(a.value=!0),u.value=!1,h.value="",A.length>0){const M=f.getExtent();t.map.getView().fit(M,{padding:[50,50,50,50],duration:1e3})}console.log("\u6210\u529F\u5BFC\u5165\u6570\u636E\uFF0C\u5171",A.length,"\u4E2A\u7279\u5F81")}catch(T){console.error("\u5BFC\u5165\u6570\u636E\u5931\u8D25:",T),alert("\u5BFC\u5165\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5JSON\u683C\u5F0F\u662F\u5426\u6B63\u786E")}}return P0(()=>{t.map&&v()}),Af(()=>t.map,T=>{T&&v()}),i_(()=>{t.map&&(c&&t.map.removeInteraction(c),d&&t.map.removeLayer(d))}),e({startDrawLine:p,startDrawPolygon:g,clearDraw:m,exportRouteData:w,importRouteData:E,showImportDialog:u}),(T,C)=>(qr(),hn("div",aZr,[fe("div",oZr,[fe("div",{class:hl(["tool-button",{active:r.value&&i.value==="LineString"}]),onClick:p},lZr,2),fe("div",{class:hl(["tool-button",{active:r.value&&i.value==="Polygon"}]),onClick:g},hZr,2),fe("div",{class:"tool-button",onClick:m},fZr),fe("div",{class:"tool-button",onClick:w},vZr),fe("div",{class:"tool-button",onClick:C[0]||(C[0]=A=>u.value=!0)},gZr)]),a.value?(qr(),hn("div",yZr,[fe("div",{class:"panel-header"},[mZr,fe("span",{class:"close-btn",onClick:y},"\xD7")]),fe("div",_Zr,[(qr(!0),hn(Dp,null,Np(s.value,(A,M)=>(qr(),hn("div",{class:"info-item",key:M},[fe("div",xZr,"\u70B9\u7EBF\u9762 "+mn(M+1),1),fe("div",SZr,[fe("p",null,"\u9762\u79EF: "+mn(A.area.toFixed(2))+" \u5E73\u65B9\u7C73",1),fe("p",null,"\u5468\u957F: "+mn(A.perimeter.toFixed(2))+" \u7C73",1),fe("p",null,"\u9876\u70B9\u6570: "+mn(A.vertices),1),fe("button",{class:"focus-btn",onClick:I=>x(A)},"\u5B9A\u4F4D",8,wZr)])]))),128)),s.value.length===0?(qr(),hn("div",bZr," \u6682\u65E0\u70B9\u7EBF\u9762\u6570\u636E\uFF0C\u8BF7\u5148\u7ED8\u5236\u70B9\u7EBF\u9762 ")):Bs("",!0)])])):Bs("",!0),o.value?(qr(),hn("div",EZr,[fe("div",{class:"panel-header"},[TZr,fe("span",{class:"close-btn",onClick:_},"\xD7")]),fe("div",CZr,[(qr(!0),hn(Dp,null,Np(l.value,(A,M)=>(qr(),hn("div",{class:"info-item",key:M},[fe("div",AZr,"\u8DEF\u7EBF "+mn(M+1),1),fe("div",MZr,[fe("p",null,"\u957F\u5EA6: "+mn(A.length.toFixed(2))+" \u7C73",1),fe("p",null,"\u9876\u70B9\u6570: "+mn(A.vertices),1),fe("button",{class:"focus-btn",onClick:I=>S(A)},"\u5B9A\u4F4D",8,IZr)])]))),128)),l.value.length===0?(qr(),hn("div",LZr," \u6682\u65E0\u8DEF\u7EBF\u6570\u636E\uFF0C\u8BF7\u5148\u7ED8\u5236\u8DEF\u7EBF ")):Bs("",!0)])])):Bs("",!0),u.value?(qr(),hn("div",PZr,[fe("div",OZr,[fe("div",RZr,[DZr,fe("span",{class:"close-btn",onClick:C[1]||(C[1]=A=>u.value=!1)},"\xD7")]),fe("div",NZr,[lu(fe("textarea",{"onUpdate:modelValue":C[2]||(C[2]=A=>h.value=A),placeholder:"\u8BF7\u7C98\u8D34JSON\u6570\u636E"},null,512),[[qg,h.value]]),fe("div",kZr,[FZr,fe("input",{type:"file",id:"jsonFileInput",accept:".json",onChange:b},null,32)])]),fe("div",BZr,[fe("button",{onClick:C[3]||(C[3]=A=>u.value=!1)},"\u53D6\u6D88"),fe("button",{onClick:E,class:"primary-btn"},"\u5BFC\u5165")])])])):Bs("",!0)]))}},zZr=rf(GZr,[["__scopeId","data-v-6d6fb11e"]]);const UZr={class:"map-container"},VZr={class:"map-content-wrapper"},$Zr={__name:"OpenLayersMap",props:{vehicleCategories:{type:Object,default:()=>({})},vehicleMovementControl:{type:Object,default:null}},emits:["setCategoryVisibility","drawTestRoute"],setup(n,{expose:e,emit:t}){function r(b,E){t("setCategoryVisibility",b,E)}Ode.defs("EPSG:4528","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"),brt(Ode);const i=Ert("EPSG:4528"),a=[405027047458807e-7,40192710092735e-7,40514081829214096e-9,40309391342735e-7],o=[40512494329214066e-9,4026228757190162e-9],s=[1322.9166666666665,529.1666666666666,264.5833333333333,132.29166666666666,66.14583333333333,26.45833333333333,13.229166666666664,6.614583333333332,2.645833333333333,1.3229166666666665,.5291666666666666,.2645833333333333,.13229166666666664];function l(b){const E=[];for(let T=0;T{let b=null;try{const M=localStorage.getItem("defaultMapView");M&&(b=JSON.parse(M),console.log("\u52A0\u8F7D\u4FDD\u5B58\u7684\u9ED8\u8BA4\u89C6\u56FE:",b))}catch(M){console.error("\u52A0\u8F7D\u4FDD\u5B58\u7684\u89C6\u56FE\u51FA\u9519:",M)}const E=new sat({extent:a,resolutions:s,tileSize:256,origin:[a[0],a[3]]}),T=new Ay({projection:i,center:b?b.center:o,zoom:b?b.zoom:p,minZoom:d,maxZoom:v,resolutions:u,rotation:b?b.rotation:h});f.value=new Rit({target:c.value,controls:[],loadTilesWhileAnimating:!0,interactions:JPe({altShiftDragRotate:!1,pinchRotate:!1,mouseWheelZoom:!1,doubleClickZoom:!1,shiftDragZoom:!1}),layers:[new Wde({source:new Bp({url:"http://10.96.3.10:8090/iserver/services/map-QDJC_DT-GX3/rest/maps/QDJC2DZT",projection:"EPSG:4528",tileGrid:E,wrapX:!1,attributions:""}),transition:0})],view:T}),console.log("\u5730\u56FE\u5B9E\u4F8B\u5DF2\u521B\u5EFA:",f.value),f.value.addInteraction(new qPe({constrainResolution:!0}));const C=new Wde({source:new Bp({url:"http://10.96.3.10:8090/iserver/services/map-QDJC_DT-GX3/rest/maps/QDJC2DZT",projection:"EPSG:4528",tileGrid:E,wrapX:!1})}),A=new Fnt({className:"ol-overviewmap custom-overview",layers:[C],collapsed:!1,collapsible:!1,rotateWithView:!0,tipLabel:"",view:new Ay({projection:i,center:o,zoom:10,minZoom:3,maxZoom:15,resolutions:s})});f.value.addControl(A),setTimeout(()=>{const M=document.querySelector(".custom-overview");M?(M.style.display="block",console.log("\u9E70\u773C\u56FE\u5DF2\u6DFB\u52A0\u5230\u5730\u56FE")):console.warn("\u672A\u627E\u5230\u9E70\u773C\u56FE\u5143\u7D20")},500),setTimeout(()=>{const M=f.value.getView();b||M.fit(a,{size:f.value.getSize(),padding:[50,50,50,350],maxZoom:p,constrainResolution:!1}),M.animate({rotation:b?b.rotation:h,duration:500}),f.value.updateSize()},200),T.on("change:rotation",function(){})}),i_(()=>{f.value&&f.value.setTarget(null)});function g(){}function m(){}function y(){f.value&&(f.value.getView().setRotation(h),f.value.getView().setCenter(o),f.value.getView().setZoom(p))}function _(){if(f.value){try{const b=localStorage.getItem("defaultMapView");if(b){const E=JSON.parse(b);f.value.getView().setCenter(E.center),f.value.getView().setZoom(E.zoom),f.value.getView().setRotation(E.rotation);return}}catch(b){console.error("\u52A0\u8F7D\u4FDD\u5B58\u7684\u89C6\u56FE\u51FA\u9519:",b)}f.value.getView().setRotation(h),f.value.getView().setCenter(o),f.value.getView().setZoom(p)}}const x={center:o,rotation:h,initialZoom:p,bounds:{left:a[0],bottom:a[1],right:a[2],top:a[3]}};function S(b){console.log("\u5207\u6362\u56FE\u5C42\u7C7B\u578B:",b)}function w(){if(f.value){const b=f.value.getView(),E=b.getCenter(),T=b.getZoom(),C=b.getRotation();return console.log("\u5F53\u524D\u5730\u56FE\u72B6\u6001:"),console.log("\u4E2D\u5FC3\u70B9:",E),console.log("\u7F29\u653E\u7EA7\u522B:",T),console.log("\u65CB\u8F6C\u89D2\u5EA6:",C),{center:E,zoom:T,rotation:C}}return null}return e({zoomIn:g,zoomOut:m,compass:y,resetView:_,getCurrentMapState:w,map:f}),(b,E)=>(qr(),hn("div",UZr,[fe("div",VZr,[fe("div",{ref_key:"mapContainer",ref:c,id:"map"},null,512)]),dd(Hqr,{map:f.value,resetView:_,vehicleCategories:n.vehicleCategories,vehicleMovementControl:n.vehicleMovementControl,onCompass:y,onZoomIn:g,onZoomOut:m,onLayerChange:S,onSetCategoryVisibility:r,onDrawTestRoute:E[0]||(E[0]=T=>b.$emit("drawTestRoute"))},null,8,["map","vehicleCategories","vehicleMovementControl"]),dd(Zqr,{map:f.value,mapConfig:x},null,8,["map"]),dd(iZr,{map:f.value},null,8,["map"]),f.value?(qr(),uA(zZr,{key:0,map:f.value,ref:"routeDrawControlRef"},null,8,["map"])):Bs("",!0),Mrt(b.$slots,"default",{},void 0,!0)]))}},WZr=rf($Zr,[["__scopeId","data-v-853f4944"]]),HZr="/airport/assets/online_car.75a67313.png",jZr="/airport/assets/offline_car.b6d879a9.png",XZr="/airport/assets/fault_car.d14b763b.png";const TL=n=>(kd("data-v-f04383d5"),n=n(),Fd(),n),YZr={class:"car-alarm-container"},qZr={class:"car-item"},ZZr=TL(()=>fe("img",{src:HZr,class:"car-icon"},null,-1)),KZr={class:"car-text"},JZr={class:"car-count"},QZr=TL(()=>fe("span",{class:"unit"},"\u8F86",-1)),eKr=TL(()=>fe("div",{class:"car-label"},"\u5728\u7EBF\u8F66\u8F86",-1)),tKr={class:"car-item"},rKr=TL(()=>fe("img",{src:jZr,class:"car-icon"},null,-1)),nKr={class:"car-text"},iKr={class:"car-count"},aKr=TL(()=>fe("span",{class:"unit"},"\u8F86",-1)),oKr=TL(()=>fe("div",{class:"car-label"},"\u79BB\u7EBF\u8F66\u8F86",-1)),sKr=vne('
    0\u8F86
    \u6545\u969C\u8F66\u8F86
    ',1),lKr={__name:"carClarm",props:{onlineCountProp:{type:Number,default:206},offlineCountProp:{type:Number,default:25},faultCountProp:{type:Number,default:27}},setup(n,{expose:e}){const t=n,r=un(t.onlineCountProp),i=un(t.offlineCountProp),a=un(t.faultCountProp);e({updateCounts:o});function o(l,u,h){r.value=l!==void 0?l:r.value,i.value=u!==void 0?u:i.value,a.value=h!==void 0?h:a.value}P0(()=>{console.log("\u8F66\u8F86\u62A5\u8B66\u4FE1\u606F\u7EC4\u4EF6\u5DF2\u52A0\u8F7D"),s()});async function s(){var l,u,h;try{const c=await PS({url:"/api/vehicle-manager/vehicles/summary",method:"get"}),f=c&&c.data!==void 0?c.data:c||{};o(Number(f.onlineCount)||0,Number(f.offlineCount)||0,Number(f.faultCount)||0)}catch{o((l=r.value)!=null?l:0,(u=i.value)!=null?u:0,(h=a.value)!=null?h:0)}}return(l,u)=>(qr(),hn("div",YZr,[fe("div",qZr,[ZZr,fe("div",KZr,[fe("div",JZr,[a_(mn(r.value),1),QZr]),eKr])]),fe("div",tKr,[rKr,fe("div",nKr,[fe("div",iKr,[a_(mn(i.value),1),aKr]),oKr])]),sKr]))}},uKr=rf(lKr,[["__scopeId","data-v-f04383d5"]]),VQe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAYAAAC8XK78AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMGSURBVHgBxVXLSiNBFL2VRI3PtG8UxPaBS+1tFjI9G7eapQuxAyq6i4I7JRkEwZXJF8T5ggm4mpUJfkD0C6YHBEEEexTfj55zmkQiQ2KQzMyFS3WqbtU5955bFZH/bKrcwtra2o9gMDjo9/t/4Wdqa2srIX/B/OUWwuGw3tnZGe7r6wuChDk5OTkD/57L5RypofnKLby8vHy5uLiwn5+fpaOjw+3t7TXa2toOdnZ2ZuRfEEgmk47rutGzszNRsJaWFkE19MbGxm+pVCohNTL1XsDm5uZuT09PrLu7WyCF1NXVuZeXl3J1dXXs8/kiKysrtlRp+Xxex36tvr5exsbGjqoiEI/HNRQgPzIyMtjU1KRIgERub28VSNgIicKy5fYfHh6a2DMNUKuhoUFDBQXEKbGNcz+/S6BAwmxubj4YHR2VAgEVCAQEEgklYr/Mz88nivH7+/smAKdxi6zW1tYQiaN/BHPeXibA3kICyaoI0La3t3dxK2L9/f1CcHqRDJpVbm5ubMzZyNIIhUIaXABMUMa6xT0F8i7iFaoYU7Ozs0mU4hM2JtPp9NdKJHAD8sPDwwTwZChWgo6yunCFc14JEqg0hv709ESyrEAGskZ8KN+ErutGe3v73uLiYnp5eVkvRwCxkdPTUwcjL4ailhg8cByuWOKSOe/2UKa7uzthlU5OTpzz8/Ps4+OjSXCeGUBMFIfmh4aGtOvra6uAFS3RX8NgsJFwqIFv7f7+XqCvW0qCDuMUibqO46iHhwd+O6jCHshlsHY8Pj7+5iHzds3NzVk4aIJBLFmha02WGc1nQHtBM7nUFV2siqVlDzBznsHSMlM6gLKYz2A6NzU1dSQV7LUJLcvSsSmNV88cGBggIJtMoKkHUtDcm+OIzDwt0UjU00YCGZDOAjwXiUSqfq7f3IKlpaU4OjeBRpOurq7X7iUgtFTQzgOFsw+OQI5ZZhYWFn7KB+2PaxiLxXRkFEfpLd5daC0E5sNBMIJSy9XV1Zr8KVV8B9bX1w0QCAHU3tjY+HCWlew32VsyAm4h+D0AAAAASUVORK5CYII=",hKr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADhSURBVHgBlVELEcIwDO04BNTBigMcMAebg80Bk4CD4WAWcAAOwAFzgISSN97uclyzz7vLLenyXtM85wzEGC8Sb4kncrcFilxKnJi3WwQ+IKq6gEiqd29oeIlBSJ18j6xDqjEzJogkHCRyClwzwdoJJrwwiTNuNxF/yCXuUWEt2U8C6ixsEejhfUIUVvZL5IKNQRG9mgL2Fpqz+9MoJR6y7IEimGQk4UzyG3tMgdF/lQfm0z4Gt/CEMzav6gZnqoYr9ZyA5zvrxL9W72dOpKGNPZdaMYdw5daAGx/t5K2ddfMXZoj7fWN1zB8AAAAASUVORK5CYII=";const TT=n=>(kd("data-v-daf5595e"),n=n(),Fd(),n),cKr={class:"car-detail-container"},fKr=TT(()=>fe("div",{class:"header"},[fe("img",{src:VQe,alt:"list_bg",class:"header-title-icon"}),fe("span",{class:"header-title"},"\u8F66\u8F86\u8BE6\u60C5")],-1)),dKr={class:"back-button"},vKr={class:"track-list"},pKr={class:"section base-info"},gKr={class:"car-id"},yKr=TT(()=>fe("div",{class:"video-tabs"},[fe("span",{class:"tab active"},"\u4EFB\u52A1\u4E2D"),fe("span",{class:"tab active"},"\u5728\u7EBF")],-1)),mKr={class:"info-row"},_Kr={class:"info-row"},xKr={class:"section task-info"},SKr=TT(()=>fe("div",{class:"section-title"},"\u4EFB\u52A1\u4FE1\u606F",-1)),wKr={class:"info-row"},bKr={class:"info-row"},EKr={class:"info-row"},TKr={class:"section battery-info"},CKr=TT(()=>fe("div",{class:"section-title"},[a_(" \u7535\u6C60\u76D1\u63A7 "),fe("span",{class:"status-normal"},"\u6B63\u5E38")],-1)),AKr={class:"info-row1"},MKr=TT(()=>fe("div",{class:"battery-left"},[fe("img",{src:hKr,alt:"battery",class:"battery-icon"}),fe("p",{class:"battery-content"},"\u7535\u6C60\u6E29\u5EA6")],-1)),IKr={class:"section video-info"},LKr=vne('
    360\xB0\u76D1\u63A7\u72B6\u6001 \u524D\u89C6\u5DE6\u524D\u53F3\u524D\u540E\u89C6
    ',1),PKr={class:"video-preview"},OKr=["src"],RKr={class:"section track-info"},DKr={class:"section-title"},NKr=TT(()=>fe("div",{class:"track-search"},[fe("input",{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22"}),fe("span",{class:"search-icon"})],-1)),kKr={class:"track-timeline"},FKr=TT(()=>fe("div",{class:"timeline-line"},null,-1)),BKr={class:"track-content"},GKr={class:"track-time"},zKr={class:"track-desc"},UKr={class:"track-detail"},VKr={__name:"CarDetail",props:{car:{type:Object,required:!0}},setup(n){const e=n,t=[{time:"2024\u5E746\u670816\u65E5 18:12:09\u20142024\u5E746\u670816\u65E5 20:12:09",desc:"\u8D77\u70B9\uFF1A\u673A\u573A\u53D1\u5C55\u516C\u53F8 \u7EC8\u70B9\uFF1A\u673A\u573A\u53D1\u5C55\u516C\u53F8",distance:"20km",taskId:"001"},{time:"2024\u5E746\u670815\u65E5 18:12:09\u20142024\u5E746\u670815\u65E5 20:12:09",desc:"\u8D77\u70B9\uFF1A\u673A\u573A\u53D1\u5C55\u516C\u53F8 \u7EC8\u70B9\uFF1A\u673A\u573A\u53D1\u5C55\u516C\u53F8",distance:"20km",taskId:"002"}];function r(a){const o=parseFloat(a);return isNaN(o)?"temp-normal":o>=45?"temp-danger":o>=38?"temp-warning":"temp-normal"}const i=El(()=>{var o;const a=(o=e.car)==null?void 0:o.trackList;return Array.isArray(a)?a.length:t.length});return(a,o)=>{var h,c;const s=DW("ArrowLeft"),l=DW("el-icon"),u=DW("el-button");return qr(),hn("div",cKr,[fKr,fe("div",dKr,[dd(u,{type:"primary",plain:"",class:"btn custom-back-btn",size:"small",onClick:o[0]||(o[0]=f=>a.$emit("back"))},{default:kde(()=>[dd(l,{class:"back-icon"},{default:kde(()=>[dd(s)]),_:1}),a_(" \u8FD4\u56DE\u8F66\u8F86\u5217\u8868 ")]),_:1})]),fe("div",vKr,[fe("div",pKr,[fe("div",gKr,[a_(mn(n.car.id)+"\uFF08"+mn(n.car.type)+"\uFF09 ",1),yKr]),fe("div",mKr,[fe("div",null,"\u54C1\u724C\uFF1A"+mn(n.car.brand||"\u9A71\u9E1F\u8F66"),1),fe("div",null,"\u8D1F\u8D23\u4EBA\uFF1A"+mn(n.car.manager),1)]),fe("div",_Kr,[fe("div",null,"\u6240\u5C5E\u5355\u4F4D\uFF1A"+mn(n.car.company||"\u673A\u573A\u53D1\u5C55\u516C\u53F8"),1),fe("div",null,"\u8054\u7CFB\u65B9\u5F0F\uFF1A"+mn(n.car.phone||"18661190988"),1)])]),fe("div",xKr,[SKr,fe("div",wKr,[fe("div",null,"\u5F00\u59CB\u65F6\u95F4\uFF1A"+mn(n.car.taskStart||"5\u67081\u65E512:00"),1),fe("div",null,"\u7ED3\u675F\u65F6\u95F4\uFF1A"+mn(n.car.taskEnd||"5\u67081\u65E512:30"),1)]),fe("div",bKr,[fe("div",null,"\u8D77\u70B9\uFF1A"+mn(n.car.taskStartPoint||"A\u533A\u5FEB\u51B2\u6869"),1),fe("div",null,"\u7EC8\u70B9\uFF1A"+mn(n.car.taskEndPoint||"B\u533A\u5FEB\u51B2\u6869"),1)]),fe("div",EKr,[fe("div",null,"\u884C\u9A76\u901F\u5EA6\uFF1A"+mn(n.car.speed),1),fe("div",null,"\u884C\u9A76\u91CC\u7A0B\uFF1A"+mn(n.car.distance),1)])]),fe("div",TKr,[CKr,fe("div",AKr,[MKr,fe("p",{class:hl(["battery-temp",r((h=n.car.batteryTemp)!=null?h:"--")])},mn((c=n.car.batteryTemp)!=null?c:"--"),3)])]),fe("div",IKr,[LKr,fe("div",PKr,[fe("img",{src:n.car.videoImg,alt:"360\u76D1\u63A7"},null,8,OKr)])]),fe("div",RKr,[fe("div",DKr,"\u5386\u53F2\u8F68\u8FF9\uFF08"+mn(Qo(i))+"\uFF09",1),NKr,(qr(!0),hn(Dp,null,Np(n.car.trackList||t,(f,d)=>(qr(),hn("div",{class:"track-item",key:d},[fe("div",kKr,[fe("div",{class:hl(["timeline-dot",{active:d===0}])},null,2),FKr]),fe("div",BKr,[fe("div",GKr,mn(f.time),1),fe("div",zKr,mn(f.desc),1),fe("div",UKr,[fe("span",null,"\u884C\u9A76\u91CC\u7A0B\uFF1A"+mn(f.distance),1),fe("span",null,"\u4EFB\u52A1\u7F16\u53F7\uFF1A"+mn(f.taskId),1)])])]))),128))])])])}}},$Kr=rf(VKr,[["__scopeId","data-v-daf5595e"]]);const WKr=n=>(kd("data-v-6aa232ba"),n=n(),Fd(),n),HKr={class:"filter-dropdown"},jKr=WKr(()=>fe("span",{class:"arrow-down"},null,-1)),XKr={class:"dropdown-menu"},YKr=["onClick"],qKr={__name:"FilterDropdown",props:{options:{type:Array,required:!0,default:()=>[]},modelValue:{type:[String,Number,Object],default:""},placeholder:{type:String,default:"\u5168\u90E8"}},emits:["update:modelValue","change"],setup(n,{emit:e}){const t=n,r=un(!1),i=un(t.placeholder);P0(()=>{if(t.modelValue){const l=t.options.find(u=>u.value===t.modelValue);l&&(i.value=l.label)}document.addEventListener("click",s)}),Irt(()=>{document.removeEventListener("click",s)}),Af(()=>t.modelValue,l=>{if(l){const u=t.options.find(h=>h.value===l);u&&(i.value=u.label)}else i.value=t.placeholder});function a(l){l.stopPropagation(),r.value=!r.value}function o(l){i.value=l.label,r.value=!1,e("update:modelValue",l.value),e("change",l)}function s(l){l.target.closest(".filter-dropdown")||(r.value=!1)}return(l,u)=>(qr(),hn("div",HKr,[fe("div",{class:"selected-filter",onClick:a},[a_(mn(i.value)+" ",1),jKr]),lu(fe("div",XKr,[(qr(!0),hn(Dp,null,Np(n.options,(h,c)=>(qr(),hn("div",{key:c,class:"menu-item",onClick:f=>o(h)},mn(h.label),9,YKr))),128))],512),[[DPe,r.value]])]))}},_Pe=rf(qKr,[["__scopeId","data-v-6aa232ba"]]);const CL=n=>(kd("data-v-aebeef26"),n=n(),Fd(),n),ZKr={class:"event-list-container"},KKr={key:1,class:"event-list-header"},JKr={class:"header-title"},QKr=CL(()=>fe("img",{src:VQe,alt:"list_bg",class:"header-title-icon"},null,-1)),eJr={class:"header-title-text"},tJr={class:"header-actions"},rJr={class:"search-box"},nJr=["onKeyup"],iJr={class:"event-list-content"},aJr=["onClick"],oJr={class:"car-main-info"},sJr={class:"car-id"},lJr={class:"car-actions"},uJr={class:"car-details"},hJr={class:"detail-row"},cJr={class:"detail-item"},fJr=CL(()=>fe("span",{class:"detail-label"},"\u884C\u9A76\u901F\u5EA6:",-1)),dJr={class:"detail-value"},vJr={class:"detail-item"},pJr=CL(()=>fe("span",{class:"detail-label"},"\u884C\u9A76\u8DDD\u79BB:",-1)),gJr={class:"detail-value"},yJr={class:"detail-row"},mJr={class:"detail-item"},_Jr=CL(()=>fe("span",{class:"detail-label"},"\u4EFB\u52A1\u8FDB\u5EA6:",-1)),xJr={class:"detail-value"},SJr={class:"detail-item"},wJr=CL(()=>fe("span",{class:"detail-label"},"\u8D1F\u8D23\u4EBA:",-1)),bJr={class:"detail-value"},EJr={class:"car-owner"},TJr=CL(()=>fe("span",{class:"owner-icon"},null,-1)),CJr={class:"owner-name"},AJr={class:"event-list-pagination"},MJr=["onClick"],IJr={__name:"eventlist",setup(n,{expose:e}){const t=[{label:"\u5168\u90E8",value:"all"},{label:"\u5728\u7EBF",value:"online"},{label:"\u79BB\u7EBF",value:"offline"},{label:"\u6545\u969C",value:"fault"}],r=un([{label:"\u5168\u90E8",value:"all"}]),i=un("all"),a=un("all"),o=un(""),s=un(1),l=un(8),u=un([]),h=OPe();function c(D,G){return D==="fault"||G?"fault":D==="offline"?"offline":(D==="online","online")}function f(D){return D!=null&&D.isFault?"repair":D!=null&&D.currentTask?"task":"idle"}function d(D){var G,V,z,j,Z;return{id:D==null?void 0:D.vehicleId,type:(D==null?void 0:D.vehicleType)||"",status:c(D==null?void 0:D.status,D==null?void 0:D.isFault),taskStatus:f(D),speed:(G=D==null?void 0:D.speed)!=null?G:"",distance:(V=D==null?void 0:D.distance)!=null?V:"",progress:(z=D==null?void 0:D.progress)!=null?z:0,manager:(j=D==null?void 0:D.manager)!=null?j:"",owner:(Z=D==null?void 0:D.organization)!=null?Z:""}}function v(D){const G=h.getVehicleTypeOverride(D==null?void 0:D.id),V=String(G||"").toUpperCase();return V==="UNMANNED_VEHICLE"?"\u65E0\u4EBA\u8F66":V==="SPECIAL_VEHICLE"?"\u7279\u52E4\u8F66":V==="AIRCRAFT"?"\u822A\u7A7A\u5668":G||(D==null?void 0:D.type)||""}function p(D,G){return{id:D,type:G||"",status:"online",taskStatus:"idle",speed:"",distance:"",progress:0,manager:"",owner:""}}const g=El(()=>{const D=Array.isArray(u.value)?u.value:[],G=new Set(D.map(Z=>Z==null?void 0:Z.id).filter(Boolean)),V=h.vehicleTypeOverrides||{},z=h.enabledVehicleIds||{},j=[];return Object.keys(V).forEach(Z=>{if(!Z||G.has(Z))return;const Y=String(V[Z]||"").toUpperCase();Y!=="UNMANNED_VEHICLE"&&Y!=="SPECIAL_VEHICLE"||z[Z]===!0&&j.push(p(Z,V[Z]))}),[...D,...j]});async function m(D={pageNum:1,pageSize:100}){var G;try{const V=await PS({url:"/api/vehicle-manager/vehicles",method:"get",params:D}),z=V&&V.data!==void 0?V.data:V||{},j=(z==null?void 0:z.rows)||((G=z==null?void 0:z.data)==null?void 0:G.rows)||[];u.value=j.map(d)}catch{u.value=[]}}const y=El(()=>_.value.length),_=El(()=>g.value.filter(D=>{if(!h.isVehicleEnabled(D==null?void 0:D.id)||i.value!=="all"&&D.status!==i.value||a.value!=="all"&&v(D)!==a.value)return!1;if(o.value.trim()){const G=o.value.toLowerCase().trim();if(![D.id,v(D),D.manager,D.owner,A(D.status),M(D.taskStatus)].join(" ").toLowerCase().includes(G))return!1}return!0})),x=El(()=>{const D=_.value.length,G=l.value||1;return Math.max(1,Math.ceil(D/G))}),S=El(()=>{const D=(s.value-1)*l.value,G=D+l.value;return _.value.slice(D,G)});function w(D){if(typeof D!="number")return;const G=x.value;D<1?s.value=1:D>G?s.value=G:s.value=D}function b(){s.value=1,console.log("\u7B5B\u9009\u6761\u4EF6\u53D8\u66F4:",{status:i.value,type:a.value,search:o.value})}function E(){s.value=1,console.log("\u641C\u7D22\u5173\u952E\u5B57:",o.value)}function T(){o.value="",s.value=1,console.log("\u6E05\u7A7A\u641C\u7D22\u5173\u952E\u5B57")}function C(){Ort({level:2}).then(D=>{if(D.rows&&Array.isArray(D.rows)){const V=D.rows.filter(z=>z.level===2).map(z=>({label:z.displayNameCn,value:z.displayNameCn}));r.value=[{label:"\u5168\u90E8",value:"all"},...V],console.log("\u8F66\u8F86\u7C7B\u578B\u5217\u8868\u5DF2\u66F4\u65B0:",r.value)}}).catch(D=>{console.error("\u83B7\u53D6\u8F66\u8F86\u7C7B\u578B\u5217\u8868\u5931\u8D25:",D)})}function A(D){switch(D){case"online":return"\u5728\u7EBF";case"offline":return"\u79BB\u7EBF";case"fault":return"\u6545\u969C";default:return"\u672A\u77E5"}}function M(D){switch(D){case"task":return"\u4EFB\u52A1\u4E2D";case"idle":return"\u95F2\u7F6E\u4E2D";case"repair":return"\u7EF4\u4FEE\u4E2D";default:return"\u672A\u77E5"}}e({updateCarList:I});function I(D){D&&Array.isArray(D)&&(u.value=D)}const R=un(null);async function k(D){var G,V,z,j,Z,Y,le,H,Q,ie,oe;if(!k.inFlight){k.inFlight=!0;try{const se=await PS({url:`/api/vehicle-manager/vehicles/${encodeURIComponent(D.id)}`,method:"get"}),me=se&&se.data!==void 0?se.data:se||{},Ce={...D,id:(G=me==null?void 0:me.vehicleId)!=null?G:D.id,type:(V=me==null?void 0:me.vehicleType)!=null?V:D.type,brand:(z=me==null?void 0:me.brand)!=null?z:D.brand,manager:(j=me==null?void 0:me.manager)!=null?j:D.manager,company:(Z=me==null?void 0:me.organization)!=null?Z:D.company,phone:(Y=me==null?void 0:me.contactPhone)!=null?Y:D.phone,speed:(le=me==null?void 0:me.speed)!=null?le:D.speed,distance:(H=me==null?void 0:me.distance)!=null?H:D.distance,batteryTemp:(Q=me==null?void 0:me.batteryTemp)!=null?Q:D.batteryTemp};R.value=Ce;try{const Le=await Rrt(Ce.id),re=Le&&Le.data!==void 0?Le.data:Le||{};let yt=[];const je=[re==null?void 0:re.data,re==null?void 0:re.rows,re==null?void 0:re.list,re==null?void 0:re.tasks,re];for(const qe of je)if(Array.isArray(qe)){yt=qe;break}(!yt||yt.length===0)&&Array.isArray(re==null?void 0:re.waypoints)&&(yt=[{id:Ce.id,vehicleId:Ce.id,waypoints:re.waypoints,timestamp:re.timestamp}]);const st=qe=>String(qe).padStart(2,"0"),Nt=qe=>{const ur=new Date(qe);return`${ur.getFullYear()}\u5E74${ur.getMonth()+1}\u6708${ur.getDate()}\u65E5 ${st(ur.getHours())}:${st(ur.getMinutes())}:${st(ur.getSeconds())}`},Zt=(yt||[]).map((qe,ur)=>{var zt,mt,wt,pt,ar;const ft=(Array.isArray(qe==null?void 0:qe.points)?qe.points:Array.isArray(qe==null?void 0:qe.waypoints)?qe.waypoints:Array.isArray((zt=qe==null?void 0:qe.path)==null?void 0:zt.points)?qe.path.points:[]).map((kt,Dr)=>{var Jn,Rn,hi,yn,Oi,oi,Gi,ws,xl,Os;const Sr=(hi=(Rn=(Jn=kt==null?void 0:kt.timestamp)!=null?Jn:kt==null?void 0:kt.time)!=null?Rn:kt==null?void 0:kt.ts)!=null?hi:Date.now()+Dr*1e3,jr=(Gi=(oi=(Oi=(yn=kt==null?void 0:kt.longitude)!=null?yn:kt==null?void 0:kt.lng)!=null?Oi:kt==null?void 0:kt.lon)!=null?oi:kt==null?void 0:kt.y)!=null?Gi:0,pn=(Os=(xl=(ws=kt==null?void 0:kt.latitude)!=null?ws:kt==null?void 0:kt.lat)!=null?xl:kt==null?void 0:kt.x)!=null?Os:0;return{timestamp:typeof Sr=="string"?Sr:new Date(Sr).toISOString(),longitude:Number(jr)||0,latitude:Number(pn)||0}});if(ft.length===0)return{time:"",desc:"",distance:"",taskId:String((wt=(mt=qe==null?void 0:qe.missionId)!=null?mt:qe==null?void 0:qe.id)!=null?wt:ur+1)};const Oe=ft[0],J=ft[ft.length-1]||Oe;let We=0;for(let kt=1;kt{console.log("\u8F66\u8F86\u5217\u8868\u7EC4\u4EF6\u5DF2\u52A0\u8F7D"),C(),m()}),(D,G)=>(qr(),hn("div",null,[fe("div",ZKr,[R.value?(qr(),uA($Kr,{key:0,car:R.value,onBack:G[0]||(G[0]=V=>R.value=null)},null,8,["car"])):(qr(),hn("div",KKr,[fe("div",JKr,[QKr,fe("div",eJr,"\u8F66\u8F86\u5217\u8868 ("+mn(Qo(y))+")",1)]),fe("div",tJr,[dd(_Pe,{modelValue:i.value,"onUpdate:modelValue":G[1]||(G[1]=V=>i.value=V),options:t,onChange:b},null,8,["modelValue"]),dd(_Pe,{modelValue:a.value,"onUpdate:modelValue":G[2]||(G[2]=V=>a.value=V),options:r.value,onChange:b},null,8,["modelValue","options"]),fe("div",rJr,[lu(fe("input",{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22","onUpdate:modelValue":G[3]||(G[3]=V=>o.value=V),onInput:E,onKeyup:RPe(E,["enter"])},null,40,nJr),[[qg,o.value]]),o.value?Bs("",!0):(qr(),hn("div",{key:0,class:"search-icon",onClick:T})),o.value?(qr(),hn("div",{key:1,class:"clear-icon",onClick:T},"\xD7")):Bs("",!0)])])])),fe("div",iJr,[(qr(!0),hn(Dp,null,Np(Qo(S),(V,z)=>(qr(),hn("div",{key:V.id,class:hl(["car-item",{fault:V.status==="fault",online:V.status==="online",offline:V.status==="offline"}]),onClick:j=>k(V)},[fe("div",oJr,[fe("div",sJr,mn(V.id)+" ("+mn(v(V))+")",1),fe("div",lJr,[fe("div",{class:hl(["status-btn",V.taskStatus])},mn(M(V.taskStatus)),3),fe("div",{class:hl(["online-status",V.status])},mn(A(V.status)),3)])]),fe("div",uJr,[fe("div",hJr,[fe("div",cJr,[fJr,fe("span",dJr,mn(V.speed),1)]),fe("div",vJr,[pJr,fe("span",gJr,mn(V.distance),1)])]),fe("div",yJr,[fe("div",mJr,[_Jr,fe("span",xJr,mn(V.progress)+"%",1)]),fe("div",SJr,[wJr,fe("span",bJr,mn(V.manager),1)])]),fe("div",EJr,[TJr,fe("span",CJr,mn(V.owner),1)])])],10,aJr))),128))]),fe("div",AJr,[(qr(!0),hn(Dp,null,Np(Qo(x),V=>(qr(),hn("div",{key:V,class:hl(["page-btn",{active:V===s.value}]),onClick:z=>w(V)},mn(V),11,MJr))),128))])])]))}},LJr=rf(IJr,[["__scopeId","data-v-aebeef26"]]),PJr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJKSURBVHgB7VPNThpRFL53ZtBCSjMubNLYpLhxW7auxDegO10oNNE1w0o3lk40ujIZ4gNAdW95A4aNiRtLH6CBrkhpGqZYZgZm7r39LpWGEjDttvFLhnv4zj3fnL8h5L+DODlJyGeWXyN/gfDwMK2GoR3MzSVYENyolL4G3bxX0N/bey8o1Uf/qcwGD2MsP+h01thg4CjxuA6xpnZ8/G7Wy2Uc6RpGGkYmblmvxp0dw0hoQpTcVqvIOF97vLREFEWpB0LUVMZyT87O8pOCSmdnJ8VcNxO6bmXSuWBZzdD3CZ2f1/vtdp15Xs3zvM/EdavM96dmSb9tbxc45wXY31GijkwFAA9AiIOz/ENVzeVy2ZEB7a2tLDjx9Px8umBrYyMhgqDEFSWvMHYjOTH8EWgpNZ9dXprkH6D5jkMUSlOwP7ARKzOEJnhbGoOjI0OjNINKLO3g4I/M5ArxIMgJRUmiorpG0KMQAhFK0zQScX7fDEPJf5Qm9zyCQbyEWfL291N4ofmo33f8aNQY3N6+GQoPO4QsGqmUHnheZuX6unhfKT3DKHAhCrK1gvMGxr0ABV12HD11FPQ5dnpapNOCv2azKXkulsv2ON/Z3S0hPkPu1k0OEMJFEouZ2AiHjByT+LK52cCRQHBT+P66j2lHo9G34HIyYDgwVbUhZi5eXNTGY6d+eujZOsqrorQXKKeBS07Y6/1aKZQHLv+8Upm+NmQGGum0TrrdKswkoXfXKLUwLHPZtp1ZcTMFR/i0uppDVklOSHHl6qpOHjCJnxWaE28UYzl7AAAAAElFTkSuQmCC",OJr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAANMSURBVHgBlZTNbhtVFMfPueMJNBuGJ8jwBDW8QJIVIJDsIiGVUCkxK0RBjiuUquFjbBYEqJoYCQQLJDuq2rAA7EgIkFjEeYK2T9DJsl20TuvE47lzzumZiTpqPuq2V16M7z33dz7+51yEZyz585tFMBiASB8I1/H9r+rj7HEsbCPwwcXb+vX4Bzjp+vjOlzsvBJSNL2YAkhCMWwTEDgCLCOpKmTgLZBQYAX7wfXj0rjkG+325Cchb6qoEE04PSMFMykxAmHYiinfAsSUBc1s2LtbHRkjXP2+j4LyG0sS5H2qZg9ZFH16SavodjeIfT1WaYbZ/bSkQkLqG3HY+vFw5BqSrtToCBoy4UDh3ZR1OKkUn8NkmgYljiOzDxssTkzPA2AKUGp5bbeYpS2vRR+avhbn+NFi2hsOiGQ3DZDhcd61twd17XSBqCtGqtD72cyADBULJTszR02FZGslp4FGINAwgGq4zDKoqU0NruwvgVnMgstXQqXeq8ms4FijSo/1oVoE9TEavSBwVsdLsG6a2kJ1PTQrSWvDYkm9Quofu/hGUAZ1pddnPNxPadh7c6RAlHtjRLifcyAKn5JZB8OS381MFa13fEWoC8a1DwHi/auYuzz65x9eWOubT62eOBu64tsvWTCfx3qu5yvHPC0V3EkKstPvSOr+mAs1rW2yarMaQjYm20wwap42Vnxq5Y80wGUDR/azdy8onv5z1hZ0tEZjSSYBE+IKLhT4Ji16uq4mvY6LjDDcEYdNoHfGTq9sHQcwtGG0bPVMLDI0tvGHYYlUVnlJRUOVHhyGgaE+th02IBtrNgxBHeyFEe57sD+qQRHmqBZIgnSLWe9oBr3EhqhaA04TUN1DqJZ1Wz7HRfWJedJb/O9RG8bdvLzqWcpE4Fedx6mm6LB7K2lmfOU7T8TDdR2g4tb8a8ByLrrwXqH06gilu14749UwUWSnrvMK0boZ4obP9PDBZK3tY6/Zl9UxJ/3mwC5vY6PbxqBEnlD6mJS3NR+6lv3snwezKu6q2tLQTuu6lf2tPnh17D2XlLV8fq61UXQYJUaRrjAkPDtnXmpTTM73ZY4O1iaV/bo4F5uDv3iwRcVmrU1To6QPr9GGVnoPQxuX/TyzNI9WdzeQzAvSaAAAAAElFTkSuQmCC",RJr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAL+SURBVHgBrVQ9TBRBFH5vZg8Q/87GRC1YexPu1EiiMUKiibGQO2Ote4mFheawMKLNHYWFheGuMrEBCisLDoyFxGQhFhghARITOzl7o6sIy+3OvOfsHiBC4AL6Njuz8/O++d735i1CA+OZgg0gXfOZBNB9mO4rNfIRjTYAkwukBgGUw1r3+5MPbPgXUx96HZrunV8d66mH/TR1323kty1TwUEBdVhcG1t+HxC1h5M9nbsCDSfvFIlCwI6nQ6tzmC55DLUygi7ATkF58rYtWN2UrJxNDktWGShIhe9udcJOQEmHBa2CcTz7bGLjGnaVPGLdx0ADW4HixgnfdWxL6s+W3H8SWo8kN7uoqrlW1WDixjyRLrd0vSg1ZJrA5QLrcIiaD+SJgm6jblv9pahvZxXEDDUFOYHczjOPU/W7vAVT383YkuS8Fvp4U8sxV7Qk0lFy/uL5/q4rfZmNZODpR3lGWUIENktV086F2hTIeofgbbeLMuGh3Jcymh1k4JF6OALIPLGx6DQgSZbYZSUODwNyWzzNhqAQg/L0k5y1xnLsskM6sJsXfqTVAcrXQWTKkMhQxIQjMjgrEqIHQuoWiaMZ1r5tQLkesAE8U85FWGugSGFBIBQxO+7V3lw0GOyYow8SxjTiFgFtVeOibG6toAocFmYXMQohZuW557lVrBjUf33eMfUNTVcm4otOwc84aBaiHGVyJXDzG4CIcsqSR2xmv42V4Qng+Urn1su4wlQXmP6UI6mFOQRZas1+LMMGC8YupbT2ZzA6ieOpZBPCTOher1igcthV8azF0VMZ0GF1z9WptXLcm/1UgS1M672eJYMiKSNPlCQjDGuY07Vf5ZAXo/K9ZwmtPUKVWnh5orPOe1VmVf9WpreslbFpl6ugl4MR2XLsiwEdABSVcOlbWWKYN4JV4/zEmg6fKBitMkb25Mqdq8fGiHHO4+ybvRjlL+4HRdMhB1lWVO3rnElwxHC+hkvXDmWrHuzGFkdOF5dfdeThf9n34VTSH01f2G7PbyaydzoUZ98tAAAAAElFTkSuQmCC",DJr=n=>(kd("data-v-499c1eca"),n=n(),Fd(),n),NJr={class:"alarm-notification-container"},kJr={class:"detail-tabs"},FJr={class:"tab-header"},BJr={class:"tab-list"},GJr=DJr(()=>fe("i",{class:"close-icon"},"\xD7",-1)),zJr=[GJr],UJr={class:"alarm-list"},VJr={key:0,src:PJr,class:"alarm-img",alt:"\u8F66\u8F86\u51B2\u7A81"},$Jr={key:1,src:OJr,class:"alarm-img",alt:"\u8D8A\u754C\u544A\u8B66"},WJr={key:2,src:RJr,class:"alarm-img",alt:"\u8D85\u901F\u544A\u8B66"},HJr={key:3,class:"alarm-dot"},jJr={class:"alarm-content"},XJr={class:"alarm-title"},YJr={class:"alarm-time"},qJr={key:0,class:"empty-data"},ZJr={__name:"AlarmNotification",emits:["close"],setup(n,{expose:e,emit:t}){const r=un("all"),i=un(!0),a=un([]),o=El(()=>r.value==="all"?a.value:a.value.filter(l=>l.type===r.value));function s(){i.value=!1,t("close")}return e({updateAlarmList(l){l&&Array.isArray(l)&&(a.value=l)},show(){i.value=!0},hide(){i.value=!1},toggle(){i.value=!i.value},isVisible(){return i.value}}),(l,u)=>lu((qr(),hn("div",NJr,[fe("div",kJr,[fe("div",FJr,[fe("div",BJr,[fe("div",{class:hl(["tab-item",{active:r.value==="all"}]),onClick:u[0]||(u[0]=h=>r.value="all")}," \u5168\u90E8 ",2),fe("div",{class:hl(["tab-item",{active:r.value==="car"}]),onClick:u[1]||(u[1]=h=>r.value="car")}," \u8F66\u8F86\u51B2\u7A81 ",2),fe("div",{class:hl(["tab-item",{active:r.value==="report"}]),onClick:u[2]||(u[2]=h=>r.value="report")}," \u8D8A\u754C\u544A\u8B66 ",2),fe("div",{class:hl(["tab-item",{active:r.value==="speed"}]),onClick:u[3]||(u[3]=h=>r.value="speed")}," \u8D85\u901F\u544A\u8B66 ",2)]),fe("div",{class:"tab-actions"},[fe("div",{class:"close-btn",onClick:s},zJr)])])]),fe("div",UJr,[(qr(!0),hn(Dp,null,Np(Qo(o),(h,c)=>(qr(),hn("div",{class:"alarm-item",key:c},[fe("div",{class:hl(["alarm-icon1",h.level])},[h.type==="car"?(qr(),hn("img",VJr)):h.type==="report"?(qr(),hn("img",$Jr)):h.type==="speed"?(qr(),hn("img",WJr)):(qr(),hn("i",HJr))],2),fe("div",jJr,[fe("div",XJr,mn(h.carId)+" ("+mn(h.carType)+") "+mn(h.time)+" "+mn(h.description),1),fe("div",YJr,mn(h.date),1)])]))),128)),Qo(o).length===0?(qr(),hn("div",qJr," \u6682\u65E0\u544A\u8B66\u6570\u636E ")):Bs("",!0)])],512)),[[DPe,i.value]])}},KJr=rf(ZJr,[["__scopeId","data-v-499c1eca"]]),JJr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAG7SURBVHgBvZRLTgJBEIb/aokxLszcQFj42Ck3gAsYETVxN5wAOAFwAzwBvTbKeAPgBrhDYDE3cFhCZNqq4eEwvBNjJZ1UT3V/XV31TwN/bLRtwZljXx/4uPYNPMWj86CbewPjjm0d+SgYQp6nViTs8vemAiqdjHa3Ai8dO2UMnBUgLIF9FLv3+n0t8PzVviUVwHY2GiMdLgOFMotzZg1249jDDOCNBki4Oe3JXM0CPlDaFcYH63GMUux6nJF1eBLUGgtAMkjtCutmda5/U2tJcyabUVgAijQi2XnTsRIm/uWbXeYkbic8WGcvAWMC5MKGYaAhkjLYddfBOLvSwp4YXc2BiiISiSHeedIuQ9MCZVFXN8GmWf42ZazQDgf9AzhyBYEOB0j2srq4CRYwpsC5bC7q9hdCYhY5mG+ke4+6vQ0mt/i804nJ5WYAQpWLXA5dweJo47yeKxBMkg/Ir4FJfZszfy6bY+AZkc4KlGEaG2CSnRqhsgRsZ7RHhAz2NPmfpdZLQDF+PZoMDTqL7eaNQano46CiqwIoy0V0twbscazM3U/072qtaHCnB1YZOuWmWIbMRy+j2/hP+wHqGsG1HQspqAAAAABJRU5ErkJggg==",Dw=n=>(kd("data-v-aaea1471"),n=n(),Fd(),n),QJr={key:0,class:"weather-station-container"},eQr={class:"weather-station-box"},tQr=Dw(()=>fe("div",{class:"weather-station-title"},[fe("span",null,"\u4FE1\u53F7\u706FXH001 | \u6C14\u8C61\u76D1\u6D4B"),fe("img",{class:"weather-station-status",src:JJr,alt:"\u6C14\u8C61\u76D1\u6D4B\u7AD9"})],-1)),rQr={class:"weather-station-content"},nQr={class:"weather-station-info-container"},iQr={class:"weather-station-info-row"},aQr={class:"weather-station-info-item"},oQr=Dw(()=>fe("span",{class:"weather-info-label"},"\u6E29\u5EA6:",-1)),sQr={class:"weather-info-value"},lQr={class:"weather-station-info-item"},uQr=Dw(()=>fe("span",{class:"weather-info-label"},"\u6E7F\u5EA6:",-1)),hQr={class:"weather-info-value"},cQr={class:"weather-station-info-row"},fQr={class:"weather-station-info-item"},dQr=Dw(()=>fe("span",{class:"weather-info-label"},"\u98CE\u901F:",-1)),vQr={class:"weather-info-value"},pQr={class:"weather-station-info-item"},gQr=Dw(()=>fe("span",{class:"weather-info-label"},"\u80FD\u89C1\u5EA6:",-1)),yQr={class:"weather-info-value"},mQr={class:"weather-station-info-row"},_Qr={class:"weather-station-info-item"},xQr=Dw(()=>fe("span",{class:"weather-info-label"},"\u98CE\u5411:",-1)),SQr={class:"weather-info-value"},wQr={class:"weather-station-info-item"},bQr=Dw(()=>fe("span",{class:"weather-info-label"},"\u6E7F\u6ED1\u7A0B\u5EA6:",-1)),EQr={class:"weather-info-value"},TQr={class:"weather-station-info-row"},CQr={class:"weather-station-info-item"},AQr=Dw(()=>fe("span",{class:"weather-info-label"},"\u6C14\u538B:",-1)),MQr={class:"weather-info-value"},IQr={__name:"WeatherStationPopup",props:{visible:{type:Boolean,default:!1},stationData:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:0,y:0})}},emits:["close"],setup(n,{emit:e}){const t=n;Lrt(o=>({"0f57bb8d":t.position.x+"px","7738e86c":t.position.y+"px"}));const r=un({temperature:"22.5",humidity:"68",windSpeed:"3.2",visibility:"8.5",pressure:"1013.2",windDirection:"\u5317\u98CE",wetness:"\u5E72\u71E5",updateTime:Date.now()});function i(){r.value={temperature:"22.5",humidity:"68",windSpeed:"3.2",visibility:"8.5",pressure:"1013.2",windDirection:"\u5317\u98CE",wetness:"\u5E72\u71E5",updateTime:Date.now()}}function a(){e("close")}return P0(()=>{const o=setInterval(()=>{i()},6e4);i_(()=>{clearInterval(o)})}),(o,s)=>n.visible?(qr(),hn("div",QJr,[fe("div",eQr,[fe("div",{class:"weather-station-header"},[tQr,fe("img",{class:"weather-station-close",src:uz,alt:"",onClick:a})]),fe("div",rQr,[fe("div",nQr,[fe("div",iQr,[fe("div",aQr,[oQr,fe("span",sQr,mn(r.value.temperature)+"\xB0C",1)]),fe("div",lQr,[uQr,fe("span",hQr,mn(r.value.humidity)+"%",1)])]),fe("div",cQr,[fe("div",fQr,[dQr,fe("span",vQr,mn(r.value.windSpeed)+"m/s",1)]),fe("div",pQr,[gQr,fe("span",yQr,mn(r.value.visibility)+"km",1)])]),fe("div",mQr,[fe("div",_Qr,[xQr,fe("span",SQr,mn(r.value.windDirection),1)]),fe("div",wQr,[bQr,fe("span",EQr,mn(r.value.wetness),1)])]),fe("div",TQr,[fe("div",CQr,[AQr,fe("span",MQr,mn(r.value.pressure)+"hPa",1)])])])])])])):Bs("",!0)}},LQr=rf(IQr,[["__scopeId","data-v-aaea1471"]]),PQr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABOCAYAAABSU1QqAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA8bSURBVHgBzVpLjxxXFT73VlU/ZjweTxJszeSBE9mJbCBK0hGsgkYIELCPlDV/IAhQRISQxYIFC34Ie1iTLUIjFhGbSKA4UTy2Y3s8Hk8/quqey3fuo+pWT0/3KO876unu6nurTn3nnO88bhF9Q8aNGzc0jUYFvflmlh5X9DWN3d3d/O5dGuQXyrXZROWqGMwOzcPJDlG1t7dXxXk5fYVjezRa2zQbF3VBF249zArqc8nHelIbPSmKxWu+VAGvXPl5P9t49KRl/YzOiktsTc7KTqlSE9ZmqphUbdj0Oa/G5X1Dd6DdnS9ZwMuv7F7okb2qtH5e2ckWqcyqTJdsqykpPWMMKmhMhh7XqjjmflZqolpTZnd2tmmP9r9YAUVtW3Zjp6zttVyrl5j4HEx7pqwtieRFMxybMJuDIsse6Vwds9UVaV0NSVuLCeYI/zaIbkG4ET7ufV4BXxztPpUxvULKfo8tbddk80xTzWQrTRqyMitlD1jRQ7L6ET7PKOtVpEzp/FLEhqanmGCGmvpy0gNod2sbHz4jgtdffeO6UfQaLjAiYzYNaWPJ1rhcrayq8PlYkT2EjT0odHZUM5eWVZVlDNMzFnOszQtFlSHqCa5EgyHReJLZYz22/S2P4P7cdU8V8NLLL68/oZ/cZc3XFanrOO2QLEMoBdmUsQzTJzq0Vh2S4gPoaorfSs2we0DWOVmWK6oNPKK2thcQdAMSUk3rvKZqEeXWAY12lqj42uu732XD38eFvgOhvg0ZLAEAq7TohPFvAhwe4/2IRH24LFmqIFwt63Xg1UxbBX1TBv8goyGsoAch5Txl3SA4pQnZocYa4eYDJ8PeaQi++OruW2zoLTkZlkAqFgOGLenH7nRWPcZPM6tUBVlhaxm0htm4trYZCWS4G5EKVs94y4CKoRgWFAyBIteVM2pixBivtVagFU7Csq7EJaEyxlI9hTo1GQvNKajUAiWNWYxLk/skC2B/isJnGSaH1EZMNJ638vNsoUp8zp1blF7FazPRh/PiRQhqmh+shB7uKsrG6SwB1d8COyHj/SRv4QvmmXjvQA1qrh26ucKwvV7hVNzrwRgnE79mo4vgEgHnvqr26sBOtTIwZd27IopHYLHyalRjlM2hW5irdUgGBynL0jofkXF05N/nosgCieaGba+vU1nwxQTJYagq/sqyQjw4F+TSE1Xtx154A4J97isFmvFHtiDf9ioVR2VZj1bATOvuCn3ivkB1EFk3RkjCKn6IJ0fvEDkDghoIIhxaOwS7io69E69ScTvgmsoLwl0bo3gbulmtdat+UW8mL22TVM4j6KiGgpD9gaOZZmyJhPsn5DghoMcbDCJEE1wiqjUVEU5tUydR3JKzgGeE0+PIvGCqIfAZTWdTGky61751i1YLqMIVlVYqfLcByGQR/qwOFwXY7BFvTyI2GN0kd44in6oq2qKLvjQVJxGuEC8WAHe2VwvojyJwBkSsY5g5KsmEjRBnAiLcsk6DWm5iJGmRzKFi4cGGZmQIScOJt7bESVaqOH6VC3N7pDG34K1GTA0MbgNqEkDwp5MSosafAXJ1cva6rhthS6wWL3ZBRHzkQCCEF+8tFZBbCMJPNqDSugo3pCJHrERY3T1T6iB5ZufqHu/Rg5mY0cy6aCA0uOV/HY2WCqhPVFEqoNIwXQhwDdlAv8zBYQIfGZhHprOFBVlPeBCxGNkgUWTqEEkW+MgSHtQLpopdhilZmJ2l87hLSJnDF5EkoOiwE4rpBScRmhnHQLK1KJCcYoNBEK3nf7ZOnXLUJQvaJS6C5ZwHi+Mq67i6FtIO9FIUTSQZ9MP8NQ/gVmTq5QK2gnhBA6YJMExJ5BU6Uj5zDcHPRqImgxQ0D4JFO6zaWDydhftJQt0ZBGydRFIobhyinakXLW8SCnIqNQlpO+EiD8q/Xrt6IGssQp2zwQMQ9RloJgRhMR7r8IhETR1Zmm/g6TWQ9TDNZsSLxUnqlGPEAmMkKb2KxU3WAg86Ba/OZuairuARuY3TBT5hdfKQHlprfwtqH8YERhBU83UJ8CskFjsnke+C35DGtHwszwep5cHuLaTzRBb1LMD+nQgbj9amnjtT4YQsQ+IgsRglDkWiliHp1goBY/QPRi1G1aHGNp606Z5HCmA/B9B+Dz8fyo+ZnefBygnZo7YJI5FknEB468yhLtKLpKI2iQTcOo1ppncixWXIewOhcN2Xnp4HWxl9HHZFE2xwhkgSY7Er3M+MoPhGdFAYV+rJ3MxiWmQSkPZ5rfiXPtwpRztp0loGoh6kNLPhkwXJB/f2NuwSAeOwahH3dVMGfSJytEKqH0Gwt9O6xKnYyei5UCzQ0Yxk1M6LD86WD8aENfluuxO5LZpOzcfdoh/jNn9Dc97sbdDDZ2GD6W/S3RqNjtQSAVOP8OioJof1OLpktdDeBnnBKdKh1E8x5x3K26LJBZIQi50NJuPWWVL+eOb5GZ2cwKRzF6s5GT9TnL/r9Vt4Cgw1iYy1FYtPERAhL6T8TcmpdRubabWK58YvVMa/Sg/0kI87mpmbeGrZqZv2hYw2rUpkbjNrG+xqlYrbsY81f+1cWElq1FWxJISnlp2cOIbPUiwnXxsvZi+/MkmGvWLchse8bbl2BuaTGV/ViSensS7LenZvYxnN2OSoDf4SKjq9cMHKcRtLfw0qbKzfZdTCg+RpZi0xQmNKNTpa5sXNT7bTh/EE7XFs+XBF18TSHejgHa3snXisLTvJRZJ5mjlDNtOED+vyZO1IZW6qbuuT02jeojum6V24WiOc5JdF3Axx/cEBzWYommJdLGM1UXNymH2gOEEzyRxeLBxu7w/M+q47YHwLztFMJ6NGZ2E47Kh40Vjco3Y2GIyPfWcwVh3haPgi1YjyZuDHp7CTP6qMPoVTyHdF0vWoXPgLbWAh0b47k2wGpBCdoWhqcGgoB3xjdTPT2578972ZDoT3YBl/UiJkKDtdTSLJQuFjsSvcYwMdCDaRBLFYH+Z2admpg2O0sViHfFC7So5D9RQpx4beDDt7pXvA58+Ydo9CeibNI5fyi4pD7los2JCLLMOb2NHYWULU3CSeyS/KC9ZNrEKMlmrOT5kApr9gxr1mStq8TIxIvNgBCCcZINQNmhYrnaU/mAZYZ1gOQb3QCNj3Zsh55xh2eL8pOyV7MaaVLUl4BcFY1Hmi9v23Y42cMFSdS3ozWfLVBk1Tt1EuxRCzTZfZhtBD88glqpLz516zIRe0lLecJ9lMSBZk+MJ9y4e6pb0ZG+tiq6INdiYCKqs9cv6gdxpmbl3b+H/5XAu4yKOKPVkPXNHksxlGgSAJ6wovNm3yR6GBGb9wmg+2A/7hk1kt+WFqIplrv2VJZyu23mLRNJ2X5GBl8yi1bOU3mmzIqHUnfvgZ0lm1LR01q8UGnZpz1x9s0n1BMenNuCG9o9g8Wtz5OCXUUWgS+ZpzLnjHOSz7ZFYEFRENUdObcc2nKHFTMIU4XLbnkkjimkcu1G0tbAHn7YUlyetUmG7vTSToqDXZHxEmdE7i3cL3ZuJwhbtq+tNuVH5LLI6pK9xD+bCqu8VJ29cJEDpcp+UtDiDX4fCuZJIfXHcr3nsWy07y7bcF4/gYNBPq4vl8MJ+XVwxPhd6K9DS88fsqVCeMjSgq7S+PmmXXo+6m4R5B6Q1mIQhYEbzXvaLY4Dq8eGM9GOF7781J1AxvRaHn0SSrOtQiem523IZwn53BmsgwHX/L87k+delfscsfsxlRsHtmYTQ6LWFNzqqTmiOgxnMLnDBSFzj8fEvTnQH7xZ0etfW7nX56bX3Z6bv81Bm+yz8/Ts1mpKZJN8Fa320ll7340Gl12vW1skQaQ00Ts6GatjUjQ4haYnHaPDp7j1pEjBdQNincT5vt0c9jCzjduyOxxrRw958ZKnZeHJtHRK7Duny30yZlJ3nbSqPF/NJWZBNTtZBqyfq2P5gHV/TJQmwiYb94EtKtkPJLVbd8t1O1RB1T/iaCpDVw0m0VZ3Hd/pjNBJrJs4Rm6sInC4mOJVXo91E0iYQBwUuXyrme4qLmEViL2G2RO17sAhdquuQgu8xaY78kZDNAT3qDvsNaN0Ttd9zbIbH4ZG/m5DhRNOEWhipTV+ElzyBfOB+pTzc8s2j/uN2aJR2a6K7DmjsEhWaadCsJddL6cOnMRgzFJ7244ZYLF3fu4vrrgHAd/LwG04My1Dqyhk15XAOhxcgTIVpoXBIZcSN3R1IFBbYh5/iMGIj+EhvUJM7d2chTShVnRU/cmyE727zgWs3kQSHOjzSP++sosz7lD+Sc+/t8QsCDOx8fP7j90T/v3775tycuPvchuLCEM1526YBSPWCwjuxlHSfsQbgpFFo5rwoCyhNJUWCWzog8E1Vjj0e7gC5zjMah0ijWeBU4Wa76poDEttS82dd8RFN+CefYXyRgOu7f+eiT+/s3/1XsPPn33OafIEtdh7qfcjt4ym14bAKoDThVjY0YVDuqCiWWZ0QRWhvBkkVY99wZftNZj42Zse7lXJel0Uj1xwA7LwXBQylU+YO9vZAY+aHojOPKq298C4Jcg1f/BOp/huShMviC4xOlHkFpd4HUI5zxsZY6LtdlhSw1y+TBM7xqU+ZFr7JlXXFPVzwrK5hghTup+kdZtbFxJATpXukjotlZBYT6xw9u37x5//aH/7j09NV/w5QKADoAZQ4kfYTw5xB7LoB0enAwCE0Tee7NqRg2iEux5ppLoKmznPuwQQmK9SQ3GbAe90tGsINauio+M4KnjWuv/PBqzep1bMtehsGdg2+4BxvhSmNU/A9hr6iZs0Nr6yoHkjN57/VbBMdA0IyremOr2qIBkNvvIPi5BUzHlZffeE3n2VXN9gWcujLWzMCPpWVzrAv1AJ5+bzpTk3yBius6ryZbB9XOZ1XxWcaDOx/t39//8D/nn37qffjvXdB3gaRjDdwPbXMO2l8rCtXLlK2k31DoYV1BzTk8mKeHfHG4DdU+/mJVvGpcv757rhrwswhPV1iKZUtT+PcU/jVBGfVYFdWjkvWE9bhEaD6B4JcuYDpeGI02e7T+XF2ZdQhHE1NPBjlNapuPh7Y+vtebzL7WB73/t7d3iLf35fOVKz84nw36m1VW9YeZVpXqa/r4v7Kb01nzlSJ42tjeHq2dPz/IHp2bmv094cK9ir6hQ9EcaP8H8vStdyyempgAAAAASUVORK5CYII=",OQr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABOCAYAAABSU1QqAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA8ZSURBVHgBzVpLjxxXFT733urHzLhtDwmxZhJCCHaiGIiSdARiERiEWLBjEym/AKQsAIGExAJFbFiyQWLB74A1WbBBaMQiYhMJlIfisR3b4/F4+lFV91y+cx9Vt3p6ukd5n1FPd1ffqvrqPL7zqCL6gsgbb7yhaTzu0auvmny7os9J9vb2itu3aVhcLjfnU1Wo3nB+ZO9Pd4mq/f39Kq0r6DOUnfF485IdPaZ7dPnGfdOjAZd8oqe11dNeb/k+nyrAq1d/PDCjB4841k9o07vCzhas3IwqNWVtZ4pJ1ZbtgItqUt61dAvW3f2UAT71wt7lPrlrSuuvKTfdJmWcMrpkV81I6TlDqEcTsvSwVr0THphSE9WajNvd3aF9OvhkAYrZtt1ot6zdc4VWzzLxBbj2XDlXEsmL5tg2ZbaHPWMe6EKdsNMVaV1tkHYOC+wx/o2IbgDcGB/3Py7AZ8Z7jxqmF0i5b7GjnZpcYTTVTK7SpIGVWSl3yIruk9MP8HlOpl+RsqWPS4ENS8+wwG5oGshBD2Hd7R18+IgavP7iK9etopdwgjFZe8mSto5cjdPVyqkKn08UuSP42L2eNsc1c+lYVcYwXM86rHGu6CmqLFFf9Eo03CCaTI070RM32A4aPFg475kArzz//NaX9CN7rPm6InUdh90gxwClgE1Zx3B9oiPn1BEpPoStZvit1Ay/h8o6BzOFotoiImrn+lGDXoCQatriTVULlBuHNN5dYeLnXt77Jlv+Nk70DYD6KjA4ggKc0mITxr8p9PAQ78ck5sNpyVEFcLXsryOvGu0U7E0G8UFWA6xoDyDlOGXdaHBGU3IbGvsINx96DPtnafCZF/deY0uvycGwC1CxODB8ST/0h3PqIX6aO6UqYIWvGVgNq3Fu7QyJynA1ggpez3gz0IqllBYUHIES15VzanLEBK/NFtCaIGHZr8QpYTLGrnoGc2qyDpZTMKmDljRWMU5N/pPsAP9TFD+L2AKorbhoOm4V1rmeKvG58GFRBhNvzsUePoqXaVDTorASerityEzyVaLUcAnsQabryd7iF6yz6dqhNZi59totFMT1+z1v4n4fzjidhn1GXQ2uALjwVbVnh+5Ui4HJdK+KKG2Bx8qrMY1VroBt4a7OazIGSFmWzseIyPFxeF/IIksQLYhrz69zLPhiI3I4qkq/suwhEVyI5vIDVe3HfnyDBgc8UAo0E7ZsA9/OOhMnY7mgragzrbt76FPXBaoDZN04IQmrBJFITtEhOKMGNTSIdOjcBthVbByCeJ2JW0FoqgCEuz5G6TJ0s7fWrfnFvEZe2mWlXNCgpxqKIAdDTzONbAvCg1M4TgEM+gaDCNHEkEhmzSEiqF0eJIpbchblWeH0JCYAUw2Bz2k2n9Fw2j33jRu0HqCKZ1RaqfjdRUVmO+HP6XhSKJuDxtuDiA+mMCl8oMinqkq+6LMvzSRIhCskikWBuzvrAYatSJxRI84zzAKVGGEj5JmoEW5Zp9FaYVMmaTVZwMTCgw3NiAhJI4i3tyVI1po4fZUTc7ulcbcYrVZcDQzuotYkgeBPZy1EjT8LzdXZ0eu6bsCW2Fui2CcRiZFDUSGieH8lQG5VEH9yUSttqHBDKrLFSYbV3SPlAVIYt9D3hIgezsWN5s5nA6HB7fDreLwSoD7VRamolYbpYoJryAb2ZY4BE/nIwj2MNksbsr7wIHIxqkGixNQxkyyJkRU8qJcsFb+MS0xcbfJ13CUk4/WLTBK16HUnFNOPQSI0M0mJZHtZIjnDByMQrRd/dt6cstUXC9oXLqLLhQiWwFXOc3UtpB3ppddrMslwENdvBgVuJ6ZeDbAFEoBGnWaKYcoyr9CRCpVrTH4uETVZlKBFBJb8sGpz8WwerydLdecA2AaJlFDcBES7Ui/bvSkoyJvUZqTtwSUelH/9du+h7OOQ6rwPHoKoz0EzMQmL8zivj0TU1MHSXpCLUZxVMxLFEiR1zjHigQ5QLF5lMLGEyWbkQW/g9dXMQtYVfSRu43yHULD6JSoqXTcQfRSrxb7EVSNj9F+cc6OgRdHfBk1otayuB6nlwe4ltOt8ucV06tpq26oPUC9oY/6Mlc9YCsAlF6PFoUTUIlJurQGYsn90anGqDjW2+aTpNRS5QNm2XWbE9SIPOnMBUfMnHOVa+Kklbskkk0yFN86d6hK9SCnqskzAbdDYuNxrUOeQw49CM8hm0A3/Edd5tQVfhKYJPjhHJkm52Dfu59agnDYFKOqGPJJba2Y1GAcNqlRRU0h3yM6/xsev52ewUjyAqIc5zYxCsSD14P7+yK0AmMSpZdzXLRl0mzmgQdGoC61bqNgc/RLfv7v08GWIYE8zUlH7KD48Xz2YCtbsu+su5LZpShv992hi41H+HK8f0hLBOuW7djk2fDD/TaZb4/GxWgEwj4igHdXUsEGPvljtBY2FJdqnRBuDBGXY69jjB3SGWMl9MRd7H8zkxnlK/iBKLa7o1AQ2X8uhmhFwSv0Mmvs+rZPYk4hsrll6BkBkiFjyNy2n1m1upgUTa98h/AQ7vEJrxMRhRh/1uKeZhd/PbDt1M74QacuqDHNbWbvoo8nEUiM6/Q98+ZDWSFK+1ONqwcRSEJ7ZdnIWGKFKcZx9baKYA35lswpbBBq9A6//gzsHyNTVSSTnuc6YvtsfraIZl211MV5iR6eX7hAhNpeiPoR2f48a4zadITL88jxIgWY2Mye0tlTj41VR3PzkOnOYQNBBjy0fZrvqhrqlHfwQe/9uFUgvg9M0c45qpkkfLtGHPqU73fYnnb3j6ENSHGtMx+i3OMgtWiZ+Pjik+RxNU+qLRdYTNWebOZjuFM1ka7h7mLwvZmcAzv0GkG9S9zq8+MnCxkbHxMtEn701Oh93e6G4NX7BnFXHlKezvti3DLWMCm+hHfgVtrYMHH1QeFBuBuSnPUfTlKSlHCcE0gEdTBxmM20uFmn4O7ad0pNogATAX1CcDNm0CBpsMglysT4q3Mq2U8fAaHOxjvWgVrqpC7ihHBdnM2nQHqYLRKlYkOGRL/nRj+BmxQGQvo4fD8wCgMQyfAl3NHZXEHXiQZX/ogIwptM+6Lu5CLTTdorkKOIMyVXuQDH/1DI/kCAZwsTDZsRK55kP5gkWaY6Dy+ulTsARWDR13nZKPRjt6LFlBa8q+jcK8rcxIlGH+duJRk0Yu84VsxmTfXXR0tQdlEsz5AuDhZ7EHykGiQ8Q4ytn35X4lrPyQ/RmpxgkSULjvh1S3crZjEt9sVPJBzsLURE4HTQXNoagYeY2tG34VyyMgHtFmA+Wcdo69E1TqGZ4yyopWNdEsW2LP4oDzPSF83qwFfB5KGazejCi8uM3k0220uitH6dbs0Ukh2uHR7lnq3CjycWKWnfyR1ghk1XX0lGzt/igN3Ph54PJxF6L2WzGi8yO0vBo+eTjjFRHcUgUes6F5N3U+XKfzIW2M1g2zWb88Ckhbqb8cfxbtseSTOKHRz7VbS8dARftiaXI63SY/t6bIOiYNbs/IuTigySERWiakvjGXTXzaS9VuCWWZOYb99g+rJtucTb29QDihGuhbmnEK8hPOEIo2ewHP91K1y4aTL54xpMTJyegmdgXL9aDxSJecTwVZytycy04f+hCdd4KKz/+iq1m6Oq6ZXjQoMwGTUwCToD3u2cUH9xCFI+2ohO++eYCokaCF8V5RVOs6tiL6IXV6TaE/+wd1iaG6cRbUSzMqcvwSlP+VM2Igf0zC+PxWQVrdlSd9RxRa7ywgwcjfUEzm4mdMUrmzozahbudYXntn7IQLcqUnzoSpvyLcmY1Iz1NfhOsjd0WudyLj5NWb93QK0umsdQMMRuqCTGSLCxELbk4Hx6df0YtENMJlMsa97NWB+0XaQSsu8VDnd3tTJmEYWIfxWl4ROQnrKvvdrqs7aTgW3m2WNy1hWxTqRZLLdm/nQ8WMRSFqFMm8feLp7HciiW/dHWr73aqlqhTyd9kEM6WZ9NWCRY/7U/VTKSZwmQ0U/dCsZDZWEqFwQBNkyCMGrxypVS0EmCAZoj9LXLPi13FxZ4u28i+spbSP1Yz0J7MBsOEtW6IOtxxb0Vy8enZzGk51TThEjaUUdcQJU+gXriYqE9nfcrpoUN7a5Z0HKL7CWvhNSg005RbWaqT0YcvZ0YpFZ+O4oZbLj+2exvn34IKt8DPm3A9GENtoWq4JI9rILXIhLLUQuN+/Of8OwmXU2Qb8oHPyIGYL7FFT+LDna08pVSx6fUlvNHwQe1Fj2s1lweFuDjWPBlscU0f8ttyzIMDPgXw8Nb7J/duvvfPuzff/euXHnvyHXBhiWB8ypcDSvWhgy1UL1s4YB/gZjBo5aMqApQnkhJglsmIPBNV4x6P9gld1liNTaVF14xXDwcr1MD2gNiVmi8NNB/TjJ/FMQ6WAczl7q33Prh78O6/eruP/K1wxQeoUrdg7kf9HTwlYaguQVEjBFWNGzHodlQVW6zAiAJaW9ElC1j/3Bl+06bP1s5Z9wuuy9JqlPoTKLsoRYNH0CDx2/v7sTAKouiccvXFV74MIM8hqn8E8z9B8lAZYsHziVIPYLTb0NQDHPGhlkelCl1WqFKNkQfP8KptWfT6lSvrivu64nlZwQUrXEk1ODbVaHQsBOlf+SOi5rwAYf7JvZvvvnv35jt/v/L4tX/DlXpQ6BCUOZTyEeAvIPdcBun0EWAATVN57s2bGD6IU7HmmktoU5uCB/BBSYr1tLAGup4MSkay49GCic+twbPkuRe+d61m9TJuyz4Fh7uA2PAPNiKUJuj478Nf7yAzH6E5rgpoci7v/UGrwQk0aCdVPdqutmkIzR10NPixAeZy9flXXtKFuYZpwtM4dGWdnYMfS8f2RPfUPUT6ndlcTYslJq7roppuH1a7H9XE55F7t947uHvwzn8uPv7oW4jf26DvHoqOTXA/rM0FaH+z11N9o1wFYqx7eqOuYOYCEcyzI35sYwemffjJmnidXL++d6Ea8leQnq6yNMuOZojvGeJrijbqoepVD0rWU9aTEqn5lAY/dYC5PD0eX+rT1pN1ZbcAjqa2ng4LmtaumGy4+uROfzr/XB/0/t/+/hHe3pLPV69+56IZDi5VphpsGK0qNdD0/n/lbk5nn89Ug2fJzs548+LFoXlwYWYP9oUL9yv6goqiBaX9H5WkspUGs1/AAAAAAElFTkSuQmCC",RQr="/airport/assets/red.892fd06c.svg",DQr="/airport/assets/yellow.ada6d5da.svg",NQr="/airport/assets/green.08121006.svg";const $m=n=>(kd("data-v-2b86b8c7"),n=n(),Fd(),n),kQr={class:"platform-overview platform-no-padding"},FQr={class:"alarm-stats-card"},BQr={class:"stats-header"},GQr=$m(()=>fe("span",{class:"stats-title"},"\u544A\u8B66\u7EDF\u8BA1",-1)),zQr={class:"stats-time"},UQr={class:"stats-content"},VQr=$m(()=>fe("img",{src:Brt,class:"stats-icon"},null,-1)),$Qr={class:"stats-text"},WQr={class:"stats-count"},HQr=$m(()=>fe("span",{class:"stats-label"},"\u51B2\u7A81\u9884\u8B66",-1)),jQr={key:0,class:"new-badge"},XQr=$m(()=>fe("img",{src:Grt,class:"stats-icon"},null,-1)),YQr={class:"stats-text"},qQr={class:"stats-count"},ZQr=$m(()=>fe("span",{class:"stats-label"},"\u51B2\u7A81\u544A\u8B66",-1)),KQr={key:0,class:"new-badge"},JQr=$m(()=>fe("img",{src:zrt,class:"stats-icon"},null,-1)),QQr={class:"stats-text"},een={class:"stats-count"},ten=$m(()=>fe("span",{class:"stats-label"},"\u8D8A\u754C\u544A\u8B66",-1)),ren={key:0,class:"new-badge"},nen=$m(()=>fe("img",{src:Urt,class:"stats-icon"},null,-1)),ien={class:"stats-text"},aen={class:"stats-count"},oen=$m(()=>fe("span",{class:"stats-label"},"\u8D85\u901F\u544A\u8B66",-1)),sen={key:0,class:"new-badge"},len=$m(()=>fe("i",{class:"alarm-icon"},null,-1)),uen={key:0,class:"alarm-badge"},hen=["src","alt"],cen={__name:"index",setup(n){const e=un(!1),t=un(!1),r=un(null),i=un(null),a=un(null),o=un([]),s=un(null),l=un(null),u=un([]),h=un(null),c=un(!1),f=un(null),d=un({x:0,y:0}),v=El(()=>{var Q;return(((Q=i.value)==null?void 0:Q.alarmList)||[]).filter(ie=>ie.type==="car"&&ie.level==="medium").length}),p=El(()=>{var Q;return(((Q=i.value)==null?void 0:Q.alarmList)||[]).filter(ie=>ie.type==="car"&&ie.level==="high").length}),g=El(()=>{var Q;return(((Q=i.value)==null?void 0:Q.alarmList)||[]).filter(ie=>ie.type==="report").length}),m=El(()=>{var Q;return(((Q=i.value)==null?void 0:Q.alarmList)||[]).filter(ie=>ie.type==="speed").length}),y=El(()=>{var ie;return(((ie=i.value)==null?void 0:ie.alarmList)||[]).filter(oe=>oe.type==="car"&&oe.level==="medium"&&Date.now()-new Date(oe.date).getTime()<1e4).length>0}),_=El(()=>{var ie;return(((ie=i.value)==null?void 0:ie.alarmList)||[]).filter(oe=>oe.type==="car"&&oe.level==="high"&&Date.now()-new Date(oe.date).getTime()<1e4).length>0}),x=El(()=>{var ie;return(((ie=i.value)==null?void 0:ie.alarmList)||[]).filter(oe=>oe.type==="report"&&Date.now()-new Date(oe.date).getTime()<1e4).length>0}),S=El(()=>{var ie;return(((ie=i.value)==null?void 0:ie.alarmList)||[]).filter(oe=>oe.type==="speed"&&Date.now()-new Date(oe.date).getTime()<1e4).length>0}),w=un(""),b=un(null);Af(()=>{var H;return(H=i.value)==null?void 0:H.alarmList},H=>{H&&b.value&&b.value.updateAlarmList(H)},{deep:!0});function E(){const H=new Date;w.value=H.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit",second:"2-digit"})}const T=El(()=>v.value+p.value+g.value+m.value),C=El(()=>{var H;return((H=i.value)==null?void 0:H.vehicleCategories)||{}});function A(H,Q){i.value&&i.value.setCategoryVisibility&&i.value.setCategoryVisibility(H,Q)}function M(){i.value&&i.value.drawTestRoute&&i.value.drawTestRoute()}function I(){t.value=!1,console.log("\u544A\u8B66\u9762\u677F\u5DF2\u5173\u95ED")}function R(){c.value=!1,f.value=null,console.log("\u6C14\u8C61\u76D1\u6D4B\u7AD9\u5F39\u7A97\u5DF2\u5173\u95ED")}function k(H){const Q=a.value.forEachFeatureAtPixel(H.pixel,function(ie){return ie});if(Q){const ie=Q.getProperties();if(ie.type==="trafficLight"){f.value=ie;const oe=H.pixel[0],se=H.pixel[1],Ce=a.value.getTargetElement().getBoundingClientRect();d.value={x:Ce.left+oe+20,y:Ce.top+se-50},c.value=!0,console.log("\u70B9\u51FB\u4E86\u7EA2\u7EFF\u706F:",ie,"\u5F39\u7A97\u4F4D\u7F6E:",d.value)}}}function D(){e.value=!e.value}function G(){t.value=!t.value,t.value&&b.value&&i.value&&b.value.updateAlarmList(i.value.alarmList)}async function V(){console.log("\u{1F50D} \u5F00\u59CB\u83B7\u53D6\u8DEF\u53E3\u6570\u636E...");try{const H=await Nrt();console.log("\u{1F4E1} API\u54CD\u5E94\u539F\u59CB\u6570\u636E:",H),console.log("\u{1F4CA} \u54CD\u5E94\u6570\u636E\u7C7B\u578B:",typeof H,"\u662F\u5426\u4E3A\u6570\u7EC4:",Array.isArray(H)),H&&Array.isArray(H)?(console.log("\u2705 \u54CD\u5E94\u6570\u636E\u6709\u6548\uFF0C\u8DEF\u53E3\u6570\u91CF:",H.length),o.value=H.map(Q=>{const ie={intersectionId:Q.intersectionId,intersectionName:Q.intersectionName,longitude:Q.longitude,latitude:Q.latitude,areaCode:Q.areaCode||"",description:Q.description||"",status:Q.isActive?"1":"0",createTime:Q.createdTime};return console.log("\u{1F5FA}\uFE0F \u6620\u5C04\u8DEF\u53E3\u6570\u636E:",ie),ie}),console.log("\u2705 \u83B7\u53D6\u8DEF\u53E3\u6570\u636E\u6210\u529F\uFF0C\u603B\u6570:",o.value.length),console.log("\u{1F4CD} \u5904\u7406\u540E\u7684\u8DEF\u53E3\u6570\u636E:",o.value)):(console.warn("\u26A0\uFE0F API\u54CD\u5E94\u6570\u636E\u65E0\u6548\u6216\u4E0D\u662F\u6570\u7EC4"),o.value=[])}catch(H){console.error("\u274C \u83B7\u53D6\u8DEF\u53E3\u5217\u8868\u5931\u8D25:",H),console.error("\u274C \u9519\u8BEF\u8BE6\u60C5:",H.message,H.stack),o.value=[]}}function z(H="unknown",Q="ns"){let ie=Frt;H==="red"?ie=RQr:H==="yellow"?ie=DQr:H==="green"&&(ie=NQr);const oe=Q==="ew"?Math.PI/2:0;return new T1({image:new Crt({src:ie,scale:.2,anchor:[.5,.5],opacity:1,rotation:oe})})}const j=un({});function Z(H){var ie;if(!H)return;let Q="unknown";if(H.status)Q=H.status;else if(H.ns_status||H.ew_status)Q=H.ns_status||H.ew_status||"unknown";else{const oe=H.serviceData?H.serviceData:H,se=Array.isArray(oe&&oe.phases)?oe.phases:[];if(se.length>0){const me=se.map(Ce=>Number(Ce.phaseColor));me.includes(3)?Q="red":me.includes(4)||me.includes(2)?Q="yellow":me.includes(1)&&(Q="green")}else{const me=Number((ie=oe&&oe.trafficLightsStatus)!=null?ie:H.trafficLightsStatus);me===3?Q="red":me===4||me===2?Q="yellow":me===1&&(Q="green")}}j.value.globalStatus=Q,j.value.timestamp=Date.now(),Y()}function Y(){if(!h.value||!h.value.getSource())return;const H=h.value.getSource(),Q=H.getFeatures(),ie=j.value.globalStatus||"unknown";Q.forEach(oe=>{oe.getProperties().type==="trafficLight"&&oe.setStyle(z(ie,"ns"))}),H.changed()}window.updateTrafficLightStatus=Z;function le(){if(console.log("\u{1F6A6} \u5F00\u59CB\u6E32\u67D3\u7EA2\u7EFF\u706F\u5230\u5730\u56FE..."),console.log("\u{1F5FA}\uFE0F \u5730\u56FE\u5B9E\u4F8B\u72B6\u6001:",a.value?"\u5DF2\u521D\u59CB\u5316":"\u672A\u521D\u59CB\u5316"),console.log("\u{1F4CD} \u7EA2\u7EFF\u706F\u6570\u636E\u6570\u91CF:",u.value.length),!a.value){console.warn("\u26A0\uFE0F \u5730\u56FE\u5B9E\u4F8B\u672A\u521D\u59CB\u5316\uFF0C\u65E0\u6CD5\u6E32\u67D3\u7EA2\u7EFF\u706F");return}h.value&&(console.log("\u{1F5D1}\uFE0F \u79FB\u9664\u73B0\u6709\u7EA2\u7EFF\u706F\u56FE\u5C42"),a.value.removeLayer(h.value));const H=new Hx;let Q=0,ie=0;if([{id:"fixed-1",longitude:120.09986800557976,latitude:36.35086289387643,intersectionName:"\u56FA\u5B9A\u5750\u6807\u70B91",status:"green"},{id:"fixed-2",longitude:120.09437418546923,latitude:36.34969069796734,intersectionName:"\u56FA\u5B9A\u5750\u6807\u70B92",status:"red"},{id:"fixed-3",longitude:120.0857115242345,latitude:36.346946273836345,intersectionName:"\u56FA\u5B9A\u5750\u6807\u70B93",status:"yellow"}].forEach((se,me)=>{console.log(`\u{1F50D} \u5904\u7406\u56FA\u5B9A\u5750\u6807\u70B9${me+1}:`,se);const Ce=parseFloat(se.longitude),Le=parseFloat(se.latitude);console.log(`\u{1F4CD} \u56FA\u5B9A\u5750\u6807\u70B9 "${se.intersectionName}" \u4F4D\u7F6E: [${Ce}, ${Le}]`);const re=lA([Ce,Le],"EPSG:4326",a.value.getView().getProjection());console.log("\u{1F504} \u8F6C\u6362\u540E\u7684\u5730\u56FE\u5750\u6807:",re);const yt=new Qb(re),je=new E1({geometry:yt,...se,type:"trafficLight",deviceName:se.intersectionName+" (\u5357\u5317\u65B9\u5411)",intersectionId:se.id,deviceId:se.id+"-ns"});je.setStyle(z(se.status,"ns")),H.addFeature(je),Q++,console.log(`\u2705 \u56FA\u5B9A\u5750\u6807\u70B9 "${se.intersectionName}" \u5DF2\u6DFB\u52A0\u5230\u5730\u56FE`);const st=Ce+8e-4,Nt=Le-5e-4,Zt=lA([st,Nt],"EPSG:4326",a.value.getView().getProjection()),qe=new Qb(Zt);new E1({geometry:qe,...se,id:se.id+"-ew",longitude:st,latitude:Nt,type:"trafficLight",deviceName:se.intersectionName+" (\u4E1C\u897F\u65B9\u5411)",intersectionId:se.id,deviceId:se.id+"-ew"})}),u.value.forEach((se,me)=>{if(console.log(`\u{1F50D} \u5904\u7406\u7B2C${me+1}\u4E2A\u7EA2\u7EFF\u706F:`,se),se.longitude&&se.latitude){const Ce=parseFloat(se.longitude),Le=parseFloat(se.latitude);if(console.log(`\u{1F4CD} \u7EA2\u7EFF\u706F "${se.deviceName}" \u4F4D\u7F6E: [${Ce}, ${Le}] (\u8DEF\u53E3: ${se.intersectionName})`),isNaN(Ce)||isNaN(Le)){console.warn(`\u26A0\uFE0F \u7EA2\u7EFF\u706F "${se.deviceName}" \u5750\u6807\u65E0\u6548: [${se.longitude}, ${se.latitude}]`),ie++;return}const re=lA([Ce,Le],"EPSG:4326",a.value.getView().getProjection());console.log("\u{1F504} \u8F6C\u6362\u540E\u7684\u5730\u56FE\u5750\u6807:",re);const yt=new Qb(re),je=new E1({geometry:yt,...se,type:"trafficLight",deviceName:se.deviceName+" (\u5357\u5317\u65B9\u5411)",deviceId:se.deviceId+"-ns"});je.setStyle(z(se.status||"unknown","ns")),H.addFeature(je),Q++,console.log(`\u2705 \u7EA2\u7EFF\u706F "${se.deviceName}" \u5DF2\u6DFB\u52A0\u5230\u5730\u56FE`);const st=Ce+1e-4,Nt=lA([st,Le],"EPSG:4326",a.value.getView().getProjection()),Zt=new Qb(Nt),qe=new E1({geometry:Zt,...se,id:se.id+"-ew",longitude:st,latitude:Le,type:"trafficLight",deviceName:(se.deviceName||se.intersectionName)+" (\u4E1C\u897F\u65B9\u5411)",deviceId:se.deviceId+"-ew"});qe.setStyle(z(se.status||"unknown","ew")),H.addFeature(qe),Q++,console.log(`\u2705 \u7EA2\u7EFF\u706F "${se.deviceName}" \u7684\u914D\u5BF9\u7EA2\u7EFF\u706F\u5DF2\u6DFB\u52A0\u5230\u5730\u56FE`)}else console.warn(`\u26A0\uFE0F \u7EA2\u7EFF\u706F "${se.deviceName}" \u7F3A\u5C11\u7ECF\u7EAC\u5EA6\u4FE1\u606F (\u672A\u5339\u914D\u5230\u8DEF\u53E3):`,{intersectionId:se.intersectionId,longitude:se.longitude,latitude:se.latitude}),ie++}),console.log(`\u{1F4CA} \u7EA2\u7EFF\u706F\u5904\u7406\u7EDF\u8BA1: \u6709\u6548=${Q}, \u65E0\u6548=${ie}`),Q===0){console.warn("\u26A0\uFE0F \u6CA1\u6709\u6709\u6548\u7684\u7EA2\u7EFF\u706F\u5750\u6807\u53EF\u4EE5\u6E32\u67D3");return}h.value=new sp({source:H,zIndex:2001}),console.log("\u{1F6A6} \u521B\u5EFA\u7EA2\u7EFF\u706F\u56FE\u5C42:",h.value),console.log("\u{1F4CD} \u56FE\u5C42\u7279\u5F81\u6570\u91CF:",H.getFeatures().length),a.value.addLayer(h.value),console.log("\u2705 \u7EA2\u7EFF\u706F\u56FE\u5C42\u5DF2\u6DFB\u52A0\u5230\u5730\u56FE"),Y(),setTimeout(()=>{h.value.setZIndex(2001),console.log("\u{1F5FA}\uFE0F \u8BBE\u7F6E\u7EA2\u7EFF\u706F\u56FE\u5C42zIndex\u4E3A2001")},100)}return Prt(()=>{console.log("\u5E73\u53F0\u6982\u89C8\u7EC4\u4EF6\u88AB\u6FC0\u6D3B"),setTimeout(()=>{if(i.value){const H=i.value.wsConnected;console.log("WebSocket\u8FDE\u63A5\u72B6\u6001:",H),H||(console.log("WebSocket\u672A\u8FDE\u63A5\uFF0C\u5C1D\u8BD5\u91CD\u65B0\u8FDE\u63A5"),i.value.reconnectWebSocket())}},1e3)}),P0(()=>{var Q;(Q=document.querySelector(".app-main"))==null||Q.classList.add("platform-no-padding"),E();const H=setInterval(E,1e3);r.value&&setTimeout(async()=>{a.value=r.value.map,console.log("\u5730\u56FE\u5B9E\u4F8B\u5DF2\u83B7\u53D6:",a.value),await V(),le(),a.value.on("click",k)},1e3),i_(()=>{clearInterval(H),l.value&&Rde(l.value)}),window.updateTrafficLightStatus=Z}),i_(()=>{var H;(H=document.querySelector(".app-main"))==null||H.classList.remove("platform-no-padding"),a.value&&s.value&&a.value.removeLayer(s.value),l.value&&Rde(l.value)}),Af(()=>{var H;return(H=r.value)==null?void 0:H.map},H=>{H&&(a.value=H,console.log("\u5730\u56FE\u5B9E\u4F8B\u5DF2\u66F4\u65B0:",a.value),V())}),(H,Q)=>(qr(),hn("div",kQr,[dd(WZr,{ref_key:"mapRef",ref:r,vehicleMovementControl:i.value,vehicleCategories:Qo(C),onSetCategoryVisibility:A,onDrawTestRoute:M},null,8,["vehicleMovementControl","vehicleCategories"]),dd(uKr),fe("div",FQr,[fe("div",BQr,[GQr,fe("span",zQr,mn(w.value),1)]),fe("div",UQr,[fe("div",{class:hl(["stats-item",{"has-new":Qo(y)}])},[VQr,fe("div",$Qr,[fe("span",WQr,mn(Qo(v)),1),HQr]),Qo(y)?(qr(),hn("span",jQr)):Bs("",!0)],2),fe("div",{class:hl(["stats-item",{"has-new":Qo(_)}])},[XQr,fe("div",YQr,[fe("span",qQr,mn(Qo(p)),1),ZQr]),Qo(_)?(qr(),hn("span",KQr)):Bs("",!0)],2),fe("div",{class:hl(["stats-item",{"has-new":Qo(x)}])},[JQr,fe("div",QQr,[fe("span",een,mn(Qo(g)),1),ten]),Qo(x)?(qr(),hn("span",ren)):Bs("",!0)],2),fe("div",{class:hl(["stats-item",{"has-new":Qo(S)}])},[nen,fe("div",ien,[fe("span",aen,mn(Qo(m)),1),oen]),Qo(S)?(qr(),hn("span",sen)):Bs("",!0)],2)])]),t.value?(qr(),uA(KJr,{key:0,ref_key:"alarmNotificationRef",ref:b,onClose:I},null,512)):Bs("",!0),fe("div",{class:"alarm-btn",onClick:G},[len,Qo(T)>0?(qr(),hn("span",uen,mn(Qo(T)),1)):Bs("",!0)]),fe("img",{class:hl(["eventlist-toggle-btn",{"btn-opened":e.value}]),src:e.value?Qo(PQr):Qo(OQr),alt:e.value?"\u6536\u8D77\u8F66\u8F86\u5217\u8868":"\u5C55\u5F00\u8F66\u8F86\u5217\u8868",onClick:D},null,10,hen),e.value?(qr(),uA(LJr,{key:1})):Bs("",!0),a.value?(qr(),uA(Trt,{key:2,map:a.value,ref_key:"vehicleMovementRef",ref:i},null,8,["map"])):Bs("",!0),c.value?(qr(),uA(LQr,{key:3,visible:c.value,"station-data":f.value,position:d.value,onClose:R},null,8,["visible","station-data","position"])):Bs("",!0)]))}},zen=rf(cen,[["__scopeId","data-v-2b86b8c7"]]);export{zen as default}; diff --git a/airport/assets/index.46f01612.js.gz b/airport/assets/index.46f01612.js.gz new file mode 100644 index 0000000..bda5764 Binary files /dev/null and b/airport/assets/index.46f01612.js.gz differ diff --git a/airport/assets/index.47434492.css b/airport/assets/index.47434492.css new file mode 100644 index 0000000..84a8c45 --- /dev/null +++ b/airport/assets/index.47434492.css @@ -0,0 +1 @@ +.app-container[data-v-b275c409]{padding:20px;background-color:#292c38;color:#fff;height:calc(100vh - 180px);overflow-y:auto;border-radius:10px} diff --git a/airport/assets/index.4abbb6d0.css b/airport/assets/index.4abbb6d0.css new file mode 100644 index 0000000..b43a87d --- /dev/null +++ b/airport/assets/index.4abbb6d0.css @@ -0,0 +1 @@ +.layer-switcher[data-v-ff64246d]{position:relative}.layer-icon[data-v-ff64246d]{width:32px;height:32px;cursor:pointer}.layer-panel[data-v-ff64246d]{position:absolute;top:10px;left:50px;width:397px;background-color:#424851;border-radius:4px;box-shadow:0 2px 8px #0006;z-index:3100;overflow:hidden;color:#fff}.panel-tabs[data-v-ff64246d]{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #303850;padding-right:10px}.tabs-left[data-v-ff64246d]{display:flex}.tabs-right[data-v-ff64246d]{display:flex;align-items:center;gap:15px}.checkbox-container.master-select[data-v-ff64246d]{font-size:12px;color:#409eff;padding-left:25px}.checkbox-container.master-select .checkmark[data-v-ff64246d]{border-color:#409eff;width:16px;height:16px}.checkbox-container.master-select:hover .checkmark[data-v-ff64246d]{background-color:#409eff1a}.checkbox-container.master-select input:checked~.checkmark[data-v-ff64246d]{background-color:#409eff;border-color:#409eff}.checkbox-container.master-select .checkmark[data-v-ff64246d]:after{left:5px;top:1px;width:4px;height:8px}.close-btn[data-v-ff64246d]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;cursor:pointer;color:#999;transition:color .2s ease;border-radius:3px}.tab[data-v-ff64246d]{padding:0 20px;height:40px;line-height:40px;font-size:14px;text-align:center;cursor:pointer;transition:all .2s ease;color:#f0f0f0;position:relative}.tab[data-v-ff64246d]:hover,.tab.active[data-v-ff64246d]{color:#409eff}.tab.active[data-v-ff64246d]:after{content:"";position:absolute;bottom:0;left:50%;transform:translate(-50%);width:100%;height:2px;background-color:#409eff}.panel-content[data-v-ff64246d]{padding:10px;max-height:400px;overflow-y:auto}.layer-group[data-v-ff64246d]{margin-bottom:15px}.group-title[data-v-ff64246d]{font-weight:700;margin-bottom:8px;padding-bottom:5px;border-bottom:1px solid #999999;color:#fff}.group-title .checkbox-container.select-all[data-v-ff64246d]{font-weight:700;color:#409eff}.group-title .checkbox-container.select-all .checkmark[data-v-ff64246d]{border-color:#409eff}.group-title .checkbox-container.select-all:hover .checkmark[data-v-ff64246d]{background-color:#409eff1a}.group-title .checkbox-container.select-all input:checked~.checkmark[data-v-ff64246d]{background-color:#409eff;border-color:#409eff}.layer-grid[data-v-ff64246d]{display:grid;grid-template-columns:auto auto auto;gap:5px}.layer-grid-full[data-v-ff64246d]{display:grid;grid-template-columns:1fr;gap:5px}.layer-item[data-v-ff64246d]{padding:6px 0}.checkbox-container[data-v-ff64246d]{display:flex;align-items:center;position:relative;padding-left:30px;cursor:pointer;font-size:14px;user-select:none}.checkbox-container input[data-v-ff64246d]{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.checkmark[data-v-ff64246d]{position:absolute;left:0;height:18px;width:18px;background-color:transparent;border:1px solid #999999;border-radius:3px}.checkbox-container:hover input~.checkmark[data-v-ff64246d]{background-color:#666}.checkbox-container input:checked~.checkmark[data-v-ff64246d]{background-color:#0096ff;border-color:#0078cc}.checkmark[data-v-ff64246d]:after{content:"";position:absolute;display:none}.checkbox-container input:checked~.checkmark[data-v-ff64246d]:after{display:block}.checkbox-container .checkmark[data-v-ff64246d]:after{left:6px;top:2px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.layer-name[data-v-ff64246d]{margin-left:5px;color:#fff}.layer-icon-preview[data-v-ff64246d]{width:20px;height:20px;margin-left:8px;object-fit:contain}.panel-content[data-v-ff64246d]::-webkit-scrollbar{width:6px}.panel-content[data-v-ff64246d]::-webkit-scrollbar-track{background:#555555}.panel-content[data-v-ff64246d]::-webkit-scrollbar-thumb{background:#999999;border-radius:3px}.panel-content[data-v-ff64246d]::-webkit-scrollbar-thumb:hover{background:#bbbbbb}.style-selector[data-v-ff64246d]{display:flex;flex-direction:column;gap:15px;padding:10px 0}.style-item[data-v-ff64246d]{display:flex;justify-content:space-between;align-items:center;padding:5px 10px}.style-label[data-v-ff64246d]{font-size:14px;color:#fff}.radio-box[data-v-ff64246d]{width:20px;height:20px;border:2px solid #999999;border-radius:3px;cursor:pointer;position:relative}.radio-box[data-v-ff64246d]:hover{border-color:#bbb}.radio-box.active[data-v-ff64246d]{border-color:#0096ff}.radio-box.active[data-v-ff64246d]:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:12px;height:12px;background-color:#0096ff;border-radius:1px}.radio-box.blue[data-v-ff64246d]{border-color:#0096ff}.radio-box.blue.active[data-v-ff64246d]:after{background-color:#0096ff}.radio-box.white[data-v-ff64246d]{border-color:#fff}.radio-box.white.active[data-v-ff64246d]:after{background-color:#fff}.road-json[data-v-ff64246d]{padding:10px;background-color:#333;border-radius:4px;margin-top:10px}.road-json pre[data-v-ff64246d]{margin:0;padding:0;white-space:pre-wrap;word-break:break-all}.custom-label[data-v-ff64246d]{position:absolute;display:flex;align-items:center;justify-content:center;min-width:120px;height:28px;padding:0 10px;font-size:12px;font-weight:700;border-radius:4px;border:1px solid;color:#fff;box-sizing:border-box;white-space:nowrap;z-index:1000;pointer-events:none;transform:translate(-50%)}.label-aircraft-in[data-v-ff64246d]{background-color:#f5e74fb3;border-color:#e4cb0d;color:#333}.label-aircraft-out[data-v-ff64246d]{background-color:#347ae2b3;border-color:#347ae2;color:#fff}.label-car[data-v-ff64246d]{background-color:#252525b3;border-color:#484848;color:#fff}.custom-label.style-blue[data-v-ff64246d]{background-color:#347ae2b3!important;border-color:#347ae2!important;color:#fff!important}.custom-label.style-white[data-v-ff64246d]{background-color:#ffffffb3!important;border-color:#fff!important;color:#333!important}.vehicle-edit-mask[data-v-f567b4ae]{position:fixed;left:0;top:0;right:0;bottom:0;z-index:4000;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center}.vehicle-edit-dialog[data-v-f567b4ae]{width:900px;max-width:calc(100vw - 40px);background-color:#424851;border-radius:10px;box-shadow:0 10px 30px #00000073;overflow:hidden;color:#fff}.dialog-header[data-v-f567b4ae]{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #303850}.dialog-title[data-v-f567b4ae]{font-size:18px;font-weight:600}.dialog-close[data-v-f567b4ae]{width:22px;height:22px;cursor:pointer}.dialog-body[data-v-f567b4ae]{padding:14px 18px 10px}.search-row[data-v-f567b4ae]{display:flex;align-items:center;gap:10px;margin-bottom:12px}.search-label[data-v-f567b4ae]{font-size:14px;color:#dcdcdc;white-space:nowrap}.search-input[data-v-f567b4ae]{flex:0 0 320px;height:34px;border-radius:4px;border:1px solid #2f7ab9;outline:none;background:rgba(0,150,255,.08);color:#fff;padding:0 12px}.search-input[data-v-f567b4ae]::placeholder{color:#fff9}.table-header[data-v-f567b4ae]{display:grid;grid-template-columns:90px 1fr 140px 240px;align-items:center;height:40px;padding:0 10px;border:1px solid #303850;border-radius:6px;background:rgba(0,0,0,.12);font-size:14px}.table-body[data-v-f567b4ae]{margin-top:10px;border:1px solid #303850;border-radius:6px;overflow:hidden}.table-empty[data-v-f567b4ae]{padding:30px 0;text-align:center;color:#ffffffb3}.table-rows[data-v-f567b4ae]{max-height:420px;overflow:auto}.table-row[data-v-f567b4ae]{display:grid;grid-template-columns:90px 1fr 140px 240px;align-items:center;gap:10px;padding:10px;border-bottom:1px solid rgba(48,56,80,.9)}.table-row[data-v-f567b4ae]:last-child{border-bottom:none}.cell-box[data-v-f567b4ae]{height:34px;display:flex;align-items:center;padding:0 12px;border-radius:4px;border:1px solid rgba(47,122,185,.8);background:rgba(0,150,255,.08);color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.type-select[data-v-f567b4ae]{width:100%;height:34px;border-radius:4px;border:1px solid rgba(47,122,185,.8);outline:none;background:rgba(0,150,255,.08);color:#fff;padding:0 12px;appearance:none}.type-select option[data-v-f567b4ae]{background:#424851;color:#fff}.dialog-footer[data-v-f567b4ae]{padding:12px 18px 16px;display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #303850}.footer-btn[data-v-f567b4ae]{width:88px;height:34px;border-radius:4px;cursor:pointer;border:1px solid rgba(47,122,185,.8);background:rgba(0,150,255,.08);color:#fff}.footer-btn.confirm[data-v-f567b4ae]{background:#0096ff;border-color:#0078cc}.checkbox-container[data-v-f567b4ae]{display:inline-flex;align-items:center;cursor:pointer;position:relative;user-select:none;padding-left:22px}.checkbox-container input[data-v-f567b4ae]{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.checkmark[data-v-f567b4ae]{position:absolute;left:0;top:50%;transform:translateY(-50%);height:16px;width:16px;border:1px solid #999999;border-radius:3px;background-color:transparent}.checkbox-container input:checked~.checkmark[data-v-f567b4ae]{background-color:#0096ff;border-color:#0078cc}.checkmark[data-v-f567b4ae]:after{content:"";position:absolute;display:none}.checkbox-container input:checked~.checkmark[data-v-f567b4ae]:after{display:block}.checkbox-container .checkmark[data-v-f567b4ae]:after{left:5px;top:1px;width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.table-rows[data-v-f567b4ae]::-webkit-scrollbar{width:6px}.table-rows[data-v-f567b4ae]::-webkit-scrollbar-track{background:rgba(255,255,255,.06)}.table-rows[data-v-f567b4ae]::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25);border-radius:3px}.dialog-mask[data-v-0989065e]{position:fixed;left:0;top:0;right:0;bottom:0;z-index:4000;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center}.dialog[data-v-0989065e]{width:620px;max-width:calc(100vw - 40px);background-color:#424851;border-radius:10px;box-shadow:0 10px 30px #00000073;overflow:hidden;color:#fff}.dialog-header[data-v-0989065e]{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #303850}.dialog-title[data-v-0989065e]{font-size:18px;font-weight:600}.dialog-close[data-v-0989065e]{width:22px;height:22px;cursor:pointer}.dialog-body[data-v-0989065e]{padding:18px 22px 8px}.form-row[data-v-0989065e]{display:flex;align-items:center;gap:12px;margin-bottom:14px}.form-label[data-v-0989065e]{width:140px;text-align:right;font-size:14px;color:#dcdcdc;white-space:nowrap}.form-input[data-v-0989065e]{flex:1;height:34px;border-radius:4px;border:1px solid rgba(47,122,185,.9);outline:none;background:rgba(0,150,255,.08);color:#fff;padding:0 12px}.form-input[data-v-0989065e]::placeholder{color:#fff9}.dialog-footer[data-v-0989065e]{padding:12px 18px 16px;display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #303850}.footer-btn[data-v-0989065e]{width:88px;height:34px;border-radius:4px;cursor:pointer;border:1px solid rgba(47,122,185,.8);background:rgba(0,150,255,.08);color:#fff}.footer-btn.confirm[data-v-0989065e]{background:#0096ff;border-color:#0078cc}.dialog-mask[data-v-4ad96261]{position:fixed;left:0;top:0;right:0;bottom:0;z-index:4000;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center}.dialog[data-v-4ad96261]{width:760px;max-width:calc(100vw - 40px);background-color:#424851;border-radius:10px;box-shadow:0 10px 30px #00000073;overflow:hidden;color:#fff}.dialog-header[data-v-4ad96261]{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #303850}.dialog-title[data-v-4ad96261]{font-size:18px;font-weight:600}.dialog-close[data-v-4ad96261]{width:22px;height:22px;cursor:pointer}.dialog-tabs[data-v-4ad96261]{display:flex;border-bottom:1px solid #303850}.tab[data-v-4ad96261]{flex:0 0 120px;height:40px;line-height:40px;text-align:center;cursor:pointer;font-size:14px;color:#f0f0f0}.tab.active[data-v-4ad96261]{color:#fff;background:rgba(0,150,255,.15);border-bottom:2px solid #0096ff}.dialog-body[data-v-4ad96261]{padding:18px 22px 8px}.form-grid[data-v-4ad96261]{display:grid;grid-template-columns:1fr;gap:14px}.form-item[data-v-4ad96261]{display:flex;align-items:center;gap:12px}.form-label[data-v-4ad96261]{width:220px;text-align:right;font-size:14px;color:#dcdcdc;white-space:nowrap}.form-input[data-v-4ad96261]{flex:1;height:34px;border-radius:4px;border:1px solid rgba(47,122,185,.9);outline:none;background:rgba(0,150,255,.08);color:#fff;padding:0 12px}.form-input[data-v-4ad96261]::placeholder{color:#fff9}.form-hint[data-v-4ad96261]{margin-top:14px;padding:10px 12px;border-radius:6px;border:1px solid rgba(48,56,80,.9);background:rgba(0,0,0,.12);color:#fffc;font-size:12px}.dialog-footer[data-v-4ad96261]{padding:12px 18px 16px;display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #303850}.footer-btn[data-v-4ad96261]{width:88px;height:34px;border-radius:4px;cursor:pointer;border:1px solid rgba(47,122,185,.8);background:rgba(0,150,255,.08);color:#fff}.footer-btn.confirm[data-v-4ad96261]{background:#0096ff;border-color:#0078cc}.required[data-v-4ad96261]{color:#f56c6c;margin-left:4px}.zoom-control[data-v-39e8f4a4]{position:absolute;bottom:220px;left:20px;z-index:3000;width:40px;height:auto;display:flex;flex-direction:column;justify-content:space-between;gap:25px}.settings-control[data-v-39e8f4a4]{z-index:3000;width:40px;height:40px;border-radius:6px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fffffff2;background:rgba(66,72,81,.9);border:1px solid rgba(48,56,80,.9)}.settings-control[data-v-39e8f4a4]:hover,.settings-control.active[data-v-39e8f4a4]{background:rgba(66,72,81,1);border-color:#0096ffd9}.settings-icon[data-v-39e8f4a4]{display:block}.settings-panel[data-v-39e8f4a4]{position:absolute;left:50px;top:0;width:220px;background-color:#424851;border-radius:4px;box-shadow:0 2px 8px #0006;z-index:3100;overflow:hidden;color:#fff;border:1px solid #303850}.settings-item[data-v-39e8f4a4]{height:40px;line-height:40px;padding:0 14px;cursor:pointer;font-size:14px;border-bottom:1px solid rgba(48,56,80,.9)}.settings-item[data-v-39e8f4a4]:last-child{border-bottom:none}.settings-item[data-v-39e8f4a4]:hover{background:rgba(0,150,255,.12)}.settings-item.disabled[data-v-39e8f4a4]{opacity:.5;cursor:not-allowed}.compass-container[data-v-39e8f4a4]{position:relative;width:40px;height:40px;cursor:pointer;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAZ9SURBVHgBrVlLTxxHEK7unse+ZhcwS8LaJiiYhdgmsSGWZeP4IeWQQ3LKCSuKFClyLrklP8O+5RJukRIRRbk5kZxIlq0AinJYjI0fsH7jGOzwMMu+d2e6Uz3DgoE1zAz+pLGlme7qb+urqu4uCPhEd++ZPhA8CZz0cSK6CIEIgDCcryQrBMxSQWYAeBoYS02OXUmBDxAvg7u6+g0SZgNCkIE1Mq6XmiFCpAgTg3dSw7OuZ7kZZBMLsXMCYABeA4iAi26Jbkuw+/1TA8KCc949tu3SM4STwcnrV3/bahTb6mP34ZPfYCwhOdC3GkcIxYesPSDABQx05el461vG/LPHf7/Sdr2XtqRB5bwgog+2AaU2OSJNyX+4qIGDW+DgNCnyr6amRrOb7NedEFS+d0PO8RwlmqrQppihx6JhVVUZcUDBLXBwUgTZ+XrfNkksZUVXnIbtjDqWQWGMRqOG2pZoMVriu/Sl5Vy5alrSK6izK6lXSEKintzrCHb3nvoETX4NLqEyRnRdZ2/EG4PtbYmGL7/4rCmXy1cfPZ4uW47W4BE98db2LJK8WXuxqkPX4f4E53ZCuIKMOow/EghotLEhqseMUKCtba92+uSxqKbrnmWuQSalzIFNBIlg5wgRrS7tIEEGVKEkHNCVhqih7+voUBcWFsnRI30xXVUpo8TTJrBmWNg1dx1B6T1B4GMPZkCmgqoqxMDEiISDgZ53e2gmk4GlpSV24vgRg0mGPjnKDaHmReqQZq6ltcfL7MX1dU1jDdGoHgoGlF1NjbRSqcCz58/hg/6jUVXTiG+GCB5gA6sEOZBtS8o6gvgwhZFQKMiwtGgdb7cruXze5lOtVOG9g/tjAU2jjhO9x6FNjBCHoDyVeIs96T1Z+1QSM8JqKBjUDh44oCwvL0ujQlGYqJTLrP+YlJn59qCMxe7eE30ULMuT96S/FUwOzFT0nqEjP6WlpYWWS2VZ+6Ty8HRmFj768EyjpmtEZjr4hWBJ6f+klzmYvfaiRjjIokZY6z10SF3KZIhT8exdmJiWBZ372iPNuxpVRqnvQORc9FFOScLtBGITJID7GYmEgmooFFA6OzuUbDYr34vazi4p4TvWs/+dEKqMm7S/OEQ5ktL/ruNPLiQnyBISCKIHIxEWb25WZPbaybB2ohH/Pp2Fz89+GqdUAd8uFGAoXs559glFULtQWZYpkp2dTPp1z+7dNv3aOM45qVRNiMebA9FYhBWLRQv8ABNF8TReLo40q1VL5PMF89nz/6r5fA7m5udXvgqZKEiei0KpBJjh1uLiC9PzjvwSpC5Z16NRRgxcJGDxXKFUvXHzdiEUCotSuQzlcgkf+X8FiuUy0VUN7qTv54Ql/PMTJEtxes71+JVDqMVNUSyW+HI2X7kzOVWMGgasZjEa5JjFbW17yI8//zpncQ5eDq/r+fFZigynPE3CxSyTiwrqnMnkKuM3bhVi0ahwvgkZf2DiebBaNSvX8BsXO/AgJzMyLT3fV3FRuaWJfKloXZ+4lQ+GQjaPGsFYLArjE7cz3OTCr/ckMP7SuG9ZafAI24uYCMVi2VpazldvTNwqrMgsZJFOtL4JP/z0y5yF4/xvIyDLQYpOjo2kPCXK6lwOVdPkeII2x65N5JuamjD2HHkz2VzxwaPpsu1U8I2ZyYmRlHPc4mIIPELY5QZlLhSsqbv3SsVCsYLeIw0NMRge/WcRf4Dg3F/5s+0LsEPPJigilneCslhjjBUKJetFJlt98PhJyTAikEi0wqU/r2QwBGAnYNh5WCU4NTqaxfU8kbTjkNvZzFHS6sXf/1jEQyvMzy3k7j+cLqP3fKuLP/5irS2ydicJWYNeY1FmLZYTvpzJmvceThdLpUrh0uW/FiRx8I+ZmvckVq+dC0+eVOKteytI8rhLQ/bhCo8wBOONY0bzpsYGevnqcGbxxZLpNz3Q2IXJayNja2tsQBIv7sRDF8u5wMsOg5CdD6cso/x+6GFWDaWvj1zYZH8jug+dxNYHeL6n7ERX2Z9Jjw+f3fi+fm8mbH2L4nkq4DsjBynZPKr3bctC71VuP6gn68vYsj+4gI2ceGLvLP5C7EGT19zAFFmM1O/ujo8MbjXKXQtYdh7s1oi37sOrIL1GSmKwXj9wI7w10VeI4hJ4lybu7zIOrSyWxyFaEkNuiPki+DK6e070YXsLH0iiVAnn8lULAyH/DJHD2x2eNXkKTEjLjR984H94pCKhkUE6qQAAAABJRU5ErkJggg==) no-repeat;background-size:100% 100%}.rotation-controls[data-v-39e8f4a4]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;z-index:3002}.rotate-left[data-v-39e8f4a4],.rotate-right[data-v-39e8f4a4]{width:24px;height:24px;position:absolute;top:50%;transform:translateY(-50%);cursor:pointer}.rotate-left[data-v-39e8f4a4]{left:-3px;background:url(/airport/assets/left_arrow.c4014874.png) no-repeat;background-size:100% 100%;z-index:5000}.rotate-right[data-v-39e8f4a4]{right:-3px;background:url(/airport/assets/right_arrow.8a526dd7.png) no-repeat;background-size:100% 100%}.rotate-left[data-v-39e8f4a4]:hover,.rotate-left[data-v-39e8f4a4]:active{left:-3px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAACklpQ0NQc1JHQiBJRUM2MTk2Ni0yLjEAAEiJnVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkKZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv7+yCW1SNo0eSDpw5ZuAb9qb7Zp3tXBaKg7CQeXBJ9+mfHvjUOihzsPcw83fmX+39QjrSHkr0jq/dawto22gPaG97+iMo50dXh1Hvrf/fu8x42N1xzWPV56gnSg98fnkgpPjp2Snnp1OPz3Umdx590z8mWtdUV29Z0PPnj8XdO5Mt1/3yfPe549d8Lxw9CL3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/stRzjPAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAJcEhZcwAACxMAAAsTAQCanBgAAAEdSURBVEiJtdWxK0VhGAfg5yLLRYhYGLAYDHKZjHexSGQ2Wa3qDkrKH8JgY7BIGZSR0SChpBhkuWIgx3C/6d5c57ud8y2/es953+e833IKSZJodkq7DaUeVJHAZaVpu7bmjxtOERc4RHeahlhgB1OYxHiaho6I4XPYwDPKeErTFLNBBe3YTDs8BujHAh5xEPFRqYFVdGIf33kA5ZDHMcNjgHl84SoPYBDDuBd5PWmBsZC3scPTAn0h7/ICekN+5gVUQ3blBbyEHM0LuAk5nRfwjmuMYCIPAM5CLocs//Viq8BRyHVs4xRDWQLneFC7oi0UMJMlUMRrXa2UFdCGE8zW1TPb4AeLWFP72X+Eej3YMgBv2MMKBrCktlXxv8ZfcIwuNRzwDTEAAAAASUVORK5CYII=) no-repeat;background-size:100% 100%}.rotate-right[data-v-39e8f4a4]:hover,.rotate-right[data-v-39e8f4a4]:active{right:-3px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAACklpQ0NQc1JHQiBJRUM2MTk2Ni0yLjEAAEiJnVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkKZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv7+yCW1SNo0eSDpw5ZuAb9qb7Zp3tXBaKg7CQeXBJ9+mfHvjUOihzsPcw83fmX+39QjrSHkr0jq/dawto22gPaG97+iMo50dXh1Hvrf/fu8x42N1xzWPV56gnSg98fnkgpPjp2Snnp1OPz3Umdx590z8mWtdUV29Z0PPnj8XdO5Mt1/3yfPe549d8Lxw9CL3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/stRzjPAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAJcEhZcwAACxMAAAsTAQCanBgAAAEdSURBVEiJtdW/K4VRGAfwD12DH3eRgZJCMlgUu0HpLgY2A3+IkjIoK6PJLMKidEcTV0bLZWAhQiGluIZ7lKTrXL3nWb6973me99P7LKehUqmoVaPLWrGGXRzg9ft5ab7muMbax+AFBezgDluYQ3vEbBQAxyFbMI0N7MXMxwInv4AFfGQFlH48d6iu7s+q5w8qWEIZvRjLErjBBBaxHt5NZQlAMeR2yPGsga8q4wpDaEsBwGnIwVTAZcjOVMBzyHwqoDnkYyqgP+RDKmAg5EUKIIc+XOM2BTCCJhzGNP8HmAxZrNn1TyCHWbxhMwUwgx7s4z5roBsreMdy7FAsMKy68y6s4igWyEX2neNMdfcLsR+vB3hSvezzIq/Kr/oE3Zs1N+v+bUIAAAAASUVORK5CYII=) no-repeat;background-size:100% 100%}.layer-switcher[data-v-39e8f4a4]{z-index:3000;width:40px;height:40px;background:url(/airport/assets/layer.3b4c7d4a.png) no-repeat;background-size:100% 100%;cursor:pointer}.layer-switcher[data-v-39e8f4a4]:hover,.layer-switcher.active[data-v-39e8f4a4]{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAgqSURBVHgBvVlbb1TXFd6Xc585nvFcPJ4hvoDxBRK3gAOoOAKiRmoilSRvFX2IKlUiD+1b+AmVWrVJX5oXeIv6wEOSRqKhraK0EDCxVDIBF6g9JliA8Y3B4xnPeC5nztm7ax8z5lLPzLFjsawj27PX3vs731p7rbXXYLRJGdj36hDirA8xPMQw78cY+RHi5uooznOO5gjHswixSURpcuLb80m0CcEbUe7vHzaxjx7nHB9/DMbzVrOY8ySm/PR48tKc51lelFxgBj3BETqOtkAwR3/1CrQpwIGXjxznDjqxccaabj2LGT49MXbh80ZatNHgwN7D74EvATikoq0XE6g8Go13mQ/n747WU1qXQdekuvQ+x3wIPQfhnE/iEns3lbqcf3aMrDtBl049L3BCMMZ9XKfvrzf2fyYWZgVej6LnLBCmEuuZ+ymAA/uOHIOT+uvmixFEMMKSJGFFkalh+KjhD0g6/FYUCcMpBVIwmE74EHf1wS7IgwxG4915AHljba/aH/17hxOcS6dg9Xg9UJwzAEYQJgRTeDRVJZrflNRgu6wE2iQBrLI8X7VyD6yVfN6xKhVmOw4XItYQ85sKx3lUst+s+eMag9H27cK06/qd+xawOyEUEUAGrBGf3y/5Q+2yL9Gj6e39uhrZoQf7DwVDvQdNblcYsUsMIwdAiYdjvLZSEyYxUrFM1JqpcY09wHq27hzBGogsS8CaRnW/SfXwNkUJdanEjMhmYsDX0vmiSajkrmeXCk5u8utM5uaX2dLiXKVYyDqVUpnZjHEGjycmi86rgkX6BHt99cARMKeqKsQAc5rhdsVo79WV6A5NCXdpkd2HW/2xbkOYvTaHyKDb3uPTo90qsyuc2GWXTcbEU2OwMZOMEiuzcDfpAgy1d78HNlg3UwhfUwCcLxCWzfYdqhbbqdNgQgn27A+EevYFZc0n1dtE9oeVwM4DAdmMSHb+gYWZxZ2qJVhEiDcGCGewb3H+7kfUrUoQq5tjJTAbHARqxoG1tp26L95vRHYdCRnhhI4J9ZTLtfALWrD3YKCYvl+ycvNV26o+IpI3QqhGEx1JGmnrPFbvcLgAJYo13ZT0aKcSeenHreHe/a1UUSnaoBBJJaGB4VbkcCd751rBESyiZiySSRGg+hopCX8GP2Isv2AbrdHvnZNDLw63uib2IEDzEGEEJ5opcgaxzCqy9MifF1hp2UablGohU71z7k/TXvUxwX3i6MUbKomHqgTpIalqO2z+yw/vr3x3OYs2INy2WO52Mnv77B/urDy4U/FcJ3NkSk3rPPIIJZFR5OW3I1pru5ZNfpYu3btWaHnp9ZDS1mM0ml7OzpXTY//MSL6AtP3YyS5r+aGVPPWrW8hL7sPclJrpuDHVsTgvph0JDgfVTCk8/E68NDtRyN38IqPNd634el9pJXrLU2sxYG1pKpldnv5vMdz3o0BLx26XCAEQoHlKzEJoJN4tQkxd56cQShTIuarup/bygiUDQDnQpkBsU7T4gFHK3K8UJ84vUcWgUkubIubk744tL3zzeZrIOt124O2YYF18nh0fyXx39o/3Lcg0zI2DTXBCXpZAr1AvSAtxCxEiYUcNUm5E5Fzq4tLK1GgudOBnMQqstQ6+HinOjBeWxv+1hKeuLDOlhVjlghPb/1a0Bswu5e2Fq/9IO+W8o/iDEof0hzwIx2yORmNdQ+Bj3fWUoG7BVJaIovpo52u/TAR3HQ1B2cAzVz5JY8S4Eu7U5ZaoYnTsMRlRELgAjf3gtYjsC8isarHsVDKXvnFhsaVr0IztfSNqxHq02SvnFj0xyPB1Gkl0h+HPQ/V0sPsjfleRagSof9uAXwnGNaNj0F+au1XM/+dcRmndpkBpo2jBmKqHEprIMOXMTGlm9OMFSG0scfCtmBHp1MV66RtfLaYn/13wUjAQjr4AgB3gf/hYXS14U/dtHZsVZ24W7ZWMZcR2GpIRkPX2Xh/STJIdO7fo+mcgLtZCi+Bri6nRXNsPfxKK7DoUIpJCKvlFa+LT305Nf/0XwR73dIgddvpRuXXkfLNwIw6LLFOsahrRND/ddvSdWGTPG1ExxqoVlk2NLGUmLueY4seB7ftaogOHWkVVI8ZnRj+dv3PpzINyLlMVL+up3EJoNnX14pur5VasS22Uj1eJ5EgcPceGZMpsXrg3Vlye+iYX6DlgSppf0tt2GC3bh/xQF/oDnbtNTCnOz6QKEx//Zur+lb9lrPKKwzzk38f7oQtQzXzlAgzvfGESVckvPExDq9aGug5K+WphyX547e8ZbpdsPdKtyUaLIqmG5FhFZ/rSmbnxT343XcjMW6Iw8MjamlDKTz6cu1dwAS5OT1thuFGBvQebT+U1vxRsIpfNmVQxezu5LPuCND89Xhj/7Pd3569fzIn7COPeWVvbAVojqauX3I7D40vT8LCJitLZjbQ4Vm9ryK24qbh1wL+ACbLPalm/MVhrMksIf7fWt1mr6wSL0XiHBdse8r7WaiwTYIQZHWfVlHyz0EAwYx9MXB35tvb/U4Xnw/l7N7ybeusFmD+TGhv56MnP1q17BvYchtYHem6tDyGiPzN57dLPn/18/d6MzzkJZppEz0ngUCRF82i9sYaVYx/0afAWNS3riTDr5NjIB/XGG15+IFCOws1qDt4QetB4ixuYPA/H6cNb10ZON9Ly1gJ2+zb0BESSn6ItEMEaLvPT6/UDn5WNNdEfAYUthoDRONqQAGOMnyFlfsYLsE0BfFIGBl8ZgggND+oDUyVWL181N+Dia4gCwTgFpUQS2Why4vrIpr6G+B/jP7NCPGnPlgAAAABJRU5ErkJggg==) no-repeat;background-size:100% 100%;opacity:1}.zoom-in[data-v-39e8f4a4]{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAaaSURBVHgBvVnfT1xFFD5n5u6yC7uU/gACLYKpWXghacHYWEqh1pho2icfDP4B7Ytv+gf45FP7oiZGHkxMTJr4oIn1WZsUNFG3tmkTYVtTayuQFmhkKezeH3M8M3fvdqF3L3tX0tPewO7MnfnmO2e+M3NAaNKGRk6NAqkcKBxVSIOIkAGgrN+KRSJYFIQLAKoAUubnrv2YhyYM43QeHBzLYpucIsKpp2AanmoBifIoafqP/NXFht9qpJMB1irPEcAU7IIhweVGge4IcOjliSny4Fx8xnacegEVTs/duPJ9VC8Z1Th09OT7HEsMDlpg9y3LVE529vRnl5fu/VyvUyiDxqVp6wIhjcJzMCIq4KY6Pz8/W9zeJkJfSFufxwWHEHPH1b6LmKO0vBDW9oyLtVt5pkloeHABQgAKlPwrP+hDRSCIY/xab5i7twAcGpk4y8O+Bw2aBodImEwksSWVtBKJBAqBqBRV4MUDyTbc2TNQZJC3ngE4eHSsl0h8yCtpeLcKpi4hLdHenk3093Zlu/fvbWVIqmzbyvM0ytgAeU04fGDPoW9WVu7bZo7geyR5jtnoaXQc40j2ZDKVxM79HenDLx7a9/qpsa533j7bmUqlhGQmm4CngRjNDT4agIY9hDMQ09jBmkVsTaesnu6uxNkzb6XeOD154M3TE3v8OGzOdELQSuLPAT57ENfQJ5+JQu3qjo69sP7kCTxaXoZMJiNMMwpo1lRKTlUBKsD4ekeq9oMON6py5i8b/o/xwn2A+lQSJ/aqUzM7pDUlkBUeRO9dps6EHmLIO9vHiWKYY3Fo5MSoBZ43ClH9jJRgRd/ITMVqx6wDWhx/kh92sQ+qAkMYbRRCSsmsSlI1u5n0MowpoC1eCDGSOYt/5Oq18xR6SrQSEi0peWdKDZiVj7Q70bIktqVTImlJUZNKMGFZIstxaJftQA8NFg3UcWxyPcWm48IHWG+3s56OWkpgb5TqMwg9mbWvI5tItSQ1SqwiYbCplgRms9mklIZpYEYhk21N9h3szrAYUgCAEZHjuLS2tm6v/rvmlMsOC6WgKBZ5+JzFU4XGX+DadDqFPFnrod6uNtY3y4SdJtBQjCQMY0lhWZZuAWEJ2Nvenn5poE/7l4LA0K71HE8tLS9vOH+6a65TVI7rQKQRZK165zx/ZVrnpGA3WuPHX207OX48UyqVK5sk0GEy8an/rT5+DNqtx14ZyfBT9R09HRQ4MOGHK7MPP7r4yQOzSXQsQj0KSQOMXAHYdlk9XH682d3dRYXbd8B1verrhkThu5U3BO83zzx3/7pnwouM/FDQld3s8fsujBwdzpLXWJ6RB3oGtN7UOZCyjzh2Nsu2un3n7sbhgX4S0iorT5U81ytxui3xNGVpJdyuzk4t0JLjDNoy2Y21YnGdwZaURyX9k/tuukSbpHDj48+++OfB4pLjcxABlLCIuSMTl6N0MIhFzRKfpsAkuIqoMWsi29ZqvdB3sPW18WP7Tk2Od6ysrsLMT789+Orrb1fY3ZUTgzAhw3pjdrJSriE2iM+6+IAKFu+jeY7kugB9vdJEeoBugNpXFZYf5bpJ5bkOBScsPbHH/rP5RGM7vFOV8lNeiKTs6GSFC0wLNnxfpeAJApvn9HxBe+or04H3uSLDUm3/7YB2Soa8rAJT4RWgCfOZDWRYp7kKIt7cjWbhnRlUeTF3bSavKwEQ0ypSY7hTfqRVXWzSWfzT9HZbmLs5k/fPHYouQRNm8hU/nucql7erD5RqmI3OtVEXLR7ChJ4BSBmvKYCaLNt2aG39ifvo4YqtAWuddDnFeQ3oXFhcBsbnjOkqwPnZ2SJ3jAUySF8MSHEGcX69fnONL032QH+fd3X2l6KWkp3GiGDvclAWqfYZHOMj9ob1XTMlDiktc+zSasIiTvzfyNKO4FCEhcECn97OBwCrt7qV+/ftzp4+vknhcYhr/o4mz4DzqjEYCbB6WN3al++sF+d+n7kWfN5yL15e+vvWfr488+qGIS7GyIgKf2N7f6b90vyNmS9rvwsNg6EjJ7n0Ac+lLhOYrs8Url99d/v34bWZNu8DnQfhOZmWFF08CmuLFP0c12lwl4qW9Uy7tXBj5mK99sj64AoXcjp7+xZ5hVyDxl0uYFKRt9ant6/PTEf1aqwEbOo2ujQSv/oQZpo1LNF0WD1wu8UroleA8hR8l8ZYd2nDGKdUUaJLjQBrCmCtDQ2f4Pu00HfqHLuq1798BWFA+s8Q6yzd8yzdeXChoBM/NGH/Ae4TRYnFVTpiAAAAAElFTkSuQmCC) no-repeat;background-size:100% 100%;z-index:3000;width:40px;height:40px;cursor:pointer}.zoom-in[data-v-39e8f4a4]:hover,.zoom-in.active[data-v-39e8f4a4]{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAYdSURBVHgBvVnNbxtFFH9vZtdrO3bS1EnaWI34Eo6lkqptQFBa+iHEDSQQXMIf0F64wR/AGbUXxIVw4lSJQw9tT1xANFUlkEsLlRq7SBQinH6lbepQx+vdeX2zazub1HZ2t1F/ipV4Z3bmN+/N+82bF4SYKO4/Ng2kCqBwWiFNIkIGgLJ+K9aIYFEQVgFUBaQszV/+qQQxgFE6T04ezOKAnCHCmTUyoaeqIlEJJc1eL11YDP1WmE4esbQ8TgAzsAVAgnNhiW5KsPj6kRly4Xh0i206dRUVzs5f/fl8v16yX2Nx3+HPeS8xObBg65FlUx4dHX8he+/WP5d6depqQc+lKeMkIU3DcwARVbCuTpTLF2sb20TXF1LGt1HJIUSMuOC7iAVKyZPd2p5ysXYrz3QUQg8uQAhAgZL/5A/6VBEIooBfy3dz9zqCxf1HPuBhP4OQ0OQQCU0zgQnLktI0heCZ2GUtetFIMqZGx1+sMclrTxGc3HcwTyS+5PFDR6tg05nSEKnsNiO78+VkOjduouug22yQUopZRibIa8KpkaFdZ5aWFmxvjvZzJHmcrTEedhzPkexJI5HA9PAOMzuxOz0y9d72/IGPclbSQsmmjEFPE/E0t/3VI+hZD+F9iAh2MLAB0bDS0hoaM8f2vDsy/ubHO0d3H93m78N40AeCVhJ/DvCtB1GBvvH1nmNPg0ykO9tFJjPoNaOAuFBJOdMhqACj6x0pn6d2NOjtpjZ4NK79fPDCfYI6K4my9zpTs3UIdQzDOsLtDohd3ok0CWWL+w9NG+C609DHE76UYEvfyJuK1Y6tzgHComII/2UKEGRlRI5wIaVk/pJtu2ZcT4I8KNgUJAsG/yr0aucpPGMYUqI0paajFVnbjbRrDUNiMpkSppQiKCmmIUUmkxH2qq0XorMXpuMRA8exleMoUAo2JclKNW0ogfl+qs8kRHIgI1KZYUOYWj4ktszEIirQtBLCSA+JYECY6YyRGdllua6/L7Vsuy6BcprKfrzs1msP3YbdZHaiL0k2RsHg2bruv7ZrZSKJ6e27ElZuwpJWSrReXNfTkaYwAwQplTPk2KtJqfwt0SJJym2SfHCn6To3Vh1nWTWdJvQFQdbolef5K9MSIlGwG4deeWNwx55jOQiBkdeO5fSnV3v1t7O3K+e//k8boa+bOVDEJisAl93SWL7rpAaHDdgibHtp7yCxyyFEoBj6gtPLihx9ZDdWlXhwx/77x++q+bc+tKU10BFkbwtw0AgzKYzBsURyOJ/Uz+u3//q/8eiurQMhmDDoaNYBc/PCD3ccpTY/qQlrBvda6ZUgaPPrSer1urIXyvWH1a8WvAOutQVZRkQmPSDTubw1UHhnMH/gk536+f3rv9xfuHTmvt2wWxmD70qt5ZqWUg6FySMI1aLBcVRmzegp1N7AWiaUC+i0HuoA4l+GKZXtJITpOBQ0iMMha9u2sptNxQ3+kddyZ6QEQmFVa2ro+yq1P56q6QHWBJqUE1yVtpZnpWD/qNkNL6vCpnArEAO+ZX2ZQ59NYP5nO4c7UKok5i/PlfxAiQb/PPazZ9c/vgIDE1D0bHojqvN/zpV84VV0GmKAs2b/hHAdfUzQGr9Wwh/mvO0BHsLbeh5ByrixCOot5jhNsusrrl1bstvPXRY5TfxZwHnGbIdg+eLFGg8XiaS/+dm9jqtWVx45yzf/qDdWlmy38di9N/9rTQUsGhU87Ll2WaSzmycPcor92Dgbp8QhpYE6odF3FMUJAv94shQTVSHoRJtg51RYWliwR8cn2E34NkRFS4Rdj5wLoVS4B1CpU/O/z11uf193L753699rOb48s1mnICIoltJtGEOp0+Wrc98Hn3UVrOLew1z6gOdSl2lD12cqVy58uvF599rMgPsFWySWgMeBlhRdPOrW1lfyC1ynwS0qWvaCdmvl6typXu1964NLXMgZzU8s8gq5Bo1bXMCkGofWNzeuzM326xWuBOzVbXRpJHr1oRu01XCVZrvVAzciWhG9RZSn4Ls0RrpLexbjI1Ws0ukwxGIRDKI4dYjv00LfqQvsqrx/+WpvA9L/hljhZLvMJ3MJHKjogx9i4AlyrehUszxtEAAAAABJRU5ErkJggg==) no-repeat;background-size:100% 100%}.zoom-out[data-v-39e8f4a4]{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAASxSURBVHgBzVnNb1tFEJ95u/lwUreqUABbqoADji+V2poDENSkJ4QKEoILQeKaXrjBn9HeuNQ3DigSFQKR9gASH1IccXJoRCVic6JFTgoORThfjb07zOzze4mN37MTpY5/h/e8u7O7vzezM7s7Rjgispeu5IBsBizmLNIkIpwCoKTfijUiWPMIKwC2DEoVV5d/KMIRgIcRnpycSuK4miXC2X0yPU9VQaIiKsr/Wlxc67lXL0KO2JiaI4BZOAYgwUKvRLsSzL40PUsG5g6vsa5TV9BifnXlx9txUiquMXvx8ke8lpgcjMDxI8mqnJlIPZesrv/+U5RQRw06kyb0dULKQR9ARGXcsddKpaVae5vXsUNC3+wXOQEiZiihrndq+5+Jxays1xnoMzhMpTuZu4Vg9tL0W+ypH8LJ4fxE6vkak7wXVIQmnrw4lbbWOcSJQpxSfCAohwSR1BwipeCkgeRibliUh2iPrf01DBK2zRXxaqdB0R4MGOyocruWI2gB+xZSeoWH6AiinEqIzM1uHWQtUFs5AMGTAaK9psGYXOdwHQh5ISEEDt+8IDiwooR/4jIeJCyyZMEdB/zO7kmuTmT8enkEdbEgldH8ysSRE1KeUqh4MlQeq16h5dMDt0kNT9bUHwk/x1t+Y6vKhYwnpLDeMCSxhMvUjaS1lNPWwzRGGEkUpT2FicSIGh8f00NaCy0MpbHV9KHZmShYn3rwEcTlhjF2e2e3sb2zY+p105UkT5bRPFQqUns8+vDIkJd+ZiKRTj2dHB0dUqIJ33LkFOVrb9+iQR2GEtg0KRNkVn9W/96+/8fDzZrZarA2IRYESR11zpMv81DD8PCwd/bs6eHMiy8krr7x+tjoyMihTuEBRE+iRWMa5rPPv3p468s7VVFCrJk5aOvYQUkGNPbfza29qVde1o8e/TO0ubXV4sFicXGWg6vEr3NfyQpEcSfXhYeCvXpdf/Deu8/e+uJ21clCfBTQcsGJ1CIz3H382FbWqzvffr+48c7bV73TZ86oYNB2VR5ci1GTaqXozjff/dWwtqVPRxDWMHNheiFuD/Y8BVqzFyvPk98uxETKiuc1f7vx3dLzV6z4iW1wuyVeipas6UqQu5Q1+1GJB4okaHmgep1DuUFDtBfGRXna8E3iOr58c2gp2yazQKWBs/QUA91gWNHsCXxfpZk4ORnQhA7nDx4U298QUT4K+OPL/KGmDIMKa4ve6nKh6DvKwKGy+kuh6B+3LM3DgIGXqkuVOIJ0ygwcQY5GeXk7gqWlpRp72MCQZO0tBGmR/TvJmMkPyFqsBNoThNfOjQcP9iZS5/aY5KtwgkBrb6z+XFgOyi334ur6/XtP8eWZ4+p5OAHwVjNfWil8erCu47aVvXCZUx/Q13uK5GfKdxffb6/vnJsZNx/LPgh9goQUSR51aos922U4T4PHlLSMgpi1vFK4EdUemx/c4ETORPrcGn8h56DxmBOYVONDxie/3S3k46R6SwFz5oFcagTehGOAaA13Kd8pH9iOwyXRm0R5ihxr9JB5HNYYb6neLs33QuxIBA8ie/41vk97cqfOsKnS/uUrWAYkf0Ns8g2wxEeSIjSgLBs/HAH/AcXLKUoQCANvAAAAAElFTkSuQmCC) no-repeat;background-size:100% 100%;z-index:3000;width:40px;height:40px;cursor:pointer}.zoom-out[data-v-39e8f4a4]:hover,.zoom-out.active[data-v-39e8f4a4]{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAASLSURBVHgBzVnPbxtFFH5vZp0fTiyBgg9OKUUcHEsQqa05UdSkd/gDAvf0wg3+jPbGpblxyo1Dwx1EHVWocmhEBbG5QCo5UZQoSG6axJuZx3uzXttx12vHcm1/B+/Oj5355pt5b2aeEfpE7va9PJDNgsW8RVpAhFkASgWlWCWCPUVYAbBl0Lq4s/VzEfoAXqXywsKdFM7oFSJcaZLpuasKEhVR09pfxSd7PX/VSyVHLKlXCWAFBgAk2OiVaFeCuU+XVsjA6tUV69p1BS2u7Wz/8lNcLR1XmLt191teS0wOJmHwSLGUy+nMjdTh/r9PO1WKVNBN6bT3gJDyMAQQURlP7f1SabPaXqYiP5j2Hg2LnAARszStH0SVvTHFMq2s6zIMGeym5qOm+xLB3O2lL9lSv4HRYTGd+bDKJF+EGY0pXrh1Z95aZxAjhRil2ECYbhBE0quIlIFRA8n53EZSfkQ9nu3HME54be6JVTsFRT0YM9gp7XYtR9ACDs2l9AqF6AiinEqIzKNuH8haoLZ0CIK3A0R73wNj8tHuOqykGoQQ2H3zgmDHiuL+idPYSljqkgV3HAg+dr/k8qROkC8/YV4sSGc9fmTjyAkppTVq7gy1Yuk1Wj49cJnkcGd1/Uj4Od7yjpclFzJKSKF/YUh8CaepG0lrKe9ZhfPYYZJEKI/JJSan1VRyVmsvgUo419tlQk5F5RqDy26f2juzZI2l2tmJOX99an1z0ZUkt5/1eKCZaHJKZgi9RELNzmUmkukPJtVEUolKqkUXgMDS2t+5GlhqOlrmB+bi3J4f7/tw8M+ZPXllWE2IBUHK63TOk5Ep9MBLTEAi+Y6eeO+jqfQnS+/qhKeC8nAgYVvBT2NR1ueYmp25pDU+7T/98WD32caRiBA7zey0PYiBJRm1gdrJsXn/xsezyblr0zAAXFv6OrP72+OjXup6csHpqCIz9P1zc/rfgX/456/HE6m5hJqcaVlpIkuv15rQmAgqzzYOLmTRdrNkwipmby5txO3BSmnwPLZdpflVi3k2LTTKOVLzHQN7dSOw4pbY+sVYfN+IxXT1n/x52WM7KhFCR4KWG/J9blpZQ7Vawy82jME9CVRdSVtvumHsIUUK/R/15gNdY1jx2BL4vkrLcfWkQdMwuKDxMNn+hA7pfsCDL/NATRnGFdYW1c5WoRgYytihsvNHoRgctyytw5iBl6oLlQROd9aMHUHNkQd5OoKlzc0qW9jYkGT1NsKwSPNOkjRrY7IWK6F6gsaucPTyZS2duV5jkp/BCIHWPtz5vbAVpi/diw/3d1/M8eWZ/eoijABk7Xppu/BDa17kRpq7eZdDHzDUe4rEZ8rPn3zVnh8dm5kx38k+CEOCuBQJHkWVxR5FshynwQEFLTtBprW8XXjYqTw2PnjEgZz0/PU9HiHHoHHAAUyq8iHj+7+fF9biavUWAubIA7nQCHwBA4Cohme0FhUPbMfVguh1otxFnhW9YhyHFeMtVZ3Rei/E+iLYitzi53yfVnKnzvJUzQeXr3AZkPwN8YovpiU+khThAsqy8UMf+B9ymBOEqiwGgAAAAABJRU5ErkJggg==) no-repeat;background-size:100% 100%}@media (max-width: 768px){.zoom-in[data-v-39e8f4a4],.zoom-out[data-v-39e8f4a4],.compass-container[data-v-39e8f4a4],.compass-bg[data-v-39e8f4a4],.compass-needle[data-v-39e8f4a4]{width:28px;height:28px}.zoom-in[data-v-39e8f4a4],.zoom-out[data-v-39e8f4a4]{background-size:80%;background-position:center center;background-repeat:no-repeat}.rotate-left[data-v-39e8f4a4],.rotate-right[data-v-39e8f4a4]{width:18px;height:18px}.rotate-left[data-v-39e8f4a4]{left:-18px}.rotate-right[data-v-39e8f4a4]{right:-18px}}.map-info[data-v-c7543916]{position:absolute;bottom:10px;right:25px;z-index:3000;display:flex;flex-direction:column;gap:1px;pointer-events:none;padding:5px;border-radius:4px;background-color:#fff9}.map-info input[data-v-c7543916]{padding:4px;background:rgba(255,255,255,.8);border:1px solid #ddd;border-radius:4px;font-size:12px;color:#333;width:350px;margin-bottom:2px;pointer-events:none}@media (max-width: 768px){.map-info[data-v-c7543916]{bottom:10px;right:10px}.map-info input[data-v-c7543916]{width:250px;font-size:11px}}.scale-control[data-v-40bee71a]{position:absolute;left:30px;bottom:190px;z-index:1200;pointer-events:none}.scale-bar[data-v-40bee71a]{display:flex;flex-direction:column;align-items:center;background-color:#ffffffb3;padding:3px 6px;border-radius:4px;box-shadow:0 1px 4px #0003}.scale-line[data-v-40bee71a]{height:3px;background-color:#27313f;margin-bottom:1px}.scale-ticks[data-v-40bee71a]{position:relative;height:0}.tick[data-v-40bee71a]{position:absolute;width:2px;height:8px;background-color:#27313f;bottom:-3px}.tick.left[data-v-40bee71a]{left:0}.tick.right[data-v-40bee71a]{right:0}.scale-text[data-v-40bee71a]{font-size:12px;color:#27313f;font-weight:400;margin-top:4px;white-space:nowrap;font-family:Arial,sans-serif}.route-draw-control[data-v-6d6fb11e]{position:relative}.draw-tools[data-v-6d6fb11e]{position:absolute;top:20px;left:20px;z-index:3000;background-color:#fff;border-radius:4px;box-shadow:0 2px 8px #0003;padding:10px;display:flex;flex-direction:column;gap:8px;min-width:120px;border:2px solid #0096ff}.tool-button[data-v-6d6fb11e]{padding:8px 12px;background-color:#f5f5f5;border:1px solid #ddd;border-radius:4px;cursor:pointer;font-size:14px;text-align:center;transition:all .2s;font-weight:700;color:#333}.tool-button[data-v-6d6fb11e]:hover{background-color:#e0e0e0;transform:scale(1.05)}.tool-button.active[data-v-6d6fb11e]{background-color:#0096ff;color:#fff;border-color:#0078cc}.polygon-panel[data-v-6d6fb11e],.route-lines-panel[data-v-6d6fb11e]{position:absolute;top:20px;right:20px;width:300px;max-height:80vh;background-color:#fff;border-radius:4px;box-shadow:0 2px 8px #0003;z-index:3000;display:flex;flex-direction:column;overflow:hidden}.route-lines-panel[data-v-6d6fb11e]{right:340px}.panel-header[data-v-6d6fb11e]{padding:12px 15px;background-color:#f5f5f5;border-bottom:1px solid #ddd;font-weight:700;display:flex;justify-content:space-between;align-items:center}.close-btn[data-v-6d6fb11e]{cursor:pointer;font-size:20px;color:#666}.close-btn[data-v-6d6fb11e]:hover{color:#333}.panel-content[data-v-6d6fb11e]{padding:15px;overflow-y:auto;max-height:calc(80vh - 50px)}.info-item[data-v-6d6fb11e]{margin-bottom:15px;border:1px solid #eee;border-radius:4px;overflow:hidden}.info-header[data-v-6d6fb11e]{padding:8px 12px;background-color:#f9f9f9;border-bottom:1px solid #eee;font-weight:700}.info-content[data-v-6d6fb11e]{padding:12px}.info-content p[data-v-6d6fb11e]{margin:5px 0;font-size:14px}.focus-btn[data-v-6d6fb11e]{margin-top:8px;padding:5px 10px;background-color:#0096ff;color:#fff;border:none;border-radius:4px;cursor:pointer}.focus-btn[data-v-6d6fb11e]:hover{background-color:#0078cc}.no-data[data-v-6d6fb11e]{text-align:center;color:#999;padding:20px 0}.import-dialog[data-v-6d6fb11e]{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:5000}.dialog-content[data-v-6d6fb11e]{width:500px;background-color:#fff;border-radius:4px;overflow:hidden;box-shadow:0 2px 10px #0000004d}.dialog-header[data-v-6d6fb11e]{padding:15px;background-color:#f5f5f5;border-bottom:1px solid #ddd;display:flex;justify-content:space-between;align-items:center}.dialog-header h3[data-v-6d6fb11e]{margin:0;font-size:18px}.dialog-body[data-v-6d6fb11e]{padding:20px}.dialog-body textarea[data-v-6d6fb11e]{width:100%;height:200px;padding:10px;border:1px solid #ddd;border-radius:4px;resize:none;font-family:monospace;margin-bottom:15px}.file-upload[data-v-6d6fb11e]{margin-top:10px}.file-upload label[data-v-6d6fb11e]{display:inline-block;padding:8px 12px;background-color:#f5f5f5;border:1px solid #ddd;border-radius:4px;cursor:pointer}.file-upload input[data-v-6d6fb11e]{display:none}.dialog-footer[data-v-6d6fb11e]{padding:15px;background-color:#f5f5f5;border-top:1px solid #ddd;display:flex;justify-content:flex-end;gap:10px}.dialog-footer button[data-v-6d6fb11e]{padding:8px 15px;border:1px solid #ddd;border-radius:4px;background-color:#f5f5f5;cursor:pointer}.dialog-footer button.primary-btn[data-v-6d6fb11e]{background-color:#0096ff;color:#fff;border-color:#0078cc}.dialog-footer button.primary-btn[data-v-6d6fb11e]:hover{background-color:#0078cc}.map-container[data-v-853f4944]{width:100%;height:100%;position:relative;overflow:hidden;display:flex;flex-direction:column;background-color:#eeece1}.map-content-wrapper[data-v-853f4944]{width:100%;height:100%;position:relative;overflow:hidden;flex:1;background-color:#eeece1}#map[data-v-853f4944]{width:100%;height:100%;background-color:#eeece1;z-index:1;overflow:hidden;touch-action:none}[data-v-853f4944] .ol-viewport{background-color:#eeece1!important}[data-v-853f4944] .ol-control:not(.custom-overview){display:none!important}[data-v-853f4944] .ol-attribution{display:none!important}[data-v-853f4944] .custom-overview{position:absolute;bottom:20px;left:20px;background-color:#ffffffb3;border-radius:4px;padding:2px;border:1px solid #ccc;display:block!important;z-index:1000}[data-v-853f4944] .custom-overview .ol-overviewmap-map{width:160px!important;height:160px!important}[data-v-853f4944] .custom-overview button{display:none}[data-v-853f4944] .custom-overview .ol-overviewmap-box{border:2px solid #1869BD}[data-v-853f4944] .custom-scale-line{position:absolute;left:30px;bottom:190px;background:rgba(255,255,255,.8);border-radius:2px;padding:2px 8px;font-size:12px;color:#27313f;z-index:1200;font-family:Arial,sans-serif}.save-view-btn[data-v-853f4944]{position:absolute;top:20px;right:20px;background-color:#fffc;border:1px solid #ccc;border-radius:4px;padding:8px 12px;font-size:14px;color:#333;cursor:pointer;z-index:3000;box-shadow:0 2px 4px #0000001a;transition:all .3s ease}.save-view-btn[data-v-853f4944]:hover{background-color:#fff;box-shadow:0 4px 8px #00000026}@media (max-width: 768px){.save-view-btn[data-v-853f4944]{padding:6px 10px;font-size:12px;top:10px;right:10px}}.print-view-btn[data-v-853f4944]{position:absolute;top:20px;right:140px;background-color:#fffc;border:1px solid #ccc;border-radius:4px;padding:8px 12px;font-size:14px;color:#333;cursor:pointer;z-index:3000;box-shadow:0 2px 4px #0000001a;transition:all .3s ease}.print-view-btn[data-v-853f4944]:hover{background-color:#fff;box-shadow:0 4px 8px #00000026}@media (max-width: 768px){.print-view-btn[data-v-853f4944]{padding:6px 10px;font-size:12px;top:10px;right:120px}}.car-alarm-container[data-v-f04383d5]{position:absolute;left:20px;top:5%;display:flex;align-items:center;gap:24px;z-index:1000}.car-item[data-v-f04383d5]{display:flex;align-items:center;gap:8px}.car-icon[data-v-f04383d5]{width:60px;height:auto;border-radius:50%;object-fit:cover}.car-text[data-v-f04383d5]{display:flex;text-align:left;flex-direction:column;gap:5px 0;color:#4e718f}.car-count[data-v-f04383d5]{display:inline-flex;align-items:flex-end;font-size:18px;font-weight:700;line-height:1}.unit[data-v-f04383d5]{font-size:14px;font-weight:400;margin-left:2px;line-height:1;vertical-align:baseline}.online .car-count[data-v-f04383d5]{color:#4794ff}.car-label[data-v-f04383d5]{font-size:14px;color:#4e718f;margin-top:2px}.split-line[data-v-f04383d5]{width:1px;height:30px;background-color:#ddd;margin:0 15px}@media (max-width: 768px){.car-alarm-container[data-v-f04383d5]{flex-direction:column;padding:10px;left:10px;top:120px}.car-item[data-v-f04383d5]{margin-bottom:8px}.split-line[data-v-f04383d5]{width:80%;height:1px;margin:8px 0}}.car-detail-container[data-v-daf5595e]{width:391px;height:85vh;overflow-y:hidden;background:#4F565F;border-radius:8px;color:#fff;font-size:14px;box-shadow:0 4px 12px #00000040;position:absolute;right:0px;top:0;z-index:10}.header-actions[data-v-daf5595e]{padding:16px}.custom-back-btn[data-v-daf5595e]{margin:10px;background-color:#424851!important;border-color:#303236!important;color:#fff!important;padding:5px;line-height:1.5;font-size:12px}.custom-back-btn[data-v-daf5595e]:hover{background-color:#347ae24d!important}.back-icon[data-v-daf5595e]{margin-right:4px}.header[data-v-daf5595e]{display:flex;align-items:center;font-size:16px;line-height:1.8;font-weight:700;background:url(/airport/assets/subheading.16bbfdee.png) no-repeat;background-size:100% 100%;padding:5px 10px;color:#fff}.header img[data-v-daf5595e]{width:31px;height:15px;margin-right:5px}.back-btn[data-v-daf5595e]{color:#fff;background:#424851;cursor:pointer;font-size:13px;padding:5px 10px;border-radius:4px}.header-title[data-v-daf5595e]{font-size:18px;font-weight:700}.section[data-v-daf5595e]{width:95%;margin:0 auto 16px;background:#424851;border-radius:6px;padding:14px 16px 10px}.base-info .car-id[data-v-daf5595e]{display:flex;align-items:center;justify-content:space-between;font-size:16px;font-weight:700;margin-bottom:8px}.info-row[data-v-daf5595e]{display:flex;justify-content:space-between;margin-bottom:6px}.info-row1[data-v-daf5595e]{display:flex;justify-content:space-between;margin-bottom:6px;border:1px solid #222b36;background:#3B4047;border-left:4px solid #303236;padding:5px 10px}.info-row1 p[data-v-daf5595e]{margin:0!important}.battery-left[data-v-daf5595e]{display:flex;align-items:center;justify-content:flex-start;gap:10px}.battery-content[data-v-daf5595e]{color:#fff}.section-title[data-v-daf5595e]{font-size:15px;font-weight:700;margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.status-normal[data-v-daf5595e]{background:#1fcb81;color:#fff;border-radius:3px;font-size:12px;padding:2px 8px;margin-left:10px}.battery-temp[data-v-daf5595e]{font-weight:700;margin-left:8px}.temp-normal[data-v-daf5595e]{color:#1fcb81}.temp-warning[data-v-daf5595e]{color:#fdb92c}.temp-danger[data-v-daf5595e]{color:#ff312f}.video-info[data-v-daf5595e]{padding-bottom:10px}.video-tabs[data-v-daf5595e]{margin-left:18px}.tab[data-v-daf5595e]{display:inline-block;padding:2px 10px;border-radius:3px;background:#222b36;color:#8ec6ff;margin-left:6px;font-size:13px;cursor:pointer}.tab.active[data-v-daf5595e]{background:#5690E7;color:#fff}.video-preview[data-v-daf5595e]{width:100%;height:200px;aspect-ratio:4/3;object-fit:cover;text-align:center;border:1px solid #222b36}.video-preview img[data-v-daf5595e]{width:95%;border-radius:6px;background:#222b36}.track-info[data-v-daf5595e]{padding-bottom:0}.track-search[data-v-daf5595e]{display:flex;align-items:center;margin-bottom:8px}.track-search input[data-v-daf5595e]{background:#222b36;border:none;border-radius:4px;padding:5px 30px 5px 10px;color:#fff;width:100%;font-size:13px;outline:none}.search-icon[data-v-daf5595e]{width:16px;height:16px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238EC6FF'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:contain;margin-left:-26px}.track-list[data-v-daf5595e]{height:70vh;overflow-y:auto}.track-item[data-v-daf5595e]{border-radius:4px;padding:7px 10px;margin-bottom:7px;font-size:13px;display:flex;position:relative}.track-timeline[data-v-daf5595e]{width:20px;position:relative;display:flex;flex-direction:column;align-items:center;margin-right:10px}.timeline-dot[data-v-daf5595e]{width:12px;height:12px;border-radius:50%;background-color:#fff;z-index:2}.timeline-dot.active[data-v-daf5595e]{width:14px;height:14px;background-color:#6db8ff;box-shadow:0 0 8px 2px #1a6dff99}.timeline-line[data-v-daf5595e]{position:absolute;top:16px;left:50%;transform:translate(-50%);width:2px;height:calc(100% - 10px);background:linear-gradient(to bottom,#536C8F 50%,transparent 50%);background-size:2px 8px;z-index:1}.track-content[data-v-daf5595e]{flex:1}.track-time[data-v-daf5595e]{color:#f0f0f0;font-size:12px}.track-desc[data-v-daf5595e]{margin:2px 0;color:#c3c3c3}.track-detail[data-v-daf5595e]{color:#b0b8c5;font-size:12px;display:flex;gap:16px}.filter-dropdown[data-v-6aa232ba]{position:relative;display:flex;align-items:center;background:rgba(19,26,36,.5);border-radius:4px;padding:5px 10px;cursor:pointer;font-size:12px;color:#fff}.selected-filter[data-v-6aa232ba]{display:flex;align-items:center;justify-content:space-between;width:100%}.arrow-down[data-v-6aa232ba]{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #fff;margin-left:5px}.dropdown-menu[data-v-6aa232ba]{position:absolute;top:100%;left:0;background:#3B4047;border-radius:4px;width:100%;z-index:10;margin-top:2px}.menu-item[data-v-6aa232ba]{padding:8px 10px;font-size:13px;white-space:nowrap}.menu-item[data-v-6aa232ba]:hover{background:#464C55}.event-list-container[data-v-aebeef26]{background:#4F565F;position:absolute;right:20px;top:50%;transform:translateY(-50%);width:391px;height:80vh;display:flex;flex-direction:column;border-radius:6px;overflow:hidden;z-index:1;color:#fff}.header-title[data-v-aebeef26]{display:flex;align-items:center;font-size:16px;line-height:1.8;font-weight:700;background:url(/airport/assets/subheading.16bbfdee.png) no-repeat;background-size:100% 100%;padding:5px 10px;color:#fff}.header-title img[data-v-aebeef26]{width:31px;height:15px;margin-right:5px}.header-actions[data-v-aebeef26]{display:flex;justify-content:space-between;align-items:center;padding:0 16px;margin:10px 0;gap:10px}.search-box[data-v-aebeef26]{position:relative;display:flex;align-items:center;flex:1}.search-box input[data-v-aebeef26]{background:rgba(19,26,36,.5);border:none;border-radius:4px;padding:6px 30px 6px 10px;color:#fff;width:100%;font-size:13px;outline:none}.search-box input[data-v-aebeef26]::placeholder{color:#ffffff80}.search-icon[data-v-aebeef26]{position:absolute;right:10px;width:16px;height:16px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:contain;cursor:pointer}.clear-icon[data-v-aebeef26]{position:absolute;right:10px;width:16px;height:16px;display:flex;align-items:center;justify-content:center;color:#ffffffb3;font-size:18px;font-weight:700;cursor:pointer;transition:color .2s}.clear-icon[data-v-aebeef26]:hover{color:#fff}.event-list-content[data-v-aebeef26]{flex:1;overflow-y:auto;padding:0 16px 16px;display:flex;flex-direction:column;justify-content:flex-start;gap:15px}.car-item[data-v-aebeef26]{padding:10px;background-color:#424851;border-radius:6px}.car-item[data-v-aebeef26]:hover{background-color:#373c43}.car-main-info[data-v-aebeef26]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.car-id[data-v-aebeef26]{font-size:15px;font-weight:700;color:#fff}.car-actions[data-v-aebeef26]{display:flex;gap:8px}.status-btn[data-v-aebeef26]{padding:3px 6px;border-radius:2px;font-size:11px;color:#fff}.status-btn.task[data-v-aebeef26]{background-color:#5690e7}.status-btn.idle[data-v-aebeef26]{background-color:#bdbdbd}.status-btn.repair[data-v-aebeef26]{background-color:#e8d254;color:#333}.car-details[data-v-aebeef26]{font-size:13px;color:#fffc}.detail-row[data-v-aebeef26]{display:flex;justify-content:space-between;margin-bottom:5px}.detail-item[data-v-aebeef26]{display:flex}.detail-label[data-v-aebeef26]{color:#fff9;margin-right:5px}.car-owner[data-v-aebeef26]{display:flex;align-items:center;margin-top:10px;color:#fff9;font-size:12px}.owner-icon[data-v-aebeef26]{width:14px;height:14px;margin-right:5px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:contain;opacity:.6}.online-status[data-v-aebeef26]{padding:3px 6px;border-radius:2px;font-size:11px;color:#fff}.online-status.online[data-v-aebeef26]{background-color:#5690e7}.online-status.offline[data-v-aebeef26]{background-color:#bdbdbd}.online-status.fault[data-v-aebeef26]{background-color:#b51318}.event-list-pagination[data-v-aebeef26]{display:flex;justify-content:flex-end;padding:10px 16px;gap:5px}.page-btn[data-v-aebeef26]{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;cursor:pointer;font-size:12px;background-color:#244c7840}.page-btn.active[data-v-aebeef26]{background-color:#244c7880;color:#fff}.page-btn[data-v-aebeef26]:hover:not(.active){background-color:#244c7880}.event-list-content[data-v-aebeef26]::-webkit-scrollbar{width:5px}.event-list-content[data-v-aebeef26]::-webkit-scrollbar-track{background:rgba(19,26,36,.5)}.event-list-content[data-v-aebeef26]::-webkit-scrollbar-thumb{background:rgba(78,113,143,.5);border-radius:3px}.event-list-content[data-v-aebeef26]::-webkit-scrollbar-thumb:hover{background:rgba(78,113,143,.8)}@media (max-width: 768px){.event-list-container[data-v-aebeef26]{width:280px;right:10px}.header-actions[data-v-aebeef26]{flex-direction:column;align-items:stretch;gap:8px}.search-box input[data-v-aebeef26]{width:100%}}.platform-overview[data-v-2b86b8c7]{width:100%;height:calc(100vh - 60px);position:relative;display:flex;flex-direction:column;overflow:hidden;z-index:1}.alarm-stats-card[data-v-2b86b8c7]{position:absolute;top:23%;left:28px;width:246px;height:147px;border-radius:9px;box-shadow:0 10px 15px #02020240;color:#fff;z-index:1000;backdrop-filter:blur(5px);border:.5px solid rgba(222,213,213,.53);overflow:hidden}.stats-header[data-v-2b86b8c7]{display:flex;justify-content:space-between;align-items:center;padding:4px 10px;background-color:#343744;border-bottom:.5px solid rgba(222,213,213,.53)}.stats-title[data-v-2b86b8c7]{font-size:16px;font-weight:700;color:#fff}.stats-time[data-v-2b86b8c7]{font-size:12px;color:#ffffffa6;font-family:PingFang SC,monospace}.stats-content[data-v-2b86b8c7]{width:246px;height:116px;display:grid;grid-template-columns:1fr 1fr;gap:1px;background-color:#424851;padding:1px}.stats-item[data-v-2b86b8c7]{position:relative;padding:8px 10px;display:flex;flex-direction:row;align-items:center;width:123px;height:58px;transition:all .3s ease}.stats-item.has-new[data-v-2b86b8c7]{background:linear-gradient(135deg,rgb(240,97,97),rgba(237,180,180,.48));animation:pulse-2b86b8c7 1.5s infinite}.stats-item.has-new .stats-count[data-v-2b86b8c7]{color:#cc0e0e}.stats-icon[data-v-2b86b8c7]{margin-right:10px;width:39px;height:39px;object-fit:contain}.stats-text[data-v-2b86b8c7]{display:flex;flex-direction:column;width:56px;height:37px;justify-content:center}.stats-count[data-v-2b86b8c7]{font-size:16px;font-weight:700;width:20px;height:20px;color:#fff}.stats-label[data-v-2b86b8c7]{font-size:14px;font-weight:700;color:#fff;margin-top:2px;width:56px;height:20px}.new-badge[data-v-2b86b8c7]{position:absolute;top:8px;right:8px;width:6px;height:6px;background-color:#ff4d4f;border-radius:50%;box-shadow:0 0 5px #ff4d4f80}@keyframes pulse-2b86b8c7{0%{background-color:#ff4d4f26}50%{background-color:#ff4d4f4d}to{background-color:#ff4d4f26}}.alarm-btn[data-v-2b86b8c7]{position:absolute;left:25px;top:15%;width:40px;height:40px;background-color:#353d48e6;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1001;box-shadow:0 2px 8px #0000004d}.alarm-icon[data-v-2b86b8c7]{width:24px;height:24px;background-image:url('data:image/svg+xml;utf8,');background-repeat:no-repeat;background-position:center;background-size:contain}.alarm-badge[data-v-2b86b8c7]{position:absolute;top:-5px;right:-5px;background-color:#ff4d4f;color:#fff;font-size:12px;min-width:18px;height:18px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 4px}.eventlist-toggle-btn[data-v-2b86b8c7]{position:absolute;top:50%;right:0;z-index:2001;width:30px;height:58px;transform:translateY(-50%);cursor:pointer;transition:right .3s ease}.eventlist-toggle-btn.btn-opened[data-v-2b86b8c7]{right:405px}.test-controls[data-v-2b86b8c7]{position:absolute;bottom:20px;left:20px;z-index:2000}.test-btn[data-v-2b86b8c7]{padding:8px 16px;background-color:#2196f3cc;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:14px;box-shadow:0 2px 4px #0003;transition:all .3s ease}.test-btn[data-v-2b86b8c7]:hover{background-color:#2196f3;box-shadow:0 4px 8px #0000004d}.draw-toolbar[data-v-2b86b8c7]{position:absolute;top:20px;right:20px;background-color:#ffffffe6;border-radius:4px;box-shadow:0 2px 8px #0003;z-index:2000;width:200px;overflow:hidden}.toolbar-title[data-v-2b86b8c7]{padding:10px;background-color:#0096ff;color:#fff;font-weight:700;text-align:center}.toolbar-buttons[data-v-2b86b8c7]{padding:10px;display:flex;flex-direction:column;gap:8px}.toolbar-button[data-v-2b86b8c7]{padding:8px 12px;border:1px solid #ddd;border-radius:4px;background-color:#f5f5f5;cursor:pointer;transition:all .2s}.toolbar-button[data-v-2b86b8c7]:hover{background-color:#e0e0e0}.toolbar-button.clear[data-v-2b86b8c7]{background-color:#f44336;color:#fff;border-color:#d32f2f}.toolbar-button.clear[data-v-2b86b8c7]:hover{background-color:#d32f2f}.toolbar-button.export[data-v-2b86b8c7]{background-color:#4caf50;color:#fff;border-color:#388e3c}.toolbar-button.export[data-v-2b86b8c7]:hover{background-color:#388e3c}.toolbar-button.import[data-v-2b86b8c7]{background-color:#ff9800;color:#fff;border-color:#f57c00}.toolbar-button.import[data-v-2b86b8c7]:hover{background-color:#f57c00}.app-main.platform-no-padding{padding-left:0!important;padding-right:0!important} diff --git a/airport/assets/index.4abbb6d0.css.gz b/airport/assets/index.4abbb6d0.css.gz new file mode 100644 index 0000000..1555081 Binary files /dev/null and b/airport/assets/index.4abbb6d0.css.gz differ diff --git a/airport/assets/index.50ecb4a3.css b/airport/assets/index.50ecb4a3.css new file mode 100644 index 0000000..f664fb7 --- /dev/null +++ b/airport/assets/index.50ecb4a3.css @@ -0,0 +1 @@ +.app-container[data-v-dedfa38a]{padding:20px;background-color:#292c38;color:#fff;height:calc(100vh - 180px);overflow-y:auto;border-radius:10px} diff --git a/airport/assets/index.53cac1e1.js b/airport/assets/index.53cac1e1.js new file mode 100644 index 0000000..0b49db8 --- /dev/null +++ b/airport/assets/index.53cac1e1.js @@ -0,0 +1 @@ +import{_,d as o,o as t,c as n,e as s}from"./index.79832097.js";const a={class:"app-container"},c={__name:"index",setup(r){return(d,p)=>{const e=o("router-view");return t(),n("div",a,[s(e)])}}},l=_(c,[["__scopeId","data-v-d6958af6"]]);export{l as default}; diff --git a/airport/assets/index.5ac6245b.css b/airport/assets/index.5ac6245b.css new file mode 100644 index 0000000..88412d8 --- /dev/null +++ b/airport/assets/index.5ac6245b.css @@ -0,0 +1 @@ +.fade-enter-active,.fade-leave-active{transition:opacity .28s}.fade-enter,.fade-leave-active{opacity:0}.fade-transform--move,.fade-transform-leave-active,.fade-transform-enter-active{transition:all .5s}.fade-transform-leave-active{position:absolute}.fade-transform-enter{opacity:0;transform:translate(-30px)}.fade-transform-leave-to{opacity:0;transform:translate(30px)}.breadcrumb-enter-active,.breadcrumb-leave-active{transition:all .5s}.breadcrumb-enter,.breadcrumb-leave-active{opacity:0;transform:translate(20px)}.breadcrumb-move{transition:all .5s}.breadcrumb-leave-active{position:absolute}.el-breadcrumb__inner,.el-breadcrumb__inner a{font-weight:400!important}.el-upload input[type=file]{display:none!important}.cell .el-tag{margin-right:0}.small-padding .cell{padding-left:5px;padding-right:5px}.fixed-width .el-button--mini{padding:7px 10px;width:60px}.status-col .cell{padding:0 10px;text-align:center}.status-col .cell .el-tag{margin-right:0}.el-input__wrapper{background:#343744!important;border:none!important;border-radius:8px!important;height:36px;font-size:15px;color:#96a0b5!important;box-shadow:none!important}.el-input__wrapper:hover{box-shadow:none!important}.el-select{border:none!important;width:140px!important;--el-border-color-hover: #343744!important;--el-border-color: #343744!important}.el-input__wrapper{background:#343744!important;border:none!important;border-radius:8px!important;height:36px!important;font-size:15px;color:#96a0b5!important;box-shadow:none!important}.el-select__wrapper.is-focused{box-shadow:none!important}.el-select__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;width:140px;font-size:15px;border:none!important}.el-input__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;border:none;box-shadow:none!important}.el-select__placeholder{color:#96a0b5!important}.el-overlay-dialog{width:100%!important;height:100%!important;display:flex;justify-content:center;align-items:center}.el-dialog{transform:none;left:0;position:relative;margin:0 auto;border-radius:12px!important;background:#292C38!important;color:#fff!important;--el-text-color-regular: #96A0B5!important}.el-dialog .el-dialog__title{color:#fff!important}.el-dialog .el-dialog__header{border-bottom:1px solid #4C4F5F!important;margin:0!important}.el-dialog .el-dialog__headerbtn .el-dialog__close{color:#fff!important}.el-dialog .el-form-item__label{color:#fff9!important}.el-message-box{border-radius:12px!important;background:#292C38!important;color:#fff!important;border:none!important;--el-messagebox-title-color: #fff!important;--el-color-info: #fff!important;--el-messagebox-content-color: #fff!important;--el-color-warning: #FF4C4C}.el-message-box .el-message-box__header{border-bottom:1px solid #4C4F5F!important;padding:15px 20px!important}.el-message-box .el-message-box__title{color:#fff!important;font-size:16px!important;font-weight:400!important}.el-message-box .el-message-box__content{padding:20px 48px!important;color:#fff!important}.el-message-box .el-message-box__container{display:flex!important;align-items:center!important}.el-message-box .el-message-box__status{font-size:64px!important;position:static!important;transform:none!important;margin-right:15px!important}.el-message-box .el-message-box__message{padding-left:0!important;color:#fff!important;font-size:16px!important}.el-message-box .el-message-box__btns{padding:0 20px 20px!important;text-align:right!important}.el-message-box .el-message-box__btns .el-button{border-radius:8px!important;padding:8px 20px!important;margin-left:10px!important;font-size:15px!important;height:36px!important;width:68px!important}.el-message-box .el-message-box__btns .el-button--default{background-color:#343744!important;border-color:#343744!important;color:#fff!important}.el-message-box .el-message-box__btns .el-button--default:hover{background-color:#3f4254!important;border-color:#3f4254!important}.el-message-box .el-message-box__btns .el-button--primary{background-color:#347ae2!important;border-color:#347ae2!important}.el-message-box .el-message-box__btns .el-button--primary:hover{background-color:#4a7fd5!important;border-color:#4a7fd5!important}.el-message-box .el-message-box__close{color:#fff!important;font-size:18px!important}.el-message-box .el-message-box__close:hover{color:#5690e7!important}.upload-container .el-upload{width:100%}.upload-container .el-upload .el-upload-dragger{width:100%;height:200px}.el-dropdown-menu a{display:block}.el-range-editor.el-input__inner{display:inline-flex!important}.el-range-separator{box-sizing:content-box}.el-menu--collapse>div>.el-submenu>.el-submenu__title .el-submenu__icon-arrow{display:none}.el-dropdown .el-dropdown-link{color:var(--el-color-primary)!important}#app .main-container{min-height:100%;transition:margin-left .28s;margin-left:280px;position:relative}#app .sidebarHide{margin-left:0!important}#app .sidebar-container{-webkit-transition:width .28s;transition:width .28s;width:280px!important;background-color:#292c38;height:100%;position:fixed;font-size:0px;top:0;bottom:0;left:0;z-index:1001;overflow:hidden;-webkit-box-shadow:2px 0 6px rgba(0,21,41,.35);box-shadow:2px 0 6px #00152959}#app .sidebar-container .horizontal-collapse-transition{transition:0s width ease-in-out,0s padding-left ease-in-out,0s padding-right ease-in-out}#app .sidebar-container .scrollbar-wrapper{overflow-x:hidden!important}#app .sidebar-container .el-scrollbar__bar.is-vertical{right:0px}#app .sidebar-container .el-scrollbar{height:100%}#app .sidebar-container.has-logo .el-scrollbar{height:calc(100% - 50px)}#app .sidebar-container .is-horizontal{display:none}#app .sidebar-container a{display:inline-block;width:100%;overflow:hidden}#app .sidebar-container .svg-icon{margin-right:16px}#app .sidebar-container .el-menu{border:none;height:100%;width:100%!important}#app .sidebar-container .el-menu-item,#app .sidebar-container .menu-title{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}#app .sidebar-container .el-menu-item .el-menu-tooltip__trigger{display:inline-block!important}#app .sidebar-container .sub-menu-title-noDropdown:hover,#app .sidebar-container .el-sub-menu__title:hover{background-color:#0000000f!important}#app .sidebar-container .theme-dark .is-active>.el-sub-menu__title{color:#f4f4f5!important}#app .sidebar-container .nest-menu .el-sub-menu>.el-sub-menu__title,#app .sidebar-container .el-sub-menu .el-menu-item{min-width:280px!important}#app .sidebar-container .nest-menu .el-sub-menu>.el-sub-menu__title:hover,#app .sidebar-container .el-sub-menu .el-menu-item:hover{background-color:#0000000f!important}#app .sidebar-container .theme-dark .nest-menu .el-sub-menu>.el-sub-menu__title,#app .sidebar-container .theme-dark .el-sub-menu .el-menu-item{background-color:#1f2d3d!important}#app .sidebar-container .theme-dark .nest-menu .el-sub-menu>.el-sub-menu__title:hover,#app .sidebar-container .theme-dark .el-sub-menu .el-menu-item:hover{background-color:#001528!important}#app .hideSidebar .sidebar-container{width:54px!important}#app .hideSidebar .main-container{margin-left:54px}#app .hideSidebar .sub-menu-title-noDropdown{padding:0!important;position:relative}#app .hideSidebar .sub-menu-title-noDropdown .el-tooltip{padding:0!important}#app .hideSidebar .sub-menu-title-noDropdown .el-tooltip .svg-icon{margin-left:20px}#app .hideSidebar .el-sub-menu{overflow:hidden}#app .hideSidebar .el-sub-menu>.el-sub-menu__title{padding:0!important}#app .hideSidebar .el-sub-menu>.el-sub-menu__title .svg-icon{margin-left:20px}#app .hideSidebar .el-menu--collapse .el-sub-menu>.el-sub-menu__title>span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}#app .hideSidebar .el-menu--collapse .el-sub-menu>.el-sub-menu__title>i{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}#app .el-menu--collapse .el-menu .el-sub-menu{min-width:280px!important}#app .mobile .main-container{margin-left:0}#app .mobile .sidebar-container{transition:transform .28s;width:280px!important}#app .mobile.hideSidebar .sidebar-container{pointer-events:none;transition-duration:.3s;transform:translate3d(-280px,0,0)}#app .withoutAnimation .main-container,#app .withoutAnimation .sidebar-container{transition:none}.el-menu--vertical>.el-menu .svg-icon{margin-right:16px}.el-menu--vertical .nest-menu .el-sub-menu>.el-sub-menu__title,.el-menu--vertical .el-menu-item{border-radius:10px!important}.el-menu--vertical .nest-menu .el-sub-menu>.el-sub-menu__title:hover,.el-menu--vertical .el-menu-item:hover{background-color:#343744!important}.el-menu--vertical .nest-menu .el-sub-menu>.el-sub-menu__title.is-active,.el-menu--vertical .el-menu-item.is-active{background-color:#343744!important}.el-menu--vertical .nest-menu .el-sub-menu>.el-sub-menu__title.is-active .svg-icon,.el-menu--vertical .el-menu-item.is-active .svg-icon{color:#347ae2!important}.el-menu--vertical .el-sub-menu>.el-sub-menu__title{border-radius:10px!important}.el-menu--vertical .el-sub-menu>.el-sub-menu__title:hover{background-color:#343744!important}.el-menu--vertical .el-sub-menu>.el-sub-menu__title.is-active{background-color:#343744!important}.el-menu--vertical .el-sub-menu>.el-sub-menu__title.is-active .svg-icon{color:#347ae2!important}.el-menu--vertical>.el-menu--popup{max-height:100vh;overflow-y:auto}.el-menu--vertical>.el-menu--popup::-webkit-scrollbar-track-piece{background:#d3dce6}.el-menu--vertical>.el-menu--popup::-webkit-scrollbar{width:6px}.el-menu--vertical>.el-menu--popup::-webkit-scrollbar-thumb{background:#99a9bf;border-radius:20px}:export{menuColor:#bfcbd9;menuLightColor:rgba(0,0,0,.7);menuColorActive:#f4f4f5;menuBackground:#292C38;menuLightBackground:#ffffff;subMenuBackground:#1f2d3d;subMenuHover:#001528;sideBarWidth:280px;logoTitleColor:#ffffff;logoLightTitleColor:#001529;primaryColor:#409EFF;successColor:#67C23A;dangerColor:#F56C6C;infoColor:#909399;warningColor:#E6A23C}.blue-btn{background:#324157}.blue-btn:hover{color:#324157}.blue-btn:hover:before,.blue-btn:hover:after{background:#324157}.light-blue-btn{background:#3A71A8}.light-blue-btn:hover{color:#3a71a8}.light-blue-btn:hover:before,.light-blue-btn:hover:after{background:#3A71A8}.red-btn{background:#C03639}.red-btn:hover{color:#c03639}.red-btn:hover:before,.red-btn:hover:after{background:#C03639}.pink-btn{background:#E65D6E}.pink-btn:hover{color:#e65d6e}.pink-btn:hover:before,.pink-btn:hover:after{background:#E65D6E}.green-btn{background:#30B08F}.green-btn:hover{color:#30b08f}.green-btn:hover:before,.green-btn:hover:after{background:#30B08F}.tiffany-btn{background:#4AB7BD}.tiffany-btn:hover{color:#4ab7bd}.tiffany-btn:hover:before,.tiffany-btn:hover:after{background:#4AB7BD}.yellow-btn{background:#FEC171}.yellow-btn:hover{color:#fec171}.yellow-btn:hover:before,.yellow-btn:hover:after{background:#FEC171}.pan-btn{font-size:14px;color:#fff;padding:14px 36px;border-radius:8px;border:none;outline:none;transition:.6s ease all;position:relative;display:inline-block}.pan-btn:hover{background:#fff}.pan-btn:hover:before,.pan-btn:hover:after{width:100%;transition:.6s ease all}.pan-btn:before,.pan-btn:after{content:"";position:absolute;top:0;right:0;height:2px;width:0;transition:.4s ease all}.pan-btn:after{right:inherit;top:inherit;left:0;bottom:0}.custom-button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#fff;color:#fff;-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;padding:10px 15px;font-size:14px;border-radius:4px}.search-btn{width:68px;background:#347AE2!important;color:#fff!important;border-radius:8px!important;height:36px!important;border:none!important;font-size:15px;padding:0 24px}.reset-btn{width:68px;background:rgba(52,122,226,.2)!important;color:#fff!important;border:1px solid #347AE2!important;border-radius:8px!important;height:36px!important;font-size:15px;padding:0 24px}.export-btn{width:68px;background:#343744!important;color:#fff!important;border-radius:8px!important;height:36px!important;border:none!important;font-size:15px;padding:0 24px}.pt5{padding-top:5px}.pr5{padding-right:5px}.pb5{padding-bottom:5px}.mt5{margin-top:5px}.mr5{margin-right:5px}.mb5{margin-bottom:5px}.mb8{margin-bottom:8px}.ml5{margin-left:5px}.mt10{margin-top:10px}.mr10{margin-right:10px}.mb10{margin-bottom:10px}.ml10{margin-left:10px}.mt20{margin-top:20px}.mr20{margin-right:20px}.mb20{margin-bottom:20px}.ml20{margin-left:20px}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.el-form .el-form-item__label{font-weight:700}.el-dialog:not(.is-fullscreen){margin-top:6vh!important}.el-dialog.scrollbar .el-dialog__body{overflow:auto;overflow-x:hidden;max-height:70vh;padding:10px 20px 0}.el-table{min-height:calc(100vh - 295px)!important}.el-table .el-table__header-wrapper th,.el-table .el-table__fixed-header-wrapper th{word-break:break-word;background-color:#f8f8f9!important;color:#515a6e;height:40px!important;font-size:13px}.el-table .el-table__body-wrapper .el-button [class*=el-icon-]+span{margin-left:1px}.form-header{font-size:15px;color:#6379bb;border-bottom:1px solid #ddd;margin:8px 10px 25px;padding-bottom:5px}.el-tree{background:transparent!important}.tree-border{margin-top:5px;border:none!important;background:transparent!important;border-radius:4px;width:100%}.el-table .fixed-width .el-button--small{padding-left:0;padding-right:0;width:inherit}.el-table .el-dropdown-link{cursor:pointer;color:#409eff;margin-left:10px}.el-table .el-dropdown,.el-icon-arrow-down{font-size:12px}.el-tree-node__content>.el-checkbox{margin-right:8px}.list-group-striped>.list-group-item{border-left:0;border-right:0;border-radius:0;padding-left:0;padding-right:0}.list-group{padding-left:0;list-style:none}.list-group-item{border-bottom:1px solid #e7eaec;border-top:1px solid #e7eaec;margin-bottom:-1px;padding:11px 0;font-size:13px}.pull-right{float:right!important}.el-card__header{padding:14px 15px 7px!important;min-height:40px}.el-card__body{padding:15px 20px 20px!important}.card-box{padding-right:15px;padding-left:15px;margin-bottom:10px}.el-button--cyan.is-active,.el-button--cyan:active{background:#20B2AA;border-color:#20b2aa;color:#fff}.el-button--cyan:focus,.el-button--cyan:hover{background:#48D1CC;border-color:#48d1cc;color:#fff}.el-button--cyan{background-color:#20b2aa;border-color:#20b2aa;color:#fff}.text-navy{color:#1ab394}.text-primary{color:inherit}.text-success{color:#1c84c6}.text-info{color:#23c6c8}.text-warning{color:#f8ac59}.text-danger{color:#ed5565}.text-muted{color:#888}.img-circle{border-radius:50%}.img-lg{width:120px;height:120px}.avatar-upload-preview{position:absolute;top:50%;transform:translate(50%,-50%);width:200px;height:200px;border-radius:50%;box-shadow:0 0 4px #ccc;overflow:hidden}.sortable-ghost{opacity:.8;color:#fff!important;background:#42b983!important}.top-right-btn{margin-left:auto}body{height:100%;margin:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Arial,sans-serif}label{font-weight:700}html{height:100%;box-sizing:border-box}#app{height:100%}html,body{width:100%;overflow-x:hidden;overscroll-behavior-x:none}*,*:before,*:after{box-sizing:inherit}.no-padding{padding:0!important}.padding-content{padding:4px 0}a:focus,a:active{outline:none}a,a:focus,a:hover{cursor:pointer;color:inherit;text-decoration:none}div:focus{outline:none}.fr{float:right}.fl{float:left}.pr-5{padding-right:5px}.pl-5{padding-left:5px}.block{display:block}.pointer{cursor:pointer}.inlineBlock{display:block}.clearfix:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}aside{background:#eef1f6;padding:8px 24px;margin-bottom:20px;border-radius:2px;display:block;line-height:32px;font-size:16px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;color:#2c3e50;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}aside a{color:#337ab7;cursor:pointer}aside a:hover{color:#20a0ff}.app-container{padding:20px;height:100%;display:flex;flex-direction:column;overflow:hidden}.components-container{margin:30px 50px;position:relative}.text-center{text-align:center}.sub-navbar{height:50px;line-height:50px;position:relative;width:100%;text-align:right;padding-right:20px;transition:.6s ease position;background:linear-gradient(90deg,rgb(32,182,249) 0%,rgb(32,182,249) 0%,rgb(33,120,241) 100%,rgb(33,120,241) 100%)}.sub-navbar .subtitle{font-size:20px;color:#fff}.sub-navbar.draft,.sub-navbar.deleted{background:#d0d0d0}.link-type,.link-type:focus{color:#337ab7;cursor:pointer}.link-type:hover,.link-type:focus:hover{color:#20a0ff}.filter-container{padding-bottom:10px}.filter-container .filter-item{display:inline-block;vertical-align:middle;margin-bottom:10px}.multiselect{line-height:16px}.multiselect--active{z-index:1000!important}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:rgba(0,0,0,.1);border-radius:4px}::-webkit-scrollbar-thumb{background:rgba(144,147,153,.5);border-radius:4px;transition:all .3s ease}::-webkit-scrollbar-thumb:hover{background:rgba(144,147,153,.8)}*{scrollbar-width:thin;scrollbar-color:rgba(144,147,153,.5) rgba(0,0,0,.1)}.hide-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.hide-scrollbar::-webkit-scrollbar{display:none}@media (max-width: 1600px){.cards-grid{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1200px){.cards-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.cards-grid{grid-template-columns:1fr}}.sidebarLogoFade-enter-active[data-v-2bd8f41d]{transition:opacity 1.5s}.sidebarLogoFade-enter[data-v-2bd8f41d],.sidebarLogoFade-leave-to[data-v-2bd8f41d]{opacity:0}.sidebar-logo-container[data-v-2bd8f41d]{position:relative;width:100%;height:50px;line-height:50px;background:#2b2f3a;text-align:center;overflow:hidden}.sidebar-logo-container .sidebar-logo-link[data-v-2bd8f41d]{height:100%;width:100%}.sidebar-logo-container .sidebar-logo-link .sidebar-logo[data-v-2bd8f41d]{width:32px;height:32px;vertical-align:middle;margin-right:12px}.sidebar-logo-container .sidebar-logo-link .sidebar-title[data-v-2bd8f41d]{display:inline-block;margin:0;color:#fff;font-weight:600;line-height:50px;font-size:14px;font-family:Avenir,Helvetica Neue,Arial,Helvetica,sans-serif;vertical-align:middle}.sidebar-logo-container.collapse .sidebar-logo[data-v-2bd8f41d]{margin-right:0}.sidebar[data-v-3452e1f5]{width:220px;height:100%;border-right:none}.menu-title[data-v-3452e1f5]{width:100%;display:inline-block}[data-v-3452e1f5] .el-sub-menu .el-sub-menu__icon-arrow{font-size:12px;width:inherit}.submenu-container[data-v-3452e1f5]{padding:5px 0;background-color:#292c38}[data-v-3452e1f5] .el-menu--inline{background-color:#292c38!important;padding:0!important}.timeline[data-v-3452e1f5]{display:flex;flex-direction:column;position:relative;padding-left:50px}.timeline[data-v-3452e1f5]:before{display:none}.timeline-line[data-v-3452e1f5]{display:block;width:1px;height:20px;background-color:#ffffff26;margin-left:3px}.timeline-item[data-v-3452e1f5]{position:relative;display:flex;align-items:center;height:40px;cursor:pointer;padding-left:15px;width:100%}.timeline-dot[data-v-3452e1f5]{width:6px;height:6px;border-radius:50%;background-color:#ffffff4d;margin-right:12px;flex-shrink:0;position:relative;left:-15px}.timeline-content[data-v-3452e1f5]{font-size:14px;color:#ffffffa6;margin-left:-15px}.timeline-content.active[data-v-3452e1f5]{color:#fff}.timeline-dot.active[data-v-3452e1f5]{background-color:#1890ff}[data-v-3452e1f5] .el-sub-menu__title.is-active,[data-v-3452e1f5] .el-sub-menu.is-active .el-sub-menu__title{background-color:#343744!important;border-radius:10px!important}[data-v-3452e1f5] .el-menu--inline{background-color:#292c38!important;border-radius:10px!important}[data-v-3452e1f5] .el-sub-menu .el-sub-menu__title:hover{background-color:#343744!important;border-radius:10px!important}.app-main[data-v-4b51968d]{width:100%;position:relative;overflow-y:auto;background-color:#343744;padding:0 32px}.fixed-header+.app-main[data-v-4b51968d]{padding-top:50px}.hasTagsView .app-main[data-v-4b51968d]{height:calc(100vh - 130px)}.el-popup-parent--hidden .fixed-header{padding-right:17px}.header-container[data-v-66fb18de]{width:100%;padding:0 30px;height:65px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #4C4F5F;background:url(/airport/assets/title.67230e91.png) no-repeat;background-size:100% 100%;color:#fff}.text[data-v-66fb18de]{font-weight:700;font-size:26px;flex:1}.tabs-container[data-v-66fb18de]{display:flex;width:65%;height:100%;align-items:center;justify-content:flex-start}.tab-item[data-v-66fb18de]{padding:0 20px;height:36px;line-height:36px;font-size:16px;font-weight:700;cursor:pointer;position:relative;margin:0 10px;transition:all .3s;border-radius:4px}.tab-item.active[data-v-66fb18de]{background:url(/airport/assets/tabs.b8d4684b.png) no-repeat;background-size:100% 100%;color:#a1d1ff;font-weight:700}.close-icon[data-v-66fb18de]{width:32px;height:32px;cursor:pointer}:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","\5fae\8f6f\96c5\9ed1",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645, .045, .355, 1);--el-transition-function-fast-bezier:cubic-bezier(.23, 1, .32, 1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px}:root{color-scheme:light;--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0, 0, 0, .04),0px 8px 20px rgba(0, 0, 0, .08);--el-box-shadow-light:0px 0px 12px rgba(0, 0, 0, .12);--el-box-shadow-lighter:0px 0px 6px rgba(0, 0, 0, .12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0, 0, 0, .08),0px 12px 32px rgba(0, 0, 0, .12),0px 8px 16px -8px rgba(0, 0, 0, .16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0, 0, 0, .8);--el-overlay-color-light:rgba(0, 0, 0, .7);--el-overlay-color-lighter:rgba(0, 0, 0, .5);--el-mask-color:rgba(255, 255, 255, .9);--el-mask-color-extra-light:rgba(255, 255, 255, .3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center top}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center bottom}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:var(--el-transition-md-fade);transform-origin:top left}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-icon{--color:inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.el-affix--fixed{position:fixed}.el-alert{--el-alert-padding:8px 16px;--el-alert-border-radius-base:var(--el-border-radius-base);--el-alert-title-font-size:13px;--el-alert-description-font-size:12px;--el-alert-close-font-size:12px;--el-alert-close-customed-font-size:13px;--el-alert-icon-size:16px;--el-alert-icon-large-size:28px;width:100%;padding:var(--el-alert-padding);margin:0;box-sizing:border-box;border-radius:var(--el-alert-border-radius-base);position:relative;background-color:var(--el-color-white);overflow:hidden;opacity:1;display:flex;align-items:center;transition:opacity var(--el-transition-duration-fast)}.el-alert.is-light .el-alert__close-btn{color:var(--el-text-color-placeholder)}.el-alert.is-dark .el-alert__close-btn,.el-alert.is-dark .el-alert__description{color:var(--el-color-white)}.el-alert.is-center{justify-content:center}.el-alert--success{--el-alert-bg-color:var(--el-color-success-light-9)}.el-alert--success.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-success)}.el-alert--success.is-light .el-alert__description{color:var(--el-color-success)}.el-alert--success.is-dark{background-color:var(--el-color-success);color:var(--el-color-white)}.el-alert--info{--el-alert-bg-color:var(--el-color-info-light-9)}.el-alert--info.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-info)}.el-alert--info.is-light .el-alert__description{color:var(--el-color-info)}.el-alert--info.is-dark{background-color:var(--el-color-info);color:var(--el-color-white)}.el-alert--warning{--el-alert-bg-color:var(--el-color-warning-light-9)}.el-alert--warning.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-warning)}.el-alert--warning.is-light .el-alert__description{color:var(--el-color-warning)}.el-alert--warning.is-dark{background-color:var(--el-color-warning);color:var(--el-color-white)}.el-alert--error{--el-alert-bg-color:var(--el-color-error-light-9)}.el-alert--error.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-error)}.el-alert--error.is-light .el-alert__description{color:var(--el-color-error)}.el-alert--error.is-dark{background-color:var(--el-color-error);color:var(--el-color-white)}.el-alert__content{display:table-cell;padding:0 8px}.el-alert .el-alert__icon{font-size:var(--el-alert-icon-size);width:var(--el-alert-icon-size)}.el-alert .el-alert__icon.is-big{font-size:var(--el-alert-icon-large-size);width:var(--el-alert-icon-large-size)}.el-alert__title{font-size:var(--el-alert-title-font-size);line-height:18px;vertical-align:text-top}.el-alert__title.is-bold{font-weight:700}.el-alert .el-alert__description{font-size:var(--el-alert-description-font-size);margin:5px 0 0}.el-alert .el-alert__close-btn{font-size:var(--el-alert-close-font-size);opacity:1;position:absolute;top:12px;right:15px;cursor:pointer}.el-alert .el-alert__close-btn.is-customed{font-style:normal;font-size:var(--el-alert-close-customed-font-size);top:9px}.el-alert-fade-enter-from,.el-alert-fade-leave-active{opacity:0}.el-aside{overflow:auto;box-sizing:border-box;flex-shrink:0;width:var(--el-aside-width,300px)}.el-autocomplete{position:relative;display:inline-block}.el-autocomplete__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-autocomplete__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-autocomplete__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-autocomplete-suggestion{border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-autocomplete-suggestion__wrap{max-height:280px;padding:10px 0;box-sizing:border-box}.el-autocomplete-suggestion__list{margin:0;padding:0}.el-autocomplete-suggestion li{padding:0 20px;margin:0;line-height:34px;cursor:pointer;color:var(--el-text-color-regular);font-size:var(--el-font-size-base);list-style:none;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.el-autocomplete-suggestion li:hover,.el-autocomplete-suggestion li.highlighted{background-color:var(--el-fill-color-light)}.el-autocomplete-suggestion li.divider{margin-top:6px;border-top:1px solid var(--el-color-black)}.el-autocomplete-suggestion li.divider:last-child{margin-bottom:-6px}.el-autocomplete-suggestion.is-loading li{text-align:center;height:100px;line-height:100px;font-size:20px;color:var(--el-text-color-secondary)}.el-autocomplete-suggestion.is-loading li:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-autocomplete-suggestion.is-loading li:hover{background-color:var(--el-bg-color-overlay)}.el-autocomplete-suggestion.is-loading .el-icon-loading{vertical-align:middle}.el-avatar{--el-avatar-text-color:var(--el-color-white);--el-avatar-bg-color:var(--el-text-color-disabled);--el-avatar-text-size:14px;--el-avatar-icon-size:18px;--el-avatar-border-radius:var(--el-border-radius-base);--el-avatar-size-large:56px;--el-avatar-size-small:24px;--el-avatar-size:40px;display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;text-align:center;overflow:hidden;color:var(--el-avatar-text-color);background:var(--el-avatar-bg-color);width:var(--el-avatar-size);height:var(--el-avatar-size);font-size:var(--el-avatar-text-size)}.el-avatar>img{display:block;height:100%}.el-avatar--circle{border-radius:50%}.el-avatar--square{border-radius:var(--el-avatar-border-radius)}.el-avatar--icon{font-size:var(--el-avatar-icon-size)}.el-avatar--small{--el-avatar-size:24px}.el-avatar--large{--el-avatar-size:56px}.el-backtop{--el-backtop-bg-color:var(--el-bg-color-overlay);--el-backtop-text-color:var(--el-color-primary);--el-backtop-hover-bg-color:var(--el-border-color-extra-light);position:fixed;background-color:var(--el-backtop-bg-color);width:40px;height:40px;border-radius:50%;color:var(--el-backtop-text-color);display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:var(--el-box-shadow-lighter);cursor:pointer;z-index:5}.el-backtop:hover{background-color:var(--el-backtop-hover-bg-color)}.el-backtop__icon{font-size:20px}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;position:relative;vertical-align:middle;display:inline-block}.el-badge__content{background-color:var(--el-badge-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;justify-content:center;align-items:center;font-size:var(--el-badge-font-size);height:var(--el-badge-size);padding:0 var(--el-badge-padding);white-space:nowrap;border:1px solid var(--el-bg-color)}.el-badge__content.is-fixed{position:absolute;top:0;right:calc(1px + var(--el-badge-size)/ 2);transform:translateY(-50%) translate(100%)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{height:8px;width:8px;padding:0;right:0;border-radius:50%}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-breadcrumb{font-size:14px;line-height:1}.el-breadcrumb:after,.el-breadcrumb:before{display:table;content:""}.el-breadcrumb:after{clear:both}.el-breadcrumb__separator{margin:0 9px;font-weight:700;color:var(--el-text-color-placeholder)}.el-breadcrumb__separator.el-icon{margin:0 6px;font-weight:400}.el-breadcrumb__separator.el-icon svg{vertical-align:middle}.el-breadcrumb__item{float:left;display:flex;align-items:center}.el-breadcrumb__inner{color:var(--el-text-color-regular)}.el-breadcrumb__inner a,.el-breadcrumb__inner.is-link{font-weight:700;text-decoration:none;transition:var(--el-transition-color);color:var(--el-text-color-primary)}.el-breadcrumb__inner a:hover,.el-breadcrumb__inner.is-link:hover{color:var(--el-color-primary);cursor:pointer}.el-breadcrumb__item:last-child .el-breadcrumb__inner,.el-breadcrumb__item:last-child .el-breadcrumb__inner a,.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover{font-weight:400;color:var(--el-text-color-regular);cursor:text}.el-breadcrumb__item:last-child .el-breadcrumb__separator{display:none}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group:after,.el-button-group:before{display:table;content:""}.el-button-group:after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.el-button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-top-right-radius:var(--el-border-radius-base);border-bottom-right-radius:var(--el-border-radius-base);border-top-left-radius:var(--el-border-radius-base);border-bottom-left-radius:var(--el-border-radius-base)}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:var(--el-border-radius-round)}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button:active,.el-button-group>.el-button:focus,.el-button-group>.el-button:hover{z-index:1}.el-button-group>.el-button.is-active{z-index:1}.el-button-group>.el-dropdown>.el-button{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button{--el-button-font-weight:var(--el-font-weight-primary);--el-button-border-color:var(--el-border-color);--el-button-bg-color:var(--el-fill-color-blank);--el-button-text-color:var(--el-text-color-regular);--el-button-disabled-text-color:var(--el-disabled-text-color);--el-button-disabled-bg-color:var(--el-fill-color-blank);--el-button-disabled-border-color:var(--el-border-color-light);--el-button-divide-border-color:rgba(255, 255, 255, .5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-7);--el-button-active-text-color:var(--el-button-hover-text-color);--el-button-active-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-button-hover-bg-color);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-hover-link-text-color:var(--el-color-info);--el-button-active-color:var(--el-text-color-primary)}.el-button{display:inline-flex;justify-content:center;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;color:var(--el-button-text-color);text-align:center;box-sizing:border-box;outline:0;transition:.1s;font-weight:var(--el-button-font-weight);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);padding:8px 15px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button:focus,.el-button:hover{color:var(--el-button-hover-text-color);border-color:var(--el-button-hover-border-color);background-color:var(--el-button-hover-bg-color);outline:0}.el-button:active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button>span{display:inline-flex;align-items:center}.el-button+.el-button{margin-left:12px}.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button.is-disabled,.el-button.is-disabled:focus,.el-button.is-disabled:hover{color:var(--el-button-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color);border-color:var(--el-button-disabled-border-color)}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{z-index:1;pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:var(--el-mask-color-extra-light)}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{border-radius:50%;padding:8px}.el-button.is-text{color:var(--el-button-text-color);border:0 solid transparent;background-color:transparent}.el-button.is-text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important}.el-button.is-text:not(.is-disabled):focus,.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:focus,.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{border-color:transparent;color:var(--el-button-text-color);background:0 0;padding:2px;height:auto}.el-button.is-link:focus,.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button.is-link:not(.is-disabled):focus,.el-button.is-link:not(.is-disabled):hover{border-color:transparent;background-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color);border-color:transparent;background-color:transparent}.el-button--text{border-color:transparent;background:0 0;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button--text:not(.is-disabled):focus,.el-button--text:not(.is-disabled):hover{color:var(--el-color-primary-light-3);border-color:transparent;background-color:transparent}.el-button--text:not(.is-disabled):active{color:var(--el-color-primary-dark-2);border-color:transparent;background-color:transparent}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-active-color:var(--el-color-primary-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-primary-light-5);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-primary-light-5);--el-button-disabled-border-color:var(--el-color-primary-light-5)}.el-button--primary.is-link,.el-button--primary.is-plain,.el-button--primary.is-text{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-text-color:var(--el-color-white)}.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:active,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:hover{color:var(--el-color-primary-light-5);background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8)}.el-button--success{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-success);--el-button-border-color:var(--el-color-success);--el-button-outline-color:var(--el-color-success-light-5);--el-button-active-color:var(--el-color-success-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-success-light-5);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-success-light-5);--el-button-disabled-border-color:var(--el-color-success-light-5)}.el-button--success.is-link,.el-button--success.is-plain,.el-button--success.is-text{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-text-color:var(--el-color-white)}.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:active,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:active,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:hover{color:var(--el-color-success-light-5);background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8)}.el-button--warning{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-warning);--el-button-border-color:var(--el-color-warning);--el-button-outline-color:var(--el-color-warning-light-5);--el-button-active-color:var(--el-color-warning-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-warning-light-5);--el-button-hover-bg-color:var(--el-color-warning-light-3);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-bg-color:var(--el-color-warning-dark-2);--el-button-active-border-color:var(--el-color-warning-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-warning-light-5);--el-button-disabled-border-color:var(--el-color-warning-light-5)}.el-button--warning.is-link,.el-button--warning.is-plain,.el-button--warning.is-text{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-warning);--el-button-hover-border-color:var(--el-color-warning);--el-button-active-text-color:var(--el-color-white)}.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:active,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:hover{color:var(--el-color-warning-light-5);background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8)}.el-button--danger{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger);--el-button-outline-color:var(--el-color-danger-light-5);--el-button-active-color:var(--el-color-danger-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-danger-light-5);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-danger-light-5);--el-button-disabled-border-color:var(--el-color-danger-light-5)}.el-button--danger.is-link,.el-button--danger.is-plain,.el-button--danger.is-text{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-text-color:var(--el-color-white)}.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:active,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:hover{color:var(--el-color-danger-light-5);background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8)}.el-button--info{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-info);--el-button-border-color:var(--el-color-info);--el-button-outline-color:var(--el-color-info-light-5);--el-button-active-color:var(--el-color-info-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-info-light-5);--el-button-hover-bg-color:var(--el-color-info-light-3);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-bg-color:var(--el-color-info-dark-2);--el-button-active-border-color:var(--el-color-info-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-info-light-5);--el-button-disabled-border-color:var(--el-color-info-light-5)}.el-button--info.is-link,.el-button--info.is-plain,.el-button--info.is-text{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-info);--el-button-hover-border-color:var(--el-color-info);--el-button-active-text-color:var(--el-color-white)}.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:active,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:active,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:hover{color:var(--el-color-info-light-5);background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8)}.el-button--large{--el-button-size:40px;height:var(--el-button-size);padding:12px 19px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{width:var(--el-button-size);padding:12px}.el-button--small{--el-button-size:24px;height:var(--el-button-size);padding:5px 11px;font-size:12px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{width:var(--el-button-size);padding:5px}.el-calendar{--el-calendar-border:var(--el-table-border, 1px solid var(--el-border-color-lighter));--el-calendar-header-border-bottom:var(--el-calendar-border);--el-calendar-selected-bg-color:var(--el-color-primary-light-9);--el-calendar-cell-width:85px;background-color:var(--el-fill-color-blank)}.el-calendar__header{display:flex;justify-content:space-between;padding:12px 20px;border-bottom:var(--el-calendar-header-border-bottom)}.el-calendar__title{color:var(--el-text-color);align-self:center}.el-calendar__body{padding:12px 20px 35px}.el-calendar-table{table-layout:fixed;width:100%}.el-calendar-table thead th{padding:12px 0;color:var(--el-text-color-regular);font-weight:400}.el-calendar-table:not(.is-range) td.next,.el-calendar-table:not(.is-range) td.prev{color:var(--el-text-color-placeholder)}.el-calendar-table td{border-bottom:var(--el-calendar-border);border-right:var(--el-calendar-border);vertical-align:top;transition:background-color var(--el-transition-duration-fast) ease}.el-calendar-table td.is-selected{background-color:var(--el-calendar-selected-bg-color)}.el-calendar-table td.is-today{color:var(--el-color-primary)}.el-calendar-table tr:first-child td{border-top:var(--el-calendar-border)}.el-calendar-table tr td:first-child{border-left:var(--el-calendar-border)}.el-calendar-table tr.el-calendar-table__row--hide-border td{border-top:none}.el-calendar-table .el-calendar-day{box-sizing:border-box;padding:8px;height:var(--el-calendar-cell-width)}.el-calendar-table .el-calendar-day:hover{cursor:pointer;background-color:var(--el-calendar-selected-bg-color)}.el-card{--el-card-border-color:var(--el-border-color-light);--el-card-border-radius:4px;--el-card-padding:20px;--el-card-bg-color:var(--el-fill-color-blank)}.el-card{border-radius:var(--el-card-border-radius);border:1px solid var(--el-card-border-color);background-color:var(--el-card-bg-color);overflow:hidden;color:var(--el-text-color-primary);transition:var(--el-transition-duration)}.el-card.is-always-shadow{box-shadow:var(--el-box-shadow-light)}.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:var(--el-box-shadow-light)}.el-card__header{padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding);border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box}.el-card__body{padding:var(--el-card-padding)}.el-carousel__item{position:absolute;top:0;left:0;width:100%;height:100%;display:inline-block;overflow:hidden;z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-active{z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-animating{transition:transform .4s ease-in-out}.el-carousel__item--card{width:50%;transition:transform .4s ease-in-out}.el-carousel__item--card.is-in-stage{cursor:pointer;z-index:var(--el-index-normal)}.el-carousel__item--card.is-in-stage.is-hover .el-carousel__mask,.el-carousel__item--card.is-in-stage:hover .el-carousel__mask{opacity:.12}.el-carousel__item--card.is-active{z-index:calc(var(--el-index-normal) + 1)}.el-carousel__mask{position:absolute;width:100%;height:100%;top:0;left:0;background-color:var(--el-color-white);opacity:.24;transition:var(--el-transition-duration-fast)}.el-carousel{--el-carousel-arrow-font-size:12px;--el-carousel-arrow-size:36px;--el-carousel-arrow-background:rgba(31, 45, 61, .11);--el-carousel-arrow-hover-background:rgba(31, 45, 61, .23);--el-carousel-indicator-width:30px;--el-carousel-indicator-height:2px;--el-carousel-indicator-padding-horizontal:4px;--el-carousel-indicator-padding-vertical:12px;--el-carousel-indicator-out-color:var(--el-border-color-hover);position:relative}.el-carousel--horizontal{overflow-x:hidden}.el-carousel--vertical{overflow-y:hidden}.el-carousel__container{position:relative;height:300px}.el-carousel__arrow{border:none;outline:0;padding:0;margin:0;height:var(--el-carousel-arrow-size);width:var(--el-carousel-arrow-size);cursor:pointer;transition:var(--el-transition-duration);border-radius:50%;background-color:var(--el-carousel-arrow-background);color:#fff;position:absolute;top:50%;z-index:10;transform:translateY(-50%);text-align:center;font-size:var(--el-carousel-arrow-font-size);display:inline-flex;justify-content:center;align-items:center}.el-carousel__arrow--left{left:16px}.el-carousel__arrow--right{right:16px}.el-carousel__arrow:hover{background-color:var(--el-carousel-arrow-hover-background)}.el-carousel__arrow i{cursor:pointer}.el-carousel__indicators{position:absolute;list-style:none;margin:0;padding:0;z-index:calc(var(--el-index-normal) + 1)}.el-carousel__indicators--horizontal{bottom:0;left:50%;transform:translate(-50%)}.el-carousel__indicators--vertical{right:0;top:50%;transform:translateY(-50%)}.el-carousel__indicators--outside{bottom:calc(var(--el-carousel-indicator-height) + var(--el-carousel-indicator-padding-vertical) * 2);text-align:center;position:static;transform:none}.el-carousel__indicators--outside .el-carousel__indicator:hover button{opacity:.64}.el-carousel__indicators--outside button{background-color:var(--el-carousel-indicator-out-color);opacity:.24}.el-carousel__indicators--labels{left:0;right:0;transform:none;text-align:center}.el-carousel__indicators--labels .el-carousel__button{height:auto;width:auto;padding:2px 18px;font-size:12px}.el-carousel__indicators--labels .el-carousel__indicator{padding:6px 4px}.el-carousel__indicator{background-color:transparent;cursor:pointer}.el-carousel__indicator:hover button{opacity:.72}.el-carousel__indicator--horizontal{display:inline-block;padding:var(--el-carousel-indicator-padding-vertical) var(--el-carousel-indicator-padding-horizontal)}.el-carousel__indicator--vertical{padding:var(--el-carousel-indicator-padding-horizontal) var(--el-carousel-indicator-padding-vertical)}.el-carousel__indicator--vertical .el-carousel__button{width:var(--el-carousel-indicator-height);height:calc(var(--el-carousel-indicator-width)/ 2)}.el-carousel__indicator.is-active button{opacity:1}.el-carousel__button{display:block;opacity:.48;width:var(--el-carousel-indicator-width);height:var(--el-carousel-indicator-height);background-color:#fff;border:none;outline:0;padding:0;margin:0;cursor:pointer;transition:var(--el-transition-duration)}.carousel-arrow-left-enter-from,.carousel-arrow-left-leave-active{transform:translateY(-50%) translate(-10px);opacity:0}.carousel-arrow-right-enter-from,.carousel-arrow-right-leave-active{transform:translateY(-50%) translate(10px);opacity:0}.el-cascader-panel{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color)}.el-cascader-panel{display:flex;border-radius:var(--el-cascader-menu-radius);font-size:var(--el-cascader-menu-font-size)}.el-cascader-panel.is-bordered{border:var(--el-cascader-menu-border);border-radius:var(--el-cascader-menu-radius)}.el-cascader-menu{min-width:180px;box-sizing:border-box;color:var(--el-cascader-menu-text-color);border-right:var(--el-cascader-menu-border)}.el-cascader-menu:last-child{border-right:none}.el-cascader-menu:last-child .el-cascader-node{padding-right:20px}.el-cascader-menu__wrap.el-scrollbar__wrap{height:204px}.el-cascader-menu__list{position:relative;min-height:100%;margin:0;padding:6px 0;list-style:none;box-sizing:border-box}.el-cascader-menu__hover-zone{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.el-cascader-menu__empty-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;color:var(--el-cascader-color-empty)}.el-cascader-menu__empty-text .is-loading{margin-right:2px}.el-cascader-node{position:relative;display:flex;align-items:center;padding:0 30px 0 20px;height:34px;line-height:34px;outline:0}.el-cascader-node.is-selectable.in-active-path{color:var(--el-cascader-menu-text-color)}.el-cascader-node.in-active-path,.el-cascader-node.is-active,.el-cascader-node.is-selectable.in-checked-path{color:var(--el-cascader-menu-selected-text-color);font-weight:700}.el-cascader-node:not(.is-disabled){cursor:pointer}.el-cascader-node:not(.is-disabled):focus,.el-cascader-node:not(.is-disabled):hover{background:var(--el-cascader-node-background-hover)}.el-cascader-node.is-disabled{color:var(--el-cascader-node-color-disabled);cursor:not-allowed}.el-cascader-node__prefix{position:absolute;left:10px}.el-cascader-node__postfix{position:absolute;right:10px}.el-cascader-node__label{flex:1;text-align:left;padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.el-cascader-node>.el-checkbox{margin-right:0}.el-cascader-node>.el-radio{margin-right:0}.el-cascader-node>.el-radio .el-radio__label{padding-left:0}.el-cascader{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color);display:inline-block;vertical-align:middle;position:relative;font-size:var(--el-font-size-base);line-height:32px;outline:0}.el-cascader:not(.is-disabled):hover .el-input__wrapper{cursor:pointer;box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-cascader .el-input{display:flex;cursor:pointer}.el-cascader .el-input .el-input__inner{text-overflow:ellipsis;cursor:pointer}.el-cascader .el-input .el-input__inner::-moz-selection{outline:0}.el-cascader .el-input .el-input__inner::selection{outline:0}.el-cascader .el-input .el-input__suffix-inner .el-icon{height:calc(100% - 2px)}.el-cascader .el-input .el-input__suffix-inner .el-icon svg{vertical-align:middle}.el-cascader .el-input .icon-arrow-down{transition:transform var(--el-transition-duration);font-size:14px}.el-cascader .el-input .icon-arrow-down.is-reverse{transform:rotate(180deg)}.el-cascader .el-input .icon-circle-close:hover{color:var(--el-input-clear-hover-color,var(--el-text-color-secondary))}.el-cascader .el-input.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-cascader--large{font-size:14px;line-height:40px}.el-cascader--small{font-size:12px;line-height:24px}.el-cascader.is-disabled .el-cascader__label{z-index:calc(var(--el-index-normal) + 1);color:var(--el-disabled-text-color)}.el-cascader__dropdown{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color)}.el-cascader__dropdown{font-size:var(--el-cascader-menu-font-size);border-radius:var(--el-cascader-menu-radius)}.el-cascader__dropdown.el-popper{background:var(--el-cascader-menu-fill);border:var(--el-cascader-menu-border);box-shadow:var(--el-cascader-menu-shadow)}.el-cascader__dropdown.el-popper .el-popper__arrow:before{border:var(--el-cascader-menu-border)}.el-cascader__dropdown.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-cascader__dropdown.el-popper{box-shadow:var(--el-cascader-menu-shadow)}.el-cascader__tags{position:absolute;left:0;right:30px;top:50%;transform:translateY(-50%);display:flex;flex-wrap:wrap;line-height:normal;text-align:left;box-sizing:border-box}.el-cascader__tags .el-tag{display:inline-flex;align-items:center;max-width:100%;margin:2px 0 2px 6px;text-overflow:ellipsis;background:var(--el-cascader-tag-background)}.el-cascader__tags .el-tag:not(.is-hit){border-color:transparent}.el-cascader__tags .el-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis}.el-cascader__tags .el-tag .el-icon-close{flex:none;background-color:var(--el-text-color-placeholder);color:var(--el-color-white)}.el-cascader__tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-cascader__collapse-tags{white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap}.el-cascader__collapse-tag{line-height:inherit;height:inherit;display:flex}.el-cascader__suggestion-panel{border-radius:var(--el-cascader-menu-radius)}.el-cascader__suggestion-list{max-height:204px;margin:0;padding:6px 0;font-size:var(--el-font-size-base);color:var(--el-cascader-menu-text-color);text-align:center}.el-cascader__suggestion-item{display:flex;justify-content:space-between;align-items:center;height:34px;padding:0 15px;text-align:left;outline:0;cursor:pointer}.el-cascader__suggestion-item:focus,.el-cascader__suggestion-item:hover{background:var(--el-cascader-node-background-hover)}.el-cascader__suggestion-item.is-checked{color:var(--el-cascader-menu-selected-text-color);font-weight:700}.el-cascader__suggestion-item>span{margin-right:10px}.el-cascader__empty-text{margin:10px 0;color:var(--el-cascader-color-empty)}.el-cascader__search-input{flex:1;height:24px;min-width:60px;margin:2px 0 2px 11px;padding:0;color:var(--el-cascader-menu-text-color);border:none;outline:0;box-sizing:border-box;background:0 0}.el-cascader__search-input::-moz-placeholder{color:transparent}.el-cascader__search-input:-ms-input-placeholder{color:transparent}.el-cascader__search-input::placeholder{color:transparent}.el-check-tag{background-color:var(--el-color-info-light-9);border-radius:var(--el-border-radius-base);color:var(--el-color-info);cursor:pointer;display:inline-block;font-size:var(--el-font-size-base);line-height:var(--el-font-size-base);padding:7px 15px;transition:var(--el-transition-all);font-weight:700}.el-check-tag:hover{background-color:var(--el-color-info-light-7)}.el-check-tag.is-checked{background-color:var(--el-color-primary-light-8);color:var(--el-color-primary)}.el-check-tag.is-checked:hover{background-color:var(--el-color-primary-light-7)}.el-checkbox-button{--el-checkbox-button-checked-bg-color:var(--el-color-primary);--el-checkbox-button-checked-text-color:var(--el-color-white);--el-checkbox-button-checked-border-color:var(--el-color-primary)}.el-checkbox-button{position:relative;display:inline-block}.el-checkbox-button__inner{display:inline-block;line-height:1;font-weight:var(--el-checkbox-font-weight);white-space:nowrap;vertical-align:middle;cursor:pointer;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);border-left:0;color:var(--el-button-text-color,var(--el-text-color-regular));-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;position:relative;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:8px 15px;font-size:var(--el-font-size-base);border-radius:0}.el-checkbox-button__inner.is-round{padding:8px 15px}.el-checkbox-button__inner:hover{color:var(--el-color-primary)}.el-checkbox-button__inner [class*=el-icon-]{line-height:.9}.el-checkbox-button__inner [class*=el-icon-]+span{margin-left:5px}.el-checkbox-button__original{opacity:0;outline:0;position:absolute;margin:0;z-index:-1}.el-checkbox-button.is-checked .el-checkbox-button__inner{color:var(--el-checkbox-button-checked-text-color);background-color:var(--el-checkbox-button-checked-bg-color);border-color:var(--el-checkbox-button-checked-border-color);box-shadow:-1px 0 0 0 var(--el-color-primary-light-7)}.el-checkbox-button.is-checked:first-child .el-checkbox-button__inner{border-left-color:var(--el-checkbox-button-checked-border-color)}.el-checkbox-button.is-disabled .el-checkbox-button__inner{color:var(--el-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none}.el-checkbox-button.is-disabled:first-child .el-checkbox-button__inner{border-left-color:var(--el-button-disabled-border-color,var(--el-border-color-light))}.el-checkbox-button:first-child .el-checkbox-button__inner{border-left:var(--el-border);border-top-left-radius:var(--el-border-radius-base);border-bottom-left-radius:var(--el-border-radius-base);box-shadow:none!important}.el-checkbox-button.is-focus .el-checkbox-button__inner{border-color:var(--el-checkbox-button-checked-border-color)}.el-checkbox-button:last-child .el-checkbox-button__inner{border-top-right-radius:var(--el-border-radius-base);border-bottom-right-radius:var(--el-border-radius-base)}.el-checkbox-button--large .el-checkbox-button__inner{padding:12px 19px;font-size:var(--el-font-size-base);border-radius:0}.el-checkbox-button--large .el-checkbox-button__inner.is-round{padding:12px 19px}.el-checkbox-button--small .el-checkbox-button__inner{padding:5px 11px;font-size:12px;border-radius:0}.el-checkbox-button--small .el-checkbox-button__inner.is-round{padding:5px 11px}.el-checkbox-group{font-size:0;line-height:0}.el-checkbox{--el-checkbox-font-size:14px;--el-checkbox-font-weight:var(--el-font-weight-primary);--el-checkbox-text-color:var(--el-text-color-regular);--el-checkbox-input-height:14px;--el-checkbox-input-width:14px;--el-checkbox-border-radius:var(--el-border-radius-small);--el-checkbox-bg-color:var(--el-fill-color-blank);--el-checkbox-input-border:var(--el-border);--el-checkbox-disabled-border-color:var(--el-border-color);--el-checkbox-disabled-input-fill:var(--el-fill-color-light);--el-checkbox-disabled-icon-color:var(--el-text-color-placeholder);--el-checkbox-disabled-checked-input-fill:var(--el-border-color-extra-light);--el-checkbox-disabled-checked-input-border-color:var(--el-border-color);--el-checkbox-disabled-checked-icon-color:var(--el-text-color-placeholder);--el-checkbox-checked-text-color:var(--el-color-primary);--el-checkbox-checked-input-border-color:var(--el-color-primary);--el-checkbox-checked-bg-color:var(--el-color-primary);--el-checkbox-checked-icon-color:var(--el-color-white);--el-checkbox-input-border-color-hover:var(--el-color-primary)}.el-checkbox{color:var(--el-checkbox-text-color);font-weight:var(--el-checkbox-font-weight);font-size:var(--el-font-size-base);position:relative;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:30px;height:32px}.el-checkbox.is-bordered{padding:0 15px 0 9px;border-radius:var(--el-border-radius-base);border:var(--el-border);box-sizing:border-box}.el-checkbox.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-checkbox.is-bordered.is-disabled{border-color:var(--el-border-color-lighter);cursor:not-allowed}.el-checkbox.is-bordered.el-checkbox--large{padding:0 19px 0 11px;border-radius:var(--el-border-radius-base)}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__label{font-size:var(--el-font-size-base)}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__inner{height:14px;width:14px}.el-checkbox.is-bordered.el-checkbox--small{padding:0 11px 0 7px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner{height:12px;width:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner:after{height:6px;width:2px}.el-checkbox input:focus-visible+.el-checkbox__inner{outline:2px solid var(--el-checkbox-input-border-color-hover);outline-offset:1px;border-radius:var(--el-checkbox-border-radius)}.el-checkbox__input{white-space:nowrap;cursor:pointer;outline:0;display:inline-flex;position:relative}.el-checkbox__input.is-disabled .el-checkbox__inner{background-color:var(--el-checkbox-disabled-input-fill);border-color:var(--el-checkbox-disabled-border-color);cursor:not-allowed}.el-checkbox__input.is-disabled .el-checkbox__inner:after{cursor:not-allowed;border-color:var(--el-checkbox-disabled-icon-color)}.el-checkbox__input.is-disabled .el-checkbox__inner+.el-checkbox__label{cursor:not-allowed}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner:after{border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner:before{background-color:var(--el-checkbox-disabled-checked-icon-color);border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled+span.el-checkbox__label{color:var(--el-disabled-text-color);cursor:not-allowed}.el-checkbox__input.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-checked .el-checkbox__inner:after{transform:rotate(45deg) scaleY(1)}.el-checkbox__input.is-checked+.el-checkbox__label{color:var(--el-checkbox-checked-text-color)}.el-checkbox__input.is-focus:not(.is-checked) .el-checkbox__original:not(:focus-visible){border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-indeterminate .el-checkbox__inner:before{content:"";position:absolute;display:block;background-color:var(--el-checkbox-checked-icon-color);height:2px;transform:scale(.5);left:0;right:0;top:5px}.el-checkbox__input.is-indeterminate .el-checkbox__inner:after{display:none}.el-checkbox__inner{display:inline-block;position:relative;border:var(--el-checkbox-input-border);border-radius:var(--el-checkbox-border-radius);box-sizing:border-box;width:var(--el-checkbox-input-width);height:var(--el-checkbox-input-height);background-color:var(--el-checkbox-bg-color);z-index:var(--el-index-normal);transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46),outline .25s cubic-bezier(.71,-.46,.29,1.46)}.el-checkbox__inner:hover{border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__inner:after{box-sizing:content-box;content:"";border:1px solid var(--el-checkbox-checked-icon-color);border-left:0;border-top:0;height:7px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:3px;transition:transform .15s ease-in 50ms;transform-origin:center}.el-checkbox__original{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.el-checkbox__label{display:inline-block;padding-left:8px;line-height:1;font-size:var(--el-checkbox-font-size)}.el-checkbox.el-checkbox--large{height:40px}.el-checkbox.el-checkbox--large .el-checkbox__label{font-size:14px}.el-checkbox.el-checkbox--large .el-checkbox__inner{width:14px;height:14px}.el-checkbox.el-checkbox--small{height:24px}.el-checkbox.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.el-checkbox--small .el-checkbox__inner{width:12px;height:12px}.el-checkbox.el-checkbox--small .el-checkbox__input.is-indeterminate .el-checkbox__inner:before{top:4px}.el-checkbox.el-checkbox--small .el-checkbox__inner:after{width:2px;height:6px}.el-checkbox:last-of-type{margin-right:0}[class*=el-col-]{box-sizing:border-box}[class*=el-col-].is-guttered{display:block;min-height:1px}.el-col-0,.el-col-0.is-guttered{display:none}.el-col-0{max-width:0%;flex:0 0 0%}.el-col-offset-0{margin-left:0}.el-col-pull-0{position:relative;right:0}.el-col-push-0{position:relative;left:0}.el-col-1{max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-offset-1{margin-left:4.1666666667%}.el-col-pull-1{position:relative;right:4.1666666667%}.el-col-push-1{position:relative;left:4.1666666667%}.el-col-2{max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-offset-2{margin-left:8.3333333333%}.el-col-pull-2{position:relative;right:8.3333333333%}.el-col-push-2{position:relative;left:8.3333333333%}.el-col-3{max-width:12.5%;flex:0 0 12.5%}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{position:relative;right:12.5%}.el-col-push-3{position:relative;left:12.5%}.el-col-4{max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-offset-4{margin-left:16.6666666667%}.el-col-pull-4{position:relative;right:16.6666666667%}.el-col-push-4{position:relative;left:16.6666666667%}.el-col-5{max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-offset-5{margin-left:20.8333333333%}.el-col-pull-5{position:relative;right:20.8333333333%}.el-col-push-5{position:relative;left:20.8333333333%}.el-col-6{max-width:25%;flex:0 0 25%}.el-col-offset-6{margin-left:25%}.el-col-pull-6{position:relative;right:25%}.el-col-push-6{position:relative;left:25%}.el-col-7{max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-offset-7{margin-left:29.1666666667%}.el-col-pull-7{position:relative;right:29.1666666667%}.el-col-push-7{position:relative;left:29.1666666667%}.el-col-8{max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-offset-8{margin-left:33.3333333333%}.el-col-pull-8{position:relative;right:33.3333333333%}.el-col-push-8{position:relative;left:33.3333333333%}.el-col-9{max-width:37.5%;flex:0 0 37.5%}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{position:relative;right:37.5%}.el-col-push-9{position:relative;left:37.5%}.el-col-10{max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-offset-10{margin-left:41.6666666667%}.el-col-pull-10{position:relative;right:41.6666666667%}.el-col-push-10{position:relative;left:41.6666666667%}.el-col-11{max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-offset-11{margin-left:45.8333333333%}.el-col-pull-11{position:relative;right:45.8333333333%}.el-col-push-11{position:relative;left:45.8333333333%}.el-col-12{max-width:50%;flex:0 0 50%}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{position:relative;left:50%}.el-col-13{max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-offset-13{margin-left:54.1666666667%}.el-col-pull-13{position:relative;right:54.1666666667%}.el-col-push-13{position:relative;left:54.1666666667%}.el-col-14{max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-offset-14{margin-left:58.3333333333%}.el-col-pull-14{position:relative;right:58.3333333333%}.el-col-push-14{position:relative;left:58.3333333333%}.el-col-15{max-width:62.5%;flex:0 0 62.5%}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{position:relative;right:62.5%}.el-col-push-15{position:relative;left:62.5%}.el-col-16{max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-offset-16{margin-left:66.6666666667%}.el-col-pull-16{position:relative;right:66.6666666667%}.el-col-push-16{position:relative;left:66.6666666667%}.el-col-17{max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-offset-17{margin-left:70.8333333333%}.el-col-pull-17{position:relative;right:70.8333333333%}.el-col-push-17{position:relative;left:70.8333333333%}.el-col-18{max-width:75%;flex:0 0 75%}.el-col-offset-18{margin-left:75%}.el-col-pull-18{position:relative;right:75%}.el-col-push-18{position:relative;left:75%}.el-col-19{max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-offset-19{margin-left:79.1666666667%}.el-col-pull-19{position:relative;right:79.1666666667%}.el-col-push-19{position:relative;left:79.1666666667%}.el-col-20{max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-offset-20{margin-left:83.3333333333%}.el-col-pull-20{position:relative;right:83.3333333333%}.el-col-push-20{position:relative;left:83.3333333333%}.el-col-21{max-width:87.5%;flex:0 0 87.5%}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{position:relative;right:87.5%}.el-col-push-21{position:relative;left:87.5%}.el-col-22{max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-offset-22{margin-left:91.6666666667%}.el-col-pull-22{position:relative;right:91.6666666667%}.el-col-push-22{position:relative;left:91.6666666667%}.el-col-23{max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-offset-23{margin-left:95.8333333333%}.el-col-pull-23{position:relative;right:95.8333333333%}.el-col-push-23{position:relative;left:95.8333333333%}.el-col-24{max-width:100%;flex:0 0 100%}.el-col-offset-24{margin-left:100%}.el-col-pull-24{position:relative;right:100%}.el-col-push-24{position:relative;left:100%}@media only screen and (max-width:768px){.el-col-xs-0,.el-col-xs-0.is-guttered{display:none}.el-col-xs-0{max-width:0%;flex:0 0 0%}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{position:relative;left:0}.el-col-xs-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-xs-offset-1{margin-left:4.1666666667%}.el-col-xs-pull-1{position:relative;right:4.1666666667%}.el-col-xs-push-1{position:relative;left:4.1666666667%}.el-col-xs-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-xs-offset-2{margin-left:8.3333333333%}.el-col-xs-pull-2{position:relative;right:8.3333333333%}.el-col-xs-push-2{position:relative;left:8.3333333333%}.el-col-xs-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{position:relative;left:12.5%}.el-col-xs-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-xs-offset-4{margin-left:16.6666666667%}.el-col-xs-pull-4{position:relative;right:16.6666666667%}.el-col-xs-push-4{position:relative;left:16.6666666667%}.el-col-xs-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-xs-offset-5{margin-left:20.8333333333%}.el-col-xs-pull-5{position:relative;right:20.8333333333%}.el-col-xs-push-5{position:relative;left:20.8333333333%}.el-col-xs-6{display:block;max-width:25%;flex:0 0 25%}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{position:relative;left:25%}.el-col-xs-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-xs-offset-7{margin-left:29.1666666667%}.el-col-xs-pull-7{position:relative;right:29.1666666667%}.el-col-xs-push-7{position:relative;left:29.1666666667%}.el-col-xs-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-xs-offset-8{margin-left:33.3333333333%}.el-col-xs-pull-8{position:relative;right:33.3333333333%}.el-col-xs-push-8{position:relative;left:33.3333333333%}.el-col-xs-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{position:relative;left:37.5%}.el-col-xs-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-xs-offset-10{margin-left:41.6666666667%}.el-col-xs-pull-10{position:relative;right:41.6666666667%}.el-col-xs-push-10{position:relative;left:41.6666666667%}.el-col-xs-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-xs-offset-11{margin-left:45.8333333333%}.el-col-xs-pull-11{position:relative;right:45.8333333333%}.el-col-xs-push-11{position:relative;left:45.8333333333%}.el-col-xs-12{display:block;max-width:50%;flex:0 0 50%}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{position:relative;left:50%}.el-col-xs-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-xs-offset-13{margin-left:54.1666666667%}.el-col-xs-pull-13{position:relative;right:54.1666666667%}.el-col-xs-push-13{position:relative;left:54.1666666667%}.el-col-xs-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-xs-offset-14{margin-left:58.3333333333%}.el-col-xs-pull-14{position:relative;right:58.3333333333%}.el-col-xs-push-14{position:relative;left:58.3333333333%}.el-col-xs-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{position:relative;left:62.5%}.el-col-xs-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-xs-offset-16{margin-left:66.6666666667%}.el-col-xs-pull-16{position:relative;right:66.6666666667%}.el-col-xs-push-16{position:relative;left:66.6666666667%}.el-col-xs-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-xs-offset-17{margin-left:70.8333333333%}.el-col-xs-pull-17{position:relative;right:70.8333333333%}.el-col-xs-push-17{position:relative;left:70.8333333333%}.el-col-xs-18{display:block;max-width:75%;flex:0 0 75%}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{position:relative;left:75%}.el-col-xs-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-xs-offset-19{margin-left:79.1666666667%}.el-col-xs-pull-19{position:relative;right:79.1666666667%}.el-col-xs-push-19{position:relative;left:79.1666666667%}.el-col-xs-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-xs-offset-20{margin-left:83.3333333333%}.el-col-xs-pull-20{position:relative;right:83.3333333333%}.el-col-xs-push-20{position:relative;left:83.3333333333%}.el-col-xs-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{position:relative;left:87.5%}.el-col-xs-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-xs-offset-22{margin-left:91.6666666667%}.el-col-xs-pull-22{position:relative;right:91.6666666667%}.el-col-xs-push-22{position:relative;left:91.6666666667%}.el-col-xs-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-xs-offset-23{margin-left:95.8333333333%}.el-col-xs-pull-23{position:relative;right:95.8333333333%}.el-col-xs-push-23{position:relative;left:95.8333333333%}.el-col-xs-24{display:block;max-width:100%;flex:0 0 100%}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{position:relative;left:100%}}@media only screen and (min-width:768px){.el-col-sm-0,.el-col-sm-0.is-guttered{display:none}.el-col-sm-0{max-width:0%;flex:0 0 0%}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{position:relative;left:0}.el-col-sm-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-sm-offset-1{margin-left:4.1666666667%}.el-col-sm-pull-1{position:relative;right:4.1666666667%}.el-col-sm-push-1{position:relative;left:4.1666666667%}.el-col-sm-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-sm-offset-2{margin-left:8.3333333333%}.el-col-sm-pull-2{position:relative;right:8.3333333333%}.el-col-sm-push-2{position:relative;left:8.3333333333%}.el-col-sm-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{position:relative;left:12.5%}.el-col-sm-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-sm-offset-4{margin-left:16.6666666667%}.el-col-sm-pull-4{position:relative;right:16.6666666667%}.el-col-sm-push-4{position:relative;left:16.6666666667%}.el-col-sm-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-sm-offset-5{margin-left:20.8333333333%}.el-col-sm-pull-5{position:relative;right:20.8333333333%}.el-col-sm-push-5{position:relative;left:20.8333333333%}.el-col-sm-6{display:block;max-width:25%;flex:0 0 25%}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{position:relative;left:25%}.el-col-sm-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-sm-offset-7{margin-left:29.1666666667%}.el-col-sm-pull-7{position:relative;right:29.1666666667%}.el-col-sm-push-7{position:relative;left:29.1666666667%}.el-col-sm-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-sm-offset-8{margin-left:33.3333333333%}.el-col-sm-pull-8{position:relative;right:33.3333333333%}.el-col-sm-push-8{position:relative;left:33.3333333333%}.el-col-sm-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{position:relative;left:37.5%}.el-col-sm-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-sm-offset-10{margin-left:41.6666666667%}.el-col-sm-pull-10{position:relative;right:41.6666666667%}.el-col-sm-push-10{position:relative;left:41.6666666667%}.el-col-sm-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-sm-offset-11{margin-left:45.8333333333%}.el-col-sm-pull-11{position:relative;right:45.8333333333%}.el-col-sm-push-11{position:relative;left:45.8333333333%}.el-col-sm-12{display:block;max-width:50%;flex:0 0 50%}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{position:relative;left:50%}.el-col-sm-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-sm-offset-13{margin-left:54.1666666667%}.el-col-sm-pull-13{position:relative;right:54.1666666667%}.el-col-sm-push-13{position:relative;left:54.1666666667%}.el-col-sm-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-sm-offset-14{margin-left:58.3333333333%}.el-col-sm-pull-14{position:relative;right:58.3333333333%}.el-col-sm-push-14{position:relative;left:58.3333333333%}.el-col-sm-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{position:relative;left:62.5%}.el-col-sm-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-sm-offset-16{margin-left:66.6666666667%}.el-col-sm-pull-16{position:relative;right:66.6666666667%}.el-col-sm-push-16{position:relative;left:66.6666666667%}.el-col-sm-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-sm-offset-17{margin-left:70.8333333333%}.el-col-sm-pull-17{position:relative;right:70.8333333333%}.el-col-sm-push-17{position:relative;left:70.8333333333%}.el-col-sm-18{display:block;max-width:75%;flex:0 0 75%}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{position:relative;left:75%}.el-col-sm-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-sm-offset-19{margin-left:79.1666666667%}.el-col-sm-pull-19{position:relative;right:79.1666666667%}.el-col-sm-push-19{position:relative;left:79.1666666667%}.el-col-sm-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-sm-offset-20{margin-left:83.3333333333%}.el-col-sm-pull-20{position:relative;right:83.3333333333%}.el-col-sm-push-20{position:relative;left:83.3333333333%}.el-col-sm-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{position:relative;left:87.5%}.el-col-sm-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-sm-offset-22{margin-left:91.6666666667%}.el-col-sm-pull-22{position:relative;right:91.6666666667%}.el-col-sm-push-22{position:relative;left:91.6666666667%}.el-col-sm-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-sm-offset-23{margin-left:95.8333333333%}.el-col-sm-pull-23{position:relative;right:95.8333333333%}.el-col-sm-push-23{position:relative;left:95.8333333333%}.el-col-sm-24{display:block;max-width:100%;flex:0 0 100%}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{position:relative;left:100%}}@media only screen and (min-width:992px){.el-col-md-0,.el-col-md-0.is-guttered{display:none}.el-col-md-0{max-width:0%;flex:0 0 0%}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{position:relative;left:0}.el-col-md-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-md-offset-1{margin-left:4.1666666667%}.el-col-md-pull-1{position:relative;right:4.1666666667%}.el-col-md-push-1{position:relative;left:4.1666666667%}.el-col-md-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-md-offset-2{margin-left:8.3333333333%}.el-col-md-pull-2{position:relative;right:8.3333333333%}.el-col-md-push-2{position:relative;left:8.3333333333%}.el-col-md-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{position:relative;left:12.5%}.el-col-md-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-md-offset-4{margin-left:16.6666666667%}.el-col-md-pull-4{position:relative;right:16.6666666667%}.el-col-md-push-4{position:relative;left:16.6666666667%}.el-col-md-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-md-offset-5{margin-left:20.8333333333%}.el-col-md-pull-5{position:relative;right:20.8333333333%}.el-col-md-push-5{position:relative;left:20.8333333333%}.el-col-md-6{display:block;max-width:25%;flex:0 0 25%}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{position:relative;left:25%}.el-col-md-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-md-offset-7{margin-left:29.1666666667%}.el-col-md-pull-7{position:relative;right:29.1666666667%}.el-col-md-push-7{position:relative;left:29.1666666667%}.el-col-md-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-md-offset-8{margin-left:33.3333333333%}.el-col-md-pull-8{position:relative;right:33.3333333333%}.el-col-md-push-8{position:relative;left:33.3333333333%}.el-col-md-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{position:relative;left:37.5%}.el-col-md-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-md-offset-10{margin-left:41.6666666667%}.el-col-md-pull-10{position:relative;right:41.6666666667%}.el-col-md-push-10{position:relative;left:41.6666666667%}.el-col-md-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-md-offset-11{margin-left:45.8333333333%}.el-col-md-pull-11{position:relative;right:45.8333333333%}.el-col-md-push-11{position:relative;left:45.8333333333%}.el-col-md-12{display:block;max-width:50%;flex:0 0 50%}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{position:relative;left:50%}.el-col-md-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-md-offset-13{margin-left:54.1666666667%}.el-col-md-pull-13{position:relative;right:54.1666666667%}.el-col-md-push-13{position:relative;left:54.1666666667%}.el-col-md-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-md-offset-14{margin-left:58.3333333333%}.el-col-md-pull-14{position:relative;right:58.3333333333%}.el-col-md-push-14{position:relative;left:58.3333333333%}.el-col-md-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{position:relative;left:62.5%}.el-col-md-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-md-offset-16{margin-left:66.6666666667%}.el-col-md-pull-16{position:relative;right:66.6666666667%}.el-col-md-push-16{position:relative;left:66.6666666667%}.el-col-md-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-md-offset-17{margin-left:70.8333333333%}.el-col-md-pull-17{position:relative;right:70.8333333333%}.el-col-md-push-17{position:relative;left:70.8333333333%}.el-col-md-18{display:block;max-width:75%;flex:0 0 75%}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{position:relative;left:75%}.el-col-md-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-md-offset-19{margin-left:79.1666666667%}.el-col-md-pull-19{position:relative;right:79.1666666667%}.el-col-md-push-19{position:relative;left:79.1666666667%}.el-col-md-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-md-offset-20{margin-left:83.3333333333%}.el-col-md-pull-20{position:relative;right:83.3333333333%}.el-col-md-push-20{position:relative;left:83.3333333333%}.el-col-md-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{position:relative;left:87.5%}.el-col-md-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-md-offset-22{margin-left:91.6666666667%}.el-col-md-pull-22{position:relative;right:91.6666666667%}.el-col-md-push-22{position:relative;left:91.6666666667%}.el-col-md-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-md-offset-23{margin-left:95.8333333333%}.el-col-md-pull-23{position:relative;right:95.8333333333%}.el-col-md-push-23{position:relative;left:95.8333333333%}.el-col-md-24{display:block;max-width:100%;flex:0 0 100%}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{position:relative;left:100%}}@media only screen and (min-width:1200px){.el-col-lg-0,.el-col-lg-0.is-guttered{display:none}.el-col-lg-0{max-width:0%;flex:0 0 0%}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{position:relative;left:0}.el-col-lg-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-lg-offset-1{margin-left:4.1666666667%}.el-col-lg-pull-1{position:relative;right:4.1666666667%}.el-col-lg-push-1{position:relative;left:4.1666666667%}.el-col-lg-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-lg-offset-2{margin-left:8.3333333333%}.el-col-lg-pull-2{position:relative;right:8.3333333333%}.el-col-lg-push-2{position:relative;left:8.3333333333%}.el-col-lg-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{position:relative;left:12.5%}.el-col-lg-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-lg-offset-4{margin-left:16.6666666667%}.el-col-lg-pull-4{position:relative;right:16.6666666667%}.el-col-lg-push-4{position:relative;left:16.6666666667%}.el-col-lg-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-lg-offset-5{margin-left:20.8333333333%}.el-col-lg-pull-5{position:relative;right:20.8333333333%}.el-col-lg-push-5{position:relative;left:20.8333333333%}.el-col-lg-6{display:block;max-width:25%;flex:0 0 25%}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{position:relative;left:25%}.el-col-lg-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-lg-offset-7{margin-left:29.1666666667%}.el-col-lg-pull-7{position:relative;right:29.1666666667%}.el-col-lg-push-7{position:relative;left:29.1666666667%}.el-col-lg-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-lg-offset-8{margin-left:33.3333333333%}.el-col-lg-pull-8{position:relative;right:33.3333333333%}.el-col-lg-push-8{position:relative;left:33.3333333333%}.el-col-lg-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{position:relative;left:37.5%}.el-col-lg-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-lg-offset-10{margin-left:41.6666666667%}.el-col-lg-pull-10{position:relative;right:41.6666666667%}.el-col-lg-push-10{position:relative;left:41.6666666667%}.el-col-lg-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-lg-offset-11{margin-left:45.8333333333%}.el-col-lg-pull-11{position:relative;right:45.8333333333%}.el-col-lg-push-11{position:relative;left:45.8333333333%}.el-col-lg-12{display:block;max-width:50%;flex:0 0 50%}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{position:relative;left:50%}.el-col-lg-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-lg-offset-13{margin-left:54.1666666667%}.el-col-lg-pull-13{position:relative;right:54.1666666667%}.el-col-lg-push-13{position:relative;left:54.1666666667%}.el-col-lg-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-lg-offset-14{margin-left:58.3333333333%}.el-col-lg-pull-14{position:relative;right:58.3333333333%}.el-col-lg-push-14{position:relative;left:58.3333333333%}.el-col-lg-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{position:relative;left:62.5%}.el-col-lg-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-lg-offset-16{margin-left:66.6666666667%}.el-col-lg-pull-16{position:relative;right:66.6666666667%}.el-col-lg-push-16{position:relative;left:66.6666666667%}.el-col-lg-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-lg-offset-17{margin-left:70.8333333333%}.el-col-lg-pull-17{position:relative;right:70.8333333333%}.el-col-lg-push-17{position:relative;left:70.8333333333%}.el-col-lg-18{display:block;max-width:75%;flex:0 0 75%}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{position:relative;left:75%}.el-col-lg-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-lg-offset-19{margin-left:79.1666666667%}.el-col-lg-pull-19{position:relative;right:79.1666666667%}.el-col-lg-push-19{position:relative;left:79.1666666667%}.el-col-lg-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-lg-offset-20{margin-left:83.3333333333%}.el-col-lg-pull-20{position:relative;right:83.3333333333%}.el-col-lg-push-20{position:relative;left:83.3333333333%}.el-col-lg-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{position:relative;left:87.5%}.el-col-lg-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-lg-offset-22{margin-left:91.6666666667%}.el-col-lg-pull-22{position:relative;right:91.6666666667%}.el-col-lg-push-22{position:relative;left:91.6666666667%}.el-col-lg-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-lg-offset-23{margin-left:95.8333333333%}.el-col-lg-pull-23{position:relative;right:95.8333333333%}.el-col-lg-push-23{position:relative;left:95.8333333333%}.el-col-lg-24{display:block;max-width:100%;flex:0 0 100%}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{position:relative;left:100%}}@media only screen and (min-width:1920px){.el-col-xl-0,.el-col-xl-0.is-guttered{display:none}.el-col-xl-0{max-width:0%;flex:0 0 0%}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{position:relative;left:0}.el-col-xl-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-xl-offset-1{margin-left:4.1666666667%}.el-col-xl-pull-1{position:relative;right:4.1666666667%}.el-col-xl-push-1{position:relative;left:4.1666666667%}.el-col-xl-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-xl-offset-2{margin-left:8.3333333333%}.el-col-xl-pull-2{position:relative;right:8.3333333333%}.el-col-xl-push-2{position:relative;left:8.3333333333%}.el-col-xl-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{position:relative;left:12.5%}.el-col-xl-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-xl-offset-4{margin-left:16.6666666667%}.el-col-xl-pull-4{position:relative;right:16.6666666667%}.el-col-xl-push-4{position:relative;left:16.6666666667%}.el-col-xl-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-xl-offset-5{margin-left:20.8333333333%}.el-col-xl-pull-5{position:relative;right:20.8333333333%}.el-col-xl-push-5{position:relative;left:20.8333333333%}.el-col-xl-6{display:block;max-width:25%;flex:0 0 25%}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{position:relative;left:25%}.el-col-xl-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-xl-offset-7{margin-left:29.1666666667%}.el-col-xl-pull-7{position:relative;right:29.1666666667%}.el-col-xl-push-7{position:relative;left:29.1666666667%}.el-col-xl-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-xl-offset-8{margin-left:33.3333333333%}.el-col-xl-pull-8{position:relative;right:33.3333333333%}.el-col-xl-push-8{position:relative;left:33.3333333333%}.el-col-xl-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{position:relative;left:37.5%}.el-col-xl-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-xl-offset-10{margin-left:41.6666666667%}.el-col-xl-pull-10{position:relative;right:41.6666666667%}.el-col-xl-push-10{position:relative;left:41.6666666667%}.el-col-xl-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-xl-offset-11{margin-left:45.8333333333%}.el-col-xl-pull-11{position:relative;right:45.8333333333%}.el-col-xl-push-11{position:relative;left:45.8333333333%}.el-col-xl-12{display:block;max-width:50%;flex:0 0 50%}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{position:relative;left:50%}.el-col-xl-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-xl-offset-13{margin-left:54.1666666667%}.el-col-xl-pull-13{position:relative;right:54.1666666667%}.el-col-xl-push-13{position:relative;left:54.1666666667%}.el-col-xl-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-xl-offset-14{margin-left:58.3333333333%}.el-col-xl-pull-14{position:relative;right:58.3333333333%}.el-col-xl-push-14{position:relative;left:58.3333333333%}.el-col-xl-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{position:relative;left:62.5%}.el-col-xl-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-xl-offset-16{margin-left:66.6666666667%}.el-col-xl-pull-16{position:relative;right:66.6666666667%}.el-col-xl-push-16{position:relative;left:66.6666666667%}.el-col-xl-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-xl-offset-17{margin-left:70.8333333333%}.el-col-xl-pull-17{position:relative;right:70.8333333333%}.el-col-xl-push-17{position:relative;left:70.8333333333%}.el-col-xl-18{display:block;max-width:75%;flex:0 0 75%}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{position:relative;left:75%}.el-col-xl-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-xl-offset-19{margin-left:79.1666666667%}.el-col-xl-pull-19{position:relative;right:79.1666666667%}.el-col-xl-push-19{position:relative;left:79.1666666667%}.el-col-xl-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-xl-offset-20{margin-left:83.3333333333%}.el-col-xl-pull-20{position:relative;right:83.3333333333%}.el-col-xl-push-20{position:relative;left:83.3333333333%}.el-col-xl-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{position:relative;left:87.5%}.el-col-xl-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-xl-offset-22{margin-left:91.6666666667%}.el-col-xl-pull-22{position:relative;right:91.6666666667%}.el-col-xl-push-22{position:relative;left:91.6666666667%}.el-col-xl-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-xl-offset-23{margin-left:95.8333333333%}.el-col-xl-pull-23{position:relative;right:95.8333333333%}.el-col-xl-push-23{position:relative;left:95.8333333333%}.el-col-xl-24{display:block;max-width:100%;flex:0 0 100%}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{position:relative;left:100%}}.el-collapse{--el-collapse-border-color:var(--el-border-color-lighter);--el-collapse-header-height:48px;--el-collapse-header-bg-color:var(--el-fill-color-blank);--el-collapse-header-text-color:var(--el-text-color-primary);--el-collapse-header-font-size:13px;--el-collapse-content-bg-color:var(--el-fill-color-blank);--el-collapse-content-font-size:13px;--el-collapse-content-text-color:var(--el-text-color-primary);border-top:1px solid var(--el-collapse-border-color);border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item.is-disabled .el-collapse-item__header{color:var(--el-text-color-disabled);cursor:not-allowed}.el-collapse-item__header{display:flex;align-items:center;height:var(--el-collapse-header-height);line-height:var(--el-collapse-header-height);background-color:var(--el-collapse-header-bg-color);color:var(--el-collapse-header-text-color);cursor:pointer;border-bottom:1px solid var(--el-collapse-border-color);font-size:var(--el-collapse-header-font-size);font-weight:500;transition:border-bottom-color var(--el-transition-duration);outline:0}.el-collapse-item__arrow{margin:0 8px 0 auto;transition:transform var(--el-transition-duration);font-weight:300}.el-collapse-item__arrow.is-active{transform:rotate(90deg)}.el-collapse-item__header.focusing:focus:not(:hover){color:var(--el-color-primary)}.el-collapse-item__header.is-active{border-bottom-color:transparent}.el-collapse-item__wrap{will-change:height;background-color:var(--el-collapse-content-bg-color);overflow:hidden;box-sizing:border-box;border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item__content{padding-bottom:25px;font-size:var(--el-collapse-content-font-size);color:var(--el-collapse-content-text-color);line-height:1.7692307692}.el-collapse-item:last-child{margin-bottom:-1px}.el-color-predefine{display:flex;font-size:12px;margin-top:8px;width:280px}.el-color-predefine__colors{display:flex;flex:1;flex-wrap:wrap}.el-color-predefine__color-selector{margin:0 0 8px 8px;width:20px;height:20px;border-radius:4px;cursor:pointer}.el-color-predefine__color-selector:nth-child(10n+1){margin-left:0}.el-color-predefine__color-selector.selected{box-shadow:0 0 3px 2px var(--el-color-primary)}.el-color-predefine__color-selector>div{display:flex;height:100%;border-radius:3px}.el-color-predefine__color-selector.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-hue-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background-color:red;padding:0 2px;float:right}.el-color-hue-slider__bar{position:relative;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);height:100%}.el-color-hue-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid var(--el-border-color-lighter);box-shadow:0 0 2px #0009;z-index:1}.el-color-hue-slider.is-vertical{width:12px;height:180px;padding:2px 0}.el-color-hue-slider.is-vertical .el-color-hue-slider__bar{background:linear-gradient(to bottom,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-svpanel{position:relative;width:280px;height:180px}.el-color-svpanel__black,.el-color-svpanel__white{position:absolute;top:0;left:0;right:0;bottom:0}.el-color-svpanel__white{background:linear-gradient(to right,#fff,rgba(255,255,255,0))}.el-color-svpanel__black{background:linear-gradient(to top,#000,rgba(0,0,0,0))}.el-color-svpanel__cursor{position:absolute}.el-color-svpanel__cursor>div{cursor:head;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;border-radius:50%;transform:translate(-2px,-2px)}.el-color-alpha-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-size:12px 12px;background-position:0 0,6px 0,6px -6px,0 6px}.el-color-alpha-slider__bar{position:relative;background:linear-gradient(to right,rgba(255,255,255,0) 0,var(--el-bg-color) 100%);height:100%}.el-color-alpha-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid var(--el-border-color-lighter);box-shadow:0 0 2px #0009;z-index:1}.el-color-alpha-slider.is-vertical{width:20px;height:180px}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar{background:linear-gradient(to bottom,rgba(255,255,255,0) 0,#fff 100%)}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-dropdown{width:300px}.el-color-dropdown__main-wrapper{margin-bottom:6px}.el-color-dropdown__main-wrapper:after{content:"";display:table;clear:both}.el-color-dropdown__btns{margin-top:12px;text-align:right}.el-color-dropdown__value{float:left;line-height:26px;font-size:12px;color:#000;width:160px}.el-color-picker{display:inline-block;position:relative;line-height:normal}.el-color-picker.is-disabled .el-color-picker__trigger{cursor:not-allowed}.el-color-picker--large{height:40px}.el-color-picker--large .el-color-picker__trigger{height:40px;width:40px}.el-color-picker--large .el-color-picker__mask{height:38px;width:38px}.el-color-picker--small{height:24px}.el-color-picker--small .el-color-picker__trigger{height:24px;width:24px}.el-color-picker--small .el-color-picker__mask{height:22px;width:22px}.el-color-picker--small .el-color-picker__empty,.el-color-picker--small .el-color-picker__icon{transform:scale(.8)}.el-color-picker__mask{height:38px;width:38px;border-radius:4px;position:absolute;top:1px;left:1px;z-index:1;cursor:not-allowed;background-color:#ffffffb3}.el-color-picker__trigger{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;height:32px;width:32px;padding:4px;border:1px solid var(--el-border-color);border-radius:4px;font-size:0;position:relative;cursor:pointer}.el-color-picker__color{position:relative;display:block;box-sizing:border-box;border:1px solid var(--el-text-color-secondary);border-radius:var(--el-border-radius-small);width:100%;height:100%;text-align:center}.el-color-picker__color.is-alpha{background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-size:12px 12px;background-position:0 0,6px 0,6px -6px,0 6px}.el-color-picker__color-inner{display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.el-color-picker .el-color-picker__empty{font-size:12px;color:var(--el-text-color-secondary)}.el-color-picker .el-color-picker__icon{display:inline-flex;justify-content:center;align-items:center;color:#fff;font-size:12px}.el-color-picker__panel{position:absolute;z-index:10;padding:6px;box-sizing:content-box;background-color:#fff;border-radius:var(--el-border-radius-base);box-shadow:var(--el-box-shadow-light)}.el-color-picker__panel.el-popper{border:1px solid var(--el-border-color-lighter)}.el-color-picker,.el-color-picker__panel{--el-color-picker-alpha-bg-a:#ccc;--el-color-picker-alpha-bg-b:transparent}.dark .el-color-picker,.dark .el-color-picker__panel{--el-color-picker-alpha-bg-a:#333333}.el-container{display:flex;flex-direction:row;flex:1;flex-basis:auto;box-sizing:border-box;min-width:0}.el-container.is-vertical{flex-direction:column}.el-date-table{font-size:12px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-date-table.is-week-mode .el-date-table__row:hover .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table.is-week-mode .el-date-table__row:hover td.available:hover{color:var(--el-datepicker-text-color)}.el-date-table.is-week-mode .el-date-table__row:hover td:first-child .el-date-table-cell{margin-left:5px;border-top-left-radius:15px;border-bottom-left-radius:15px}.el-date-table.is-week-mode .el-date-table__row:hover td:last-child .el-date-table-cell{margin-right:5px;border-top-right-radius:15px;border-bottom-right-radius:15px}.el-date-table.is-week-mode .el-date-table__row.current .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table td{width:32px;height:30px;padding:4px 0;box-sizing:border-box;text-align:center;cursor:pointer;position:relative}.el-date-table td .el-date-table-cell{height:30px;padding:3px 0;box-sizing:border-box}.el-date-table td .el-date-table-cell .el-date-table-cell__text{width:24px;height:24px;display:block;margin:0 auto;line-height:24px;position:absolute;left:50%;transform:translate(-50%);border-radius:50%}.el-date-table td.next-month,.el-date-table td.prev-month{color:var(--el-datepicker-off-text-color)}.el-date-table td.today{position:relative}.el-date-table td.today .el-date-table-cell__text{color:var(--el-color-primary);font-weight:700}.el-date-table td.today.end-date .el-date-table-cell__text,.el-date-table td.today.start-date .el-date-table-cell__text{color:#fff}.el-date-table td.available:hover{color:var(--el-datepicker-hover-text-color)}.el-date-table td.in-range .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table td.in-range .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-date-table td.current:not(.disabled) .el-date-table-cell__text{color:#fff;background-color:var(--el-datepicker-active-color)}.el-date-table td.current:not(.disabled):focus-visible .el-date-table-cell__text{outline:2px solid var(--el-datepicker-active-color);outline-offset:1px}.el-date-table td.end-date .el-date-table-cell,.el-date-table td.start-date .el-date-table-cell{color:#fff}.el-date-table td.end-date .el-date-table-cell__text,.el-date-table td.start-date .el-date-table-cell__text{background-color:var(--el-datepicker-active-color)}.el-date-table td.start-date .el-date-table-cell{margin-left:5px;border-top-left-radius:15px;border-bottom-left-radius:15px}.el-date-table td.end-date .el-date-table-cell{margin-right:5px;border-top-right-radius:15px;border-bottom-right-radius:15px}.el-date-table td.disabled .el-date-table-cell{background-color:var(--el-fill-color-light);opacity:1;cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-date-table td.selected .el-date-table-cell{margin-left:5px;margin-right:5px;background-color:var(--el-datepicker-inrange-bg-color);border-radius:15px}.el-date-table td.selected .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-date-table td.selected .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);color:#fff;border-radius:15px}.el-date-table td.week{font-size:80%;color:var(--el-datepicker-header-text-color)}.el-date-table td:focus{outline:0}.el-date-table th{padding:5px;color:var(--el-datepicker-header-text-color);font-weight:400;border-bottom:solid 1px var(--el-border-color-lighter)}.el-month-table{font-size:12px;margin:-1px;border-collapse:collapse}.el-month-table td{text-align:center;padding:8px 0;cursor:pointer}.el-month-table td div{height:48px;padding:6px 0;box-sizing:border-box}.el-month-table td.today .cell{color:var(--el-color-primary);font-weight:700}.el-month-table td.today.end-date .cell,.el-month-table td.today.start-date .cell{color:#fff}.el-month-table td.disabled .cell{background-color:var(--el-fill-color-light);cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-month-table td.disabled .cell:hover{color:var(--el-text-color-placeholder)}.el-month-table td .cell{width:60px;height:36px;display:block;line-height:36px;color:var(--el-datepicker-text-color);margin:0 auto;border-radius:18px}.el-month-table td .cell:hover{color:var(--el-datepicker-hover-text-color)}.el-month-table td.in-range div{background-color:var(--el-datepicker-inrange-bg-color)}.el-month-table td.in-range div:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-month-table td.end-date div,.el-month-table td.start-date div{color:#fff}.el-month-table td.end-date .cell,.el-month-table td.start-date .cell{color:#fff;background-color:var(--el-datepicker-active-color)}.el-month-table td.start-date div{border-top-left-radius:24px;border-bottom-left-radius:24px}.el-month-table td.end-date div{border-top-right-radius:24px;border-bottom-right-radius:24px}.el-month-table td.current:not(.disabled) .cell{color:var(--el-datepicker-active-color)}.el-month-table td:focus-visible{outline:0}.el-month-table td:focus-visible .cell{outline:2px solid var(--el-datepicker-active-color)}.el-year-table{font-size:12px;margin:-1px;border-collapse:collapse}.el-year-table .el-icon{color:var(--el-datepicker-icon-color)}.el-year-table td{text-align:center;padding:20px 3px;cursor:pointer}.el-year-table td.today .cell{color:var(--el-color-primary);font-weight:700}.el-year-table td.disabled .cell{background-color:var(--el-fill-color-light);cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-year-table td.disabled .cell:hover{color:var(--el-text-color-placeholder)}.el-year-table td .cell{width:48px;height:36px;display:block;line-height:36px;color:var(--el-datepicker-text-color);border-radius:18px;margin:0 auto}.el-year-table td .cell:hover{color:var(--el-datepicker-hover-text-color)}.el-year-table td.current:not(.disabled) .cell{color:var(--el-datepicker-active-color)}.el-year-table td:focus-visible{outline:0}.el-year-table td:focus-visible .cell{outline:2px solid var(--el-datepicker-active-color)}.el-time-spinner.has-seconds .el-time-spinner__wrapper{width:33.3%}.el-time-spinner__wrapper{max-height:192px;overflow:auto;display:inline-block;width:50%;vertical-align:top;position:relative}.el-time-spinner__wrapper.el-scrollbar__wrap:not(.el-scrollbar__wrap--hidden-default){padding-bottom:15px}.el-time-spinner__wrapper.is-arrow{box-sizing:border-box;text-align:center;overflow:hidden}.el-time-spinner__wrapper.is-arrow .el-time-spinner__list{transform:translateY(-32px)}.el-time-spinner__wrapper.is-arrow .el-time-spinner__item:hover:not(.is-disabled):not(.is-active){background:var(--el-fill-color-light);cursor:default}.el-time-spinner__arrow{font-size:12px;color:var(--el-text-color-secondary);position:absolute;left:0;width:100%;z-index:var(--el-index-normal);text-align:center;height:30px;line-height:30px;cursor:pointer}.el-time-spinner__arrow:hover{color:var(--el-color-primary)}.el-time-spinner__arrow.arrow-up{top:10px}.el-time-spinner__arrow.arrow-down{bottom:10px}.el-time-spinner__input.el-input{width:70%}.el-time-spinner__input.el-input .el-input__inner{padding:0;text-align:center}.el-time-spinner__list{padding:0;margin:0;list-style:none;text-align:center}.el-time-spinner__list:after,.el-time-spinner__list:before{content:"";display:block;width:100%;height:80px}.el-time-spinner__item{height:32px;line-height:32px;font-size:12px;color:var(--el-text-color-regular)}.el-time-spinner__item:hover:not(.is-disabled):not(.is-active){background:var(--el-fill-color-light);cursor:pointer}.el-time-spinner__item.is-active:not(.is-disabled){color:var(--el-text-color-primary);font-weight:700}.el-time-spinner__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-picker__popper{--el-datepicker-border-color:var(--el-disabled-border-color)}.el-picker__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-datepicker-border-color);box-shadow:var(--el-box-shadow-light)}.el-picker__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-datepicker-border-color)}.el-picker__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-date-editor{--el-date-editor-width:220px;--el-date-editor-monthrange-width:300px;--el-date-editor-daterange-width:350px;--el-date-editor-datetimerange-width:400px;--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);position:relative;display:inline-block;text-align:left}.el-date-editor.el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.el-date-editor.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-date-editor.el-input,.el-date-editor.el-input__wrapper{width:var(--el-date-editor-width);height:var(--el-input-height,var(--el-component-size))}.el-date-editor--monthrange{--el-date-editor-width:var(--el-date-editor-monthrange-width)}.el-date-editor--daterange,.el-date-editor--timerange{--el-date-editor-width:var(--el-date-editor-daterange-width)}.el-date-editor--datetimerange{--el-date-editor-width:var(--el-date-editor-datetimerange-width)}.el-date-editor--dates .el-input__wrapper{text-overflow:ellipsis;white-space:nowrap}.el-date-editor .close-icon,.el-date-editor .clear-icon{cursor:pointer}.el-date-editor .clear-icon:hover{color:var(--el-text-color-secondary)}.el-date-editor .el-range__icon{height:inherit;font-size:14px;color:var(--el-text-color-placeholder);float:left}.el-date-editor .el-range__icon svg{vertical-align:middle}.el-date-editor .el-range-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:0;display:inline-block;height:30px;line-height:30px;margin:0;padding:0;width:39%;text-align:center;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);background-color:transparent}.el-date-editor .el-range-input::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-input:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-input::placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-input::-moz-selection{outline:0}.el-date-editor .el-range-input::selection{outline:0}.el-date-editor .el-range-separator{flex:1;display:inline-flex;justify-content:center;align-items:center;height:100%;padding:0 5px;margin:0;font-size:14px;word-break:keep-all;color:var(--el-text-color-primary)}.el-date-editor .el-range__close-icon{font-size:14px;color:var(--el-text-color-placeholder);height:inherit;width:unset;cursor:pointer}.el-date-editor .el-range__close-icon:hover{color:var(--el-text-color-secondary)}.el-date-editor .el-range__close-icon svg{vertical-align:middle}.el-date-editor .el-range__close-icon--hidden{opacity:0;visibility:hidden}.el-range-editor.el-input__wrapper{display:inline-flex;align-items:center;padding:0 10px}.el-range-editor.is-active,.el-range-editor.is-active:hover{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-range-editor--large{line-height:var(--el-component-size-large)}.el-range-editor--large.el-input__wrapper{height:var(--el-component-size-large)}.el-range-editor--large .el-range-separator{line-height:40px;font-size:14px}.el-range-editor--large .el-range-input{height:38px;line-height:38px;font-size:14px}.el-range-editor--small{line-height:var(--el-component-size-small)}.el-range-editor--small.el-input__wrapper{height:var(--el-component-size-small)}.el-range-editor--small .el-range-separator{line-height:24px;font-size:12px}.el-range-editor--small .el-range-input{height:22px;line-height:22px;font-size:12px}.el-range-editor.is-disabled{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-range-editor.is-disabled:focus,.el-range-editor.is-disabled:hover{border-color:var(--el-disabled-border-color)}.el-range-editor.is-disabled input{background-color:var(--el-disabled-bg-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-range-editor.is-disabled input::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled input:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled input::placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled .el-range-separator{color:var(--el-disabled-text-color)}.el-picker-panel{color:var(--el-text-color-regular);background:var(--el-bg-color-overlay);border-radius:var(--el-border-radius-base);line-height:30px}.el-picker-panel .el-time-panel{margin:5px 0;border:solid 1px var(--el-datepicker-border-color);background-color:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-picker-panel__body-wrapper:after,.el-picker-panel__body:after{content:"";display:table;clear:both}.el-picker-panel__content{position:relative;margin:15px}.el-picker-panel__footer{border-top:1px solid var(--el-datepicker-inner-border-color);padding:4px 12px;text-align:right;background-color:var(--el-bg-color-overlay);position:relative;font-size:0}.el-picker-panel__shortcut{display:block;width:100%;border:0;background-color:transparent;line-height:28px;font-size:14px;color:var(--el-datepicker-text-color);padding-left:12px;text-align:left;outline:0;cursor:pointer}.el-picker-panel__shortcut:hover{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__shortcut.active{background-color:#e6f1fe;color:var(--el-datepicker-active-color)}.el-picker-panel__btn{border:1px solid var(--el-fill-color-darker);color:var(--el-text-color-primary);line-height:24px;border-radius:2px;padding:0 20px;cursor:pointer;background-color:transparent;outline:0;font-size:12px}.el-picker-panel__btn[disabled]{color:var(--el-text-color-disabled);cursor:not-allowed}.el-picker-panel__icon-btn{font-size:12px;color:var(--el-datepicker-icon-color);border:0;background:0 0;cursor:pointer;outline:0;margin-top:8px}.el-picker-panel__icon-btn:hover{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__icon-btn:focus-visible{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__icon-btn.is-disabled{color:var(--el-text-color-disabled)}.el-picker-panel__icon-btn.is-disabled:hover{cursor:not-allowed}.el-picker-panel__icon-btn .el-icon{cursor:pointer;font-size:inherit}.el-picker-panel__link-btn{vertical-align:middle}.el-picker-panel [slot=sidebar],.el-picker-panel__sidebar{position:absolute;top:0;bottom:0;width:110px;border-right:1px solid var(--el-datepicker-inner-border-color);box-sizing:border-box;padding-top:6px;background-color:var(--el-bg-color-overlay);overflow:auto}.el-picker-panel [slot=sidebar]+.el-picker-panel__body,.el-picker-panel__sidebar+.el-picker-panel__body{margin-left:110px}.el-date-picker{--el-datepicker-text-color:var(--el-text-color-regular);--el-datepicker-off-text-color:var(--el-text-color-placeholder);--el-datepicker-header-text-color:var(--el-text-color-regular);--el-datepicker-icon-color:var(--el-text-color-primary);--el-datepicker-border-color:var(--el-disabled-border-color);--el-datepicker-inner-border-color:var(--el-border-color-light);--el-datepicker-inrange-bg-color:var(--el-border-color-extra-light);--el-datepicker-inrange-hover-bg-color:var(--el-border-color-extra-light);--el-datepicker-active-color:var(--el-color-primary);--el-datepicker-hover-text-color:var(--el-color-primary)}.el-date-picker{width:322px}.el-date-picker.has-sidebar.has-time{width:434px}.el-date-picker.has-sidebar{width:438px}.el-date-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-picker .el-picker-panel__content{width:292px}.el-date-picker table{table-layout:fixed;width:100%}.el-date-picker__editor-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-picker__time-header{position:relative;border-bottom:1px solid var(--el-datepicker-inner-border-color);font-size:12px;padding:8px 5px 5px;display:table;width:100%;box-sizing:border-box}.el-date-picker__header{margin:12px;text-align:center}.el-date-picker__header--bordered{margin-bottom:0;padding-bottom:12px;border-bottom:solid 1px var(--el-border-color-lighter)}.el-date-picker__header--bordered+.el-picker-panel__content{margin-top:0}.el-date-picker__header-label{font-size:16px;font-weight:500;padding:0 5px;line-height:22px;text-align:center;cursor:pointer;color:var(--el-text-color-regular)}.el-date-picker__header-label:hover{color:var(--el-datepicker-hover-text-color)}.el-date-picker__header-label:focus-visible{outline:0;color:var(--el-datepicker-hover-text-color)}.el-date-picker__header-label.active{color:var(--el-datepicker-active-color)}.el-date-picker__prev-btn{float:left}.el-date-picker__next-btn{float:right}.el-date-picker__time-wrap{padding:10px;text-align:center}.el-date-picker__time-label{float:left;cursor:pointer;line-height:30px;margin-left:10px}.el-date-picker .el-time-panel{position:absolute}.el-date-range-picker{--el-datepicker-text-color:var(--el-text-color-regular);--el-datepicker-off-text-color:var(--el-text-color-placeholder);--el-datepicker-header-text-color:var(--el-text-color-regular);--el-datepicker-icon-color:var(--el-text-color-primary);--el-datepicker-border-color:var(--el-disabled-border-color);--el-datepicker-inner-border-color:var(--el-border-color-light);--el-datepicker-inrange-bg-color:var(--el-border-color-extra-light);--el-datepicker-inrange-hover-bg-color:var(--el-border-color-extra-light);--el-datepicker-active-color:var(--el-color-primary);--el-datepicker-hover-text-color:var(--el-color-primary)}.el-date-range-picker{width:646px}.el-date-range-picker.has-sidebar{width:756px}.el-date-range-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-range-picker table{table-layout:fixed;width:100%}.el-date-range-picker .el-picker-panel__body{min-width:513px}.el-date-range-picker .el-picker-panel__content{margin:0}.el-date-range-picker__header{position:relative;text-align:center;height:28px}.el-date-range-picker__header [class*=arrow-left]{float:left}.el-date-range-picker__header [class*=arrow-right]{float:right}.el-date-range-picker__header div{font-size:16px;font-weight:500;margin-right:50px}.el-date-range-picker__content{float:left;width:50%;box-sizing:border-box;margin:0;padding:16px}.el-date-range-picker__content.is-left{border-right:1px solid var(--el-datepicker-inner-border-color)}.el-date-range-picker__content .el-date-range-picker__header div{margin-left:50px;margin-right:50px}.el-date-range-picker__editors-wrap{box-sizing:border-box;display:table-cell}.el-date-range-picker__editors-wrap.is-right{text-align:right}.el-date-range-picker__time-header{position:relative;border-bottom:1px solid var(--el-datepicker-inner-border-color);font-size:12px;padding:8px 5px 5px;display:table;width:100%;box-sizing:border-box}.el-date-range-picker__time-header>.el-icon-arrow-right{font-size:20px;vertical-align:middle;display:table-cell;color:var(--el-datepicker-icon-color)}.el-date-range-picker__time-picker-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-range-picker__time-picker-wrap .el-picker-panel{position:absolute;top:13px;right:0;z-index:1;background:#fff}.el-date-range-picker__time-picker-wrap .el-time-panel{position:absolute}.el-time-range-picker{width:354px;overflow:visible}.el-time-range-picker__content{position:relative;text-align:center;padding:10px;z-index:1}.el-time-range-picker__cell{box-sizing:border-box;margin:0;padding:4px 7px 7px;width:50%;display:inline-block}.el-time-range-picker__header{margin-bottom:5px;text-align:center;font-size:14px}.el-time-range-picker__body{border-radius:2px;border:1px solid var(--el-datepicker-border-color)}.el-time-panel{border-radius:2px;position:relative;width:180px;left:0;z-index:var(--el-index-top);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:content-box}.el-time-panel__content{font-size:0;position:relative;overflow:hidden}.el-time-panel__content:after,.el-time-panel__content:before{content:"";top:50%;position:absolute;margin-top:-16px;height:32px;z-index:-1;left:0;right:0;box-sizing:border-box;padding-top:6px;text-align:left}.el-time-panel__content:after{left:50%;margin-left:12%;margin-right:12%}.el-time-panel__content:before{padding-left:50%;margin-right:12%;margin-left:12%;border-top:1px solid var(--el-border-color-light);border-bottom:1px solid var(--el-border-color-light)}.el-time-panel__content.has-seconds:after{left:66.6666666667%}.el-time-panel__content.has-seconds:before{padding-left:33.3333333333%}.el-time-panel__footer{border-top:1px solid var(--el-timepicker-inner-border-color,var(--el-border-color-light));padding:4px;height:36px;line-height:25px;text-align:right;box-sizing:border-box}.el-time-panel__btn{border:none;line-height:28px;padding:0 5px;margin:0 5px;cursor:pointer;background-color:transparent;outline:0;font-size:12px;color:var(--el-text-color-primary)}.el-time-panel__btn.confirm{font-weight:800;color:var(--el-timepicker-active-color,var(--el-color-primary))}.el-descriptions{--el-descriptions-table-border:1px solid var(--el-border-color-lighter);--el-descriptions-item-bordered-label-background:var(--el-fill-color-light);box-sizing:border-box;font-size:var(--el-font-size-base);color:var(--el-text-color-primary)}.el-descriptions__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.el-descriptions__title{color:var(--el-text-color-primary);font-size:16px;font-weight:700}.el-descriptions__body{background-color:var(--el-fill-color-blank)}.el-descriptions__body .el-descriptions__table{border-collapse:collapse;width:100%}.el-descriptions__body .el-descriptions__table .el-descriptions__cell{box-sizing:border-box;text-align:left;font-weight:400;line-height:23px;font-size:14px}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-left{text-align:left}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-center{text-align:center}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-right{text-align:right}.el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{border:var(--el-descriptions-table-border);padding:8px 11px}.el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:12px}.el-descriptions--large{font-size:14px}.el-descriptions--large .el-descriptions__header{margin-bottom:20px}.el-descriptions--large .el-descriptions__header .el-descriptions__title{font-size:16px}.el-descriptions--large .el-descriptions__body .el-descriptions__table .el-descriptions__cell{font-size:14px}.el-descriptions--large .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{padding:12px 15px}.el-descriptions--large .el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:16px}.el-descriptions--small{font-size:12px}.el-descriptions--small .el-descriptions__header{margin-bottom:12px}.el-descriptions--small .el-descriptions__header .el-descriptions__title{font-size:14px}.el-descriptions--small .el-descriptions__body .el-descriptions__table .el-descriptions__cell{font-size:12px}.el-descriptions--small .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{padding:4px 7px}.el-descriptions--small .el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:8px}.el-descriptions__label.el-descriptions__cell.is-bordered-label{font-weight:700;color:var(--el-text-color-regular);background:var(--el-descriptions-item-bordered-label-background)}.el-descriptions__label:not(.is-bordered-label){color:var(--el-text-color-primary);margin-right:16px}.el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:6px}.el-descriptions__content.el-descriptions__cell.is-bordered-content{color:var(--el-text-color-primary)}.el-descriptions__content:not(.is-bordered-label){color:var(--el-text-color-regular)}.el-descriptions--large .el-descriptions__label:not(.is-bordered-label){margin-right:16px}.el-descriptions--large .el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:8px}.el-descriptions--small .el-descriptions__label:not(.is-bordered-label){margin-right:12px}.el-descriptions--small .el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:4px}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{-webkit-animation:v-modal-in var(--el-transition-duration-fast) ease;animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{-webkit-animation:v-modal-out var(--el-transition-duration-fast) ease forwards;animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@-webkit-keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{to{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:var(--el-popup-modal-opacity);background:var(--el-popup-modal-bg-color)}.el-popup-parent--hidden{overflow:hidden}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:20px;--el-dialog-border-radius:var(--el-border-radius-small);position:relative;margin:var(--el-dialog-margin-top,15vh) auto 50px;background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:0!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;margin-bottom:0;height:100%;overflow:auto}.el-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-dialog__header{padding:var(--el-dialog-padding-primary);padding-bottom:10px;margin-right:16px;word-break:break-all}.el-dialog__headerbtn{position:absolute;top:6px;right:0;padding:0;width:54px;height:54px;background:0 0;border:none;outline:0;cursor:pointer;font-size:var(--el-message-close-size,16px)}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{line-height:var(--el-dialog-font-line-height);font-size:var(--el-dialog-title-font-size);color:var(--el-text-color-primary)}.el-dialog__body{padding:calc(var(--el-dialog-padding-primary) + 10px) var(--el-dialog-padding-primary);color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size);word-break:break-all}.el-dialog__footer{padding:var(--el-dialog-padding-primary);padding-top:10px;text-align:right;box-sizing:border-box}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial;padding:25px calc(var(--el-dialog-padding-primary) + 5px) 30px}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-overlay-dialog{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto}.dialog-fade-enter-active{-webkit-animation:modal-fade-in var(--el-transition-duration);animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{-webkit-animation:dialog-fade-in var(--el-transition-duration);animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{-webkit-animation:modal-fade-out var(--el-transition-duration);animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{-webkit-animation:dialog-fade-out var(--el-transition-duration);animation:dialog-fade-out var(--el-transition-duration)}@-webkit-keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@-webkit-keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@-webkit-keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.el-divider{position:relative}.el-divider--horizontal{display:block;height:1px;width:100%;margin:24px 0;border-top:1px var(--el-border-color) var(--el-border-style)}.el-divider--vertical{display:inline-block;width:1px;height:1em;margin:0 8px;vertical-align:middle;position:relative;border-left:1px var(--el-border-color) var(--el-border-style)}.el-divider__text{position:absolute;background-color:var(--el-bg-color);padding:0 20px;font-weight:500;color:var(--el-text-color-primary);font-size:14px}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}.el-drawer{--el-drawer-bg-color:var(--el-dialog-bg-color, var(--el-bg-color));--el-drawer-padding-primary:var(--el-dialog-padding-primary, 20px)}.el-drawer{position:absolute;box-sizing:border-box;background-color:var(--el-drawer-bg-color);display:flex;flex-direction:column;box-shadow:var(--el-box-shadow-dark);overflow:hidden;transition:all var(--el-transition-duration)}.el-drawer .rtl,.el-drawer .ltr,.el-drawer .ttb,.el-drawer .btt{transform:translate(0)}.el-drawer__sr-focus:focus{outline:0!important}.el-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--el-drawer-padding-primary);padding-bottom:0}.el-drawer__header>:first-child{flex:1}.el-drawer__title{margin:0;flex:1;line-height:inherit;font-size:1rem}.el-drawer__footer{padding:var(--el-drawer-padding-primary);padding-top:10px;text-align:right}.el-drawer__close-btn{display:inline-flex;border:none;cursor:pointer;font-size:var(--el-font-size-extra-large);color:inherit;background-color:transparent;outline:0}.el-drawer__close-btn:focus i,.el-drawer__close-btn:hover i{color:var(--el-color-primary)}.el-drawer__body{flex:1;padding:var(--el-drawer-padding-primary);overflow:auto}.el-drawer__body>*{box-sizing:border-box}.el-drawer.ltr,.el-drawer.rtl{height:100%;top:0;bottom:0}.el-drawer.btt,.el-drawer.ttb{width:100%;left:0;right:0}.el-drawer.ltr{left:0}.el-drawer.rtl{right:0}.el-drawer.ttb{top:0}.el-drawer.btt{bottom:0}.el-drawer-fade-enter-active,.el-drawer-fade-leave-active{transition:all var(--el-transition-duration)}.el-drawer-fade-enter-active,.el-drawer-fade-enter-from,.el-drawer-fade-enter-to,.el-drawer-fade-leave-active,.el-drawer-fade-leave-from,.el-drawer-fade-leave-to{overflow:hidden!important}.el-drawer-fade-enter-from,.el-drawer-fade-leave-to{opacity:0}.el-drawer-fade-enter-to,.el-drawer-fade-leave-from{opacity:1}.el-drawer-fade-enter-from .rtl,.el-drawer-fade-leave-to .rtl{transform:translate(100%)}.el-drawer-fade-enter-from .ltr,.el-drawer-fade-leave-to .ltr{transform:translate(-100%)}.el-drawer-fade-enter-from .ttb,.el-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.el-drawer-fade-enter-from .btt,.el-drawer-fade-leave-to .btt{transform:translateY(100%)}.el-dropdown{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10;display:inline-flex;position:relative;color:var(--el-text-color-regular);font-size:var(--el-font-size-base);line-height:1;vertical-align:top}.el-dropdown.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-dropdown__popper{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10}.el-dropdown__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-dropdown-menu-box-shadow)}.el-dropdown__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-dropdown__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-dropdown__popper .el-dropdown-menu{border:none}.el-dropdown__popper .el-dropdown__popper-selfdefine{outline:0}.el-dropdown__popper .el-scrollbar__bar{z-index:calc(var(--el-dropdown-menu-index) + 1)}.el-dropdown__popper .el-dropdown__list{list-style:none;padding:0;margin:0;box-sizing:border-box}.el-dropdown .el-dropdown__caret-button{padding-left:0;padding-right:0;display:inline-flex;justify-content:center;align-items:center;width:32px;border-left:none}.el-dropdown .el-dropdown__caret-button>span{display:inline-flex}.el-dropdown .el-dropdown__caret-button:before{content:"";position:absolute;display:block;width:1px;top:-1px;bottom:-1px;left:0;background:var(--el-overlay-color-lighter)}.el-dropdown .el-dropdown__caret-button.el-button:before{background:var(--el-border-color);opacity:.5}.el-dropdown .el-dropdown__caret-button .el-dropdown__icon{font-size:inherit;padding-left:0}.el-dropdown .el-dropdown-selfdefine{outline:0}.el-dropdown--large .el-dropdown__caret-button{width:40px}.el-dropdown--small .el-dropdown__caret-button{width:24px}.el-dropdown-menu{position:relative;top:0;left:0;z-index:var(--el-dropdown-menu-index);padding:5px 0;margin:0;background-color:var(--el-bg-color-overlay);border:none;border-radius:var(--el-border-radius-base);box-shadow:none;list-style:none}.el-dropdown-menu__item{display:flex;align-items:center;white-space:nowrap;list-style:none;line-height:22px;padding:5px 16px;margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);cursor:pointer;outline:0}.el-dropdown-menu__item:not(.is-disabled):focus{background-color:var(--el-dropdown-menuItem-hover-fill);color:var(--el-dropdown-menuItem-hover-color)}.el-dropdown-menu__item i{margin-right:5px}.el-dropdown-menu__item--divided{margin:6px 0;border-top:1px solid var(--el-border-color-lighter)}.el-dropdown-menu__item.is-disabled{cursor:not-allowed;color:var(--el-text-color-disabled)}.el-dropdown-menu--large{padding:7px 0}.el-dropdown-menu--large .el-dropdown-menu__item{padding:7px 20px;line-height:22px;font-size:14px}.el-dropdown-menu--large .el-dropdown-menu__item--divided{margin:8px 0}.el-dropdown-menu--small{padding:3px 0}.el-dropdown-menu--small .el-dropdown-menu__item{padding:2px 12px;line-height:20px;font-size:12px}.el-dropdown-menu--small .el-dropdown-menu__item--divided{margin:4px 0}.el-empty{--el-empty-padding:40px 0;--el-empty-image-width:160px;--el-empty-description-margin-top:20px;--el-empty-bottom-margin-top:20px;--el-empty-fill-color-0:var(--el-color-white);--el-empty-fill-color-1:#fcfcfd;--el-empty-fill-color-2:#f8f9fb;--el-empty-fill-color-3:#f7f8fc;--el-empty-fill-color-4:#eeeff3;--el-empty-fill-color-5:#edeef2;--el-empty-fill-color-6:#e9ebef;--el-empty-fill-color-7:#e5e7e9;--el-empty-fill-color-8:#e0e3e9;--el-empty-fill-color-9:#d5d7de;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;box-sizing:border-box;padding:var(--el-empty-padding)}.el-empty__image{width:var(--el-empty-image-width)}.el-empty__image img{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%;height:100%;vertical-align:top;-o-object-fit:contain;object-fit:contain}.el-empty__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;width:100%;height:100%;vertical-align:top}.el-empty__description{margin-top:var(--el-empty-description-margin-top)}.el-empty__description p{margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-secondary)}.el-empty__bottom{margin-top:var(--el-empty-bottom-margin-top)}.el-footer{--el-footer-padding:0 20px;--el-footer-height:60px;padding:var(--el-footer-padding);box-sizing:border-box;flex-shrink:0;height:var(--el-footer-height)}.el-form{--el-form-label-font-size:var(--el-font-size-base)}.el-form--label-left .el-form-item__label{justify-content:flex-start}.el-form--label-top .el-form-item{display:block}.el-form--label-top .el-form-item .el-form-item__label{display:block;height:auto;text-align:left;margin-bottom:8px;line-height:22px}.el-form--inline .el-form-item{display:inline-flex;vertical-align:middle;margin-right:32px}.el-form--inline.el-form--label-top{display:flex;flex-wrap:wrap}.el-form--inline.el-form--label-top .el-form-item{display:block}.el-form--large.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:12px;line-height:22px}.el-form--default.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:8px;line-height:22px}.el-form--small.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:4px;line-height:20px}.el-form-item{display:flex;--font-size:14px;margin-bottom:18px}.el-form-item .el-form-item{margin-bottom:0}.el-form-item .el-input__validateIcon{display:none}.el-form-item--large{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:22px}.el-form-item--large .el-form-item__label{height:40px;line-height:40px}.el-form-item--large .el-form-item__content{line-height:40px}.el-form-item--large .el-form-item__error{padding-top:4px}.el-form-item--default{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--default .el-form-item__label{height:32px;line-height:32px}.el-form-item--default .el-form-item__content{line-height:32px}.el-form-item--default .el-form-item__error{padding-top:2px}.el-form-item--small{--font-size:12px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--small .el-form-item__label{height:24px;line-height:24px}.el-form-item--small .el-form-item__content{line-height:24px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item__label-wrap{display:flex}.el-form-item__label{display:inline-flex;justify-content:flex-end;align-items:flex-start;flex:0 0 auto;font-size:var(--el-form-label-font-size);color:var(--el-text-color-regular);height:32px;line-height:32px;padding:0 12px 0 0;box-sizing:border-box}.el-form-item__content{display:flex;flex-wrap:wrap;align-items:center;flex:1;line-height:32px;position:relative;font-size:var(--font-size);min-width:0}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:var(--el-color-danger);font-size:12px;line-height:1;padding-top:2px;position:absolute;top:100%;left:0}.el-form-item__error--inline{position:relative;top:auto;left:auto;display:inline-block;margin-left:10px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:before{content:"*";color:var(--el-color-danger);margin-right:4px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label-wrap>.el-form-item__label:after,.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label:after{content:"*";color:var(--el-color-danger);margin-left:4px}.el-form-item.is-error .el-select-v2__wrapper,.el-form-item.is-error .el-select-v2__wrapper:focus,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner:focus{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input-group__append .el-input__wrapper,.el-form-item.is-error .el-input-group__prepend .el-input__wrapper{box-shadow:0 0 0 1px transparent inset}.el-form-item.is-error .el-input__validateIcon{color:var(--el-color-danger)}.el-form-item--feedback .el-input__validateIcon{display:inline-flex}.el-header{--el-header-padding:0 20px;--el-header-height:60px;padding:var(--el-header-padding);box-sizing:border-box;flex-shrink:0;height:var(--el-header-height)}.el-image-viewer__wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.el-image-viewer__btn{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;border-radius:50%;opacity:.8;cursor:pointer;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__btn .el-icon{font-size:inherit;cursor:pointer}.el-image-viewer__close{top:40px;right:40px;width:40px;height:40px;font-size:40px}.el-image-viewer__canvas{position:static;width:100%;height:100%;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__actions{left:50%;bottom:30px;transform:translate(-50%);width:282px;height:44px;padding:0 23px;background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px}.el-image-viewer__actions__inner{width:100%;height:100%;text-align:justify;cursor:default;font-size:23px;color:#fff;display:flex;align-items:center;justify-content:space-around}.el-image-viewer__prev{top:50%;transform:translateY(-50%);left:40px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__next{top:50%;transform:translateY(-50%);right:40px;text-indent:2px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__close{width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__mask{position:absolute;width:100%;height:100%;top:0;left:0;opacity:.5;background:#000}.viewer-fade-enter-active{-webkit-animation:viewer-fade-in var(--el-transition-duration);animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{-webkit-animation:viewer-fade-out var(--el-transition-duration);animation:viewer-fade-out var(--el-transition-duration)}@-webkit-keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{width:100%;height:100%}.el-image{position:relative;display:inline-block;overflow:hidden}.el-image__inner{vertical-align:top;opacity:1}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{position:absolute;top:0;left:0}.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{display:flex;justify-content:center;align-items:center;font-size:14px;background:var(--el-fill-color-light);color:var(--el-text-color-placeholder);vertical-align:middle}.el-image__preview{cursor:pointer}.el-input-number{position:relative;display:inline-flex;width:150px;line-height:30px}.el-input-number .el-input__wrapper{padding-left:42px;padding-right:42px}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:textfield;text-align:center;line-height:1}.el-input-number .el-input__inner::-webkit-inner-spin-button,.el-input-number .el-input__inner::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.el-input-number__decrease,.el-input-number__increase{display:flex;justify-content:center;align-items:center;height:auto;position:absolute;z-index:1;top:1px;bottom:1px;width:32px;background:var(--el-fill-color-light);color:var(--el-text-color-regular);cursor:pointer;font-size:13px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-input-number__decrease:hover,.el-input-number__increase:hover{color:var(--el-color-primary)}.el-input-number__decrease:hover~.el-input:not(.is-disabled) .el-input_wrapper,.el-input-number__increase:hover~.el-input:not(.is-disabled) .el-input_wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-input-number__decrease.is-disabled,.el-input-number__increase.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-input-number__increase{right:1px;border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0;border-left:var(--el-border)}.el-input-number__decrease{left:1px;border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);border-right:var(--el-border)}.el-input-number.is-disabled .el-input-number__decrease,.el-input-number.is-disabled .el-input-number__increase{border-color:var(--el-disabled-border-color);color:var(--el-disabled-border-color)}.el-input-number.is-disabled .el-input-number__decrease:hover,.el-input-number.is-disabled .el-input-number__increase:hover{color:var(--el-disabled-border-color);cursor:not-allowed}.el-input-number--large{width:180px;line-height:38px}.el-input-number--large .el-input-number__decrease,.el-input-number--large .el-input-number__increase{width:40px;font-size:14px}.el-input-number--large .el-input__wrapper{padding-left:47px;padding-right:47px}.el-input-number--small{width:120px;line-height:22px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{width:24px;font-size:12px}.el-input-number--small .el-input__wrapper{padding-left:31px;padding-right:31px}.el-input-number--small .el-input-number__decrease [class*=el-icon],.el-input-number--small .el-input-number__increase [class*=el-icon]{transform:scale(.9)}.el-input-number.is-without-controls .el-input__wrapper{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__wrapper{padding-left:15px;padding-right:42px}.el-input-number.is-controls-right .el-input-number__decrease,.el-input-number.is-controls-right .el-input-number__increase{--el-input-number-controls-height:15px;height:var(--el-input-number-controls-height);line-height:var(--el-input-number-controls-height)}.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon],.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon]{transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{bottom:auto;left:auto;border-radius:0 var(--el-border-radius-base) 0 0;border-bottom:var(--el-border)}.el-input-number.is-controls-right .el-input-number__decrease{right:1px;top:auto;left:auto;border-right:none;border-left:var(--el-border);border-radius:0 0 var(--el-border-radius-base) 0}.el-input-number.is-controls-right[class*=large] [class*=decrease],.el-input-number.is-controls-right[class*=large] [class*=increase]{--el-input-number-controls-height:19px}.el-input-number.is-controls-right[class*=small] [class*=decrease],.el-input-number.is-controls-right[class*=small] [class*=increase]{--el-input-number-controls-height:11px}.el-textarea{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary)}.el-textarea{position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:var(--el-font-size-base)}.el-textarea__inner{position:relative;display:block;resize:vertical;padding:5px 11px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;font-family:inherit;color:var(--el-input-text-color,var(--el-text-color-regular));background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;-webkit-appearance:none;box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);border:none}.el-textarea__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-textarea__inner:focus{outline:0;box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-textarea .el-input__count{color:var(--el-color-info);background:var(--el-fill-color-blank);position:absolute;font-size:12px;line-height:14px;bottom:5px;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-exceed .el-textarea__inner{border-color:var(--el-color-danger)}.el-textarea.is-exceed .el-input__count{color:var(--el-color-danger)}.el-input{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary)}.el-input{--el-input-height:var(--el-component-size);position:relative;font-size:var(--el-font-size-base);display:inline-flex;width:100%;line-height:var(--el-input-height);box-sizing:border-box;vertical-align:middle}.el-input::-webkit-scrollbar{z-index:11;width:6px}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:var(--el-text-color-disabled)}.el-input::-webkit-scrollbar-corner{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}.el-input .el-input__clear,.el-input .el-input__password{color:var(--el-input-icon-color);font-size:14px;cursor:pointer}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{height:100%;display:inline-flex;align-items:center;color:var(--el-color-info);font-size:12px}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);line-height:initial;display:inline-block;padding-left:8px}.el-input__wrapper{display:inline-flex;flex-grow:1;align-items:center;justify-content:center;padding:1px 11px;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px);width:100%;flex-grow:1;-webkit-appearance:none;color:var(--el-input-text-color,var(--el-text-color-regular));font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);padding:0;outline:0;border:none;background:0 0;box-sizing:border-box}.el-input__inner:focus{outline:0}.el-input__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner[type=password]::-ms-reveal{display:none}.el-input__prefix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__prefix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__prefix-inner>:last-child{margin-right:8px}.el-input__prefix-inner>:first-child,.el-input__prefix-inner>:first-child.el-input__icon{margin-left:0}.el-input__suffix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__suffix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{height:inherit;line-height:inherit;display:flex;justify-content:center;align-items:center;transition:all var(--el-transition-duration);margin-left:8px}.el-input__validateIcon{pointer-events:none}.el-input.is-active .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-color,) inset}.el-input.is-disabled{cursor:not-allowed}.el-input.is-disabled .el-input__wrapper{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset}.el-input.is-disabled .el-input__inner{color:var(--el-disabled-text-color);-webkit-text-fill-color:var(--el-disabled-text-color);cursor:not-allowed}.el-input.is-disabled .el-input__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner::placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-exceed .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-input.is-exceed .el-input__suffix .el-input__count{color:var(--el-color-danger)}.el-input--large{--el-input-height:var(--el-component-size-large);font-size:14px}.el-input--large .el-input__wrapper{padding:1px 15px}.el-input--large .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 40px) - 2px)}.el-input--small{--el-input-height:var(--el-component-size-small);font-size:12px}.el-input--small .el-input__wrapper{padding:1px 7px}.el-input--small .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{display:inline-flex;width:100%;align-items:stretch}.el-input-group__append,.el-input-group__prepend{background-color:var(--el-fill-color-light);color:var(--el-color-info);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;border-radius:var(--el-input-border-radius);padding:0 20px;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:0}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:0 -20px}.el-input-group__append button.el-button,.el-input-group__append button.el-button:hover,.el-input-group__append div.el-select .el-input__wrapper,.el-input-group__append div.el-select:hover .el-input__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-input__wrapper,.el-input-group__prepend div.el-select:hover .el-input__wrapper{border-color:transparent;background-color:transparent;color:inherit}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group__append{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--prepend>.el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper{box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important;z-index:2}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper:focus{outline:0;z-index:2;box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__wrapper{z-index:1;box-shadow:1px 0 0 0 var(--el-input-hover-border-color) inset,1px 0 0 0 var(--el-input-hover-border-color),0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-input-group--append>.el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__wrapper{z-index:2;box-shadow:-1px 0 0 0 var(--el-input-focus-border-color),-1px 0 0 0 var(--el-input-focus-border-color) inset,0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__wrapper{z-index:1;box-shadow:-1px 0 0 0 var(--el-input-hover-border-color),-1px 0 0 0 var(--el-input-hover-border-color) inset,0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-link{--el-link-font-size:var(--el-font-size-base);--el-link-font-weight:var(--el-font-weight-primary);--el-link-text-color:var(--el-text-color-regular);--el-link-hover-text-color:var(--el-color-primary);--el-link-disabled-text-color:var(--el-text-color-placeholder)}.el-link{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;vertical-align:middle;position:relative;text-decoration:none;outline:0;cursor:pointer;padding:0;font-size:var(--el-link-font-size);font-weight:var(--el-link-font-weight);color:var(--el-link-text-color)}.el-link:hover{color:var(--el-link-hover-text-color)}.el-link.is-underline:hover:after{content:"";position:absolute;left:0;right:0;height:0;bottom:0;border-bottom:1px solid var(--el-link-hover-text-color)}.el-link.is-disabled{color:var(--el-link-disabled-text-color);cursor:not-allowed}.el-link [class*=el-icon-]+span{margin-left:5px}.el-link.el-link--default:after{border-color:var(--el-link-hover-text-color)}.el-link__inner{display:inline-flex;justify-content:center;align-items:center}.el-link.el-link--primary{--el-link-text-color:var(--el-color-primary);--el-link-hover-text-color:var(--el-color-primary-light-3);--el-link-disabled-text-color:var(--el-color-primary-light-5)}.el-link.el-link--primary:after{border-color:var(--el-link-text-color)}.el-link.el-link--primary.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--success{--el-link-text-color:var(--el-color-success);--el-link-hover-text-color:var(--el-color-success-light-3);--el-link-disabled-text-color:var(--el-color-success-light-5)}.el-link.el-link--success:after{border-color:var(--el-link-text-color)}.el-link.el-link--success.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning{--el-link-text-color:var(--el-color-warning);--el-link-hover-text-color:var(--el-color-warning-light-3);--el-link-disabled-text-color:var(--el-color-warning-light-5)}.el-link.el-link--warning:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger{--el-link-text-color:var(--el-color-danger);--el-link-hover-text-color:var(--el-color-danger-light-3);--el-link-disabled-text-color:var(--el-color-danger-light-5)}.el-link.el-link--danger:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--error{--el-link-text-color:var(--el-color-error);--el-link-hover-text-color:var(--el-color-error-light-3);--el-link-disabled-text-color:var(--el-color-error-light-5)}.el-link.el-link--error:after{border-color:var(--el-link-text-color)}.el-link.el-link--error.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--info{--el-link-text-color:var(--el-color-info);--el-link-hover-text-color:var(--el-color-info-light-3);--el-link-disabled-text-color:var(--el-color-info-light-5)}.el-link.el-link--info:after{border-color:var(--el-link-text-color)}.el-link.el-link--info.is-underline:hover:after{border-color:var(--el-link-text-color)}:root{--el-loading-spinner-size:42px;--el-loading-fullscreen-spinner-size:50px}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{position:absolute;z-index:2000;background-color:var(--el-mask-color);margin:0;top:0;right:0;bottom:0;left:0;transition:opacity var(--el-transition-duration)}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:calc((0px - var(--el-loading-fullscreen-spinner-size))/ 2)}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:var(--el-loading-fullscreen-spinner-size);width:var(--el-loading-fullscreen-spinner-size)}.el-loading-spinner{top:50%;margin-top:calc((0px - var(--el-loading-spinner-size))/ 2);width:100%;text-align:center;position:absolute}.el-loading-spinner .el-loading-text{color:var(--el-color-primary);margin:3px 0;font-size:14px}.el-loading-spinner .circular{display:inline;height:var(--el-loading-spinner-size);width:var(--el-loading-spinner-size);-webkit-animation:loading-rotate 2s linear infinite;animation:loading-rotate 2s linear infinite}.el-loading-spinner .path{-webkit-animation:loading-dash 1.5s ease-in-out infinite;animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--el-color-primary);stroke-linecap:round}.el-loading-spinner i{color:var(--el-color-primary)}.el-loading-fade-enter-from,.el-loading-fade-leave-to{opacity:0}@-webkit-keyframes loading-rotate{to{transform:rotate(360deg)}}@keyframes loading-rotate{to{transform:rotate(360deg)}}@-webkit-keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.el-main{--el-main-padding:20px;display:block;flex:1;flex-basis:auto;overflow:auto;box-sizing:border-box;padding:var(--el-main-padding)}:root{--el-menu-active-color:var(--el-color-primary);--el-menu-text-color:var(--el-text-color-primary);--el-menu-hover-text-color:var(--el-color-primary);--el-menu-bg-color:var(--el-fill-color-blank);--el-menu-hover-bg-color:var(--el-color-primary-light-9);--el-menu-item-height:56px;--el-menu-sub-item-height:calc(var(--el-menu-item-height) - 6px);--el-menu-horizontal-sub-item-height:36px;--el-menu-item-font-size:var(--el-font-size-base);--el-menu-item-hover-fill:var(--el-color-primary-light-9);--el-menu-border-color:var(--el-border-color);--el-menu-base-level-padding:20px;--el-menu-level-padding:20px;--el-menu-icon-width:24px}.el-menu{border-right:solid 1px var(--el-menu-border-color);list-style:none;position:relative;margin:0;padding-left:0;background-color:var(--el-menu-bg-color);box-sizing:border-box}.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item-group__title,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-sub-menu__title{white-space:nowrap;padding-left:calc(var(--el-menu-base-level-padding) + var(--el-menu-level) * var(--el-menu-level-padding))}.el-menu--horizontal{display:flex;flex-wrap:nowrap;border-bottom:solid 1px var(--el-menu-border-color);border-right:none}.el-menu--horizontal>.el-menu-item{display:inline-flex;justify-content:center;align-items:center;height:100%;margin:0;border-bottom:2px solid transparent;color:var(--el-menu-text-color)}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-menu-item:not(.is-disabled):focus,.el-menu--horizontal>.el-menu-item:not(.is-disabled):hover{background-color:#fff}.el-menu--horizontal>.el-sub-menu:focus,.el-menu--horizontal>.el-sub-menu:hover{outline:0}.el-menu--horizontal>.el-sub-menu:hover .el-sub-menu__title{color:var(--el-menu-hover-text-color)}.el-menu--horizontal>.el-sub-menu.is-active .el-sub-menu__title{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title{height:100%;border-bottom:2px solid transparent;color:var(--el-menu-text-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title:hover{background-color:var(--el-bg-color-overlay)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__icon-arrow{position:static;vertical-align:middle;margin-left:8px;margin-top:-3px}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-sub-menu__title{background-color:var(--el-menu-bg-color);display:flex;align-items:center;height:var(--el-menu-horizontal-sub-item-height);padding:0 10px;color:var(--el-menu-text-color)}.el-menu--horizontal .el-menu .el-sub-menu__title{padding-right:40px}.el-menu--horizontal .el-menu .el-menu-item.is-active,.el-menu--horizontal .el-menu .el-sub-menu.is-active>.el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--horizontal .el-menu-item:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item:not(.is-disabled):hover{outline:0;color:var(--el-menu-hover-text-color);background-color:var(--el-menu-hover-bg-color)}.el-menu--horizontal>.el-menu-item.is-active{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)!important}.el-menu--collapse{width:calc(var(--el-menu-icon-width) + var(--el-menu-base-level-padding) * 2)}.el-menu--collapse>.el-menu-item [class^=el-icon],.el-menu--collapse>.el-sub-menu>.el-sub-menu__title [class^=el-icon]{margin:0;vertical-align:middle;width:var(--el-menu-icon-width);text-align:center}.el-menu--collapse>.el-menu-item .el-sub-menu__icon-arrow,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow{display:none}.el-menu--collapse>.el-menu-item>span,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title>span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}.el-menu--collapse>.el-menu-item.is-active i{color:inherit}.el-menu--collapse .el-menu .el-sub-menu{min-width:200px}.el-menu--collapse .el-sub-menu{position:relative}.el-menu--collapse .el-sub-menu .el-menu{position:absolute;margin-left:5px;top:0;left:100%;z-index:10;border:1px solid var(--el-border-color-light);border-radius:var(--el-border-radius-small);box-shadow:var(--el-box-shadow-light)}.el-menu--collapse .el-sub-menu.is-active .el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--popup{z-index:100;min-width:200px;border:none;padding:5px 0;border-radius:var(--el-border-radius-small);box-shadow:var(--el-box-shadow-light)}.el-menu .el-icon{flex-shrink:0}.el-menu-item{display:flex;align-items:center;height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap}.el-menu-item *{vertical-align:bottom}.el-menu-item i{color:inherit}.el-menu-item:focus,.el-menu-item:hover{outline:0}.el-menu-item:hover{background-color:var(--el-menu-hover-bg-color)}.el-menu-item.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-menu-item [class^=el-icon]{margin-right:5px;width:var(--el-menu-icon-width);text-align:center;font-size:18px;vertical-align:middle}.el-menu-item.is-active{color:var(--el-menu-active-color)}.el-menu-item.is-active i{color:inherit}.el-menu-item .el-menu-tooltip__trigger{position:absolute;left:0;top:0;height:100%;width:100%;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 var(--el-menu-base-level-padding)}.el-sub-menu{list-style:none;margin:0;padding-left:0}.el-sub-menu__title{display:flex;align-items:center;height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap}.el-sub-menu__title *{vertical-align:bottom}.el-sub-menu__title i{color:inherit}.el-sub-menu__title:focus,.el-sub-menu__title:hover{outline:0}.el-sub-menu__title.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu__title:hover{background-color:var(--el-menu-hover-bg-color)}.el-sub-menu .el-menu{border:none}.el-sub-menu .el-menu-item{height:var(--el-menu-sub-item-height);line-height:var(--el-menu-sub-item-height);min-width:200px}.el-sub-menu__hide-arrow .el-sub-menu__icon-arrow{display:none!important}.el-sub-menu.is-active .el-sub-menu__title{border-bottom-color:var(--el-menu-active-color)}.el-sub-menu.is-disabled .el-menu-item,.el-sub-menu.is-disabled .el-sub-menu__title{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu .el-icon{vertical-align:middle;margin-right:5px;width:var(--el-menu-icon-width);text-align:center;font-size:18px}.el-sub-menu .el-icon.el-sub-menu__icon-more{margin-right:0!important}.el-sub-menu .el-sub-menu__icon-arrow{position:absolute;top:50%;right:var(--el-menu-base-level-padding);margin-top:-7px;transition:transform var(--el-transition-duration);font-size:12px;margin-right:0;width:inherit}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{padding:7px 0 7px var(--el-menu-base-level-padding);line-height:normal;font-size:12px;color:var(--el-text-color-secondary)}.horizontal-collapse-transition .el-sub-menu__title .el-sub-menu__icon-arrow{transition:var(--el-transition-duration-fast);opacity:0}.el-message-box{--el-messagebox-title-color:var(--el-text-color-primary);--el-messagebox-width:420px;--el-messagebox-border-radius:4px;--el-messagebox-font-size:var(--el-font-size-large);--el-messagebox-content-font-size:var(--el-font-size-base);--el-messagebox-content-color:var(--el-text-color-regular);--el-messagebox-error-font-size:12px;--el-messagebox-padding-primary:15px}.el-message-box{display:inline-block;max-width:var(--el-messagebox-width);width:100%;padding-bottom:10px;vertical-align:middle;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);border:1px solid var(--el-border-color-lighter);font-size:var(--el-messagebox-font-size);box-shadow:var(--el-box-shadow-light);text-align:left;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}.el-message-box:focus{outline:0!important}.el-overlay.is-message-box .el-overlay-message-box{text-align:center;position:fixed;top:0;right:0;bottom:0;left:0;padding:16px;overflow:auto}.el-overlay.is-message-box .el-overlay-message-box:after{content:"";display:inline-block;height:100%;width:0;vertical-align:middle}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-message-box__header{position:relative;padding:var(--el-messagebox-padding-primary);padding-bottom:10px}.el-message-box__title{padding-left:0;margin-bottom:0;font-size:var(--el-messagebox-font-size);line-height:1;color:var(--el-messagebox-title-color)}.el-message-box__headerbtn{position:absolute;top:var(--el-messagebox-padding-primary);right:var(--el-messagebox-padding-primary);padding:0;border:none;outline:0;background:0 0;font-size:var(--el-message-close-size,16px);cursor:pointer}.el-message-box__headerbtn .el-message-box__close{color:var(--el-color-info);font-size:inherit}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:var(--el-color-primary)}.el-message-box__content{padding:10px var(--el-messagebox-padding-primary);color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{position:relative}.el-message-box__input{padding-top:15px}.el-message-box__input div.invalid>input{border-color:var(--el-color-error)}.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{position:absolute;top:50%;transform:translateY(-50%);font-size:24px!important}.el-message-box__status:before{padding-left:1px}.el-message-box__status.el-icon{position:absolute}.el-message-box__status+.el-message-box__message{padding-left:36px;padding-right:12px;word-break:break-word}.el-message-box__status.el-message-box-icon--success{--el-messagebox-color:var(--el-color-success);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--info{--el-messagebox-color:var(--el-color-info);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--warning{--el-messagebox-color:var(--el-color-warning);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--error{--el-messagebox-color:var(--el-color-error);color:var(--el-messagebox-color)}.el-message-box__message{margin:0}.el-message-box__message p{margin:0;line-height:24px}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);min-height:18px;margin-top:2px}.el-message-box__btns{padding:5px 15px 0;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center}.el-message-box__btns button:nth-child(2){margin-left:10px}.el-message-box__btns-reverse{flex-direction:row-reverse}.el-message-box--center .el-message-box__title{position:relative;display:flex;align-items:center;justify-content:center}.el-message-box--center .el-message-box__status{position:relative;top:auto;padding-right:5px;text-align:center;transform:translateY(-1px)}.el-message-box--center .el-message-box__message{margin-left:0}.el-message-box--center .el-message-box__btns{justify-content:center}.el-message-box--center .el-message-box__content{padding-left:calc(var(--el-messagebox-padding-primary) + 12px);padding-right:calc(var(--el-messagebox-padding-primary) + 12px);text-align:center}.fade-in-linear-enter-active .el-overlay-message-box{-webkit-animation:msgbox-fade-in var(--el-transition-duration);animation:msgbox-fade-in var(--el-transition-duration)}.fade-in-linear-leave-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration) reverse}@-webkit-keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes msgbox-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes msgbox-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.el-message{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:15px 19px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary)}.el-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 32px);box-sizing:border-box;border-radius:var(--el-border-radius-base);border-width:var(--el-border-width);border-style:var(--el-border-style);border-color:var(--el-message-border-color);position:fixed;left:50%;top:20px;transform:translate(-50%);background-color:var(--el-message-bg-color);transition:opacity var(--el-transition-duration),transform .4s,top .4s;padding:var(--el-message-padding);display:flex;align-items:center}.el-message.is-center{justify-content:center}.el-message.is-closable .el-message__content{padding-right:31px}.el-message p{margin:0}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message__icon{margin-right:10px}.el-message .el-message__badge{position:absolute;top:-8px;right:-8px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{position:absolute;top:50%;right:19px;transform:translateY(-50%);cursor:pointer;color:var(--el-message-close-icon-color);font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translate(-50%,-100%)}.el-notification{--el-notification-width:330px;--el-notification-padding:14px 26px 14px 13px;--el-notification-radius:8px;--el-notification-shadow:var(--el-box-shadow-light);--el-notification-border-color:var(--el-border-color-lighter);--el-notification-icon-size:24px;--el-notification-close-font-size:var(--el-message-close-size, 16px);--el-notification-group-margin-left:13px;--el-notification-group-margin-right:8px;--el-notification-content-font-size:var(--el-font-size-base);--el-notification-content-color:var(--el-text-color-regular);--el-notification-title-font-size:16px;--el-notification-title-color:var(--el-text-color-primary);--el-notification-close-color:var(--el-text-color-secondary);--el-notification-close-hover-color:var(--el-text-color-regular)}.el-notification{display:flex;width:var(--el-notification-width);padding:var(--el-notification-padding);border-radius:var(--el-notification-radius);box-sizing:border-box;border:1px solid var(--el-notification-border-color);position:fixed;background-color:var(--el-bg-color-overlay);box-shadow:var(--el-notification-shadow);transition:opacity var(--el-transition-duration),transform var(--el-transition-duration),left var(--el-transition-duration),right var(--el-transition-duration),top .4s,bottom var(--el-transition-duration);overflow-wrap:anywhere;overflow:hidden;z-index:9999}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{margin-left:var(--el-notification-group-margin-left);margin-right:var(--el-notification-group-margin-right)}.el-notification__title{font-weight:700;font-size:var(--el-notification-title-font-size);line-height:var(--el-notification-icon-size);color:var(--el-notification-title-color);margin:0}.el-notification__content{font-size:var(--el-notification-content-font-size);line-height:24px;margin:6px 0 0;color:var(--el-notification-content-color);text-align:justify}.el-notification__content p{margin:0}.el-notification .el-notification__icon{height:var(--el-notification-icon-size);width:var(--el-notification-icon-size);font-size:var(--el-notification-icon-size)}.el-notification .el-notification__closeBtn{position:absolute;top:18px;right:15px;cursor:pointer;color:var(--el-notification-close-color);font-size:var(--el-notification-close-font-size)}.el-notification .el-notification__closeBtn:hover{color:var(--el-notification-close-hover-color)}.el-notification .el-notification--success{--el-notification-icon-color:var(--el-color-success);color:var(--el-notification-icon-color)}.el-notification .el-notification--info{--el-notification-icon-color:var(--el-color-info);color:var(--el-notification-icon-color)}.el-notification .el-notification--warning{--el-notification-icon-color:var(--el-color-warning);color:var(--el-notification-icon-color)}.el-notification .el-notification--error{--el-notification-icon-color:var(--el-color-error);color:var(--el-notification-icon-color)}.el-notification-fade-enter-from.right{right:0;transform:translate(100%)}.el-notification-fade-enter-from.left{left:0;transform:translate(-100%)}.el-notification-fade-leave-to{opacity:0}.el-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--el-overlay-color-lighter);overflow:auto}.el-overlay .el-overlay-root{height:0}.el-page-header.is-contentful .el-page-header__main{border-top:1px solid var(--el-border-color-light);margin-top:16px}.el-page-header__header{display:flex;align-items:center;justify-content:space-between;line-height:24px}.el-page-header__left{display:flex;align-items:center;margin-right:40px;position:relative}.el-page-header__back{display:flex;align-items:center;cursor:pointer}.el-page-header__left .el-divider--vertical{margin:0 16px}.el-page-header__icon{font-size:16px;margin-right:10px;display:flex;align-items:center}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{font-size:18px;color:var(--el-text-color-primary)}.el-page-header__breadcrumb{margin-bottom:16px}.el-pagination{--el-pagination-font-size:14px;--el-pagination-bg-color:var(--el-fill-color-blank);--el-pagination-text-color:var(--el-text-color-primary);--el-pagination-border-radius:3px;--el-pagination-button-color:var(--el-text-color-primary);--el-pagination-button-width:32px;--el-pagination-button-height:32px;--el-pagination-button-disabled-color:var(--el-text-color-placeholder);--el-pagination-button-disabled-bg-color:var(--el-fill-color-blank);--el-pagination-button-bg-color:var(--el-fill-color);--el-pagination-hover-color:var(--el-color-primary);--el-pagination-height-extra-small:24px;--el-pagination-line-height-extra-small:var(--el-pagination-height-extra-small);white-space:nowrap;padding:2px 5px;color:var(--el-pagination-text-color);font-weight:400;display:flex;align-items:center}.el-pagination:after,.el-pagination:before{display:table;content:""}.el-pagination:after{clear:both}.el-pagination button,.el-pagination span:not([class*=suffix]){display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);box-sizing:border-box}.el-pagination .el-input__inner{text-align:center;-moz-appearance:textfield;line-height:normal}.el-pagination .el-select .el-input{width:128px}.el-pagination button{border:none;padding:0 6px;background:0 0}.el-pagination button:focus{outline:0}.el-pagination button:hover{color:var(--el-pagination-hover-color)}.el-pagination button:disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pagination .btn-next,.el-pagination .btn-prev{background:center center no-repeat;background-size:16px;background-color:var(--el-pagination-bg-color);cursor:pointer;margin:0;color:var(--el-pagination-button-color)}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700;width:inherit}.el-pagination .btn-next:focus-visible,.el-pagination .btn-prev:focus-visible{outline:1px solid var(--el-pagination-hover-color);color:var(--el-pagination-hover-color)}.el-pagination .el-pager li.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li,.el-pagination--small .el-pager li.btn-quicknext,.el-pagination--small .el-pager li.btn-quickprev,.el-pagination--small .el-pager li:last-child{border-color:transparent;font-size:var(--el-font-size-extra-small);line-height:var(--el-pagination-line-height-extra-small);height:var(--el-pagination-height-extra-small);min-width:24px}.el-pagination--small .arrow.is-disabled{visibility:hidden}.el-pagination--small .more:before,.el-pagination--small li.more:before{line-height:var(--el-pagination-line-height-extra-small)}.el-pagination--small button,.el-pagination--small span:not([class*=suffix]){height:var(--el-pagination-height-extra-small);line-height:var(--el-pagination-line-height-extra-small);font-size:var(--el-font-size-extra-small)}.el-pagination--small .el-pagination__editor{height:var(--el-pagination-line-height-extra-small)}.el-pagination--small .el-pagination__editor.el-input .el-input__inner{height:var(--el-pagination-height-extra-small)}.el-pagination--small .el-input--small,.el-pagination--small .el-input__inner{height:var(--el-pagination-height-extra-small)!important;line-height:var(--el-pagination-line-height-extra-small)}.el-pagination--small .el-input__suffix,.el-pagination--small .el-input__suffix .el-input__suffix-inner,.el-pagination--small .el-input__suffix .el-input__suffix-inner i.el-select__caret{line-height:var(--el-pagination-line-height-extra-small)}.el-pagination--small .el-select .el-input{width:100px}.el-pagination__sizes{margin:0 16px 0 0;font-weight:400;color:var(--el-text-color-regular)}.el-pagination__sizes+button.btn-prev[type=button]{margin-left:0}.el-pagination__sizes+.el-pager .number:first-child{margin-left:0}.el-pagination__sizes+.el-pager .number:last-child{margin-right:0}.el-pagination__total{margin-right:16px;font-weight:400;color:var(--el-text-color-regular)}.el-pagination__total+button.btn-prev[type=button]{margin-left:0}.el-pagination__total+.el-pager .number:first-child{margin-left:0}.el-pagination__total+.el-pager .number:last-child{margin-right:0}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{margin-left:16px;font-weight:400;color:var(--el-text-color-regular)}.el-pagination__jump .el-input__inner{padding:0 3px}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__rightwrapper{flex:1;display:flex;align-items:center;justify-content:flex-end}.el-pagination__editor{line-height:18px;margin:0 8px;height:var(--el-pagination-button-height);min-width:56px;text-align:center;box-sizing:border-box;border-radius:var(--el-pagination-border-radius)}.el-pagination__editor.el-input{width:50px}.el-pagination__editor.el-input .el-input__inner{height:var(--el-pagination-button-height)}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button,.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{margin:0 4px;background-color:var(--el-pagination-button-bg-color);color:var(--el-text-color-regular);min-width:32px;border-radius:2px}.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .el-pager li.is-disabled{color:var(--el-text-color-placeholder);background-color:var(--el-disabled-bg-color)}.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active{color:var(--el-text-color-secondary);background-color:var(--el-fill-color-dark)}.el-pagination.is-background .btn-next.is-first,.el-pagination.is-background .btn-prev.is-first,.el-pagination.is-background .el-pager li.is-first{margin-left:0}.el-pagination.is-background .btn-next.is-last,.el-pagination.is-background .btn-prev.is-last,.el-pagination.is-background .el-pager li.is-last{margin-right:0}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev{padding:0}.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev:disabled{color:var(--el-text-color-placeholder);background-color:var(--el-disabled-bg-color)}.el-pagination.is-background .btn-next:hover:not([disabled]),.el-pagination.is-background .btn-prev:hover:not([disabled]){color:var(--el-pagination-hover-color)}.el-pagination.is-background .el-pager li:not(.is-disabled):hover{color:var(--el-pagination-hover-color)}.el-pagination.is-background .el-pager li:not(.is-disabled).is-active{background-color:var(--el-color-primary);color:var(--el-color-white);font-weight:700}.el-pagination.is-background.el-pagination--small .btn-next,.el-pagination.is-background.el-pagination--small .btn-prev,.el-pagination.is-background.el-pagination--small .el-pager li{min-width:24px}.el-pagination.is-background .el-pagination__sizes.is-last{margin-left:16px}.el-pager{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;list-style:none;font-size:0;padding:0;margin:0;display:flex;align-items:center}.el-pager li{padding:0 4px;background:var(--el-pagination-bg-color);display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);box-sizing:border-box;cursor:pointer;text-align:center;margin:0 1px}.el-pager li.btn-quickprev:hover,.el-pager li.btn-quicknext:hover{cursor:pointer}.el-pager li.btn-quicknext,.el-pager li.btn-quickprev{line-height:32px;color:var(--el-pagination-button-color)}.el-pager li.btn-quicknext.is-disabled,.el-pager li.btn-quickprev.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-pager li.btn-quicknext svg,.el-pager li.btn-quickprev svg{pointer-events:none}.el-pager li.btn-quicknext:focus-visible,.el-pager li.btn-quickprev:focus-visible{outline:1px solid var(--el-pagination-hover-color);color:var(--el-pagination-hover-color)}.el-pager li.is-active+li{border-left:0}.el-pager li:focus-visible{outline:1px solid var(--el-pagination-hover-color)}.el-pager li:hover{color:var(--el-pagination-hover-color)}.el-pager li.is-active{color:var(--el-pagination-hover-color);cursor:default}.el-pager li.is-active.is-disabled{font-weight:700;color:var(--el-text-color-secondary)}.el-pager+button.btn-next[type=button]{margin-right:0}.el-popconfirm__main{display:flex;align-items:center}.el-popconfirm__icon{margin-right:5px}.el-popconfirm__action{text-align:right;margin-top:8px}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);min-width:150px;border-radius:var(--el-popover-border-radius);border:1px solid var(--el-popover-border-color);padding:var(--el-popover-padding);z-index:var(--el-index-popper);color:var(--el-text-color-regular);line-height:1.4;text-align:justify;font-size:var(--el-popover-font-size);box-shadow:var(--el-box-shadow-light);word-break:break-all;box-sizing:border-box}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}.el-progress{position:relative;line-height:1;display:flex;align-items:center}.el-progress__text{font-size:14px;color:var(--el-text-color-regular);margin-left:5px;min-width:50px;line-height:1}.el-progress__text i{vertical-align:middle;display:block}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{position:absolute;top:50%;left:0;width:100%;text-align:center;margin:0;transform:translateY(-50%)}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{vertical-align:middle;display:inline-block}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{padding-right:0;margin-right:0;display:block}.el-progress--text-inside .el-progress-bar{padding-right:0;margin-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:var(--el-color-success)}.el-progress.is-success .el-progress__text{color:var(--el-color-success)}.el-progress.is-warning .el-progress-bar__inner{background-color:var(--el-color-warning)}.el-progress.is-warning .el-progress__text{color:var(--el-color-warning)}.el-progress.is-exception .el-progress-bar__inner{background-color:var(--el-color-danger)}.el-progress.is-exception .el-progress__text{color:var(--el-color-danger)}.el-progress-bar{flex-grow:1;box-sizing:border-box}.el-progress-bar__outer{height:6px;border-radius:100px;background-color:var(--el-border-color-lighter);overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{position:absolute;left:0;top:0;height:100%;background-color:var(--el-color-primary);text-align:right;border-radius:100px;line-height:1;white-space:nowrap;transition:width .6s ease}.el-progress-bar__inner:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{transform:translateZ(0);-webkit-animation:indeterminate 3s infinite;animation:indeterminate 3s infinite}.el-progress-bar__innerText{display:inline-block;vertical-align:middle;color:#fff;font-size:12px;margin:0 5px}@-webkit-keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@-webkit-keyframes indeterminate{0%{left:-100%}to{left:100%}}@keyframes indeterminate{0%{left:-100%}to{left:100%}}.el-radio-button{--el-radio-button-checked-bg-color:var(--el-color-primary);--el-radio-button-checked-text-color:var(--el-color-white);--el-radio-button-checked-border-color:var(--el-color-primary);--el-radio-button-disabled-checked-fill:var(--el-border-color-extra-light)}.el-radio-button{position:relative;display:inline-block;outline:0}.el-radio-button__inner{display:inline-block;line-height:1;white-space:nowrap;vertical-align:middle;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);font-weight:var(--el-button-font-weight,var(--el-font-weight-primary));border-left:0;color:var(--el-button-text-color,var(--el-text-color-regular));-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;position:relative;cursor:pointer;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:8px 15px;font-size:var(--el-font-size-base);border-radius:0}.el-radio-button__inner.is-round{padding:8px 15px}.el-radio-button__inner:hover{color:var(--el-color-primary)}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-left:var(--el-border);border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);box-shadow:none!important}.el-radio-button__original-radio{opacity:0;outline:0;position:absolute;z-index:-1}.el-radio-button__original-radio:checked+.el-radio-button__inner{color:var(--el-radio-button-checked-text-color,var(--el-color-white));background-color:var(--el-radio-button-checked-bg-color,var(--el-color-primary));border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary))}.el-radio-button__original-radio:focus-visible+.el-radio-button__inner{border-left:var(--el-border);border-left-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));outline:2px solid var(--el-radio-button-checked-border-color);outline-offset:1px;z-index:2;border-radius:var(--el-border-radius-base);box-shadow:none}.el-radio-button__original-radio:disabled+.el-radio-button__inner{color:var(--el-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none}.el-radio-button__original-radio:disabled:checked+.el-radio-button__inner{background-color:var(--el-radio-button-disabled-checked-fill)}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0}.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:var(--el-border-radius-base)}.el-radio-button--large .el-radio-button__inner{padding:12px 19px;font-size:var(--el-font-size-base);border-radius:0}.el-radio-button--large .el-radio-button__inner.is-round{padding:12px 19px}.el-radio-button--small .el-radio-button__inner{padding:5px 11px;font-size:12px;border-radius:0}.el-radio-button--small .el-radio-button__inner.is-round{padding:5px 11px}.el-radio-group{display:inline-flex;align-items:center;flex-wrap:wrap;font-size:0}.el-radio{--el-radio-font-size:var(--el-font-size-base);--el-radio-text-color:var(--el-text-color-regular);--el-radio-font-weight:var(--el-font-weight-primary);--el-radio-input-height:14px;--el-radio-input-width:14px;--el-radio-input-border-radius:var(--el-border-radius-circle);--el-radio-input-bg-color:var(--el-fill-color-blank);--el-radio-input-border:var(--el-border);--el-radio-input-border-color:var(--el-border-color);--el-radio-input-border-color-hover:var(--el-color-primary)}.el-radio{color:var(--el-radio-text-color);font-weight:var(--el-radio-font-weight);position:relative;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;outline:0;font-size:var(--el-font-size-base);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:32px;height:32px}.el-radio.el-radio--large{height:40px}.el-radio.el-radio--small{height:24px}.el-radio.is-bordered{padding:0 15px 0 9px;border-radius:var(--el-border-radius-base);border:var(--el-border);box-sizing:border-box}.el-radio.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-radio.is-bordered.is-disabled{cursor:not-allowed;border-color:var(--el-border-color-lighter)}.el-radio.is-bordered.el-radio--large{padding:0 19px 0 11px;border-radius:var(--el-border-radius-base)}.el-radio.is-bordered.el-radio--large .el-radio__label{font-size:var(--el-font-size-base)}.el-radio.is-bordered.el-radio--large .el-radio__inner{height:14px;width:14px}.el-radio.is-bordered.el-radio--small{padding:0 11px 0 7px;border-radius:var(--el-border-radius-base)}.el-radio.is-bordered.el-radio--small .el-radio__label{font-size:12px}.el-radio.is-bordered.el-radio--small .el-radio__inner{height:12px;width:12px}.el-radio:last-child{margin-right:0}.el-radio__input{white-space:nowrap;cursor:pointer;outline:0;display:inline-flex;position:relative;vertical-align:middle}.el-radio__input.is-disabled .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);cursor:not-allowed}.el-radio__input.is-disabled .el-radio__inner:after{cursor:not-allowed;background-color:var(--el-disabled-bg-color)}.el-radio__input.is-disabled .el-radio__inner+.el-radio__label{cursor:not-allowed}.el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color)}.el-radio__input.is-disabled.is-checked .el-radio__inner:after{background-color:var(--el-text-color-placeholder)}.el-radio__input.is-disabled+span.el-radio__label{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-radio__input.is-checked .el-radio__inner{border-color:var(--el-color-primary);background:var(--el-color-primary)}.el-radio__input.is-checked .el-radio__inner:after{transform:translate(-50%,-50%) scale(1)}.el-radio__input.is-checked+.el-radio__label{color:var(--el-color-primary)}.el-radio__input.is-focus .el-radio__inner{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner{border:var(--el-radio-input-border);border-radius:var(--el-radio-input-border-radius);width:var(--el-radio-input-width);height:var(--el-radio-input-height);background-color:var(--el-radio-input-bg-color);position:relative;cursor:pointer;display:inline-block;box-sizing:border-box}.el-radio__inner:hover{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner:after{width:4px;height:4px;border-radius:var(--el-radio-input-border-radius);background-color:var(--el-color-white);content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(0);transition:transform .15s ease-in}.el-radio__original{opacity:0;outline:0;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.el-radio__original:focus-visible+.el-radio__inner{outline:2px solid var(--el-radio-input-border-color-hover);outline-offset:1px;border-radius:var(--el-radio-input-border-radius)}.el-radio:focus:not(:focus-visible):not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner{box-shadow:0 0 2px 2px var(--el-radio-input-border-color-hover)}.el-radio__label{font-size:var(--el-radio-font-size);padding-left:8px}.el-radio.el-radio--large .el-radio__label{font-size:14px}.el-radio.el-radio--large .el-radio__inner{width:14px;height:14px}.el-radio.el-radio--small .el-radio__label{font-size:12px}.el-radio.el-radio--small .el-radio__inner{width:12px;height:12px}.el-rate{--el-rate-height:20px;--el-rate-font-size:var(--el-font-size-base);--el-rate-icon-size:18px;--el-rate-icon-margin:6px;--el-rate-void-color:var(--el-border-color-darker);--el-rate-fill-color:#f7ba2a;--el-rate-disabled-void-color:var(--el-fill-color);--el-rate-text-color:var(--el-text-color-primary)}.el-rate{display:inline-flex;align-items:center;height:32px}.el-rate:active,.el-rate:focus{outline:0}.el-rate__item{cursor:pointer;display:inline-block;position:relative;font-size:0;vertical-align:middle;color:var(--el-rate-void-color);line-height:normal}.el-rate .el-rate__icon{position:relative;display:inline-block;font-size:var(--el-rate-icon-size);margin-right:var(--el-rate-icon-margin);transition:var(--el-transition-duration)}.el-rate .el-rate__icon.hover{transform:scale(1.15)}.el-rate .el-rate__icon .path2{position:absolute;left:0;top:0}.el-rate .el-rate__icon.is-active{color:var(--el-rate-fill-color)}.el-rate__decimal{position:absolute;top:0;left:0;display:inline-block;overflow:hidden;color:var(--el-rate-fill-color)}.el-rate__text{font-size:var(--el-rate-font-size);vertical-align:middle;color:var(--el-rate-text-color)}.el-rate--large{height:40px}.el-rate--small{height:24px}.el-rate.is-disabled .el-rate__item{cursor:auto;color:var(--el-rate-disabled-void-color)}.el-result{--el-result-padding:40px 30px;--el-result-icon-font-size:64px;--el-result-title-font-size:20px;--el-result-title-margin-top:20px;--el-result-subtitle-margin-top:10px;--el-result-extra-margin-top:30px}.el-result{display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;box-sizing:border-box;padding:var(--el-result-padding)}.el-result__icon svg{width:var(--el-result-icon-font-size);height:var(--el-result-icon-font-size)}.el-result__title{margin-top:var(--el-result-title-margin-top)}.el-result__title p{margin:0;font-size:var(--el-result-title-font-size);color:var(--el-text-color-primary);line-height:1.3}.el-result__subtitle{margin-top:var(--el-result-subtitle-margin-top)}.el-result__subtitle p{margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);line-height:1.3}.el-result__extra{margin-top:var(--el-result-extra-margin-top)}.el-result .icon-primary{--el-result-color:var(--el-color-primary);color:var(--el-result-color)}.el-result .icon-success{--el-result-color:var(--el-color-success);color:var(--el-result-color)}.el-result .icon-warning{--el-result-color:var(--el-color-warning);color:var(--el-result-color)}.el-result .icon-danger{--el-result-color:var(--el-color-danger);color:var(--el-result-color)}.el-result .icon-error{--el-result-color:var(--el-color-error);color:var(--el-result-color)}.el-result .icon-info{--el-result-color:var(--el-color-info);color:var(--el-result-color)}.el-row{display:flex;flex-wrap:wrap;position:relative;box-sizing:border-box}.el-row.is-justify-center{justify-content:center}.el-row.is-justify-end{justify-content:flex-end}.el-row.is-justify-space-between{justify-content:space-between}.el-row.is-justify-space-around{justify-content:space-around}.el-row.is-justify-space-evenly{justify-content:space-evenly}.el-row.is-align-middle{align-items:center}.el-row.is-align-bottom{align-items:flex-end}.el-scrollbar{--el-scrollbar-opacity:.3;--el-scrollbar-bg-color:var(--el-text-color-secondary);--el-scrollbar-hover-opacity:.5;--el-scrollbar-hover-bg-color:var(--el-text-color-secondary)}.el-scrollbar{overflow:hidden;position:relative;height:100%}.el-scrollbar__wrap{overflow:auto;height:100%}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:var(--el-scrollbar-bg-color,var(--el-text-color-secondary));transition:var(--el-transition-duration) background-color;opacity:var(--el-scrollbar-opacity,.3)}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color,var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity,.5)}.el-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.el-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0}.el-select-dropdown__option-item.is-selected:not(.is-multiple).is-disabled{color:var(--el-text-color-disabled)}.el-select-dropdown__option-item.is-selected:not(.is-multiple).is-disabled:after{background-color:var(--el-text-color-disabled)}.el-select-dropdown__option-item:hover:not(.hover){background-color:transparent}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-disabled.is-selected{color:var(--el-text-color-disabled)}.el-select-dropdown__list{list-style:none;margin:6px 0!important;padding:0!important;box-sizing:border-box}.el-select-dropdown__option-item{font-size:var(--el-select-font-size);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--el-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.el-select-dropdown__option-item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown__option-item.is-disabled:hover{background-color:var(--el-bg-color)}.el-select-dropdown__option-item.is-selected{background-color:var(--el-fill-color-light);font-weight:700}.el-select-dropdown__option-item.is-selected:not(.is-multiple){color:var(--el-color-primary)}.el-select-dropdown__option-item.hover{background-color:var(--el-fill-color-light)!important}.el-select-dropdown__option-item:hover{background-color:var(--el-fill-color-light)}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-selected{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay)}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-selected .el-icon{position:absolute;right:20px;top:0;height:inherit;font-size:12px}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-selected .el-icon svg{height:inherit;vertical-align:middle}.el-select-group{margin:0;padding:0}.el-select-group__wrap{position:relative;list-style:none;margin:0;padding:0}.el-select-group__wrap:not(:last-of-type){padding-bottom:24px}.el-select-group__wrap:not(:last-of-type):after{content:"";position:absolute;display:block;left:20px;right:20px;bottom:12px;height:1px;background:var(--el-border-color-light)}.el-select-group__split-dash{position:absolute;left:20px;right:20px;height:1px;background:var(--el-border-color-light)}.el-select-group__title{padding-left:20px;font-size:12px;color:var(--el-color-info);line-height:30px}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select-v2{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px}.el-select-v2{display:inline-block;position:relative;vertical-align:middle;font-size:14px}.el-select-v2__wrapper{display:flex;align-items:center;flex-wrap:wrap;position:relative;box-sizing:border-box;cursor:pointer;padding:1px 30px 1px 0;border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);background-color:var(--el-fill-color-blank);transition:var(--el-transition-duration)}.el-select-v2__wrapper:hover{border-color:var(--el-text-color-placeholder)}.el-select-v2__wrapper.is-filterable{cursor:text}.el-select-v2__wrapper.is-focused{border-color:var(--el-color-primary)}.el-select-v2__wrapper.is-hovering:not(.is-focused){border-color:var(--el-border-color-hover)}.el-select-v2__wrapper.is-disabled{cursor:not-allowed;background-color:var(--el-fill-color-light);color:var(--el-text-color-placeholder);border-color:var(--el-select-disabled-border)}.el-select-v2__wrapper.is-disabled:hover{border-color:var(--el-select-disabled-border)}.el-select-v2__wrapper.is-disabled.is-focus{border-color:var(--el-input-focus-border-color)}.el-select-v2__wrapper.is-disabled .is-transparent{opacity:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-select-v2__wrapper.is-disabled .el-select-v2__caret,.el-select-v2__wrapper.is-disabled .el-select-v2__combobox-input{cursor:not-allowed}.el-select-v2__wrapper .el-select-v2__input-wrapper{box-sizing:border-box;position:relative;-webkit-margin-start:12px;margin-inline-start:12px;max-width:100%;overflow:hidden}.el-select-v2__wrapper,.el-select-v2__wrapper .el-select-v2__input-wrapper{line-height:32px}.el-select-v2__wrapper .el-select-v2__input-wrapper input{--el-input-inner-height:calc(var(--el-component-size, 32px) - 8px);height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);min-width:4px;width:100%;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:0 0;border:none;margin:2px 0;outline:0;padding:0}.el-select-v2 .el-select-v2__tags-text{display:inline-block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select-v2__empty{padding:10px 0;margin:0;text-align:center;color:var(--el-text-color-secondary);font-size:14px}.el-select-v2__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-select-v2__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-select-v2__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-select-v2__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-select-v2__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-select-v2__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-select-v2--large .el-select-v2__wrapper .el-select-v2__combobox-input{height:32px}.el-select-v2--large .el-select-v2__caret,.el-select-v2--large .el-select-v2__suffix{height:40px}.el-select-v2--large .el-select-v2__placeholder{font-size:14px;line-height:40px}.el-select-v2--small .el-select-v2__wrapper .el-select-v2__combobox-input{height:16px}.el-select-v2--small .el-select-v2__caret,.el-select-v2--small .el-select-v2__suffix{height:24px}.el-select-v2--small .el-select-v2__placeholder{font-size:12px;line-height:24px}.el-select-v2 .el-select-v2__selection>span{display:inline-block}.el-select-v2:hover .el-select-v2__combobox-input{border-color:var(--el-select-border-color-hover)}.el-select-v2 .el-select__selection-text{text-overflow:ellipsis;display:inline-block;overflow-x:hidden;vertical-align:bottom}.el-select-v2 .el-select-v2__combobox-input{padding-right:35px;display:block;color:var(--el-text-color-regular)}.el-select-v2 .el-select-v2__combobox-input:focus{border-color:var(--el-select-input-focus-border-color)}.el-select-v2__input{border:none;outline:0;padding:0;margin-left:15px;color:var(--el-select-multiple-input-color);font-size:var(--el-select-font-size);-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px}.el-select-v2__input.is-small{height:14px}.el-select-v2__close{cursor:pointer;position:absolute;top:8px;z-index:var(--el-index-top);right:25px;color:var(--el-select-input-color);line-height:18px;font-size:var(--el-select-input-font-size)}.el-select-v2__close:hover{color:var(--el-select-close-hover-color)}.el-select-v2__suffix{display:inline-flex;position:absolute;right:12px;height:32px;top:50%;transform:translateY(-50%);color:var(--el-input-icon-color,var(--el-text-color-placeholder))}.el-select-v2__suffix .el-input__icon{height:inherit}.el-select-v2__caret{color:var(--el-select-input-color);font-size:var(--el-select-input-font-size);transition:var(--el-transition-duration);transform:rotate(180deg);cursor:pointer}.el-select-v2__caret.is-reverse{transform:rotate(0)}.el-select-v2__caret.is-show-close{font-size:var(--el-select-font-size);text-align:center;transform:rotate(180deg);border-radius:var(--el-border-radius-circle);color:var(--el-select-input-color);transition:var(--el-transition-color)}.el-select-v2__caret.is-show-close:hover{color:var(--el-select-close-hover-color)}.el-select-v2__caret.el-icon{height:inherit}.el-select-v2__caret.el-icon svg{vertical-align:middle}.el-select-v2__selection{white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap}.el-select-v2__input-calculator{left:0;position:absolute;top:0;visibility:hidden;white-space:pre;z-index:999}.el-select-v2__selected-item{line-height:inherit;height:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-wrap:wrap}.el-select-v2__placeholder{position:absolute;top:50%;transform:translateY(-50%);-webkit-margin-start:12px;margin-inline-start:12px;width:calc(100% - 52px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--el-input-text-color,var(--el-text-color-regular))}.el-select-v2__placeholder.is-transparent{color:var(--el-text-color-placeholder)}.el-select-v2 .el-select-v2__selection .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 0 2px 6px;background-color:var(--el-fill-color)}.el-select-v2 .el-select-v2__selection .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;color:var(--el-color-white)}.el-select-v2 .el-select-v2__selection .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select-v2 .el-select-v2__selection .el-tag .el-icon-close:before{display:block;transform:translateY(.5px)}.el-select-v2.el-select-v2--small .el-select-v2__selection .el-tag{margin:1px 0 1px 6px;height:18px}.el-select-dropdown{z-index:calc(var(--el-index-top) + 1);border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.hover{background-color:var(--el-fill-color-light)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.is-disabled:after{background-color:var(--el-text-color-disabled)}.el-select-dropdown .el-select-dropdown__option-item.is-selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown .el-select-dropdown__item.is-disabled:hover{background-color:unset}.el-select-dropdown .el-select-dropdown__item.is-disabled.selected{color:var(--el-text-color-disabled)}.el-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:var(--el-text-color-secondary);font-size:var(--el-select-font-size)}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{list-style:none;padding:6px 0;margin:0;box-sizing:border-box}.el-select{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px}.el-select{display:inline-block;position:relative;vertical-align:middle;line-height:32px}.el-select__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-select__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-select__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-select__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-select__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-select__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-select .el-select-tags-wrapper.has-prefix{margin-left:6px}.el-select--large{line-height:40px}.el-select--large .el-select-tags-wrapper.has-prefix{margin-left:8px}.el-select--small{line-height:24px}.el-select--small .el-select-tags-wrapper.has-prefix{margin-left:4px}.el-select .el-select__tags>span{display:inline-block}.el-select:hover:not(.el-select--disabled) .el-input__wrapper{box-shadow:0 0 0 1px var(--el-select-border-color-hover) inset}.el-select .el-select__tags-text{display:inline-block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select .el-input__wrapper{cursor:pointer}.el-select .el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-select-input-focus-border-color) inset!important}.el-select .el-input__inner{cursor:pointer}.el-select .el-input__inner::-moz-selection{outline:0}.el-select .el-input__inner::selection{outline:0}.el-select .el-input{display:flex}.el-select .el-input .el-select__caret{color:var(--el-select-input-color);font-size:var(--el-select-input-font-size);transition:transform var(--el-transition-duration);transform:rotate(0);cursor:pointer}.el-select .el-input .el-select__caret.is-reverse{transform:rotate(-180deg)}.el-select .el-input .el-select__caret.is-show-close{font-size:var(--el-select-font-size);text-align:center;transform:rotate(0);border-radius:var(--el-border-radius-circle);color:var(--el-select-input-color);transition:var(--el-transition-color)}.el-select .el-input .el-select__caret.is-show-close:hover{color:var(--el-select-close-hover-color)}.el-select .el-input .el-select__caret.el-icon{position:relative;height:inherit;z-index:2}.el-select .el-input.is-disabled .el-input__wrapper{cursor:not-allowed}.el-select .el-input.is-disabled .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-select-disabled-border) inset}.el-select .el-input.is-disabled .el-input__inner,.el-select .el-input.is-disabled .el-select__caret{cursor:not-allowed}.el-select .el-input.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-select-input-focus-border-color) inset!important}.el-select__input{border:none;outline:0;padding:0;margin-left:15px;color:var(--el-select-multiple-input-color);font-size:var(--el-select-font-size);-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px;background-color:transparent}.el-select__input.is-small{height:14px}.el-select__close{cursor:pointer;position:absolute;top:8px;z-index:var(--el-index-top);right:25px;color:var(--el-select-input-color);line-height:18px;font-size:var(--el-select-input-font-size)}.el-select__close:hover{color:var(--el-select-close-hover-color)}.el-select__tags{position:absolute;line-height:normal;top:50%;transform:translateY(-50%);white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.el-select__tags .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.el-select__tags .el-tag:last-child{margin-right:0}.el-select__tags .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;top:0;color:#fff}.el-select__tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select__tags .el-tag .el-icon-close:before{display:block;transform:translateY(.5px)}.el-select__tags .el-tag--info{background-color:var(--el-fill-color)}.el-select__collapse-tags{white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.el-select__collapse-tags .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.el-select__collapse-tags .el-tag:last-child{margin-right:0}.el-select__collapse-tags .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;top:0;color:#fff}.el-select__collapse-tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select__collapse-tags .el-tag .el-icon-close:before{display:block;transform:translateY(.5px)}.el-select__collapse-tags .el-tag--info{background-color:var(--el-fill-color)}.el-select__collapse-tag{line-height:inherit;height:inherit;display:flex}.el-skeleton{--el-skeleton-circle-size:var(--el-avatar-size)}.el-skeleton__item{background:var(--el-skeleton-color);display:inline-block;height:16px;border-radius:var(--el-border-radius-base);width:100%}.el-skeleton__circle{border-radius:50%;width:var(--el-skeleton-circle-size);height:var(--el-skeleton-circle-size);line-height:var(--el-skeleton-circle-size)}.el-skeleton__button{height:40px;width:64px;border-radius:4px}.el-skeleton__p{width:100%}.el-skeleton__p.is-last{width:61%}.el-skeleton__p.is-first{width:33%}.el-skeleton__text{width:100%;height:var(--el-font-size-small)}.el-skeleton__caption{height:var(--el-font-size-extra-small)}.el-skeleton__h1{height:var(--el-font-size-extra-large)}.el-skeleton__h3{height:var(--el-font-size-large)}.el-skeleton__h5{height:var(--el-font-size-medium)}.el-skeleton__image{width:unset;display:flex;align-items:center;justify-content:center;border-radius:0}.el-skeleton__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;width:22%;height:22%}.el-skeleton{--el-skeleton-color:var(--el-fill-color);--el-skeleton-to-color:var(--el-fill-color-darker)}@-webkit-keyframes el-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}@keyframes el-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.el-skeleton{width:100%}.el-skeleton__first-line,.el-skeleton__paragraph{height:16px;margin-top:16px;background:var(--el-skeleton-color)}.el-skeleton.is-animated .el-skeleton__item{background:linear-gradient(90deg,var(--el-skeleton-color) 25%,var(--el-skeleton-to-color) 37%,var(--el-skeleton-color) 63%);background-size:400% 100%;-webkit-animation:el-skeleton-loading 1.4s ease infinite;animation:el-skeleton-loading 1.4s ease infinite}.el-slider{--el-slider-main-bg-color:var(--el-color-primary);--el-slider-runway-bg-color:var(--el-border-color-light);--el-slider-stop-bg-color:var(--el-color-white);--el-slider-disabled-color:var(--el-text-color-placeholder);--el-slider-border-radius:3px;--el-slider-height:6px;--el-slider-button-size:20px;--el-slider-button-wrapper-size:36px;--el-slider-button-wrapper-offset:-15px}.el-slider{width:100%;height:32px;display:flex;align-items:center}.el-slider__runway{flex:1;height:var(--el-slider-height);background-color:var(--el-slider-runway-bg-color);border-radius:var(--el-slider-border-radius);position:relative;cursor:pointer}.el-slider__runway.show-input{margin-right:30px;width:auto}.el-slider__runway.is-disabled{cursor:default}.el-slider__runway.is-disabled .el-slider__bar{background-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button{border-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button-wrapper.hover,.el-slider__runway.is-disabled .el-slider__button-wrapper:hover,.el-slider__runway.is-disabled .el-slider__button-wrapper.dragging{cursor:not-allowed}.el-slider__runway.is-disabled .el-slider__button.dragging,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover{transform:scale(1)}.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover,.el-slider__runway.is-disabled .el-slider__button.dragging{cursor:not-allowed}.el-slider__input{flex-shrink:0;width:130px}.el-slider__bar{height:var(--el-slider-height);background-color:var(--el-slider-main-bg-color);border-top-left-radius:var(--el-slider-border-radius);border-bottom-left-radius:var(--el-slider-border-radius);position:absolute}.el-slider__button-wrapper{height:var(--el-slider-button-wrapper-size);width:var(--el-slider-button-wrapper-size);position:absolute;z-index:1;top:var(--el-slider-button-wrapper-offset);transform:translate(-50%);background-color:transparent;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;line-height:normal;outline:0}.el-slider__button-wrapper:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-slider__button-wrapper.hover,.el-slider__button-wrapper:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button-wrapper.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__button{display:inline-block;width:var(--el-slider-button-size);height:var(--el-slider-button-size);vertical-align:middle;border:solid 2px var(--el-slider-main-bg-color);background-color:var(--el-color-white);border-radius:50%;box-sizing:border-box;transition:var(--el-transition-duration-fast);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-slider__button.dragging,.el-slider__button.hover,.el-slider__button:hover{transform:scale(1.2)}.el-slider__button.hover,.el-slider__button:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__stop{position:absolute;height:var(--el-slider-height);width:var(--el-slider-height);border-radius:var(--el-border-radius-circle);background-color:var(--el-slider-stop-bg-color);transform:translate(-50%)}.el-slider__marks{top:0;left:12px;width:18px;height:100%}.el-slider__marks-text{position:absolute;transform:translate(-50%);font-size:14px;color:var(--el-color-info);margin-top:15px;white-space:pre}.el-slider.is-vertical{position:relative;display:inline-flex;width:auto;height:100%;flex:0}.el-slider.is-vertical .el-slider__runway{width:var(--el-slider-height);height:100%;margin:0 16px}.el-slider.is-vertical .el-slider__bar{width:var(--el-slider-height);height:auto;border-radius:0 0 3px 3px}.el-slider.is-vertical .el-slider__button-wrapper{top:auto;left:var(--el-slider-button-wrapper-offset);transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{transform:translateY(50%)}.el-slider.is-vertical .el-slider__marks-text{margin-top:0;left:15px;transform:translateY(50%)}.el-slider--large{height:40px}.el-slider--small{height:24px}.el-space{display:inline-flex;vertical-align:top}.el-space__item{display:flex;flex-wrap:wrap}.el-space__item>*{flex:1}.el-space--vertical{flex-direction:column}.el-time-spinner{width:100%;white-space:nowrap}.el-spinner{display:inline-block;vertical-align:middle}.el-spinner-inner{-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite;width:50px;height:50px}.el-spinner-inner .path{stroke:var(--el-border-color-lighter);stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}@-webkit-keyframes rotate{to{transform:rotate(360deg)}}@keyframes rotate{to{transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}.el-step{position:relative;flex-shrink:1}.el-step:last-of-type .el-step__line{display:none}.el-step:last-of-type.is-flex{flex-basis:auto!important;flex-shrink:0;flex-grow:0}.el-step:last-of-type .el-step__description,.el-step:last-of-type .el-step__main{padding-right:0}.el-step__head{position:relative;width:100%}.el-step__head.is-process{color:var(--el-text-color-primary);border-color:var(--el-text-color-primary)}.el-step__head.is-wait{color:var(--el-text-color-placeholder);border-color:var(--el-text-color-placeholder)}.el-step__head.is-success{color:var(--el-color-success);border-color:var(--el-color-success)}.el-step__head.is-error{color:var(--el-color-danger);border-color:var(--el-color-danger)}.el-step__head.is-finish{color:var(--el-color-primary);border-color:var(--el-color-primary)}.el-step__icon{position:relative;z-index:1;display:inline-flex;justify-content:center;align-items:center;width:24px;height:24px;font-size:14px;box-sizing:border-box;background:var(--el-bg-color);transition:.15s ease-out}.el-step__icon.is-text{border-radius:50%;border:2px solid;border-color:inherit}.el-step__icon.is-icon{width:40px}.el-step__icon-inner{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-align:center;font-weight:700;line-height:1;color:inherit}.el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:25px;font-weight:400}.el-step__icon-inner.is-status{transform:translateY(1px)}.el-step__line{position:absolute;border-color:inherit;background-color:var(--el-text-color-placeholder)}.el-step__line-inner{display:block;border-width:1px;border-style:solid;border-color:inherit;transition:.15s ease-out;box-sizing:border-box;width:0;height:0}.el-step__main{white-space:normal;text-align:left}.el-step__title{font-size:16px;line-height:38px}.el-step__title.is-process{font-weight:700;color:var(--el-text-color-primary)}.el-step__title.is-wait{color:var(--el-text-color-placeholder)}.el-step__title.is-success{color:var(--el-color-success)}.el-step__title.is-error{color:var(--el-color-danger)}.el-step__title.is-finish{color:var(--el-color-primary)}.el-step__description{padding-right:10%;margin-top:-5px;font-size:12px;line-height:20px;font-weight:400}.el-step__description.is-process{color:var(--el-text-color-primary)}.el-step__description.is-wait{color:var(--el-text-color-placeholder)}.el-step__description.is-success{color:var(--el-color-success)}.el-step__description.is-error{color:var(--el-color-danger)}.el-step__description.is-finish{color:var(--el-color-primary)}.el-step.is-horizontal{display:inline-block}.el-step.is-horizontal .el-step__line{height:2px;top:11px;left:0;right:0}.el-step.is-vertical{display:flex}.el-step.is-vertical .el-step__head{flex-grow:0;width:24px}.el-step.is-vertical .el-step__main{padding-left:10px;flex-grow:1}.el-step.is-vertical .el-step__title{line-height:24px;padding-bottom:8px}.el-step.is-vertical .el-step__line{width:2px;top:0;bottom:0;left:11px}.el-step.is-vertical .el-step__icon.is-icon{width:24px}.el-step.is-center .el-step__head,.el-step.is-center .el-step__main{text-align:center}.el-step.is-center .el-step__description{padding-left:20%;padding-right:20%}.el-step.is-center .el-step__line{left:50%;right:-50%}.el-step.is-simple{display:flex;align-items:center}.el-step.is-simple .el-step__head{width:auto;font-size:0;padding-right:10px}.el-step.is-simple .el-step__icon{background:0 0;width:16px;height:16px;font-size:12px}.el-step.is-simple .el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:18px}.el-step.is-simple .el-step__icon-inner.is-status{transform:scale(.8) translateY(1px)}.el-step.is-simple .el-step__main{position:relative;display:flex;align-items:stretch;flex-grow:1}.el-step.is-simple .el-step__title{font-size:16px;line-height:20px}.el-step.is-simple:not(:last-of-type) .el-step__title{max-width:50%;word-break:break-all}.el-step.is-simple .el-step__arrow{flex-grow:1;display:flex;align-items:center;justify-content:center}.el-step.is-simple .el-step__arrow:after,.el-step.is-simple .el-step__arrow:before{content:"";display:inline-block;position:absolute;height:15px;width:1px;background:var(--el-text-color-placeholder)}.el-step.is-simple .el-step__arrow:before{transform:rotate(-45deg) translateY(-4px);transform-origin:0 0}.el-step.is-simple .el-step__arrow:after{transform:rotate(45deg) translateY(4px);transform-origin:100% 100%}.el-step.is-simple:last-of-type .el-step__arrow{display:none}.el-steps{display:flex}.el-steps--simple{padding:13px 8%;border-radius:4px;background:var(--el-fill-color-light)}.el-steps--horizontal{white-space:nowrap}.el-steps--vertical{height:100%;flex-flow:column}.el-switch{--el-switch-on-color:var(--el-color-primary);--el-switch-off-color:var(--el-border-color)}.el-switch{display:inline-flex;align-items:center;position:relative;font-size:14px;line-height:20px;height:32px;vertical-align:middle}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{transition:var(--el-transition-duration-fast);height:20px;display:inline-block;font-size:14px;font-weight:500;cursor:pointer;vertical-align:middle;color:var(--el-text-color-primary)}.el-switch__label.is-active{color:var(--el-color-primary)}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{line-height:1;font-size:14px;display:inline-block}.el-switch__label .el-icon{height:inherit}.el-switch__label .el-icon svg{vertical-align:middle}.el-switch__input{position:absolute;width:0;height:0;opacity:0;margin:0}.el-switch__input:focus-visible~.el-switch__core{outline:2px solid var(--el-switch-on-color);outline-offset:1px}.el-switch__core{display:inline-flex;position:relative;align-items:center;min-width:40px;height:20px;border:1px solid var(--el-switch-border-color,var(--el-switch-off-color));outline:0;border-radius:10px;box-sizing:border-box;background:var(--el-switch-off-color);cursor:pointer;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration)}.el-switch__core .el-switch__inner{width:100%;transition:all var(--el-transition-duration);height:16px;display:flex;justify-content:center;align-items:center;overflow:hidden;padding:0 4px 0 18px}.el-switch__core .el-switch__inner .is-icon,.el-switch__core .el-switch__inner .is-text{font-size:12px;color:var(--el-color-white);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-switch__core .el-switch__action{position:absolute;left:1px;border-radius:var(--el-border-radius-circle);transition:all var(--el-transition-duration);width:16px;height:16px;background-color:var(--el-color-white);display:flex;justify-content:center;align-items:center;color:var(--el-switch-off-color)}.el-switch.is-checked .el-switch__core{border-color:var(--el-switch-border-color,var(--el-switch-on-color));background-color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__action{left:calc(100% - 17px);color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__inner{padding:0 18px 0 4px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter-from,.el-switch .label-fade-leave-active{opacity:0}.el-switch--large{font-size:14px;line-height:24px;height:40px}.el-switch--large .el-switch__label{height:24px;font-size:14px}.el-switch--large .el-switch__label *{font-size:14px}.el-switch--large .el-switch__core{min-width:50px;height:24px;border-radius:12px}.el-switch--large .el-switch__core .el-switch__inner{height:20px;padding:0 6px 0 22px}.el-switch--large .el-switch__core .el-switch__action{width:20px;height:20px}.el-switch--large.is-checked .el-switch__core .el-switch__action{left:calc(100% - 21px)}.el-switch--large.is-checked .el-switch__core .el-switch__inner{padding:0 22px 0 6px}.el-switch--small{font-size:12px;line-height:16px;height:24px}.el-switch--small .el-switch__label{height:16px;font-size:12px}.el-switch--small .el-switch__label *{font-size:12px}.el-switch--small .el-switch__core{min-width:30px;height:16px;border-radius:8px}.el-switch--small .el-switch__core .el-switch__inner{height:12px;padding:0 2px 0 14px}.el-switch--small .el-switch__core .el-switch__action{width:12px;height:12px}.el-switch--small.is-checked .el-switch__core .el-switch__action{left:calc(100% - 13px)}.el-switch--small.is-checked .el-switch__core .el-switch__inner{padding:0 14px 0 2px}.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{border:solid 1px var(--el-border-color-lighter);border-radius:2px;background-color:#fff;box-shadow:var(--el-box-shadow-light);box-sizing:border-box}.el-table-filter__list{padding:5px 0;margin:0;list-style:none;min-width:100px}.el-table-filter__list-item{line-height:36px;padding:0 10px;cursor:pointer;font-size:var(--el-font-size-base)}.el-table-filter__list-item:hover{background-color:var(--el-color-primary-light-9);color:var(--el-color-primary)}.el-table-filter__list-item.is-active{background-color:var(--el-color-primary);color:#fff}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid var(--el-border-color-lighter);padding:8px}.el-table-filter__bottom button{background:0 0;border:none;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-small);padding:0 3px}.el-table-filter__bottom button:hover{color:var(--el-color-primary)}.el-table-filter__bottom button:focus{outline:0}.el-table-filter__bottom button.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{display:flex;align-items:center;margin-right:5px;margin-bottom:12px;margin-left:5px;height:unset}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0}.el-table{--el-table-border-color:var(--el-border-color-lighter);--el-table-border:1px solid var(--el-table-border-color);--el-table-text-color:var(--el-text-color-regular);--el-table-header-text-color:var(--el-text-color-secondary);--el-table-row-hover-bg-color:var(--el-fill-color-light);--el-table-current-row-bg-color:var(--el-color-primary-light-9);--el-table-header-bg-color:var(--el-bg-color);--el-table-fixed-box-shadow:var(--el-box-shadow-light);--el-table-bg-color:var(--el-fill-color-blank);--el-table-tr-bg-color:var(--el-fill-color-blank);--el-table-expanded-cell-bg-color:var(--el-fill-color-blank);--el-table-fixed-left-column:inset 10px 0 10px -10px rgba(0, 0, 0, .15);--el-table-fixed-right-column:inset -10px 0 10px -10px rgba(0, 0, 0, .15)}.el-table{position:relative;overflow:hidden;box-sizing:border-box;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:100%;max-width:100%;background-color:var(--el-table-bg-color);font-size:14px;color:var(--el-table-text-color)}.el-table__inner-wrapper{position:relative;display:flex;flex-direction:column;height:100%}.el-table__inner-wrapper:before{left:0;bottom:0;width:100%;height:1px}.el-table.has-footer.el-table--fluid-height tr:last-child td.el-table__cell,.el-table.has-footer.el-table--scrollable-y tr:last-child td.el-table__cell{border-bottom-color:transparent}.el-table__empty-block{position:-webkit-sticky;position:sticky;left:0;min-height:60px;text-align:center;width:100%;display:flex;justify-content:center;align-items:center}.el-table__empty-text{line-height:60px;width:50%;color:var(--el-text-color-secondary)}.el-table__expand-column .cell{padding:0;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-table__expand-icon{position:relative;cursor:pointer;color:var(--el-text-color-regular);font-size:12px;transition:transform var(--el-transition-duration-fast) ease-in-out;height:20px}.el-table__expand-icon--expanded{transform:rotate(90deg)}.el-table__expand-icon>.el-icon{font-size:12px}.el-table__expanded-cell{background-color:var(--el-table-expanded-cell-bg-color)}.el-table__expanded-cell[class*=cell]{padding:20px 50px}.el-table__expanded-cell:hover{background-color:transparent!important}.el-table__placeholder{display:inline-block;width:20px}.el-table__append-wrapper{overflow:hidden}.el-table--fit{border-right:0;border-bottom:0}.el-table--fit .el-table__cell.gutter{border-right-width:1px}.el-table thead{color:var(--el-table-header-text-color);font-weight:500}.el-table thead.is-group th.el-table__cell{background:var(--el-fill-color-light)}.el-table .el-table__cell{padding:8px 0;min-width:0;box-sizing:border-box;text-overflow:ellipsis;vertical-align:middle;position:relative;text-align:left;z-index:1}.el-table .el-table__cell.is-center{text-align:center}.el-table .el-table__cell.is-right{text-align:right}.el-table .el-table__cell.gutter{width:15px;border-right-width:0;border-bottom-width:0;padding:0}.el-table .el-table__cell.is-hidden>*{visibility:hidden}.el-table .cell{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-all;line-height:23px;padding:0 12px}.el-table .cell.el-tooltip{white-space:nowrap;min-width:50px}.el-table--large{font-size:var(--el-font-size-base)}.el-table--large .el-table__cell{padding:12px 0}.el-table--large .cell{padding:0 16px}.el-table--small{font-size:12px}.el-table--small .el-table__cell{padding:4px 0}.el-table--small .cell{padding:0 8px}.el-table tr{background-color:var(--el-table-tr-bg-color)}.el-table tr input[type=checkbox]{margin:0}.el-table td.el-table__cell,.el-table th.el-table__cell.is-leaf{border-bottom:var(--el-table-border)}.el-table th.el-table__cell.is-sortable{cursor:pointer}.el-table th.el-table__cell{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--el-table-header-bg-color)}.el-table th.el-table__cell>.cell.highlight{color:var(--el-color-primary)}.el-table th.el-table__cell.required>div:before{display:inline-block;content:"";width:8px;height:8px;border-radius:50%;background:#ff4d51;margin-right:5px;vertical-align:middle}.el-table td.el-table__cell div{box-sizing:border-box}.el-table td.el-table__cell.gutter{width:0}.el-table__footer-wrapper{border-top:var(--el-table-border)}.el-table--border .el-table__inner-wrapper:after,.el-table--border:after,.el-table--border:before,.el-table__inner-wrapper:before{content:"";position:absolute;background-color:var(--el-table-border-color);z-index:3}.el-table--border .el-table__inner-wrapper:after{left:0;top:0;width:100%;height:1px}.el-table--border:before{top:-1px;left:0;width:1px;height:100%}.el-table--border:after{top:-1px;right:0;width:1px;height:100%}.el-table--border .el-table__inner-wrapper{border-right:none;border-bottom:none}.el-table--border .el-table__footer-wrapper{position:relative;flex-shrink:0}.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table--border th.el-table__cell.gutter:last-of-type{border-bottom:var(--el-table-border);border-bottom-width:1px}.el-table--border th.el-table__cell{border-bottom:var(--el-table-border)}.el-table--hidden{visibility:hidden}.el-table__body-wrapper,.el-table__footer-wrapper,.el-table__header-wrapper{width:100%}.el-table__body-wrapper tr td.el-table-fixed-column--left,.el-table__body-wrapper tr td.el-table-fixed-column--right,.el-table__body-wrapper tr th.el-table-fixed-column--left,.el-table__body-wrapper tr th.el-table-fixed-column--right,.el-table__footer-wrapper tr td.el-table-fixed-column--left,.el-table__footer-wrapper tr td.el-table-fixed-column--right,.el-table__footer-wrapper tr th.el-table-fixed-column--left,.el-table__footer-wrapper tr th.el-table-fixed-column--right,.el-table__header-wrapper tr td.el-table-fixed-column--left,.el-table__header-wrapper tr td.el-table-fixed-column--right,.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{position:-webkit-sticky!important;position:sticky!important;z-index:2;background:var(--el-bg-color)}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{content:"";position:absolute;top:0;width:10px;bottom:-1px;overflow-x:hidden;overflow-y:hidden;box-shadow:none;touch-action:none;pointer-events:none}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before{left:-10px}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{right:-10px;box-shadow:none}.el-table__body-wrapper tr td.el-table__fixed-right-patch,.el-table__body-wrapper tr th.el-table__fixed-right-patch,.el-table__footer-wrapper tr td.el-table__fixed-right-patch,.el-table__footer-wrapper tr th.el-table__fixed-right-patch,.el-table__header-wrapper tr td.el-table__fixed-right-patch,.el-table__header-wrapper tr th.el-table__fixed-right-patch{position:-webkit-sticky!important;position:sticky!important;z-index:2;background:#fff;right:0}.el-table__header-wrapper{flex-shrink:0}.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body,.el-table__footer,.el-table__header{table-layout:fixed;border-collapse:separate}.el-table__footer-wrapper,.el-table__header-wrapper{overflow:hidden}.el-table__footer-wrapper tbody td.el-table__cell,.el-table__header-wrapper tbody td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table__body-wrapper .el-table-column--selection>.cell,.el-table__header-wrapper .el-table-column--selection>.cell{display:inline-flex;align-items:center;height:23px}.el-table__body-wrapper .el-table-column--selection .el-checkbox,.el-table__header-wrapper .el-table-column--selection .el-checkbox{height:unset}.el-table.is-scrolling-left .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-left.el-table--border .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:var(--el-table-border)}.el-table.is-scrolling-left th.el-table-fixed-column--left{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-right th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-middle .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-none .el-table-fixed-column--left.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--left.is-last-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-last-column:before{box-shadow:none}.el-table.is-scrolling-none th.el-table-fixed-column--left,.el-table.is-scrolling-none th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body-wrapper{overflow:hidden;position:relative;flex:1}.el-table__body-wrapper .el-scrollbar__bar{z-index:2}.el-table .caret-wrapper{display:inline-flex;flex-direction:column;align-items:center;height:14px;width:24px;vertical-align:middle;cursor:pointer;overflow:initial;position:relative}.el-table .sort-caret{width:0;height:0;border:solid 5px transparent;position:absolute;left:7px}.el-table .sort-caret.ascending{border-bottom-color:var(--el-text-color-placeholder);top:-5px}.el-table .sort-caret.descending{border-top-color:var(--el-text-color-placeholder);bottom:-3px}.el-table .ascending .sort-caret.ascending{border-bottom-color:var(--el-color-primary)}.el-table .descending .sort-caret.descending{border-top-color:var(--el-color-primary)}.el-table .hidden-columns{visibility:hidden;position:absolute;z-index:-1}.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{background:var(--el-fill-color-lighter)}.el-table--striped .el-table__body tr.el-table__row--striped.current-row td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table__body tr.hover-row.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,.el-table__body tr.hover-row>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table__body tr.current-row>td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table__column-resize-proxy{position:absolute;left:200px;top:0;bottom:0;width:0;border-left:var(--el-table-border);z-index:10}.el-table__column-filter-trigger{display:inline-block;cursor:pointer}.el-table__column-filter-trigger i{color:var(--el-color-info);font-size:14px;vertical-align:middle}.el-table__border-left-patch{top:0;left:0;width:1px;height:100%;z-index:3;position:absolute;background-color:var(--el-table-border-color)}.el-table__border-bottom-patch{left:0;height:1px;z-index:3;position:absolute;background-color:var(--el-table-border-color)}.el-table__border-right-patch{top:0;height:100%;width:1px;z-index:3;position:absolute;background-color:var(--el-table-border-color)}.el-table--enable-row-transition .el-table__body td.el-table__cell{transition:background-color .25s ease}.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table [class*=el-table__row--level] .el-table__expand-icon{display:inline-block;width:12px;line-height:12px;height:12px;text-align:center;margin-right:8px}.el-table .el-table.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table:not(.el-table--border) .el-table__cell{border-right:none}.el-table:not(.el-table--border)>.el-table__inner-wrapper:after{content:none}.el-table-v2{--el-table-border-color:var(--el-border-color-lighter);--el-table-border:1px solid var(--el-table-border-color);--el-table-text-color:var(--el-text-color-regular);--el-table-header-text-color:var(--el-text-color-secondary);--el-table-row-hover-bg-color:var(--el-fill-color-light);--el-table-current-row-bg-color:var(--el-color-primary-light-9);--el-table-header-bg-color:var(--el-bg-color);--el-table-fixed-box-shadow:var(--el-box-shadow-light);--el-table-bg-color:var(--el-fill-color-blank);--el-table-tr-bg-color:var(--el-fill-color-blank);--el-table-expanded-cell-bg-color:var(--el-fill-color-blank);--el-table-fixed-left-column:inset 10px 0 10px -10px rgba(0, 0, 0, .15);--el-table-fixed-right-column:inset -10px 0 10px -10px rgba(0, 0, 0, .15)}.el-table-v2{font-size:14px}.el-table-v2 *{box-sizing:border-box}.el-table-v2__root{position:relative}.el-table-v2__root:hover .el-table-v2__main .el-virtual-scrollbar{opacity:1}.el-table-v2__main{display:flex;flex-direction:column-reverse;position:absolute;overflow:hidden;top:0;background-color:var(--el-bg-color);left:0}.el-table-v2__main .el-vl__horizontal,.el-table-v2__main .el-vl__vertical{z-index:2}.el-table-v2__left{display:flex;flex-direction:column-reverse;position:absolute;overflow:hidden;top:0;background-color:var(--el-bg-color);left:0;box-shadow:2px 0 4px #0000000f}.el-table-v2__left .el-virtual-scrollbar{opacity:0}.el-table-v2__left .el-vl__horizontal,.el-table-v2__left .el-vl__vertical{z-index:-1}.el-table-v2__right{display:flex;flex-direction:column-reverse;position:absolute;overflow:hidden;top:0;background-color:var(--el-bg-color);right:0;box-shadow:-2px 0 4px #0000000f}.el-table-v2__right .el-virtual-scrollbar{opacity:0}.el-table-v2__right .el-vl__horizontal,.el-table-v2__right .el-vl__vertical{z-index:-1}.el-table-v2__header-row,.el-table-v2__row{-webkit-padding-end:var(--el-table-scrollbar-size);padding-inline-end:var(--el-table-scrollbar-size)}.el-table-v2__header-wrapper{overflow:hidden}.el-table-v2__header{position:relative;overflow:hidden}.el-table-v2__footer{position:absolute;left:0;right:0;bottom:0;overflow:hidden}.el-table-v2__empty{position:absolute;left:0}.el-table-v2__overlay{position:absolute;left:0;right:0;top:0;bottom:0;z-index:9999}.el-table-v2__header-row{display:flex;border-bottom:var(--el-table-border)}.el-table-v2__header-cell{display:flex;align-items:center;padding:0 8px;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;background-color:var(--el-table-header-bg-color);color:var(--el-table-header-text-color);font-weight:700}.el-table-v2__header-cell.is-align-center{justify-content:center;text-align:center}.el-table-v2__header-cell.is-align-right{justify-content:flex-end;text-align:right}.el-table-v2__header-cell.is-sortable{cursor:pointer}.el-table-v2__header-cell:hover .el-icon{display:block}.el-table-v2__sort-icon{transition:opacity,display var(--el-transition-duration);opacity:.6;display:none}.el-table-v2__sort-icon.is-sorting{display:block;opacity:1}.el-table-v2__row{border-bottom:var(--el-table-border);display:flex;align-items:center;transition:background-color var(--el-transition-duration)}.el-table-v2__row.is-hovered,.el-table-v2__row:hover{background-color:var(--el-table-row-hover-bg-color)}.el-table-v2__row-cell{height:100%;overflow:hidden;display:flex;align-items:center;padding:0 8px}.el-table-v2__row-cell.is-align-center{justify-content:center;text-align:center}.el-table-v2__row-cell.is-align-right{justify-content:flex-end;text-align:right}.el-table-v2__expand-icon{margin:0 4px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-table-v2__expand-icon svg{transition:transform var(--el-transition-duration)}.el-table-v2__expand-icon.is-expanded svg{transform:rotate(90deg)}.el-table-v2:not(.is-dynamic) .el-table-v2__cell-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-table-v2.is-dynamic .el-table-v2__row{overflow:hidden;align-items:stretch}.el-table-v2.is-dynamic .el-table-v2__row .el-table-v2__row-cell{word-break:break-all}.el-tabs{--el-tabs-header-height:40px}.el-tabs__header{padding:0;position:relative;margin:0 0 15px}.el-tabs__active-bar{position:absolute;bottom:0;left:0;height:2px;background-color:var(--el-color-primary);z-index:1;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);list-style:none}.el-tabs__new-tab{display:flex;align-items:center;justify-content:center;float:right;border:1px solid var(--el-border-color);height:20px;width:20px;line-height:20px;margin:10px 0 10px 10px;border-radius:3px;text-align:center;font-size:12px;color:var(--el-text-color-primary);cursor:pointer;transition:all .15s}.el-tabs__new-tab .is-icon-plus{height:inherit;width:inherit;transform:scale(.8)}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__nav-wrap{overflow:hidden;margin-bottom:-1px;position:relative}.el-tabs__nav-wrap:after{content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;background-color:var(--el-border-color-light);z-index:var(--el-index-normal)}.el-tabs__nav-wrap.is-scrollable{padding:0 20px;box-sizing:border-box}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{position:absolute;cursor:pointer;line-height:44px;font-size:12px;color:var(--el-text-color-secondary);width:20px;text-align:center}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{white-space:nowrap;position:relative;transition:transform var(--el-transition-duration);float:left;z-index:calc(var(--el-index-normal) + 1)}.el-tabs__nav.is-stretch{min-width:100%;display:flex}.el-tabs__nav.is-stretch>*{flex:1;text-align:center}.el-tabs__item{padding:0 20px;height:var(--el-tabs-header-height);box-sizing:border-box;line-height:var(--el-tabs-header-height);display:inline-block;list-style:none;font-size:var(--el-font-size-base);font-weight:500;color:var(--el-text-color-primary);position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:0}.el-tabs__item:focus-visible{box-shadow:0 0 2px 2px var(--el-color-primary) inset;border-radius:3px}.el-tabs__item .is-icon-close{border-radius:50%;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);margin-left:5px}.el-tabs__item .is-icon-close:before{transform:scale(.9);display:inline-block}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item .is-icon-close svg{margin-top:1px}.el-tabs__item.is-active{color:var(--el-color-primary)}.el-tabs__item:hover{color:var(--el-color-primary);cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{overflow:hidden;position:relative}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);height:var(--el-tabs-header-height)}.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid var(--el-border-color-light);border-bottom:none;border-radius:4px 4px 0 0;box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .is-icon-close{position:relative;font-size:12px;width:0;height:14px;vertical-align:middle;line-height:15px;overflow:hidden;top:-1px;right:-2px;transform-origin:100% 50%}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--card>.el-tabs__header .el-tabs__item:first-child{border-left:none}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .is-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:var(--el-bg-color)}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .is-icon-close{width:14px}.el-tabs--border-card{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color)}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color-light);margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--border-card>.el-tabs__header .el-tabs__item{transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);border:1px solid transparent;margin-top:-1px;color:var(--el-text-color-secondary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:first-child{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay);border-right-color:var(--el-border-color);border-left-color:var(--el-border-color)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{color:var(--el-disabled-text-color)}.el-tabs--border-card>.el-tabs__header .is-scrollable .el-tabs__item:first-child{margin-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2),.el-tabs--bottom .el-tabs__item.is-top:nth-child(2),.el-tabs--top .el-tabs__item.is-bottom:nth-child(2),.el-tabs--top .el-tabs__item.is-top:nth-child(2){padding-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:last-child,.el-tabs--bottom .el-tabs__item.is-top:last-child,.el-tabs--top .el-tabs__item.is-bottom:last-child,.el-tabs--top .el-tabs__item.is-top:last-child{padding-right:0}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--bottom .el-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.el-tabs--bottom.el-tabs--border-card .el-tabs__header.is-bottom{border-bottom:0;border-top:1px solid var(--el-border-color)}.el-tabs--bottom.el-tabs--border-card .el-tabs__nav-wrap.is-bottom{margin-top:-1px;margin-bottom:0}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom{margin:0 -1px -1px}.el-tabs--left,.el-tabs--right{overflow:hidden}.el-tabs--left .el-tabs__header.is-left,.el-tabs--left .el-tabs__header.is-right,.el-tabs--left .el-tabs__nav-scroll,.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__header.is-left,.el-tabs--right .el-tabs__header.is-right,.el-tabs--right .el-tabs__nav-scroll,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{height:100%}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__active-bar.is-right,.el-tabs--right .el-tabs__active-bar.is-left,.el-tabs--right .el-tabs__active-bar.is-right{top:0;bottom:auto;width:2px;height:auto}.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{margin-bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{height:30px;line-height:30px;width:100%;text-align:center;cursor:pointer}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i{transform:rotate(90deg)}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{left:auto;top:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next{right:auto;bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--left .el-tabs__nav-wrap.is-right.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.el-tabs--left .el-tabs__nav-wrap.is-left:after,.el-tabs--left .el-tabs__nav-wrap.is-right:after,.el-tabs--right .el-tabs__nav-wrap.is-left:after,.el-tabs--right .el-tabs__nav-wrap.is-right:after{height:100%;width:2px;bottom:auto;top:0}.el-tabs--left .el-tabs__nav.is-left,.el-tabs--left .el-tabs__nav.is-right,.el-tabs--right .el-tabs__nav.is-left,.el-tabs--right .el-tabs__nav.is-right{float:none}.el-tabs--left .el-tabs__item.is-left,.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-right{display:block}.el-tabs--left .el-tabs__header.is-left{float:left;margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__nav-wrap.is-left:after{left:auto;right:0}.el-tabs--left .el-tabs__active-bar.is-left{right:0;left:auto}.el-tabs--left .el-tabs__item.is-left{text-align:right}.el-tabs--left.el-tabs--card .el-tabs__active-bar.is-left{display:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left{border-left:none;border-right:1px solid var(--el-border-color-light);border-bottom:none;border-top:1px solid var(--el-border-color-light);text-align:left}.el-tabs--left.el-tabs--card .el-tabs__item.is-left:first-child{border-right:1px solid var(--el-border-color-light);border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active{border:1px solid var(--el-border-color-light);border-right-color:#fff;border-left:none;border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:first-child{border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:last-child{border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__nav{border-radius:4px 0 0 4px;border-bottom:1px solid var(--el-border-color-light);border-right:none}.el-tabs--left.el-tabs--card .el-tabs__new-tab{float:none}.el-tabs--left.el-tabs--border-card .el-tabs__header.is-left{border-right:1px solid var(--el-border-color)}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left.is-active{border-color:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.el-tabs--right .el-tabs__header.is-right{float:right;margin-bottom:0;margin-left:10px}.el-tabs--right .el-tabs__nav-wrap.is-right{margin-left:-1px}.el-tabs--right .el-tabs__nav-wrap.is-right:after{left:0;right:auto}.el-tabs--right .el-tabs__active-bar.is-right{left:0}.el-tabs--right.el-tabs--card .el-tabs__active-bar.is-right{display:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right{border-bottom:none;border-top:1px solid var(--el-border-color-light)}.el-tabs--right.el-tabs--card .el-tabs__item.is-right:first-child{border-left:1px solid var(--el-border-color-light);border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active{border:1px solid var(--el-border-color-light);border-left-color:#fff;border-right:none;border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:first-child{border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:last-child{border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__nav{border-radius:0 4px 4px 0;border-bottom:1px solid var(--el-border-color-light);border-left:none}.el-tabs--right.el-tabs--border-card .el-tabs__header.is-right{border-left:1px solid var(--el-border-color)}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right.is-active{border-color:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{-webkit-animation:slideInRight-enter var(--el-transition-duration);animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{position:absolute;left:0;right:0;-webkit-animation:slideInRight-leave var(--el-transition-duration);animation:slideInRight-leave var(--el-transition-duration)}.slideInLeft-enter{-webkit-animation:slideInLeft-enter var(--el-transition-duration);animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{position:absolute;left:0;right:0;-webkit-animation:slideInLeft-leave var(--el-transition-duration);animation:slideInLeft-leave var(--el-transition-duration)}@-webkit-keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translate(100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translate(100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@-webkit-keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(100%);opacity:0}}@keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(100%);opacity:0}}@-webkit-keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translate(-100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translate(-100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@-webkit-keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(-100%);opacity:0}}@keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(-100%);opacity:0}}.el-tag{--el-tag-font-size:12px;--el-tag-border-radius:4px;--el-tag-border-radius-rounded:9999px}.el-tag{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary);--el-tag-text-color:var(--el-color-primary);background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);color:var(--el-tag-text-color);display:inline-flex;justify-content:center;align-items:center;height:24px;padding:0 9px;font-size:var(--el-tag-font-size);line-height:1;border-width:1px;border-style:solid;border-radius:var(--el-tag-border-radius);box-sizing:border-box;white-space:nowrap;--el-icon-size:14px}.el-tag.el-tag--primary{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color:var(--el-color-success-light-9);--el-tag-border-color:var(--el-color-success-light-8);--el-tag-hover-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color:var(--el-color-warning-light-9);--el-tag-border-color:var(--el-color-warning-light-8);--el-tag-hover-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color:var(--el-color-danger-light-9);--el-tag-border-color:var(--el-color-danger-light-8);--el-tag-hover-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color:var(--el-color-error-light-9);--el-tag-border-color:var(--el-color-error-light-8);--el-tag-hover-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color:var(--el-color-info-light-9);--el-tag-border-color:var(--el-color-info-light-8);--el-tag-hover-color:var(--el-color-info)}.el-tag.el-tag--primary{--el-tag-text-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color:var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{color:var(--el-tag-text-color)}.el-tag .el-tag__close:hover{color:var(--el-color-white);background-color:var(--el-tag-hover-color)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3);--el-tag-text-color:var(--el-color-white)}.el-tag--dark.el-tag--primary{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color:var(--el-color-success);--el-tag-border-color:var(--el-color-success);--el-tag-hover-color:var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color:var(--el-color-warning);--el-tag-border-color:var(--el-color-warning);--el-tag-hover-color:var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color:var(--el-color-danger);--el-tag-border-color:var(--el-color-danger);--el-tag-hover-color:var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color:var(--el-color-error);--el-tag-border-color:var(--el-color-error);--el-tag-hover-color:var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color:var(--el-color-info);--el-tag-border-color:var(--el-color-info);--el-tag-hover-color:var(--el-color-info-light-3)}.el-tag--dark.el-tag--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning,.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info{--el-tag-text-color:var(--el-color-white)}.el-tag--plain{--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary);--el-tag-bg-color:var(--el-fill-color-blank)}.el-tag--plain.el-tag--primary{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-success-light-5);--el-tag-hover-color:var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-warning-light-5);--el-tag-hover-color:var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-danger-light-5);--el-tag-hover-color:var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-error-light-5);--el-tag-hover-color:var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-info-light-5);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{padding:0 11px;height:32px;--el-icon-size:16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{padding:0 7px;height:20px;--el-icon-size:12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)}.time-select{margin:5px 0;min-width:0}.time-select .el-picker-panel__content{max-height:200px;margin:0}.time-select-item{padding:8px 10px;font-size:14px;line-height:20px}.time-select-item.disabled{color:var(--el-datepicker-border-color);cursor:not-allowed}.time-select-item:hover{background-color:var(--el-fill-color-light);font-weight:700;cursor:pointer}.time-select .time-select-item.selected:not(.disabled){color:var(--el-color-primary);font-weight:700}.el-timeline-item{position:relative;padding-bottom:20px}.el-timeline-item__wrapper{position:relative;padding-left:28px;top:-3px}.el-timeline-item__tail{position:absolute;left:4px;height:100%;border-left:2px solid var(--el-timeline-node-color)}.el-timeline-item .el-timeline-item__icon{color:var(--el-color-white);font-size:var(--el-font-size-small)}.el-timeline-item__node{position:absolute;background-color:var(--el-timeline-node-color);border-color:var(--el-timeline-node-color);border-radius:50%;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.el-timeline-item__node--normal{left:-1px;width:var(--el-timeline-node-size-normal);height:var(--el-timeline-node-size-normal)}.el-timeline-item__node--large{left:-2px;width:var(--el-timeline-node-size-large);height:var(--el-timeline-node-size-large)}.el-timeline-item__node.is-hollow{background:var(--el-color-white);border-style:solid;border-width:2px}.el-timeline-item__node--primary{background-color:var(--el-color-primary);border-color:var(--el-color-primary)}.el-timeline-item__node--success{background-color:var(--el-color-success);border-color:var(--el-color-success)}.el-timeline-item__node--warning{background-color:var(--el-color-warning);border-color:var(--el-color-warning)}.el-timeline-item__node--danger{background-color:var(--el-color-danger);border-color:var(--el-color-danger)}.el-timeline-item__node--info{background-color:var(--el-color-info);border-color:var(--el-color-info)}.el-timeline-item__dot{position:absolute;display:flex;justify-content:center;align-items:center}.el-timeline-item__content{color:var(--el-text-color-primary)}.el-timeline-item__timestamp{color:var(--el-text-color-secondary);line-height:1;font-size:var(--el-font-size-small)}.el-timeline-item__timestamp.is-top{margin-bottom:8px;padding-top:4px}.el-timeline-item__timestamp.is-bottom{margin-top:8px}.el-timeline{--el-timeline-node-size-normal:12px;--el-timeline-node-size-large:14px;--el-timeline-node-color:var(--el-border-color-light)}.el-timeline{margin:0;font-size:var(--el-font-size-base);list-style:none}.el-timeline .el-timeline-item:last-child .el-timeline-item__tail{display:none}.el-timeline .el-timeline-item__center{display:flex;align-items:center}.el-timeline .el-timeline-item__center .el-timeline-item__wrapper{width:100%}.el-timeline .el-timeline-item__center .el-timeline-item__tail{top:0}.el-timeline .el-timeline-item__center:first-child .el-timeline-item__tail{height:calc(50% + 10px);top:calc(50% - 10px)}.el-timeline .el-timeline-item__center:last-child .el-timeline-item__tail{display:block;height:calc(50% - 10px)}.el-tooltip-v2__content{--el-tooltip-v2-padding:5px 10px;--el-tooltip-v2-border-radius:4px;--el-tooltip-v2-border-color:var(--el-border-color);border-radius:var(--el-tooltip-v2-border-radius);color:var(--el-color-black);background-color:var(--el-color-white);padding:var(--el-tooltip-v2-padding);border:1px solid var(--el-border-color)}.el-tooltip-v2__arrow{position:absolute;color:var(--el-color-white);width:var(--el-tooltip-v2-arrow-width);height:var(--el-tooltip-v2-arrow-height);pointer-events:none;left:var(--el-tooltip-v2-arrow-x);top:var(--el-tooltip-v2-arrow-y)}.el-tooltip-v2__arrow:before{content:"";width:0;height:0;border:var(--el-tooltip-v2-arrow-border-width) solid transparent;position:absolute}.el-tooltip-v2__arrow:after{content:"";width:0;height:0;border:var(--el-tooltip-v2-arrow-border-width) solid transparent;position:absolute}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow{bottom:0}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow:before{border-top-color:var(--el-color-white);border-top-width:var(--el-tooltip-v2-arrow-border-width);border-bottom:0;top:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow:after{border-top-color:var(--el-border-color);border-top-width:var(--el-tooltip-v2-arrow-border-width);border-bottom:0;top:100%;z-index:-1}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow{top:0}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow:before{border-bottom-color:var(--el-color-white);border-bottom-width:var(--el-tooltip-v2-arrow-border-width);border-top:0;bottom:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow:after{border-bottom-color:var(--el-border-color);border-bottom-width:var(--el-tooltip-v2-arrow-border-width);border-top:0;bottom:100%;z-index:-1}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow{right:0}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow:before{border-left-color:var(--el-color-white);border-left-width:var(--el-tooltip-v2-arrow-border-width);border-right:0;left:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow:after{border-left-color:var(--el-border-color);border-left-width:var(--el-tooltip-v2-arrow-border-width);border-right:0;left:100%;z-index:-1}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow{left:0}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow:before{border-right-color:var(--el-color-white);border-right-width:var(--el-tooltip-v2-arrow-border-width);border-left:0;right:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow:after{border-right-color:var(--el-border-color);border-right-width:var(--el-tooltip-v2-arrow-border-width);border-left:0;right:100%;z-index:-1}.el-tooltip-v2__content.is-dark{--el-tooltip-v2-border-color:transparent;background-color:var(--el-color-black);color:var(--el-color-white);border-color:transparent}.el-tooltip-v2__content.is-dark .el-tooltip-v2__arrow{background-color:var(--el-color-black);border-color:transparent}.el-transfer{--el-transfer-border-color:var(--el-border-color-lighter);--el-transfer-border-radius:var(--el-border-radius-base);--el-transfer-panel-width:200px;--el-transfer-panel-header-height:40px;--el-transfer-panel-header-bg-color:var(--el-fill-color-light);--el-transfer-panel-footer-height:40px;--el-transfer-panel-body-height:278px;--el-transfer-item-height:30px;--el-transfer-filter-height:32px}.el-transfer{font-size:var(--el-font-size-base)}.el-transfer__buttons{display:inline-block;vertical-align:middle;padding:0 30px}.el-transfer__button{vertical-align:top}.el-transfer__button:nth-child(2){margin:0 0 0 10px}.el-transfer__button i,.el-transfer__button span{font-size:14px}.el-transfer__button .el-icon+span{margin-left:0}.el-transfer-panel{overflow:hidden;background:var(--el-bg-color-overlay);display:inline-block;text-align:left;vertical-align:middle;width:var(--el-transfer-panel-width);max-height:100%;box-sizing:border-box;position:relative}.el-transfer-panel__body{height:var(--el-transfer-panel-body-height);border-left:1px solid var(--el-transfer-border-color);border-right:1px solid var(--el-transfer-border-color);border-bottom:1px solid var(--el-transfer-border-color);border-bottom-left-radius:var(--el-transfer-border-radius);border-bottom-right-radius:var(--el-transfer-border-radius);overflow:hidden}.el-transfer-panel__body.is-with-footer{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.el-transfer-panel__list{margin:0;padding:6px 0;list-style:none;height:var(--el-transfer-panel-body-height);overflow:auto;box-sizing:border-box}.el-transfer-panel__list.is-filterable{height:calc(100% - var(--el-transfer-filter-height) - 30px);padding-top:0}.el-transfer-panel__item{height:var(--el-transfer-item-height);line-height:var(--el-transfer-item-height);padding-left:15px;display:block!important}.el-transfer-panel__item+.el-transfer-panel__item{margin-left:0}.el-transfer-panel__item.el-checkbox{color:var(--el-text-color-regular)}.el-transfer-panel__item:hover{color:var(--el-color-primary)}.el-transfer-panel__item.el-checkbox .el-checkbox__label{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;box-sizing:border-box;padding-left:22px;line-height:var(--el-transfer-item-height)}.el-transfer-panel__item .el-checkbox__input{position:absolute;top:8px}.el-transfer-panel__filter{text-align:center;margin:15px;box-sizing:border-box;width:auto}.el-transfer-panel__filter .el-input__inner{height:var(--el-transfer-filter-height);width:100%;font-size:12px;display:inline-block;box-sizing:border-box;border-radius:calc(var(--el-transfer-filter-height)/ 2)}.el-transfer-panel__filter .el-icon-circle-close{cursor:pointer}.el-transfer-panel .el-transfer-panel__header{display:flex;align-items:center;height:var(--el-transfer-panel-header-height);background:var(--el-transfer-panel-header-bg-color);margin:0;padding-left:15px;border:1px solid var(--el-transfer-border-color);border-top-left-radius:var(--el-transfer-border-radius);border-top-right-radius:var(--el-transfer-border-radius);box-sizing:border-box;color:var(--el-color-black)}.el-transfer-panel .el-transfer-panel__header .el-checkbox{position:relative;display:flex;width:100%;align-items:center}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label{font-size:16px;color:var(--el-text-color-primary);font-weight:400}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label span{position:absolute;right:15px;top:50%;transform:translate3d(0,-50%,0);color:var(--el-text-color-secondary);font-size:12px;font-weight:400}.el-transfer-panel .el-transfer-panel__footer{height:var(--el-transfer-panel-footer-height);background:var(--el-bg-color-overlay);margin:0;padding:0;border:1px solid var(--el-transfer-border-color);border-bottom-left-radius:var(--el-transfer-border-radius);border-bottom-right-radius:var(--el-transfer-border-radius)}.el-transfer-panel .el-transfer-panel__footer:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-transfer-panel .el-transfer-panel__footer .el-checkbox{padding-left:20px;color:var(--el-text-color-regular)}.el-transfer-panel .el-transfer-panel__empty{margin:0;height:var(--el-transfer-item-height);line-height:var(--el-transfer-item-height);padding:6px 15px 0;color:var(--el-text-color-secondary);text-align:center}.el-transfer-panel .el-checkbox__label{padding-left:8px}.el-transfer-panel .el-checkbox__inner{height:14px;width:14px;border-radius:3px}.el-transfer-panel .el-checkbox__inner:after{height:6px;width:3px;left:4px}.el-tree{--el-tree-node-hover-bg-color:var(--el-fill-color-light);--el-tree-text-color:var(--el-text-color-regular);--el-tree-expand-icon-color:var(--el-text-color-placeholder)}.el-tree{position:relative;cursor:default;background:var(--el-fill-color-blank);color:var(--el-tree-text-color)}.el-tree__empty-block{position:relative;min-height:60px;text-align:center;width:100%;height:100%}.el-tree__empty-text{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:var(--el-text-color-secondary);font-size:var(--el-font-size-base)}.el-tree__drop-indicator{position:absolute;left:0;right:0;height:1px;background-color:var(--el-color-primary)}.el-tree-node{white-space:nowrap;outline:0}.el-tree-node:focus>.el-tree-node__content{background-color:var(--el-tree-node-hover-bg-color)}.el-tree-node.is-drop-inner>.el-tree-node__content .el-tree-node__label{background-color:var(--el-color-primary);color:#fff}.el-tree-node__content{display:flex;align-items:center;height:26px;cursor:pointer}.el-tree-node__content>.el-tree-node__expand-icon{padding:6px;box-sizing:content-box}.el-tree-node__content>label.el-checkbox{margin-right:8px}.el-tree-node__content:hover{background-color:var(--el-tree-node-hover-bg-color)}.el-tree.is-dragging .el-tree-node__content{cursor:move}.el-tree.is-dragging .el-tree-node__content *{pointer-events:none}.el-tree.is-dragging.is-drop-not-allow .el-tree-node__content{cursor:not-allowed}.el-tree-node__expand-icon{cursor:pointer;color:var(--el-tree-expand-icon-color);font-size:12px;transform:rotate(0);transition:transform var(--el-transition-duration) ease-in-out}.el-tree-node__expand-icon.expanded{transform:rotate(90deg)}.el-tree-node__expand-icon.is-leaf{color:transparent;cursor:default}.el-tree-node__expand-icon.is-hidden{visibility:hidden}.el-tree-node__label{font-size:var(--el-font-size-base)}.el-tree-node__loading-icon{margin-right:8px;font-size:var(--el-font-size-base);color:var(--el-tree-expand-icon-color)}.el-tree-node>.el-tree-node__children{overflow:hidden;background-color:transparent}.el-tree-node.is-expanded>.el-tree-node__children{display:block}.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{background-color:var(--el-color-primary-light-9)}.el-tree-select{--el-tree-node-hover-bg-color:var(--el-fill-color-light);--el-tree-text-color:var(--el-text-color-regular);--el-tree-expand-icon-color:var(--el-text-color-placeholder)}.el-tree-select__popper .el-tree-node__expand-icon{margin-left:8px}.el-tree-select__popper .el-tree-node.is-checked>.el-tree-node__content .el-select-dropdown__item.selected:after{content:none}.el-tree-select__popper .el-select-dropdown__item{flex:1;background:0 0!important;padding-left:0;height:20px;line-height:20px}.el-upload{--el-upload-dragger-padding-horizontal:40px;--el-upload-dragger-padding-vertical:10px}.el-upload{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;outline:0}.el-upload__input{display:none}.el-upload__tip{font-size:12px;color:var(--el-text-color-regular);margin-top:7px}.el-upload iframe{position:absolute;z-index:-1;top:0;left:0;opacity:0}.el-upload--picture-card{--el-upload-picture-card-size:148px;background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker);border-radius:6px;box-sizing:border-box;width:var(--el-upload-picture-card-size);height:var(--el-upload-picture-card-size);cursor:pointer;vertical-align:top;display:inline-flex;justify-content:center;align-items:center}.el-upload--picture-card i{font-size:28px;color:var(--el-text-color-secondary)}.el-upload--picture-card:hover{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload.is-drag{display:block}.el-upload:focus{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload:focus .el-upload-dragger{border-color:var(--el-color-primary)}.el-upload-dragger{padding:var(--el-upload-dragger-padding-horizontal) var(--el-upload-dragger-padding-vertical);background-color:var(--el-fill-color-blank);border:1px dashed var(--el-border-color);border-radius:6px;box-sizing:border-box;text-align:center;cursor:pointer;position:relative;overflow:hidden}.el-upload-dragger .el-icon--upload{font-size:67px;color:var(--el-text-color-placeholder);margin-bottom:16px;line-height:50px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:var(--el-border);margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:var(--el-text-color-regular);font-size:14px;text-align:center}.el-upload-dragger .el-upload__text em{color:var(--el-color-primary);font-style:normal}.el-upload-dragger:hover{border-color:var(--el-color-primary)}.el-upload-dragger.is-dragover{padding:calc(var(--el-upload-dragger-padding-horizontal) - 1px) calc(var(--el-upload-dragger-padding-vertical) - 1px);background-color:var(--el-color-primary-light-9);border:2px dashed var(--el-color-primary)}.el-upload-list{margin:10px 0 0;padding:0;list-style:none;position:relative}.el-upload-list__item{transition:all .5s cubic-bezier(.55,0,.1,1);font-size:14px;color:var(--el-text-color-regular);margin-bottom:5px;position:relative;box-sizing:border-box;border-radius:4px;width:100%}.el-upload-list__item .el-progress{position:absolute;top:20px;width:100%}.el-upload-list__item .el-progress__text{position:absolute;right:0;top:-13px}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item .el-icon--upload-success{color:var(--el-color-success)}.el-upload-list__item .el-icon--close{display:none;position:absolute;right:5px;top:50%;cursor:pointer;opacity:.75;color:var(--el-text-color-regular);transition:opacity var(--el-transition-duration);transform:translateY(-50%)}.el-upload-list__item .el-icon--close:hover{opacity:1;color:var(--el-color-primary)}.el-upload-list__item .el-icon--close-tip{display:none;position:absolute;top:1px;right:5px;font-size:12px;cursor:pointer;opacity:1;color:var(--el-color-primary);font-style:normal}.el-upload-list__item:hover{background-color:var(--el-fill-color-light)}.el-upload-list__item:hover .el-icon--close{display:inline-flex}.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item .el-upload-list__item-info{display:inline-flex;justify-content:center;flex-direction:column;width:calc(100% - 30px);margin-left:4px}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:inline-flex}.el-upload-list__item.is-success .el-upload-list__item-name:focus,.el-upload-list__item.is-success .el-upload-list__item-name:hover{color:var(--el-color-primary);cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon--close-tip{display:inline-block}.el-upload-list__item.is-success:active,.el-upload-list__item.is-success:not(.focusing):focus{outline-width:0}.el-upload-list__item.is-success:active .el-icon--close-tip,.el-upload-list__item.is-success:not(.focusing):focus .el-icon--close-tip{display:none}.el-upload-list__item.is-success:focus .el-upload-list__item-status-label,.el-upload-list__item.is-success:hover .el-upload-list__item-status-label{display:none;opacity:0}.el-upload-list.is-disabled .el-upload-list__item-status-label,.el-upload-list.is-disabled .el-upload-list__item:hover{display:block}.el-upload-list__item-name{color:var(--el-text-color-regular);display:inline-flex;text-align:center;align-items:center;padding:0 4px;transition:color var(--el-transition-duration);font-size:var(--el-font-size-base)}.el-upload-list__item-name .el-icon{margin-right:6px;color:var(--el-text-color-secondary)}.el-upload-list__item-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-upload-list__item-status-label{position:absolute;right:5px;top:0;line-height:inherit;display:none;height:100%;justify-content:center;align-items:center;transition:opacity var(--el-transition-duration)}.el-upload-list__item-delete{position:absolute;right:10px;top:0;font-size:12px;color:var(--el-text-color-regular);display:none}.el-upload-list__item-delete:hover{color:var(--el-color-primary)}.el-upload-list--picture-card{--el-upload-list-picture-card-size:148px;display:inline-flex;flex-wrap:wrap;margin:0}.el-upload-list--picture-card .el-upload-list__item{overflow:hidden;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;width:var(--el-upload-list-picture-card-size);height:var(--el-upload-list-picture-card-size);margin:0 8px 8px 0;padding:0;display:inline-flex}.el-upload-list--picture-card .el-upload-list__item .el-icon--check,.el-upload-list--picture-card .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture-card .el-upload-list__item .el-icon--close{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:block}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.el-upload-list--picture-card .el-upload-list__item-status-label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-list--picture-card .el-upload-list__item-status-label i{font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;display:inline-flex;justify-content:center;align-items:center;color:#fff;opacity:0;font-size:20px;background-color:var(--el-overlay-color-lighter);transition:opacity var(--el-transition-duration)}.el-upload-list--picture-card .el-upload-list__item-actions span{display:none;cursor:pointer}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:1rem}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{position:static;font-size:inherit;color:inherit}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-flex}.el-upload-list--picture-card .el-progress{top:50%;left:50%;transform:translate(-50%,-50%);bottom:auto;width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{overflow:hidden;z-index:0;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;margin-top:10px;padding:10px;display:flex;align-items:center}.el-upload-list--picture .el-upload-list__item .el-icon--check,.el-upload-list--picture .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:block}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item .el-icon--close{top:5px;transform:translateY(0)}.el-upload-list--picture .el-upload-list__item-thumbnail{display:inline-flex;justify-content:center;align-items:center;width:70px;height:70px;-o-object-fit:contain;object-fit:contain;position:relative;z-index:1;background-color:var(--el-color-white)}.el-upload-list--picture .el-upload-list__item-status-label{position:absolute;right:-17px;top:-7px;width:46px;height:26px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-list--picture .el-upload-list__item-status-label i{font-size:12px;margin-top:12px;transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;z-index:10;cursor:default}.el-upload-cover:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-upload-cover img{display:block;width:100%;height:100%}.el-upload-cover__label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-cover__label i{font-size:12px;margin-top:11px;transform:rotate(-45deg);color:#fff}.el-upload-cover__progress{display:inline-block;vertical-align:middle;position:static;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{position:absolute;top:0;left:0;width:100%;height:100%}.el-upload-cover__interact{position:absolute;bottom:0;left:0;width:100%;height:100%;background-color:var(--el-overlay-color-light);text-align:center}.el-upload-cover__interact .btn{display:inline-block;color:#fff;font-size:14px;cursor:pointer;vertical-align:middle;transition:var(--el-transition-md-fade);margin-top:60px}.el-upload-cover__interact .btn i{margin-top:0}.el-upload-cover__interact .btn span{opacity:0;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#fff;display:block;font-size:24px;line-height:inherit;margin:0 auto 5px}.el-upload-cover__title{position:absolute;bottom:0;left:0;background-color:#fff;height:36px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;text-align:left;padding:0 10px;margin:0;line-height:36px;font-size:14px;color:var(--el-text-color-primary)}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.el-vl__wrapper{position:relative}.el-vl__wrapper:hover .el-virtual-scrollbar,.el-vl__wrapper.always-on .el-virtual-scrollbar{opacity:1}.el-vl__window{scrollbar-width:none}.el-vl__window::-webkit-scrollbar{display:none}.el-virtual-scrollbar{opacity:0;transition:opacity .34s ease-out}.el-virtual-scrollbar.always-on{opacity:1}.el-vg__wrapper{position:relative}.el-popper{--el-popper-border-radius:var(--el-popover-border-radius, 4px)}.el-popper{position:absolute;border-radius:var(--el-popper-border-radius);padding:5px 11px;z-index:2000;font-size:12px;line-height:20px;min-width:10px;word-wrap:break-word;visibility:visible}.el-popper.is-dark{color:var(--el-bg-color);background:var(--el-text-color-primary);border:1px solid var(--el-text-color-primary)}.el-popper.is-dark .el-popper__arrow:before{border:1px solid var(--el-text-color-primary);background:var(--el-text-color-primary);right:0}.el-popper.is-light{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light)}.el-popper.is-light .el-popper__arrow:before{border:1px solid var(--el-border-color-light);background:var(--el-bg-color-overlay);right:0}.el-popper.is-pure{padding:0}.el-popper__arrow{position:absolute;width:10px;height:10px;z-index:-1}.el-popper__arrow:before{position:absolute;width:10px;height:10px;z-index:-1;content:" ";transform:rotate(45deg);background:var(--el-text-color-primary);box-sizing:border-box}.el-popper[data-popper-placement^=top]>.el-popper__arrow{bottom:-5px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-bottom-right-radius:2px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow{top:-5px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-top-left-radius:2px}.el-popper[data-popper-placement^=left]>.el-popper__arrow{right:-5px}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-top-right-radius:2px}.el-popper[data-popper-placement^=right]>.el-popper__arrow{left:-5px}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-bottom-left-radius:2px}.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent!important;border-left-color:transparent!important}.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent!important;border-right-color:transparent!important}.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent!important;border-bottom-color:transparent!important}.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}.el-select-dropdown__item{font-size:var(--el-font-size-base);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--el-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.el-select-dropdown__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown__item.hover,.el-select-dropdown__item:hover{background-color:var(--el-fill-color-light)}.el-select-dropdown__item.selected{color:var(--el-color-primary);font-weight:700}.setting-drawer-title[data-v-eeca7f5b]{margin-bottom:12px;color:#000000d9;line-height:22px;font-weight:700}.setting-drawer-title .drawer-title[data-v-eeca7f5b]{font-size:14px}.setting-drawer-block-checbox[data-v-eeca7f5b]{display:flex;justify-content:flex-start;align-items:center;margin-top:10px;margin-bottom:20px}.setting-drawer-block-checbox .setting-drawer-block-checbox-item[data-v-eeca7f5b]{position:relative;margin-right:16px;border-radius:2px;cursor:pointer}.setting-drawer-block-checbox .setting-drawer-block-checbox-item img[data-v-eeca7f5b]{width:48px;height:48px}.setting-drawer-block-checbox .setting-drawer-block-checbox-item .custom-img[data-v-eeca7f5b]{width:48px;height:38px;border-radius:5px;box-shadow:1px 1px 2px #898484}.setting-drawer-block-checbox .setting-drawer-block-checbox-item .setting-drawer-block-checbox-selectIcon[data-v-eeca7f5b]{position:absolute;top:0;right:0;width:100%;height:100%;padding-top:15px;padding-left:24px;color:#1890ff;font-weight:700;font-size:14px}.drawer-item[data-v-eeca7f5b]{color:#000000a6;padding:12px 0;font-size:14px}.drawer-item .comp-style[data-v-eeca7f5b]{float:right;margin:-3px 8px 0 0}.scroll-container[data-v-9ec0345c]{white-space:nowrap;position:relative;overflow:hidden;width:100%;height:100%}.scroll-container[data-v-9ec0345c] .el-scrollbar__bar{bottom:0px}.scroll-container[data-v-9ec0345c] .el-scrollbar__wrap{height:100%;display:flex;align-items:center}.tags-view-container[data-v-53bd61d0]{width:100%;padding:15px 0 15px 20px;background:#343744;display:flex;align-items:center}.tags-view-container .tags-view-wrapper .tags-view-item[data-v-53bd61d0]{display:inline-block;position:relative;cursor:pointer;height:28px;line-height:28px;color:#fff;background:#343744;padding:0 5px;font-size:16px;margin-left:10px;border-radius:2px}.tags-view-container .tags-view-wrapper .tags-view-item[data-v-53bd61d0]:first-of-type{margin-left:15px}.tags-view-container .tags-view-wrapper .tags-view-item[data-v-53bd61d0]:last-of-type{margin-right:15px}.tags-view-container .tags-view-wrapper .tags-view-item.active[data-v-53bd61d0]{background-color:#5690e7;color:#fff;border-color:#5690e7}.tags-view-container .tags-view-wrapper .tags-view-item.default-tag[data-v-53bd61d0]{color:#fff;background-color:#343744;border-color:#4c4f5f}.tags-view-container .tags-view-wrapper .tags-view-item .el-icon-close[data-v-53bd61d0]{display:none}.tags-view-container .tags-view-wrapper .tags-view-item:hover .el-icon-close[data-v-53bd61d0]{display:inline-block;color:#5690e7}.tags-view-container .tags-view-wrapper .tags-view-item.active[data-v-53bd61d0]:hover{background-color:#5690e7}.tags-view-container .tags-view-wrapper .tags-view-item.active:hover .el-icon-close[data-v-53bd61d0]{color:#5690e7}.tags-view-container .contextmenu[data-v-53bd61d0]{margin:0;background:#292C38;z-index:3000;position:absolute;list-style-type:none;padding:5px 0;border-radius:4px;font-size:12px;font-weight:400;color:#fff;box-shadow:2px 2px 3px #0000004d}.tags-view-container .contextmenu li[data-v-53bd61d0]{margin:0;padding:7px 16px;cursor:pointer}.tags-view-container .contextmenu li[data-v-53bd61d0]:hover{background:#5690E7}.tags-view-wrapper .tags-view-item .el-icon-close{width:16px;height:16px;vertical-align:2px;border-radius:50%;text-align:center;transition:all .3s cubic-bezier(.645,.045,.355,1);transform-origin:100% 50%}.tags-view-wrapper .tags-view-item .el-icon-close:before{transform:scale(.6);display:inline-block;vertical-align:-3px}.tags-view-wrapper .tags-view-item .el-icon-close:hover{color:#5690e7;width:12px!important;height:12px!important}.tags-view-wrapper .active .el-icon-close{color:#fff}[data-v-946ec9c7]:export{menuColor:#bfcbd9;menuLightColor:rgba(0,0,0,.7);menuColorActive:#f4f4f5;menuBackground:#292C38;menuLightBackground:#ffffff;subMenuBackground:#1f2d3d;subMenuHover:#001528;sideBarWidth:280px;logoTitleColor:#ffffff;logoLightTitleColor:#001529;primaryColor:#409EFF;successColor:#67C23A;dangerColor:#F56C6C;infoColor:#909399;warningColor:#E6A23C}.app-wrapper[data-v-946ec9c7]{position:relative;height:100vh;width:100%}.app-wrapper[data-v-946ec9c7]:after{content:"";display:table;clear:both}.app-wrapper.mobile.openSidebar[data-v-946ec9c7]{position:fixed;top:0}.layout-container[data-v-946ec9c7]{height:100%;width:100%}.layout-header[data-v-946ec9c7]{padding:0;z-index:10}.layout-content[data-v-946ec9c7]{height:calc(100vh - 50px)}.layout-sidebar[data-v-946ec9c7]{width:248px!important;display:flex!important;flex-direction:column!important;align-items:center!important;transition:width .28s;background-color:#292c38;height:100%;position:relative;overflow:hidden;padding:30px 0!important}.layout-main[data-v-946ec9c7]{background-color:#343744;padding:0;overflow:auto;transition:all .3s}.layout-main.full-width[data-v-946ec9c7]{width:100%}.drawer-bg[data-v-946ec9c7]{background:#000;opacity:.3;width:100%;top:0;height:100%;position:absolute;z-index:999}.hideSidebar .layout-sidebar[data-v-946ec9c7]{width:54px!important}.mobile .layout-sidebar[data-v-946ec9c7]{position:fixed;top:50px;left:0;z-index:999}.sidebarHide .layout-sidebar[data-v-946ec9c7]{display:none}.sub-el-icon,.nav-icon{display:inline-block;font-size:15px;margin-right:12px;position:relative}.svg-icon{width:1em;height:1em;position:relative;fill:currentColor;vertical-align:-2px}#nprogress{pointer-events:none}#nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0px;width:100px;height:100%;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:solid 2px transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.pagination-container[data-v-69b0005c]{width:100%;display:flex;justify-content:flex-end;align-items:center;flex-wrap:nowrap;flex-direction:row;align-content:flex-start}[data-v-69b0005c] .el-pagination{border:1px solid #4c4f5f;border-radius:8px;background-color:#343744;padding:0;--el-pagination-bg-color: #343744;--el-pagination-text-color: #fff;--el-pagination-button-color: #fff;--el-pagination-hover-color: #409eff;--el-disabled-bg-color: transparent}[data-v-69b0005c] .el-pagination .el-pagination__total,[data-v-69b0005c] .el-pagination .el-pagination__jump,[data-v-69b0005c] .el-pagination .btn-prev,[data-v-69b0005c] .el-pagination .btn-next{color:#96a0b5;background-color:transparent;margin:0}[data-v-69b0005c] .el-pagination .btn-prev,[data-v-69b0005c] .el-pagination .btn-next{width:45px;height:30px;display:flex;align-items:center;justify-content:center}[data-v-69b0005c] .el-pagination .btn-prev:hover:not(.is-disabled),[data-v-69b0005c] .el-pagination .btn-next:hover:not(.is-disabled){background-color:transparent;color:#409eff}[data-v-69b0005c] .el-pagination .btn-next:last-child{border-right:none}[data-v-69b0005c] .el-pagination .btn-prev.is-disabled,[data-v-69b0005c] .el-pagination .btn-next.is-disabled{background-color:transparent!important;color:#606266;opacity:.5}[data-v-69b0005c] .el-pagination .btn-prev.is-disabled:hover,[data-v-69b0005c] .el-pagination .btn-next.is-disabled:hover{background-color:transparent!important;border-color:transparent!important}[data-v-69b0005c] .el-pagination .el-pager li{margin:0;width:45px;height:30px;border-right:1px solid #4c4f5f;background-color:transparent;color:#96a0b5}[data-v-69b0005c] .el-pagination .el-pager li .number{padding:0}[data-v-69b0005c] .el-pagination .el-pager li.is-active{color:#409eff;background-color:transparent}[data-v-69b0005c] .el-pagination .el-pager li:hover{color:#409eff;background-color:transparent;border-color:#4c4f5f}[data-v-69b0005c] .el-pagination .el-pager li:first-child{border-left:1px solid #4c4f5f}[data-v-69b0005c] .el-pagination .el-pager li.more{background-color:transparent;color:#96a0b5}[data-v-69b0005c] .el-pagination .el-pager li.more:hover{background-color:transparent;color:#409eff}[data-v-9f9bf8e9] .el-transfer__button{border-radius:50%;display:block;margin-left:0}[data-v-9f9bf8e9] .el-transfer__button:first-child{margin-bottom:10px}.my-el-transfer[data-v-9f9bf8e9]{text-align:center}.upload-file-uploader[data-v-bc2766f2]{margin-bottom:5px}.upload-file-list .el-upload-list__item[data-v-bc2766f2]{border:1px solid #e4e7ed;line-height:2;margin-bottom:10px;position:relative}.upload-file-list .ele-upload-list__item-content[data-v-bc2766f2]{display:flex;justify-content:space-between;align-items:center;color:inherit}.ele-upload-list__item-content-action .el-link[data-v-bc2766f2]{margin-right:10px}[data-v-ab87f2df] .hide .el-upload--picture-card{display:none}.el-image[data-v-e952170a]{border-radius:5px;background-color:#ebeef5;box-shadow:0 0 5px 1px #ccc}.el-image[data-v-e952170a] .el-image__inner{transition:all .3s;cursor:pointer}.el-image[data-v-e952170a] .el-image__inner:hover{transform:scale(1.2)}.el-image[data-v-e952170a] .image-slot{display:flex;justify-content:center;align-items:center;width:100%;height:100%;color:#909399;font-size:30px}[data-v-0d03e5b3]:export{menuColor:#bfcbd9;menuLightColor:rgba(0,0,0,.7);menuColorActive:#f4f4f5;menuBackground:#292C38;menuLightBackground:#ffffff;subMenuBackground:#1f2d3d;subMenuHover:#001528;sideBarWidth:280px;logoTitleColor:#ffffff;logoLightTitleColor:#001529;primaryColor:#409EFF;successColor:#67C23A;dangerColor:#F56C6C;infoColor:#909399;warningColor:#E6A23C}.el-scrollbar .el-scrollbar__view .el-select-dropdown__item[data-v-0d03e5b3]{padding:0;background-color:#fff;height:auto}.el-select-dropdown__item.selected[data-v-0d03e5b3]{font-weight:400}ul li .el-tree .el-tree-node__content[data-v-0d03e5b3]{height:auto;padding:0 20px;box-sizing:border-box}[data-v-0d03e5b3] .el-tree-node__content:hover,[data-v-0d03e5b3] .el-tree-node__content:active,[data-v-0d03e5b3] .is-current>div:first-child,[data-v-0d03e5b3] .el-tree-node__content:focus{background-color:#ecf5ff;color:#409eff}.el-tag+.el-tag[data-v-2ad79500]{margin-left:10px} diff --git a/airport/assets/index.5ac6245b.css.gz b/airport/assets/index.5ac6245b.css.gz new file mode 100644 index 0000000..63c1884 Binary files /dev/null and b/airport/assets/index.5ac6245b.css.gz differ diff --git a/airport/assets/index.5eeba437.css b/airport/assets/index.5eeba437.css new file mode 100644 index 0000000..0c3cb6f --- /dev/null +++ b/airport/assets/index.5eeba437.css @@ -0,0 +1 @@ +.app-container[data-v-c84d2e8b]{padding:20px;background-color:#292c38;color:#fff;height:calc(100vh - 150px);overflow-y:auto;border-radius:10px;display:flex;flex-direction:column}.search-action-bar[data-v-c84d2e8b]{display:flex;align-items:center;margin-bottom:20px}.search-action-bar .search-area[data-v-c84d2e8b]{display:flex;gap:10px}.search-action-bar .search-area .search-input[data-v-c84d2e8b]{width:250px}.search-action-bar .search-area .search-btn[data-v-c84d2e8b],.search-action-bar .search-area .reset-btn[data-v-c84d2e8b]{border-radius:8px;font-size:15px;height:36px;min-width:80px}.search-action-bar .search-area .search-btn[data-v-c84d2e8b]{background:#347ae2;color:#fff;border:none}.search-action-bar .search-area .reset-btn[data-v-c84d2e8b]{background:#343744;color:#96a0b5;border:none}.search-action-bar .action-buttons[data-v-c84d2e8b]{margin-left:auto;display:flex;gap:10px}.search-action-bar .action-buttons .add-btn[data-v-c84d2e8b],.search-action-bar .action-buttons .delete-btn[data-v-c84d2e8b]{border-radius:8px;font-size:15px;height:36px;min-width:80px}.search-action-bar .action-buttons .add-btn[data-v-c84d2e8b]{background:#347ae2;color:#fff;border:none}.search-action-bar .action-buttons .delete-btn[data-v-c84d2e8b]{background:#343744;color:#96a0b5;border:none}.table-container[data-v-c84d2e8b]{flex:1;overflow-y:auto}.custom-table[data-v-c84d2e8b]{background-color:#292c38!important;color:#fff;border-radius:4px;overflow:visible}.custom-table[data-v-c84d2e8b] .el-loading-mask{background-color:#292c38b3!important}.custom-table[data-v-c84d2e8b] .el-table__empty-block{background-color:#292c38!important}.custom-table[data-v-c84d2e8b] .el-table__empty-text{color:#96a0b5!important}.custom-table[data-v-c84d2e8b] .el-table,.custom-table[data-v-c84d2e8b] .el-table__body{background-color:#292c38!important}.custom-table[data-v-c84d2e8b] .el-table__inner-wrapper:before{display:none}.custom-table[data-v-c84d2e8b] .el-table__header{border-top-left-radius:4px;border-top-right-radius:4px;overflow:hidden}.custom-table[data-v-c84d2e8b] .el-table__header-wrapper th{background-color:#343744!important;color:#96a0b5!important;font-weight:400;border-bottom:none}.custom-table[data-v-c84d2e8b] .el-table__header-wrapper tr th.el-table__cell:first-child,.custom-table[data-v-c84d2e8b] .el-table__header-wrapper tr th.el-table__cell:first-child .cell{border-top-left-radius:6px}.custom-table[data-v-c84d2e8b] .el-table__header-wrapper tr th.el-table__cell:last-child{border-top-right-radius:4px}.custom-table[data-v-c84d2e8b] .el-table__header-wrapper tr th.el-table__cell:last-child .cell{border-top-right-radius:4px}.custom-table[data-v-c84d2e8b] .el-table__header-wrapper .el-table__header th.el-table__cell{background-color:#343744!important;color:#96a0b5}.custom-table[data-v-c84d2e8b] .el-table__header-wrapper tr{background-color:#343744!important}.custom-table[data-v-c84d2e8b] .el-table__body-wrapper td{height:68px!important;background-color:#292c38;color:#fff;border-bottom:1px solid #4c4f5f}.custom-table[data-v-c84d2e8b] .el-table__body tr:hover>td{background:#2b3b5a!important}.custom-table[data-v-c84d2e8b] .el-button--link{border:none;background:transparent;color:#347ae2;padding:0;margin:0 5px}.custom-table[data-v-c84d2e8b] .el-button.is-text{background-color:transparent!important;border-color:transparent;color:#347ae2}.custom-table[data-v-c84d2e8b] .el-button.is-text:hover,.custom-table[data-v-c84d2e8b] .el-button.is-text:focus,.custom-table[data-v-c84d2e8b] .el-button.is-text:active{background-color:transparent!important;color:#347ae2}.custom-table[data-v-c84d2e8b] .el-button.el-button--primary.is-text,.custom-table[data-v-c84d2e8b] .el-button.el-button--primary.is-text:hover,.custom-table[data-v-c84d2e8b] .el-table__body tr:hover .el-button--link.is-text{background-color:transparent!important;color:#347ae2}.custom-table[data-v-c84d2e8b] .el-dialog{background-color:#292c38;border:1px solid #4c4f5f;border-radius:8px}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__header{background-color:#343744;border-bottom:1px solid #4c4f5f;border-radius:8px 8px 0 0;padding:15px 20px}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__header .el-dialog__title{color:#fff;font-size:16px;font-weight:500}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__header .el-dialog__headerbtn .el-dialog__close{color:#96a0b5}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__header .el-dialog__headerbtn .el-dialog__close:hover{color:#fff}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body{background-color:#292c38;color:#fff;padding:20px}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .el-form .el-form-item .el-form-item__label{color:#96a0b5;font-weight:500}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .el-form .el-form-item .el-input .el-input__wrapper{background-color:#343744;border:1px solid #4c4f5f;border-radius:6px}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .el-form .el-form-item .el-input .el-input__wrapper .el-input__inner{background-color:transparent;color:#fff}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .el-form .el-form-item .el-input .el-input__wrapper .el-input__inner::placeholder{color:#6b7280}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .el-form .el-form-item .el-input .el-input__wrapper:hover{border-color:#5a5f70}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .el-form .el-form-item .el-input .el-input__wrapper.is-focus{border-color:#347ae2}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .el-form .el-form-item .el-textarea .el-textarea__inner{background-color:#343744;border:1px solid #4c4f5f;border-radius:6px;color:#fff}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .el-form .el-form-item .el-textarea .el-textarea__inner::placeholder{color:#6b7280}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .el-form .el-form-item .el-textarea .el-textarea__inner:hover{border-color:#5a5f70}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .el-form .el-form-item .el-textarea .el-textarea__inner:focus{border-color:#347ae2}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .el-form .el-form-item .el-radio-group .el-radio .el-radio__label{color:#fff}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .el-form .el-form-item .el-radio-group .el-radio .el-radio__input .el-radio__inner{background-color:#343744;border-color:#4c4f5f}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .el-form .el-form-item .el-radio-group .el-radio .el-radio__input .el-radio__inner:hover{border-color:#347ae2}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .el-form .el-form-item .el-radio-group .el-radio .el-radio__input.is-checked .el-radio__inner{background-color:#347ae2;border-color:#347ae2}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .detail-content{background-color:transparent}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .detail-content .detail-item{display:flex;align-items:center;padding:12px 0;border-bottom:1px solid #4c4f5f}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .detail-content .detail-item:last-child{border-bottom:none}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .detail-content .detail-item .detail-label{color:#96a0b5;font-weight:500;min-width:100px;flex-shrink:0}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .detail-content .detail-item .detail-value{color:#fff;flex:1}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .detail-content .detail-item .detail-value .el-tag{background-color:transparent;border:1px solid}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .detail-content .detail-item .detail-value .el-tag.el-tag--success{color:#67c23a;border-color:#67c23a;background-color:#67c23a1a}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__body .detail-content .detail-item .detail-value .el-tag.el-tag--info{color:#909399;border-color:#909399;background-color:#9093991a}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__footer{background-color:#292c38;border-top:1px solid #4c4f5f;padding:15px 20px;border-radius:0 0 8px 8px}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__footer .el-button{border-radius:6px;height:36px;min-width:80px}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__footer .el-button.el-button--primary{background-color:#347ae2;border-color:#347ae2;color:#fff}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__footer .el-button.el-button--primary:hover{background-color:#2563eb;border-color:#2563eb}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__footer .el-button.el-button--default{background-color:#4c4f5f;border-color:#4c4f5f;color:#fff}.custom-table[data-v-c84d2e8b] .el-dialog .el-dialog__footer .el-button.el-button--default:hover{background-color:#5a5f70;border-color:#5a5f70} diff --git a/airport/assets/index.5eeba437.css.gz b/airport/assets/index.5eeba437.css.gz new file mode 100644 index 0000000..36b0edd Binary files /dev/null and b/airport/assets/index.5eeba437.css.gz differ diff --git a/airport/assets/index.61e877f2.js b/airport/assets/index.61e877f2.js new file mode 100644 index 0000000..73cb107 --- /dev/null +++ b/airport/assets/index.61e877f2.js @@ -0,0 +1 @@ +import{_ as Se,Y as xe,r as d,a6 as Ne,ae as Ke,d as m,a8 as Z,o as g,c as ee,l as _,e as n,f as a,i as we,w as u,J as C,k as x,T as le,a9 as N,a as Re,s as Ie,m as r,x as te,H as Ue,I as Te,a4 as ae}from"./index.79832097.js";import{l as De,d as $e,g as Me,u as Ae,a as qe,b as Ee}from"./role.9b221df4.js";import{t as Le,r as Pe}from"./menu.d7f9bfd6.js";const Be={class:"app-container"},Fe={class:"role-container"},Oe={class:"search-area"},ze={class:"search-buttons"},He={class:"action-buttons"},Qe={class:"permission-controls"},je={class:"dialog-footer"},Je={class:"dialog-footer"},Ye=xe({name:"SystemRoleIndex"}),Ge=Object.assign(Ye,{setup(We){Re();const{proxy:f}=Ie();f.useDict("sys_normal_disable");const F=d([]),v=d(!1),M=d(!0);d(!0);const A=d([]),oe=d(!0),O=d(!0),q=d(0),I=d(""),z=d([]),K=d([]),U=d(!1),T=d(!1),E=d(!0),L=d(!1),P=d([]),w=d(!1),y=d(null),V=d(null),ne=d([{value:"1",label:"\u5168\u90E8\u6570\u636E\u6743\u9650"},{value:"2",label:"\u81EA\u5B9A\u6570\u636E\u6743\u9650"},{value:"3",label:"\u672C\u90E8\u95E8\u6570\u636E\u6743\u9650"},{value:"4",label:"\u672C\u90E8\u95E8\u53CA\u4EE5\u4E0B\u6570\u636E\u6743\u9650"},{value:"5",label:"\u4EC5\u672C\u4EBA\u6570\u636E\u6743\u9650"}]),ue=Ne({form:{},queryParams:{pageNum:1,pageSize:10,roleName:void 0,roleKey:void 0,status:void 0},rules:{roleName:[{required:!0,message:"\u89D2\u8272\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],remark:[{required:!1,message:"\u5907\u6CE8\u4FE1\u606F",trigger:"blur"}]}}),{queryParams:h,form:t,rules:se}=Ke(ue);function b(){M.value=!0,De(f.addDateRange(h.value,z.value)).then(o=>{F.value=o.rows,q.value=o.total,M.value=!1})}function B(){h.value.pageNum=1,b()}function de(){z.value=[],f.resetForm("queryRef"),B()}function H(o){const e=o.roleId||A.value;f.$modal.confirm("\u786E\u5B9A\u5220\u9664\u6B64\u89D2\u8272\u5417?").then(function(){return $e(e)}).then(()=>{b(),f.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function re(o){A.value=o.map(e=>e.roleId),oe.value=o.length!=1,O.value=!o.length}function ie(){Le().then(o=>{K.value=o.data})}function ce(){let o=V.value.getCheckedKeys(),e=V.value.getHalfCheckedKeys();return o.unshift.apply(o,e),o}function D(){y.value!=null&&y.value.setCheckedKeys([]),U.value=!1,T.value=!1,t.value={roleId:void 0,roleName:void 0,remark:void 0,menuIds:[],menuCheckStrictly:!0},f.resetForm("roleRef")}function me(){D(),ie(),v.value=!0,I.value="\u6DFB\u52A0\u89D2\u8272"}function pe(o){D();const e=o.roleId||A.value,i=fe(e);Me(e).then(s=>{t.value=s.data,t.value.roleSort=Number(t.value.roleSort),v.value=!0,ae(()=>{i.then(p=>{p.checkedKeys.forEach(S=>{ae(()=>{y.value.setChecked(S,!0,!1)})})})}),I.value="\u4FEE\u6539\u89D2\u8272"})}function fe(o){return Pe(o).then(e=>(K.value=e.menus,e))}function Q(o,e){if(e=="menu"){let i=K.value;for(let s=0;s{var e,i,s,p,R,S;if(o)if(t.value.roleId!=null){const c={roleId:t.value.roleId,roleName:t.value.roleName,roleKey:t.value.roleKey||t.value.roleName,roleSort:Number((e=t.value.roleSort)!=null?e:0),status:(i=t.value.status)!=null?i:"0",menuIds:Y(),menuCheckStrictly:(s=t.value.menuCheckStrictly)!=null?s:!0,remark:t.value.remark};delete c.admin,Ae(c).then(k=>{f.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),v.value=!1,b()})}else{const c={roleName:t.value.roleName,roleKey:t.value.roleKey||t.value.roleName,roleSort:Number((p=t.value.roleSort)!=null?p:0),status:(R=t.value.status)!=null?R:"0",menuIds:Y(),menuCheckStrictly:(S=t.value.menuCheckStrictly)!=null?S:!0,remark:t.value.remark};delete c.admin,qe(c).then(k=>{f.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),v.value=!1,b()})}})}function ye(){v.value=!1,D()}function he(o){o!=="2"&&V.value.setCheckedKeys([])}function ke(){t.value.roleId!=null&&(t.value.deptIds=ce(),Ee(t.value).then(o=>{f.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),w.value=!1,b()}))}function ge(){w.value=!1,D()}return b(),(o,e)=>{const i=m("el-input"),s=m("el-button"),p=m("el-table-column"),R=m("el-table"),S=m("pagination"),c=m("el-form-item"),k=m("el-checkbox"),G=m("el-tree"),W=m("el-form"),X=m("el-dialog"),_e=m("el-option"),be=m("el-select"),$=Z("hasPermi"),Ce=Z("loading");return g(),ee("div",Be,[_("div",Fe,[_("div",Oe,[n(i,{modelValue:a(h).roleName,"onUpdate:modelValue":e[0]||(e[0]=l=>a(h).roleName=l),placeholder:"\u8BF7\u8F93\u5165\u89D2\u8272\u540D\u79F0\u67E5\u8BE2",clearable:"","prefix-icon":"Search",class:"search-input",onKeyup:we(B,["enter"])},null,8,["modelValue","onKeyup"]),_("div",ze,[n(s,{type:"primary",class:"search-btn",onClick:B},{default:u(()=>[r("\u641C\u7D22")]),_:1}),n(s,{class:"reset-btn",onClick:de},{default:u(()=>[r("\u91CD\u7F6E")]),_:1})]),_("div",He,[C((g(),x(s,{type:"primary",class:"search-btn",onClick:me},{default:u(()=>[r("\u65B0\u589E")]),_:1})),[[$,["system:role:add"]]]),C((g(),x(s,{class:"export-btn",type:"danger",plain:"",disabled:a(O),onClick:H},{default:u(()=>[r("\u5220\u9664")]),_:1},8,["disabled"])),[[$,["system:role:remove"]]])])]),C((g(),x(R,{data:a(F),onSelectionChange:re,style:{width:"100%"},class:"custom-table","header-cell-style":{backgroundColor:"#343744",color:"#fff"},"bg-color":"#292C38"},{default:u(()=>[n(p,{type:"selection",width:"50",align:"left"}),n(p,{label:"\u5E8F\u53F7",width:"60",align:"left"},{default:u(l=>[r(te(l.$index+1),1)]),_:1}),n(p,{label:"\u64CD\u4F5C",align:"left"},{default:u(l=>[C((g(),x(s,{link:"",text:"",onClick:Ve=>pe(l.row)},{default:u(()=>[r("\u7F16\u8F91")]),_:2},1032,["onClick"])),[[$,["system:role:edit"]]]),C((g(),x(s,{link:"",text:"",type:"primary",onClick:Ve=>H(l.row)},{default:u(()=>[r("\u5220\u9664")]),_:2},1032,["onClick"])),[[$,["system:role:remove"]]])]),_:1}),n(p,{label:"\u89D2\u8272\u540D\u79F0",prop:"roleName","show-overflow-tooltip":!0,align:"left"}),n(p,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":!0,align:"left"}),n(p,{label:"\u521B\u5EFA\u65F6\u95F4",align:"left",prop:"createTime"},{default:u(l=>[_("span",null,te(o.parseTime(l.row.createTime)),1)]),_:1})]),_:1},8,["data"])),[[Ce,a(M)]]),C(n(S,{total:a(q),page:a(h).pageNum,"onUpdate:page":e[1]||(e[1]=l=>a(h).pageNum=l),limit:a(h).pageSize,"onUpdate:limit":e[2]||(e[2]=l=>a(h).pageSize=l),onPagination:b},null,8,["total","page","limit"]),[[le,a(q)>0]])]),n(X,{title:a(I),modelValue:a(v),"onUpdate:modelValue":e[11]||(e[11]=l=>N(v)?v.value=l:null),width:"500px","append-to-body":""},{footer:u(()=>[_("div",je,[n(s,{type:"primary",class:"search-btn",onClick:ve},{default:u(()=>[r("\u786E \u5B9A")]),_:1}),n(s,{class:"export-btn",onClick:ye},{default:u(()=>[r("\u53D6 \u6D88")]),_:1})])]),default:u(()=>[n(W,{ref:"roleRef",model:a(t),rules:a(se),"label-width":"100px"},{default:u(()=>[n(c,{label:"\u89D2\u8272\u540D\u79F0",prop:"roleName"},{default:u(()=>[n(i,{modelValue:a(t).roleName,"onUpdate:modelValue":e[3]||(e[3]=l=>a(t).roleName=l),placeholder:"\u8BF7\u8F93\u5165\u89D2\u8272\u540D\u79F0"},null,8,["modelValue"])]),_:1}),n(c,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"remark"},{default:u(()=>[n(i,{modelValue:a(t).remark,"onUpdate:modelValue":e[4]||(e[4]=l=>a(t).remark=l),placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u4FE1\u606F"},null,8,["modelValue"])]),_:1}),n(c,{label:"\u6743\u9650"},{default:u(()=>[_("div",Qe,[n(k,{modelValue:a(U),"onUpdate:modelValue":e[5]||(e[5]=l=>N(U)?U.value=l:null),onChange:e[6]||(e[6]=l=>Q(l,"menu"))},{default:u(()=>[r("\u5C55\u5F00/\u6298\u53E0")]),_:1},8,["modelValue"]),n(k,{modelValue:a(T),"onUpdate:modelValue":e[7]||(e[7]=l=>N(T)?T.value=l:null),onChange:e[8]||(e[8]=l=>j(l,"menu"))},{default:u(()=>[r("\u5168\u9009/\u5168\u4E0D\u9009")]),_:1},8,["modelValue"]),n(k,{modelValue:a(t).menuCheckStrictly,"onUpdate:modelValue":e[9]||(e[9]=l=>a(t).menuCheckStrictly=l),onChange:e[10]||(e[10]=l=>J(l,"menu"))},{default:u(()=>[r("\u7236\u5B50\u8054\u52A8")]),_:1},8,["modelValue"])]),n(G,{class:"tree-border",data:a(K),"show-checkbox":"",ref_key:"menuRef",ref:y,"node-key":"id","check-strictly":!a(t).menuCheckStrictly,"empty-text":"\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u5019",props:{label:"label",children:"children"}},null,8,["data","check-strictly"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"]),n(X,{title:a(I),modelValue:a(w),"onUpdate:modelValue":e[21]||(e[21]=l=>N(w)?w.value=l:null),width:"500px","append-to-body":""},{footer:u(()=>[_("div",Je,[n(s,{type:"primary",class:"search-btn",onClick:ke},{default:u(()=>[r("\u786E \u5B9A")]),_:1}),n(s,{class:"export-btn",onClick:ge},{default:u(()=>[r("\u53D6 \u6D88")]),_:1})])]),default:u(()=>[n(W,{model:a(t),"label-width":"80px"},{default:u(()=>[n(c,{label:"\u89D2\u8272\u540D\u79F0"},{default:u(()=>[n(i,{modelValue:a(t).roleName,"onUpdate:modelValue":e[12]||(e[12]=l=>a(t).roleName=l),disabled:!0},null,8,["modelValue"])]),_:1}),n(c,{label:"\u6743\u9650\u5B57\u7B26"},{default:u(()=>[n(i,{modelValue:a(t).roleKey,"onUpdate:modelValue":e[13]||(e[13]=l=>a(t).roleKey=l),disabled:!0},null,8,["modelValue"])]),_:1}),n(c,{label:"\u6743\u9650\u8303\u56F4"},{default:u(()=>[n(be,{modelValue:a(t).dataScope,"onUpdate:modelValue":e[14]||(e[14]=l=>a(t).dataScope=l),onChange:he},{default:u(()=>[(g(!0),ee(Ue,null,Te(a(ne),l=>(g(),x(_e,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),C(n(c,{label:"\u6570\u636E\u6743\u9650"},{default:u(()=>[n(k,{modelValue:a(E),"onUpdate:modelValue":e[15]||(e[15]=l=>N(E)?E.value=l:null),onChange:e[16]||(e[16]=l=>Q(l,"dept"))},{default:u(()=>[r("\u5C55\u5F00/\u6298\u53E0")]),_:1},8,["modelValue"]),n(k,{modelValue:a(L),"onUpdate:modelValue":e[17]||(e[17]=l=>N(L)?L.value=l:null),onChange:e[18]||(e[18]=l=>j(l,"dept"))},{default:u(()=>[r("\u5168\u9009/\u5168\u4E0D\u9009")]),_:1},8,["modelValue"]),n(k,{modelValue:a(t).deptCheckStrictly,"onUpdate:modelValue":e[19]||(e[19]=l=>a(t).deptCheckStrictly=l),onChange:e[20]||(e[20]=l=>J(l,"dept"))},{default:u(()=>[r("\u7236\u5B50\u8054\u52A8")]),_:1},8,["modelValue"]),n(G,{class:"tree-border",data:a(P),"show-checkbox":"","default-expand-all":"",ref_key:"deptRef",ref:V,"node-key":"id","check-strictly":!a(t).deptCheckStrictly,"empty-text":"\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u5019",props:{label:"label",children:"children"}},null,8,["data","check-strictly"])]),_:1},512),[[le,a(t).dataScope==2]])]),_:1},8,["model"])]),_:1},8,["title","modelValue"])])}}}),ll=Se(Ge,[["__scopeId","data-v-7e53c758"]]);export{ll as default}; diff --git a/airport/assets/index.61e877f2.js.gz b/airport/assets/index.61e877f2.js.gz new file mode 100644 index 0000000..ab42a32 Binary files /dev/null and b/airport/assets/index.61e877f2.js.gz differ diff --git a/airport/assets/index.6986d19a.js b/airport/assets/index.6986d19a.js new file mode 100644 index 0000000..338c072 --- /dev/null +++ b/airport/assets/index.6986d19a.js @@ -0,0 +1 @@ +import{_ as re,r as u,v as pe,C as ce,D as me,d as f,a8 as ve,o as k,c as U,l as y,e as n,w as o,H as fe,I as ye,k as Y,x as D,n as Ae,m as p,f as q,j as ge,J as G,T as he,a1 as Ce,s as _e,p as be,q as Ne}from"./index.79832097.js";import{a as $,l as R,d as L,g as we,u as Te}from"./vehicle_type.be7b2e4d.js";const ke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGASURBVHgBnZQxS8NAFMdfq4NQCqVQ2jGDQsfrpLSDBQcdMxW69gsotMnqnmTwA2RxE7IoZJE4REhAt7g5RsjQKcQtgoLvpQmc1ybY/uEXkne5/+W9d5carOsAOUEkpJs/p8gSeUNCJOEn1AQDmnyaTywTGTwjQRHY4wbHyBmyD9WiBfr5/QdvwpBz2E4S8oVEdby0YJXCLspSr+eOLX4kjuMrTdMYHzMMg1FcMKHUjimdC9Gk0+mki8VCbjQaieM4SzKYz+eybdsvlmWFglFWxK4YRIOs8oqiyMPhUBqNRgwnu5PJxIV19ajF11Aiz/NkMgiC4H0wGNyVvUc1STcNUApk4Pt+wBjrizXilFJNjkCoSVEDXdfvp9Op22w2E75GgklE6YxBaDF1wTRNV1XVgDeezWbjdrt9I5g8kAm16RKqt3qZ6AjcUjrfyA9yCNvrEQmLbR/B6jBK8H+5yCvd8AcwRD6RHlSnRt18QvwiUNvwUiv/Imqp+D8J89X/bItfCGBzht9BDaUAAAAASUVORK5CYII=",Se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAF7SURBVHgBrVTtcYMwDBW+/A5hAzYoI9AN0glIJ0g6AXSCskGTDdoJSCcIG5QN+PgP9InY1GntUnLRnbAivzxLsmSiG4tj2yjLcoVlLYS46/veh71yHCdnbdv23fO86t+EIEvwx638eYRdsCGJQ2gF+wDShP4Sjqqqqgxa1nW9lVGacBtgPqEnG2YQBjAQIJ8mhDGSNLMBEhsZoo2hLxZSziZWPqE2UKcIF5CgLoXhPB/6KzXGopZP0J1KXci9kD/L5fJAMwWk+4FIiGgk5NbAktOVguzesARsL/iDkAM4jwog6zWmiP1Q+l81nsJ13WdlK4ywHFrRtBjbZSFDLuhc+EG0k0mPDP5HE4nMMNcjzOFc0/VySdh13XC7TdNENFN4anjFfH+MhDzoOCEFcWqZEq5pYSDj/o2he2P/yjmeO3on3X9xy6jjA/PixMyWPk8EdAcME3G73Ov7xueLZxPADZ1bw/R8cWekP7vBSqgioe8HNpCRF1MP7M3lC/P2/tfhgke1AAAAAElFTkSuQmCC";const Ie=S=>(be("data-v-3bac3967"),S=S(),Ne(),S),Ve={class:"app-container"},Be={class:"type-container"},Ee={class:"tabs-container"},xe={class:"tab-label-text"},Ue=["onClick"],De=Ie(()=>y("img",{src:ke,alt:"\u5220\u9664",class:"delete-icon-img"},null,-1)),Re=[De],Le={key:0,style:{color:"#e74c3c","font-size":"13px","margin-top":"8px"}},Me={class:"search-action-bar"},Pe={class:"search-area"},Qe={class:"action-buttons"},je={__name:"index",setup(S){const{proxy:i}=_e(),d=u(""),C=u([]),_=u(!1),A=u(""),V=pe(()=>C.value.some(t=>t.label===A.value.trim())),z=()=>{if(!A.value.trim())return;const t=A.value.trim();if(V.value){i.$modal.msgError("\u8BE5\u8F66\u8F86\u7C7B\u578B\u5DF2\u5B58\u5728");return}const e=M(t),a={displayNameCn:t,displayNameEn:t,typeCode:e,typeName:t.toUpperCase().replace(/\s+/g,"_"),pathLevel:1,isLeaf:!1,enabled:!0,parentCode:null,fullPath:e};$(a).then(h=>{i.$modal.msgSuccess("\u65B0\u589E\u7C7B\u578B\u6210\u529F"),x(),setTimeout(()=>{d.value=a.typeCode},100),A.value="",_.value=!1,setTimeout(()=>{v()},200)}).catch(()=>{})};function M(t){const e=t.split("").map(m=>({\u65E0:"W",\u4EBA:"R",\u8F66:"C",\u7279:"T",\u52E4:"Q",\u666E:"P",\u901A:"T",\u822A:"H",\u7A7A:"K",\u63A5:"J",\u9A73:"B",\u6E05:"Q",\u6D01:"J",\u6D88:"X",\u9632:"F",\u8B66:"J",\u5DE1:"X",\u903B:"L",\u914D:"P",\u9001:"S",\u8FD0:"Y",\u8F93:"S",\u9910:"C",\u884C:"X",\u674E:"L"})[m]||m.charAt(0).toUpperCase());let a=e.slice(0,Math.min(3,e.length)).join("");const h=Math.floor(Math.random()*100);return a+h}const W=t=>{const e=Q.value.find(a=>a.value===t);!e||!e.typeId||R({topLevelCode:t}).then(a=>{if(a.rows&&Array.isArray(a.rows)){if(a.rows.filter(m=>m.parentCode===t||typeof m.fullPath=="string"&&m.fullPath.startsWith(t+"/")).length>0){i.$modal.msgError("\u8BE5\u7C7B\u578B\u4E0B\u6709\u4E8C\u7EA7\u7C7B\u578B\uFF0C\u4E0D\u53EF\u5220\u9664");return}i.$modal.confirm(`\u786E\u5B9A\u5220\u9664 ${e.label} \u7C7B\u578B\u5417?`,"\u5220\u9664").then(function(){return L(e.typeId)}).then(()=>{i.$modal.msgSuccess("\u5220\u9664\u6210\u529F"),x(),d.value}).catch(()=>{})}})},J=t=>{d.value=t.paneName,r.parentCode=t.paneName},I=u(!1),b=u([]),N=u(0),w=u([]),H=u(!0),P=u(!0),B=u(""),g=u(!1),r=u({pageNum:1,pageSize:10,parentCode:"",typeName:void 0}),s=u({}),O=u({firstType:[{required:!0,message:"\u4E00\u7EA7\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}],typeName:[{required:!0,message:"\u4E8C\u7EA7\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}),Q=u([]);function v(){I.value=!0,r.value.parentCode=d.value,R(r.value).then(t=>{if(I.value=!1,t.rows&&Array.isArray(t.rows)){const e=t.rows.filter(a=>a.parentCode===d.value||typeof a.fullPath=="string"&&a.fullPath.startsWith(d.value+"/"));b.value=e.map(a=>({typeId:a.typeId,firstType:d.value,typeName:a.displayNameCn,createBy:a.createBy,createTime:a.createTime})),N.value=b.value.length}else b.value=[],N.value=0}).catch(()=>{I.value=!1,b.value=[],N.value=0})}function j(){r.value.pageNum=1,v()}function K(){r.value.typeName=void 0,r.value.pageNum=1,j()}function Z(t){w.value=t.map(e=>e.typeId),H.value=t.length!=1,P.value=!t.length}function ee(){E(),s.value.firstType=d.value,g.value=!0,B.value="\u6DFB\u52A0\u8F66\u8F86\u7C7B\u578B"}function ae(t){E();const e=t.typeId||w.value[0];we(e).then(a=>{a.data?s.value={typeId:a.data.typeId,firstType:a.data.parentCode||d.value,typeName:a.data.displayNameCn||a.data.typeName}:s.value={},g.value=!0,B.value="\u4FEE\u6539\u8F66\u8F86\u7C7B\u578B"})}function te(){i.$refs.vehicleTypeRef.validate(t=>{if(t){const e=s.value.typeId?void 0:M(s.value.typeName),a={typeId:s.value.typeId,displayNameCn:s.value.typeName,displayNameEn:s.value.typeName,typeCode:e,typeName:s.value.typeName.toUpperCase().replace(/\s+/g,"_"),pathLevel:2,level:2,parentCode:s.value.firstType,isLeaf:!0,enabled:!0,fullPath:s.value.typeId?void 0:`${s.value.firstType}/${e}`};s.value.typeId!=null?Te(a).then(h=>{i.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),g.value=!1,v()}):$(a).then(h=>{i.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),g.value=!1,v()})}})}function le(t){const e=t.typeId||w.value;i.$modal.confirm("\u786E\u5B9A\u5220\u9664\u6B64\u8F66\u8F86\u7C7B\u578B\u5417?","\u5220\u9664").then(function(){return L(e)}).then(()=>{v(),i.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function ne(){if(w.value.length===0){i.$modal.msgError("\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E");return}i.$modal.confirm("\u786E\u8BA4\u5220\u9664\u9009\u4E2D\u7684\u6570\u636E\u9879?").then(function(){return L(w.value)}).then(()=>{v(),i.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function E(){s.value={typeId:void 0,firstType:d.value,typeName:void 0},i.resetForm("vehicleTypeRef")}function oe(){g.value=!1,E()}function x(){R({level:1,pathLevel:1}).then(t=>{if(t.rows&&Array.isArray(t.rows)){const e=t.rows.filter(a=>(a.pathLevel===1||a.level===1)&&(a.parentCode===null||a.parentCode===void 0||a.parentCode===""));Q.value=e.map(a=>({label:a.displayNameCn,value:a.typeCode,typeId:a.typeId})),C.value=e.map(a=>({label:a.displayNameCn,name:a.typeCode,content:""})),!C.value.some(a=>a.name===d.value)&&C.value.length>0&&(d.value=C.value[0].name)}})}return ce(()=>{x(),v()}),me(d,t=>{t&&(r.value.parentCode=t,v())}),(t,e)=>{const a=f("el-tab-pane"),h=f("el-tabs"),m=f("el-input"),c=f("el-button"),F=f("el-dialog"),T=f("el-table-column"),se=f("el-table"),ue=f("el-form-item"),de=f("el-form"),ie=ve("loading");return k(),U("div",Ve,[y("div",Be,[y("div",Ee,[n(h,{modelValue:d.value,"onUpdate:modelValue":e[0]||(e[0]=l=>d.value=l),class:"demo-tabs",onTabClick:J},{default:o(()=>[(k(!0),U(fe,null,ye(C.value,l=>(k(),Y(a,{key:l.name,name:l.name},{label:o(()=>[y("span",xe,D(l.label),1),y("span",{class:"tab-delete-icon",onClick:Ae(X=>W(l.name),["stop"])},Re,8,Ue)]),default:o(()=>[p(" "+D(l.content),1)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),y("img",{src:Se,class:"add-tab-btn",onClick:e[1]||(e[1]=l=>_.value=!0),alt:"add"})]),n(F,{modelValue:_.value,"onUpdate:modelValue":e[4]||(e[4]=l=>_.value=l),title:"\u65B0\u589E\u7C7B\u578B",width:"320px","close-on-click-modal":!1},{footer:o(()=>[n(c,{class:"export-btn",onClick:e[3]||(e[3]=l=>_.value=!1)},{default:o(()=>[p("\u53D6\u6D88")]),_:1}),n(c,{class:"search-btn",type:"primary",disabled:!A.value.trim()||q(V),onClick:z},{default:o(()=>[p("\u786E\u5B9A")]),_:1},8,["disabled"])]),default:o(()=>[n(m,{modelValue:A.value,"onUpdate:modelValue":e[2]||(e[2]=l=>A.value=l),placeholder:"\u8BF7\u8F93\u5165\u7C7B\u578B\u540D\u79F0",maxlength:"10"},null,8,["modelValue"]),q(V)?(k(),U("div",Le," \u7C7B\u578B\u540D\u79F0\u5DF2\u5B58\u5728 ")):ge("",!0)]),_:1},8,["modelValue"]),y("div",Me,[y("div",Pe,[n(m,{modelValue:r.value.typeName,"onUpdate:modelValue":e[5]||(e[5]=l=>r.value.typeName=l),placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u67E5\u8BE2",class:"search-input",clearable:""},null,8,["modelValue"]),n(c,{type:"primary",class:"search-btn",onClick:j},{default:o(()=>[p("\u641C\u7D22")]),_:1}),n(c,{class:"reset-btn",onClick:K},{default:o(()=>[p("\u91CD\u7F6E")]),_:1})]),y("div",Qe,[n(c,{type:"primary",class:"add-btn",onClick:ee},{default:o(()=>[p("\u65B0\u589E")]),_:1}),n(c,{class:"delete-btn",onClick:ne,disabled:P.value},{default:o(()=>[p("\u5220\u9664")]),_:1},8,["disabled"])])]),G((k(),Y(se,{data:b.value,onSelectionChange:Z,class:"custom-table","header-cell-style":{backgroundColor:"#343744",color:"#fff"}},{default:o(()=>[n(T,{type:"selection",width:"50"}),n(T,{label:"\u64CD\u4F5C",width:"120"},{default:o(l=>[n(c,{link:"",text:"",onClick:X=>ae(l.row)},{default:o(()=>[p("\u7F16\u8F91")]),_:2},1032,["onClick"]),n(c,{link:"",text:"",type:"danger",onClick:X=>le(l.row)},{default:o(()=>[p("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1}),n(T,{label:"\u4E8C\u7EA7\u7C7B\u578B",prop:"typeName"},{default:o(l=>[p(D(l.row.typeName),1)]),_:1}),n(T,{label:"\u521B\u5EFA\u4EBA",prop:"createBy"}),n(T,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"})]),_:1},8,["data"])),[[ie,I.value]]),G(n(Ce,{total:N.value,page:r.value.pageNum,"onUpdate:page":e[6]||(e[6]=l=>r.value.pageNum=l),limit:r.value.pageSize,"onUpdate:limit":e[7]||(e[7]=l=>r.value.pageSize=l),onPagination:v},null,8,["total","page","limit"]),[[he,N.value>0]])]),n(F,{modelValue:g.value,"onUpdate:modelValue":e[9]||(e[9]=l=>g.value=l),title:B.value,width:"500px","close-on-click-modal":!1},{footer:o(()=>[n(c,{onClick:oe},{default:o(()=>[p("\u53D6\u6D88")]),_:1}),n(c,{type:"primary",onClick:te},{default:o(()=>[p("\u786E\u5B9A")]),_:1})]),default:o(()=>[n(de,{ref:"vehicleTypeRef",model:s.value,rules:O.value,"label-width":"90px"},{default:o(()=>[n(ue,{label:"\u4E8C\u7EA7\u7C7B\u578B",prop:"typeName"},{default:o(()=>[n(m,{modelValue:s.value.typeName,"onUpdate:modelValue":e[8]||(e[8]=l=>s.value.typeName=l),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"])])}}},Ye=re(je,[["__scopeId","data-v-3bac3967"]]);export{Ye as default}; diff --git a/airport/assets/index.6986d19a.js.gz b/airport/assets/index.6986d19a.js.gz new file mode 100644 index 0000000..37e375e Binary files /dev/null and b/airport/assets/index.6986d19a.js.gz differ diff --git a/airport/assets/index.6d5d407e.css b/airport/assets/index.6d5d407e.css new file mode 100644 index 0000000..d4992d5 --- /dev/null +++ b/airport/assets/index.6d5d407e.css @@ -0,0 +1 @@ +.icon-body[data-v-79fe850d]{width:100%;padding:10px}.icon-body .icon-list[data-v-79fe850d]{height:200px;overflow-y:scroll}.icon-body .icon-list div[data-v-79fe850d]{height:30px;line-height:30px;margin-bottom:-5px;cursor:pointer;width:33%;float:left}.icon-body .icon-list span[data-v-79fe850d]{display:inline-block;vertical-align:-.15em;fill:currentColor;overflow:hidden}.app-container[data-v-9fd2a422]{padding:20px;background-color:#292c38;color:#fff;height:calc(100vh - 180px);overflow-y:auto;border-radius:10px;display:flex;flex-direction:column}.table-container[data-v-9fd2a422]{flex:1;overflow-y:auto;margin-bottom:20px} diff --git a/airport/assets/index.787ae1f4.js b/airport/assets/index.787ae1f4.js new file mode 100644 index 0000000..1881ebf --- /dev/null +++ b/airport/assets/index.787ae1f4.js @@ -0,0 +1 @@ +import{L as k,_ as ye,Y as ve,r as g,a6 as he,ae as be,d as a,a8 as z,o as d,c as $,J as _,T as Q,f as n,e,w as o,i as M,H as j,I as A,k as y,a9 as q,m as s,l as H,x as J,s as Ve}from"./index.79832097.js";function we(p){return k({url:"/system/config/list",method:"get",params:p})}function ke(p){return k({url:"/system/config/"+p,method:"get"})}function Ce(p){return k({url:"/system/config",method:"post",data:p})}function xe(p){return k({url:"/system/config",method:"put",data:p})}function Ne(p){return k({url:"/system/config/"+p,method:"delete"})}function Te(){return k({url:"/system/config/refreshCache",method:"delete"})}const Se={class:"app-container"},Ke={class:"dialog-footer"},Ue=ve({name:"Config"}),De=Object.assign(Ue,{setup(p){const{proxy:c}=Ve(),{sys_yes_no:S}=c.useDict("sys_yes_no"),P=g([]),h=g(!1),K=g(!0),N=g(!0),U=g([]),Y=g(!0),B=g(!0),D=g(0),R=g(""),C=g([]),O=he({form:{},queryParams:{pageNum:1,pageSize:10,configName:void 0,configKey:void 0,configType:void 0},rules:{configName:[{required:!0,message:"\u53C2\u6570\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],configKey:[{required:!0,message:"\u53C2\u6570\u952E\u540D\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],configValue:[{required:!0,message:"\u53C2\u6570\u952E\u503C\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}}),{queryParams:u,form:i,rules:G}=be(O);function V(){K.value=!0,we(c.addDateRange(u.value,C.value)).then(r=>{P.value=r.rows,D.value=r.total,K.value=!1})}function W(){h.value=!1,I()}function I(){i.value={configId:void 0,configName:void 0,configKey:void 0,configValue:void 0,configType:"Y",remark:void 0},c.resetForm("configRef")}function T(){u.value.pageNum=1,V()}function X(){C.value=[],c.resetForm("queryRef"),T()}function Z(r){U.value=r.map(t=>t.configId),Y.value=r.length!=1,B.value=!r.length}function ee(){I(),h.value=!0,R.value="\u6DFB\u52A0\u53C2\u6570"}function E(r){I();const t=r.configId||U.value;ke(t).then(b=>{i.value=b.data,h.value=!0,R.value="\u4FEE\u6539\u53C2\u6570"})}function le(){c.$refs.configRef.validate(r=>{r&&(i.value.configId!=null?xe(i.value).then(t=>{c.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),h.value=!1,V()}):Ce(i.value).then(t=>{c.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),h.value=!1,V()}))})}function F(r){const t=r.configId||U.value;c.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u53C2\u6570\u7F16\u53F7\u4E3A"'+t+'"\u7684\u6570\u636E\u9879\uFF1F').then(function(){return Ne(t)}).then(()=>{V(),c.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function oe(){c.download("system/config/export",{...u.value},`config_${new Date().getTime()}.xlsx`)}function ne(){Te().then(()=>{c.$modal.msgSuccess("\u5237\u65B0\u7F13\u5B58\u6210\u529F")})}return V(),(r,t)=>{const b=a("el-input"),m=a("el-form-item"),te=a("el-option"),ae=a("el-select"),ie=a("el-date-picker"),f=a("el-button"),L=a("el-form"),x=a("el-col"),ue=a("right-toolbar"),re=a("el-row"),v=a("el-table-column"),de=a("dict-tag"),se=a("el-table"),ce=a("pagination"),fe=a("el-radio"),pe=a("el-radio-group"),me=a("el-dialog"),w=z("hasPermi"),ge=z("loading");return d(),$("div",Se,[_(e(L,{model:n(u),ref:"queryRef",inline:!0,"label-width":"68px"},{default:o(()=>[e(m,{label:"\u53C2\u6570\u540D\u79F0",prop:"configName"},{default:o(()=>[e(b,{modelValue:n(u).configName,"onUpdate:modelValue":t[0]||(t[0]=l=>n(u).configName=l),placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u540D\u79F0",clearable:"",style:{width:"240px"},onKeyup:M(T,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(m,{label:"\u53C2\u6570\u952E\u540D",prop:"configKey"},{default:o(()=>[e(b,{modelValue:n(u).configKey,"onUpdate:modelValue":t[1]||(t[1]=l=>n(u).configKey=l),placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u952E\u540D",clearable:"",style:{width:"240px"},onKeyup:M(T,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(m,{label:"\u7CFB\u7EDF\u5185\u7F6E",prop:"configType"},{default:o(()=>[e(ae,{modelValue:n(u).configType,"onUpdate:modelValue":t[2]||(t[2]=l=>n(u).configType=l),placeholder:"\u7CFB\u7EDF\u5185\u7F6E",clearable:""},{default:o(()=>[(d(!0),$(j,null,A(n(S),l=>(d(),y(te,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(m,{label:"\u521B\u5EFA\u65F6\u95F4",style:{width:"308px"}},{default:o(()=>[e(ie,{modelValue:n(C),"onUpdate:modelValue":t[3]||(t[3]=l=>q(C)?C.value=l:null),"value-format":"YYYY-MM-DD",type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(m,null,{default:o(()=>[e(f,{type:"primary",icon:"Search",onClick:T},{default:o(()=>[s("\u641C\u7D22")]),_:1}),e(f,{icon:"Refresh",onClick:X},{default:o(()=>[s("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[Q,n(N)]]),e(re,{gutter:10,class:"mb8"},{default:o(()=>[e(x,{span:1.5},{default:o(()=>[_((d(),y(f,{type:"primary",plain:"",icon:"Plus",onClick:ee},{default:o(()=>[s("\u65B0\u589E")]),_:1})),[[w,["system:config:add"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:o(()=>[_((d(),y(f,{type:"success",plain:"",icon:"Edit",disabled:n(Y),onClick:E},{default:o(()=>[s("\u4FEE\u6539")]),_:1},8,["disabled"])),[[w,["system:config:edit"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:o(()=>[_((d(),y(f,{type:"danger",plain:"",icon:"Delete",disabled:n(B),onClick:F},{default:o(()=>[s("\u5220\u9664")]),_:1},8,["disabled"])),[[w,["system:config:remove"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:o(()=>[_((d(),y(f,{type:"warning",plain:"",icon:"Download",onClick:oe},{default:o(()=>[s("\u5BFC\u51FA")]),_:1})),[[w,["system:config:export"]]])]),_:1},8,["span"]),e(x,{span:1.5},{default:o(()=>[_((d(),y(f,{type:"danger",plain:"",icon:"Refresh",onClick:ne},{default:o(()=>[s("\u5237\u65B0\u7F13\u5B58")]),_:1})),[[w,["system:config:remove"]]])]),_:1},8,["span"]),e(ue,{showSearch:n(N),"onUpdate:showSearch":t[4]||(t[4]=l=>q(N)?N.value=l:null),onQueryTable:V},null,8,["showSearch"])]),_:1}),_((d(),y(se,{data:n(P),onSelectionChange:Z},{default:o(()=>[e(v,{type:"selection",width:"55",align:"center"}),e(v,{label:"\u53C2\u6570\u4E3B\u952E",align:"center",prop:"configId"}),e(v,{label:"\u53C2\u6570\u540D\u79F0",align:"center",prop:"configName","show-overflow-tooltip":!0}),e(v,{label:"\u53C2\u6570\u952E\u540D",align:"center",prop:"configKey","show-overflow-tooltip":!0}),e(v,{label:"\u53C2\u6570\u952E\u503C",align:"center",prop:"configValue"}),e(v,{label:"\u7CFB\u7EDF\u5185\u7F6E",align:"center",prop:"configType"},{default:o(l=>[e(de,{options:n(S),value:l.row.configType},null,8,["options","value"])]),_:1}),e(v,{label:"\u5907\u6CE8",align:"center",prop:"remark","show-overflow-tooltip":!0}),e(v,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180"},{default:o(l=>[H("span",null,J(r.parseTime(l.row.createTime)),1)]),_:1}),e(v,{label:"\u64CD\u4F5C",align:"center",width:"150","class-name":"small-padding fixed-width"},{default:o(l=>[_((d(),y(f,{link:"",type:"primary",icon:"Edit",onClick:_e=>E(l.row)},{default:o(()=>[s("\u4FEE\u6539")]),_:2},1032,["onClick"])),[[w,["system:config:edit"]]]),_((d(),y(f,{link:"",type:"primary",icon:"Delete",onClick:_e=>F(l.row)},{default:o(()=>[s("\u5220\u9664")]),_:2},1032,["onClick"])),[[w,["system:config:remove"]]])]),_:1})]),_:1},8,["data"])),[[ge,n(K)]]),_(e(ce,{total:n(D),page:n(u).pageNum,"onUpdate:page":t[5]||(t[5]=l=>n(u).pageNum=l),limit:n(u).pageSize,"onUpdate:limit":t[6]||(t[6]=l=>n(u).pageSize=l),onPagination:V},null,8,["total","page","limit"]),[[Q,n(D)>0]]),e(me,{title:n(R),modelValue:n(h),"onUpdate:modelValue":t[12]||(t[12]=l=>q(h)?h.value=l:null),width:"500px","append-to-body":""},{footer:o(()=>[H("div",Ke,[e(f,{type:"primary",onClick:le},{default:o(()=>[s("\u786E \u5B9A")]),_:1}),e(f,{onClick:W},{default:o(()=>[s("\u53D6 \u6D88")]),_:1})])]),default:o(()=>[e(L,{ref:"configRef",model:n(i),rules:n(G),"label-width":"80px"},{default:o(()=>[e(m,{label:"\u53C2\u6570\u540D\u79F0",prop:"configName"},{default:o(()=>[e(b,{modelValue:n(i).configName,"onUpdate:modelValue":t[7]||(t[7]=l=>n(i).configName=l),placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u53C2\u6570\u952E\u540D",prop:"configKey"},{default:o(()=>[e(b,{modelValue:n(i).configKey,"onUpdate:modelValue":t[8]||(t[8]=l=>n(i).configKey=l),placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u952E\u540D"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u53C2\u6570\u952E\u503C",prop:"configValue"},{default:o(()=>[e(b,{modelValue:n(i).configValue,"onUpdate:modelValue":t[9]||(t[9]=l=>n(i).configValue=l),placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u952E\u503C"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u7CFB\u7EDF\u5185\u7F6E",prop:"configType"},{default:o(()=>[e(pe,{modelValue:n(i).configType,"onUpdate:modelValue":t[10]||(t[10]=l=>n(i).configType=l)},{default:o(()=>[(d(!0),$(j,null,A(n(S),l=>(d(),y(fe,{key:l.value,label:l.value},{default:o(()=>[s(J(l.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(m,{label:"\u5907\u6CE8",prop:"remark"},{default:o(()=>[e(b,{modelValue:n(i).remark,"onUpdate:modelValue":t[11]||(t[11]=l=>n(i).remark=l),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}}),Ie=ye(De,[["__scopeId","data-v-72f01920"]]);export{Ie as default}; diff --git a/airport/assets/index.787ae1f4.js.gz b/airport/assets/index.787ae1f4.js.gz new file mode 100644 index 0000000..b51a5de Binary files /dev/null and b/airport/assets/index.787ae1f4.js.gz differ diff --git a/airport/assets/index.79832097.js b/airport/assets/index.79832097.js new file mode 100644 index 0000000..4e66f97 --- /dev/null +++ b/airport/assets/index.79832097.js @@ -0,0 +1,60 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))l(r);new MutationObserver(r=>{for(const n of r)if(n.type==="childList")for(const a of n.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&l(a)}).observe(document,{childList:!0,subtree:!0});function o(r){const n={};return r.integrity&&(n.integrity=r.integrity),r.referrerpolicy&&(n.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?n.credentials="include":r.crossorigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function l(r){if(r.ep)return;r.ep=!0;const n=o(r);fetch(r.href,n)}})();function S2(e,t){const o=Object.create(null),l=e.split(",");for(let r=0;r!!o[r.toLowerCase()]:r=>!!o[r]}function Be(e){if(Ie(e)){const t={};for(let o=0;o{if(o){const l=o.split(K_);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function T(e){let t="";if(Ge(e))t=e;else if(Ie(e))for(let o=0;oxn(o,t))}const Ce=e=>Ge(e)?e:e==null?"":Ie(e)||ft(e)&&(e.toString===e6||!Ye(e.toString))?JSON.stringify(e,Qv,2):String(e),Qv=(e,t)=>t&&t.__v_isRef?Qv(e,t.value):ea(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[l,r])=>(o[`${l} =>`]=r,o),{})}:Ia(t)?{[`Set(${t.size})`]:[...t.values()]}:ft(t)&&!Ie(t)&&!t6(t)?String(t):t,jt={},Qn=[],$t=()=>{},X_=()=>!1,J_=/^on[^a-z]/,Zc=e=>J_.test(e),E2=e=>e.startsWith("onUpdate:"),no=Object.assign,M2=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},Z_=Object.prototype.hasOwnProperty,mt=(e,t)=>Z_.call(e,t),Ie=Array.isArray,ea=e=>as(e)==="[object Map]",Ia=e=>as(e)==="[object Set]",kn=e=>as(e)==="[object Date]",Ye=e=>typeof e=="function",Ge=e=>typeof e=="string",Mi=e=>typeof e=="symbol",ft=e=>e!==null&&typeof e=="object",Ti=e=>ft(e)&&Ye(e.then)&&Ye(e.catch),e6=Object.prototype.toString,as=e=>e6.call(e),Ys=e=>as(e).slice(8,-1),t6=e=>as(e)==="[object Object]",T2=e=>Ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Gs=S2(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Qc=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},Q_=/-(\w)/g,ol=Qc(e=>e.replace(Q_,(t,o)=>o?o.toUpperCase():"")),e5=/\B([A-Z])/g,qr=Qc(e=>e.replace(e5,"-$1").toLowerCase()),is=Qc(e=>e.charAt(0).toUpperCase()+e.slice(1)),Xs=Qc(e=>e?`on${is(e)}`:""),Ai=(e,t)=>!Object.is(e,t),ta=(e,t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:o})},da=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Bf;const t5=()=>Bf||(Bf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Bo;class o6{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Bo,!t&&Bo&&(this.index=(Bo.scopes||(Bo.scopes=[])).push(this)-1)}run(t){if(this.active){const o=Bo;try{return Bo=this,t()}finally{Bo=o}}}on(){Bo=this}off(){Bo=this.parent}stop(t){if(this.active){let o,l;for(o=0,l=this.effects.length;o{const t=new Set(e);return t.w=0,t.n=0,t},r6=e=>(e.w&Nr)>0,n6=e=>(e.n&Nr)>0,r5=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let o=0;for(let l=0;l{(d==="length"||d>=c)&&i.push(u)})}else switch(o!==void 0&&i.push(a.get(o)),t){case"add":Ie(e)?T2(o)&&i.push(a.get("length")):(i.push(a.get(mn)),ea(e)&&i.push(a.get(Qd)));break;case"delete":Ie(e)||(i.push(a.get(mn)),ea(e)&&i.push(a.get(Qd)));break;case"set":ea(e)&&i.push(a.get(mn));break}if(i.length===1)i[0]&&e0(i[0]);else{const c=[];for(const u of i)u&&c.push(...u);e0(V2(c))}}function e0(e,t){const o=Ie(e)?e:[...e];for(const l of o)l.computed&&Ff(l);for(const l of o)l.computed||Ff(l)}function Ff(e,t){(e!==hl||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const a5=S2("__proto__,__v_isRef,__isVue"),s6=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Mi)),i5=P2(),s5=P2(!1,!0),c5=P2(!0),jf=u5();function u5(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...o){const l=kt(this);for(let n=0,a=this.length;n{e[t]=function(...o){Ra();const l=kt(this)[t].apply(this,o);return Ha(),l}}),e}function P2(e=!1,t=!1){return function(l,r,n){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&n===(e?t?S5:f6:t?p6:d6).get(l))return l;const a=Ie(l);if(!e&&a&&mt(jf,r))return Reflect.get(jf,r,n);const i=Reflect.get(l,r,n);return(Mi(r)?s6.has(r):a5(r))||(e||Wo(l,"get",r),t)?i:xt(i)?a&&T2(r)?i:i.value:ft(i)?e?ss(i):wt(i):i}}const d5=c6(),p5=c6(!0);function c6(e=!1){return function(o,l,r,n){let a=o[l];if(pa(a)&&xt(a)&&!xt(r))return!1;if(!e&&(!Ec(r)&&!pa(r)&&(a=kt(a),r=kt(r)),!Ie(o)&&xt(a)&&!xt(r)))return a.value=r,!0;const i=Ie(o)&&T2(l)?Number(l)e,eu=e=>Reflect.getPrototypeOf(e);function $s(e,t,o=!1,l=!1){e=e.__v_raw;const r=kt(e),n=kt(t);o||(t!==n&&Wo(r,"get",t),Wo(r,"get",n));const{has:a}=eu(r),i=l?L2:o?H2:Vi;if(a.call(r,t))return i(e.get(t));if(a.call(r,n))return i(e.get(n));e!==r&&e.get(t)}function Ss(e,t=!1){const o=this.__v_raw,l=kt(o),r=kt(e);return t||(e!==r&&Wo(l,"has",e),Wo(l,"has",r)),e===r?o.has(e):o.has(e)||o.has(r)}function zs(e,t=!1){return e=e.__v_raw,!t&&Wo(kt(e),"iterate",mn),Reflect.get(e,"size",e)}function Kf(e){e=kt(e);const t=kt(this);return eu(t).has.call(t,e)||(t.add(e),nr(t,"add",e,e)),this}function Wf(e,t){t=kt(t);const o=kt(this),{has:l,get:r}=eu(o);let n=l.call(o,e);n||(e=kt(e),n=l.call(o,e));const a=r.call(o,e);return o.set(e,t),n?Ai(t,a)&&nr(o,"set",e,t):nr(o,"add",e,t),this}function qf(e){const t=kt(this),{has:o,get:l}=eu(t);let r=o.call(t,e);r||(e=kt(e),r=o.call(t,e)),l&&l.call(t,e);const n=t.delete(e);return r&&nr(t,"delete",e,void 0),n}function Uf(){const e=kt(this),t=e.size!==0,o=e.clear();return t&&nr(e,"clear",void 0,void 0),o}function Es(e,t){return function(l,r){const n=this,a=n.__v_raw,i=kt(a),c=t?L2:e?H2:Vi;return!e&&Wo(i,"iterate",mn),a.forEach((u,d)=>l.call(r,c(u),c(d),n))}}function Ms(e,t,o){return function(...l){const r=this.__v_raw,n=kt(r),a=ea(n),i=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,u=r[e](...l),d=o?L2:t?H2:Vi;return!t&&Wo(n,"iterate",c?Qd:mn),{next(){const{value:p,done:f}=u.next();return f?{value:p,done:f}:{value:i?[d(p[0]),d(p[1])]:d(p),done:f}},[Symbol.iterator](){return this}}}}function yr(e){return function(...t){return e==="delete"?!1:this}}function b5(){const e={get(n){return $s(this,n)},get size(){return zs(this)},has:Ss,add:Kf,set:Wf,delete:qf,clear:Uf,forEach:Es(!1,!1)},t={get(n){return $s(this,n,!1,!0)},get size(){return zs(this)},has:Ss,add:Kf,set:Wf,delete:qf,clear:Uf,forEach:Es(!1,!0)},o={get(n){return $s(this,n,!0)},get size(){return zs(this,!0)},has(n){return Ss.call(this,n,!0)},add:yr("add"),set:yr("set"),delete:yr("delete"),clear:yr("clear"),forEach:Es(!0,!1)},l={get(n){return $s(this,n,!0,!0)},get size(){return zs(this,!0)},has(n){return Ss.call(this,n,!0)},add:yr("add"),set:yr("set"),delete:yr("delete"),clear:yr("clear"),forEach:Es(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(n=>{e[n]=Ms(n,!1,!1),o[n]=Ms(n,!0,!1),t[n]=Ms(n,!1,!0),l[n]=Ms(n,!0,!0)}),[e,o,t,l]}const[_5,y5,w5,x5]=b5();function I2(e,t){const o=t?e?x5:w5:e?y5:_5;return(l,r,n)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?l:Reflect.get(mt(o,r)&&r in l?o:l,r,n)}const k5={get:I2(!1,!1)},C5={get:I2(!1,!0)},$5={get:I2(!0,!1)},d6=new WeakMap,p6=new WeakMap,f6=new WeakMap,S5=new WeakMap;function z5(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function E5(e){return e.__v_skip||!Object.isExtensible(e)?0:z5(Ys(e))}function wt(e){return pa(e)?e:R2(e,!1,u6,k5,d6)}function h6(e){return R2(e,!1,g5,C5,p6)}function ss(e){return R2(e,!0,m5,$5,f6)}function R2(e,t,o,l,r){if(!ft(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const n=r.get(e);if(n)return n;const a=E5(e);if(a===0)return e;const i=new Proxy(e,a===2?l:o);return r.set(e,i),i}function Lr(e){return pa(e)?Lr(e.__v_raw):!!(e&&e.__v_isReactive)}function pa(e){return!!(e&&e.__v_isReadonly)}function Ec(e){return!!(e&&e.__v_isShallow)}function v6(e){return Lr(e)||pa(e)}function kt(e){const t=e&&e.__v_raw;return t?kt(t):e}function bl(e){return zc(e,"__v_skip",!0),e}const Vi=e=>ft(e)?wt(e):e,H2=e=>ft(e)?ss(e):e;function m6(e){Pr&&hl&&(e=kt(e),i6(e.dep||(e.dep=V2())))}function N2(e,t){e=kt(e),e.dep&&e0(e.dep)}function xt(e){return!!(e&&e.__v_isRef===!0)}function V(e){return g6(e,!1)}function Et(e){return g6(e,!0)}function g6(e,t){return xt(e)?e:new M5(e,t)}class M5{constructor(t,o){this.__v_isShallow=o,this.dep=void 0,this.__v_isRef=!0,this._rawValue=o?t:kt(t),this._value=o?t:Vi(t)}get value(){return m6(this),this._value}set value(t){const o=this.__v_isShallow||Ec(t)||pa(t);t=o?t:kt(t),Ai(t,this._rawValue)&&(this._rawValue=t,this._value=o?t:Vi(t),N2(this))}}function Ja(e){N2(e)}function s(e){return xt(e)?e.value:e}const T5={get:(e,t,o)=>s(Reflect.get(e,t,o)),set:(e,t,o,l)=>{const r=e[t];return xt(r)&&!xt(o)?(r.value=o,!0):Reflect.set(e,t,o,l)}};function b6(e){return Lr(e)?e:new Proxy(e,T5)}function Gt(e){const t=Ie(e)?new Array(e.length):{};for(const o in e)t[o]=Rt(e,o);return t}class A5{constructor(t,o,l){this._object=t,this._key=o,this._defaultValue=l,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function Rt(e,t,o){const l=e[t];return xt(l)?l:new A5(e,t,o)}var _6;class V5{constructor(t,o,l,r){this._setter=o,this.dep=void 0,this.__v_isRef=!0,this[_6]=!1,this._dirty=!0,this.effect=new O2(t,()=>{this._dirty||(this._dirty=!0,N2(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=l}get value(){const t=kt(this);return m6(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}_6="__v_isReadonly";function y6(e,t,o=!1){let l,r;const n=Ye(e);return n?(l=e,r=$t):(l=e.get,r=e.set),new V5(l,r,n||!r,o)}function O5(e,...t){}function Ir(e,t,o,l){let r;try{r=l?e(...l):e()}catch(n){tu(n,t,o)}return r}function el(e,t,o,l){if(Ye(e)){const n=Ir(e,t,o,l);return n&&Ti(n)&&n.catch(a=>{tu(a,t,o)}),n}const r=[];for(let n=0;n>>1;Pi(vo[l])Vl&&vo.splice(t,1)}function R5(e){Ie(e)?oa.push(...e):(!Gl||!Gl.includes(e,e.allowRecurse?ln+1:ln))&&oa.push(e),x6()}function Yf(e,t=Oi?Vl+1:0){for(;tPi(o)-Pi(l)),ln=0;lne.id==null?1/0:e.id,H5=(e,t)=>{const o=Pi(e)-Pi(t);if(o===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return o};function C6(e){t0=!1,Oi=!0,vo.sort(H5);const t=$t;try{for(Vl=0;VlGe(h)?h.trim():h)),p&&(r=o.map(da))}let i,c=l[i=Xs(t)]||l[i=Xs(ol(t))];!c&&n&&(c=l[i=Xs(qr(t))]),c&&el(c,e,6,r);const u=l[i+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,el(u,e,6,r)}}function $6(e,t,o=!1){const l=t.emitsCache,r=l.get(e);if(r!==void 0)return r;const n=e.emits;let a={},i=!1;if(!Ye(e)){const c=u=>{const d=$6(u,t,!0);d&&(i=!0,no(a,d))};!o&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!n&&!i?(ft(e)&&l.set(e,null),null):(Ie(n)?n.forEach(c=>a[c]=null):no(a,n),ft(e)&&l.set(e,a),a)}function ou(e,t){return!e||!Zc(t)?!1:(t=t.slice(2).replace(/Once$/,""),mt(e,t[0].toLowerCase()+t.slice(1))||mt(e,qr(t))||mt(e,t))}let co=null,lu=null;function Mc(e){const t=co;return co=e,lu=e&&e.type.__scopeId||null,t}function B5(e){lu=e}function D5(){lu=null}function Z(e,t=co,o){if(!t||e._n)return e;const l=(...r)=>{l._d&&n1(-1);const n=Mc(t);let a;try{a=e(...r)}finally{Mc(n),l._d&&n1(1)}return a};return l._n=!0,l._c=!0,l._d=!0,l}function qu(e){const{type:t,vnode:o,proxy:l,withProxy:r,props:n,propsOptions:[a],slots:i,attrs:c,emit:u,render:d,renderCache:p,data:f,setupState:h,ctx:v,inheritAttrs:m}=e;let g,_;const w=Mc(e);try{if(o.shapeFlag&4){const x=r||l;g=Al(d.call(x,x,p,n,h,f,v)),_=c}else{const x=t;g=Al(x.length>1?x(n,{attrs:c,slots:i,emit:u}):x(n,null)),_=t.props?c:F5(c)}}catch(x){vi.length=0,tu(x,e,1),g=K(ko)}let b=g;if(_&&m!==!1){const x=Object.keys(_),{shapeFlag:k}=b;x.length&&k&7&&(a&&x.some(E2)&&(_=j5(_,a)),b=Nl(b,_))}return o.dirs&&(b=Nl(b),b.dirs=b.dirs?b.dirs.concat(o.dirs):o.dirs),o.transition&&(b.transition=o.transition),g=b,Mc(w),g}const F5=e=>{let t;for(const o in e)(o==="class"||o==="style"||Zc(o))&&((t||(t={}))[o]=e[o]);return t},j5=(e,t)=>{const o={};for(const l in e)(!E2(l)||!(l.slice(9)in t))&&(o[l]=e[l]);return o};function K5(e,t,o){const{props:l,children:r,component:n}=e,{props:a,children:i,patchFlag:c}=t,u=n.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&c>=0){if(c&1024)return!0;if(c&16)return l?Gf(l,a,u):!!a;if(c&8){const d=t.dynamicProps;for(let p=0;pe.__isSuspense;function q5(e,t){t&&t.pendingBranch?Ie(e)?t.effects.push(...e):t.effects.push(e):R5(e)}function st(e,t){if(oo){let o=oo.provides;const l=oo.parent&&oo.parent.provides;l===o&&(o=oo.provides=Object.create(l)),o[e]=t}}function Re(e,t,o=!1){const l=oo||co;if(l){const r=l.parent==null?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return o&&Ye(t)?t.call(l.proxy):t}}function Ao(e,t){return ru(e,null,t)}function U5(e,t){return ru(e,null,{flush:"post"})}const Ts={};function ve(e,t,o){return ru(e,t,o)}function ru(e,t,{immediate:o,deep:l,flush:r,onTrack:n,onTrigger:a}=jt){const i=oo;let c,u=!1,d=!1;if(xt(e)?(c=()=>e.value,u=Ec(e)):Lr(e)?(c=()=>e,l=!0):Ie(e)?(d=!0,u=e.some(b=>Lr(b)||Ec(b)),c=()=>e.map(b=>{if(xt(b))return b.value;if(Lr(b))return cn(b);if(Ye(b))return Ir(b,i,2)})):Ye(e)?t?c=()=>Ir(e,i,2):c=()=>{if(!(i&&i.isUnmounted))return p&&p(),el(e,i,3,[f])}:c=$t,t&&l){const b=c;c=()=>cn(b())}let p,f=b=>{p=_.onStop=()=>{Ir(b,i,4)}},h;if(Ri)if(f=$t,t?o&&el(t,i,3,[c(),d?[]:void 0,f]):c(),r==="sync"){const b=I9();h=b.__watcherHandles||(b.__watcherHandles=[])}else return $t;let v=d?new Array(e.length).fill(Ts):Ts;const m=()=>{if(!!_.active)if(t){const b=_.run();(l||u||(d?b.some((x,k)=>Ai(x,v[k])):Ai(b,v)))&&(p&&p(),el(t,i,3,[b,v===Ts?void 0:d&&v[0]===Ts?[]:v,f]),v=b)}else _.run()};m.allowRecurse=!!t;let g;r==="sync"?g=m:r==="post"?g=()=>io(m,i&&i.suspense):(m.pre=!0,i&&(m.id=i.uid),g=()=>D2(m));const _=new O2(c,g);t?o?m():v=_.run():r==="post"?io(_.run.bind(_),i&&i.suspense):_.run();const w=()=>{_.stop(),i&&i.scope&&M2(i.scope.effects,_)};return h&&h.push(w),w}function Y5(e,t,o){const l=this.proxy,r=Ge(e)?e.includes(".")?z6(l,e):()=>l[e]:e.bind(l,l);let n;Ye(t)?n=t:(n=t.handler,o=t);const a=oo;va(this);const i=ru(r,n.bind(l),o);return a?va(a):gn(),i}function z6(e,t){const o=t.split(".");return()=>{let l=e;for(let r=0;r{cn(o,t)});else if(t6(e))for(const o in e)cn(e[o],t);return e}function E6(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ze(()=>{e.isMounted=!0}),It(()=>{e.isUnmounting=!0}),e}const Uo=[Function,Array],G5={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Uo,onEnter:Uo,onAfterEnter:Uo,onEnterCancelled:Uo,onBeforeLeave:Uo,onLeave:Uo,onAfterLeave:Uo,onLeaveCancelled:Uo,onBeforeAppear:Uo,onAppear:Uo,onAfterAppear:Uo,onAppearCancelled:Uo},setup(e,{slots:t}){const o=Qe(),l=E6();let r;return()=>{const n=t.default&&F2(t.default(),!0);if(!n||!n.length)return;let a=n[0];if(n.length>1){for(const m of n)if(m.type!==ko){a=m;break}}const i=kt(e),{mode:c}=i;if(l.isLeaving)return Uu(a);const u=Xf(a);if(!u)return Uu(a);const d=Li(u,i,l,o);fa(u,d);const p=o.subTree,f=p&&Xf(p);let h=!1;const{getTransitionKey:v}=u.type;if(v){const m=v();r===void 0?r=m:m!==r&&(r=m,h=!0)}if(f&&f.type!==ko&&(!rn(u,f)||h)){const m=Li(f,i,l,o);if(fa(f,m),c==="out-in")return l.isLeaving=!0,m.afterLeave=()=>{l.isLeaving=!1,o.update.active!==!1&&o.update()},Uu(a);c==="in-out"&&u.type!==ko&&(m.delayLeave=(g,_,w)=>{const b=T6(l,f);b[String(f.key)]=f,g._leaveCb=()=>{_(),g._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=w})}return a}}},M6=G5;function T6(e,t){const{leavingVNodes:o}=e;let l=o.get(t.type);return l||(l=Object.create(null),o.set(t.type,l)),l}function Li(e,t,o,l){const{appear:r,mode:n,persisted:a=!1,onBeforeEnter:i,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:f,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:m,onAppear:g,onAfterAppear:_,onAppearCancelled:w}=t,b=String(e.key),x=T6(o,e),k=(E,A)=>{E&&el(E,l,9,A)},z=(E,A)=>{const O=A[1];k(E,A),Ie(E)?E.every(D=>D.length<=1)&&O():E.length<=1&&O()},M={mode:n,persisted:a,beforeEnter(E){let A=i;if(!o.isMounted)if(r)A=m||i;else return;E._leaveCb&&E._leaveCb(!0);const O=x[b];O&&rn(e,O)&&O.el._leaveCb&&O.el._leaveCb(),k(A,[E])},enter(E){let A=c,O=u,D=d;if(!o.isMounted)if(r)A=g||c,O=_||u,D=w||d;else return;let I=!1;const N=E._enterCb=B=>{I||(I=!0,B?k(D,[E]):k(O,[E]),M.delayedLeave&&M.delayedLeave(),E._enterCb=void 0)};A?z(A,[E,N]):N()},leave(E,A){const O=String(e.key);if(E._enterCb&&E._enterCb(!0),o.isUnmounting)return A();k(p,[E]);let D=!1;const I=E._leaveCb=N=>{D||(D=!0,A(),N?k(v,[E]):k(h,[E]),E._leaveCb=void 0,x[O]===e&&delete x[O])};x[O]=e,f?z(f,[E,I]):I()},clone(E){return Li(E,t,o,l)}};return M}function Uu(e){if(nu(e))return e=Nl(e),e.children=null,e}function Xf(e){return nu(e)?e.children?e.children[0]:void 0:e}function fa(e,t){e.shapeFlag&6&&e.component?fa(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function F2(e,t=!1,o){let l=[],r=0;for(let n=0;n1)for(let n=0;n!!e.type.__asyncLoader,nu=e=>e.type.__isKeepAlive,X5={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const o=Qe(),l=o.ctx;if(!l.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const r=new Map,n=new Set;let a=null;const i=o.suspense,{renderer:{p:c,m:u,um:d,o:{createElement:p}}}=l,f=p("div");l.activate=(w,b,x,k,z)=>{const M=w.component;u(w,b,x,0,i),c(M.vnode,w,b,x,M,i,k,w.slotScopeIds,z),io(()=>{M.isDeactivated=!1,M.a&&ta(M.a);const E=w.props&&w.props.onVnodeMounted;E&&Go(E,M.parent,w)},i)},l.deactivate=w=>{const b=w.component;u(w,f,null,1,i),io(()=>{b.da&&ta(b.da);const x=w.props&&w.props.onVnodeUnmounted;x&&Go(x,b.parent,w),b.isDeactivated=!0},i)};function h(w){Yu(w),d(w,o,i,!0)}function v(w){r.forEach((b,x)=>{const k=s0(b.type);k&&(!w||!w(k))&&m(x)})}function m(w){const b=r.get(w);!a||b.type!==a.type?h(b):a&&Yu(a),r.delete(w),n.delete(w)}ve(()=>[e.include,e.exclude],([w,b])=>{w&&v(x=>ii(w,x)),b&&v(x=>!ii(b,x))},{flush:"post",deep:!0});let g=null;const _=()=>{g!=null&&r.set(g,Gu(o.subTree))};return Ze(_),jl(_),It(()=>{r.forEach(w=>{const{subTree:b,suspense:x}=o,k=Gu(b);if(w.type===k.type){Yu(k);const z=k.component.da;z&&io(z,x);return}h(w)})}),()=>{if(g=null,!t.default)return null;const w=t.default(),b=w[0];if(w.length>1)return a=null,w;if(!Vt(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return a=null,b;let x=Gu(b);const k=x.type,z=s0(la(x)?x.type.__asyncResolved||{}:k),{include:M,exclude:E,max:A}=e;if(M&&(!z||!ii(M,z))||E&&z&&ii(E,z))return a=x,b;const O=x.key==null?k:x.key,D=r.get(O);return x.el&&(x=Nl(x),b.shapeFlag&128&&(b.ssContent=x)),g=O,D?(x.el=D.el,x.component=D.component,x.transition&&fa(x,x.transition),x.shapeFlag|=512,n.delete(O),n.add(O)):(n.add(O),A&&n.size>parseInt(A,10)&&m(n.values().next().value)),x.shapeFlag|=256,a=x,S6(b.type)?b:x}}},J5=X5;function ii(e,t){return Ie(e)?e.some(o=>ii(o,t)):Ge(e)?e.split(",").includes(t):e.test?e.test(t):!1}function Z5(e,t){V6(e,"a",t)}function A6(e,t){V6(e,"da",t)}function V6(e,t,o=oo){const l=e.__wdc||(e.__wdc=()=>{let r=o;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(au(t,l,o),o){let r=o.parent;for(;r&&r.parent;)nu(r.parent.vnode)&&Q5(l,t,o,r),r=r.parent}}function Q5(e,t,o,l){const r=au(t,e,l,!0);ur(()=>{M2(l[t],r)},o)}function Yu(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Gu(e){return e.shapeFlag&128?e.ssContent:e}function au(e,t,o=oo,l=!1){if(o){const r=o[e]||(o[e]=[]),n=t.__weh||(t.__weh=(...a)=>{if(o.isUnmounted)return;Ra(),va(o);const i=el(t,o,e,a);return gn(),Ha(),i});return l?r.unshift(n):r.push(n),n}}const cr=e=>(t,o=oo)=>(!Ri||e==="sp")&&au(e,(...l)=>t(...l),o),iu=cr("bm"),Ze=cr("m"),O6=cr("bu"),jl=cr("u"),It=cr("bum"),ur=cr("um"),e9=cr("sp"),t9=cr("rtg"),o9=cr("rtc");function l9(e,t=oo){au("ec",e,t)}function Xe(e,t){const o=co;if(o===null)return e;const l=uu(o)||o.proxy,r=e.dirs||(e.dirs=[]);for(let n=0;nt(a,i,void 0,n&&n[i]));else{const a=Object.keys(e);r=new Array(a.length);for(let i=0,c=a.length;i{const n=l.fn(...r);return n&&(n.key=l.key),n}:l.fn)}return e}function ge(e,t,o={},l,r){if(co.isCE||co.parent&&la(co.parent)&&co.parent.isCE)return t!=="default"&&(o.name=t),K("slot",o,l&&l());let n=e[t];n&&n._c&&(n._d=!1),y();const a=n&&L6(n(o)),i=ue(Pe,{key:o.key||a&&a.key||`_${t}`},a||(l?l():[]),a&&e._===1?64:-2);return!r&&i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),n&&n._c&&(n._d=!0),i}function L6(e){return e.some(t=>Vt(t)?!(t.type===ko||t.type===Pe&&!L6(t.children)):!0)?e:null}function n9(e,t){const o={};for(const l in e)o[t&&/[A-Z]/.test(l)?`on:${l}`:Xs(l)]=e[l];return o}const o0=e=>e?q6(e)?uu(e)||e.proxy:o0(e.parent):null,pi=no(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>o0(e.parent),$root:e=>o0(e.root),$emit:e=>e.emit,$options:e=>W2(e),$forceUpdate:e=>e.f||(e.f=()=>D2(e.update)),$nextTick:e=>e.n||(e.n=Ne.bind(e.proxy)),$watch:e=>Y5.bind(e)}),Xu=(e,t)=>e!==jt&&!e.__isScriptSetup&&mt(e,t),a9={get({_:e},t){const{ctx:o,setupState:l,data:r,props:n,accessCache:a,type:i,appContext:c}=e;let u;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return l[t];case 2:return r[t];case 4:return o[t];case 3:return n[t]}else{if(Xu(l,t))return a[t]=1,l[t];if(r!==jt&&mt(r,t))return a[t]=2,r[t];if((u=e.propsOptions[0])&&mt(u,t))return a[t]=3,n[t];if(o!==jt&&mt(o,t))return a[t]=4,o[t];l0&&(a[t]=0)}}const d=pi[t];let p,f;if(d)return t==="$attrs"&&Wo(e,"get",t),d(e);if((p=i.__cssModules)&&(p=p[t]))return p;if(o!==jt&&mt(o,t))return a[t]=4,o[t];if(f=c.config.globalProperties,mt(f,t))return f[t]},set({_:e},t,o){const{data:l,setupState:r,ctx:n}=e;return Xu(r,t)?(r[t]=o,!0):l!==jt&&mt(l,t)?(l[t]=o,!0):mt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(n[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:l,appContext:r,propsOptions:n}},a){let i;return!!o[a]||e!==jt&&mt(e,a)||Xu(t,a)||(i=n[0])&&mt(i,a)||mt(l,a)||mt(pi,a)||mt(r.config.globalProperties,a)},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:mt(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};let l0=!0;function i9(e){const t=W2(e),o=e.proxy,l=e.ctx;l0=!1,t.beforeCreate&&Zf(t.beforeCreate,e,"bc");const{data:r,computed:n,methods:a,watch:i,provide:c,inject:u,created:d,beforeMount:p,mounted:f,beforeUpdate:h,updated:v,activated:m,deactivated:g,beforeDestroy:_,beforeUnmount:w,destroyed:b,unmounted:x,render:k,renderTracked:z,renderTriggered:M,errorCaptured:E,serverPrefetch:A,expose:O,inheritAttrs:D,components:I,directives:N,filters:B}=t;if(u&&s9(u,l,null,e.appContext.config.unwrapInjectedRef),a)for(const L in a){const P=a[L];Ye(P)&&(l[L]=P.bind(o))}if(r){const L=r.call(o,o);ft(L)&&(e.data=wt(L))}if(l0=!0,n)for(const L in n){const P=n[L],R=Ye(P)?P.bind(o,o):Ye(P.get)?P.get.bind(o,o):$t,J=!Ye(P)&&Ye(P.set)?P.set.bind(o):$t,oe=S({get:R,set:J});Object.defineProperty(l,L,{enumerable:!0,configurable:!0,get:()=>oe.value,set:G=>oe.value=G})}if(i)for(const L in i)I6(i[L],l,o,L);if(c){const L=Ye(c)?c.call(o):c;Reflect.ownKeys(L).forEach(P=>{st(P,L[P])})}d&&Zf(d,e,"c");function H(L,P){Ie(P)?P.forEach(R=>L(R.bind(o))):P&&L(P.bind(o))}if(H(iu,p),H(Ze,f),H(O6,h),H(jl,v),H(Z5,m),H(A6,g),H(l9,E),H(o9,z),H(t9,M),H(It,w),H(ur,x),H(e9,A),Ie(O))if(O.length){const L=e.exposed||(e.exposed={});O.forEach(P=>{Object.defineProperty(L,P,{get:()=>o[P],set:R=>o[P]=R})})}else e.exposed||(e.exposed={});k&&e.render===$t&&(e.render=k),D!=null&&(e.inheritAttrs=D),I&&(e.components=I),N&&(e.directives=N)}function s9(e,t,o=$t,l=!1){Ie(e)&&(e=r0(e));for(const r in e){const n=e[r];let a;ft(n)?"default"in n?a=Re(n.from||r,n.default,!0):a=Re(n.from||r):a=Re(n),xt(a)&&l?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:i=>a.value=i}):t[r]=a}}function Zf(e,t,o){el(Ie(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,o)}function I6(e,t,o,l){const r=l.includes(".")?z6(o,l):()=>o[l];if(Ge(e)){const n=t[e];Ye(n)&&ve(r,n)}else if(Ye(e))ve(r,e.bind(o));else if(ft(e))if(Ie(e))e.forEach(n=>I6(n,t,o,l));else{const n=Ye(e.handler)?e.handler.bind(o):t[e.handler];Ye(n)&&ve(r,n,e)}}function W2(e){const t=e.type,{mixins:o,extends:l}=t,{mixins:r,optionsCache:n,config:{optionMergeStrategies:a}}=e.appContext,i=n.get(t);let c;return i?c=i:!r.length&&!o&&!l?c=t:(c={},r.length&&r.forEach(u=>Tc(c,u,a,!0)),Tc(c,t,a)),ft(t)&&n.set(t,c),c}function Tc(e,t,o,l=!1){const{mixins:r,extends:n}=t;n&&Tc(e,n,o,!0),r&&r.forEach(a=>Tc(e,a,o,!0));for(const a in t)if(!(l&&a==="expose")){const i=c9[a]||o&&o[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const c9={data:Qf,props:tn,emits:tn,methods:tn,computed:tn,beforeCreate:yo,created:yo,beforeMount:yo,mounted:yo,beforeUpdate:yo,updated:yo,beforeDestroy:yo,beforeUnmount:yo,destroyed:yo,unmounted:yo,activated:yo,deactivated:yo,errorCaptured:yo,serverPrefetch:yo,components:tn,directives:tn,watch:d9,provide:Qf,inject:u9};function Qf(e,t){return t?e?function(){return no(Ye(e)?e.call(this,this):e,Ye(t)?t.call(this,this):t)}:t:e}function u9(e,t){return tn(r0(e),r0(t))}function r0(e){if(Ie(e)){const t={};for(let o=0;o0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[f,h]=H6(p,t,!0);no(a,f),h&&i.push(...h)};!o&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!n&&!c)return ft(e)&&l.set(e,Qn),Qn;if(Ie(n))for(let d=0;d-1,h[1]=m<0||v-1||mt(h,"default"))&&i.push(p)}}}const u=[a,i];return ft(e)&&l.set(e,u),u}function e1(e){return e[0]!=="$"}function t1(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function o1(e,t){return t1(e)===t1(t)}function l1(e,t){return Ie(t)?t.findIndex(o=>o1(o,e)):Ye(t)&&o1(t,e)?0:-1}const N6=e=>e[0]==="_"||e==="$stable",q2=e=>Ie(e)?e.map(Al):[Al(e)],h9=(e,t,o)=>{if(t._n)return t;const l=Z((...r)=>q2(t(...r)),o);return l._c=!1,l},B6=(e,t,o)=>{const l=e._ctx;for(const r in e){if(N6(r))continue;const n=e[r];if(Ye(n))t[r]=h9(r,n,l);else if(n!=null){const a=q2(n);t[r]=()=>a}}},D6=(e,t)=>{const o=q2(t);e.slots.default=()=>o},v9=(e,t)=>{if(e.vnode.shapeFlag&32){const o=t._;o?(e.slots=kt(t),zc(t,"_",o)):B6(t,e.slots={})}else e.slots={},t&&D6(e,t);zc(e.slots,su,1)},m9=(e,t,o)=>{const{vnode:l,slots:r}=e;let n=!0,a=jt;if(l.shapeFlag&32){const i=t._;i?o&&i===1?n=!1:(no(r,t),!o&&i===1&&delete r._):(n=!t.$stable,B6(t,r)),a=t}else t&&(D6(e,t),a={default:1});if(n)for(const i in r)!N6(i)&&!(i in a)&&delete r[i]};function F6(){return{app:null,config:{isNativeTag:X_,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let g9=0;function b9(e,t){return function(l,r=null){Ye(l)||(l=Object.assign({},l)),r!=null&&!ft(r)&&(r=null);const n=F6(),a=new Set;let i=!1;const c=n.app={_uid:g9++,_component:l,_props:r,_container:null,_context:n,_instance:null,version:R9,get config(){return n.config},set config(u){},use(u,...d){return a.has(u)||(u&&Ye(u.install)?(a.add(u),u.install(c,...d)):Ye(u)&&(a.add(u),u(c,...d))),c},mixin(u){return n.mixins.includes(u)||n.mixins.push(u),c},component(u,d){return d?(n.components[u]=d,c):n.components[u]},directive(u,d){return d?(n.directives[u]=d,c):n.directives[u]},mount(u,d,p){if(!i){const f=K(l,r);return f.appContext=n,d&&t?t(f,u):e(f,u,p),i=!0,c._container=u,u.__vue_app__=c,uu(f.component)||f.component.proxy}},unmount(){i&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return n.provides[u]=d,c}};return c}}function a0(e,t,o,l,r=!1){if(Ie(e)){e.forEach((f,h)=>a0(f,t&&(Ie(t)?t[h]:t),o,l,r));return}if(la(l)&&!r)return;const n=l.shapeFlag&4?uu(l.component)||l.component.proxy:l.el,a=r?null:n,{i,r:c}=e,u=t&&t.r,d=i.refs===jt?i.refs={}:i.refs,p=i.setupState;if(u!=null&&u!==c&&(Ge(u)?(d[u]=null,mt(p,u)&&(p[u]=null)):xt(u)&&(u.value=null)),Ye(c))Ir(c,i,12,[a,d]);else{const f=Ge(c),h=xt(c);if(f||h){const v=()=>{if(e.f){const m=f?mt(p,c)?p[c]:d[c]:c.value;r?Ie(m)&&M2(m,n):Ie(m)?m.includes(n)||m.push(n):f?(d[c]=[n],mt(p,c)&&(p[c]=d[c])):(c.value=[n],e.k&&(d[e.k]=c.value))}else f?(d[c]=a,mt(p,c)&&(p[c]=a)):h&&(c.value=a,e.k&&(d[e.k]=a))};a?(v.id=-1,io(v,o)):v()}}}const io=q5;function _9(e){return y9(e)}function y9(e,t){const o=t5();o.__VUE__=!0;const{insert:l,remove:r,patchProp:n,createElement:a,createText:i,createComment:c,setText:u,setElementText:d,parentNode:p,nextSibling:f,setScopeId:h=$t,insertStaticContent:v}=e,m=(U,Q,fe,we=null,$e=null,pe=null,Se=!1,me=null,X=!!Q.dynamicChildren)=>{if(U===Q)return;U&&!rn(U,Q)&&(we=Y(U),G(U,$e,pe,!0),U=null),Q.patchFlag===-2&&(X=!1,Q.dynamicChildren=null);const{type:se,ref:ze,shapeFlag:Ve}=Q;switch(se){case Na:g(U,Q,fe,we);break;case ko:_(U,Q,fe,we);break;case hi:U==null&&w(Q,fe,we,Se);break;case Pe:I(U,Q,fe,we,$e,pe,Se,me,X);break;default:Ve&1?k(U,Q,fe,we,$e,pe,Se,me,X):Ve&6?N(U,Q,fe,we,$e,pe,Se,me,X):(Ve&64||Ve&128)&&se.process(U,Q,fe,we,$e,pe,Se,me,X,ce)}ze!=null&&$e&&a0(ze,U&&U.ref,pe,Q||U,!Q)},g=(U,Q,fe,we)=>{if(U==null)l(Q.el=i(Q.children),fe,we);else{const $e=Q.el=U.el;Q.children!==U.children&&u($e,Q.children)}},_=(U,Q,fe,we)=>{U==null?l(Q.el=c(Q.children||""),fe,we):Q.el=U.el},w=(U,Q,fe,we)=>{[U.el,U.anchor]=v(U.children,Q,fe,we,U.el,U.anchor)},b=({el:U,anchor:Q},fe,we)=>{let $e;for(;U&&U!==Q;)$e=f(U),l(U,fe,we),U=$e;l(Q,fe,we)},x=({el:U,anchor:Q})=>{let fe;for(;U&&U!==Q;)fe=f(U),r(U),U=fe;r(Q)},k=(U,Q,fe,we,$e,pe,Se,me,X)=>{Se=Se||Q.type==="svg",U==null?z(Q,fe,we,$e,pe,Se,me,X):A(U,Q,$e,pe,Se,me,X)},z=(U,Q,fe,we,$e,pe,Se,me)=>{let X,se;const{type:ze,props:Ve,shapeFlag:Le,transition:Ke,dirs:qe}=U;if(X=U.el=a(U.type,pe,Ve&&Ve.is,Ve),Le&8?d(X,U.children):Le&16&&E(U.children,X,null,we,$e,pe&&ze!=="foreignObject",Se,me),qe&&Xr(U,null,we,"created"),Ve){for(const be in Ve)be!=="value"&&!Gs(be)&&n(X,be,null,Ve[be],pe,U.children,we,$e,re);"value"in Ve&&n(X,"value",null,Ve.value),(se=Ve.onVnodeBeforeMount)&&Go(se,we,U)}M(X,U,U.scopeId,Se,we),qe&&Xr(U,null,we,"beforeMount");const rt=(!$e||$e&&!$e.pendingBranch)&&Ke&&!Ke.persisted;rt&&Ke.beforeEnter(X),l(X,Q,fe),((se=Ve&&Ve.onVnodeMounted)||rt||qe)&&io(()=>{se&&Go(se,we,U),rt&&Ke.enter(X),qe&&Xr(U,null,we,"mounted")},$e)},M=(U,Q,fe,we,$e)=>{if(fe&&h(U,fe),we)for(let pe=0;pe{for(let se=X;se{const me=Q.el=U.el;let{patchFlag:X,dynamicChildren:se,dirs:ze}=Q;X|=U.patchFlag&16;const Ve=U.props||jt,Le=Q.props||jt;let Ke;fe&&Jr(fe,!1),(Ke=Le.onVnodeBeforeUpdate)&&Go(Ke,fe,Q,U),ze&&Xr(Q,U,fe,"beforeUpdate"),fe&&Jr(fe,!0);const qe=$e&&Q.type!=="foreignObject";if(se?O(U.dynamicChildren,se,me,fe,we,qe,pe):Se||P(U,Q,me,null,fe,we,qe,pe,!1),X>0){if(X&16)D(me,Q,Ve,Le,fe,we,$e);else if(X&2&&Ve.class!==Le.class&&n(me,"class",null,Le.class,$e),X&4&&n(me,"style",Ve.style,Le.style,$e),X&8){const rt=Q.dynamicProps;for(let be=0;be{Ke&&Go(Ke,fe,Q,U),ze&&Xr(Q,U,fe,"updated")},we)},O=(U,Q,fe,we,$e,pe,Se)=>{for(let me=0;me{if(fe!==we){if(fe!==jt)for(const me in fe)!Gs(me)&&!(me in we)&&n(U,me,fe[me],null,Se,Q.children,$e,pe,re);for(const me in we){if(Gs(me))continue;const X=we[me],se=fe[me];X!==se&&me!=="value"&&n(U,me,se,X,Se,Q.children,$e,pe,re)}"value"in we&&n(U,"value",fe.value,we.value)}},I=(U,Q,fe,we,$e,pe,Se,me,X)=>{const se=Q.el=U?U.el:i(""),ze=Q.anchor=U?U.anchor:i("");let{patchFlag:Ve,dynamicChildren:Le,slotScopeIds:Ke}=Q;Ke&&(me=me?me.concat(Ke):Ke),U==null?(l(se,fe,we),l(ze,fe,we),E(Q.children,fe,ze,$e,pe,Se,me,X)):Ve>0&&Ve&64&&Le&&U.dynamicChildren?(O(U.dynamicChildren,Le,fe,$e,pe,Se,me),(Q.key!=null||$e&&Q===$e.subTree)&&U2(U,Q,!0)):P(U,Q,fe,ze,$e,pe,Se,me,X)},N=(U,Q,fe,we,$e,pe,Se,me,X)=>{Q.slotScopeIds=me,U==null?Q.shapeFlag&512?$e.ctx.activate(Q,fe,we,Se,X):B(Q,fe,we,$e,pe,Se,X):F(U,Q,X)},B=(U,Q,fe,we,$e,pe,Se)=>{const me=U.component=T9(U,we,$e);if(nu(U)&&(me.ctx.renderer=ce),A9(me),me.asyncDep){if($e&&$e.registerDep(me,H),!U.el){const X=me.subTree=K(ko);_(null,X,Q,fe)}return}H(me,U,Q,fe,$e,pe,Se)},F=(U,Q,fe)=>{const we=Q.component=U.component;if(K5(U,Q,fe))if(we.asyncDep&&!we.asyncResolved){L(we,Q,fe);return}else we.next=Q,I5(we.update),we.update();else Q.el=U.el,we.vnode=Q},H=(U,Q,fe,we,$e,pe,Se)=>{const me=()=>{if(U.isMounted){let{next:ze,bu:Ve,u:Le,parent:Ke,vnode:qe}=U,rt=ze,be;Jr(U,!1),ze?(ze.el=qe.el,L(U,ze,Se)):ze=qe,Ve&&ta(Ve),(be=ze.props&&ze.props.onVnodeBeforeUpdate)&&Go(be,Ke,ze,qe),Jr(U,!0);const ye=qu(U),He=U.subTree;U.subTree=ye,m(He,ye,p(He.el),Y(He),U,$e,pe),ze.el=ye.el,rt===null&&W5(U,ye.el),Le&&io(Le,$e),(be=ze.props&&ze.props.onVnodeUpdated)&&io(()=>Go(be,Ke,ze,qe),$e)}else{let ze;const{el:Ve,props:Le}=Q,{bm:Ke,m:qe,parent:rt}=U,be=la(Q);if(Jr(U,!1),Ke&&ta(Ke),!be&&(ze=Le&&Le.onVnodeBeforeMount)&&Go(ze,rt,Q),Jr(U,!0),Ve&&xe){const ye=()=>{U.subTree=qu(U),xe(Ve,U.subTree,U,$e,null)};be?Q.type.__asyncLoader().then(()=>!U.isUnmounted&&ye()):ye()}else{const ye=U.subTree=qu(U);m(null,ye,fe,we,U,$e,pe),Q.el=ye.el}if(qe&&io(qe,$e),!be&&(ze=Le&&Le.onVnodeMounted)){const ye=Q;io(()=>Go(ze,rt,ye),$e)}(Q.shapeFlag&256||rt&&la(rt.vnode)&&rt.vnode.shapeFlag&256)&&U.a&&io(U.a,$e),U.isMounted=!0,Q=fe=we=null}},X=U.effect=new O2(me,()=>D2(se),U.scope),se=U.update=()=>X.run();se.id=U.uid,Jr(U,!0),se()},L=(U,Q,fe)=>{Q.component=U;const we=U.vnode.props;U.vnode=Q,U.next=null,f9(U,Q.props,we,fe),m9(U,Q.children,fe),Ra(),Yf(),Ha()},P=(U,Q,fe,we,$e,pe,Se,me,X=!1)=>{const se=U&&U.children,ze=U?U.shapeFlag:0,Ve=Q.children,{patchFlag:Le,shapeFlag:Ke}=Q;if(Le>0){if(Le&128){J(se,Ve,fe,we,$e,pe,Se,me,X);return}else if(Le&256){R(se,Ve,fe,we,$e,pe,Se,me,X);return}}Ke&8?(ze&16&&re(se,$e,pe),Ve!==se&&d(fe,Ve)):ze&16?Ke&16?J(se,Ve,fe,we,$e,pe,Se,me,X):re(se,$e,pe,!0):(ze&8&&d(fe,""),Ke&16&&E(Ve,fe,we,$e,pe,Se,me,X))},R=(U,Q,fe,we,$e,pe,Se,me,X)=>{U=U||Qn,Q=Q||Qn;const se=U.length,ze=Q.length,Ve=Math.min(se,ze);let Le;for(Le=0;Leze?re(U,$e,pe,!0,!1,Ve):E(Q,fe,we,$e,pe,Se,me,X,Ve)},J=(U,Q,fe,we,$e,pe,Se,me,X)=>{let se=0;const ze=Q.length;let Ve=U.length-1,Le=ze-1;for(;se<=Ve&&se<=Le;){const Ke=U[se],qe=Q[se]=X?Er(Q[se]):Al(Q[se]);if(rn(Ke,qe))m(Ke,qe,fe,null,$e,pe,Se,me,X);else break;se++}for(;se<=Ve&&se<=Le;){const Ke=U[Ve],qe=Q[Le]=X?Er(Q[Le]):Al(Q[Le]);if(rn(Ke,qe))m(Ke,qe,fe,null,$e,pe,Se,me,X);else break;Ve--,Le--}if(se>Ve){if(se<=Le){const Ke=Le+1,qe=KeLe)for(;se<=Ve;)G(U[se],$e,pe,!0),se++;else{const Ke=se,qe=se,rt=new Map;for(se=qe;se<=Le;se++){const Me=Q[se]=X?Er(Q[se]):Al(Q[se]);Me.key!=null&&rt.set(Me.key,se)}let be,ye=0;const He=Le-qe+1;let Je=!1,q=0;const ie=new Array(He);for(se=0;se=He){G(Me,$e,pe,!0);continue}let it;if(Me.key!=null)it=rt.get(Me.key);else for(be=qe;be<=Le;be++)if(ie[be-qe]===0&&rn(Me,Q[be])){it=be;break}it===void 0?G(Me,$e,pe,!0):(ie[it-qe]=se+1,it>=q?q=it:Je=!0,m(Me,Q[it],fe,null,$e,pe,Se,me,X),ye++)}const ke=Je?w9(ie):Qn;for(be=ke.length-1,se=He-1;se>=0;se--){const Me=qe+se,it=Q[Me],zt=Me+1{const{el:pe,type:Se,transition:me,children:X,shapeFlag:se}=U;if(se&6){oe(U.component.subTree,Q,fe,we);return}if(se&128){U.suspense.move(Q,fe,we);return}if(se&64){Se.move(U,Q,fe,ce);return}if(Se===Pe){l(pe,Q,fe);for(let Ve=0;Veme.enter(pe),$e);else{const{leave:Ve,delayLeave:Le,afterLeave:Ke}=me,qe=()=>l(pe,Q,fe),rt=()=>{Ve(pe,()=>{qe(),Ke&&Ke()})};Le?Le(pe,qe,rt):rt()}else l(pe,Q,fe)},G=(U,Q,fe,we=!1,$e=!1)=>{const{type:pe,props:Se,ref:me,children:X,dynamicChildren:se,shapeFlag:ze,patchFlag:Ve,dirs:Le}=U;if(me!=null&&a0(me,null,fe,U,!0),ze&256){Q.ctx.deactivate(U);return}const Ke=ze&1&&Le,qe=!la(U);let rt;if(qe&&(rt=Se&&Se.onVnodeBeforeUnmount)&&Go(rt,Q,U),ze&6)j(U.component,fe,we);else{if(ze&128){U.suspense.unmount(fe,we);return}Ke&&Xr(U,null,Q,"beforeUnmount"),ze&64?U.type.remove(U,Q,fe,$e,ce,we):se&&(pe!==Pe||Ve>0&&Ve&64)?re(se,Q,fe,!1,!0):(pe===Pe&&Ve&384||!$e&&ze&16)&&re(X,Q,fe),we&&le(U)}(qe&&(rt=Se&&Se.onVnodeUnmounted)||Ke)&&io(()=>{rt&&Go(rt,Q,U),Ke&&Xr(U,null,Q,"unmounted")},fe)},le=U=>{const{type:Q,el:fe,anchor:we,transition:$e}=U;if(Q===Pe){he(fe,we);return}if(Q===hi){x(U);return}const pe=()=>{r(fe),$e&&!$e.persisted&&$e.afterLeave&&$e.afterLeave()};if(U.shapeFlag&1&&$e&&!$e.persisted){const{leave:Se,delayLeave:me}=$e,X=()=>Se(fe,pe);me?me(U.el,pe,X):X()}else pe()},he=(U,Q)=>{let fe;for(;U!==Q;)fe=f(U),r(U),U=fe;r(Q)},j=(U,Q,fe)=>{const{bum:we,scope:$e,update:pe,subTree:Se,um:me}=U;we&&ta(we),$e.stop(),pe&&(pe.active=!1,G(Se,U,Q,fe)),me&&io(me,Q),io(()=>{U.isUnmounted=!0},Q),Q&&Q.pendingBranch&&!Q.isUnmounted&&U.asyncDep&&!U.asyncResolved&&U.suspenseId===Q.pendingId&&(Q.deps--,Q.deps===0&&Q.resolve())},re=(U,Q,fe,we=!1,$e=!1,pe=0)=>{for(let Se=pe;SeU.shapeFlag&6?Y(U.component.subTree):U.shapeFlag&128?U.suspense.next():f(U.anchor||U.el),W=(U,Q,fe)=>{U==null?Q._vnode&&G(Q._vnode,null,null,!0):m(Q._vnode||null,U,Q,null,null,null,fe),Yf(),k6(),Q._vnode=U},ce={p:m,um:G,m:oe,r:le,mt:B,mc:E,pc:P,pbc:O,n:Y,o:e};let ne,xe;return t&&([ne,xe]=t(ce)),{render:W,hydrate:ne,createApp:b9(W,ne)}}function Jr({effect:e,update:t},o){e.allowRecurse=t.allowRecurse=o}function U2(e,t,o=!1){const l=e.children,r=t.children;if(Ie(l)&&Ie(r))for(let n=0;n>1,e[o[i]]0&&(t[l]=o[n-1]),o[n]=l)}}for(n=o.length,a=o[n-1];n-- >0;)o[n]=a,a=t[a];return o}const x9=e=>e.__isTeleport,fi=e=>e&&(e.disabled||e.disabled===""),r1=e=>typeof SVGElement<"u"&&e instanceof SVGElement,i0=(e,t)=>{const o=e&&e.to;return Ge(o)?t?t(o):null:o},k9={__isTeleport:!0,process(e,t,o,l,r,n,a,i,c,u){const{mc:d,pc:p,pbc:f,o:{insert:h,querySelector:v,createText:m,createComment:g}}=u,_=fi(t.props);let{shapeFlag:w,children:b,dynamicChildren:x}=t;if(e==null){const k=t.el=m(""),z=t.anchor=m("");h(k,o,l),h(z,o,l);const M=t.target=i0(t.props,v),E=t.targetAnchor=m("");M&&(h(E,M),a=a||r1(M));const A=(O,D)=>{w&16&&d(b,O,D,r,n,a,i,c)};_?A(o,z):M&&A(M,E)}else{t.el=e.el;const k=t.anchor=e.anchor,z=t.target=e.target,M=t.targetAnchor=e.targetAnchor,E=fi(e.props),A=E?o:z,O=E?k:M;if(a=a||r1(z),x?(f(e.dynamicChildren,x,A,r,n,a,i),U2(e,t,!0)):c||p(e,t,A,O,r,n,a,i,!1),_)E||As(t,o,k,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=i0(t.props,v);D&&As(t,D,null,u,0)}else E&&As(t,z,M,u,1)}j6(t)},remove(e,t,o,l,{um:r,o:{remove:n}},a){const{shapeFlag:i,children:c,anchor:u,targetAnchor:d,target:p,props:f}=e;if(p&&n(d),(a||!fi(f))&&(n(u),i&16))for(let h=0;h0?ml||Qn:null,$9(),Ii>0&&ml&&ml.push(e),e}function $(e,t,o,l,r,n){return K6(C(e,t,o,l,r,n,!0))}function ue(e,t,o,l,r){return K6(K(e,t,o,l,r,!0))}function Vt(e){return e?e.__v_isVNode===!0:!1}function rn(e,t){return e.type===t.type&&e.key===t.key}const su="__vInternal",W6=({key:e})=>e!=null?e:null,Js=({ref:e,ref_key:t,ref_for:o})=>e!=null?Ge(e)||xt(e)||Ye(e)?{i:co,r:e,k:t,f:!!o}:e:null;function C(e,t=null,o=null,l=0,r=null,n=e===Pe?0:1,a=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&W6(t),ref:t&&Js(t),scopeId:lu,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:n,patchFlag:l,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:co};return i?(Y2(c,o),n&128&&e.normalize(c)):o&&(c.shapeFlag|=Ge(o)?8:16),Ii>0&&!a&&ml&&(c.patchFlag>0||n&6)&&c.patchFlag!==32&&ml.push(c),c}const K=S9;function S9(e,t=null,o=null,l=0,r=null,n=!1){if((!e||e===P6)&&(e=ko),Vt(e)){const i=Nl(e,t,!0);return o&&Y2(i,o),Ii>0&&!n&&ml&&(i.shapeFlag&6?ml[ml.indexOf(e)]=i:ml.push(i)),i.patchFlag|=-2,i}if(P9(e)&&(e=e.__vccOpts),t){t=cu(t);let{class:i,style:c}=t;i&&!Ge(i)&&(t.class=T(i)),ft(c)&&(v6(c)&&!Ie(c)&&(c=no({},c)),t.style=Be(c))}const a=Ge(e)?1:S6(e)?128:x9(e)?64:ft(e)?4:Ye(e)?2:0;return C(e,t,o,l,r,a,n,!0)}function cu(e){return e?v6(e)||su in e?no({},e):e:null}function Nl(e,t,o=!1){const{props:l,ref:r,patchFlag:n,children:a}=e,i=t?ht(l||{},t):l;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:i,key:i&&W6(i),ref:t&&t.ref?o&&r?Ie(r)?r.concat(Js(t)):[r,Js(t)]:Js(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?n===-1?16:n|16:n,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nl(e.ssContent),ssFallback:e.ssFallback&&Nl(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function ot(e=" ",t=0){return K(Na,null,e,t)}function z9(e,t){const o=K(hi,null,e);return o.staticCount=t,o}function ae(e="",t=!1){return t?(y(),ue(ko,null,e)):K(ko,null,e)}function Al(e){return e==null||typeof e=="boolean"?K(ko):Ie(e)?K(Pe,null,e.slice()):typeof e=="object"?Er(e):K(Na,null,String(e))}function Er(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nl(e)}function Y2(e,t){let o=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(Ie(t))o=16;else if(typeof t=="object")if(l&65){const r=t.default;r&&(r._c&&(r._d=!1),Y2(e,r()),r._c&&(r._d=!0));return}else{o=32;const r=t._;!r&&!(su in t)?t._ctx=co:r===3&&co&&(co.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ye(t)?(t={default:t,_ctx:co},o=32):(t=String(t),l&64?(o=16,t=[ot(t)]):o=8);e.children=t,e.shapeFlag|=o}function ht(...e){const t={};for(let o=0;ooo||co,va=e=>{oo=e,e.scope.on()},gn=()=>{oo&&oo.scope.off(),oo=null};function q6(e){return e.vnode.shapeFlag&4}let Ri=!1;function A9(e,t=!1){Ri=t;const{props:o,children:l}=e.vnode,r=q6(e);p9(e,o,r,t),v9(e,l);const n=r?V9(e,t):void 0;return Ri=!1,n}function V9(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=bl(new Proxy(e.ctx,a9));const{setup:l}=o;if(l){const r=e.setupContext=l.length>1?Y6(e):null;va(e),Ra();const n=Ir(l,e,0,[e.props,r]);if(Ha(),gn(),Ti(n)){if(n.then(gn,gn),t)return n.then(a=>{a1(e,a,t)}).catch(a=>{tu(a,e,0)});e.asyncDep=n}else a1(e,n,t)}else U6(e,t)}function a1(e,t,o){Ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ft(t)&&(e.setupState=b6(t)),U6(e,o)}let i1;function U6(e,t,o){const l=e.type;if(!e.render){if(!t&&i1&&!l.render){const r=l.template||W2(e).template;if(r){const{isCustomElement:n,compilerOptions:a}=e.appContext.config,{delimiters:i,compilerOptions:c}=l,u=no(no({isCustomElement:n,delimiters:i},a),c);l.render=i1(r,u)}}e.render=l.render||$t}va(e),Ra(),i9(e),Ha(),gn()}function O9(e){return new Proxy(e.attrs,{get(t,o){return Wo(e,"get","$attrs"),t[o]}})}function Y6(e){const t=l=>{e.exposed=l||{}};let o;return{get attrs(){return o||(o=O9(e))},slots:e.slots,emit:e.emit,expose:t}}function uu(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(b6(bl(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in pi)return pi[o](e)},has(t,o){return o in t||o in pi}}))}function s0(e,t=!0){return Ye(e)?e.displayName||e.name:e.name||t&&e.__name}function P9(e){return Ye(e)&&"__vccOpts"in e}const S=(e,t)=>y6(e,t,Ri);function ao(){return G6().slots}function us(){return G6().attrs}function G6(){const e=Qe();return e.setupContext||(e.setupContext=Y6(e))}function Fe(e,t,o){const l=arguments.length;return l===2?ft(t)&&!Ie(t)?Vt(t)?K(e,null,[t]):K(e,t):K(e,null,t):(l>3?o=Array.prototype.slice.call(arguments,2):l===3&&Vt(o)&&(o=[o]),K(e,t,o))}const L9=Symbol(""),I9=()=>Re(L9),R9="3.2.45",H9="http://www.w3.org/2000/svg",nn=typeof document<"u"?document:null,s1=nn&&nn.createElement("template"),N9={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,l)=>{const r=t?nn.createElementNS(H9,e):nn.createElement(e,o?{is:o}:void 0);return e==="select"&&l&&l.multiple!=null&&r.setAttribute("multiple",l.multiple),r},createText:e=>nn.createTextNode(e),createComment:e=>nn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>nn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,l,r,n){const a=o?o.previousSibling:t.lastChild;if(r&&(r===n||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),o),!(r===n||!(r=r.nextSibling)););else{s1.innerHTML=l?`${e}`:e;const i=s1.content;if(l){const c=i.firstChild;for(;c.firstChild;)i.appendChild(c.firstChild);i.removeChild(c)}t.insertBefore(i,o)}return[a?a.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}};function B9(e,t,o){const l=e._vtc;l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}function D9(e,t,o){const l=e.style,r=Ge(o);if(o&&!r){for(const n in o)c0(l,n,o[n]);if(t&&!Ge(t))for(const n in t)o[n]==null&&c0(l,n,"")}else{const n=l.display;r?t!==o&&(l.cssText=o):t&&e.removeAttribute("style"),"_vod"in e&&(l.display=n)}}const c1=/\s*!important$/;function c0(e,t,o){if(Ie(o))o.forEach(l=>c0(e,t,l));else if(o==null&&(o=""),t.startsWith("--"))e.setProperty(t,o);else{const l=F9(e,t);c1.test(o)?e.setProperty(qr(l),o.replace(c1,""),"important"):e[l]=o}}const u1=["Webkit","Moz","ms"],Ju={};function F9(e,t){const o=Ju[t];if(o)return o;let l=ol(t);if(l!=="filter"&&l in e)return Ju[t]=l;l=is(l);for(let r=0;rZu||(Y9.then(()=>Zu=0),Zu=Date.now());function X9(e,t){const o=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=o.attached)return;el(J9(l,o.value),t,5,[l])};return o.value=e,o.attached=G9(),o}function J9(e,t){if(Ie(t)){const o=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{o.call(e),e._stopped=!0},t.map(l=>r=>!r._stopped&&l&&l(r))}else return t}const f1=/^on[a-z]/,Z9=(e,t,o,l,r=!1,n,a,i,c)=>{t==="class"?B9(e,l,r):t==="style"?D9(e,o,l):Zc(t)?E2(t)||q9(e,t,o,l,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Q9(e,t,l,r))?K9(e,t,l,n,a,i,c):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),j9(e,t,l,r))};function Q9(e,t,o,l){return l?!!(t==="innerHTML"||t==="textContent"||t in e&&f1.test(t)&&Ye(o)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||f1.test(t)&&Ge(o)?!1:t in e}function eCe(e){const t=Qe();if(!t)return;const o=t.ut=(r=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(n=>d0(n,r))},l=()=>{const r=e(t.proxy);u0(t.subTree,r),o(r)};U5(l),Ze(()=>{const r=new MutationObserver(l);r.observe(t.subTree.el.parentNode,{childList:!0}),ur(()=>r.disconnect())})}function u0(e,t){if(e.shapeFlag&128){const o=e.suspense;e=o.activeBranch,o.pendingBranch&&!o.isHydrating&&o.effects.push(()=>{u0(o.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)d0(e.el,t);else if(e.type===Pe)e.children.forEach(o=>u0(o,t));else if(e.type===hi){let{el:o,anchor:l}=e;for(;o&&(d0(o,t),o!==l);)o=o.nextSibling}}function d0(e,t){if(e.nodeType===1){const o=e.style;for(const l in t)o.setProperty(`--${l}`,t[l])}}const wr="transition",Za="animation",Kt=(e,{slots:t})=>Fe(M6,J6(e),t);Kt.displayName="Transition";const X6={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},e7=Kt.props=no({},M6.props,X6),Zr=(e,t=[])=>{Ie(e)?e.forEach(o=>o(...t)):e&&e(...t)},h1=e=>e?Ie(e)?e.some(t=>t.length>1):e.length>1:!1;function J6(e){const t={};for(const I in e)I in X6||(t[I]=e[I]);if(e.css===!1)return t;const{name:o="v",type:l,duration:r,enterFromClass:n=`${o}-enter-from`,enterActiveClass:a=`${o}-enter-active`,enterToClass:i=`${o}-enter-to`,appearFromClass:c=n,appearActiveClass:u=a,appearToClass:d=i,leaveFromClass:p=`${o}-leave-from`,leaveActiveClass:f=`${o}-leave-active`,leaveToClass:h=`${o}-leave-to`}=e,v=t7(r),m=v&&v[0],g=v&&v[1],{onBeforeEnter:_,onEnter:w,onEnterCancelled:b,onLeave:x,onLeaveCancelled:k,onBeforeAppear:z=_,onAppear:M=w,onAppearCancelled:E=b}=t,A=(I,N,B)=>{Cr(I,N?d:i),Cr(I,N?u:a),B&&B()},O=(I,N)=>{I._isLeaving=!1,Cr(I,p),Cr(I,h),Cr(I,f),N&&N()},D=I=>(N,B)=>{const F=I?M:w,H=()=>A(N,I,B);Zr(F,[N,H]),v1(()=>{Cr(N,I?c:n),Ul(N,I?d:i),h1(F)||m1(N,l,m,H)})};return no(t,{onBeforeEnter(I){Zr(_,[I]),Ul(I,n),Ul(I,a)},onBeforeAppear(I){Zr(z,[I]),Ul(I,c),Ul(I,u)},onEnter:D(!1),onAppear:D(!0),onLeave(I,N){I._isLeaving=!0;const B=()=>O(I,N);Ul(I,p),Q6(),Ul(I,f),v1(()=>{!I._isLeaving||(Cr(I,p),Ul(I,h),h1(x)||m1(I,l,g,B))}),Zr(x,[I,B])},onEnterCancelled(I){A(I,!1),Zr(b,[I])},onAppearCancelled(I){A(I,!0),Zr(E,[I])},onLeaveCancelled(I){O(I),Zr(k,[I])}})}function t7(e){if(e==null)return null;if(ft(e))return[Qu(e.enter),Qu(e.leave)];{const t=Qu(e);return[t,t]}}function Qu(e){return da(e)}function Ul(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e._vtc||(e._vtc=new Set)).add(t)}function Cr(e,t){t.split(/\s+/).forEach(l=>l&&e.classList.remove(l));const{_vtc:o}=e;o&&(o.delete(t),o.size||(e._vtc=void 0))}function v1(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let o7=0;function m1(e,t,o,l){const r=e._endId=++o7,n=()=>{r===e._endId&&l()};if(o)return setTimeout(n,o);const{type:a,timeout:i,propCount:c}=Z6(e,t);if(!a)return l();const u=a+"end";let d=0;const p=()=>{e.removeEventListener(u,f),n()},f=h=>{h.target===e&&++d>=c&&p()};setTimeout(()=>{d(o[v]||"").split(", "),r=l(`${wr}Delay`),n=l(`${wr}Duration`),a=g1(r,n),i=l(`${Za}Delay`),c=l(`${Za}Duration`),u=g1(i,c);let d=null,p=0,f=0;t===wr?a>0&&(d=wr,p=a,f=n.length):t===Za?u>0&&(d=Za,p=u,f=c.length):(p=Math.max(a,u),d=p>0?a>u?wr:Za:null,f=d?d===wr?n.length:c.length:0);const h=d===wr&&/\b(transform|all)(,|$)/.test(l(`${wr}Property`).toString());return{type:d,timeout:p,propCount:f,hasTransform:h}}function g1(e,t){for(;e.lengthb1(o)+b1(e[l])))}function b1(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Q6(){return document.body.offsetHeight}const e4=new WeakMap,t4=new WeakMap,l7={name:"TransitionGroup",props:no({},e7,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=Qe(),l=E6();let r,n;return jl(()=>{if(!r.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!i7(r[0].el,o.vnode.el,a))return;r.forEach(r7),r.forEach(n7);const i=r.filter(a7);Q6(),i.forEach(c=>{const u=c.el,d=u.style;Ul(u,a),d.transform=d.webkitTransform=d.transitionDuration="";const p=u._moveCb=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",p),u._moveCb=null,Cr(u,a))};u.addEventListener("transitionend",p)})}),()=>{const a=kt(e),i=J6(a);let c=a.tag||Pe;r=n,n=t.default?F2(t.default()):[];for(let u=0;u{a.split(/\s+/).forEach(i=>i&&l.classList.remove(i))}),o.split(/\s+/).forEach(a=>a&&l.classList.add(a)),l.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(l);const{hasTransform:n}=Z6(l);return r.removeChild(l),n}const Dr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ie(t)?o=>ta(t,o):t};function s7(e){e.target.composing=!0}function _1(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const X2={created(e,{modifiers:{lazy:t,trim:o,number:l}},r){e._assign=Dr(r);const n=l||r.props&&r.props.type==="number";Zl(e,t?"change":"input",a=>{if(a.target.composing)return;let i=e.value;o&&(i=i.trim()),n&&(i=da(i)),e._assign(i)}),o&&Zl(e,"change",()=>{e.value=e.value.trim()}),t||(Zl(e,"compositionstart",s7),Zl(e,"compositionend",_1),Zl(e,"change",_1))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:o,trim:l,number:r}},n){if(e._assign=Dr(n),e.composing||document.activeElement===e&&e.type!=="range"&&(o||l&&e.value.trim()===t||(r||e.type==="number")&&da(e.value)===t))return;const a=t==null?"":t;e.value!==a&&(e.value=a)}},Ac={deep:!0,created(e,t,o){e._assign=Dr(o),Zl(e,"change",()=>{const l=e._modelValue,r=ma(e),n=e.checked,a=e._assign;if(Ie(l)){const i=z2(l,r),c=i!==-1;if(n&&!c)a(l.concat(r));else if(!n&&c){const u=[...l];u.splice(i,1),a(u)}}else if(Ia(l)){const i=new Set(l);n?i.add(r):i.delete(r),a(i)}else a(l4(e,n))})},mounted:y1,beforeUpdate(e,t,o){e._assign=Dr(o),y1(e,t,o)}};function y1(e,{value:t,oldValue:o},l){e._modelValue=t,Ie(t)?e.checked=z2(t,l.props.value)>-1:Ia(t)?e.checked=t.has(l.props.value):t!==o&&(e.checked=xn(t,l4(e,!0)))}const o4={created(e,{value:t},o){e.checked=xn(t,o.props.value),e._assign=Dr(o),Zl(e,"change",()=>{e._assign(ma(e))})},beforeUpdate(e,{value:t,oldValue:o},l){e._assign=Dr(l),t!==o&&(e.checked=xn(t,l.props.value))}},tCe={deep:!0,created(e,{value:t,modifiers:{number:o}},l){const r=Ia(t);Zl(e,"change",()=>{const n=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>o?da(ma(a)):ma(a));e._assign(e.multiple?r?new Set(n):n:n[0])}),e._assign=Dr(l)},mounted(e,{value:t}){w1(e,t)},beforeUpdate(e,t,o){e._assign=Dr(o)},updated(e,{value:t}){w1(e,t)}};function w1(e,t){const o=e.multiple;if(!(o&&!Ie(t)&&!Ia(t))){for(let l=0,r=e.options.length;l-1:n.selected=t.has(a);else if(xn(ma(n),t)){e.selectedIndex!==l&&(e.selectedIndex=l);return}}!o&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ma(e){return"_value"in e?e._value:e.value}function l4(e,t){const o=t?"_trueValue":"_falseValue";return o in e?e[o]:t}const c7=["ctrl","shift","alt","meta"],u7={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>c7.some(o=>e[`${o}Key`]&&!t.includes(o))},Ue=(e,t)=>(o,...l)=>{for(let r=0;ro=>{if(!("key"in o))return;const l=qr(o.key);if(t.some(r=>r===l||d7[r]===l))return e(o)},_t={beforeMount(e,{value:t},{transition:o}){e._vod=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):Qa(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:l}){!t!=!o&&(l?t?(l.beforeEnter(e),Qa(e,!0),l.enter(e)):l.leave(e,()=>{Qa(e,!1)}):Qa(e,t))},beforeUnmount(e,{value:t}){Qa(e,t)}};function Qa(e,t){e.style.display=t?e._vod:"none"}const p7=no({patchProp:Z9},N9);let x1;function r4(){return x1||(x1=_9(p7))}const ga=(...e)=>{r4().render(...e)},n4=(...e)=>{const t=r4().createApp(...e),{mount:o}=t;return t.mount=l=>{const r=f7(l);if(!r)return;const n=t._component;!Ye(n)&&!n.render&&!n.template&&(n.template=r.innerHTML),r.innerHTML="";const a=o(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function f7(e){return Ge(e)?document.querySelector(e):e}/*! js-cookie v3.0.1 | MIT */function Vs(e){for(var t=1;t"u")){a=Vs({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var c in a)!a[c]||(i+="; "+c,a[c]!==!0&&(i+="="+a[c].split(";")[0]));return document.cookie=r+"="+e.write(n,r)+i}}function l(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var n=document.cookie?document.cookie.split("; "):[],a={},i=0;i0){if(++t>=iy)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function dy(e){return function(){return e}}var py=function(){try{var e=Vn(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Vc=py;var fy=Vc?function(e,t){return Vc(e,"toString",{configurable:!0,enumerable:!1,value:dy(t),writable:!0})}:J2;const hy=fy;var vy=uy(hy);const d4=vy;function my(e,t){for(var o=-1,l=e==null?0:e.length;++o-1}var xy=9007199254740991,ky=/^(?:0|[1-9]\d*)$/;function Z2(e,t){var o=typeof e;return t=t==null?xy:t,!!t&&(o=="number"||o!="symbol"&&ky.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=zy}function ds(e){return e!=null&&tp(e.length)&&!u4(e)}var Ey=Object.prototype;function op(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Ey;return e===o}function My(e,t){for(var o=-1,l=Array(e);++o-1}function jw(e,t){var o=this.__data__,l=fu(o,e);return l<0?(++this.size,o.push([e,t])):o[l][1]=t,this}function dr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t0&&o(i)?t>1?hs(i,t-1,o,l,r):sp(r,i):l||(r[r.length]=i)}return r}function y4(e){var t=e==null?0:e.length;return t?hs(e,1):[]}function ix(e){return d4(f4(e,void 0,y4),e+"")}var sx=_4(Object.getPrototypeOf,Object);const w4=sx;function _a(){if(!arguments.length)return[];var e=arguments[0];return qo(e)?e:[e]}function cx(){this.__data__=new dr,this.size=0}function ux(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function dx(e){return this.__data__.get(e)}function px(e){return this.__data__.has(e)}var fx=200;function hx(e,t){var o=this.__data__;if(o instanceof dr){var l=o.__data__;if(!Ni||l.lengthi))return!1;var u=n.get(e),d=n.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,h=o&tC?new Di:void 0;for(n.set(e,t),n.set(t,e);++p=t||M<0||p&&E>=n}function _(){var z=ld();if(g(z))return w(z);i=setTimeout(_,m(z))}function w(z){return i=void 0,f&&l?h(z):(l=r=void 0,a)}function b(){i!==void 0&&clearTimeout(i),u=0,l=c=r=i=void 0}function x(){return i===void 0?a:w(ld())}function k(){var z=ld(),M=g(z);if(l=arguments,r=this,c=z,M){if(i===void 0)return v(c);if(p)return clearTimeout(i),i=setTimeout(_,t),h(c)}return i===void 0&&(i=setTimeout(_,t)),a}return k.cancel=b,k.flush=x,k}function GC(e){return ar(e)&&ds(e)}function XC(e,t,o){for(var l=-1,r=e==null?0:e.length;++l=u$){var u=t?null:c$(e);if(u)return dp(u);a=!1,r=T4,c=new Di}else c=t?[]:i;e:for(;++lgetComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,eh=e=>Array.from(e.querySelectorAll(f$)).filter(t=>v$(t)&&h$(t)),v$=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Zs=function(e,t,...o){let l;t.includes("mouse")||t.includes("click")?l="MouseEvents":t.includes("key")?l="KeyboardEvent":l="HTMLEvents";const r=document.createEvent(l);return r.initEvent(t,...o),e.dispatchEvent(r),e},R4=e=>!e.getAttribute("aria-owns"),H4=(e,t,o)=>{const{parentNode:l}=e;if(!l)return null;const r=l.querySelectorAll(o),n=Array.prototype.indexOf.call(r,e);return r[n+t]||null},Qs=e=>{!e||(e.focus(),!R4(e)&&e.click())},Nt=(e,t,{checkForDefaultPrevented:o=!0}={})=>r=>{const n=e==null?void 0:e(r);if(o===!1||!n)return t==null?void 0:t(r)},th=e=>t=>t.pointerType==="mouse"?e(t):void 0;var m$=Object.defineProperty,g$=Object.defineProperties,b$=Object.getOwnPropertyDescriptors,oh=Object.getOwnPropertySymbols,_$=Object.prototype.hasOwnProperty,y$=Object.prototype.propertyIsEnumerable,lh=(e,t,o)=>t in e?m$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,w$=(e,t)=>{for(var o in t||(t={}))_$.call(t,o)&&lh(e,o,t[o]);if(oh)for(var o of oh(t))y$.call(t,o)&&lh(e,o,t[o]);return e},x$=(e,t)=>g$(e,b$(t));function rh(e,t){var o;const l=Et();return Ao(()=>{l.value=e()},x$(w$({},t),{flush:(o=t==null?void 0:t.flush)!=null?o:"sync"})),ss(l)}var nh;const gt=typeof window<"u",k$=e=>typeof e<"u",Jt=e=>typeof e=="boolean",C$=e=>typeof e=="function",et=e=>typeof e=="number",$$=e=>typeof e=="string",S$=()=>{};gt&&((nh=window==null?void 0:window.navigator)==null?void 0:nh.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function $n(e){return typeof e=="function"?e():s(e)}function N4(e,t){function o(...l){e(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return o}function z$(e,t={}){let o,l;return n=>{const a=$n(e),i=$n(t.maxWait);if(o&&clearTimeout(o),a<=0||i!==void 0&&i<=0)return l&&(clearTimeout(l),l=null),n();i&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,n()},i)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,n()},a)}}function E$(e,t=!0,o=!0){let l=0,r,n=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return c=>{const u=$n(e),d=Date.now()-l;if(a(),u<=0)return l=Date.now(),c();d>u&&(o||!n)?(l=Date.now(),c()):t&&(r=setTimeout(()=>{l=Date.now(),n=!0,a(),c()},u-d)),!o&&!r&&(r=setTimeout(()=>n=!0,u)),n=!1}}function M$(e){return e}function bu(e){return l5()?(l6(e),!0):!1}function T$(e,t=200,o={}){return N4(z$(t,o),e)}function A$(e,t=200,o={}){const l=V(e.value),r=T$(()=>{l.value=e.value},t,o);return ve(e,()=>r()),l}function B4(e,t=200,o=!1,l=!0){return N4(E$(t,o,l),e)}function pp(e,t=!0){Qe()?Ze(e):t?e():Ne(e)}function Sn(e,t,o={}){const{immediate:l=!0}=o,r=V(!1);let n=null;function a(){n&&(clearTimeout(n),n=null)}function i(){r.value=!1,a()}function c(...u){a(),r.value=!0,n=setTimeout(()=>{r.value=!1,n=null,e(...u)},$n(t))}return l&&(r.value=!0,gt&&c()),bu(i),{isPending:r,start:c,stop:i}}function Do(e){var t;const o=$n(e);return(t=o==null?void 0:o.$el)!=null?t:o}const Da=gt?window:void 0,V$=gt?window.document:void 0;function At(...e){let t,o,l,r;if($$(e[0])||Array.isArray(e[0])?([o,l,r]=e,t=Da):[t,o,l,r]=e,!t)return S$;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const n=[],a=()=>{n.forEach(d=>d()),n.length=0},i=(d,p,f)=>(d.addEventListener(p,f,r),()=>d.removeEventListener(p,f,r)),c=ve(()=>Do(t),d=>{a(),d&&n.push(...o.flatMap(p=>l.map(f=>i(d,p,f))))},{immediate:!0,flush:"post"}),u=()=>{c(),a()};return bu(u),u}function fp(e,t,o={}){const{window:l=Da,ignore:r,capture:n=!0,detectIframe:a=!1}=o;if(!l)return;const i=V(!0);let c;const u=h=>{l.clearTimeout(c);const v=Do(e);!v||v===h.target||h.composedPath().includes(v)||!i.value||t(h)},d=h=>r&&r.some(v=>{const m=Do(v);return m&&(h.target===m||h.composedPath().includes(m))}),p=[At(l,"click",u,{passive:!0,capture:n}),At(l,"pointerdown",h=>{const v=Do(e);i.value=!!v&&!h.composedPath().includes(v)&&!d(h)},{passive:!0}),At(l,"pointerup",h=>{if(h.button===0){const v=h.composedPath();h.composedPath=()=>v,c=l.setTimeout(()=>u(h),50)}},{passive:!0}),a&&At(l,"blur",h=>{var v;const m=Do(e);((v=l.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(m!=null&&m.contains(l.document.activeElement))&&t(h)})].filter(Boolean);return()=>p.forEach(h=>h())}function O$(e,t=!1){const o=V(),l=()=>o.value=Boolean(e());return l(),pp(l,t),o}function P$(e){return JSON.parse(JSON.stringify(e))}const g0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},b0="__vueuse_ssr_handlers__";g0[b0]=g0[b0]||{};g0[b0];function L$(e,t,{window:o=Da,initialValue:l=""}={}){const r=V(l),n=S(()=>{var a;return Do(t)||((a=o==null?void 0:o.document)==null?void 0:a.documentElement)});return ve([n,()=>$n(e)],([a,i])=>{var c;if(a&&o){const u=(c=o.getComputedStyle(a).getPropertyValue(i))==null?void 0:c.trim();r.value=u||l}},{immediate:!0}),ve(r,a=>{var i;(i=n.value)!=null&&i.style&&n.value.style.setProperty($n(e),a)}),r}function I$({document:e=V$}={}){if(!e)return V("visible");const t=V(e.visibilityState);return At(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var ah=Object.getOwnPropertySymbols,R$=Object.prototype.hasOwnProperty,H$=Object.prototype.propertyIsEnumerable,N$=(e,t)=>{var o={};for(var l in e)R$.call(e,l)&&t.indexOf(l)<0&&(o[l]=e[l]);if(e!=null&&ah)for(var l of ah(e))t.indexOf(l)<0&&H$.call(e,l)&&(o[l]=e[l]);return o};function bo(e,t,o={}){const l=o,{window:r=Da}=l,n=N$(l,["window"]);let a;const i=O$(()=>r&&"ResizeObserver"in r),c=()=>{a&&(a.disconnect(),a=void 0)},u=ve(()=>Do(e),p=>{c(),i.value&&r&&p&&(a=new ResizeObserver(t),a.observe(p,n))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return bu(d),{isSupported:i,stop:d}}function ih(e,t={}){const{reset:o=!0,windowResize:l=!0,windowScroll:r=!0,immediate:n=!0}=t,a=V(0),i=V(0),c=V(0),u=V(0),d=V(0),p=V(0),f=V(0),h=V(0);function v(){const m=Do(e);if(!m){o&&(a.value=0,i.value=0,c.value=0,u.value=0,d.value=0,p.value=0,f.value=0,h.value=0);return}const g=m.getBoundingClientRect();a.value=g.height,i.value=g.bottom,c.value=g.left,u.value=g.right,d.value=g.top,p.value=g.width,f.value=g.x,h.value=g.y}return bo(e,v),ve(()=>Do(e),m=>!m&&v()),r&&At("scroll",v,{passive:!0}),l&&At("resize",v,{passive:!0}),pp(()=>{n&&v()}),{height:a,bottom:i,left:c,right:u,top:d,width:p,x:f,y:h,update:v}}var sh;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(sh||(sh={}));var B$=Object.defineProperty,ch=Object.getOwnPropertySymbols,D$=Object.prototype.hasOwnProperty,F$=Object.prototype.propertyIsEnumerable,uh=(e,t,o)=>t in e?B$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,j$=(e,t)=>{for(var o in t||(t={}))D$.call(t,o)&&uh(e,o,t[o]);if(ch)for(var o of ch(t))F$.call(t,o)&&uh(e,o,t[o]);return e};const K$={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};j$({linear:M$},K$);function W$(e,t,o,l={}){var r,n,a;const{clone:i=!1,passive:c=!1,eventName:u,deep:d=!1,defaultValue:p}=l,f=Qe(),h=o||(f==null?void 0:f.emit)||((r=f==null?void 0:f.$emit)==null?void 0:r.bind(f))||((a=(n=f==null?void 0:f.proxy)==null?void 0:n.$emit)==null?void 0:a.bind(f==null?void 0:f.proxy));let v=u;t||(t="modelValue"),v=u||v||`update:${t.toString()}`;const m=_=>i?C$(i)?i(_):P$(_):_,g=()=>k$(e[t])?m(e[t]):p;if(c){const _=g(),w=V(_);return ve(()=>e[t],b=>w.value=m(b)),ve(w,b=>{(b!==e[t]||d)&&h(v,b)},{deep:d}),w}else return S({get(){return g()},set(_){h(v,_)}})}function q$({window:e=Da}={}){if(!e)return V(!1);const t=V(e.document.hasFocus());return At(e,"blur",()=>{t.value=!1}),At(e,"focus",()=>{t.value=!0}),t}function D4(e={}){const{window:t=Da,initialWidth:o=1/0,initialHeight:l=1/0,listenOrientation:r=!0,includeScrollbar:n=!0}=e,a=V(o),i=V(l),c=()=>{t&&(n?(a.value=t.innerWidth,i.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return c(),pp(c),At("resize",c,{passive:!0}),r&&At("orientationchange",c,{passive:!0}),{width:a,height:i}}const U$=(e,t)=>{if(!gt||!e||!t)return!1;const o=e.getBoundingClientRect();let l;return t instanceof Element?l=t.getBoundingClientRect():l={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},o.topl.top&&o.right>l.left&&o.left{let t=0,o=e;for(;o;)t+=o.offsetTop,o=o.offsetParent;return t},Y$=(e,t)=>Math.abs(dh(e)-dh(t)),hp=e=>{let t,o;return e.type==="touchend"?(o=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(o=e.touches[0].clientY,t=e.touches[0].clientX):(o=e.clientY,t=e.clientX),{clientX:t,clientY:o}},lo=e=>e===void 0,Jo=e=>!e&&e!==0||Ie(e)&&e.length===0||ft(e)&&!Object.keys(e).length,yl=e=>typeof Element>"u"?!1:e instanceof Element,G$=e=>ro(e),X$=e=>Ge(e)?!Number.isNaN(Number(e)):!1,J$=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Zo=e=>is(e),Fi=e=>Object.keys(e),Z$=e=>Object.entries(e),ec=(e,t,o)=>({get value(){return Pt(e,t,o)},set value(l){n$(e,t,l)}});class Q$ extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Zt(e,t){throw new Q$(`[${e}] ${t}`)}const F4=(e="")=>e.split(" ").filter(t=>!!t.trim()),_l=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ol=(e,t)=>{!e||!t.trim()||e.classList.add(...F4(t))},Vo=(e,t)=>{!e||!t.trim()||e.classList.remove(...F4(t))},Ql=(e,t)=>{var o;if(!gt||!e||!t)return"";let l=ol(t);l==="float"&&(l="cssFloat");try{const r=e.style[l];if(r)return r;const n=(o=document.defaultView)==null?void 0:o.getComputedStyle(e,"");return n?n[l]:""}catch{return e.style[l]}};function Yt(e,t="px"){if(!e)return"";if(et(e)||X$(e))return`${e}${t}`;if(Ge(e))return e}const eS=(e,t)=>{if(!gt)return!1;const o={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],l=Ql(e,o);return["scroll","auto","overlay"].some(r=>l.includes(r))},vp=(e,t)=>{if(!gt)return;let o=e;for(;o;){if([window,document,document.documentElement].includes(o))return window;if(eS(o,t))return o;o=o.parentNode}return o};let Ps;const j4=e=>{var t;if(!gt)return 0;if(Ps!==void 0)return Ps;const o=document.createElement("div");o.className=`${e}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const l=o.offsetWidth;o.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",o.appendChild(r);const n=r.offsetWidth;return(t=o.parentNode)==null||t.removeChild(o),Ps=l-n,Ps};function K4(e,t){if(!gt)return;if(!t){e.scrollTop=0;return}const o=[];let l=t.offsetParent;for(;l!==null&&e!==l&&e.contains(l);)o.push(l),l=l.offsetParent;const r=t.offsetTop+o.reduce((c,u)=>c+u.offsetTop,0),n=r+t.offsetHeight,a=e.scrollTop,i=a+e.clientHeight;ri&&(e.scrollTop=n-e.clientHeight)}/*! Element Plus Icons Vue v2.0.10 */var tS={name:"AddLocation"},ee=(e,t)=>{let o=e.__vccOpts||e;for(let[l,r]of t)o[l]=r;return o},oS={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},lS=C("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),rS=C("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),nS=C("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0v96z"},null,-1),aS=[lS,rS,nS];function iS(e,t,o,l,r,n){return y(),$("svg",oS,aS)}var sS=ee(tS,[["render",iS],["__file","add-location.vue"]]),cS={name:"Aim"},uS={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},dS=C("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),pS=C("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32zm0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32zM96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32zm576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32z"},null,-1),fS=[dS,pS];function hS(e,t,o,l,r,n){return y(),$("svg",uS,fS)}var vS=ee(cS,[["render",hS],["__file","aim.vue"]]),mS={name:"AlarmClock"},gS={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},bS=C("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z"},null,-1),_S=C("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32l48-83.136zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32l-48-83.136zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0v192zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128l46.912 46.912z"},null,-1),yS=[bS,_S];function wS(e,t,o,l,r,n){return y(),$("svg",gS,yS)}var xS=ee(mS,[["render",wS],["__file","alarm-clock.vue"]]),kS={name:"Apple"},CS={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$S=C("path",{fill:"currentColor",d:"M599.872 203.776a189.44 189.44 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a426.624 426.624 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664zm-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688 63.552 0 81.28 34.688 136.96 33.536 56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152z"},null,-1),SS=[$S];function zS(e,t,o,l,r,n){return y(),$("svg",CS,SS)}var ES=ee(kS,[["render",zS],["__file","apple.vue"]]),MS={name:"ArrowDownBold"},TS={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},AS=C("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"},null,-1),VS=[AS];function OS(e,t,o,l,r,n){return y(),$("svg",TS,VS)}var PS=ee(MS,[["render",OS],["__file","arrow-down-bold.vue"]]),LS={name:"ArrowDown"},IS={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},RS=C("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),HS=[RS];function NS(e,t,o,l,r,n){return y(),$("svg",IS,HS)}var fr=ee(LS,[["render",NS],["__file","arrow-down.vue"]]),BS={name:"ArrowLeftBold"},DS={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},FS=C("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"},null,-1),jS=[FS];function KS(e,t,o,l,r,n){return y(),$("svg",DS,jS)}var WS=ee(BS,[["render",KS],["__file","arrow-left-bold.vue"]]),qS={name:"ArrowLeft"},US={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},YS=C("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),GS=[YS];function XS(e,t,o,l,r,n){return y(),$("svg",US,GS)}var ir=ee(qS,[["render",XS],["__file","arrow-left.vue"]]),JS={name:"ArrowRightBold"},ZS={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},QS=C("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"},null,-1),ez=[QS];function tz(e,t,o,l,r,n){return y(),$("svg",ZS,ez)}var oz=ee(JS,[["render",tz],["__file","arrow-right-bold.vue"]]),lz={name:"ArrowRight"},rz={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},nz=C("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),az=[nz];function iz(e,t,o,l,r,n){return y(),$("svg",rz,az)}var go=ee(lz,[["render",iz],["__file","arrow-right.vue"]]),sz={name:"ArrowUpBold"},cz={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},uz=C("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"},null,-1),dz=[uz];function pz(e,t,o,l,r,n){return y(),$("svg",cz,dz)}var fz=ee(sz,[["render",pz],["__file","arrow-up-bold.vue"]]),hz={name:"ArrowUp"},vz={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},mz=C("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),gz=[mz];function bz(e,t,o,l,r,n){return y(),$("svg",vz,gz)}var vs=ee(hz,[["render",bz],["__file","arrow-up.vue"]]),_z={name:"Avatar"},yz={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},wz=C("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0z"},null,-1),xz=[wz];function kz(e,t,o,l,r,n){return y(),$("svg",yz,xz)}var Cz=ee(_z,[["render",kz],["__file","avatar.vue"]]),$z={name:"Back"},Sz={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},zz=C("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),Ez=C("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),Mz=[zz,Ez];function Tz(e,t,o,l,r,n){return y(),$("svg",Sz,Mz)}var W4=ee($z,[["render",Tz],["__file","back.vue"]]),Az={name:"Baseball"},Vz={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Oz=C("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6zm45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104z"},null,-1),Pz=C("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896zM108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1736.64 1736.64 0 0 1-11.392-65.728z"},null,-1),Lz=[Oz,Pz];function Iz(e,t,o,l,r,n){return y(),$("svg",Vz,Lz)}var Rz=ee(Az,[["render",Iz],["__file","baseball.vue"]]),Hz={name:"Basketball"},Nz={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Bz=C("path",{fill:"currentColor",d:"M778.752 788.224a382.464 382.464 0 0 0 116.032-245.632 256.512 256.512 0 0 0-241.728-13.952 762.88 762.88 0 0 1 125.696 259.584zm-55.04 44.224a699.648 699.648 0 0 0-125.056-269.632 256.128 256.128 0 0 0-56.064 331.968 382.72 382.72 0 0 0 181.12-62.336zm-254.08 61.248A320.128 320.128 0 0 1 557.76 513.6a715.84 715.84 0 0 0-48.192-48.128 320.128 320.128 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.128 256.128 0 0 0 331.072-56.448 699.648 699.648 0 0 0-268.8-124.352 382.656 382.656 0 0 0-62.272 180.8zm106.56-235.84a762.88 762.88 0 0 1 258.688 125.056 256.512 256.512 0 0 0-13.44-241.088A382.464 382.464 0 0 0 235.84 245.248zm318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a779.84 779.84 0 0 1 66.176 66.112 320.832 320.832 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6z"},null,-1),Dz=[Bz];function Fz(e,t,o,l,r,n){return y(),$("svg",Nz,Dz)}var jz=ee(Hz,[["render",Fz],["__file","basketball.vue"]]),Kz={name:"BellFilled"},Wz={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qz=C("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0h256zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8H832z"},null,-1),Uz=[qz];function Yz(e,t,o,l,r,n){return y(),$("svg",Wz,Uz)}var Gz=ee(Kz,[["render",Yz],["__file","bell-filled.vue"]]),Xz={name:"Bell"},Jz={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Zz=C("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64z"},null,-1),Qz=C("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0v320zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320z"},null,-1),eE=C("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm352 128h128a64 64 0 0 1-128 0z"},null,-1),tE=[Zz,Qz,eE];function oE(e,t,o,l,r,n){return y(),$("svg",Jz,tE)}var lE=ee(Xz,[["render",oE],["__file","bell.vue"]]),rE={name:"Bicycle"},nE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},aE=z9('',5),iE=[aE];function sE(e,t,o,l,r,n){return y(),$("svg",nE,iE)}var cE=ee(rE,[["render",sE],["__file","bicycle.vue"]]),uE={name:"BottomLeft"},dE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},pE=C("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0v416z"},null,-1),fE=C("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z"},null,-1),hE=[pE,fE];function vE(e,t,o,l,r,n){return y(),$("svg",dE,hE)}var mE=ee(uE,[["render",vE],["__file","bottom-left.vue"]]),gE={name:"BottomRight"},bE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_E=C("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416H352z"},null,-1),yE=C("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312l544 544z"},null,-1),wE=[_E,yE];function xE(e,t,o,l,r,n){return y(),$("svg",bE,wE)}var kE=ee(gE,[["render",xE],["__file","bottom-right.vue"]]),CE={name:"Bottom"},$E={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},SE=C("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"},null,-1),zE=[SE];function EE(e,t,o,l,r,n){return y(),$("svg",$E,zE)}var ME=ee(CE,[["render",EE],["__file","bottom.vue"]]),TE={name:"Bowl"},AE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},VE=C("path",{fill:"currentColor",d:"M714.432 704a351.744 351.744 0 0 0 148.16-256H161.408a351.744 351.744 0 0 0 148.16 256h404.864zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64v-65.408zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248L493.248 320zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424L680.576 320zM352 768v64h320v-64H352z"},null,-1),OE=[VE];function PE(e,t,o,l,r,n){return y(),$("svg",AE,OE)}var LE=ee(TE,[["render",PE],["__file","bowl.vue"]]),IE={name:"Box"},RE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},HE=C("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128H317.056zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64z"},null,-1),NE=C("path",{fill:"currentColor",d:"M64 320h896v64H64z"},null,-1),BE=C("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16L448 327.872zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320l64-256z"},null,-1),DE=[HE,NE,BE];function FE(e,t,o,l,r,n){return y(),$("svg",RE,DE)}var jE=ee(IE,[["render",FE],["__file","box.vue"]]),KE={name:"Briefcase"},WE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qE=C("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320h192zM128 576h768v320H128V576zm256-256h256.064V192H384v128z"},null,-1),UE=[qE];function YE(e,t,o,l,r,n){return y(),$("svg",WE,UE)}var GE=ee(KE,[["render",YE],["__file","briefcase.vue"]]),XE={name:"BrushFilled"},JE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ZE=C("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128h-96zM192 512V128.064h640V512H192z"},null,-1),QE=[ZE];function eM(e,t,o,l,r,n){return y(),$("svg",JE,QE)}var tM=ee(XE,[["render",eM],["__file","brush-filled.vue"]]),oM={name:"Brush"},lM={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rM=C("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64V448zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a663.872 663.872 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384h61.248zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168z"},null,-1),nM=[rM];function aM(e,t,o,l,r,n){return y(),$("svg",lM,nM)}var iM=ee(oM,[["render",aM],["__file","brush.vue"]]),sM={name:"Burger"},cM={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},uM=C("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H160zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44zM832 448a320 320 0 0 0-640 0h640zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704H512z"},null,-1),dM=[uM];function pM(e,t,o,l,r,n){return y(),$("svg",cM,dM)}var fM=ee(sM,[["render",pM],["__file","burger.vue"]]),hM={name:"Calendar"},vM={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},mM=C("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),gM=[mM];function bM(e,t,o,l,r,n){return y(),$("svg",vM,gM)}var q4=ee(hM,[["render",bM],["__file","calendar.vue"]]),_M={name:"CameraFilled"},yM={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},wM=C("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224H160zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4zm0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1),xM=[wM];function kM(e,t,o,l,r,n){return y(),$("svg",yM,xM)}var CM=ee(_M,[["render",kM],["__file","camera-filled.vue"]]),$M={name:"Camera"},SM={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},zM=C("path",{fill:"currentColor",d:"M896 256H128v576h768V256zm-199.424-64-32.064-64h-304.96l-32 64h369.024zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32zm416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448z"},null,-1),EM=[zM];function MM(e,t,o,l,r,n){return y(),$("svg",SM,EM)}var TM=ee($M,[["render",MM],["__file","camera.vue"]]),AM={name:"CaretBottom"},VM={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},OM=C("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"},null,-1),PM=[OM];function LM(e,t,o,l,r,n){return y(),$("svg",VM,PM)}var IM=ee(AM,[["render",LM],["__file","caret-bottom.vue"]]),RM={name:"CaretLeft"},HM={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},NM=C("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"},null,-1),BM=[NM];function DM(e,t,o,l,r,n){return y(),$("svg",HM,BM)}var FM=ee(RM,[["render",DM],["__file","caret-left.vue"]]),jM={name:"CaretRight"},KM={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},WM=C("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),qM=[WM];function UM(e,t,o,l,r,n){return y(),$("svg",KM,qM)}var mp=ee(jM,[["render",UM],["__file","caret-right.vue"]]),YM={name:"CaretTop"},GM={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},XM=C("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),JM=[XM];function ZM(e,t,o,l,r,n){return y(),$("svg",GM,JM)}var U4=ee(YM,[["render",ZM],["__file","caret-top.vue"]]),QM={name:"Cellphone"},eT={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},tT=C("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H256zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64zm128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64zm128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128z"},null,-1),oT=[tT];function lT(e,t,o,l,r,n){return y(),$("svg",eT,oT)}var rT=ee(QM,[["render",lT],["__file","cellphone.vue"]]),nT={name:"ChatDotRound"},aT={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},iT=C("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"},null,-1),sT=C("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"},null,-1),cT=[iT,sT];function uT(e,t,o,l,r,n){return y(),$("svg",aT,cT)}var dT=ee(nT,[["render",uT],["__file","chat-dot-round.vue"]]),pT={name:"ChatDotSquare"},fT={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},hT=C("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88L273.536 736zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1),vT=C("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"},null,-1),mT=[hT,vT];function gT(e,t,o,l,r,n){return y(),$("svg",fT,mT)}var bT=ee(pT,[["render",gT],["__file","chat-dot-square.vue"]]),_T={name:"ChatLineRound"},yT={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},wT=C("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"},null,-1),xT=C("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32z"},null,-1),kT=[wT,xT];function CT(e,t,o,l,r,n){return y(),$("svg",yT,kT)}var $T=ee(_T,[["render",CT],["__file","chat-line-round.vue"]]),ST={name:"ChatLineSquare"},zT={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ET=C("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1),MT=C("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32z"},null,-1),TT=[ET,MT];function AT(e,t,o,l,r,n){return y(),$("svg",zT,TT)}var VT=ee(ST,[["render",AT],["__file","chat-line-square.vue"]]),OT={name:"ChatRound"},PT={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},LT=C("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"},null,-1),IT=[LT];function RT(e,t,o,l,r,n){return y(),$("svg",PT,IT)}var HT=ee(OT,[["render",RT],["__file","chat-round.vue"]]),NT={name:"ChatSquare"},BT={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},DT=C("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88L273.536 736zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1),FT=[DT];function jT(e,t,o,l,r,n){return y(),$("svg",BT,FT)}var KT=ee(NT,[["render",jT],["__file","chat-square.vue"]]),WT={name:"Check"},qT={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},UT=C("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),YT=[UT];function GT(e,t,o,l,r,n){return y(),$("svg",qT,YT)}var Fa=ee(WT,[["render",GT],["__file","check.vue"]]),XT={name:"Checked"},JT={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ZT=C("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704v-64zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024 311.616 537.28zM384 192V96h256v96H384z"},null,-1),QT=[ZT];function eA(e,t,o,l,r,n){return y(),$("svg",JT,QT)}var tA=ee(XT,[["render",eA],["__file","checked.vue"]]),oA={name:"Cherry"},lA={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rA=C("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6zM288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320z"},null,-1),nA=[rA];function aA(e,t,o,l,r,n){return y(),$("svg",lA,nA)}var iA=ee(oA,[["render",aA],["__file","cherry.vue"]]),sA={name:"Chicken"},cA={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},uA=C("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.688 106.688 0 0 1-26.176-19.072 106.688 106.688 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112zm57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84zM244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52 3.52-56.32zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52-3.52 56.32z"},null,-1),dA=[uA];function pA(e,t,o,l,r,n){return y(),$("svg",cA,dA)}var fA=ee(sA,[["render",pA],["__file","chicken.vue"]]),hA={name:"ChromeFilled"},vA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",style:{"enable-background":"new 0 0 1024 1024"},"xml:space":"preserve"},mA=C("path",{d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.372 212.372 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67z",fill:"currentColor"},null,-1),gA=C("path",{d:"M576.79 401.63a127.92 127.92 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128.005 128.005 0 0 0-2.16 127.44l1.24 2.13a127.906 127.906 0 0 0 46.36 46.61 127.907 127.907 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.984 127.984 0 0 0 .29-127.46 127.957 127.957 0 0 0-46.36-46.91z",fill:"currentColor"},null,-1),bA=C("path",{d:"M394.45 333.96A213.336 213.336 0 0 1 512 298.67h369.58A426.503 426.503 0 0 0 512 85.34a425.598 425.598 0 0 0-171.74 35.98 425.644 425.644 0 0 0-142.62 102.22l118.14 204.63a213.397 213.397 0 0 1 78.67-94.21zm117.56 604.72H512zm-97.25-236.73a213.284 213.284 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.315 213.315 0 0 1-122.77-21.91z",fill:"currentColor"},null,-1),_A=[mA,gA,bA];function yA(e,t,o,l,r,n){return y(),$("svg",vA,_A)}var wA=ee(hA,[["render",yA],["__file","chrome-filled.vue"]]),xA={name:"CircleCheckFilled"},kA={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},CA=C("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),$A=[CA];function SA(e,t,o,l,r,n){return y(),$("svg",kA,$A)}var Y4=ee(xA,[["render",SA],["__file","circle-check-filled.vue"]]),zA={name:"CircleCheck"},EA={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},MA=C("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),TA=C("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),AA=[MA,TA];function VA(e,t,o,l,r,n){return y(),$("svg",EA,AA)}var _u=ee(zA,[["render",VA],["__file","circle-check.vue"]]),OA={name:"CircleCloseFilled"},PA={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},LA=C("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),IA=[LA];function RA(e,t,o,l,r,n){return y(),$("svg",PA,IA)}var yu=ee(OA,[["render",RA],["__file","circle-close-filled.vue"]]),HA={name:"CircleClose"},NA={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},BA=C("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),DA=C("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),FA=[BA,DA];function jA(e,t,o,l,r,n){return y(),$("svg",NA,FA)}var hr=ee(HA,[["render",jA],["__file","circle-close.vue"]]),KA={name:"CirclePlusFilled"},WA={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qA=C("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0v147.2z"},null,-1),UA=[qA];function YA(e,t,o,l,r,n){return y(),$("svg",WA,UA)}var GA=ee(KA,[["render",YA],["__file","circle-plus-filled.vue"]]),XA={name:"CirclePlus"},JA={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ZA=C("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),QA=C("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0z"},null,-1),eV=C("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),tV=[ZA,QA,eV];function oV(e,t,o,l,r,n){return y(),$("svg",JA,tV)}var lV=ee(XA,[["render",oV],["__file","circle-plus.vue"]]),rV={name:"Clock"},nV={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},aV=C("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),iV=C("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),sV=C("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),cV=[aV,iV,sV];function uV(e,t,o,l,r,n){return y(),$("svg",nV,cV)}var gp=ee(rV,[["render",uV],["__file","clock.vue"]]),dV={name:"CloseBold"},pV={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},fV=C("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"},null,-1),hV=[fV];function vV(e,t,o,l,r,n){return y(),$("svg",pV,hV)}var mV=ee(dV,[["render",vV],["__file","close-bold.vue"]]),gV={name:"Close"},bV={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_V=C("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),yV=[_V];function wV(e,t,o,l,r,n){return y(),$("svg",bV,yV)}var nl=ee(gV,[["render",wV],["__file","close.vue"]]),xV={name:"Cloudy"},kV={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},CV=C("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872zm-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"},null,-1),$V=[CV];function SV(e,t,o,l,r,n){return y(),$("svg",kV,$V)}var zV=ee(xV,[["render",SV],["__file","cloudy.vue"]]),EV={name:"CoffeeCup"},MV={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},TV=C("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.128 256.128 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v32zm0 64v256a128 128 0 1 0 0-256zM96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192H128z"},null,-1),AV=[TV];function VV(e,t,o,l,r,n){return y(),$("svg",MV,AV)}var OV=ee(EV,[["render",VV],["__file","coffee-cup.vue"]]),PV={name:"Coffee"},LV={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},IV=C("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304L822.592 192zm-64.128 0 4.544-64H260.736l4.544 64h493.184zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64h6.784zm68.736 64 36.544 512H708.16l36.544-512H279.04z"},null,-1),RV=[IV];function HV(e,t,o,l,r,n){return y(),$("svg",LV,RV)}var NV=ee(PV,[["render",HV],["__file","coffee.vue"]]),BV={name:"Coin"},DV={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},FV=C("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z"},null,-1),jV=C("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z"},null,-1),KV=C("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224zm0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160z"},null,-1),WV=[FV,jV,KV];function qV(e,t,o,l,r,n){return y(),$("svg",DV,WV)}var UV=ee(BV,[["render",qV],["__file","coin.vue"]]),YV={name:"ColdDrink"},GV={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},XV=C("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.064 192.064 0 0 1 768 64zM656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928H299.008z"},null,-1),JV=[XV];function ZV(e,t,o,l,r,n){return y(),$("svg",GV,JV)}var QV=ee(YV,[["render",ZV],["__file","cold-drink.vue"]]),eO={name:"CollectionTag"},tO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},oO=C("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128H256zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32z"},null,-1),lO=[oO];function rO(e,t,o,l,r,n){return y(),$("svg",tO,lO)}var nO=ee(eO,[["render",rO],["__file","collection-tag.vue"]]),aO={name:"Collection"},iO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},sO=C("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64v544zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64z"},null,-1),cO=C("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96H240zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224zm144-608v250.88l96-76.8 96 76.8V128H384zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44V64z"},null,-1),uO=[sO,cO];function dO(e,t,o,l,r,n){return y(),$("svg",iO,uO)}var pO=ee(aO,[["render",dO],["__file","collection.vue"]]),fO={name:"Comment"},hO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},vO=C("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zM128 128v640h192v160l224-160h352V128H128z"},null,-1),mO=[vO];function gO(e,t,o,l,r,n){return y(),$("svg",hO,mO)}var bO=ee(fO,[["render",gO],["__file","comment.vue"]]),_O={name:"Compass"},yO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},wO=C("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),xO=C("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832z"},null,-1),kO=[wO,xO];function CO(e,t,o,l,r,n){return y(),$("svg",yO,kO)}var $O=ee(_O,[["render",CO],["__file","compass.vue"]]),SO={name:"Connection"},zO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},EO=C("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192h192z"},null,-1),MO=C("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.064 192.064 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192H384z"},null,-1),TO=[EO,MO];function AO(e,t,o,l,r,n){return y(),$("svg",zO,TO)}var VO=ee(SO,[["render",AO],["__file","connection.vue"]]),OO={name:"Coordinate"},PO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},LO=C("path",{fill:"currentColor",d:"M480 512h64v320h-64z"},null,-1),IO=C("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64zm64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128zm256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1),RO=[LO,IO];function HO(e,t,o,l,r,n){return y(),$("svg",PO,RO)}var NO=ee(OO,[["render",HO],["__file","coordinate.vue"]]),BO={name:"CopyDocument"},DO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},FO=C("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64h64z"},null,-1),jO=C("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H384zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64z"},null,-1),KO=[FO,jO];function WO(e,t,o,l,r,n){return y(),$("svg",DO,KO)}var qO=ee(BO,[["render",WO],["__file","copy-document.vue"]]),UO={name:"Cpu"},YO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},GO=C("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64H320zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128z"},null,-1),XO=C("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zM64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32z"},null,-1),JO=[GO,XO];function ZO(e,t,o,l,r,n){return y(),$("svg",YO,JO)}var QO=ee(UO,[["render",ZO],["__file","cpu.vue"]]),eP={name:"CreditCard"},tP={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},oP=C("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.352 52.352 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.352 52.352 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.352 52.352 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.352 52.352 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416V324.096zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448-20.864 11.136-41.6 17.088-98.56 17.088H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.288 116.288 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448 20.864-11.136 41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384 11.136 20.864 17.088 41.6 17.088 98.56z"},null,-1),lP=C("path",{fill:"currentColor",d:"M64 320h896v64H64v-64zm0 128h896v64H64v-64zm128 192h256v64H192z"},null,-1),rP=[oP,lP];function nP(e,t,o,l,r,n){return y(),$("svg",tP,rP)}var aP=ee(eP,[["render",nP],["__file","credit-card.vue"]]),iP={name:"Crop"},sP={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},cP=C("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0v672z"},null,-1),uP=C("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32z"},null,-1),dP=[cP,uP];function pP(e,t,o,l,r,n){return y(),$("svg",sP,dP)}var fP=ee(iP,[["render",pP],["__file","crop.vue"]]),hP={name:"DArrowLeft"},vP={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},mP=C("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),gP=[mP];function bP(e,t,o,l,r,n){return y(),$("svg",vP,gP)}var zn=ee(hP,[["render",bP],["__file","d-arrow-left.vue"]]),_P={name:"DArrowRight"},yP={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},wP=C("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),xP=[wP];function kP(e,t,o,l,r,n){return y(),$("svg",yP,xP)}var En=ee(_P,[["render",kP],["__file","d-arrow-right.vue"]]),CP={name:"DCaret"},$P={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},SP=C("path",{fill:"currentColor",d:"m512 128 288 320H224l288-320zM224 576h576L512 896 224 576z"},null,-1),zP=[SP];function EP(e,t,o,l,r,n){return y(),$("svg",$P,zP)}var MP=ee(CP,[["render",EP],["__file","d-caret.vue"]]),TP={name:"DataAnalysis"},AP={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},VP=C("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216zM832 192H192v512h640V192zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32zm160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32zm160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32z"},null,-1),OP=[VP];function PP(e,t,o,l,r,n){return y(),$("svg",AP,OP)}var LP=ee(TP,[["render",PP],["__file","data-analysis.vue"]]),IP={name:"DataBoard"},RP={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},HP=C("path",{fill:"currentColor",d:"M32 128h960v64H32z"},null,-1),NP=C("path",{fill:"currentColor",d:"M192 192v512h640V192H192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V128z"},null,-1),BP=C("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32L322.176 960zm453.888 0h-73.856L576 741.44l55.424-32L776.064 960z"},null,-1),DP=[HP,NP,BP];function FP(e,t,o,l,r,n){return y(),$("svg",RP,DP)}var jP=ee(IP,[["render",FP],["__file","data-board.vue"]]),KP={name:"DataLine"},WP={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qP=C("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192zM832 192H192v512h640V192zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"},null,-1),UP=[qP];function YP(e,t,o,l,r,n){return y(),$("svg",WP,UP)}var GP=ee(KP,[["render",YP],["__file","data-line.vue"]]),XP={name:"DeleteFilled"},JP={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ZP=C("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64h256zm64 0h192v-64H416v64zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32H192zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32zm192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32z"},null,-1),QP=[ZP];function eL(e,t,o,l,r,n){return y(),$("svg",JP,QP)}var tL=ee(XP,[["render",eL],["__file","delete-filled.vue"]]),oL={name:"DeleteLocation"},lL={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rL=C("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),nL=C("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),aL=C("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32z"},null,-1),iL=[rL,nL,aL];function sL(e,t,o,l,r,n){return y(),$("svg",lL,iL)}var cL=ee(oL,[["render",sL],["__file","delete-location.vue"]]),uL={name:"Delete"},dL={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},pL=C("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),fL=[pL];function hL(e,t,o,l,r,n){return y(),$("svg",dL,fL)}var G4=ee(uL,[["render",hL],["__file","delete.vue"]]),vL={name:"Dessert"},mL={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},gL=C("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416zm287.104-32.064h193.792a143.808 143.808 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.808 143.808 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0h140.48zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736zM384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64z"},null,-1),bL=[gL];function _L(e,t,o,l,r,n){return y(),$("svg",mL,bL)}var yL=ee(vL,[["render",_L],["__file","dessert.vue"]]),wL={name:"Discount"},xL={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},kL=C("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336V704zm0 64v128h576V768H224zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"},null,-1),CL=C("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),$L=[kL,CL];function SL(e,t,o,l,r,n){return y(),$("svg",xL,$L)}var zL=ee(wL,[["render",SL],["__file","discount.vue"]]),EL={name:"DishDot"},ML={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},TL=C("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.192 448.192 0 0 1 955.392 768H68.544A448.192 448.192 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-128h768a384 384 0 1 0-768 0zm447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256h127.68z"},null,-1),AL=[TL];function VL(e,t,o,l,r,n){return y(),$("svg",ML,AL)}var OL=ee(EL,[["render",VL],["__file","dish-dot.vue"]]),PL={name:"Dish"},LL={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},IL=C("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152zM128 704h768a384 384 0 1 0-768 0zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64z"},null,-1),RL=[IL];function HL(e,t,o,l,r,n){return y(),$("svg",LL,RL)}var NL=ee(PL,[["render",HL],["__file","dish.vue"]]),BL={name:"DocumentAdd"},DL={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},FL=C("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm320 512V448h64v128h128v64H544v128h-64V640H352v-64h128z"},null,-1),jL=[FL];function KL(e,t,o,l,r,n){return y(),$("svg",DL,jL)}var WL=ee(BL,[["render",KL],["__file","document-add.vue"]]),qL={name:"DocumentChecked"},UL={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},YL=C("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312L478.4 646.144z"},null,-1),GL=[YL];function XL(e,t,o,l,r,n){return y(),$("svg",UL,GL)}var JL=ee(qL,[["render",XL],["__file","document-checked.vue"]]),ZL={name:"DocumentCopy"},QL={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eI=C("path",{fill:"currentColor",d:"M128 320v576h576V320H128zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zM960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32zM256 672h320v64H256v-64zm0-192h320v64H256v-64z"},null,-1),tI=[eI];function oI(e,t,o,l,r,n){return y(),$("svg",QL,tI)}var lI=ee(ZL,[["render",oI],["__file","document-copy.vue"]]),rI={name:"DocumentDelete"},nI={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},aI=C("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248 90.496-90.496z"},null,-1),iI=[aI];function sI(e,t,o,l,r,n){return y(),$("svg",nI,iI)}var cI=ee(rI,[["render",sI],["__file","document-delete.vue"]]),uI={name:"DocumentRemove"},dI={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},pI=C("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm192 512h320v64H352v-64z"},null,-1),fI=[pI];function hI(e,t,o,l,r,n){return y(),$("svg",dI,fI)}var vI=ee(uI,[["render",hI],["__file","document-remove.vue"]]),mI={name:"Document"},gI={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},bI=C("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),_I=[bI];function yI(e,t,o,l,r,n){return y(),$("svg",gI,_I)}var X4=ee(mI,[["render",yI],["__file","document.vue"]]),wI={name:"Download"},xI={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},kI=C("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64v450.304z"},null,-1),CI=[kI];function $I(e,t,o,l,r,n){return y(),$("svg",xI,CI)}var SI=ee(wI,[["render",$I],["__file","download.vue"]]),zI={name:"Drizzling"},EI={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},MI=C("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480zM288 800h64v64h-64v-64zm192 0h64v64h-64v-64zm-96 96h64v64h-64v-64zm192 0h64v64h-64v-64zm96-96h64v64h-64v-64z"},null,-1),TI=[MI];function AI(e,t,o,l,r,n){return y(),$("svg",EI,TI)}var VI=ee(zI,[["render",AI],["__file","drizzling.vue"]]),OI={name:"EditPen"},PI={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},LI=C("path",{d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696L175.168 732.8zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336L104.32 708.8zm384 254.272v-64h448v64h-448z",fill:"currentColor"},null,-1),II=[LI];function RI(e,t,o,l,r,n){return y(),$("svg",PI,II)}var HI=ee(OI,[["render",RI],["__file","edit-pen.vue"]]),NI={name:"Edit"},BI={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},DI=C("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"},null,-1),FI=C("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1),jI=[DI,FI];function KI(e,t,o,l,r,n){return y(),$("svg",BI,jI)}var WI=ee(NI,[["render",KI],["__file","edit.vue"]]),qI={name:"ElemeFilled"},UI={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},YI=C("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112zm150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.688 330.688 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.552 47.552 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.304 234.304 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.552 47.552 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"},null,-1),GI=[YI];function XI(e,t,o,l,r,n){return y(),$("svg",UI,GI)}var JI=ee(qI,[["render",XI],["__file","eleme-filled.vue"]]),ZI={name:"Eleme"},QI={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eR=C("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24zm526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.232 63.232 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8l71.04-46.08z"},null,-1),tR=[eR];function oR(e,t,o,l,r,n){return y(),$("svg",QI,tR)}var lR=ee(ZI,[["render",oR],["__file","eleme.vue"]]),rR={name:"ElementPlus"},nR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},aR=C("path",{d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6c12.8-5.1 25.6-5.1 38.4 0 0 0 279 161.3 309.8 179.2 17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8zM714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4l220.1-128zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64l-2.5-38.4z",fill:"currentColor"},null,-1),iR=[aR];function sR(e,t,o,l,r,n){return y(),$("svg",nR,iR)}var cR=ee(rR,[["render",sR],["__file","element-plus.vue"]]),uR={name:"Expand"},dR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},pR=C("path",{fill:"currentColor",d:"M128 192h768v128H128V192zm0 256h512v128H128V448zm0 256h768v128H128V704zm576-352 192 160-192 128V352z"},null,-1),fR=[pR];function hR(e,t,o,l,r,n){return y(),$("svg",dR,fR)}var vR=ee(uR,[["render",hR],["__file","expand.vue"]]),mR={name:"Failed"},gR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},bR=C("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384v-64zm-320 0V96h256v96H384z"},null,-1),_R=[bR];function yR(e,t,o,l,r,n){return y(),$("svg",gR,_R)}var wR=ee(mR,[["render",yR],["__file","failed.vue"]]),xR={name:"Female"},kR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},CR=C("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),$R=C("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32z"},null,-1),SR=C("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32z"},null,-1),zR=[CR,$R,SR];function ER(e,t,o,l,r,n){return y(),$("svg",kR,zR)}var MR=ee(xR,[["render",ER],["__file","female.vue"]]),TR={name:"Files"},AR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},VR=C("path",{fill:"currentColor",d:"M128 384v448h768V384H128zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32zm64-128h704v64H160zm96-128h512v64H256z"},null,-1),OR=[VR];function PR(e,t,o,l,r,n){return y(),$("svg",AR,OR)}var LR=ee(TR,[["render",PR],["__file","files.vue"]]),IR={name:"Film"},RR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},HR=C("path",{fill:"currentColor",d:"M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"},null,-1),NR=C("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64h192z"},null,-1),BR=[HR,NR];function DR(e,t,o,l,r,n){return y(),$("svg",RR,BR)}var FR=ee(IR,[["render",DR],["__file","film.vue"]]),jR={name:"Filter"},KR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},WR=C("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288L384 523.392z"},null,-1),qR=[WR];function UR(e,t,o,l,r,n){return y(),$("svg",KR,qR)}var YR=ee(jR,[["render",UR],["__file","filter.vue"]]),GR={name:"Finished"},XR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},JR=C("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64H736zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64H608zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64H480z"},null,-1),ZR=[JR];function QR(e,t,o,l,r,n){return y(),$("svg",XR,ZR)}var eH=ee(GR,[["render",QR],["__file","finished.vue"]]),tH={name:"FirstAidKit"},oH={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},lH=C("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64H192zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128z"},null,-1),rH=C("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0v96zM352 128v64h320v-64H352zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),nH=[lH,rH];function aH(e,t,o,l,r,n){return y(),$("svg",oH,nH)}var iH=ee(tH,[["render",aH],["__file","first-aid-kit.vue"]]),sH={name:"Flag"},cH={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},uH=C("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96v64z"},null,-1),dH=[uH];function pH(e,t,o,l,r,n){return y(),$("svg",cH,dH)}var fH=ee(sH,[["render",pH],["__file","flag.vue"]]),hH={name:"Fold"},vH={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},mH=C("path",{fill:"currentColor",d:"M896 192H128v128h768V192zm0 256H384v128h512V448zm0 256H128v128h768V704zM320 384 128 512l192 128V384z"},null,-1),gH=[mH];function bH(e,t,o,l,r,n){return y(),$("svg",vH,gH)}var _H=ee(hH,[["render",bH],["__file","fold.vue"]]),yH={name:"FolderAdd"},wH={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},xH=C("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm384 416V416h64v128h128v64H544v128h-64V608H352v-64h128z"},null,-1),kH=[xH];function CH(e,t,o,l,r,n){return y(),$("svg",wH,kH)}var $H=ee(yH,[["render",CH],["__file","folder-add.vue"]]),SH={name:"FolderChecked"},zH={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},EH=C("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312L510.08 630.144z"},null,-1),MH=[EH];function TH(e,t,o,l,r,n){return y(),$("svg",zH,MH)}var AH=ee(SH,[["render",TH],["__file","folder-checked.vue"]]),VH={name:"FolderDelete"},OH={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},PH=C("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248L466.752 576z"},null,-1),LH=[PH];function IH(e,t,o,l,r,n){return y(),$("svg",OH,LH)}var RH=ee(VH,[["render",IH],["__file","folder-delete.vue"]]),HH={name:"FolderOpened"},NH={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},BH=C("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"},null,-1),DH=[BH];function FH(e,t,o,l,r,n){return y(),$("svg",NH,DH)}var jH=ee(HH,[["render",FH],["__file","folder-opened.vue"]]),KH={name:"FolderRemove"},WH={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qH=C("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm256 416h320v64H352v-64z"},null,-1),UH=[qH];function YH(e,t,o,l,r,n){return y(),$("svg",WH,UH)}var GH=ee(KH,[["render",YH],["__file","folder-remove.vue"]]),XH={name:"Folder"},JH={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ZH=C("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32z"},null,-1),QH=[ZH];function eN(e,t,o,l,r,n){return y(),$("svg",JH,QH)}var tN=ee(XH,[["render",eN],["__file","folder.vue"]]),oN={name:"Food"},lN={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rN=C("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0zm128 0h192a96 96 0 0 0-192 0zm439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352zM672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32v-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288z"},null,-1),nN=[rN];function aN(e,t,o,l,r,n){return y(),$("svg",lN,nN)}var iN=ee(oN,[["render",aN],["__file","food.vue"]]),sN={name:"Football"},cN={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},uN=C("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896zm0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768z"},null,-1),dN=C("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a385.984 385.984 0 0 1-80.448-91.648zm653.696-5.312a385.92 385.92 0 0 1-83.776 96.96l-32.512-56.384a322.923 322.923 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184zM465.984 445.248l11.136-63.104a323.584 323.584 0 0 0 69.76 0l11.136 63.104a387.968 387.968 0 0 1-92.032 0zm-62.72-12.8A381.824 381.824 0 0 1 320 396.544l32-55.424a319.885 319.885 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.824 381.824 0 0 1-83.328 35.84l-11.2-63.552A319.885 319.885 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.92 385.92 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072zm657.536.128a1442.759 1442.759 0 0 1-49.024 43.072 321.408 321.408 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408zM465.92 578.752a387.968 387.968 0 0 1 92.032 0l-11.136 63.104a323.584 323.584 0 0 0-69.76 0l-11.136-63.104zm-62.72 12.8 11.2 63.552a319.885 319.885 0 0 0-62.464 27.712L320 627.392a381.824 381.824 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.272 318.272 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"},null,-1),pN=[uN,dN];function fN(e,t,o,l,r,n){return y(),$("svg",cN,pN)}var hN=ee(sN,[["render",fN],["__file","football.vue"]]),vN={name:"ForkSpoon"},mN={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},gN=C("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56zM672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0V572.48zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192z"},null,-1),bN=[gN];function _N(e,t,o,l,r,n){return y(),$("svg",mN,bN)}var yN=ee(vN,[["render",_N],["__file","fork-spoon.vue"]]),wN={name:"Fries"},xN={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},kN=C("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096V224zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160h37.12zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.744 95.744 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160h-16zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128.128 128.128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132.405 132.405 0 0 1 672 510.464V512h-1.216zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480V288zm-128 96V224a32 32 0 0 0-64 0v160h64-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704H253.12z"},null,-1),CN=[kN];function $N(e,t,o,l,r,n){return y(),$("svg",xN,CN)}var SN=ee(wN,[["render",$N],["__file","fries.vue"]]),zN={name:"FullScreen"},EN={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},MN=C("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),TN=[MN];function AN(e,t,o,l,r,n){return y(),$("svg",EN,TN)}var J4=ee(zN,[["render",AN],["__file","full-screen.vue"]]),VN={name:"GobletFull"},ON={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},PN=C("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320zm503.936 64H264.064a256.128 256.128 0 0 0 495.872 0zM544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4z"},null,-1),LN=[PN];function IN(e,t,o,l,r,n){return y(),$("svg",ON,LN)}var RN=ee(VN,[["render",IN],["__file","goblet-full.vue"]]),HN={name:"GobletSquareFull"},NN={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},BN=C("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256v142.912zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952.32 952.32 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848z"},null,-1),DN=[BN];function FN(e,t,o,l,r,n){return y(),$("svg",NN,DN)}var jN=ee(HN,[["render",FN],["__file","goblet-square-full.vue"]]),KN={name:"GobletSquare"},WN={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qN=C("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912zM256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256v191.68z"},null,-1),UN=[qN];function YN(e,t,o,l,r,n){return y(),$("svg",WN,UN)}var GN=ee(KN,[["render",YN],["__file","goblet-square.vue"]]),XN={name:"Goblet"},JN={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ZN=C("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4zM256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320z"},null,-1),QN=[ZN];function eB(e,t,o,l,r,n){return y(),$("svg",JN,QN)}var tB=ee(XN,[["render",eB],["__file","goblet.vue"]]),oB={name:"GoldMedal"},lB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",style:{"enable-background":"new 0 0 1024 1024"},"xml:space":"preserve"},rB=C("path",{d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16zM640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128h.01zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a359.844 359.844 0 0 0-32.36 4.79V128h128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128H384zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98z",fill:"currentColor"},null,-1),nB=C("path",{d:"M544 480H416v64h64v192h-64v64h192v-64h-64z",fill:"currentColor"},null,-1),aB=[rB,nB];function iB(e,t,o,l,r,n){return y(),$("svg",lB,aB)}var sB=ee(oB,[["render",iB],["__file","gold-medal.vue"]]),cB={name:"GoodsFilled"},uB={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},dB=C("path",{fill:"currentColor",d:"M192 352h640l64 544H128l64-544zm128 224h64V448h-64v128zm320 0h64V448h-64v128zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0z"},null,-1),pB=[dB];function fB(e,t,o,l,r,n){return y(),$("svg",uB,pB)}var hB=ee(cB,[["render",fB],["__file","goods-filled.vue"]]),vB={name:"Goods"},mB={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},gB=C("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96z"},null,-1),bB=[gB];function _B(e,t,o,l,r,n){return y(),$("svg",mB,bB)}var yB=ee(vB,[["render",_B],["__file","goods.vue"]]),wB={name:"Grape"},xB={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},kB=C("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64v67.2zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192z"},null,-1),CB=[kB];function $B(e,t,o,l,r,n){return y(),$("svg",xB,CB)}var SB=ee(wB,[["render",$B],["__file","grape.vue"]]),zB={name:"Grid"},EB={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},MB=C("path",{fill:"currentColor",d:"M640 384v256H384V384h256zm64 0h192v256H704V384zm-64 512H384V704h256v192zm64 0V704h192v192H704zm-64-768v192H384V128h256zm64 0h192v192H704V128zM320 384v256H128V384h192zm0 512H128V704h192v192zm0-768v192H128V128h192z"},null,-1),TB=[MB];function AB(e,t,o,l,r,n){return y(),$("svg",EB,TB)}var VB=ee(zB,[["render",AB],["__file","grid.vue"]]),OB={name:"Guide"},PB={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},LB=C("path",{fill:"currentColor",d:"M640 608h-64V416h64v192zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768h64zM384 608V416h64v192h-64zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32v160z"},null,-1),IB=C("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192zm678.784 496-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"},null,-1),RB=[LB,IB];function HB(e,t,o,l,r,n){return y(),$("svg",PB,RB)}var NB=ee(OB,[["render",HB],["__file","guide.vue"]]),BB={name:"Handbag"},DB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",style:{"enable-background":"new 0 0 1024 1024"},"xml:space":"preserve"},FB=C("path",{d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01zM421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5zM832 896H192V320h128v128h64V320h256v128h64V320h128v576z",fill:"currentColor"},null,-1),jB=[FB];function KB(e,t,o,l,r,n){return y(),$("svg",DB,jB)}var WB=ee(BB,[["render",KB],["__file","handbag.vue"]]),qB={name:"Headset"},UB={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},YB=C("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848zM896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0V640zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0z"},null,-1),GB=[YB];function XB(e,t,o,l,r,n){return y(),$("svg",UB,GB)}var JB=ee(qB,[["render",XB],["__file","headset.vue"]]),ZB={name:"HelpFilled"},QB={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eD=C("path",{fill:"currentColor",d:"M926.784 480H701.312A192.512 192.512 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480zm0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.512 192.512 0 0 0 701.312 544h225.472zM97.28 544h225.472A192.512 192.512 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.512 192.512 0 0 0 322.688 480H97.216z"},null,-1),tD=[eD];function oD(e,t,o,l,r,n){return y(),$("svg",QB,tD)}var lD=ee(ZB,[["render",oD],["__file","help-filled.vue"]]),rD={name:"Help"},nD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},aD=C("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.912 254.912 0 0 1 512 768a254.912 254.912 0 0 1-156.992-53.76l-90.944 91.008A382.464 382.464 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752zm45.312-45.312A382.464 382.464 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512c0 59.136-20.096 113.6-53.76 156.992l91.008 90.944zm-45.312-541.184A382.464 382.464 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.912 254.912 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76l90.944-91.008zm-541.184 45.312A382.464 382.464 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.912 254.912 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992l-91.008-90.944zm417.28 394.496a194.56 194.56 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.232 191.232 0 0 0-67.968-146.56A191.296 191.296 0 0 0 512 320a191.232 191.232 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.232 191.232 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),iD=[aD];function sD(e,t,o,l,r,n){return y(),$("svg",nD,iD)}var cD=ee(rD,[["render",sD],["__file","help.vue"]]),uD={name:"Hide"},dD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},pD=C("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),fD=C("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1),hD=[pD,fD];function vD(e,t,o,l,r,n){return y(),$("svg",dD,hD)}var Z4=ee(uD,[["render",vD],["__file","hide.vue"]]),mD={name:"Histogram"},gD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},bD=C("path",{fill:"currentColor",d:"M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"},null,-1),_D=[bD];function yD(e,t,o,l,r,n){return y(),$("svg",gD,_D)}var wD=ee(mD,[["render",yD],["__file","histogram.vue"]]),xD={name:"HomeFilled"},kD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},CD=C("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"},null,-1),$D=[CD];function SD(e,t,o,l,r,n){return y(),$("svg",kD,$D)}var zD=ee(xD,[["render",SD],["__file","home-filled.vue"]]),ED={name:"HotWater"},MD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},TD=C("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067v68.267zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2H273.067zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134zM512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133zM375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133zm273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133zM170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267z"},null,-1),AD=[TD];function VD(e,t,o,l,r,n){return y(),$("svg",MD,AD)}var OD=ee(ED,[["render",VD],["__file","hot-water.vue"]]),PD={name:"House"},LD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ID=C("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328 192 413.952zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576z"},null,-1),RD=[ID];function HD(e,t,o,l,r,n){return y(),$("svg",LD,RD)}var ND=ee(PD,[["render",HD],["__file","house.vue"]]),BD={name:"IceCreamRound"},DD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},FD=C("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248L398.848 670.4zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0z"},null,-1),jD=[FD];function KD(e,t,o,l,r,n){return y(),$("svg",DD,jD)}var WD=ee(BD,[["render",KD],["__file","ice-cream-round.vue"]]),qD={name:"IceCreamSquare"},UD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},YD=C("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32h64zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96h-64zm-64 0h-64v160a32 32 0 1 0 64 0V704z"},null,-1),GD=[YD];function XD(e,t,o,l,r,n){return y(),$("svg",UD,GD)}var JD=ee(qD,[["render",XD],["__file","ice-cream-square.vue"]]),ZD={name:"IceCream"},QD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eF=C("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.128 208.128 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448h.64zm64.256 0h286.208a144 144 0 0 0-286.208 0zm351.36 0h286.272a144 144 0 0 0-286.272 0zm-294.848 64 271.808 396.608L778.24 512H249.408zM511.68 352.64a207.872 207.872 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56z"},null,-1),tF=[eF];function oF(e,t,o,l,r,n){return y(),$("svg",QD,tF)}var lF=ee(ZD,[["render",oF],["__file","ice-cream.vue"]]),rF={name:"IceDrink"},nF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},aF=C("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128H512zm-64 0H256.256l16.064 128H448V448zm64-255.36V384h247.744A256.128 256.128 0 0 0 512 192.64zm-64 8.064A256.448 256.448 0 0 0 264.256 384H448V200.704zm64-72.064A320.128 320.128 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.384 320.384 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32v32.64zM743.68 640H280.32l32.128 256h399.104l32.128-256z"},null,-1),iF=[aF];function sF(e,t,o,l,r,n){return y(),$("svg",nF,iF)}var cF=ee(rF,[["render",sF],["__file","ice-drink.vue"]]),uF={name:"IceTea"},dF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},pF=C("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352zM264.064 256h495.872a256.128 256.128 0 0 0-495.872 0zm495.424 256H264.512l48 384h398.976l48-384zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32zm160 192h64v64h-64v-64zm192 64h64v64h-64v-64zm-128 64h64v64h-64v-64zm64-192h64v64h-64v-64z"},null,-1),fF=[pF];function hF(e,t,o,l,r,n){return y(),$("svg",dF,fF)}var vF=ee(uF,[["render",hF],["__file","ice-tea.vue"]]),mF={name:"InfoFilled"},gF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},bF=C("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),_F=[bF];function yF(e,t,o,l,r,n){return y(),$("svg",gF,_F)}var wu=ee(mF,[["render",yF],["__file","info-filled.vue"]]),wF={name:"Iphone"},xF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},kF=C("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768H224zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64v544zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96H256zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0z"},null,-1),CF=[kF];function $F(e,t,o,l,r,n){return y(),$("svg",xF,CF)}var SF=ee(wF,[["render",$F],["__file","iphone.vue"]]),zF={name:"Key"},EF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},MF=C("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064zM512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384z"},null,-1),TF=[MF];function AF(e,t,o,l,r,n){return y(),$("svg",EF,TF)}var VF=ee(zF,[["render",AF],["__file","key.vue"]]),OF={name:"KnifeFork"},PF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},LF=C("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56zm384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256 21.312 81.152 32 177.152 32 288H640z"},null,-1),IF=[LF];function RF(e,t,o,l,r,n){return y(),$("svg",PF,IF)}var HF=ee(OF,[["render",RF],["__file","knife-fork.vue"]]),NF={name:"Lightning"},BF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},DF=C("path",{fill:"currentColor",d:"M288 671.36v64.128A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"},null,-1),FF=C("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736H416z"},null,-1),jF=[DF,FF];function KF(e,t,o,l,r,n){return y(),$("svg",BF,jF)}var WF=ee(NF,[["render",KF],["__file","lightning.vue"]]),qF={name:"Link"},UF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},YF=C("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496 45.248 45.248zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152 625.152 353.6z"},null,-1),GF=[YF];function XF(e,t,o,l,r,n){return y(),$("svg",UF,GF)}var JF=ee(qF,[["render",XF],["__file","link.vue"]]),ZF={name:"List"},QF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ej=C("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384v-64zM288 512h448v-64H288v64zm0 256h448v-64H288v64zm96-576V96h256v96H384z"},null,-1),tj=[ej];function oj(e,t,o,l,r,n){return y(),$("svg",QF,tj)}var lj=ee(ZF,[["render",oj],["__file","list.vue"]]),rj={name:"Loading"},nj={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},aj=C("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),ij=[aj];function sj(e,t,o,l,r,n){return y(),$("svg",nj,ij)}var vr=ee(rj,[["render",sj],["__file","loading.vue"]]),cj={name:"LocationFilled"},uj={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},dj=C("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928zm0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6z"},null,-1),pj=[dj];function fj(e,t,o,l,r,n){return y(),$("svg",uj,pj)}var hj=ee(cj,[["render",fj],["__file","location-filled.vue"]]),vj={name:"LocationInformation"},mj={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},gj=C("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),bj=C("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),_j=C("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320z"},null,-1),yj=[gj,bj,_j];function wj(e,t,o,l,r,n){return y(),$("svg",mj,yj)}var xj=ee(vj,[["render",wj],["__file","location-information.vue"]]),kj={name:"Location"},Cj={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$j=C("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),Sj=C("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320z"},null,-1),zj=[$j,Sj];function Ej(e,t,o,l,r,n){return y(),$("svg",Cj,zj)}var Mj=ee(kj,[["render",Ej],["__file","location.vue"]]),Tj={name:"Lock"},Aj={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Vj=C("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32H224zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96z"},null,-1),Oj=C("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32zm192-160v-64a192 192 0 1 0-384 0v64h384zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64z"},null,-1),Pj=[Vj,Oj];function Lj(e,t,o,l,r,n){return y(),$("svg",Aj,Pj)}var Ij=ee(Tj,[["render",Lj],["__file","lock.vue"]]),Rj={name:"Lollipop"},Hj={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Nj=C("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0h1.28zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696zm105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"},null,-1),Bj=[Nj];function Dj(e,t,o,l,r,n){return y(),$("svg",Hj,Bj)}var Fj=ee(Rj,[["render",Dj],["__file","lollipop.vue"]]),jj={name:"MagicStick"},Kj={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Wj=C("path",{fill:"currentColor",d:"M512 64h64v192h-64V64zm0 576h64v192h-64V640zM160 480v-64h192v64H160zm576 0v-64h192v64H736zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248L657.152 606.4zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248-316.8 316.8zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248L702.4 334.848z"},null,-1),qj=[Wj];function Uj(e,t,o,l,r,n){return y(),$("svg",Kj,qj)}var Yj=ee(jj,[["render",Uj],["__file","magic-stick.vue"]]),Gj={name:"Magnet"},Xj={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Jj=C("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64h128zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0z"},null,-1),Zj=[Jj];function Qj(e,t,o,l,r,n){return y(),$("svg",Xj,Zj)}var eK=ee(Gj,[["render",Qj],["__file","magnet.vue"]]),tK={name:"Male"},oK={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},lK=C("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450zm0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5zm253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125z"},null,-1),rK=C("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125z"},null,-1),nK=C("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"},null,-1),aK=[lK,rK,nK];function iK(e,t,o,l,r,n){return y(),$("svg",oK,aK)}var sK=ee(tK,[["render",iK],["__file","male.vue"]]),cK={name:"Management"},uK={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},dK=C("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128h256zm-448 0h128v768H128V128z"},null,-1),pK=[dK];function fK(e,t,o,l,r,n){return y(),$("svg",uK,pK)}var hK=ee(cK,[["render",fK],["__file","management.vue"]]),vK={name:"MapLocation"},mK={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},gK=C("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),bK=C("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256zm345.6 192L960 960H672v-64H352v64H64l102.4-256h691.2zm-68.928 0H235.328l-76.8 192h706.944l-76.8-192z"},null,-1),_K=[gK,bK];function yK(e,t,o,l,r,n){return y(),$("svg",mK,_K)}var wK=ee(vK,[["render",yK],["__file","map-location.vue"]]),xK={name:"Medal"},kK={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},CK=C("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),$K=C("path",{fill:"currentColor",d:"M576 128H448v200a286.72 286.72 0 0 1 64-8c19.52 0 40.832 2.688 64 8V128zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128H640zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92V128zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96-56.896 0-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64z"},null,-1),SK=[CK,$K];function zK(e,t,o,l,r,n){return y(),$("svg",kK,SK)}var EK=ee(xK,[["render",zK],["__file","medal.vue"]]),MK={name:"Memo"},TK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",style:{"enable-background":"new 0 0 1024 1024"},"xml:space":"preserve"},AK=C("path",{d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32z",fill:"currentColor"},null,-1),VK=C("path",{d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01zM192 896V128h96v768h-96zm640 0H352V128h480v768z",fill:"currentColor"},null,-1),OK=C("path",{d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32zm0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32z",fill:"currentColor"},null,-1),PK=[AK,VK,OK];function LK(e,t,o,l,r,n){return y(),$("svg",TK,PK)}var IK=ee(MK,[["render",LK],["__file","memo.vue"]]),RK={name:"Menu"},HK={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},NK=C("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32H160zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32H608zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32H160zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32H608z"},null,-1),BK=[NK];function DK(e,t,o,l,r,n){return y(),$("svg",HK,BK)}var FK=ee(RK,[["render",DK],["__file","menu.vue"]]),jK={name:"MessageBox"},KK={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},WK=C("path",{fill:"currentColor",d:"M288 384h448v64H288v-64zm96-128h256v64H384v-64zM131.456 512H384v128h256V512h252.544L721.856 192H302.144L131.456 512zM896 576H704v128H320V576H128v256h768V576zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128z"},null,-1),qK=[WK];function UK(e,t,o,l,r,n){return y(),$("svg",KK,qK)}var YK=ee(jK,[["render",UK],["__file","message-box.vue"]]),GK={name:"Message"},XK={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},JK=C("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224H128zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64z"},null,-1),ZK=C("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224h784zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056z"},null,-1),QK=[JK,ZK];function eW(e,t,o,l,r,n){return y(),$("svg",XK,QK)}var tW=ee(GK,[["render",eW],["__file","message.vue"]]),oW={name:"Mic"},lW={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rW=C("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64h96zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128h-96z"},null,-1),nW=[rW];function aW(e,t,o,l,r,n){return y(),$("svg",lW,nW)}var iW=ee(oW,[["render",aW],["__file","mic.vue"]]),sW={name:"Microphone"},cW={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},uW=C("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128zm0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64zm-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64z"},null,-1),dW=[uW];function pW(e,t,o,l,r,n){return y(),$("svg",cW,dW)}var fW=ee(sW,[["render",pW],["__file","microphone.vue"]]),hW={name:"MilkTea"},vW={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},mW=C("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128h192zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320H276.48zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64zm493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12z"},null,-1),gW=[mW];function bW(e,t,o,l,r,n){return y(),$("svg",vW,gW)}var _W=ee(hW,[["render",bW],["__file","milk-tea.vue"]]),yW={name:"Minus"},wW={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},xW=C("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),kW=[xW];function CW(e,t,o,l,r,n){return y(),$("svg",wW,kW)}var Q4=ee(yW,[["render",CW],["__file","minus.vue"]]),$W={name:"Money"},SW={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},zW=C("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640h64z"},null,-1),EW=C("path",{fill:"currentColor",d:"M768 192H128v448h640V192zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.056 29.056 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"},null,-1),MW=C("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320zm0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192z"},null,-1),TW=[zW,EW,MW];function AW(e,t,o,l,r,n){return y(),$("svg",SW,TW)}var VW=ee($W,[["render",AW],["__file","money.vue"]]),OW={name:"Monitor"},PW={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},LW=C("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H544zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H192z"},null,-1),IW=[LW];function RW(e,t,o,l,r,n){return y(),$("svg",PW,IW)}var HW=ee(OW,[["render",RW],["__file","monitor.vue"]]),NW={name:"MoonNight"},BW={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},DW=C("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.256 448.256 0 0 1 384 512zM171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"},null,-1),FW=C("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"},null,-1),jW=[DW,FW];function KW(e,t,o,l,r,n){return y(),$("svg",BW,jW)}var WW=ee(NW,[["render",KW],["__file","moon-night.vue"]]),qW={name:"Moon"},UW={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},YW=C("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696z"},null,-1),GW=[YW];function XW(e,t,o,l,r,n){return y(),$("svg",UW,GW)}var JW=ee(qW,[["render",XW],["__file","moon.vue"]]),ZW={name:"MoreFilled"},QW={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eq=C("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),tq=[eq];function oq(e,t,o,l,r,n){return y(),$("svg",QW,tq)}var _0=ee(ZW,[["render",oq],["__file","more-filled.vue"]]),lq={name:"More"},rq={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},nq=C("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),aq=[nq];function iq(e,t,o,l,r,n){return y(),$("svg",rq,aq)}var em=ee(lq,[["render",iq],["__file","more.vue"]]),sq={name:"MostlyCloudy"},cq={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},uq=C("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.808 207.808 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048zm15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.808 271.808 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72z"},null,-1),dq=[uq];function pq(e,t,o,l,r,n){return y(),$("svg",cq,dq)}var fq=ee(sq,[["render",pq],["__file","mostly-cloudy.vue"]]),hq={name:"Mouse"},vq={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},mq=C("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112-20.096 10.752-35.52 26.176-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76 10.752 20.096 26.176 35.52 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112 20.096-10.752 35.52-26.176 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.464 110.464 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256H438.144zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.464 174.464 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.464 174.464 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.464 174.464 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"},null,-1),gq=C("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32zm32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96v64z"},null,-1),bq=[mq,gq];function _q(e,t,o,l,r,n){return y(),$("svg",vq,bq)}var yq=ee(hq,[["render",_q],["__file","mouse.vue"]]),wq={name:"Mug"},xq={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},kq=C("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64zm64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v128zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32H800z"},null,-1),Cq=[kq];function $q(e,t,o,l,r,n){return y(),$("svg",xq,Cq)}var Sq=ee(wq,[["render",$q],["__file","mug.vue"]]),zq={name:"MuteNotification"},Eq={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Mq=C("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64H241.216zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.128 320.128 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.552 319.552 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0z"},null,-1),Tq=C("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"},null,-1),Aq=[Mq,Tq];function Vq(e,t,o,l,r,n){return y(),$("svg",Eq,Aq)}var Oq=ee(zq,[["render",Vq],["__file","mute-notification.vue"]]),Pq={name:"Mute"},Lq={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Iq=C("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.232 191.232 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128zm51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528l47.808-47.808zM314.88 779.968l46.144-46.08A222.976 222.976 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032zM266.752 737.6A286.976 286.976 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288L266.752 737.6z"},null,-1),Rq=C("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"},null,-1),Hq=[Iq,Rq];function Nq(e,t,o,l,r,n){return y(),$("svg",Lq,Hq)}var Bq=ee(Pq,[["render",Nq],["__file","mute.vue"]]),Dq={name:"NoSmoking"},Fq={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},jq=C("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256l-64 64zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744l64-64zM768 576v128h128V576H768zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"},null,-1),Kq=[jq];function Wq(e,t,o,l,r,n){return y(),$("svg",Fq,Kq)}var qq=ee(Dq,[["render",Wq],["__file","no-smoking.vue"]]),Uq={name:"Notebook"},Yq={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Gq=C("path",{fill:"currentColor",d:"M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),Xq=C("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"},null,-1),Jq=[Gq,Xq];function Zq(e,t,o,l,r,n){return y(),$("svg",Yq,Jq)}var Qq=ee(Uq,[["render",Zq],["__file","notebook.vue"]]),eU={name:"Notification"},tU={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},oU=C("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128h256z"},null,-1),lU=C("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z"},null,-1),rU=[oU,lU];function nU(e,t,o,l,r,n){return y(),$("svg",tU,rU)}var aU=ee(eU,[["render",nU],["__file","notification.vue"]]),iU={name:"Odometer"},sU={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},cU=C("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),uU=C("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0z"},null,-1),dU=C("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928z"},null,-1),pU=[cU,uU,dU];function fU(e,t,o,l,r,n){return y(),$("svg",sU,pU)}var hU=ee(iU,[["render",fU],["__file","odometer.vue"]]),vU={name:"OfficeBuilding"},mU={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},gU=C("path",{fill:"currentColor",d:"M192 128v704h384V128H192zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),bU=C("path",{fill:"currentColor",d:"M256 256h256v64H256v-64zm0 192h256v64H256v-64zm0 192h256v64H256v-64zm384-128h128v64H640v-64zm0 128h128v64H640v-64zM64 832h896v64H64v-64z"},null,-1),_U=C("path",{fill:"currentColor",d:"M640 384v448h192V384H640zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32z"},null,-1),yU=[gU,bU,_U];function wU(e,t,o,l,r,n){return y(),$("svg",mU,yU)}var xU=ee(vU,[["render",wU],["__file","office-building.vue"]]),kU={name:"Open"},CU={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$U=C("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724H329.956zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"},null,-1),SU=C("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454zm0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088z"},null,-1),zU=[$U,SU];function EU(e,t,o,l,r,n){return y(),$("svg",CU,zU)}var MU=ee(kU,[["render",EU],["__file","open.vue"]]),TU={name:"Operation"},AU={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},VU=C("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64h261.44zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64h453.44zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64h133.44z"},null,-1),OU=[VU];function PU(e,t,o,l,r,n){return y(),$("svg",AU,OU)}var LU=ee(TU,[["render",PU],["__file","operation.vue"]]),IU={name:"Opportunity"},RU={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},HU=C("path",{fill:"currentColor",d:"M384 960v-64h192.064v64H384zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416zm-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288h64z"},null,-1),NU=[HU];function BU(e,t,o,l,r,n){return y(),$("svg",RU,NU)}var DU=ee(IU,[["render",BU],["__file","opportunity.vue"]]),FU={name:"Orange"},jU={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},KU=C("path",{fill:"currentColor",d:"M544 894.72a382.336 382.336 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.336 382.336 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024l182.976 182.912zM894.656 480a382.336 382.336 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024h258.688zm-134.72-261.248A382.336 382.336 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696l182.912-182.976zM480 129.344a382.336 382.336 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696V129.344zm-261.248 134.72A382.336 382.336 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024L218.752 264.064zM129.344 544a382.336 382.336 0 0 0 89.408 215.936l182.976-182.912A127.232 127.232 0 0 1 388.032 544H129.344zm134.72 261.248A382.336 382.336 0 0 0 480 894.656V635.968a127.232 127.232 0 0 1-33.024-13.696L264.064 805.248zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896zm0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128z"},null,-1),WU=[KU];function qU(e,t,o,l,r,n){return y(),$("svg",jU,WU)}var UU=ee(FU,[["render",qU],["__file","orange.vue"]]),YU={name:"Paperclip"},GU={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},XU=C("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"},null,-1),JU=[XU];function ZU(e,t,o,l,r,n){return y(),$("svg",GU,JU)}var QU=ee(YU,[["render",ZU],["__file","paperclip.vue"]]),eY={name:"PartlyCloudy"},tY={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},oY=C("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872zm-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"},null,-1),lY=C("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6003.84 6003.84 0 0 0-49.28 41.408z"},null,-1),rY=[oY,lY];function nY(e,t,o,l,r,n){return y(),$("svg",tY,rY)}var aY=ee(eY,[["render",nY],["__file","partly-cloudy.vue"]]),iY={name:"Pear"},sY={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},cY=C("path",{fill:"currentColor",d:"M542.336 258.816a443.255 443.255 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.688 162.688 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.688 162.688 0 0 0-130.112-133.12zm-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a316.608 316.608 0 0 0-9.792 15.104 226.688 226.688 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"},null,-1),uY=[cY];function dY(e,t,o,l,r,n){return y(),$("svg",sY,uY)}var pY=ee(iY,[["render",dY],["__file","pear.vue"]]),fY={name:"PhoneFilled"},hY={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},vY=C("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048z"},null,-1),mY=[vY];function gY(e,t,o,l,r,n){return y(),$("svg",hY,mY)}var bY=ee(fY,[["render",gY],["__file","phone-filled.vue"]]),_Y={name:"Phone"},yY={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},wY=C("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472L139.84 402.304zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192zm0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384z"},null,-1),xY=[wY];function kY(e,t,o,l,r,n){return y(),$("svg",yY,xY)}var CY=ee(_Y,[["render",kY],["__file","phone.vue"]]),$Y={name:"PictureFilled"},SY={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},zY=C("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),EY=[zY];function MY(e,t,o,l,r,n){return y(),$("svg",SY,EY)}var tm=ee($Y,[["render",MY],["__file","picture-filled.vue"]]),TY={name:"PictureRounded"},AY={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},VY=C("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768zm0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896z"},null,-1),OY=C("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"},null,-1),PY=[VY,OY];function LY(e,t,o,l,r,n){return y(),$("svg",AY,PY)}var IY=ee(TY,[["render",LY],["__file","picture-rounded.vue"]]),RY={name:"Picture"},HY={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},NY=C("path",{fill:"currentColor",d:"M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"},null,-1),BY=C("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952L185.408 876.992z"},null,-1),DY=[NY,BY];function FY(e,t,o,l,r,n){return y(),$("svg",HY,DY)}var jY=ee(RY,[["render",FY],["__file","picture.vue"]]),KY={name:"PieChart"},WY={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qY=C("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.128 384.128 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.128 448.128 0 0 1 448 68.48z"},null,-1),UY=C("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28zM512 64V33.152A448 448 0 0 1 990.848 512H512V64z"},null,-1),YY=[qY,UY];function GY(e,t,o,l,r,n){return y(),$("svg",WY,YY)}var XY=ee(KY,[["render",GY],["__file","pie-chart.vue"]]),JY={name:"Place"},ZY={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},QY=C("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1),eG=C("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32z"},null,-1),tG=C("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912z"},null,-1),oG=[QY,eG,tG];function lG(e,t,o,l,r,n){return y(),$("svg",ZY,oG)}var rG=ee(JY,[["render",lG],["__file","place.vue"]]),nG={name:"Platform"},aG={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},iG=C("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64h192zM128 704V128h768v576H128z"},null,-1),sG=[iG];function cG(e,t,o,l,r,n){return y(),$("svg",aG,sG)}var uG=ee(nG,[["render",cG],["__file","platform.vue"]]),dG={name:"Plus"},pG={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},fG=C("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),hG=[fG];function vG(e,t,o,l,r,n){return y(),$("svg",pG,hG)}var bp=ee(dG,[["render",vG],["__file","plus.vue"]]),mG={name:"Pointer"},gG={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},bG=C("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.272 94.272 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128zM359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.272 158.272 0 0 1 185.984 8.32L359.04 556.8z"},null,-1),_G=[bG];function yG(e,t,o,l,r,n){return y(),$("svg",gG,_G)}var wG=ee(mG,[["render",yG],["__file","pointer.vue"]]),xG={name:"Position"},kG={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},CG=C("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"},null,-1),$G=[CG];function SG(e,t,o,l,r,n){return y(),$("svg",kG,$G)}var zG=ee(xG,[["render",SG],["__file","position.vue"]]),EG={name:"Postcard"},MG={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},TG=C("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32H160zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96z"},null,-1),AG=C("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128zM288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32zm0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),VG=[TG,AG];function OG(e,t,o,l,r,n){return y(),$("svg",MG,VG)}var PG=ee(EG,[["render",OG],["__file","postcard.vue"]]),LG={name:"Pouring"},IG={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},RG=C("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480zM224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32z"},null,-1),HG=[RG];function NG(e,t,o,l,r,n){return y(),$("svg",IG,HG)}var BG=ee(LG,[["render",NG],["__file","pouring.vue"]]),DG={name:"Present"},FG={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},jG=C("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576h288zm64 0h288V320H544v256h288v64H544v256zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V256z"},null,-1),KG=C("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"},null,-1),WG=C("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),qG=C("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),UG=[jG,KG,WG,qG];function YG(e,t,o,l,r,n){return y(),$("svg",FG,UG)}var GG=ee(DG,[["render",YG],["__file","present.vue"]]),XG={name:"PriceTag"},JG={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ZG=C("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"},null,-1),QG=C("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),eX=[ZG,QG];function tX(e,t,o,l,r,n){return y(),$("svg",JG,eX)}var oX=ee(XG,[["render",tX],["__file","price-tag.vue"]]),lX={name:"Printer"},rX={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},nX=C("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256V768zm64-192v320h384V576H320zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704h128zm64-448h384V128H320v128zm-64 128h64v64h-64v-64zm128 0h64v64h-64v-64z"},null,-1),aX=[nX];function iX(e,t,o,l,r,n){return y(),$("svg",rX,aX)}var sX=ee(lX,[["render",iX],["__file","printer.vue"]]),cX={name:"Promotion"},uX={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},dX=C("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472 64 448zm256 512V657.024L512 768 320 960z"},null,-1),pX=[dX];function fX(e,t,o,l,r,n){return y(),$("svg",uX,pX)}var hX=ee(cX,[["render",fX],["__file","promotion.vue"]]),vX={name:"QuartzWatch"},mX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",style:{"enable-background":"new 0 0 1024 1024"},"xml:space":"preserve"},gX=C("path",{d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51-8.67.32-16.17 3.66-22.5 10.02-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5c3.01-11.65.51-22.15-7.49-31.49v-.01zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.67 8.99-23.01zm6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01-.32-8.67-3.66-16.16-10.02-22.5-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01 3.35 11.99 10.85 19.49 22.5 22.5zm242.94 0c11.67-3.03 19.01-10.37 22.02-22.02 3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5c-6.36 6.34-9.7 13.84-10.02 22.5-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49zM512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99zm183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01z",fill:"currentColor"},null,-1),bX=C("path",{d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5zM416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68V128zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68V896zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768z",fill:"currentColor"},null,-1),_X=C("path",{d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01 0 9.35 3 17.02 8.99 23.01 6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01 0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99zm112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02z",fill:"currentColor"},null,-1),yX=[gX,bX,_X];function wX(e,t,o,l,r,n){return y(),$("svg",mX,yX)}var xX=ee(vX,[["render",wX],["__file","quartz-watch.vue"]]),kX={name:"QuestionFilled"},CX={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$X=C("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),SX=[$X];function zX(e,t,o,l,r,n){return y(),$("svg",CX,SX)}var om=ee(kX,[["render",zX],["__file","question-filled.vue"]]),EX={name:"Rank"},MX={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},TX=C("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544H186.496z"},null,-1),AX=[TX];function VX(e,t,o,l,r,n){return y(),$("svg",MX,AX)}var OX=ee(EX,[["render",VX],["__file","rank.vue"]]),PX={name:"ReadingLamp"},LX={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},IX=C("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm-44.672-768-99.52 448h608.384l-99.52-448H307.328zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"},null,-1),RX=C("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32zm-192-.064h64V960h-64z"},null,-1),HX=[IX,RX];function NX(e,t,o,l,r,n){return y(),$("svg",LX,HX)}var BX=ee(PX,[["render",NX],["__file","reading-lamp.vue"]]),DX={name:"Reading"},FX={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},jX=C("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72l384 54.848zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36z"},null,-1),KX=C("path",{fill:"currentColor",d:"M480 192h64v704h-64z"},null,-1),WX=[jX,KX];function qX(e,t,o,l,r,n){return y(),$("svg",FX,WX)}var UX=ee(DX,[["render",qX],["__file","reading.vue"]]),YX={name:"RefreshLeft"},GX={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},XX=C("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),JX=[XX];function ZX(e,t,o,l,r,n){return y(),$("svg",GX,JX)}var lm=ee(YX,[["render",ZX],["__file","refresh-left.vue"]]),QX={name:"RefreshRight"},eJ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},tJ=C("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),oJ=[tJ];function lJ(e,t,o,l,r,n){return y(),$("svg",eJ,oJ)}var rm=ee(QX,[["render",lJ],["__file","refresh-right.vue"]]),rJ={name:"Refresh"},nJ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},aJ=C("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"},null,-1),iJ=[aJ];function sJ(e,t,o,l,r,n){return y(),$("svg",nJ,iJ)}var cJ=ee(rJ,[["render",sJ],["__file","refresh.vue"]]),uJ={name:"Refrigerator"},dJ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},pJ=C("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32v288zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512H256zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96zm32 224h64v96h-64v-96zm0 288h64v96h-64v-96z"},null,-1),fJ=[pJ];function hJ(e,t,o,l,r,n){return y(),$("svg",dJ,fJ)}var vJ=ee(uJ,[["render",hJ],["__file","refrigerator.vue"]]),mJ={name:"RemoveFilled"},gJ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},bJ=C("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zM288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512z"},null,-1),_J=[bJ];function yJ(e,t,o,l,r,n){return y(),$("svg",gJ,_J)}var wJ=ee(mJ,[["render",yJ],["__file","remove-filled.vue"]]),xJ={name:"Remove"},kJ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},CJ=C("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),$J=C("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),SJ=[CJ,$J];function zJ(e,t,o,l,r,n){return y(),$("svg",kJ,SJ)}var EJ=ee(xJ,[["render",zJ],["__file","remove.vue"]]),MJ={name:"Right"},TJ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},AJ=C("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312L754.752 480z"},null,-1),VJ=[AJ];function OJ(e,t,o,l,r,n){return y(),$("svg",TJ,VJ)}var PJ=ee(MJ,[["render",OJ],["__file","right.vue"]]),LJ={name:"ScaleToOriginal"},IJ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},RJ=C("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),HJ=[RJ];function NJ(e,t,o,l,r,n){return y(),$("svg",IJ,HJ)}var nm=ee(LJ,[["render",NJ],["__file","scale-to-original.vue"]]),BJ={name:"School"},DJ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},FJ=C("path",{fill:"currentColor",d:"M224 128v704h576V128H224zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),jJ=C("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"},null,-1),KJ=C("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0v64zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192zM320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"},null,-1),WJ=[FJ,jJ,KJ];function qJ(e,t,o,l,r,n){return y(),$("svg",DJ,WJ)}var UJ=ee(BJ,[["render",qJ],["__file","school.vue"]]),YJ={name:"Scissor"},GJ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},XJ=C("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248z"},null,-1),JJ=[XJ];function ZJ(e,t,o,l,r,n){return y(),$("svg",GJ,JJ)}var QJ=ee(YJ,[["render",ZJ],["__file","scissor.vue"]]),eZ={name:"Search"},tZ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},oZ=C("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),lZ=[oZ];function rZ(e,t,o,l,r,n){return y(),$("svg",tZ,lZ)}var am=ee(eZ,[["render",rZ],["__file","search.vue"]]),nZ={name:"Select"},aZ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},iZ=C("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496z"},null,-1),sZ=[iZ];function cZ(e,t,o,l,r,n){return y(),$("svg",aZ,sZ)}var uZ=ee(nZ,[["render",cZ],["__file","select.vue"]]),dZ={name:"Sell"},pZ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},fZ=C("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248z"},null,-1),hZ=[fZ];function vZ(e,t,o,l,r,n){return y(),$("svg",pZ,hZ)}var mZ=ee(dZ,[["render",vZ],["__file","sell.vue"]]),gZ={name:"SemiSelect"},bZ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_Z=C("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64z"},null,-1),yZ=[_Z];function wZ(e,t,o,l,r,n){return y(),$("svg",bZ,yZ)}var xZ=ee(gZ,[["render",wZ],["__file","semi-select.vue"]]),kZ={name:"Service"},CZ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$Z=C("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0zM256 448a128 128 0 1 0 0 256V448zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128z"},null,-1),SZ=[$Z];function zZ(e,t,o,l,r,n){return y(),$("svg",CZ,SZ)}var EZ=ee(kZ,[["render",zZ],["__file","service.vue"]]),MZ={name:"SetUp"},TZ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},AZ=C("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64H224zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96z"},null,-1),VZ=C("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),OZ=C("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),PZ=C("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),LZ=[AZ,VZ,OZ,PZ];function IZ(e,t,o,l,r,n){return y(),$("svg",TZ,LZ)}var RZ=ee(MZ,[["render",IZ],["__file","set-up.vue"]]),HZ={name:"Setting"},NZ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},BZ=C("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z"},null,-1),DZ=[BZ];function FZ(e,t,o,l,r,n){return y(),$("svg",NZ,DZ)}var jZ=ee(HZ,[["render",FZ],["__file","setting.vue"]]),KZ={name:"Share"},WZ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qZ=C("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"},null,-1),UZ=[qZ];function YZ(e,t,o,l,r,n){return y(),$("svg",WZ,UZ)}var GZ=ee(KZ,[["render",YZ],["__file","share.vue"]]),XZ={name:"Ship"},JZ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ZZ=C("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216L512 386.88zm0-70.272 144.768-65.792L512 171.84v144.768zM512 512H148.864l18.24 64H856.96l18.24-64H512zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2H185.408z"},null,-1),QZ=[ZZ];function eQ(e,t,o,l,r,n){return y(),$("svg",JZ,QZ)}var tQ=ee(XZ,[["render",eQ],["__file","ship.vue"]]),oQ={name:"Shop"},lQ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rQ=C("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384v-64zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640l60.544 423.808z"},null,-1),nQ=[rQ];function aQ(e,t,o,l,r,n){return y(),$("svg",lQ,nQ)}var iQ=ee(oQ,[["render",aQ],["__file","shop.vue"]]),sQ={name:"ShoppingBag"},cQ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},uQ=C("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320H704zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32h160zm64 0h256a128 128 0 1 0-256 0z"},null,-1),dQ=C("path",{fill:"currentColor",d:"M192 704h640v64H192z"},null,-1),pQ=[uQ,dQ];function fQ(e,t,o,l,r,n){return y(),$("svg",cQ,pQ)}var hQ=ee(sQ,[["render",fQ],["__file","shopping-bag.vue"]]),vQ={name:"ShoppingCartFull"},mQ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},gQ=C("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96zm320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96zM96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128H96zm314.24 576h395.904l82.304-384H333.44l76.8 384z"},null,-1),bQ=C("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256h183.296zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648l179.2-215.04z"},null,-1),_Q=[gQ,bQ];function yQ(e,t,o,l,r,n){return y(),$("svg",mQ,_Q)}var wQ=ee(vQ,[["render",yQ],["__file","shopping-cart-full.vue"]]),xQ={name:"ShoppingCart"},kQ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},CQ=C("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96zm320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96zM96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128H96zm314.24 576h395.904l82.304-384H333.44l76.8 384z"},null,-1),$Q=[CQ];function SQ(e,t,o,l,r,n){return y(),$("svg",kQ,$Q)}var zQ=ee(xQ,[["render",SQ],["__file","shopping-cart.vue"]]),EQ={name:"ShoppingTrolley"},MQ={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",style:{"enable-background":"new 0 0 1024 1024"},"xml:space":"preserve"},TQ=C("path",{d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833zm439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64h551zM256 192h622l-96 384H256V192zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833z",fill:"currentColor"},null,-1),AQ=[TQ];function VQ(e,t,o,l,r,n){return y(),$("svg",MQ,AQ)}var OQ=ee(EQ,[["render",VQ],["__file","shopping-trolley.vue"]]),PQ={name:"Smoking"},LQ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},IQ=C("path",{fill:"currentColor",d:"M256 576v128h640V576H256zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32z"},null,-1),RQ=C("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"},null,-1),HQ=[IQ,RQ];function NQ(e,t,o,l,r,n){return y(),$("svg",LQ,HQ)}var BQ=ee(PQ,[["render",NQ],["__file","smoking.vue"]]),DQ={name:"Soccer"},FQ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},jQ=C("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24zm72.32-18.176a573.056 573.056 0 0 0 224.832-137.216 573.12 573.12 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.68 567.68 0 0 0 170.432 532.48l320.384 320.384zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536L871.04 418.496zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944-199.936 199.936-497.92 226.112-610.944 113.152zm452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248l45.248 45.248z"},null,-1),KQ=[jQ];function WQ(e,t,o,l,r,n){return y(),$("svg",FQ,KQ)}var qQ=ee(DQ,[["render",WQ],["__file","soccer.vue"]]),UQ={name:"SoldOut"},YQ={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},GQ=C("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"},null,-1),XQ=[GQ];function JQ(e,t,o,l,r,n){return y(),$("svg",YQ,XQ)}var ZQ=ee(UQ,[["render",JQ],["__file","sold-out.vue"]]),QQ={name:"SortDown"},eee={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},tee=C("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1),oee=[tee];function lee(e,t,o,l,r,n){return y(),$("svg",eee,oee)}var im=ee(QQ,[["render",lee],["__file","sort-down.vue"]]),ree={name:"SortUp"},nee={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},aee=C("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1),iee=[aee];function see(e,t,o,l,r,n){return y(),$("svg",nee,iee)}var sm=ee(ree,[["render",see],["__file","sort-up.vue"]]),cee={name:"Sort"},uee={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},dee=C("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632V96zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0V141.248z"},null,-1),pee=[dee];function fee(e,t,o,l,r,n){return y(),$("svg",uee,pee)}var hee=ee(cee,[["render",fee],["__file","sort.vue"]]),vee={name:"Stamp"},mee={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},gee=C("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0zM128 896v-64h768v64H128z"},null,-1),bee=[gee];function _ee(e,t,o,l,r,n){return y(),$("svg",mee,bee)}var yee=ee(vee,[["render",_ee],["__file","stamp.vue"]]),wee={name:"StarFilled"},xee={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},kee=C("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),Cee=[kee];function $ee(e,t,o,l,r,n){return y(),$("svg",xee,Cee)}var si=ee(wee,[["render",$ee],["__file","star-filled.vue"]]),See={name:"Star"},zee={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Eee=C("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),Mee=[Eee];function Tee(e,t,o,l,r,n){return y(),$("svg",zee,Mee)}var cm=ee(See,[["render",Tee],["__file","star.vue"]]),Aee={name:"Stopwatch"},Vee={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Oee=C("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Pee=C("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"},null,-1),Lee=[Oee,Pee];function Iee(e,t,o,l,r,n){return y(),$("svg",Vee,Lee)}var Ree=ee(Aee,[["render",Iee],["__file","stopwatch.vue"]]),Hee={name:"SuccessFilled"},Nee={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Bee=C("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),Dee=[Bee];function Fee(e,t,o,l,r,n){return y(),$("svg",Nee,Dee)}var _p=ee(Hee,[["render",Fee],["__file","success-filled.vue"]]),jee={name:"Sugar"},Kee={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Wee=C("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16l-109.248 19.2zm-548.8 198.72h447.168v2.24l60.8-60.8a63.808 63.808 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64.064 64.064 0 0 0-10.24 13.248zm0 64c2.752 4.736 6.144 9.152 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904H252.928zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928h326.208zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632l-137.6 24.256zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"},null,-1),qee=[Wee];function Uee(e,t,o,l,r,n){return y(),$("svg",Kee,qee)}var Yee=ee(jee,[["render",Uee],["__file","sugar.vue"]]),Gee={name:"SuitcaseLine"},Xee={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",style:{"enable-background":"new 0 0 1024 1024"},"xml:space":"preserve"},Jee=C("path",{d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5C77.16 253.82 64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5zM384 128h256v64H384v-64zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128v384zm448 0H320V448h384v384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128v320zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320v64z",fill:"currentColor"},null,-1),Zee=[Jee];function Qee(e,t,o,l,r,n){return y(),$("svg",Xee,Zee)}var ete=ee(Gee,[["render",Qee],["__file","suitcase-line.vue"]]),tte={name:"Suitcase"},ote={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},lte=C("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64v64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448H128zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128z"},null,-1),rte=C("path",{fill:"currentColor",d:"M384 128v64h256v-64H384zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64z"},null,-1),nte=[lte,rte];function ate(e,t,o,l,r,n){return y(),$("svg",ote,nte)}var ite=ee(tte,[["render",ate],["__file","suitcase.vue"]]),ste={name:"Sunny"},cte={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ute=C("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32zM195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248zM64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32zm768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32zM195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0z"},null,-1),dte=[ute];function pte(e,t,o,l,r,n){return y(),$("svg",cte,dte)}var fte=ee(ste,[["render",pte],["__file","sunny.vue"]]),hte={name:"Sunrise"},vte={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},mte=C("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64zm129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0h-64.32zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32zm407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0zm-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248z"},null,-1),gte=[mte];function bte(e,t,o,l,r,n){return y(),$("svg",vte,gte)}var _te=ee(hte,[["render",bte],["__file","sunrise.vue"]]),yte={name:"Sunset"},wte={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},xte=C("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0H82.56zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),kte=[xte];function Cte(e,t,o,l,r,n){return y(),$("svg",wte,kte)}var $te=ee(yte,[["render",Cte],["__file","sunset.vue"]]),Ste={name:"SwitchButton"},zte={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ete=C("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"},null,-1),Mte=C("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32z"},null,-1),Tte=[Ete,Mte];function Ate(e,t,o,l,r,n){return y(),$("svg",zte,Tte)}var Vte=ee(Ste,[["render",Ate],["__file","switch-button.vue"]]),Ote={name:"SwitchFilled"},Pte={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",style:{"enable-background":"new 0 0 1024 1024"},"xml:space":"preserve"},Lte=C("path",{d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36z",fill:"currentColor"},null,-1),Ite=C("path",{d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.655 196.655 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.67 196.67 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42zm-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.695 131.695 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57v644.36zm402.12-647.67a196.655 196.655 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.69 196.69 0 0 0 139.08-57.61A196.655 196.655 0 0 0 896 699.31V325.29a196.69 196.69 0 0 0-57.61-139.08zm-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82z",fill:"currentColor"},null,-1),Rte=[Lte,Ite];function Hte(e,t,o,l,r,n){return y(),$("svg",Pte,Rte)}var Nte=ee(Ote,[["render",Hte],["__file","switch-filled.vue"]]),Bte={name:"Switch"},Dte={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Fte=C("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344zM64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32z"},null,-1),jte=[Fte];function Kte(e,t,o,l,r,n){return y(),$("svg",Dte,jte)}var Wte=ee(Bte,[["render",Kte],["__file","switch.vue"]]),qte={name:"TakeawayBox"},Ute={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Yte=C("path",{fill:"currentColor",d:"M832 384H192v448h640V384zM96 320h832V128H96v192zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32h-64zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64z"},null,-1),Gte=[Yte];function Xte(e,t,o,l,r,n){return y(),$("svg",Ute,Gte)}var Jte=ee(qte,[["render",Xte],["__file","takeaway-box.vue"]]),Zte={name:"Ticket"},Qte={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eoe=C("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64v160zm0-416v192h64V416h-64z"},null,-1),toe=[eoe];function ooe(e,t,o,l,r,n){return y(),$("svg",Qte,toe)}var loe=ee(Zte,[["render",ooe],["__file","ticket.vue"]]),roe={name:"Tickets"},noe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},aoe=C("path",{fill:"currentColor",d:"M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h192v64H320v-64zm0 384h384v64H320v-64z"},null,-1),ioe=[aoe];function soe(e,t,o,l,r,n){return y(),$("svg",noe,ioe)}var coe=ee(roe,[["render",soe],["__file","tickets.vue"]]),uoe={name:"Timer"},doe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},poe=C("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z"},null,-1),foe=C("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32z"},null,-1),hoe=C("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96z"},null,-1),voe=[poe,foe,hoe];function moe(e,t,o,l,r,n){return y(),$("svg",doe,voe)}var goe=ee(uoe,[["render",moe],["__file","timer.vue"]]),boe={name:"ToiletPaper"},_oe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},yoe=C("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224zM736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64h416zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224z"},null,-1),woe=C("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96z"},null,-1),xoe=[yoe,woe];function koe(e,t,o,l,r,n){return y(),$("svg",_oe,xoe)}var Coe=ee(boe,[["render",koe],["__file","toilet-paper.vue"]]),$oe={name:"Tools"},Soe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},zoe=C("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0z"},null,-1),Eoe=[zoe];function Moe(e,t,o,l,r,n){return y(),$("svg",Soe,Eoe)}var Toe=ee($oe,[["render",Moe],["__file","tools.vue"]]),Aoe={name:"TopLeft"},Voe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ooe=C("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0V256z"},null,-1),Poe=C("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312l-544-544z"},null,-1),Loe=[Ooe,Poe];function Ioe(e,t,o,l,r,n){return y(),$("svg",Voe,Loe)}var Roe=ee(Aoe,[["render",Ioe],["__file","top-left.vue"]]),Hoe={name:"TopRight"},Noe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Boe=C("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0V256z"},null,-1),Doe=C("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312l544-544z"},null,-1),Foe=[Boe,Doe];function joe(e,t,o,l,r,n){return y(),$("svg",Noe,Foe)}var Koe=ee(Hoe,[["render",joe],["__file","top-right.vue"]]),Woe={name:"Top"},qoe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Uoe=C("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"},null,-1),Yoe=[Uoe];function Goe(e,t,o,l,r,n){return y(),$("svg",qoe,Yoe)}var Xoe=ee(Woe,[["render",Goe],["__file","top.vue"]]),Joe={name:"TrendCharts"},Zoe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Qoe=C("path",{fill:"currentColor",d:"M128 896V128h768v768H128zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624 139.84-156.608zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0z"},null,-1),ele=[Qoe];function tle(e,t,o,l,r,n){return y(),$("svg",Zoe,ele)}var ole=ee(Joe,[["render",tle],["__file","trend-charts.vue"]]),lle={name:"TrophyBase"},rle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",style:{"enable-background":"new 0 0 1024 1024"},"xml:space":"preserve"},nle=C("path",{d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4C752 67.2 745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6C259.2 80 256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 16-9.6 22.4 3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4zM256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256v182.4zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6C342.4 480 320 438.4 320 384V128h384v256c0 54.4-19.2 99.2-57.6 134.4zm172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2zM768 896H256c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6z",fill:"currentColor"},null,-1),ale=[nle];function ile(e,t,o,l,r,n){return y(),$("svg",rle,ale)}var sle=ee(lle,[["render",ile],["__file","trophy-base.vue"]]),cle={name:"Trophy"},ule={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},dle=C("path",{fill:"currentColor",d:"M480 896V702.08A256.256 256.256 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.256 256.256 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64h128zm224-448V128H320v320a192 192 0 1 0 384 0zm64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768v192zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448H256z"},null,-1),ple=[dle];function fle(e,t,o,l,r,n){return y(),$("svg",ule,ple)}var hle=ee(cle,[["render",fle],["__file","trophy.vue"]]),vle={name:"TurnOff"},mle={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},gle=C("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724H329.956zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"},null,-1),ble=C("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454zm0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088z"},null,-1),_le=[gle,ble];function yle(e,t,o,l,r,n){return y(),$("svg",mle,_le)}var wle=ee(vle,[["render",yle],["__file","turn-off.vue"]]),xle={name:"Umbrella"},kle={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Cle=C("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0zm570.688-320a384.128 384.128 0 0 0-757.376 0h757.376z"},null,-1),$le=[Cle];function Sle(e,t,o,l,r,n){return y(),$("svg",kle,$le)}var zle=ee(xle,[["render",Sle],["__file","umbrella.vue"]]),Ele={name:"Unlock"},Mle={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Tle=C("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32H224zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96z"},null,-1),Ale=C("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32zm178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104l-59.456 23.808z"},null,-1),Vle=[Tle,Ale];function Ole(e,t,o,l,r,n){return y(),$("svg",Mle,Vle)}var Ple=ee(Ele,[["render",Ole],["__file","unlock.vue"]]),Lle={name:"UploadFilled"},Ile={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Rle=C("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6H544z"},null,-1),Hle=[Rle];function Nle(e,t,o,l,r,n){return y(),$("svg",Ile,Hle)}var Ble=ee(Lle,[["render",Nle],["__file","upload-filled.vue"]]),Dle={name:"Upload"},Fle={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},jle=C("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"},null,-1),Kle=[jle];function Wle(e,t,o,l,r,n){return y(),$("svg",Fle,Kle)}var qle=ee(Dle,[["render",Wle],["__file","upload.vue"]]),Ule={name:"UserFilled"},Yle={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Gle=C("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0zm544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"},null,-1),Xle=[Gle];function Jle(e,t,o,l,r,n){return y(),$("svg",Yle,Xle)}var Zle=ee(Ule,[["render",Jle],["__file","user-filled.vue"]]),Qle={name:"User"},ere={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},tre=C("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0z"},null,-1),ore=[tre];function lre(e,t,o,l,r,n){return y(),$("svg",ere,ore)}var rre=ee(Qle,[["render",lre],["__file","user.vue"]]),nre={name:"Van"},are={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ire=C("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416h24.256zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672zm48.128-192-14.72-96H704v96h151.872zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160zm-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160z"},null,-1),sre=[ire];function cre(e,t,o,l,r,n){return y(),$("svg",are,sre)}var ure=ee(nre,[["render",cre],["__file","van.vue"]]),dre={name:"VideoCameraFilled"},pre={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},fre=C("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v96zM192 768v64h384v-64H192zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0zm64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288zm-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320zm64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0z"},null,-1),hre=[fre];function vre(e,t,o,l,r,n){return y(),$("svg",pre,hre)}var mre=ee(dre,[["render",vre],["__file","video-camera-filled.vue"]]),gre={name:"VideoCamera"},bre={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_re=C("path",{fill:"currentColor",d:"M704 768V256H128v512h576zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v128zm0 71.552v176.896l128 64V359.552l-128 64zM192 320h192v64H192v-64z"},null,-1),yre=[_re];function wre(e,t,o,l,r,n){return y(),$("svg",bre,yre)}var xre=ee(gre,[["render",wre],["__file","video-camera.vue"]]),kre={name:"VideoPause"},Cre={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$re=C("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32zm192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32z"},null,-1),Sre=[$re];function zre(e,t,o,l,r,n){return y(),$("svg",Cre,Sre)}var Ere=ee(kre,[["render",zre],["__file","video-pause.vue"]]),Mre={name:"VideoPlay"},Tre={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Are=C("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-48-247.616L668.608 512 464 375.616v272.768zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"},null,-1),Vre=[Are];function Ore(e,t,o,l,r,n){return y(),$("svg",Tre,Vre)}var Pre=ee(Mre,[["render",Ore],["__file","video-play.vue"]]),Lre={name:"View"},Ire={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Rre=C("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),Hre=[Rre];function Nre(e,t,o,l,r,n){return y(),$("svg",Ire,Hre)}var um=ee(Lre,[["render",Nre],["__file","view.vue"]]),Bre={name:"WalletFilled"},Dre={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Fre=C("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160H688zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96zm-80-544 128 160H384l256-160z"},null,-1),jre=[Fre];function Kre(e,t,o,l,r,n){return y(),$("svg",Dre,jre)}var Wre=ee(Bre,[["render",Kre],["__file","wallet-filled.vue"]]),qre={name:"Wallet"},Ure={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Yre=C("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32v192z"},null,-1),Gre=C("path",{fill:"currentColor",d:"M128 320v512h768V320H128zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32z"},null,-1),Xre=C("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128z"},null,-1),Jre=[Yre,Gre,Xre];function Zre(e,t,o,l,r,n){return y(),$("svg",Ure,Jre)}var Qre=ee(qre,[["render",Zre],["__file","wallet.vue"]]),ene={name:"WarnTriangleFilled"},tne={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",style:{"enable-background":"new 0 0 1024 1024"},"xml:space":"preserve"},one=C("path",{d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49 12.91-20.12 12.92-44.91.01-65.03zM554.67 768h-85.33v-85.33h85.33V768zm0-426.67v298.66h-85.33V341.32l85.33.01z",fill:"currentColor"},null,-1),lne=[one];function rne(e,t,o,l,r,n){return y(),$("svg",tne,lne)}var nne=ee(ene,[["render",rne],["__file","warn-triangle-filled.vue"]]),ane={name:"WarningFilled"},ine={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},sne=C("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),cne=[sne];function une(e,t,o,l,r,n){return y(),$("svg",ine,cne)}var ms=ee(ane,[["render",une],["__file","warning-filled.vue"]]),dne={name:"Warning"},pne={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},fne=C("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),hne=[fne];function vne(e,t,o,l,r,n){return y(),$("svg",pne,hne)}var mne=ee(dne,[["render",vne],["__file","warning.vue"]]),gne={name:"Watch"},bne={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_ne=C("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),yne=C("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32z"},null,-1),wne=C("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm128-256V128H416v128h-64V64h320v192h-64zM416 768v128h192V768h64v192H352V768h64z"},null,-1),xne=[_ne,yne,wne];function kne(e,t,o,l,r,n){return y(),$("svg",bne,xne)}var Cne=ee(gne,[["render",kne],["__file","watch.vue"]]),$ne={name:"Watermelon"},Sne={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},zne=C("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248L683.072 600.32zm231.552 141.056a448 448 0 1 1-632-632l632 632z"},null,-1),Ene=[zne];function Mne(e,t,o,l,r,n){return y(),$("svg",Sne,Ene)}var Tne=ee($ne,[["render",Mne],["__file","watermelon.vue"]]),Ane={name:"WindPower"},Vne={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},One=C("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32zm416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92l192-17.472zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96v226.368z"},null,-1),Pne=[One];function Lne(e,t,o,l,r,n){return y(),$("svg",Vne,Pne)}var Ine=ee(Ane,[["render",Lne],["__file","wind-power.vue"]]),Rne={name:"ZoomIn"},Hne={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Nne=C("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),Bne=[Nne];function Dne(e,t,o,l,r,n){return y(),$("svg",Hne,Bne)}var yp=ee(Rne,[["render",Dne],["__file","zoom-in.vue"]]),Fne={name:"ZoomOut"},jne={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Kne=C("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),Wne=[Kne];function qne(e,t,o,l,r,n){return y(),$("svg",jne,Wne)}var dm=ee(Fne,[["render",qne],["__file","zoom-out.vue"]]);const ph=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:sS,Aim:vS,AlarmClock:xS,Apple:ES,ArrowDown:fr,ArrowDownBold:PS,ArrowLeft:ir,ArrowLeftBold:WS,ArrowRight:go,ArrowRightBold:oz,ArrowUp:vs,ArrowUpBold:fz,Avatar:Cz,Back:W4,Baseball:Rz,Basketball:jz,Bell:lE,BellFilled:Gz,Bicycle:cE,Bottom:ME,BottomLeft:mE,BottomRight:kE,Bowl:LE,Box:jE,Briefcase:GE,Brush:iM,BrushFilled:tM,Burger:fM,Calendar:q4,Camera:TM,CameraFilled:CM,CaretBottom:IM,CaretLeft:FM,CaretRight:mp,CaretTop:U4,Cellphone:rT,ChatDotRound:dT,ChatDotSquare:bT,ChatLineRound:$T,ChatLineSquare:VT,ChatRound:HT,ChatSquare:KT,Check:Fa,Checked:tA,Cherry:iA,Chicken:fA,ChromeFilled:wA,CircleCheck:_u,CircleCheckFilled:Y4,CircleClose:hr,CircleCloseFilled:yu,CirclePlus:lV,CirclePlusFilled:GA,Clock:gp,Close:nl,CloseBold:mV,Cloudy:zV,Coffee:NV,CoffeeCup:OV,Coin:UV,ColdDrink:QV,Collection:pO,CollectionTag:nO,Comment:bO,Compass:$O,Connection:VO,Coordinate:NO,CopyDocument:qO,Cpu:QO,CreditCard:aP,Crop:fP,DArrowLeft:zn,DArrowRight:En,DCaret:MP,DataAnalysis:LP,DataBoard:jP,DataLine:GP,Delete:G4,DeleteFilled:tL,DeleteLocation:cL,Dessert:yL,Discount:zL,Dish:NL,DishDot:OL,Document:X4,DocumentAdd:WL,DocumentChecked:JL,DocumentCopy:lI,DocumentDelete:cI,DocumentRemove:vI,Download:SI,Drizzling:VI,Edit:WI,EditPen:HI,Eleme:lR,ElemeFilled:JI,ElementPlus:cR,Expand:vR,Failed:wR,Female:MR,Files:LR,Film:FR,Filter:YR,Finished:eH,FirstAidKit:iH,Flag:fH,Fold:_H,Folder:tN,FolderAdd:$H,FolderChecked:AH,FolderDelete:RH,FolderOpened:jH,FolderRemove:GH,Food:iN,Football:hN,ForkSpoon:yN,Fries:SN,FullScreen:J4,Goblet:tB,GobletFull:RN,GobletSquare:GN,GobletSquareFull:jN,GoldMedal:sB,Goods:yB,GoodsFilled:hB,Grape:SB,Grid:VB,Guide:NB,Handbag:WB,Headset:JB,Help:cD,HelpFilled:lD,Hide:Z4,Histogram:wD,HomeFilled:zD,HotWater:OD,House:ND,IceCream:lF,IceCreamRound:WD,IceCreamSquare:JD,IceDrink:cF,IceTea:vF,InfoFilled:wu,Iphone:SF,Key:VF,KnifeFork:HF,Lightning:WF,Link:JF,List:lj,Loading:vr,Location:Mj,LocationFilled:hj,LocationInformation:xj,Lock:Ij,Lollipop:Fj,MagicStick:Yj,Magnet:eK,Male:sK,Management:hK,MapLocation:wK,Medal:EK,Memo:IK,Menu:FK,Message:tW,MessageBox:YK,Mic:iW,Microphone:fW,MilkTea:_W,Minus:Q4,Money:VW,Monitor:HW,Moon:JW,MoonNight:WW,More:em,MoreFilled:_0,MostlyCloudy:fq,Mouse:yq,Mug:Sq,Mute:Bq,MuteNotification:Oq,NoSmoking:qq,Notebook:Qq,Notification:aU,Odometer:hU,OfficeBuilding:xU,Open:MU,Operation:LU,Opportunity:DU,Orange:UU,Paperclip:QU,PartlyCloudy:aY,Pear:pY,Phone:CY,PhoneFilled:bY,Picture:jY,PictureFilled:tm,PictureRounded:IY,PieChart:XY,Place:rG,Platform:uG,Plus:bp,Pointer:wG,Position:zG,Postcard:PG,Pouring:BG,Present:GG,PriceTag:oX,Printer:sX,Promotion:hX,QuartzWatch:xX,QuestionFilled:om,Rank:OX,Reading:UX,ReadingLamp:BX,Refresh:cJ,RefreshLeft:lm,RefreshRight:rm,Refrigerator:vJ,Remove:EJ,RemoveFilled:wJ,Right:PJ,ScaleToOriginal:nm,School:UJ,Scissor:QJ,Search:am,Select:uZ,Sell:mZ,SemiSelect:xZ,Service:EZ,SetUp:RZ,Setting:jZ,Share:GZ,Ship:tQ,Shop:iQ,ShoppingBag:hQ,ShoppingCart:zQ,ShoppingCartFull:wQ,ShoppingTrolley:OQ,Smoking:BQ,Soccer:qQ,SoldOut:ZQ,Sort:hee,SortDown:im,SortUp:sm,Stamp:yee,Star:cm,StarFilled:si,Stopwatch:Ree,SuccessFilled:_p,Sugar:Yee,Suitcase:ite,SuitcaseLine:ete,Sunny:fte,Sunrise:_te,Sunset:$te,Switch:Wte,SwitchButton:Vte,SwitchFilled:Nte,TakeawayBox:Jte,Ticket:loe,Tickets:coe,Timer:goe,ToiletPaper:Coe,Tools:Toe,Top:Xoe,TopLeft:Roe,TopRight:Koe,TrendCharts:ole,Trophy:hle,TrophyBase:sle,TurnOff:wle,Umbrella:zle,Unlock:Ple,Upload:qle,UploadFilled:Ble,User:rre,UserFilled:Zle,Van:ure,VideoCamera:xre,VideoCameraFilled:mre,VideoPause:Ere,VideoPlay:Pre,View:um,Wallet:Qre,WalletFilled:Wre,WarnTriangleFilled:nne,Warning:mne,WarningFilled:ms,Watch:Cne,Watermelon:Tne,WindPower:Ine,ZoomIn:yp,ZoomOut:dm},Symbol.toStringTag,{value:"Module"})),pm="__epPropKey",de=e=>e,Une=e=>ft(e)&&!!e[pm],Sl=(e,t)=>{if(!ft(e)||Une(e))return e;const{values:o,required:l,default:r,type:n,validator:a}=e,c={type:n,required:!!l,validator:o||a?u=>{let d=!1,p=[];if(o&&(p=Array.from(o),mt(e,"default")&&p.push(r),d||(d=p.includes(u))),a&&(d||(d=a(u))),!d&&p.length>0){const f=[...new Set(p)].map(h=>JSON.stringify(h)).join(", ");O5(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[pm]:!0};return mt(e,"default")&&(c.default=r),c},Ae=e=>L4(Object.entries(e).map(([t,o])=>[t,Sl(o,t)])),Mt=de([String,Object,Function]),fm={Close:nl},wp={Close:nl,SuccessFilled:_p,InfoFilled:wu,WarningFilled:ms,CircleCloseFilled:yu},Fr={success:_p,warning:ms,error:yu,info:wu},hm={validating:vr,success:_u,error:hr},at=(e,t)=>{if(e.install=o=>{for(const l of[e,...Object.values(t!=null?t:{})])o.component(l.name,l)},t)for(const[o,l]of Object.entries(t))e[o]=l;return e},vm=(e,t)=>(e.install=o=>{e._context=o._context,o.config.globalProperties[t]=e},e),Yne=(e,t)=>(e.install=o=>{o.directive(t,e)},e),Bt=e=>(e.install=$t,e),xu=(...e)=>t=>{e.forEach(o=>{Ye(o)?o(t):o.value=t})},je={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Gne=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],nd=["sun","mon","tue","wed","thu","fri","sat"],nt="update:modelValue",Ot="change",Co="input",fh=Symbol("INSTALLED_KEY"),Ur=["","default","small","large"],Xne={large:40,default:32,small:24},Jne=e=>Xne[e||"default"],ja=e=>["",...Ur].includes(e);var Xo=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Xo||{});function y0(e){return Vt(e)&&e.type===Pe}function Zne(e){return Vt(e)&&e.type===ko}function Qne(e){return Vt(e)&&!y0(e)&&!Zne(e)}const eae=e=>{if(!Vt(e))return{};const t=e.props||{},o=(Vt(e.type)?e.type.props:void 0)||{},l={};return Object.keys(o).forEach(r=>{mt(o[r],"default")&&(l[r]=o[r].default)}),Object.keys(t).forEach(r=>{l[ol(r)]=t[r]}),l},tae=e=>{if(!Ie(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},na=e=>{const t=Ie(e)?e:[e],o=[];return t.forEach(l=>{var r;Ie(l)?o.push(...na(l)):Vt(l)&&Ie(l.children)?o.push(...na(l.children)):(o.push(l),Vt(l)&&((r=l.component)==null?void 0:r.subTree)&&o.push(...na(l.component.subTree)))}),o},hh=e=>e**3,oae=e=>e<.5?hh(e*2)/2:1-hh((1-e)*2)/2,vh=e=>[...new Set(e)],lr=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],xp=()=>gt&&/firefox/i.test(window.navigator.userAgent),ku=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),kp=e=>gt?window.requestAnimationFrame(e):setTimeout(e,16),Cp=e=>gt?window.cancelAnimationFrame(e):clearTimeout(e),gs=()=>Math.floor(Math.random()*1e4),Lt=e=>e,lae=["class","style"],rae=/^on[A-Z]/,$p=(e={})=>{const{excludeListeners:t=!1,excludeKeys:o}=e,l=S(()=>((o==null?void 0:o.value)||[]).concat(lae)),r=Qe();return S(r?()=>{var n;return L4(Object.entries((n=r.proxy)==null?void 0:n.$attrs).filter(([a])=>!l.value.includes(a)&&!(t&&rae.test(a))))}:()=>({}))},mm=Symbol("breadcrumbKey"),gm=Symbol("buttonGroupContextKey"),bm=Symbol("carouselContextKey"),Ka=Symbol("checkboxGroupContextKey"),_m=Symbol("collapseContextKey"),ym=Symbol(),wm=Symbol("dialogInjectionKey"),On=Symbol("formContextKey"),Bl=Symbol("formItemContextKey"),xm=Symbol("elPaginationKey"),km=Symbol("radioGroupKey"),Cm=Symbol("rowContextKey"),$m=Symbol("scrollbarContextKey"),Sm=Symbol("sliderContextKey"),Cu=Symbol("tabsRootContextKey"),zm=Symbol("uploadContextKey"),Sp=Symbol("popper"),Em=Symbol("popperContent"),$u=Symbol("elTooltip"),Su=Symbol("tooltipV2"),Mm=Symbol("tooltipV2Content"),ad="tooltip_v2.open",zp=Symbol(),Tm=e=>{const t=Qe();return S(()=>{var o,l;return(l=((o=t.proxy)==null?void 0:o.$props)[e])!=null?l:void 0})},Lc=V();function mr(e,t=void 0){const o=Qe()?Re(ym,Lc):Lc;return e?S(()=>{var l,r;return(r=(l=o.value)==null?void 0:l[e])!=null?r:t}):o}const Am=(e,t,o=!1)=>{var l;const r=!!Qe(),n=r?mr():void 0,a=(l=t==null?void 0:t.provide)!=null?l:r?st:void 0;if(!a)return;const i=S(()=>{const c=s(e);return n!=null&&n.value?nae(n.value,c):c});return a(ym,i),(o||!Lc.value)&&(Lc.value=i.value),i},nae=(e,t)=>{var o;const l=[...new Set([...Fi(e),...Fi(t)])],r={};for(const n of l)r[n]=(o=t[n])!=null?o:e[n];return r},Lo=Sl({type:String,values:Ur,required:!1}),Xt=(e,t={})=>{const o=V(void 0),l=t.prop?o:Tm("size"),r=t.global?o:mr("size"),n=t.form?{size:void 0}:Re(On,void 0),a=t.formItem?{size:void 0}:Re(Bl,void 0);return S(()=>l.value||s(e)||(a==null?void 0:a.size)||(n==null?void 0:n.size)||r.value||"")},zl=e=>{const t=Tm("disabled"),o=Re(On,void 0);return S(()=>t.value||s(e)||(o==null?void 0:o.disabled)||!1)},jr=({from:e,replacement:t,scope:o,version:l,ref:r,type:n="API"},a)=>{ve(()=>s(a),i=>{},{immediate:!0})},Vm=(e,t,o)=>{let l={offsetX:0,offsetY:0};const r=i=>{const c=i.clientX,u=i.clientY,{offsetX:d,offsetY:p}=l,f=e.value.getBoundingClientRect(),h=f.left,v=f.top,m=f.width,g=f.height,_=document.documentElement.clientWidth,w=document.documentElement.clientHeight,b=-h+d,x=-v+p,k=_-h-m+d,z=w-v-g+p,M=A=>{const O=Math.min(Math.max(d+A.clientX-c,b),k),D=Math.min(Math.max(p+A.clientY-u,x),z);l={offsetX:O,offsetY:D},e.value.style.transform=`translate(${Yt(O)}, ${Yt(D)})`},E=()=>{document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",E)};document.addEventListener("mousemove",M),document.addEventListener("mouseup",E)},n=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",r)},a=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",r)};Ze(()=>{Ao(()=>{o.value?n():a()})}),It(()=>{a()})},aae=e=>({focus:()=>{var t,o;(o=(t=e.value)==null?void 0:t.focus)==null||o.call(t)}}),zu="el",iae="is-",Qr=(e,t,o,l,r)=>{let n=`${e}-${t}`;return o&&(n+=`-${o}`),l&&(n+=`__${l}`),r&&(n+=`--${r}`),n},_e=e=>{const t=mr("namespace",zu);return{namespace:t,b:(v="")=>Qr(t.value,e,v,"",""),e:v=>v?Qr(t.value,e,"",v,""):"",m:v=>v?Qr(t.value,e,"","",v):"",be:(v,m)=>v&&m?Qr(t.value,e,v,m,""):"",em:(v,m)=>v&&m?Qr(t.value,e,"",v,m):"",bm:(v,m)=>v&&m?Qr(t.value,e,v,"",m):"",bem:(v,m,g)=>v&&m&&g?Qr(t.value,e,v,m,g):"",is:(v,...m)=>{const g=m.length>=1?m[0]:!0;return v&&g?`${iae}${v}`:""},cssVar:v=>{const m={};for(const g in v)v[g]&&(m[`--${t.value}-${g}`]=v[g]);return m},cssVarName:v=>`--${t.value}-${v}`,cssVarBlock:v=>{const m={};for(const g in v)v[g]&&(m[`--${t.value}-${e}-${g}`]=v[g]);return m},cssVarBlockName:v=>`--${t.value}-${e}-${v}`}},sae={prefix:Math.floor(Math.random()*1e4),current:0},cae=Symbol("elIdInjection"),wl=e=>{const t=Re(cae,sae),o=mr("namespace",zu);return S(()=>s(e)||`${o.value}-id-${t.prefix}-${t.current++}`)},So=()=>{const e=Re(On,void 0),t=Re(Bl,void 0);return{form:e,formItem:t}},Yr=(e,{formItemContext:t,disableIdGeneration:o,disableIdManagement:l})=>{o||(o=V(!1)),l||(l=V(!1));const r=V();let n;const a=S(()=>{var i;return!!(!e.label&&t&&t.inputIds&&((i=t.inputIds)==null?void 0:i.length)<=1)});return Ze(()=>{n=ve([Rt(e,"id"),o],([i,c])=>{const u=i!=null?i:c?void 0:wl().value;u!==r.value&&(t!=null&&t.removeInputId&&(r.value&&t.removeInputId(r.value),!(l!=null&&l.value)&&!c&&u&&t.addInputId(u)),r.value=u)},{immediate:!0})}),ur(()=>{n&&n(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:a,inputId:r}};var uae={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const dae=e=>(t,o)=>pae(t,o,s(e)),pae=(e,t,o)=>Pt(o,e,e).replace(/\{(\w+)\}/g,(l,r)=>{var n;return`${(n=t==null?void 0:t[r])!=null?n:`{${r}}`}`}),fae=e=>{const t=S(()=>s(e).name),o=xt(e)?e:V(e);return{lang:t,locale:o,t:dae(e)}},yt=()=>{const e=mr("locale");return fae(S(()=>e.value||uae))},Om=e=>{xt(e)||Zt("[useLockscreen]","You need to pass a ref param to this function");const t=_e("popup"),o=y6(()=>t.bm("parent","hidden"));if(!gt||_l(document.body,o.value))return;let l=0,r=!1,n="0";const a=()=>{setTimeout(()=>{Vo(document.body,o.value),r&&(document.body.style.width=n)},200)};ve(e,i=>{if(!i){a();return}r=!_l(document.body,o.value),r&&(n=document.body.style.width),l=j4(t.namespace.value);const c=document.documentElement.clientHeight0&&(c||u==="scroll")&&r&&(document.body.style.width=`calc(100% - ${l}px)`),Ol(document.body,o.value)}),l6(()=>a())},hae=Sl({type:de(Boolean),default:null}),vae=Sl({type:de(Function)}),mae=e=>{const t=`update:${e}`,o=`onUpdate:${e}`,l=[t],r={[e]:hae,[o]:vae};return{useModelToggle:({indicator:a,toggleReason:i,shouldHideWhenRouteChanges:c,shouldProceed:u,onShow:d,onHide:p})=>{const f=Qe(),{emit:h}=f,v=f.props,m=S(()=>Ye(v[o])),g=S(()=>v[e]===null),_=M=>{a.value!==!0&&(a.value=!0,i&&(i.value=M),Ye(d)&&d(M))},w=M=>{a.value!==!1&&(a.value=!1,i&&(i.value=M),Ye(p)&&p(M))},b=M=>{if(v.disabled===!0||Ye(u)&&!u())return;const E=m.value&>E&&h(t,!0),(g.value||!E)&&_(M)},x=M=>{if(v.disabled===!0||!gt)return;const E=m.value&>E&&h(t,!1),(g.value||!E)&&w(M)},k=M=>{!Jt(M)||(v.disabled&&M?m.value&&h(t,!1):a.value!==M&&(M?_():w()))},z=()=>{a.value?x():b()};return ve(()=>v[e],k),c&&f.appContext.config.globalProperties.$route!==void 0&&ve(()=>({...f.proxy.$route}),()=>{c.value&&a.value&&x()}),Ze(()=>{k(v[e])}),{hide:x,show:b,toggle:z,hasUpdateHandler:m}},useModelToggleProps:r,useModelToggleEmits:l}},gae=(e,t)=>{let o;ve(()=>e.value,l=>{var r,n;l?(o=document.activeElement,xt(t)&&((n=(r=t.value).focus)==null||n.call(r))):o.focus()})},Ep=e=>{if(!e)return{onClick:$t,onMousedown:$t,onMouseup:$t};let t=!1,o=!1;return{onClick:a=>{t&&o&&e(a),t=o=!1},onMousedown:a=>{t=a.target===a.currentTarget},onMouseup:a=>{o=a.target===a.currentTarget}}},bae=(e,t=0)=>{if(t===0)return e;const o=V(!1);let l=0;const r=()=>{l&&clearTimeout(l),l=window.setTimeout(()=>{o.value=e.value},t)};return Ze(r),ve(()=>e.value,n=>{n?r():o.value=n}),o};function _ae(){let e;const t=(l,r)=>{o(),e=window.setTimeout(l,r)},o=()=>window.clearTimeout(e);return bu(()=>o()),{registerTimeout:t,cancelTimeout:o}}let Kn=[];const mh=e=>{const t=e;t.key===je.esc&&Kn.forEach(o=>o(t))},yae=e=>{Ze(()=>{Kn.length===0&&document.addEventListener("keydown",mh),gt&&Kn.push(e)}),It(()=>{Kn=Kn.filter(t=>t!==e),Kn.length===0&>&&document.removeEventListener("keydown",mh)})};let gh;const wae=mr("namespace",zu),Pm=`${wae.value}-popper-container-${gs()}`,Lm=`#${Pm}`,xae=()=>{const e=document.createElement("div");return e.id=Pm,document.body.appendChild(e),e},kae=()=>{iu(()=>{!gt||(!gh||!document.body.querySelector(Lm))&&(gh=xae())})},Cae=Ae({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),$ae=({showAfter:e,hideAfter:t,open:o,close:l})=>{const{registerTimeout:r}=_ae();return{onOpen:i=>{r(()=>{o(i)},s(e))},onClose:i=>{r(()=>{l(i)},s(t))}}},Im=Symbol("elForwardRef"),Sae=e=>{st(Im,{setForwardRef:o=>{e.value=o}})},zae=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),bh=V(0),gr=()=>{const e=mr("zIndex",2e3),t=S(()=>e.value+bh.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(bh.value++,t.value)}};const ji=Math.min,aa=Math.max,Ic=Math.round,Rl=e=>({x:e,y:e});function Eae(e,t,o){return aa(e,ji(t,o))}function Rm(e,t){return typeof e=="function"?e(t):e}function Mp(e){return e.split("-")[0]}function Tp(e){return e.split("-")[1]}function Mae(e){return e==="x"?"y":"x"}function Hm(e){return e==="y"?"height":"width"}const Tae=new Set(["top","bottom"]);function Ap(e){return Tae.has(Mp(e))?"y":"x"}function Nm(e){return Mae(Ap(e))}function Aae(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vae(e){return typeof e!="number"?Aae(e):{top:e,right:e,bottom:e,left:e}}function Bm(e){const{x:t,y:o,width:l,height:r}=e;return{width:l,height:r,top:o,left:t,right:t+l,bottom:o+r,x:t,y:o}}function _h(e,t,o){let{reference:l,floating:r}=e;const n=Ap(t),a=Nm(t),i=Hm(a),c=Mp(t),u=n==="y",d=l.x+l.width/2-r.width/2,p=l.y+l.height/2-r.height/2,f=l[i]/2-r[i]/2;let h;switch(c){case"top":h={x:d,y:l.y-r.height};break;case"bottom":h={x:d,y:l.y+l.height};break;case"right":h={x:l.x+l.width,y:p};break;case"left":h={x:l.x-r.width,y:p};break;default:h={x:l.x,y:l.y}}switch(Tp(t)){case"start":h[a]-=f*(o&&u?-1:1);break;case"end":h[a]+=f*(o&&u?-1:1);break}return h}const Oae=async(e,t,o)=>{const{placement:l="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,i=n.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:p}=_h(u,l,c),f=l,h={},v=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:o,y:l,placement:r,rects:n,platform:a,elements:i,middlewareData:c}=t,{element:u,padding:d=0}=Rm(e,t)||{};if(u==null)return{};const p=Vae(d),f={x:o,y:l},h=Nm(r),v=Hm(h),m=await a.getDimensions(u),g=h==="y",_=g?"top":"left",w=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=n.reference[v]+n.reference[h]-f[h]-n.floating[v],k=f[h]-n.reference[h],z=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let M=z?z[b]:0;(!M||!await(a.isElement==null?void 0:a.isElement(z)))&&(M=i.floating[b]||n.floating[v]);const E=x/2-k/2,A=M/2-m[v]/2-1,O=ji(p[_],A),D=ji(p[w],A),I=O,N=M-m[v]-D,B=M/2-m[v]/2+E,F=Eae(I,B,N),H=!c.arrow&&Tp(r)!=null&&B!==F&&n.reference[v]/2-(B"u"?!1:e instanceof ShadowRoot||e instanceof Ko(e).ShadowRoot}const Hae=new Set(["inline","contents"]);function bs(e){const{overflow:t,overflowX:o,overflowY:l,display:r}=kl(e);return/auto|scroll|overlay|hidden|clip/.test(t+l+o)&&!Hae.has(r)}const Nae=new Set(["table","td","th"]);function Bae(e){return Nae.has(Wa(e))}const Dae=[":popover-open",":modal"];function Mu(e){return Dae.some(t=>{try{return e.matches(t)}catch{return!1}})}const Fae=["transform","translate","scale","rotate","perspective"],jae=["transform","translate","scale","rotate","perspective","filter"],Kae=["paint","layout","strict","content"];function Vp(e){const t=Op(),o=xl(e)?kl(e):e;return Fae.some(l=>o[l]?o[l]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||jae.some(l=>(o.willChange||"").includes(l))||Kae.some(l=>(o.contain||"").includes(l))}function Wae(e){let t=Kr(e);for(;Dl(t)&&!ya(t);){if(Vp(t))return t;if(Mu(t))return null;t=Kr(t)}return null}function Op(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const qae=new Set(["html","body","#document"]);function ya(e){return qae.has(Wa(e))}function kl(e){return Ko(e).getComputedStyle(e)}function Tu(e){return xl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kr(e){if(Wa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yh(e)&&e.host||br(e);return yh(t)?t.host:t}function Fm(e){const t=Kr(e);return ya(t)?e.ownerDocument?e.ownerDocument.body:e.body:Dl(t)&&bs(t)?t:Fm(t)}function w0(e,t,o){var l;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=Fm(e),n=r===((l=e.ownerDocument)==null?void 0:l.body),a=Ko(r);if(n){const i=x0(a);return t.concat(a,a.visualViewport||[],bs(r)?r:[],i&&o?w0(i):[])}return t.concat(r,w0(r,[],o))}function x0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jm(e){const t=kl(e);let o=parseFloat(t.width)||0,l=parseFloat(t.height)||0;const r=Dl(e),n=r?e.offsetWidth:o,a=r?e.offsetHeight:l,i=Ic(o)!==n||Ic(l)!==a;return i&&(o=n,l=a),{width:o,height:l,$:i}}function Km(e){return xl(e)?e:e.contextElement}function ia(e){const t=Km(e);if(!Dl(t))return Rl(1);const o=t.getBoundingClientRect(),{width:l,height:r,$:n}=jm(t);let a=(n?Ic(o.width):o.width)/l,i=(n?Ic(o.height):o.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Uae=Rl(0);function Wm(e){const t=Ko(e);return!Op()||!t.visualViewport?Uae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yae(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==Ko(e)?!1:t}function Ki(e,t,o,l){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),n=Km(e);let a=Rl(1);t&&(l?xl(l)&&(a=ia(l)):a=ia(e));const i=Yae(n,o,l)?Wm(n):Rl(0);let c=(r.left+i.x)/a.x,u=(r.top+i.y)/a.y,d=r.width/a.x,p=r.height/a.y;if(n){const f=Ko(n),h=l&&xl(l)?Ko(l):l;let v=f,m=x0(v);for(;m&&l&&h!==v;){const g=ia(m),_=m.getBoundingClientRect(),w=kl(m),b=_.left+(m.clientLeft+parseFloat(w.paddingLeft))*g.x,x=_.top+(m.clientTop+parseFloat(w.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,p*=g.y,c+=b,u+=x,v=Ko(m),m=x0(v)}}return Bm({width:d,height:p,x:c,y:u})}function Pp(e,t){const o=Tu(e).scrollLeft;return t?t.left+o:Ki(br(e)).left+o}function qm(e,t,o){o===void 0&&(o=!1);const l=e.getBoundingClientRect(),r=l.left+t.scrollLeft-(o?0:Pp(e,l)),n=l.top+t.scrollTop;return{x:r,y:n}}function Gae(e){let{elements:t,rect:o,offsetParent:l,strategy:r}=e;const n=r==="fixed",a=br(l),i=t?Mu(t.floating):!1;if(l===a||i&&n)return o;let c={scrollLeft:0,scrollTop:0},u=Rl(1);const d=Rl(0),p=Dl(l);if((p||!p&&!n)&&((Wa(l)!=="body"||bs(a))&&(c=Tu(l)),Dl(l))){const h=Ki(l);u=ia(l),d.x=h.x+l.clientLeft,d.y=h.y+l.clientTop}const f=a&&!p&&!n?qm(a,c,!0):Rl(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-c.scrollLeft*u.x+d.x+f.x,y:o.y*u.y-c.scrollTop*u.y+d.y+f.y}}function Xae(e){return Array.from(e.getClientRects())}function Jae(e){const t=br(e),o=Tu(e),l=e.ownerDocument.body,r=aa(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),n=aa(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight);let a=-o.scrollLeft+Pp(e);const i=-o.scrollTop;return kl(l).direction==="rtl"&&(a+=aa(t.clientWidth,l.clientWidth)-r),{width:r,height:n,x:a,y:i}}function Zae(e,t){const o=Ko(e),l=br(e),r=o.visualViewport;let n=l.clientWidth,a=l.clientHeight,i=0,c=0;if(r){n=r.width,a=r.height;const u=Op();(!u||u&&t==="fixed")&&(i=r.offsetLeft,c=r.offsetTop)}return{width:n,height:a,x:i,y:c}}const Qae=new Set(["absolute","fixed"]);function eie(e,t){const o=Ki(e,!0,t==="fixed"),l=o.top+e.clientTop,r=o.left+e.clientLeft,n=Dl(e)?ia(e):Rl(1),a=e.clientWidth*n.x,i=e.clientHeight*n.y,c=r*n.x,u=l*n.y;return{width:a,height:i,x:c,y:u}}function wh(e,t,o){let l;if(t==="viewport")l=Zae(e,o);else if(t==="document")l=Jae(br(e));else if(xl(t))l=eie(t,o);else{const r=Wm(e);l={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Bm(l)}function Um(e,t){const o=Kr(e);return o===t||!xl(o)||ya(o)?!1:kl(o).position==="fixed"||Um(o,t)}function tie(e,t){const o=t.get(e);if(o)return o;let l=w0(e,[],!1).filter(i=>xl(i)&&Wa(i)!=="body"),r=null;const n=kl(e).position==="fixed";let a=n?Kr(e):e;for(;xl(a)&&!ya(a);){const i=kl(a),c=Vp(a);!c&&i.position==="fixed"&&(r=null),(n?!c&&!r:!c&&i.position==="static"&&!!r&&Qae.has(r.position)||bs(a)&&!c&&Um(e,a))?l=l.filter(d=>d!==a):r=i,a=Kr(a)}return t.set(e,l),l}function oie(e){let{element:t,boundary:o,rootBoundary:l,strategy:r}=e;const a=[...o==="clippingAncestors"?Mu(t)?[]:tie(t,this._c):[].concat(o),l],i=a[0],c=a.reduce((u,d)=>{const p=wh(t,d,r);return u.top=aa(p.top,u.top),u.right=ji(p.right,u.right),u.bottom=ji(p.bottom,u.bottom),u.left=aa(p.left,u.left),u},wh(t,i,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function lie(e){const{width:t,height:o}=jm(e);return{width:t,height:o}}function rie(e,t,o){const l=Dl(t),r=br(t),n=o==="fixed",a=Ki(e,!0,n,t);let i={scrollLeft:0,scrollTop:0};const c=Rl(0);function u(){c.x=Pp(r)}if(l||!l&&!n)if((Wa(t)!=="body"||bs(r))&&(i=Tu(t)),l){const h=Ki(t,!0,n,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else r&&u();n&&!l&&r&&u();const d=r&&!l&&!n?qm(r,i):Rl(0),p=a.left+i.scrollLeft-c.x-d.x,f=a.top+i.scrollTop-c.y-d.y;return{x:p,y:f,width:a.width,height:a.height}}function id(e){return kl(e).position==="static"}function xh(e,t){if(!Dl(e)||kl(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return br(e)===o&&(o=o.ownerDocument.body),o}function Ym(e,t){const o=Ko(e);if(Mu(e))return o;if(!Dl(e)){let r=Kr(e);for(;r&&!ya(r);){if(xl(r)&&!id(r))return r;r=Kr(r)}return o}let l=xh(e,t);for(;l&&Bae(l)&&id(l);)l=xh(l,t);return l&&ya(l)&&id(l)&&!Vp(l)?o:l||Wae(e)||o}const nie=async function(e){const t=this.getOffsetParent||Ym,o=this.getDimensions,l=await o(e.floating);return{reference:rie(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function aie(e){return kl(e).direction==="rtl"}const iie={convertOffsetParentRelativeRectToViewportRelativeRect:Gae,getDocumentElement:br,getClippingRect:oie,getOffsetParent:Ym,getElementRects:nie,getClientRects:Xae,getDimensions:lie,getScale:ia,isElement:xl,isRTL:aie},sie=Rae,cie=Pae,uie=(e,t,o)=>{const l=new Map,r={platform:iie,...o},n={...r.platform,_c:l};return Oae(e,t,{...r,platform:n})};Ae({});const die=e=>{if(!gt)return;if(!e)return e;const t=Do(e);return t||(xt(e)?t:e)},pie=({middleware:e,placement:t,strategy:o})=>{const l=V(),r=V(),n=V(),a=V(),i=V({}),c={x:n,y:a,placement:t,strategy:o,middlewareData:i},u=async()=>{if(!gt)return;const d=die(l),p=Do(r);if(!d||!p)return;const f=await uie(d,p,{placement:s(t),strategy:s(o),middleware:s(e)});Fi(c).forEach(h=>{c[h].value=f[h]})};return Ze(()=>{Ao(()=>{u()})}),{...c,update:u,referenceRef:l,contentRef:r}},fie=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(o){const l=s(e);return l?cie({element:l,padding:t}).fn(o):{}}});function hie(e){const t=V();function o(){if(e.value==null)return;const{selectionStart:r,selectionEnd:n,value:a}=e.value;if(r==null||n==null)return;const i=a.slice(0,Math.max(0,r)),c=a.slice(Math.max(0,n));t.value={selectionStart:r,selectionEnd:n,value:a,beforeTxt:i,afterTxt:c}}function l(){if(e.value==null||t.value==null)return;const{value:r}=e.value,{beforeTxt:n,afterTxt:a,selectionStart:i}=t.value;if(n==null||a==null||i==null)return;let c=r.length;if(r.endsWith(a))c=r.length-a.length;else if(r.startsWith(n))c=n.length;else{const u=n[i-1],d=r.indexOf(u,i-1);d!==-1&&(c=d+1)}e.value.setSelectionRange(c,c)}return[o,l]}const vie=(e,t,o)=>na(e.subTree).filter(n=>{var a;return Vt(n)&&((a=n.type)==null?void 0:a.name)===t&&!!n.component}).map(n=>n.component.uid).map(n=>o[n]).filter(n=>!!n),Gm=(e,t)=>{const o={},l=Et([]);return{children:l,addChild:a=>{o[a.uid]=a,l.value=vie(e,t,o)},removeChild:a=>{delete o[a],l.value=l.value.filter(i=>i.uid!==a)}}},mie="2.2.21",gie=(e=[])=>({version:mie,install:(o,l)=>{o[fh]||(o[fh]=!0,e.forEach(r=>o.use(r)),l&&Am(l,o,!0))}}),bie=Ae({zIndex:{type:de([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),_ie={scroll:({scrollTop:e,fixed:t})=>et(e)&&Jt(t),[Ot]:e=>Jt(e)};var Te=(e,t)=>{const o=e.__vccOpts||e;for(const[l,r]of t)o[l]=r;return o};const Xm="ElAffix",yie=te({name:Xm}),wie=te({...yie,props:bie,emits:_ie,setup(e,{expose:t,emit:o}){const l=e,r=_e("affix"),n=Et(),a=Et(),i=Et(),{height:c}=D4(),{height:u,width:d,top:p,bottom:f,update:h}=ih(a,{windowScroll:!1}),v=ih(n),m=V(!1),g=V(0),_=V(0),w=S(()=>({height:m.value?`${u.value}px`:"",width:m.value?`${d.value}px`:""})),b=S(()=>{if(!m.value)return{};const z=l.offset?Yt(l.offset):0;return{height:`${u.value}px`,width:`${d.value}px`,top:l.position==="top"?z:"",bottom:l.position==="bottom"?z:"",transform:_.value?`translateY(${_.value}px)`:"",zIndex:l.zIndex}}),x=()=>{if(!!i.value)if(g.value=i.value instanceof Window?document.documentElement.scrollTop:i.value.scrollTop||0,l.position==="top")if(l.target){const z=v.bottom.value-l.offset-u.value;m.value=l.offset>p.value&&v.bottom.value>0,_.value=z<0?z:0}else m.value=l.offset>p.value;else if(l.target){const z=c.value-v.top.value-l.offset-u.value;m.value=c.value-l.offsetv.top.value,_.value=z<0?-z:0}else m.value=c.value-l.offset{h(),o("scroll",{scrollTop:g.value,fixed:m.value})};return ve(m,z=>o("change",z)),Ze(()=>{var z;l.target?(n.value=(z=document.querySelector(l.target))!=null?z:void 0,n.value||Zt(Xm,`Target is not existed: ${l.target}`)):n.value=document.documentElement,i.value=vp(a.value,!0),h()}),At(i,"scroll",k),Ao(x),t({update:x,updateRoot:h}),(z,M)=>(y(),$("div",{ref_key:"root",ref:a,class:T(s(r).b()),style:Be(s(w))},[C("div",{class:T({[s(r).m("fixed")]:m.value}),style:Be(s(b))},[ge(z.$slots,"default")],6)],6))}});var xie=Te(wie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const kie=at(xie),Cie=Ae({size:{type:de([Number,String])},color:{type:String}}),$ie=te({name:"ElIcon",inheritAttrs:!1}),Sie=te({...$ie,props:Cie,setup(e){const t=e,o=_e("icon"),l=S(()=>{const{size:r,color:n}=t;return!r&&!n?{}:{fontSize:lo(r)?void 0:Yt(r),"--color":n}});return(r,n)=>(y(),$("i",ht({class:s(o).b(),style:s(l)},r.$attrs),[ge(r.$slots,"default")],16))}});var zie=Te(Sie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const De=at(zie),Eie=["light","dark"],Mie=Ae({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Fi(Fr),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Eie,default:"light"}}),Tie={close:e=>e instanceof MouseEvent},Aie=te({name:"ElAlert"}),Vie=te({...Aie,props:Mie,emits:Tie,setup(e,{emit:t}){const o=e,{Close:l}=wp,r=ao(),n=_e("alert"),a=V(!0),i=S(()=>Fr[o.type]),c=S(()=>[n.e("icon"),{[n.is("big")]:!!o.description||!!r.default}]),u=S(()=>({[n.is("bold")]:o.description||r.default})),d=p=>{a.value=!1,t("close",p)};return(p,f)=>(y(),ue(Kt,{name:s(n).b("fade"),persisted:""},{default:Z(()=>[Xe(C("div",{class:T([s(n).b(),s(n).m(p.type),s(n).is("center",p.center),s(n).is(p.effect)]),role:"alert"},[p.showIcon&&s(i)?(y(),ue(s(De),{key:0,class:T(s(c))},{default:Z(()=>[(y(),ue(pt(s(i))))]),_:1},8,["class"])):ae("v-if",!0),C("div",{class:T(s(n).e("content"))},[p.title||p.$slots.title?(y(),$("span",{key:0,class:T([s(n).e("title"),s(u)])},[ge(p.$slots,"title",{},()=>[ot(Ce(p.title),1)])],2)):ae("v-if",!0),p.$slots.default||p.description?(y(),$("p",{key:1,class:T(s(n).e("description"))},[ge(p.$slots,"default",{},()=>[ot(Ce(p.description),1)])],2)):ae("v-if",!0),p.closable?(y(),$(Pe,{key:2},[p.closeText?(y(),$("div",{key:0,class:T([s(n).e("close-btn"),s(n).is("customed")]),onClick:d},Ce(p.closeText),3)):(y(),ue(s(De),{key:1,class:T(s(n).e("close-btn")),onClick:d},{default:Z(()=>[K(s(l))]),_:1},8,["class"]))],64)):ae("v-if",!0)],2)],2),[[_t,a.value]])]),_:3},8,["name"]))}});var Oie=Te(Vie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const Pie=at(Oie);let cl;const Lie=` + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; +`,Iie=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Rie(e){const t=window.getComputedStyle(e),o=t.getPropertyValue("box-sizing"),l=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),r=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Iie.map(a=>`${a}:${t.getPropertyValue(a)}`).join(";"),paddingSize:l,borderSize:r,boxSizing:o}}function kh(e,t=1,o){var l;cl||(cl=document.createElement("textarea"),document.body.appendChild(cl));const{paddingSize:r,borderSize:n,boxSizing:a,contextStyle:i}=Rie(e);cl.setAttribute("style",`${i};${Lie}`),cl.value=e.value||e.placeholder||"";let c=cl.scrollHeight;const u={};a==="border-box"?c=c+n:a==="content-box"&&(c=c-r),cl.value="";const d=cl.scrollHeight-r;if(et(t)){let p=d*t;a==="border-box"&&(p=p+r+n),c=Math.max(p,c),u.minHeight=`${p}px`}if(et(o)){let p=d*o;a==="border-box"&&(p=p+r+n),c=Math.min(p,c)}return u.height=`${c}px`,(l=cl.parentNode)==null||l.removeChild(cl),cl=void 0,u}const Hie=Ae({id:{type:String,default:void 0},size:Lo,disabled:Boolean,modelValue:{type:de([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:de([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Mt},prefixIcon:{type:Mt},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:de([Object,Array,String]),default:()=>Lt({})}}),Nie={[nt]:e=>Ge(e),input:e=>Ge(e),change:e=>Ge(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Bie=["role"],Die=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],Fie=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],jie=te({name:"ElInput",inheritAttrs:!1}),Kie=te({...jie,props:Hie,emits:Nie,setup(e,{expose:t,emit:o}){const l=e,r=us(),n=ao(),a=S(()=>{const X={};return l.containerRole==="combobox"&&(X["aria-haspopup"]=r["aria-haspopup"],X["aria-owns"]=r["aria-owns"],X["aria-expanded"]=r["aria-expanded"]),X}),i=$p({excludeKeys:S(()=>Object.keys(a.value))}),{form:c,formItem:u}=So(),{inputId:d}=Yr(l,{formItemContext:u}),p=Xt(),f=zl(),h=_e("input"),v=_e("textarea"),m=Et(),g=Et(),_=V(!1),w=V(!1),b=V(!1),x=V(!1),k=V(),z=Et(l.inputStyle),M=S(()=>m.value||g.value),E=S(()=>{var X;return(X=c==null?void 0:c.statusIcon)!=null?X:!1}),A=S(()=>(u==null?void 0:u.validateState)||""),O=S(()=>A.value&&hm[A.value]),D=S(()=>x.value?um:Z4),I=S(()=>[r.style,l.inputStyle]),N=S(()=>[l.inputStyle,z.value,{resize:l.resize}]),B=S(()=>ro(l.modelValue)?"":String(l.modelValue)),F=S(()=>l.clearable&&!f.value&&!l.readonly&&!!B.value&&(_.value||w.value)),H=S(()=>l.showPassword&&!f.value&&!l.readonly&&!!B.value&&(!!B.value||_.value)),L=S(()=>l.showWordLimit&&!!i.value.maxlength&&(l.type==="text"||l.type==="textarea")&&!f.value&&!l.readonly&&!l.showPassword),P=S(()=>Array.from(B.value).length),R=S(()=>!!L.value&&P.value>Number(i.value.maxlength)),J=S(()=>!!n.suffix||!!l.suffixIcon||F.value||l.showPassword||L.value||!!A.value&&E.value),[oe,G]=hie(m);bo(g,X=>{if(!L.value||l.resize!=="both")return;const se=X[0],{width:ze}=se.contentRect;k.value={right:`calc(100% - ${ze+15+6}px)`}});const le=()=>{const{type:X,autosize:se}=l;if(!(!gt||X!=="textarea"))if(se){const ze=ft(se)?se.minRows:void 0,Ve=ft(se)?se.maxRows:void 0;z.value={...kh(g.value,ze,Ve)}}else z.value={minHeight:kh(g.value).minHeight}},he=()=>{const X=M.value;!X||X.value===B.value||(X.value=B.value)},j=async X=>{oe();let{value:se}=X.target;if(l.formatter&&(se=l.parser?l.parser(se):se,se=l.formatter(se)),!b.value){if(se===B.value){he();return}o(nt,se),o("input",se),await Ne(),he(),G()}},re=X=>{o("change",X.target.value)},Y=X=>{o("compositionstart",X),b.value=!0},W=X=>{var se;o("compositionupdate",X);const ze=(se=X.target)==null?void 0:se.value,Ve=ze[ze.length-1]||"";b.value=!ku(Ve)},ce=X=>{o("compositionend",X),b.value&&(b.value=!1,j(X))},ne=()=>{x.value=!x.value,xe()},xe=async()=>{var X;await Ne(),(X=M.value)==null||X.focus()},U=()=>{var X;return(X=M.value)==null?void 0:X.blur()},Q=X=>{_.value=!0,o("focus",X)},fe=X=>{var se;_.value=!1,o("blur",X),l.validateEvent&&((se=u==null?void 0:u.validate)==null||se.call(u,"blur").catch(ze=>void 0))},we=X=>{w.value=!1,o("mouseleave",X)},$e=X=>{w.value=!0,o("mouseenter",X)},pe=X=>{o("keydown",X)},Se=()=>{var X;(X=M.value)==null||X.select()},me=()=>{o(nt,""),o("change",""),o("clear"),o("input","")};return ve(()=>l.modelValue,()=>{var X;Ne(()=>le()),l.validateEvent&&((X=u==null?void 0:u.validate)==null||X.call(u,"change").catch(se=>void 0))}),ve(B,()=>he()),ve(()=>l.type,async()=>{await Ne(),he(),le()}),Ze(()=>{!l.formatter&&l.parser,he(),Ne(le)}),t({input:m,textarea:g,ref:M,textareaStyle:N,autosize:Rt(l,"autosize"),focus:xe,blur:U,select:Se,clear:me,resizeTextarea:le}),(X,se)=>Xe((y(),$("div",ht(s(a),{class:[X.type==="textarea"?s(v).b():s(h).b(),s(h).m(s(p)),s(h).is("disabled",s(f)),s(h).is("exceed",s(R)),{[s(h).b("group")]:X.$slots.prepend||X.$slots.append,[s(h).bm("group","append")]:X.$slots.append,[s(h).bm("group","prepend")]:X.$slots.prepend,[s(h).m("prefix")]:X.$slots.prefix||X.prefixIcon,[s(h).m("suffix")]:X.$slots.suffix||X.suffixIcon||X.clearable||X.showPassword,[s(h).bm("suffix","password-clear")]:s(F)&&s(H)},X.$attrs.class],style:s(I),role:X.containerRole,onMouseenter:$e,onMouseleave:we}),[ae(" input "),X.type!=="textarea"?(y(),$(Pe,{key:0},[ae(" prepend slot "),X.$slots.prepend?(y(),$("div",{key:0,class:T(s(h).be("group","prepend"))},[ge(X.$slots,"prepend")],2)):ae("v-if",!0),C("div",{class:T([s(h).e("wrapper"),s(h).is("focus",_.value)])},[ae(" prefix slot "),X.$slots.prefix||X.prefixIcon?(y(),$("span",{key:0,class:T(s(h).e("prefix"))},[C("span",{class:T(s(h).e("prefix-inner"))},[ge(X.$slots,"prefix"),X.prefixIcon?(y(),ue(s(De),{key:0,class:T(s(h).e("icon"))},{default:Z(()=>[(y(),ue(pt(X.prefixIcon)))]),_:1},8,["class"])):ae("v-if",!0)],2)],2)):ae("v-if",!0),C("input",ht({id:s(d),ref_key:"input",ref:m,class:s(h).e("inner")},s(i),{type:X.showPassword?x.value?"text":"password":X.type,disabled:s(f),formatter:X.formatter,parser:X.parser,readonly:X.readonly,autocomplete:X.autocomplete,tabindex:X.tabindex,"aria-label":X.label,placeholder:X.placeholder,style:X.inputStyle,form:l.form,onCompositionstart:Y,onCompositionupdate:W,onCompositionend:ce,onInput:j,onFocus:Q,onBlur:fe,onChange:re,onKeydown:pe}),null,16,Die),ae(" suffix slot "),s(J)?(y(),$("span",{key:1,class:T(s(h).e("suffix"))},[C("span",{class:T(s(h).e("suffix-inner"))},[!s(F)||!s(H)||!s(L)?(y(),$(Pe,{key:0},[ge(X.$slots,"suffix"),X.suffixIcon?(y(),ue(s(De),{key:0,class:T(s(h).e("icon"))},{default:Z(()=>[(y(),ue(pt(X.suffixIcon)))]),_:1},8,["class"])):ae("v-if",!0)],64)):ae("v-if",!0),s(F)?(y(),ue(s(De),{key:1,class:T([s(h).e("icon"),s(h).e("clear")]),onMousedown:Ue(s($t),["prevent"]),onClick:me},{default:Z(()=>[K(s(hr))]),_:1},8,["class","onMousedown"])):ae("v-if",!0),s(H)?(y(),ue(s(De),{key:2,class:T([s(h).e("icon"),s(h).e("password")]),onClick:ne},{default:Z(()=>[(y(),ue(pt(s(D))))]),_:1},8,["class"])):ae("v-if",!0),s(L)?(y(),$("span",{key:3,class:T(s(h).e("count"))},[C("span",{class:T(s(h).e("count-inner"))},Ce(s(P))+" / "+Ce(s(i).maxlength),3)],2)):ae("v-if",!0),s(A)&&s(O)&&s(E)?(y(),ue(s(De),{key:4,class:T([s(h).e("icon"),s(h).e("validateIcon"),s(h).is("loading",s(A)==="validating")])},{default:Z(()=>[(y(),ue(pt(s(O))))]),_:1},8,["class"])):ae("v-if",!0)],2)],2)):ae("v-if",!0)],2),ae(" append slot "),X.$slots.append?(y(),$("div",{key:1,class:T(s(h).be("group","append"))},[ge(X.$slots,"append")],2)):ae("v-if",!0)],64)):(y(),$(Pe,{key:1},[ae(" textarea "),C("textarea",ht({id:s(d),ref_key:"textarea",ref:g,class:s(v).e("inner")},s(i),{tabindex:X.tabindex,disabled:s(f),readonly:X.readonly,autocomplete:X.autocomplete,style:s(N),"aria-label":X.label,placeholder:X.placeholder,form:l.form,onCompositionstart:Y,onCompositionupdate:W,onCompositionend:ce,onInput:j,onFocus:Q,onBlur:fe,onChange:re,onKeydown:pe}),null,16,Fie),s(L)?(y(),$("span",{key:0,style:Be(k.value),class:T(s(h).e("count"))},Ce(s(P))+" / "+Ce(s(i).maxlength),7)):ae("v-if",!0)],64))],16,Bie)),[[_t,X.type!=="hidden"]])}});var Wie=Te(Kie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const mo=at(Wie),Gn=4,Jm={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},qie=({move:e,size:t,bar:o})=>({[o.size]:t,transform:`translate${o.axis}(${e}%)`}),Uie=Ae({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Yie="Thumb",Gie=te({__name:"thumb",props:Uie,setup(e){const t=e,o=Re($m),l=_e("scrollbar");o||Zt(Yie,"can not inject scrollbar context");const r=V(),n=V(),a=V({}),i=V(!1);let c=!1,u=!1,d=gt?document.onselectstart:null;const p=S(()=>Jm[t.vertical?"vertical":"horizontal"]),f=S(()=>qie({size:t.size,move:t.move,bar:p.value})),h=S(()=>r.value[p.value.offset]**2/o.wrapElement[p.value.scrollSize]/t.ratio/n.value[p.value.offset]),v=z=>{var M;if(z.stopPropagation(),z.ctrlKey||[1,2].includes(z.button))return;(M=window.getSelection())==null||M.removeAllRanges(),g(z);const E=z.currentTarget;!E||(a.value[p.value.axis]=E[p.value.offset]-(z[p.value.client]-E.getBoundingClientRect()[p.value.direction]))},m=z=>{if(!n.value||!r.value||!o.wrapElement)return;const M=Math.abs(z.target.getBoundingClientRect()[p.value.direction]-z[p.value.client]),E=n.value[p.value.offset]/2,A=(M-E)*100*h.value/r.value[p.value.offset];o.wrapElement[p.value.scroll]=A*o.wrapElement[p.value.scrollSize]/100},g=z=>{z.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",_),document.addEventListener("mouseup",w),d=document.onselectstart,document.onselectstart=()=>!1},_=z=>{if(!r.value||!n.value||c===!1)return;const M=a.value[p.value.axis];if(!M)return;const E=(r.value.getBoundingClientRect()[p.value.direction]-z[p.value.client])*-1,A=n.value[p.value.offset]-M,O=(E-A)*100*h.value/r.value[p.value.offset];o.wrapElement[p.value.scroll]=O*o.wrapElement[p.value.scrollSize]/100},w=()=>{c=!1,a.value[p.value.axis]=0,document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",w),k(),u&&(i.value=!1)},b=()=>{u=!1,i.value=!!t.size},x=()=>{u=!0,i.value=c};It(()=>{k(),document.removeEventListener("mouseup",w)});const k=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return At(Rt(o,"scrollbarElement"),"mousemove",b),At(Rt(o,"scrollbarElement"),"mouseleave",x),(z,M)=>(y(),ue(Kt,{name:s(l).b("fade"),persisted:""},{default:Z(()=>[Xe(C("div",{ref_key:"instance",ref:r,class:T([s(l).e("bar"),s(l).is(s(p).key)]),onMousedown:m},[C("div",{ref_key:"thumb",ref:n,class:T(s(l).e("thumb")),style:Be(s(f)),onMousedown:v},null,38)],34),[[_t,z.always||i.value]])]),_:1},8,["name"]))}});var Ch=Te(Gie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const Xie=Ae({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),Jie=te({__name:"bar",props:Xie,setup(e,{expose:t}){const o=e,l=V(0),r=V(0);return t({handleScroll:a=>{if(a){const i=a.offsetHeight-Gn,c=a.offsetWidth-Gn;r.value=a.scrollTop*100/i*o.ratioY,l.value=a.scrollLeft*100/c*o.ratioX}}}),(a,i)=>(y(),$(Pe,null,[K(Ch,{move:l.value,ratio:a.ratioX,size:a.width,always:a.always},null,8,["move","ratio","size","always"]),K(Ch,{move:r.value,ratio:a.ratioY,size:a.height,vertical:"",always:a.always},null,8,["move","ratio","size","always"])],64))}});var Zie=Te(Jie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const Qie=Ae({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:de([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),ese={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(et)},tse=te({name:"ElScrollbar"}),ose=te({...tse,props:Qie,emits:ese,setup(e,{expose:t,emit:o}){const l=e,r=_e("scrollbar");let n,a;const i=V(),c=V(),u=V(),d=V("0"),p=V("0"),f=V(),h=V(1),v=V(1),m=S(()=>{const k={};return l.height&&(k.height=Yt(l.height)),l.maxHeight&&(k.maxHeight=Yt(l.maxHeight)),[l.wrapStyle,k]}),g=()=>{var k;c.value&&((k=f.value)==null||k.handleScroll(c.value),o("scroll",{scrollTop:c.value.scrollTop,scrollLeft:c.value.scrollLeft}))};function _(k,z){ft(k)?c.value.scrollTo(k):et(k)&&et(z)&&c.value.scrollTo(k,z)}const w=k=>{!et(k)||(c.value.scrollTop=k)},b=k=>{!et(k)||(c.value.scrollLeft=k)},x=()=>{if(!c.value)return;const k=c.value.offsetHeight-Gn,z=c.value.offsetWidth-Gn,M=k**2/c.value.scrollHeight,E=z**2/c.value.scrollWidth,A=Math.max(M,l.minSize),O=Math.max(E,l.minSize);h.value=M/(k-M)/(A/(k-A)),v.value=E/(z-E)/(O/(z-O)),p.value=A+Gnl.noresize,k=>{k?(n==null||n(),a==null||a()):({stop:n}=bo(u,x),a=At("resize",x))},{immediate:!0}),ve(()=>[l.maxHeight,l.height],()=>{l.native||Ne(()=>{var k;x(),c.value&&((k=f.value)==null||k.handleScroll(c.value))})}),st($m,wt({scrollbarElement:i,wrapElement:c})),Ze(()=>{l.native||Ne(()=>{x()})}),jl(()=>x()),t({wrap$:c,update:x,scrollTo:_,setScrollTop:w,setScrollLeft:b,handleScroll:g}),(k,z)=>(y(),$("div",{ref_key:"scrollbar$",ref:i,class:T(s(r).b())},[C("div",{ref_key:"wrap$",ref:c,class:T([k.wrapClass,s(r).e("wrap"),{[s(r).em("wrap","hidden-default")]:!k.native}]),style:Be(s(m)),onScroll:g},[(y(),ue(pt(k.tag),{ref_key:"resize$",ref:u,class:T([s(r).e("view"),k.viewClass]),style:Be(k.viewStyle)},{default:Z(()=>[ge(k.$slots,"default")]),_:3},8,["class","style"]))],38),k.native?ae("v-if",!0):(y(),ue(Zie,{key:0,ref_key:"barRef",ref:f,height:p.value,width:d.value,always:k.always,"ratio-x":v.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var lse=Te(ose,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const _r=at(lse),rse={LIGHT:"light",DARK:"dark"},nse=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Zm=Ae({role:{type:String,values:nse,default:"tooltip"}}),ase=te({name:"ElPopperRoot",inheritAttrs:!1}),ise=te({...ase,props:Zm,setup(e,{expose:t}){const o=e,l=V(),r=V(),n=V(),a=V(),i=S(()=>o.role),c={triggerRef:l,popperInstanceRef:r,contentRef:n,referenceRef:a,role:i};return t(c),st(Sp,c),(u,d)=>ge(u.$slots,"default")}});var sse=Te(ise,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Qm=Ae({arrowOffset:{type:Number,default:5}}),cse=te({name:"ElPopperArrow",inheritAttrs:!1}),use=te({...cse,props:Qm,setup(e,{expose:t}){const o=e,l=_e("popper"),{arrowOffset:r,arrowRef:n}=Re(Em,void 0);return ve(()=>o.arrowOffset,a=>{r.value=a}),It(()=>{n.value=void 0}),t({arrowRef:n}),(a,i)=>(y(),$("span",{ref_key:"arrowRef",ref:n,class:T(s(l).e("arrow")),"data-popper-arrow":""},null,2))}});var dse=Te(use,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const pse="ElOnlyChild",eg=te({name:pse,setup(e,{slots:t,attrs:o}){var l;const r=Re(Im),n=zae((l=r==null?void 0:r.setForwardRef)!=null?l:$t);return()=>{var a;const i=(a=t.default)==null?void 0:a.call(t,o);if(!i||i.length>1)return null;const c=tg(i);return c?Xe(Nl(c,o),[[n]]):null}}});function tg(e){if(!e)return null;const t=e;for(const o of t){if(ft(o))switch(o.type){case ko:continue;case Na:case"svg":return $h(o);case Pe:return tg(o.children);default:return o}return $h(o)}return null}function $h(e){const t=_e("only-child");return K("span",{class:t.e("content")},[e])}const og=Ae({virtualRef:{type:de(Object)},virtualTriggering:Boolean,onMouseenter:{type:de(Function)},onMouseleave:{type:de(Function)},onClick:{type:de(Function)},onKeydown:{type:de(Function)},onFocus:{type:de(Function)},onBlur:{type:de(Function)},onContextmenu:{type:de(Function)},id:String,open:Boolean}),fse=te({name:"ElPopperTrigger",inheritAttrs:!1}),hse=te({...fse,props:og,setup(e,{expose:t}){const o=e,{role:l,triggerRef:r}=Re(Sp,void 0);Sae(r);const n=S(()=>i.value?o.id:void 0),a=S(()=>{if(l&&l.value==="tooltip")return o.open&&o.id?o.id:void 0}),i=S(()=>{if(l&&l.value!=="tooltip")return l.value}),c=S(()=>i.value?`${o.open}`:void 0);let u;return Ze(()=>{ve(()=>o.virtualRef,d=>{d&&(r.value=Do(d))},{immediate:!0}),ve(r,(d,p)=>{u==null||u(),u=void 0,yl(d)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(f=>{var h;const v=o[f];v&&(d.addEventListener(f.slice(2).toLowerCase(),v),(h=p==null?void 0:p.removeEventListener)==null||h.call(p,f.slice(2).toLowerCase(),v))}),u=ve([n,a,i,c],f=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{ro(f[v])?d.removeAttribute(h):d.setAttribute(h,f[v])})},{immediate:!0})),yl(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(f=>p.removeAttribute(f))},{immediate:!0})}),It(()=>{u==null||u(),u=void 0}),t({triggerRef:r}),(d,p)=>d.virtualTriggering?ae("v-if",!0):(y(),ue(s(eg),ht({key:0},d.$attrs,{"aria-controls":s(n),"aria-describedby":s(a),"aria-expanded":s(c),"aria-haspopup":s(i)}),{default:Z(()=>[ge(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var vse=Te(hse,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),Oo="top",al="bottom",il="right",Po="left",Lp="auto",_s=[Oo,al,il,Po],wa="start",Wi="end",mse="clippingParents",lg="viewport",ti="popper",gse="reference",Sh=_s.reduce(function(e,t){return e.concat([t+"-"+wa,t+"-"+Wi])},[]),Pn=[].concat(_s,[Lp]).reduce(function(e,t){return e.concat([t,t+"-"+wa,t+"-"+Wi])},[]),bse="beforeRead",_se="read",yse="afterRead",wse="beforeMain",xse="main",kse="afterMain",Cse="beforeWrite",$se="write",Sse="afterWrite",zse=[bse,_se,yse,wse,xse,kse,Cse,$se,Sse];function Fl(e){return e?(e.nodeName||"").toLowerCase():null}function El(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xa(e){var t=El(e).Element;return e instanceof t||e instanceof Element}function tl(e){var t=El(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ip(e){if(typeof ShadowRoot>"u")return!1;var t=El(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ese(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var l=t.styles[o]||{},r=t.attributes[o]||{},n=t.elements[o];!tl(n)||!Fl(n)||(Object.assign(n.style,l),Object.keys(r).forEach(function(a){var i=r[a];i===!1?n.removeAttribute(a):n.setAttribute(a,i===!0?"":i)}))})}function Mse(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(l){var r=t.elements[l],n=t.attributes[l]||{},a=Object.keys(t.styles.hasOwnProperty(l)?t.styles[l]:o[l]),i=a.reduce(function(c,u){return c[u]="",c},{});!tl(r)||!Fl(r)||(Object.assign(r.style,i),Object.keys(n).forEach(function(c){r.removeAttribute(c)}))})}}var rg={name:"applyStyles",enabled:!0,phase:"write",fn:Ese,effect:Mse,requires:["computeStyles"]};function Hl(e){return e.split("-")[0]}var _n=Math.max,Rc=Math.min,ka=Math.round;function Ca(e,t){t===void 0&&(t=!1);var o=e.getBoundingClientRect(),l=1,r=1;if(tl(e)&&t){var n=e.offsetHeight,a=e.offsetWidth;a>0&&(l=ka(o.width)/a||1),n>0&&(r=ka(o.height)/n||1)}return{width:o.width/l,height:o.height/r,top:o.top/r,right:o.right/l,bottom:o.bottom/r,left:o.left/l,x:o.left/l,y:o.top/r}}function Rp(e){var t=Ca(e),o=e.offsetWidth,l=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:l}}function ng(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&Ip(o)){var l=t;do{if(l&&e.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function sr(e){return El(e).getComputedStyle(e)}function Tse(e){return["table","td","th"].indexOf(Fl(e))>=0}function Gr(e){return((xa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Au(e){return Fl(e)==="html"?e:e.assignedSlot||e.parentNode||(Ip(e)?e.host:null)||Gr(e)}function zh(e){return!tl(e)||sr(e).position==="fixed"?null:e.offsetParent}function Ase(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&tl(e)){var l=sr(e);if(l.position==="fixed")return null}var r=Au(e);for(Ip(r)&&(r=r.host);tl(r)&&["html","body"].indexOf(Fl(r))<0;){var n=sr(r);if(n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||t&&n.willChange==="filter"||t&&n.filter&&n.filter!=="none")return r;r=r.parentNode}return null}function ys(e){for(var t=El(e),o=zh(e);o&&Tse(o)&&sr(o).position==="static";)o=zh(o);return o&&(Fl(o)==="html"||Fl(o)==="body"&&sr(o).position==="static")?t:o||Ase(e)||t}function Hp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bi(e,t,o){return _n(e,Rc(t,o))}function Vse(e,t,o){var l=bi(e,t,o);return l>o?o:l}function ag(){return{top:0,right:0,bottom:0,left:0}}function ig(e){return Object.assign({},ag(),e)}function sg(e,t){return t.reduce(function(o,l){return o[l]=e,o},{})}var Ose=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,ig(typeof e!="number"?e:sg(e,_s))};function Pse(e){var t,o=e.state,l=e.name,r=e.options,n=o.elements.arrow,a=o.modifiersData.popperOffsets,i=Hl(o.placement),c=Hp(i),u=[Po,il].indexOf(i)>=0,d=u?"height":"width";if(!(!n||!a)){var p=Ose(r.padding,o),f=Rp(n),h=c==="y"?Oo:Po,v=c==="y"?al:il,m=o.rects.reference[d]+o.rects.reference[c]-a[c]-o.rects.popper[d],g=a[c]-o.rects.reference[c],_=ys(n),w=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,b=m/2-g/2,x=p[h],k=w-f[d]-p[v],z=w/2-f[d]/2+b,M=bi(x,z,k),E=c;o.modifiersData[l]=(t={},t[E]=M,t.centerOffset=M-z,t)}}function Lse(e){var t=e.state,o=e.options,l=o.element,r=l===void 0?"[data-popper-arrow]":l;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||!ng(t.elements.popper,r)||(t.elements.arrow=r))}var Ise={name:"arrow",enabled:!0,phase:"main",fn:Pse,effect:Lse,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $a(e){return e.split("-")[1]}var Rse={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hse(e){var t=e.x,o=e.y,l=window,r=l.devicePixelRatio||1;return{x:ka(t*r)/r||0,y:ka(o*r)/r||0}}function Eh(e){var t,o=e.popper,l=e.popperRect,r=e.placement,n=e.variation,a=e.offsets,i=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,f=a.x,h=f===void 0?0:f,v=a.y,m=v===void 0?0:v,g=typeof d=="function"?d({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var _=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),b=Po,x=Oo,k=window;if(u){var z=ys(o),M="clientHeight",E="clientWidth";if(z===El(o)&&(z=Gr(o),sr(z).position!=="static"&&i==="absolute"&&(M="scrollHeight",E="scrollWidth")),z=z,r===Oo||(r===Po||r===il)&&n===Wi){x=al;var A=p&&z===k&&k.visualViewport?k.visualViewport.height:z[M];m-=A-l.height,m*=c?1:-1}if(r===Po||(r===Oo||r===al)&&n===Wi){b=il;var O=p&&z===k&&k.visualViewport?k.visualViewport.width:z[E];h-=O-l.width,h*=c?1:-1}}var D=Object.assign({position:i},u&&Rse),I=d===!0?Hse({x:h,y:m}):{x:h,y:m};if(h=I.x,m=I.y,c){var N;return Object.assign({},D,(N={},N[x]=w?"0":"",N[b]=_?"0":"",N.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",N))}return Object.assign({},D,(t={},t[x]=w?m+"px":"",t[b]=_?h+"px":"",t.transform="",t))}function Nse(e){var t=e.state,o=e.options,l=o.gpuAcceleration,r=l===void 0?!0:l,n=o.adaptive,a=n===void 0?!0:n,i=o.roundOffsets,c=i===void 0?!0:i,u={placement:Hl(t.placement),variation:$a(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Eh(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Eh(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var cg={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nse,data:{}},Ls={passive:!0};function Bse(e){var t=e.state,o=e.instance,l=e.options,r=l.scroll,n=r===void 0?!0:r,a=l.resize,i=a===void 0?!0:a,c=El(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&u.forEach(function(d){d.addEventListener("scroll",o.update,Ls)}),i&&c.addEventListener("resize",o.update,Ls),function(){n&&u.forEach(function(d){d.removeEventListener("scroll",o.update,Ls)}),i&&c.removeEventListener("resize",o.update,Ls)}}var ug={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Bse,data:{}},Dse={left:"right",right:"left",bottom:"top",top:"bottom"};function tc(e){return e.replace(/left|right|bottom|top/g,function(t){return Dse[t]})}var Fse={start:"end",end:"start"};function Mh(e){return e.replace(/start|end/g,function(t){return Fse[t]})}function Np(e){var t=El(e),o=t.pageXOffset,l=t.pageYOffset;return{scrollLeft:o,scrollTop:l}}function Bp(e){return Ca(Gr(e)).left+Np(e).scrollLeft}function jse(e){var t=El(e),o=Gr(e),l=t.visualViewport,r=o.clientWidth,n=o.clientHeight,a=0,i=0;return l&&(r=l.width,n=l.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=l.offsetLeft,i=l.offsetTop)),{width:r,height:n,x:a+Bp(e),y:i}}function Kse(e){var t,o=Gr(e),l=Np(e),r=(t=e.ownerDocument)==null?void 0:t.body,n=_n(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=_n(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-l.scrollLeft+Bp(e),c=-l.scrollTop;return sr(r||o).direction==="rtl"&&(i+=_n(o.clientWidth,r?r.clientWidth:0)-n),{width:n,height:a,x:i,y:c}}function Dp(e){var t=sr(e),o=t.overflow,l=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+l)}function dg(e){return["html","body","#document"].indexOf(Fl(e))>=0?e.ownerDocument.body:tl(e)&&Dp(e)?e:dg(Au(e))}function _i(e,t){var o;t===void 0&&(t=[]);var l=dg(e),r=l===((o=e.ownerDocument)==null?void 0:o.body),n=El(l),a=r?[n].concat(n.visualViewport||[],Dp(l)?l:[]):l,i=t.concat(a);return r?i:i.concat(_i(Au(a)))}function k0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Wse(e){var t=Ca(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Th(e,t){return t===lg?k0(jse(e)):xa(t)?Wse(t):k0(Kse(Gr(e)))}function qse(e){var t=_i(Au(e)),o=["absolute","fixed"].indexOf(sr(e).position)>=0,l=o&&tl(e)?ys(e):e;return xa(l)?t.filter(function(r){return xa(r)&&ng(r,l)&&Fl(r)!=="body"}):[]}function Use(e,t,o){var l=t==="clippingParents"?qse(e):[].concat(t),r=[].concat(l,[o]),n=r[0],a=r.reduce(function(i,c){var u=Th(e,c);return i.top=_n(u.top,i.top),i.right=Rc(u.right,i.right),i.bottom=Rc(u.bottom,i.bottom),i.left=_n(u.left,i.left),i},Th(e,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function pg(e){var t=e.reference,o=e.element,l=e.placement,r=l?Hl(l):null,n=l?$a(l):null,a=t.x+t.width/2-o.width/2,i=t.y+t.height/2-o.height/2,c;switch(r){case Oo:c={x:a,y:t.y-o.height};break;case al:c={x:a,y:t.y+t.height};break;case il:c={x:t.x+t.width,y:i};break;case Po:c={x:t.x-o.width,y:i};break;default:c={x:t.x,y:t.y}}var u=r?Hp(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(n){case wa:c[u]=c[u]-(t[d]/2-o[d]/2);break;case Wi:c[u]=c[u]+(t[d]/2-o[d]/2);break}}return c}function qi(e,t){t===void 0&&(t={});var o=t,l=o.placement,r=l===void 0?e.placement:l,n=o.boundary,a=n===void 0?mse:n,i=o.rootBoundary,c=i===void 0?lg:i,u=o.elementContext,d=u===void 0?ti:u,p=o.altBoundary,f=p===void 0?!1:p,h=o.padding,v=h===void 0?0:h,m=ig(typeof v!="number"?v:sg(v,_s)),g=d===ti?gse:ti,_=e.rects.popper,w=e.elements[f?g:d],b=Use(xa(w)?w:w.contextElement||Gr(e.elements.popper),a,c),x=Ca(e.elements.reference),k=pg({reference:x,element:_,strategy:"absolute",placement:r}),z=k0(Object.assign({},_,k)),M=d===ti?z:x,E={top:b.top-M.top+m.top,bottom:M.bottom-b.bottom+m.bottom,left:b.left-M.left+m.left,right:M.right-b.right+m.right},A=e.modifiersData.offset;if(d===ti&&A){var O=A[r];Object.keys(E).forEach(function(D){var I=[il,al].indexOf(D)>=0?1:-1,N=[Oo,al].indexOf(D)>=0?"y":"x";E[D]+=O[N]*I})}return E}function Yse(e,t){t===void 0&&(t={});var o=t,l=o.placement,r=o.boundary,n=o.rootBoundary,a=o.padding,i=o.flipVariations,c=o.allowedAutoPlacements,u=c===void 0?Pn:c,d=$a(l),p=d?i?Sh:Sh.filter(function(v){return $a(v)===d}):_s,f=p.filter(function(v){return u.indexOf(v)>=0});f.length===0&&(f=p);var h=f.reduce(function(v,m){return v[m]=qi(e,{placement:m,boundary:r,rootBoundary:n,padding:a})[Hl(m)],v},{});return Object.keys(h).sort(function(v,m){return h[v]-h[m]})}function Gse(e){if(Hl(e)===Lp)return[];var t=tc(e);return[Mh(e),t,Mh(t)]}function Xse(e){var t=e.state,o=e.options,l=e.name;if(!t.modifiersData[l]._skip){for(var r=o.mainAxis,n=r===void 0?!0:r,a=o.altAxis,i=a===void 0?!0:a,c=o.fallbackPlacements,u=o.padding,d=o.boundary,p=o.rootBoundary,f=o.altBoundary,h=o.flipVariations,v=h===void 0?!0:h,m=o.allowedAutoPlacements,g=t.options.placement,_=Hl(g),w=_===g,b=c||(w||!v?[tc(g)]:Gse(g)),x=[g].concat(b).reduce(function(he,j){return he.concat(Hl(j)===Lp?Yse(t,{placement:j,boundary:d,rootBoundary:p,padding:u,flipVariations:v,allowedAutoPlacements:m}):j)},[]),k=t.rects.reference,z=t.rects.popper,M=new Map,E=!0,A=x[0],O=0;O=0,F=B?"width":"height",H=qi(t,{placement:D,boundary:d,rootBoundary:p,altBoundary:f,padding:u}),L=B?N?il:Po:N?al:Oo;k[F]>z[F]&&(L=tc(L));var P=tc(L),R=[];if(n&&R.push(H[I]<=0),i&&R.push(H[L]<=0,H[P]<=0),R.every(function(he){return he})){A=D,E=!1;break}M.set(D,R)}if(E)for(var J=v?3:1,oe=function(he){var j=x.find(function(re){var Y=M.get(re);if(Y)return Y.slice(0,he).every(function(W){return W})});if(j)return A=j,"break"},G=J;G>0;G--){var le=oe(G);if(le==="break")break}t.placement!==A&&(t.modifiersData[l]._skip=!0,t.placement=A,t.reset=!0)}}var Jse={name:"flip",enabled:!0,phase:"main",fn:Xse,requiresIfExists:["offset"],data:{_skip:!1}};function Ah(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function Vh(e){return[Oo,il,al,Po].some(function(t){return e[t]>=0})}function Zse(e){var t=e.state,o=e.name,l=t.rects.reference,r=t.rects.popper,n=t.modifiersData.preventOverflow,a=qi(t,{elementContext:"reference"}),i=qi(t,{altBoundary:!0}),c=Ah(a,l),u=Ah(i,r,n),d=Vh(c),p=Vh(u);t.modifiersData[o]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}var Qse={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zse};function ece(e,t,o){var l=Hl(e),r=[Po,Oo].indexOf(l)>=0?-1:1,n=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,a=n[0],i=n[1];return a=a||0,i=(i||0)*r,[Po,il].indexOf(l)>=0?{x:i,y:a}:{x:a,y:i}}function tce(e){var t=e.state,o=e.options,l=e.name,r=o.offset,n=r===void 0?[0,0]:r,a=Pn.reduce(function(d,p){return d[p]=ece(p,t.rects,n),d},{}),i=a[t.placement],c=i.x,u=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[l]=a}var oce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tce};function lce(e){var t=e.state,o=e.name;t.modifiersData[o]=pg({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var fg={name:"popperOffsets",enabled:!0,phase:"read",fn:lce,data:{}};function rce(e){return e==="x"?"y":"x"}function nce(e){var t=e.state,o=e.options,l=e.name,r=o.mainAxis,n=r===void 0?!0:r,a=o.altAxis,i=a===void 0?!1:a,c=o.boundary,u=o.rootBoundary,d=o.altBoundary,p=o.padding,f=o.tether,h=f===void 0?!0:f,v=o.tetherOffset,m=v===void 0?0:v,g=qi(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),_=Hl(t.placement),w=$a(t.placement),b=!w,x=Hp(_),k=rce(x),z=t.modifiersData.popperOffsets,M=t.rects.reference,E=t.rects.popper,A=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,O=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(z){if(n){var N,B=x==="y"?Oo:Po,F=x==="y"?al:il,H=x==="y"?"height":"width",L=z[x],P=L+g[B],R=L-g[F],J=h?-E[H]/2:0,oe=w===wa?M[H]:E[H],G=w===wa?-E[H]:-M[H],le=t.elements.arrow,he=h&&le?Rp(le):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ag(),re=j[B],Y=j[F],W=bi(0,M[H],he[H]),ce=b?M[H]/2-J-W-re-O.mainAxis:oe-W-re-O.mainAxis,ne=b?-M[H]/2+J+W+Y+O.mainAxis:G+W+Y+O.mainAxis,xe=t.elements.arrow&&ys(t.elements.arrow),U=xe?x==="y"?xe.clientTop||0:xe.clientLeft||0:0,Q=(N=D==null?void 0:D[x])!=null?N:0,fe=L+ce-Q-U,we=L+ne-Q,$e=bi(h?Rc(P,fe):P,L,h?_n(R,we):R);z[x]=$e,I[x]=$e-L}if(i){var pe,Se=x==="x"?Oo:Po,me=x==="x"?al:il,X=z[k],se=k==="y"?"height":"width",ze=X+g[Se],Ve=X-g[me],Le=[Oo,Po].indexOf(_)!==-1,Ke=(pe=D==null?void 0:D[k])!=null?pe:0,qe=Le?ze:X-M[se]-E[se]-Ke+O.altAxis,rt=Le?X+M[se]+E[se]-Ke-O.altAxis:Ve,be=h&&Le?Vse(qe,X,rt):bi(h?qe:ze,X,h?rt:Ve);z[k]=be,I[k]=be-X}t.modifiersData[l]=I}}var ace={name:"preventOverflow",enabled:!0,phase:"main",fn:nce,requiresIfExists:["offset"]};function ice(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function sce(e){return e===El(e)||!tl(e)?Np(e):ice(e)}function cce(e){var t=e.getBoundingClientRect(),o=ka(t.width)/e.offsetWidth||1,l=ka(t.height)/e.offsetHeight||1;return o!==1||l!==1}function uce(e,t,o){o===void 0&&(o=!1);var l=tl(t),r=tl(t)&&cce(t),n=Gr(t),a=Ca(e,r),i={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(l||!l&&!o)&&((Fl(t)!=="body"||Dp(n))&&(i=sce(t)),tl(t)?(c=Ca(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):n&&(c.x=Bp(n))),{x:a.left+i.scrollLeft-c.x,y:a.top+i.scrollTop-c.y,width:a.width,height:a.height}}function dce(e){var t=new Map,o=new Set,l=[];e.forEach(function(n){t.set(n.name,n)});function r(n){o.add(n.name);var a=[].concat(n.requires||[],n.requiresIfExists||[]);a.forEach(function(i){if(!o.has(i)){var c=t.get(i);c&&r(c)}}),l.push(n)}return e.forEach(function(n){o.has(n.name)||r(n)}),l}function pce(e){var t=dce(e);return zse.reduce(function(o,l){return o.concat(t.filter(function(r){return r.phase===l}))},[])}function fce(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function hce(e){var t=e.reduce(function(o,l){var r=o[l.name];return o[l.name]=r?Object.assign({},r,l,{options:Object.assign({},r.options,l.options),data:Object.assign({},r.data,l.data)}):l,o},{});return Object.keys(t).map(function(o){return t[o]})}var Oh={placement:"bottom",modifiers:[],strategy:"absolute"};function Ph(){for(var e=arguments.length,t=new Array(e),o=0;o{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const r=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||r?NodeFilter.FILTER_SKIP:l.tabIndex>=0||l===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Hh=(e,t)=>{for(const o of e)if(!_ce(o,t))return o},_ce=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},yce=e=>{const t=vg(e),o=Hh(t,e),l=Hh(t.reverse(),e);return[o,l]},wce=e=>e instanceof HTMLInputElement&&"select"in e,$r=(e,t)=>{if(e&&e.focus){const o=document.activeElement;if(e.focus({preventScroll:!0}),Wp.value=window.performance.now(),e!==o&&wce(e)&&t){if(e.tagName==="INPUT"){e.setSelectionRange(e.value.length,e.value.length);return}e.select()}}};function Nh(e,t){const o=[...e],l=e.indexOf(t);return l!==-1&&o.splice(l,1),o}const xce=()=>{let e=[];return{push:l=>{const r=e[0];r&&l!==r&&r.pause(),e=Nh(e,l),e.unshift(l)},remove:l=>{var r,n;e=Nh(e,l),(n=(r=e[0])==null?void 0:r.resume)==null||n.call(r)}}},kce=(e,t=!1)=>{const o=document.activeElement;for(const l of e)if($r(l,t),document.activeElement!==o)return},Bh=xce(),Cce=()=>Vu.value>Wp.value,Rs=()=>{Kp.value="pointer",Vu.value=window.performance.now()},Dh=()=>{Kp.value="keyboard",Vu.value=window.performance.now()},$ce=()=>(Ze(()=>{Is===0&&(document.addEventListener("mousedown",Rs),document.addEventListener("touchstart",Rs),document.addEventListener("keydown",Dh)),Is++}),It(()=>{Is--,Is<=0&&(document.removeEventListener("mousedown",Rs),document.removeEventListener("touchstart",Rs),document.removeEventListener("keydown",Dh))}),{focusReason:Kp,lastUserFocusTimestamp:Vu,lastAutomatedFocusTimestamp:Wp}),Hs=e=>new CustomEvent(gce,{...bce,detail:e}),Sce=te({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Ih,Rh,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const o=V();let l,r;const{focusReason:n}=$ce();yae(v=>{e.trapped&&!a.paused&&t("release-requested",v)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=v=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:m,altKey:g,ctrlKey:_,metaKey:w,currentTarget:b,shiftKey:x}=v,{loop:k}=e,z=m===je.tab&&!g&&!_&&!w,M=document.activeElement;if(z&&M){const E=b,[A,O]=yce(E);if(A&&O){if(!x&&M===O){const I=Hs({focusReason:n.value});t("focusout-prevented",I),I.defaultPrevented||(v.preventDefault(),k&&$r(A,!0))}else if(x&&[A,E].includes(M)){const I=Hs({focusReason:n.value});t("focusout-prevented",I),I.defaultPrevented||(v.preventDefault(),k&&$r(O,!0))}}else if(M===E){const I=Hs({focusReason:n.value});t("focusout-prevented",I),I.defaultPrevented||v.preventDefault()}}};st(jp,{focusTrapRef:o,onKeydown:i}),ve(()=>e.focusTrapEl,v=>{v&&(o.value=v)},{immediate:!0}),ve([o],([v],[m])=>{v&&(v.addEventListener("keydown",i),v.addEventListener("focusin",d),v.addEventListener("focusout",p)),m&&(m.removeEventListener("keydown",i),m.removeEventListener("focusin",d),m.removeEventListener("focusout",p))});const c=v=>{t(Ih,v)},u=v=>t(Rh,v),d=v=>{const m=s(o);if(!m)return;const g=v.target,_=v.relatedTarget,w=g&&m.contains(g);e.trapped||_&&m.contains(_)||(l=_),w&&t("focusin",v),!a.paused&&e.trapped&&(w?r=g:$r(r,!0))},p=v=>{const m=s(o);if(!(a.paused||!m))if(e.trapped){const g=v.relatedTarget;!ro(g)&&!m.contains(g)&&setTimeout(()=>{if(!a.paused&&e.trapped){const _=Hs({focusReason:n.value});t("focusout-prevented",_),_.defaultPrevented||$r(r,!0)}},0)}else{const g=v.target;g&&m.contains(g)||t("focusout",v)}};async function f(){await Ne();const v=s(o);if(v){Bh.push(a);const m=v.contains(document.activeElement)?l:document.activeElement;if(l=m,!v.contains(m)){const _=new Event(sd,Lh);v.addEventListener(sd,c),v.dispatchEvent(_),_.defaultPrevented||Ne(()=>{let w=e.focusStartEl;Ge(w)||($r(w),document.activeElement!==w&&(w="first")),w==="first"&&kce(vg(v),!0),(document.activeElement===m||w==="container")&&$r(v)})}}}function h(){const v=s(o);if(v){v.removeEventListener(sd,c);const m=new CustomEvent(cd,{...Lh,detail:{focusReason:n.value}});v.addEventListener(cd,u),v.dispatchEvent(m),!m.defaultPrevented&&(n.value=="keyboard"||!Cce())&&$r(l!=null?l:document.body,!0),v.removeEventListener(cd,c),Bh.remove(a)}}return Ze(()=>{e.trapped&&f(),ve(()=>e.trapped,v=>{v?f():h()})}),It(()=>{e.trapped&&h()}),{onKeydown:i}}});function zce(e,t,o,l,r,n){return ge(e.$slots,"default",{handleKeydown:e.onKeydown})}var Ou=Te(Sce,[["render",zce],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const Ece=["fixed","absolute"],Mce=Ae({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:de(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Pn,default:"bottom"},popperOptions:{type:de(Object),default:()=>({})},strategy:{type:String,values:Ece,default:"absolute"}}),mg=Ae({...Mce,id:String,style:{type:de([String,Array,Object])},className:{type:de([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:de([String,Array,Object])},popperStyle:{type:de([String,Array,Object])},referenceEl:{type:de(Object)},triggerTargetEl:{type:de(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),Tce={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Fh=(e,t)=>{const{placement:o,strategy:l,popperOptions:r}=e,n={placement:o,strategy:l,...r,modifiers:Vce(e)};return Oce(n,t),Pce(n,r==null?void 0:r.modifiers),n},Ace=e=>{if(!!gt)return Do(e)};function Vce(e){const{offset:t,gpuAcceleration:o,fallbackPlacements:l}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:l}},{name:"computeStyles",options:{gpuAcceleration:o}}]}function Oce(e,{arrowEl:t,arrowOffset:o}){e.modifiers.push({name:"arrow",options:{element:t,padding:o!=null?o:5}})}function Pce(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const Lce=te({name:"ElPopperContent"}),Ice=te({...Lce,props:mg,emits:Tce,setup(e,{expose:t,emit:o}){const l=e,{popperInstanceRef:r,contentRef:n,triggerRef:a,role:i}=Re(Sp,void 0),c=Re(Bl,void 0),{nextZIndex:u}=gr(),d=_e("popper"),p=V(),f=V("first"),h=V(),v=V();st(Em,{arrowRef:h,arrowOffset:v}),c&&(c.addInputId||c.removeInputId)&&st(Bl,{...c,addInputId:$t,removeInputId:$t});const m=V(l.zIndex||u()),g=V(!1);let _;const w=S(()=>Ace(l.referenceEl)||s(a)),b=S(()=>[{zIndex:s(m)},l.popperStyle]),x=S(()=>[d.b(),d.is("pure",l.pure),d.is(l.effect),l.popperClass]),k=S(()=>i&&i.value==="dialog"?"false":void 0),z=({referenceEl:B,popperContentEl:F,arrowEl:H})=>{const L=Fh(l,{arrowEl:H,arrowOffset:s(v)});return hg(B,F,L)},M=(B=!0)=>{var F;(F=s(r))==null||F.update(),B&&(m.value=l.zIndex||u())},E=()=>{var B,F;const H={name:"eventListeners",enabled:l.visible};(F=(B=s(r))==null?void 0:B.setOptions)==null||F.call(B,L=>({...L,modifiers:[...L.modifiers||[],H]})),M(!1),l.visible&&l.focusOnShow?g.value=!0:l.visible===!1&&(g.value=!1)},A=()=>{o("focus")},O=B=>{var F;((F=B.detail)==null?void 0:F.focusReason)!=="pointer"&&(f.value="first",o("blur"))},D=B=>{l.visible&&!g.value&&(B.target&&(f.value=B.target),g.value=!0)},I=B=>{l.trapping||(B.detail.focusReason==="pointer"&&B.preventDefault(),g.value=!1)},N=()=>{g.value=!1,o("close")};return Ze(()=>{let B;ve(w,F=>{var H;B==null||B();const L=s(r);if((H=L==null?void 0:L.destroy)==null||H.call(L),F){const P=s(p);n.value=P,r.value=z({referenceEl:F,popperContentEl:P,arrowEl:s(h)}),B=ve(()=>F.getBoundingClientRect(),()=>M(),{immediate:!0})}else r.value=void 0},{immediate:!0}),ve(()=>l.triggerTargetEl,(F,H)=>{_==null||_(),_=void 0;const L=s(F||p.value),P=s(H||p.value);yl(L)&&(_=ve([i,()=>l.ariaLabel,k,()=>l.id],R=>{["role","aria-label","aria-modal","id"].forEach((J,oe)=>{ro(R[oe])?L.removeAttribute(J):L.setAttribute(J,R[oe])})},{immediate:!0})),P!==L&&yl(P)&&["role","aria-label","aria-modal","id"].forEach(R=>{P.removeAttribute(R)})},{immediate:!0}),ve(()=>l.visible,E,{immediate:!0}),ve(()=>Fh(l,{arrowEl:s(h),arrowOffset:s(v)}),F=>{var H;return(H=r.value)==null?void 0:H.setOptions(F)})}),It(()=>{_==null||_(),_=void 0}),t({popperContentRef:p,popperInstanceRef:r,updatePopper:M,contentStyle:b}),(B,F)=>(y(),$("div",{ref_key:"popperContentRef",ref:p,style:Be(s(b)),class:T(s(x)),tabindex:"-1",onMouseenter:F[0]||(F[0]=H=>B.$emit("mouseenter",H)),onMouseleave:F[1]||(F[1]=H=>B.$emit("mouseleave",H))},[K(s(Ou),{trapped:g.value,"trap-on-focus-in":!0,"focus-trap-el":p.value,"focus-start-el":f.value,onFocusAfterTrapped:A,onFocusAfterReleased:O,onFocusin:D,onFocusoutPrevented:I,onReleaseRequested:N},{default:Z(()=>[ge(B.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var Rce=Te(Ice,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const gg=at(sse),Hce=_e("tooltip"),to=Ae({...Cae,...mg,appendTo:{type:de([String,Object]),default:Lm},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:de(Boolean),default:null},transition:{type:String,default:`${Hce.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),Ui=Ae({...og,disabled:Boolean,trigger:{type:de([String,Array]),default:"hover"},triggerKeys:{type:de(Array),default:()=>[je.enter,je.space]}}),{useModelToggleProps:Nce,useModelToggleEmits:Bce,useModelToggle:Dce}=mae("visible"),Fce=Ae({...Zm,...Nce,...to,...Ui,...Qm,showArrow:{type:Boolean,default:!0}}),jce=[...Bce,"before-show","before-hide","show","hide","open","close"],Kce=(e,t)=>Ie(e)?e.includes(t):e===t,In=(e,t,o)=>l=>{Kce(s(e),t)&&o(l)},Wce=te({name:"ElTooltipTrigger"}),qce=te({...Wce,props:Ui,setup(e,{expose:t}){const o=e,l=_e("tooltip"),{controlled:r,id:n,open:a,onOpen:i,onClose:c,onToggle:u}=Re($u,void 0),d=V(null),p=()=>{if(s(r)||o.disabled)return!0},f=Rt(o,"trigger"),h=Nt(p,In(f,"hover",i)),v=Nt(p,In(f,"hover",c)),m=Nt(p,In(f,"click",x=>{x.button===0&&u(x)})),g=Nt(p,In(f,"focus",i)),_=Nt(p,In(f,"focus",c)),w=Nt(p,In(f,"contextmenu",x=>{x.preventDefault(),u(x)})),b=Nt(p,x=>{const{code:k}=x;o.triggerKeys.includes(k)&&(x.preventDefault(),u(x))});return t({triggerRef:d}),(x,k)=>(y(),ue(s(vse),{id:s(n),"virtual-ref":x.virtualRef,open:s(a),"virtual-triggering":x.virtualTriggering,class:T(s(l).e("trigger")),onBlur:s(_),onClick:s(m),onContextmenu:s(w),onFocus:s(g),onMouseenter:s(h),onMouseleave:s(v),onKeydown:s(b)},{default:Z(()=>[ge(x.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Uce=Te(qce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const Yce=te({name:"ElTooltipContent",inheritAttrs:!1}),Gce=te({...Yce,props:to,setup(e,{expose:t}){const o=e,l=V(null),r=V(!1),{controlled:n,id:a,open:i,trigger:c,onClose:u,onOpen:d,onShow:p,onHide:f,onBeforeShow:h,onBeforeHide:v}=Re($u,void 0),m=S(()=>o.persistent);It(()=>{r.value=!0});const g=S(()=>s(m)?!0:s(i)),_=S(()=>o.disabled?!1:s(i)),w=S(()=>{var N;return(N=o.style)!=null?N:{}}),b=S(()=>!s(i)),x=()=>{f()},k=()=>{if(s(n))return!0},z=Nt(k,()=>{o.enterable&&s(c)==="hover"&&d()}),M=Nt(k,()=>{s(c)==="hover"&&u()}),E=()=>{var N,B;(B=(N=l.value)==null?void 0:N.updatePopper)==null||B.call(N),h==null||h()},A=()=>{v==null||v()},O=()=>{p(),I=fp(S(()=>{var N;return(N=l.value)==null?void 0:N.popperContentRef}),()=>{if(s(n))return;s(c)!=="hover"&&u()})},D=()=>{o.virtualTriggering||u()};let I;return ve(()=>s(i),N=>{N||I==null||I()},{flush:"post"}),ve(()=>o.content,()=>{var N,B;(B=(N=l.value)==null?void 0:N.updatePopper)==null||B.call(N)}),t({contentRef:l}),(N,B)=>(y(),ue(cs,{disabled:!N.teleported,to:N.appendTo},[K(Kt,{name:N.transition,onAfterLeave:x,onBeforeEnter:E,onAfterEnter:O,onBeforeLeave:A},{default:Z(()=>[s(g)?Xe((y(),ue(s(Rce),ht({key:0,id:s(a),ref_key:"contentRef",ref:l},N.$attrs,{"aria-label":N.ariaLabel,"aria-hidden":s(b),"boundaries-padding":N.boundariesPadding,"fallback-placements":N.fallbackPlacements,"gpu-acceleration":N.gpuAcceleration,offset:N.offset,placement:N.placement,"popper-options":N.popperOptions,strategy:N.strategy,effect:N.effect,enterable:N.enterable,pure:N.pure,"popper-class":N.popperClass,"popper-style":[N.popperStyle,s(w)],"reference-el":N.referenceEl,"trigger-target-el":N.triggerTargetEl,visible:s(_),"z-index":N.zIndex,onMouseenter:s(z),onMouseleave:s(M),onBlur:D,onClose:s(u)}),{default:Z(()=>[ae(" Workaround bug #6378 "),r.value?ae("v-if",!0):ge(N.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[_t,s(_)]]):ae("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var Xce=Te(Gce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Jce=["innerHTML"],Zce={key:1},Qce=te({name:"ElTooltip"}),eue=te({...Qce,props:Fce,emits:jce,setup(e,{expose:t,emit:o}){const l=e;kae();const r=wl(),n=V(),a=V(),i=()=>{var _;const w=s(n);w&&((_=w.popperInstanceRef)==null||_.update())},c=V(!1),u=V(),{show:d,hide:p,hasUpdateHandler:f}=Dce({indicator:c,toggleReason:u}),{onOpen:h,onClose:v}=$ae({showAfter:Rt(l,"showAfter"),hideAfter:Rt(l,"hideAfter"),open:d,close:p}),m=S(()=>Jt(l.visible)&&!f.value);st($u,{controlled:m,id:r,open:ss(c),trigger:Rt(l,"trigger"),onOpen:_=>{h(_)},onClose:_=>{v(_)},onToggle:_=>{s(c)?v(_):h(_)},onShow:()=>{o("show",u.value)},onHide:()=>{o("hide",u.value)},onBeforeShow:()=>{o("before-show",u.value)},onBeforeHide:()=>{o("before-hide",u.value)},updatePopper:i}),ve(()=>l.disabled,_=>{_&&c.value&&(c.value=!1)});const g=()=>{var _,w;const b=(w=(_=a.value)==null?void 0:_.contentRef)==null?void 0:w.popperContentRef;return b&&b.contains(document.activeElement)};return A6(()=>c.value&&p()),t({popperRef:n,contentRef:a,isFocusInsideContent:g,updatePopper:i,onOpen:h,onClose:v,hide:p}),(_,w)=>(y(),ue(s(gg),{ref_key:"popperRef",ref:n,role:_.role},{default:Z(()=>[K(Uce,{disabled:_.disabled,trigger:_.trigger,"trigger-keys":_.triggerKeys,"virtual-ref":_.virtualRef,"virtual-triggering":_.virtualTriggering},{default:Z(()=>[_.$slots.default?ge(_.$slots,"default",{key:0}):ae("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),K(Xce,{ref_key:"contentRef",ref:a,"aria-label":_.ariaLabel,"boundaries-padding":_.boundariesPadding,content:_.content,disabled:_.disabled,effect:_.effect,enterable:_.enterable,"fallback-placements":_.fallbackPlacements,"hide-after":_.hideAfter,"gpu-acceleration":_.gpuAcceleration,offset:_.offset,persistent:_.persistent,"popper-class":_.popperClass,"popper-style":_.popperStyle,placement:_.placement,"popper-options":_.popperOptions,pure:_.pure,"raw-content":_.rawContent,"reference-el":_.referenceEl,"trigger-target-el":_.triggerTargetEl,"show-after":_.showAfter,strategy:_.strategy,teleported:_.teleported,transition:_.transition,"virtual-triggering":_.virtualTriggering,"z-index":_.zIndex,"append-to":_.appendTo},{default:Z(()=>[ge(_.$slots,"content",{},()=>[_.rawContent?(y(),$("span",{key:0,innerHTML:_.content},null,8,Jce)):(y(),$("span",Zce,Ce(_.content),1))]),_.showArrow?(y(),ue(s(dse),{key:0,"arrow-offset":_.arrowOffset},null,8,["arrow-offset"])):ae("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var tue=Te(eue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Ro=at(tue),oue=Ae({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:de(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:de([Function,Array]),default:$t},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:to.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1}}),lue={[nt]:e=>Ge(e),[Co]:e=>Ge(e),[Ot]:e=>Ge(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>ft(e)},rue=["aria-expanded","aria-owns"],nue={key:0},aue=["id","aria-selected","onClick"],bg="ElAutocomplete",iue=te({name:bg,inheritAttrs:!1}),sue=te({...iue,props:oue,emits:lue,setup(e,{expose:t,emit:o}){const l=e,r=$p(),n=us(),a=zl(),i=_e("autocomplete"),c=V(),u=V(),d=V(),p=V();let f=!1,h=!1;const v=V([]),m=V(-1),g=V(""),_=V(!1),w=V(!1),b=V(!1),x=S(()=>i.b(String(gs()))),k=S(()=>n.style),z=S(()=>(v.value.length>0||b.value)&&_.value),M=S(()=>!l.hideLoading&&b.value),E=S(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),A=async()=>{await Ne(),z.value&&(g.value=`${c.value.$el.offsetWidth}px`)},O=()=>{h=!0},D=()=>{h=!1,m.value=-1},N=$o(async Y=>{if(w.value)return;const W=ce=>{b.value=!1,!w.value&&(Ie(ce)?(v.value=ce,m.value=l.highlightFirstItem?0:-1):Zt(bg,"autocomplete suggestions must be an array"))};if(b.value=!0,Ie(l.fetchSuggestions))W(l.fetchSuggestions);else{const ce=await l.fetchSuggestions(Y,W);Ie(ce)&&W(ce)}},l.debounce),B=Y=>{const W=!!Y;if(o(Co,Y),o(nt,Y),w.value=!1,_.value||(_.value=W),!l.triggerOnFocus&&!Y){w.value=!0,v.value=[];return}N(Y)},F=Y=>{var W;a.value||(((W=Y.target)==null?void 0:W.tagName)!=="INPUT"||E.value.includes(document.activeElement))&&(_.value=!0)},H=Y=>{o(Ot,Y)},L=Y=>{h||(_.value=!0,o("focus",Y),l.triggerOnFocus&&!f&&N(String(l.modelValue)))},P=Y=>{h||o("blur",Y)},R=()=>{_.value=!1,o(nt,""),o("clear")},J=async()=>{z.value&&m.value>=0&&m.value{z.value&&(Y.preventDefault(),Y.stopPropagation(),G())},G=()=>{_.value=!1},le=()=>{var Y;(Y=c.value)==null||Y.focus()},he=()=>{var Y;(Y=c.value)==null||Y.blur()},j=async Y=>{o(Co,Y[l.valueKey]),o(nt,Y[l.valueKey]),o("select",Y),v.value=[],m.value=-1},re=Y=>{if(!z.value||b.value)return;if(Y<0){m.value=-1;return}Y>=v.value.length&&(Y=v.value.length-1);const W=u.value.querySelector(`.${i.be("suggestion","wrap")}`),ne=W.querySelectorAll(`.${i.be("suggestion","list")} li`)[Y],xe=W.scrollTop,{offsetTop:U,scrollHeight:Q}=ne;U+Q>xe+W.clientHeight&&(W.scrollTop+=Q),U{z.value&&G()}),Ze(()=>{c.value.ref.setAttribute("role","textbox"),c.value.ref.setAttribute("aria-autocomplete","list"),c.value.ref.setAttribute("aria-controls","id"),c.value.ref.setAttribute("aria-activedescendant",`${x.value}-item-${m.value}`),f=c.value.ref.hasAttribute("readonly")}),t({highlightedIndex:m,activated:_,loading:b,inputRef:c,popperRef:d,suggestions:v,handleSelect:j,handleKeyEnter:J,focus:le,blur:he,close:G,highlight:re}),(Y,W)=>(y(),ue(s(Ro),{ref_key:"popperRef",ref:d,visible:s(z),placement:Y.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[s(i).e("popper"),Y.popperClass],teleported:Y.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${s(i).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:A,onShow:O,onHide:D},{content:Z(()=>[C("div",{ref_key:"regionRef",ref:u,class:T([s(i).b("suggestion"),s(i).is("loading",s(M))]),style:Be({[Y.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[K(s(_r),{id:s(x),tag:"ul","wrap-class":s(i).be("suggestion","wrap"),"view-class":s(i).be("suggestion","list"),role:"listbox"},{default:Z(()=>[s(M)?(y(),$("li",nue,[K(s(De),{class:T(s(i).is("loading"))},{default:Z(()=>[K(s(vr))]),_:1},8,["class"])])):(y(!0),$(Pe,{key:1},ut(v.value,(ce,ne)=>(y(),$("li",{id:`${s(x)}-item-${ne}`,key:ne,class:T({highlighted:m.value===ne}),role:"option","aria-selected":m.value===ne,onClick:xe=>j(ce)},[ge(Y.$slots,"default",{item:ce},()=>[ot(Ce(ce[Y.valueKey]),1)])],10,aue))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:Z(()=>[C("div",{ref_key:"listboxRef",ref:p,class:T([s(i).b(),Y.$attrs.class]),style:Be(s(k)),role:"combobox","aria-haspopup":"listbox","aria-expanded":s(z),"aria-owns":s(x)},[K(s(mo),ht({ref_key:"inputRef",ref:c},s(r),{"model-value":Y.modelValue,onInput:B,onChange:H,onFocus:L,onBlur:P,onClear:R,onKeydown:[W[0]||(W[0]=bt(Ue(ce=>re(m.value-1),["prevent"]),["up"])),W[1]||(W[1]=bt(Ue(ce=>re(m.value+1),["prevent"]),["down"])),bt(J,["enter"]),bt(G,["tab"]),bt(oe,["esc"])],onMousedown:F}),Br({_:2},[Y.$slots.prepend?{name:"prepend",fn:Z(()=>[ge(Y.$slots,"prepend")])}:void 0,Y.$slots.append?{name:"append",fn:Z(()=>[ge(Y.$slots,"append")])}:void 0,Y.$slots.prefix?{name:"prefix",fn:Z(()=>[ge(Y.$slots,"prefix")])}:void 0,Y.$slots.suffix?{name:"suffix",fn:Z(()=>[ge(Y.$slots,"suffix")])}:void 0]),1040,["model-value","onKeydown"])],14,rue)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var cue=Te(sue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const uue=at(cue),due=Ae({size:{type:[Number,String],values:Ur,default:"",validator:e=>et(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:Mt},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:de(String),default:"cover"}}),pue={error:e=>e instanceof Event},fue=["src","alt","srcset"],hue=te({name:"ElAvatar"}),vue=te({...hue,props:due,emits:pue,setup(e,{emit:t}){const o=e,l=_e("avatar"),r=V(!1),n=S(()=>{const{size:u,icon:d,shape:p}=o,f=[l.b()];return Ge(u)&&f.push(l.m(u)),d&&f.push(l.m("icon")),p&&f.push(l.m(p)),f}),a=S(()=>{const{size:u}=o;return et(u)?l.cssVarBlock({size:Yt(u)||""}):void 0}),i=S(()=>({objectFit:o.fit}));ve(()=>o.src,()=>r.value=!1);function c(u){r.value=!0,t("error",u)}return(u,d)=>(y(),$("span",{class:T(s(n)),style:Be(s(a))},[(u.src||u.srcSet)&&!r.value?(y(),$("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:Be(s(i)),onError:c},null,44,fue)):u.icon?(y(),ue(s(De),{key:1},{default:Z(()=>[(y(),ue(pt(u.icon)))]),_:1})):ge(u.$slots,"default",{key:2})],6))}});var mue=Te(vue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const gue=at(mue),bue={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},_ue={click:e=>e instanceof MouseEvent},yue=(e,t,o)=>{const l=Et(),r=Et(),n=V(!1),a=()=>{if(!l.value)return;const d=Date.now(),p=l.value.scrollTop,f=()=>{if(!l.value)return;const h=(Date.now()-d)/500;h<1?(l.value.scrollTop=p*(1-oae(h)),requestAnimationFrame(f)):l.value.scrollTop=0};requestAnimationFrame(f)},i=()=>{l.value&&(n.value=l.value.scrollTop>=e.visibilityHeight)},c=d=>{a(),t("click",d)},u=B4(i,300,!0);return At(r,"scroll",u),Ze(()=>{var d;r.value=document,l.value=document.documentElement,e.target&&(l.value=(d=document.querySelector(e.target))!=null?d:void 0,l.value||Zt(o,`target does not exist: ${e.target}`),r.value=l.value)}),{visible:n,handleClick:c}},_g="ElBacktop",wue=te({name:_g}),xue=te({...wue,props:bue,emits:_ue,setup(e,{emit:t}){const o=e,l=_e("backtop"),{handleClick:r,visible:n}=yue(o,t,_g),a=S(()=>({right:`${o.right}px`,bottom:`${o.bottom}px`}));return(i,c)=>(y(),ue(Kt,{name:`${s(l).namespace.value}-fade-in`},{default:Z(()=>[s(n)?(y(),$("div",{key:0,style:Be(s(a)),class:T(s(l).b()),onClick:c[0]||(c[0]=Ue((...u)=>s(r)&&s(r)(...u),["stop"]))},[ge(i.$slots,"default",{},()=>[K(s(De),{class:T(s(l).e("icon"))},{default:Z(()=>[K(s(U4))]),_:1},8,["class"])])],6)):ae("v-if",!0)]),_:3},8,["name"]))}});var kue=Te(xue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const Cue=at(kue),$ue=Ae({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),Sue=["textContent"],zue=te({name:"ElBadge"}),Eue=te({...zue,props:$ue,setup(e,{expose:t}){const o=e,l=_e("badge"),r=S(()=>o.isDot?"":et(o.value)&&et(o.max)?o.max(y(),$("div",{class:T(s(l).b())},[ge(n.$slots,"default"),K(Kt,{name:`${s(l).namespace.value}-zoom-in-center`,persisted:""},{default:Z(()=>[Xe(C("sup",{class:T([s(l).e("content"),s(l).em("content",n.type),s(l).is("fixed",!!n.$slots.default),s(l).is("dot",n.isDot)]),textContent:Ce(s(r))},null,10,Sue),[[_t,!n.hidden&&(s(r)||n.isDot)]])]),_:1},8,["name"])],2))}});var Mue=Te(Eue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const yg=at(Mue),Tue=Ae({separator:{type:String,default:"/"},separatorIcon:{type:Mt}}),Aue=te({name:"ElBreadcrumb"}),Vue=te({...Aue,props:Tue,setup(e){const t=e,o=_e("breadcrumb"),l=V();return st(mm,t),Ze(()=>{const r=l.value.querySelectorAll(`.${o.e("item")}`);r.length&&r[r.length-1].setAttribute("aria-current","page")}),(r,n)=>(y(),$("div",{ref_key:"breadcrumb",ref:l,class:T(s(o).b()),"aria-label":"Breadcrumb",role:"navigation"},[ge(r.$slots,"default")],2))}});var Oue=Te(Vue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const Pue=Ae({to:{type:de([String,Object]),default:""},replace:{type:Boolean,default:!1}}),Lue=te({name:"ElBreadcrumbItem"}),Iue=te({...Lue,props:Pue,setup(e){const t=e,o=Qe(),l=Re(mm,void 0),r=_e("breadcrumb"),{separator:n,separatorIcon:a}=Gt(l),i=o.appContext.config.globalProperties.$router,c=V(),u=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(d,p)=>(y(),$("span",{class:T(s(r).e("item"))},[C("span",{ref_key:"link",ref:c,class:T([s(r).e("inner"),s(r).is("link",!!d.to)]),role:"link",onClick:u},[ge(d.$slots,"default")],2),s(a)?(y(),ue(s(De),{key:0,class:T(s(r).e("separator"))},{default:Z(()=>[(y(),ue(pt(s(a))))]),_:1},8,["class"])):(y(),$("span",{key:1,class:T(s(r).e("separator")),role:"presentation"},Ce(s(n)),3))],2))}});var wg=Te(Iue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const Rue=at(Oue,{BreadcrumbItem:wg}),Hue=Bt(wg),Nue=(e,t)=>{jr({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},S(()=>e.type==="text"));const o=Re(gm,void 0),l=mr("button"),{form:r}=So(),n=Xt(S(()=>o==null?void 0:o.size)),a=zl(),i=V(),c=ao(),u=S(()=>e.type||(o==null?void 0:o.type)||""),d=S(()=>{var h,v,m;return(m=(v=e.autoInsertSpace)!=null?v:(h=l.value)==null?void 0:h.autoInsertSpace)!=null?m:!1}),p=S(()=>{var h;const v=(h=c.default)==null?void 0:h.call(c);if(d.value&&(v==null?void 0:v.length)===1){const m=v[0];if((m==null?void 0:m.type)===Na){const g=m.children;return/^\p{Unified_Ideograph}{2}$/u.test(g.trim())}}return!1});return{_disabled:a,_size:n,_type:u,_ref:i,shouldAddSpace:p,handleClick:h=>{e.nativeType==="reset"&&(r==null||r.resetFields()),t("click",h)}}},C0=["default","primary","success","warning","info","danger","text",""],Bue=["button","submit","reset"],$0=Ae({size:Lo,disabled:Boolean,type:{type:String,values:C0,default:""},icon:{type:Mt},nativeType:{type:String,values:Bue,default:"button"},loading:Boolean,loadingIcon:{type:Mt,default:()=>vr},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),Due={click:e=>e instanceof MouseEvent};function uo(e,t){Fue(e)&&(e="100%");var o=jue(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),o&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Ns(e){return Math.min(1,Math.max(0,e))}function Fue(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function jue(e){return typeof e=="string"&&e.indexOf("%")!==-1}function xg(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Bs(e){return e<=1?"".concat(Number(e)*100,"%"):e}function un(e){return e.length===1?"0"+e:String(e)}function Kue(e,t,o){return{r:uo(e,255)*255,g:uo(t,255)*255,b:uo(o,255)*255}}function jh(e,t,o){e=uo(e,255),t=uo(t,255),o=uo(o,255);var l=Math.max(e,t,o),r=Math.min(e,t,o),n=0,a=0,i=(l+r)/2;if(l===r)a=0,n=0;else{var c=l-r;switch(a=i>.5?c/(2-l-r):c/(l+r),l){case e:n=(t-o)/c+(t1&&(o-=1),o<1/6?e+(t-e)*(6*o):o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function Wue(e,t,o){var l,r,n;if(e=uo(e,360),t=uo(t,100),o=uo(o,100),t===0)r=o,n=o,l=o;else{var a=o<.5?o*(1+t):o+t-o*t,i=2*o-a;l=ud(i,a,e+1/3),r=ud(i,a,e),n=ud(i,a,e-1/3)}return{r:l*255,g:r*255,b:n*255}}function Kh(e,t,o){e=uo(e,255),t=uo(t,255),o=uo(o,255);var l=Math.max(e,t,o),r=Math.min(e,t,o),n=0,a=l,i=l-r,c=l===0?0:i/l;if(l===r)n=0;else{switch(l){case e:n=(t-o)/i+(t>16,g:(e&65280)>>8,b:e&255}}var S0={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Xue(e){var t={r:0,g:0,b:0},o=1,l=null,r=null,n=null,a=!1,i=!1;return typeof e=="string"&&(e=Que(e)),typeof e=="object"&&(Wl(e.r)&&Wl(e.g)&&Wl(e.b)?(t=Kue(e.r,e.g,e.b),a=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Wl(e.h)&&Wl(e.s)&&Wl(e.v)?(l=Bs(e.s),r=Bs(e.v),t=que(e.h,l,r),a=!0,i="hsv"):Wl(e.h)&&Wl(e.s)&&Wl(e.l)&&(l=Bs(e.s),n=Bs(e.l),t=Wue(e.h,l,n),a=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=xg(o),{ok:a,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:o}}var Jue="[-\\+]?\\d+%?",Zue="[-\\+]?\\d*\\.\\d+%?",Vr="(?:".concat(Zue,")|(?:").concat(Jue,")"),dd="[\\s|\\(]+(".concat(Vr,")[,|\\s]+(").concat(Vr,")[,|\\s]+(").concat(Vr,")\\s*\\)?"),pd="[\\s|\\(]+(".concat(Vr,")[,|\\s]+(").concat(Vr,")[,|\\s]+(").concat(Vr,")[,|\\s]+(").concat(Vr,")\\s*\\)?"),dl={CSS_UNIT:new RegExp(Vr),rgb:new RegExp("rgb"+dd),rgba:new RegExp("rgba"+pd),hsl:new RegExp("hsl"+dd),hsla:new RegExp("hsla"+pd),hsv:new RegExp("hsv"+dd),hsva:new RegExp("hsva"+pd),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Que(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(S0[e])e=S0[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var o=dl.rgb.exec(e);return o?{r:o[1],g:o[2],b:o[3]}:(o=dl.rgba.exec(e),o?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=dl.hsl.exec(e),o?{h:o[1],s:o[2],l:o[3]}:(o=dl.hsla.exec(e),o?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=dl.hsv.exec(e),o?{h:o[1],s:o[2],v:o[3]}:(o=dl.hsva.exec(e),o?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=dl.hex8.exec(e),o?{r:No(o[1]),g:No(o[2]),b:No(o[3]),a:qh(o[4]),format:t?"name":"hex8"}:(o=dl.hex6.exec(e),o?{r:No(o[1]),g:No(o[2]),b:No(o[3]),format:t?"name":"hex"}:(o=dl.hex4.exec(e),o?{r:No(o[1]+o[1]),g:No(o[2]+o[2]),b:No(o[3]+o[3]),a:qh(o[4]+o[4]),format:t?"name":"hex8"}:(o=dl.hex3.exec(e),o?{r:No(o[1]+o[1]),g:No(o[2]+o[2]),b:No(o[3]+o[3]),format:t?"name":"hex"}:!1)))))))))}function Wl(e){return Boolean(dl.CSS_UNIT.exec(String(e)))}var kg=function(){function e(t,o){t===void 0&&(t=""),o===void 0&&(o={});var l;if(t instanceof e)return t;typeof t=="number"&&(t=Gue(t)),this.originalInput=t;var r=Xue(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(l=o.format)!==null&&l!==void 0?l:r.format,this.gradientType=o.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),o,l,r,n=t.r/255,a=t.g/255,i=t.b/255;return n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),a<=.03928?l=a/12.92:l=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*l+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=xg(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Kh(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Kh(this.r,this.g,this.b),o=Math.round(t.h*360),l=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(o,", ").concat(l,"%, ").concat(r,"%)"):"hsva(".concat(o,", ").concat(l,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=jh(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=jh(this.r,this.g,this.b),o=Math.round(t.h*360),l=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(o,", ").concat(l,"%, ").concat(r,"%)"):"hsla(".concat(o,", ").concat(l,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Wh(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Uue(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),o=Math.round(this.g),l=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(o,", ").concat(l,")"):"rgba(".concat(t,", ").concat(o,", ").concat(l,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(o){return"".concat(Math.round(uo(o,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(o){return Math.round(uo(o,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Wh(this.r,this.g,this.b,!1),o=0,l=Object.entries(S0);o=0,n=!o&&r&&(t.startsWith("hex")||t==="name");return n?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(l=this.toRgbString()),t==="prgb"&&(l=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(l=this.toHexString()),t==="hex3"&&(l=this.toHexString(!0)),t==="hex4"&&(l=this.toHex8String(!0)),t==="hex8"&&(l=this.toHex8String()),t==="name"&&(l=this.toName()),t==="hsl"&&(l=this.toHslString()),t==="hsv"&&(l=this.toHsvString()),l||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l+=t/100,o.l=Ns(o.l),new e(o)},e.prototype.brighten=function(t){t===void 0&&(t=10);var o=this.toRgb();return o.r=Math.max(0,Math.min(255,o.r-Math.round(255*-(t/100)))),o.g=Math.max(0,Math.min(255,o.g-Math.round(255*-(t/100)))),o.b=Math.max(0,Math.min(255,o.b-Math.round(255*-(t/100)))),new e(o)},e.prototype.darken=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l-=t/100,o.l=Ns(o.l),new e(o)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s-=t/100,o.s=Ns(o.s),new e(o)},e.prototype.saturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s+=t/100,o.s=Ns(o.s),new e(o)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var o=this.toHsl(),l=(o.h+t)%360;return o.h=l<0?360+l:l,new e(o)},e.prototype.mix=function(t,o){o===void 0&&(o=50);var l=this.toRgb(),r=new e(t).toRgb(),n=o/100,a={r:(r.r-l.r)*n+l.r,g:(r.g-l.g)*n+l.g,b:(r.b-l.b)*n+l.b,a:(r.a-l.a)*n+l.a};return new e(a)},e.prototype.analogous=function(t,o){t===void 0&&(t=6),o===void 0&&(o=30);var l=this.toHsl(),r=360/o,n=[this];for(l.h=(l.h-(r*t>>1)+720)%360;--t;)l.h=(l.h+r)%360,n.push(new e(l));return n},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var o=this.toHsv(),l=o.h,r=o.s,n=o.v,a=[],i=1/t;t--;)a.push(new e({h:l,s:r,v:n})),n=(n+i)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),o=t.h;return[this,new e({h:(o+72)%360,s:t.s,l:t.l}),new e({h:(o+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var o=this.toRgb(),l=new e(t).toRgb(),r=o.a+l.a*(1-o.a);return new e({r:(o.r*o.a+l.r*l.a*(1-o.a))/r,g:(o.g*o.a+l.g*l.a*(1-o.a))/r,b:(o.b*o.a+l.b*l.a*(1-o.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var o=this.toHsl(),l=o.h,r=[this],n=360/t,a=1;a{let l={};const r=e.color;if(r){const n=new kg(r),a=e.dark?n.tint(20).toString():xr(n,20);if(e.plain)l=o.cssVarBlock({"bg-color":e.dark?xr(n,90):n.tint(90).toString(),"text-color":r,"border-color":e.dark?xr(n,50):n.tint(50).toString(),"hover-text-color":`var(${o.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":a,"active-text-color":`var(${o.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(l[o.cssVarBlockName("disabled-bg-color")]=e.dark?xr(n,90):n.tint(90).toString(),l[o.cssVarBlockName("disabled-text-color")]=e.dark?xr(n,50):n.tint(50).toString(),l[o.cssVarBlockName("disabled-border-color")]=e.dark?xr(n,80):n.tint(80).toString());else{const i=e.dark?xr(n,30):n.tint(30).toString(),c=n.isDark()?`var(${o.cssVarName("color-white")})`:`var(${o.cssVarName("color-black")})`;if(l=o.cssVarBlock({"bg-color":r,"text-color":c,"border-color":r,"hover-bg-color":i,"hover-text-color":c,"hover-border-color":i,"active-bg-color":a,"active-border-color":a}),t.value){const u=e.dark?xr(n,50):n.tint(50).toString();l[o.cssVarBlockName("disabled-bg-color")]=u,l[o.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${o.cssVarName("color-white")})`,l[o.cssVarBlockName("disabled-border-color")]=u}}}return l})}const tde=["aria-disabled","disabled","autofocus","type"],ode=te({name:"ElButton"}),lde=te({...ode,props:$0,emits:Due,setup(e,{expose:t,emit:o}){const l=e,r=ede(l),n=_e("button"),{_ref:a,_size:i,_type:c,_disabled:u,shouldAddSpace:d,handleClick:p}=Nue(l,o);return t({ref:a,size:i,type:c,disabled:u,shouldAddSpace:d}),(f,h)=>(y(),$("button",{ref_key:"_ref",ref:a,class:T([s(n).b(),s(n).m(s(c)),s(n).m(s(i)),s(n).is("disabled",s(u)),s(n).is("loading",f.loading),s(n).is("plain",f.plain),s(n).is("round",f.round),s(n).is("circle",f.circle),s(n).is("text",f.text),s(n).is("link",f.link),s(n).is("has-bg",f.bg)]),"aria-disabled":s(u)||f.loading,disabled:s(u)||f.loading,autofocus:f.autofocus,type:f.nativeType,style:Be(s(r)),onClick:h[0]||(h[0]=(...v)=>s(p)&&s(p)(...v))},[f.loading?(y(),$(Pe,{key:0},[f.$slots.loading?ge(f.$slots,"loading",{key:0}):(y(),ue(s(De),{key:1,class:T(s(n).is("loading"))},{default:Z(()=>[(y(),ue(pt(f.loadingIcon)))]),_:1},8,["class"]))],64)):f.icon||f.$slots.icon?(y(),ue(s(De),{key:1},{default:Z(()=>[f.icon?(y(),ue(pt(f.icon),{key:0})):ge(f.$slots,"icon",{key:1})]),_:3})):ae("v-if",!0),f.$slots.default?(y(),$("span",{key:2,class:T({[s(n).em("text","expand")]:s(d)})},[ge(f.$slots,"default")],2)):ae("v-if",!0)],14,tde))}});var rde=Te(lde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const nde={size:$0.size,type:$0.type},ade=te({name:"ElButtonGroup"}),ide=te({...ade,props:nde,setup(e){const t=e;st(gm,wt({size:Rt(t,"size"),type:Rt(t,"type")}));const o=_e("button");return(l,r)=>(y(),$("div",{class:T(`${s(o).b("group")}`)},[ge(l.$slots,"default")],2))}});var Cg=Te(ide,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const po=at(rde,{ButtonGroup:Cg}),$g=Bt(Cg);var xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function oCe(e){var t=e.default;if(typeof t=="function"){var o=function(){return t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(l){var r=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(o,l,r.get?r:{enumerable:!0,get:function(){return e[l]}})}),o}var zg={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(xo,function(){var o=1e3,l=6e4,r=36e5,n="millisecond",a="second",i="minute",c="hour",u="day",d="week",p="month",f="quarter",h="year",v="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var F=["th","st","nd","rd"],H=B%100;return"["+B+(F[(H-20)%10]||F[H]||F[0])+"]"}},b=function(B,F,H){var L=String(B);return!L||L.length>=F?B:""+Array(F+1-L.length).join(H)+B},x={s:b,z:function(B){var F=-B.utcOffset(),H=Math.abs(F),L=Math.floor(H/60),P=H%60;return(F<=0?"+":"-")+b(L,2,"0")+":"+b(P,2,"0")},m:function B(F,H){if(F.date()1)return B(J[0])}else{var oe=F.name;z[oe]=F,P=oe}return!L&&P&&(k=P),P||!L&&k},O=function(B,F){if(E(B))return B.clone();var H=typeof F=="object"?F:{};return H.date=B,H.args=arguments,new I(H)},D=x;D.l=A,D.i=E,D.w=function(B,F){return O(B,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var I=function(){function B(H){this.$L=A(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[M]=!0}var F=B.prototype;return F.parse=function(H){this.$d=function(L){var P=L.date,R=L.utc;if(P===null)return new Date(NaN);if(D.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var J=P.match(g);if(J){var oe=J[2]-1||0,G=(J[7]||"0").substring(0,3);return R?new Date(Date.UTC(J[1],oe,J[3]||1,J[4]||0,J[5]||0,J[6]||0,G)):new Date(J[1],oe,J[3]||1,J[4]||0,J[5]||0,J[6]||0,G)}}return new Date(P)}(H),this.init()},F.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},F.$utils=function(){return D},F.isValid=function(){return this.$d.toString()!==m},F.isSame=function(H,L){var P=O(H);return this.startOf(L)<=P&&P<=this.endOf(L)},F.isAfter=function(H,L){return O(H)68?1900:2e3)},d=function(g){return function(_){this[g]=+_}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(_){if(!_||_==="Z")return 0;var w=_.match(/([+-]|\d\d)/g),b=60*w[1]+(+w[2]||0);return b===0?0:w[0]==="+"?-b:b}(g)}],f=function(g){var _=c[g];return _&&(_.indexOf?_:_.s.concat(_.f))},h=function(g,_){var w,b=c.meridiem;if(b){for(var x=1;x<=24;x+=1)if(g.indexOf(b(x,0,_))>-1){w=x>12;break}}else w=g===(_?"pm":"PM");return w},v={A:[i,function(g){this.afternoon=h(g,!1)}],a:[i,function(g){this.afternoon=h(g,!0)}],Q:[r,function(g){this.month=3*(g-1)+1}],S:[r,function(g){this.milliseconds=100*+g}],SS:[n,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[n,d("day")],Do:[i,function(g){var _=c.ordinal,w=g.match(/\d+/);if(this.day=w[0],_)for(var b=1;b<=31;b+=1)_(b).replace(/\[|\]/g,"")===g&&(this.day=b)}],w:[a,d("week")],ww:[n,d("week")],M:[a,d("month")],MM:[n,d("month")],MMM:[i,function(g){var _=f("months"),w=(f("monthsShort")||_.map(function(b){return b.slice(0,3)})).indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[i,function(g){var _=f("months").indexOf(g)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,d("year")],YY:[n,function(g){this.year=u(g)}],YYYY:[/\d{4}/,d("year")],Z:p,ZZ:p};function m(g){var _,w;_=g,w=c&&c.formats;for(var b=(g=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,D,I){var N=I&&I.toUpperCase();return D||w[I]||o[I]||w[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(B,F,H){return F||H.slice(1)})})).match(l),x=b.length,k=0;k-1)return new Date((P==="X"?1e3:1)*L);var oe=m(P)(L),G=oe.year,le=oe.month,he=oe.day,j=oe.hours,re=oe.minutes,Y=oe.seconds,W=oe.milliseconds,ce=oe.zone,ne=oe.week,xe=new Date,U=he||(G||le?1:xe.getDate()),Q=G||xe.getFullYear(),fe=0;G&&!le||(fe=le>0?le-1:xe.getMonth());var we,$e=j||0,pe=re||0,Se=Y||0,me=W||0;return ce?new Date(Date.UTC(Q,fe,U,$e,pe,Se,me+60*ce.offset*1e3)):R?new Date(Date.UTC(Q,fe,U,$e,pe,Se,me)):(we=new Date(Q,fe,U,$e,pe,Se,me),ne&&(we=J(we).week(ne).toDate()),we)}catch{return new Date("")}}(z,A,M,w),this.init(),N&&N!==!0&&(this.$L=this.locale(N).$L),I&&z!=this.format(A)&&(this.$d=new Date("")),c={}}else if(A instanceof Array)for(var B=A.length,F=1;F<=B;F+=1){E[1]=A[F-1];var H=w.apply(this,E);if(H.isValid()){this.$d=H.$d,this.$L=H.$L,this.init();break}F===B&&(this.$d=new Date(""))}else x.call(this,k)}}})})(Eg);const qp=Eg.exports,Uh=["hours","minutes","seconds"],z0="HH:mm:ss",Wn="YYYY-MM-DD",sde={date:Wn,dates:Wn,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${Wn} ${z0}`,monthrange:"YYYY-MM",daterange:Wn,datetimerange:`${Wn} ${z0}`},fd=(e,t)=>[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),Mg=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Tg=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Yh=function(e,t){const o=kn(e),l=kn(t);return o&&l?e.getTime()===t.getTime():!o&&!l?e===t:!1},Gh=function(e,t){const o=Ie(e),l=Ie(t);return o&&l?e.length!==t.length?!1:e.every((r,n)=>Yh(r,t[n])):!o&&!l?Yh(e,t):!1},Xh=function(e,t,o){const l=Jo(t)||t==="x"?tt(e).locale(o):tt(e,t).locale(o);return l.isValid()?l:void 0},Jh=function(e,t,o){return Jo(t)?e:t==="x"?+e:tt(e).locale(o).format(t)},hd=(e,t)=>{var o;const l=[],r=t==null?void 0:t();for(let n=0;n({})},modelValue:{type:de([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:de([Date,Array])},defaultTime:{type:de([Date,Array])},isRange:{type:Boolean,default:!1},...Ag,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:de([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),cde=["id","name","placeholder","value","disabled","readonly"],ude=["id","name","placeholder","value","disabled","readonly"],dde=te({name:"Picker"}),pde=te({...dde,props:Up,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:o}){const l=e,{lang:r}=yt(),n=_e("date"),a=_e("input"),i=_e("range"),{form:c,formItem:u}=So(),d=Re("ElPopperOptions",{}),p=V(),f=V(),h=V(!1),v=V(!1),m=V(null);let g=!1,_=!1;ve(h,q=>{q?Ne(()=>{q&&(m.value=l.modelValue)}):(pe.value=null,Ne(()=>{w(l.modelValue)}))});const w=(q,ie)=>{(ie||!Gh(q,m.value))&&(o("change",q),l.validateEvent&&(u==null||u.validate("change").catch(ke=>void 0)))},b=q=>{if(!Gh(l.modelValue,q)){let ie;Ie(q)?ie=q.map(ke=>Jh(ke,l.valueFormat,r.value)):q&&(ie=Jh(q,l.valueFormat,r.value)),o("update:modelValue",q&&ie,r.value)}},x=q=>{o("keydown",q)},k=S(()=>{if(f.value){const q=Q.value?f.value:f.value.$el;return Array.from(q.querySelectorAll("input"))}return[]}),z=(q,ie,ke)=>{const Me=k.value;!Me.length||(!ke||ke==="min"?(Me[0].setSelectionRange(q,ie),Me[0].focus()):ke==="max"&&(Me[1].setSelectionRange(q,ie),Me[1].focus()))},M=()=>{F(!0,!0),Ne(()=>{_=!1})},E=(q="",ie=!1)=>{ie||(_=!0),h.value=ie;let ke;Ie(q)?ke=q.map(Me=>Me.toDate()):ke=q&&q.toDate(),pe.value=null,b(ke)},A=()=>{v.value=!0},O=()=>{o("visible-change",!0)},D=q=>{(q==null?void 0:q.key)===je.esc&&F(!0,!0)},I=()=>{v.value=!1,h.value=!1,_=!1,o("visible-change",!1)},N=()=>{h.value=!0},B=()=>{h.value=!1},F=(q=!0,ie=!1)=>{_=ie;const[ke,Me]=s(k);let it=ke;!q&&Q.value&&(it=Me),it&&it.focus()},H=q=>{l.readonly||R.value||h.value||_||(h.value=!0,o("focus",q))};let L;const P=q=>{const ie=async()=>{setTimeout(()=>{var ke;L===ie&&(!(((ke=p.value)==null?void 0:ke.isFocusInsideContent())&&!g)&&k.value.filter(Me=>Me.contains(document.activeElement)).length===0&&(Se(),h.value=!1,o("blur",q),l.validateEvent&&(u==null||u.validate("blur").catch(Me=>void 0))),g=!1)},0)};L=ie,ie()},R=S(()=>l.disabled||(c==null?void 0:c.disabled)),J=S(()=>{let q;if(W.value?be.value.getDefaultValue&&(q=be.value.getDefaultValue()):Ie(l.modelValue)?q=l.modelValue.map(ie=>Xh(ie,l.valueFormat,r.value)):q=Xh(l.modelValue,l.valueFormat,r.value),be.value.getRangeAvailableTime){const ie=be.value.getRangeAvailableTime(q);jo(ie,q)||(q=ie,b(Ie(q)?q.map(ke=>ke.toDate()):q.toDate()))}return Ie(q)&&q.some(ie=>!ie)&&(q=[]),q}),oe=S(()=>{if(!be.value.panelReady)return"";const q=X(J.value);return Ie(pe.value)?[pe.value[0]||q&&q[0]||"",pe.value[1]||q&&q[1]||""]:pe.value!==null?pe.value:!le.value&&W.value||!h.value&&W.value?"":q?he.value?q.join(", "):q:""}),G=S(()=>l.type.includes("time")),le=S(()=>l.type.startsWith("time")),he=S(()=>l.type==="dates"),j=S(()=>l.prefixIcon||(G.value?gp:q4)),re=V(!1),Y=q=>{l.readonly||R.value||re.value&&(q.stopPropagation(),M(),b(null),w(null,!0),re.value=!1,h.value=!1,be.value.handleClear&&be.value.handleClear())},W=S(()=>{const{modelValue:q}=l;return!q||Ie(q)&&!q.filter(Boolean).length}),ce=async q=>{var ie;l.readonly||R.value||(((ie=q.target)==null?void 0:ie.tagName)!=="INPUT"||k.value.includes(document.activeElement))&&(h.value=!0)},ne=()=>{l.readonly||R.value||!W.value&&l.clearable&&(re.value=!0)},xe=()=>{re.value=!1},U=q=>{var ie;l.readonly||R.value||(((ie=q.touches[0].target)==null?void 0:ie.tagName)!=="INPUT"||k.value.includes(document.activeElement))&&(h.value=!0)},Q=S(()=>l.type.includes("range")),fe=Xt(),we=S(()=>{var q,ie;return(ie=(q=s(p))==null?void 0:q.popperRef)==null?void 0:ie.contentRef}),$e=S(()=>{var q;return s(Q)?s(f):(q=s(f))==null?void 0:q.$el});fp($e,q=>{const ie=s(we),ke=s($e);ie&&(q.target===ie||q.composedPath().includes(ie))||q.target===ke||q.composedPath().includes(ke)||(h.value=!1)});const pe=V(null),Se=()=>{if(pe.value){const q=me(oe.value);q&&se(q)&&(b(Ie(q)?q.map(ie=>ie.toDate()):q.toDate()),pe.value=null)}pe.value===""&&(b(null),w(null),pe.value=null)},me=q=>q?be.value.parseUserInput(q):null,X=q=>q?be.value.formatToString(q):null,se=q=>be.value.isValidValue(q),ze=async q=>{if(l.readonly||R.value)return;const{code:ie}=q;if(x(q),ie===je.esc){h.value===!0&&(h.value=!1,q.preventDefault(),q.stopPropagation());return}if(ie===je.down&&(be.value.handleFocusPicker&&(q.preventDefault(),q.stopPropagation()),h.value===!1&&(h.value=!0,await Ne()),be.value.handleFocusPicker)){be.value.handleFocusPicker();return}if(ie===je.tab){g=!0;return}if(ie===je.enter||ie===je.numpadEnter){(pe.value===null||pe.value===""||se(me(oe.value)))&&(Se(),h.value=!1),q.stopPropagation();return}if(pe.value){q.stopPropagation();return}be.value.handleKeydownInput&&be.value.handleKeydownInput(q)},Ve=q=>{pe.value=q,h.value||(h.value=!0)},Le=q=>{const ie=q.target;pe.value?pe.value=[ie.value,pe.value[1]]:pe.value=[ie.value,null]},Ke=q=>{const ie=q.target;pe.value?pe.value=[pe.value[0],ie.value]:pe.value=[null,ie.value]},qe=()=>{var q;const ie=pe.value,ke=me(ie&&ie[0]),Me=s(J);if(ke&&ke.isValid()){pe.value=[X(ke),((q=oe.value)==null?void 0:q[1])||null];const it=[ke,Me&&(Me[1]||null)];se(it)&&(b(it),pe.value=null)}},rt=()=>{var q;const ie=s(pe),ke=me(ie&&ie[1]),Me=s(J);if(ke&&ke.isValid()){pe.value=[((q=s(oe))==null?void 0:q[0])||null,X(ke)];const it=[Me&&Me[0],ke];se(it)&&(b(it),pe.value=null)}},be=V({}),ye=q=>{be.value[q[0]]=q[1],be.value.panelReady=!0},He=q=>{o("calendar-change",q)},Je=(q,ie,ke)=>{o("panel-change",q,ie,ke)};return st("EP_PICKER_BASE",{props:l}),t({focus:F,handleFocusInput:H,handleBlurInput:P,handleOpen:N,handleClose:B,onPick:E}),(q,ie)=>(y(),ue(s(Ro),ht({ref_key:"refPopper",ref:p,visible:h.value,effect:"light",pure:"",trigger:"click"},q.$attrs,{role:"dialog",teleported:"",transition:`${s(n).namespace.value}-zoom-in-top`,"popper-class":[`${s(n).namespace.value}-picker__popper`,q.popperClass],"popper-options":s(d),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:A,onShow:O,onHide:I}),{default:Z(()=>[s(Q)?(y(),$("div",{key:1,ref_key:"inputRef",ref:f,class:T([s(n).b("editor"),s(n).bm("editor",q.type),s(a).e("wrapper"),s(n).is("disabled",s(R)),s(n).is("active",h.value),s(i).b("editor"),s(fe)?s(i).bm("editor",s(fe)):"",q.$attrs.class]),style:Be(q.$attrs.style),onClick:H,onMouseenter:ne,onMouseleave:xe,onTouchstart:U,onKeydown:ze},[s(j)?(y(),ue(s(De),{key:0,class:T([s(a).e("icon"),s(i).e("icon")]),onMousedown:Ue(ce,["prevent"]),onTouchstart:U},{default:Z(()=>[(y(),ue(pt(s(j))))]),_:1},8,["class","onMousedown"])):ae("v-if",!0),C("input",{id:q.id&&q.id[0],autocomplete:"off",name:q.name&&q.name[0],placeholder:q.startPlaceholder,value:s(oe)&&s(oe)[0],disabled:s(R),readonly:!q.editable||q.readonly,class:T(s(i).b("input")),onMousedown:ce,onInput:Le,onChange:qe,onFocus:H,onBlur:P},null,42,cde),ge(q.$slots,"range-separator",{},()=>[C("span",{class:T(s(i).b("separator"))},Ce(q.rangeSeparator),3)]),C("input",{id:q.id&&q.id[1],autocomplete:"off",name:q.name&&q.name[1],placeholder:q.endPlaceholder,value:s(oe)&&s(oe)[1],disabled:s(R),readonly:!q.editable||q.readonly,class:T(s(i).b("input")),onMousedown:ce,onFocus:H,onBlur:P,onInput:Ke,onChange:rt},null,42,ude),q.clearIcon?(y(),ue(s(De),{key:1,class:T([s(a).e("icon"),s(i).e("close-icon"),{[s(i).e("close-icon--hidden")]:!re.value}]),onClick:Y},{default:Z(()=>[(y(),ue(pt(q.clearIcon)))]),_:1},8,["class"])):ae("v-if",!0)],38)):(y(),ue(s(mo),{key:0,id:q.id,ref_key:"inputRef",ref:f,"container-role":"combobox","model-value":s(oe),name:q.name,size:s(fe),disabled:s(R),placeholder:q.placeholder,class:T([s(n).b("editor"),s(n).bm("editor",q.type),q.$attrs.class]),style:Be(q.$attrs.style),readonly:!q.editable||q.readonly||s(he)||q.type==="week",label:q.label,tabindex:q.tabindex,"validate-event":!1,onInput:Ve,onFocus:H,onBlur:P,onKeydown:ze,onChange:Se,onMousedown:ce,onMouseenter:ne,onMouseleave:xe,onTouchstart:U,onClick:ie[0]||(ie[0]=Ue(()=>{},["stop"]))},{prefix:Z(()=>[s(j)?(y(),ue(s(De),{key:0,class:T(s(a).e("icon")),onMousedown:Ue(ce,["prevent"]),onTouchstart:U},{default:Z(()=>[(y(),ue(pt(s(j))))]),_:1},8,["class","onMousedown"])):ae("v-if",!0)]),suffix:Z(()=>[re.value&&q.clearIcon?(y(),ue(s(De),{key:0,class:T(`${s(a).e("icon")} clear-icon`),onClick:Ue(Y,["stop"])},{default:Z(()=>[(y(),ue(pt(q.clearIcon)))]),_:1},8,["class","onClick"])):ae("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:Z(()=>[ge(q.$slots,"default",{visible:h.value,actualVisible:v.value,parsedValue:s(J),format:q.format,unlinkPanels:q.unlinkPanels,type:q.type,defaultValue:q.defaultValue,onPick:E,onSelectRange:z,onSetPickerOption:ye,onCalendarChange:He,onPanelChange:Je,onKeydown:D,onMousedown:ie[1]||(ie[1]=Ue(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var Og=Te(pde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const fde=Ae({...Vg,datetimeRole:String,parsedValue:{type:de(Object)}}),Pg=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:o})=>{const l=(a,i,c,u)=>{const d={hour:e,minute:t,second:o};let p=a;return["hour","minute","second"].forEach(f=>{if(d[f]){let h;const v=d[f];switch(f){case"minute":{h=v(p.hour(),i,u);break}case"second":{h=v(p.hour(),p.minute(),i,u);break}default:{h=v(i,u);break}}if((h==null?void 0:h.length)&&!h.includes(p[f]())){const m=c?0:h.length-1;p=p[f](h[m])}}}),p},r={};return{timePickerOptions:r,getAvailableTime:l,onSetOption:([a,i])=>{r[a]=i}}},vd=e=>{const t=(l,r)=>l||r,o=l=>l!==!0;return e.map(t).filter(o)},Lg=(e,t,o)=>({getHoursList:(a,i)=>hd(24,e&&(()=>e==null?void 0:e(a,i))),getMinutesList:(a,i,c)=>hd(60,t&&(()=>t==null?void 0:t(a,i,c))),getSecondsList:(a,i,c,u)=>hd(60,o&&(()=>o==null?void 0:o(a,i,c,u)))}),Ig=(e,t,o)=>{const{getHoursList:l,getMinutesList:r,getSecondsList:n}=Lg(e,t,o);return{getAvailableHours:(u,d)=>vd(l(u,d)),getAvailableMinutes:(u,d,p)=>vd(r(u,d,p)),getAvailableSeconds:(u,d,p,f)=>vd(n(u,d,p,f))}},Rg=e=>{const t=V(e.parsedValue);return ve(()=>e.visible,o=>{o||(t.value=e.parsedValue)}),t},Sr=new Map;let Zh;gt&&(document.addEventListener("mousedown",e=>Zh=e),document.addEventListener("mouseup",e=>{for(const t of Sr.values())for(const{documentHandler:o}of t)o(e,Zh)}));function Qh(e,t){let o=[];return Array.isArray(t.arg)?o=t.arg:yl(t.arg)&&o.push(t.arg),function(l,r){const n=t.instance.popperRef,a=l.target,i=r==null?void 0:r.target,c=!t||!t.instance,u=!a||!i,d=e.contains(a)||e.contains(i),p=e===a,f=o.length&&o.some(v=>v==null?void 0:v.contains(a))||o.length&&o.includes(i),h=n&&(n.contains(a)||n.contains(i));c||u||d||p||f||h||t.value(l,r)}}const Wr={beforeMount(e,t){Sr.has(e)||Sr.set(e,[]),Sr.get(e).push({documentHandler:Qh(e,t),bindingFn:t.value})},updated(e,t){Sr.has(e)||Sr.set(e,[]);const o=Sr.get(e),l=o.findIndex(n=>n.bindingFn===t.oldValue),r={documentHandler:Qh(e,t),bindingFn:t.value};l>=0?o.splice(l,1,r):o.push(r)},unmounted(e){Sr.delete(e)}},hde=100,vde=600,Hc={beforeMount(e,t){const o=t.value,{interval:l=hde,delay:r=vde}=Ye(o)?{}:o;let n,a;const i=()=>Ye(o)?o():o.handler(),c=()=>{a&&(clearTimeout(a),a=void 0),n&&(clearInterval(n),n=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(c(),i(),document.addEventListener("mouseup",()=>c(),{once:!0}),a=setTimeout(()=>{n=setInterval(()=>{i()},l)},r))})}},E0="_trap-focus-children",dn=[],e3=e=>{if(dn.length===0)return;const t=dn[dn.length-1][E0];if(t.length>0&&e.code===je.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const o=e.shiftKey,l=e.target===t[0],r=e.target===t[t.length-1];l&&o&&(e.preventDefault(),t[t.length-1].focus()),r&&!o&&(e.preventDefault(),t[0].focus())}},mde={beforeMount(e){e[E0]=eh(e),dn.push(e),dn.length<=1&&document.addEventListener("keydown",e3)},updated(e){Ne(()=>{e[E0]=eh(e)})},unmounted(){dn.shift(),dn.length===0&&document.removeEventListener("keydown",e3)}};var t3=!1,an,M0,T0,oc,lc,Hg,rc,A0,V0,O0,Ng,P0,L0,Bg,Dg;function Mo(){if(!t3){t3=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),o=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(P0=/\b(iPhone|iP[ao]d)/.exec(e),L0=/\b(iP[ao]d)/.exec(e),O0=/Android/i.exec(e),Bg=/FBAN\/\w+;/i.exec(e),Dg=/Mobile/i.exec(e),Ng=!!/Win64/.exec(e),t){an=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,an&&document&&document.documentMode&&(an=document.documentMode);var l=/(?:Trident\/(\d+.\d+))/.exec(e);Hg=l?parseFloat(l[1])+4:an,M0=t[2]?parseFloat(t[2]):NaN,T0=t[3]?parseFloat(t[3]):NaN,oc=t[4]?parseFloat(t[4]):NaN,oc?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),lc=t&&t[1]?parseFloat(t[1]):NaN):lc=NaN}else an=M0=T0=lc=oc=NaN;if(o){if(o[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);rc=r?parseFloat(r[1].replace("_",".")):!0}else rc=!1;A0=!!o[2],V0=!!o[3]}else rc=A0=V0=!1}}var I0={ie:function(){return Mo()||an},ieCompatibilityMode:function(){return Mo()||Hg>an},ie64:function(){return I0.ie()&&Ng},firefox:function(){return Mo()||M0},opera:function(){return Mo()||T0},webkit:function(){return Mo()||oc},safari:function(){return I0.webkit()},chrome:function(){return Mo()||lc},windows:function(){return Mo()||A0},osx:function(){return Mo()||rc},linux:function(){return Mo()||V0},iphone:function(){return Mo()||P0},mobile:function(){return Mo()||P0||L0||O0||Dg},nativeApp:function(){return Mo()||Bg},android:function(){return Mo()||O0},ipad:function(){return Mo()||L0}},gde=I0,Ds=!!(typeof window<"u"&&window.document&&window.document.createElement),bde={canUseDOM:Ds,canUseWorkers:typeof Worker<"u",canUseEventListeners:Ds&&!!(window.addEventListener||window.attachEvent),canUseViewport:Ds&&!!window.screen,isInWorker:!Ds},Fg=bde,jg;Fg.canUseDOM&&(jg=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function _de(e,t){if(!Fg.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,l=o in document;if(!l){var r=document.createElement("div");r.setAttribute(o,"return;"),l=typeof r[o]=="function"}return!l&&jg&&e==="wheel"&&(l=document.implementation.hasFeature("Events.wheel","3.0")),l}var yde=_de,o3=10,l3=40,r3=800;function Kg(e){var t=0,o=0,l=0,r=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),l=t*o3,r=o*o3,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(l=e.deltaX),(l||r)&&e.deltaMode&&(e.deltaMode==1?(l*=l3,r*=l3):(l*=r3,r*=r3)),l&&!t&&(t=l<1?-1:1),r&&!o&&(o=r<1?-1:1),{spinX:t,spinY:o,pixelX:l,pixelY:r}}Kg.getEventType=function(){return gde.firefox()?"DOMMouseScroll":yde("wheel")?"wheel":"mousewheel"};var wde=Kg;/** +* Checks if an event is supported in the current execution environment. +* +* NOTE: This will not work correctly for non-generic events such as `change`, +* `reset`, `load`, `error`, and `select`. +* +* Borrows from Modernizr. +* +* @param {string} eventNameSuffix Event name, e.g. "click". +* @param {?boolean} capture Check if the capture phase is supported. +* @return {boolean} True if the event is supported. +* @internal +* @license Modernizr 3.0.0pre (Custom Build) | MIT +*/const xde=function(e,t){if(e&&e.addEventListener){const o=function(l){const r=wde(l);t&&Reflect.apply(t,this,[l,r])};e.addEventListener("wheel",o,{passive:!0})}},kde={beforeMount(e,t){xde(e,t.value)}},Cde=Ae({role:{type:String,required:!0},spinnerDate:{type:de(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:de(String),default:""},...Ag}),$de=["onClick"],Sde=["onMouseenter"],zde=te({__name:"basic-time-spinner",props:Cde,emits:["change","select-range","set-option"],setup(e,{emit:t}){const o=e,l=_e("time"),{getHoursList:r,getMinutesList:n,getSecondsList:a}=Lg(o.disabledHours,o.disabledMinutes,o.disabledSeconds);let i=!1;const c=V(),u=V(),d=V(),p=V(),f={hours:u,minutes:d,seconds:p},h=S(()=>o.showSeconds?Uh:Uh.slice(0,2)),v=S(()=>{const{spinnerDate:R}=o,J=R.hour(),oe=R.minute(),G=R.second();return{hours:J,minutes:oe,seconds:G}}),m=S(()=>{const{hours:R,minutes:J}=s(v);return{hours:r(o.role),minutes:n(R,o.role),seconds:a(R,J,o.role)}}),g=S(()=>{const{hours:R,minutes:J,seconds:oe}=s(v);return{hours:fd(R,23),minutes:fd(J,59),seconds:fd(oe,59)}}),_=$o(R=>{i=!1,x(R)},200),w=R=>{if(!!!o.amPmMode)return"";const oe=o.amPmMode==="A";let G=R<12?" am":" pm";return oe&&(G=G.toUpperCase()),G},b=R=>{let J;switch(R){case"hours":J=[0,2];break;case"minutes":J=[3,5];break;case"seconds":J=[6,8];break}const[oe,G]=J;t("select-range",oe,G),c.value=R},x=R=>{M(R,s(v)[R])},k=()=>{x("hours"),x("minutes"),x("seconds")},z=R=>R.querySelector(`.${l.namespace.value}-scrollbar__wrap`),M=(R,J)=>{if(o.arrowControl)return;const oe=s(f[R]);oe&&oe.$el&&(z(oe.$el).scrollTop=Math.max(0,J*E(R)))},E=R=>{const J=s(f[R]);return(J==null?void 0:J.$el.querySelector("li").offsetHeight)||0},A=()=>{D(1)},O=()=>{D(-1)},D=R=>{c.value||b("hours");const J=c.value,oe=s(v)[J],G=c.value==="hours"?24:60,le=I(J,oe,R,G);N(J,le),M(J,le),Ne(()=>b(J))},I=(R,J,oe,G)=>{let le=(J+oe+G)%G;const he=s(m)[R];for(;he[le]&&le!==J;)le=(le+oe+G)%G;return le},N=(R,J)=>{if(s(m)[R][J])return;const{hours:le,minutes:he,seconds:j}=s(v);let re;switch(R){case"hours":re=o.spinnerDate.hour(J).minute(he).second(j);break;case"minutes":re=o.spinnerDate.hour(le).minute(J).second(j);break;case"seconds":re=o.spinnerDate.hour(le).minute(he).second(J);break}t("change",re)},B=(R,{value:J,disabled:oe})=>{oe||(N(R,J),b(R),M(R,J))},F=R=>{i=!0,_(R);const J=Math.min(Math.round((z(s(f[R]).$el).scrollTop-(H(R)*.5-10)/E(R)+3)/E(R)),R==="hours"?23:59);N(R,J)},H=R=>s(f[R]).$el.offsetHeight,L=()=>{const R=J=>{const oe=s(f[J]);oe&&oe.$el&&(z(oe.$el).onscroll=()=>{F(J)})};R("hours"),R("minutes"),R("seconds")};Ze(()=>{Ne(()=>{!o.arrowControl&&L(),k(),o.role==="start"&&b("hours")})});const P=(R,J)=>{f[J].value=R};return t("set-option",[`${o.role}_scrollDown`,D]),t("set-option",[`${o.role}_emitSelectRange`,b]),ve(()=>o.spinnerDate,()=>{i||k()}),(R,J)=>(y(),$("div",{class:T([s(l).b("spinner"),{"has-seconds":R.showSeconds}])},[R.arrowControl?ae("v-if",!0):(y(!0),$(Pe,{key:0},ut(s(h),oe=>(y(),ue(s(_r),{key:oe,ref_for:!0,ref:G=>P(G,oe),class:T(s(l).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":s(l).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:G=>b(oe),onMousemove:G=>x(oe)},{default:Z(()=>[(y(!0),$(Pe,null,ut(s(m)[oe],(G,le)=>(y(),$("li",{key:le,class:T([s(l).be("spinner","item"),s(l).is("active",le===s(v)[oe]),s(l).is("disabled",G)]),onClick:he=>B(oe,{value:le,disabled:G})},[oe==="hours"?(y(),$(Pe,{key:0},[ot(Ce(("0"+(R.amPmMode?le%12||12:le)).slice(-2))+Ce(w(le)),1)],64)):(y(),$(Pe,{key:1},[ot(Ce(("0"+le).slice(-2)),1)],64))],10,$de))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),R.arrowControl?(y(!0),$(Pe,{key:1},ut(s(h),oe=>(y(),$("div",{key:oe,class:T([s(l).be("spinner","wrapper"),s(l).is("arrow")]),onMouseenter:G=>b(oe)},[Xe((y(),ue(s(De),{class:T(["arrow-up",s(l).be("spinner","arrow")])},{default:Z(()=>[K(s(vs))]),_:1},8,["class"])),[[s(Hc),O]]),Xe((y(),ue(s(De),{class:T(["arrow-down",s(l).be("spinner","arrow")])},{default:Z(()=>[K(s(fr))]),_:1},8,["class"])),[[s(Hc),A]]),C("ul",{class:T(s(l).be("spinner","list"))},[(y(!0),$(Pe,null,ut(s(g)[oe],(G,le)=>(y(),$("li",{key:le,class:T([s(l).be("spinner","item"),s(l).is("active",G===s(v)[oe]),s(l).is("disabled",s(m)[oe][G])])},[typeof G=="number"?(y(),$(Pe,{key:0},[oe==="hours"?(y(),$(Pe,{key:0},[ot(Ce(("0"+(R.amPmMode?G%12||12:G)).slice(-2))+Ce(w(G)),1)],64)):(y(),$(Pe,{key:1},[ot(Ce(("0"+G).slice(-2)),1)],64))],64)):ae("v-if",!0)],2))),128))],2)],42,Sde))),128)):ae("v-if",!0)],2))}});var R0=Te(zde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const Ede=te({__name:"panel-time-pick",props:fde,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const o=e,l=Re("EP_PICKER_BASE"),{arrowControl:r,disabledHours:n,disabledMinutes:a,disabledSeconds:i,defaultValue:c}=l.props,{getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:p}=Ig(n,a,i),f=_e("time"),{t:h,lang:v}=yt(),m=V([0,2]),g=Rg(o),_=S(()=>lo(o.actualVisible)?`${f.namespace.value}-zoom-in-top`:""),w=S(()=>o.format.includes("ss")),b=S(()=>o.format.includes("A")?"A":o.format.includes("a")?"a":""),x=P=>{const R=tt(P).locale(v.value),J=B(R);return R.isSame(J)},k=()=>{t("pick",g.value,!1)},z=(P=!1,R=!1)=>{R||t("pick",o.parsedValue,P)},M=P=>{if(!o.visible)return;const R=B(P).millisecond(0);t("pick",R,!0)},E=(P,R)=>{t("select-range",P,R),m.value=[P,R]},A=P=>{const R=[0,3].concat(w.value?[6]:[]),J=["hours","minutes"].concat(w.value?["seconds"]:[]),G=(R.indexOf(m.value[0])+P+R.length)%R.length;D.start_emitSelectRange(J[G])},O=P=>{const R=P.code,{left:J,right:oe,up:G,down:le}=je;if([J,oe].includes(R)){A(R===J?-1:1),P.preventDefault();return}if([G,le].includes(R)){const he=R===G?-1:1;D.start_scrollDown(he),P.preventDefault();return}},{timePickerOptions:D,onSetOption:I,getAvailableTime:N}=Pg({getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:p}),B=P=>N(P,o.datetimeRole||"",!0),F=P=>P?tt(P,o.format).locale(v.value):null,H=P=>P?P.format(o.format):null,L=()=>tt(c).locale(v.value);return t("set-picker-option",["isValidValue",x]),t("set-picker-option",["formatToString",H]),t("set-picker-option",["parseUserInput",F]),t("set-picker-option",["handleKeydownInput",O]),t("set-picker-option",["getRangeAvailableTime",B]),t("set-picker-option",["getDefaultValue",L]),(P,R)=>(y(),ue(Kt,{name:s(_)},{default:Z(()=>[P.actualVisible||P.visible?(y(),$("div",{key:0,class:T(s(f).b("panel"))},[C("div",{class:T([s(f).be("panel","content"),{"has-seconds":s(w)}])},[K(R0,{ref:"spinner",role:P.datetimeRole||"start","arrow-control":s(r),"show-seconds":s(w),"am-pm-mode":s(b),"spinner-date":P.parsedValue,"disabled-hours":s(n),"disabled-minutes":s(a),"disabled-seconds":s(i),onChange:M,onSetOption:s(I),onSelectRange:E},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),C("div",{class:T(s(f).be("panel","footer"))},[C("button",{type:"button",class:T([s(f).be("panel","btn"),"cancel"]),onClick:k},Ce(s(h)("el.datepicker.cancel")),3),C("button",{type:"button",class:T([s(f).be("panel","btn"),"confirm"]),onClick:R[0]||(R[0]=J=>z())},Ce(s(h)("el.datepicker.confirm")),3)],2)],2)):ae("v-if",!0)]),_:1},8,["name"]))}});var Nc=Te(Ede,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const Mde=Ae({...Vg,parsedValue:{type:de(Array)}}),Tde=["disabled"],Ade=te({__name:"panel-time-range",props:Mde,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const o=e,l=(ce,ne)=>{const xe=[];for(let U=ce;U<=ne;U++)xe.push(U);return xe},{t:r,lang:n}=yt(),a=_e("time"),i=_e("picker"),c=Re("EP_PICKER_BASE"),{arrowControl:u,disabledHours:d,disabledMinutes:p,disabledSeconds:f,defaultValue:h}=c.props,v=S(()=>o.parsedValue[0]),m=S(()=>o.parsedValue[1]),g=Rg(o),_=()=>{t("pick",g.value,!1)},w=S(()=>o.format.includes("ss")),b=S(()=>o.format.includes("A")?"A":o.format.includes("a")?"a":""),x=(ce=!1)=>{t("pick",[v.value,m.value],ce)},k=ce=>{E(ce.millisecond(0),m.value)},z=ce=>{E(v.value,ce.millisecond(0))},M=ce=>{const ne=ce.map(U=>tt(U).locale(n.value)),xe=R(ne);return ne[0].isSame(xe[0])&&ne[1].isSame(xe[1])},E=(ce,ne)=>{t("pick",[ce,ne],!0)},A=S(()=>v.value>m.value),O=V([0,2]),D=(ce,ne)=>{t("select-range",ce,ne,"min"),O.value=[ce,ne]},I=S(()=>w.value?11:8),N=(ce,ne)=>{t("select-range",ce,ne,"max");const xe=s(I);O.value=[ce+xe,ne+xe]},B=ce=>{const ne=w.value?[0,3,6,11,14,17]:[0,3,8,11],xe=["hours","minutes"].concat(w.value?["seconds"]:[]),Q=(ne.indexOf(O.value[0])+ce+ne.length)%ne.length,fe=ne.length/2;Q{const ne=ce.code,{left:xe,right:U,up:Q,down:fe}=je;if([xe,U].includes(ne)){B(ne===xe?-1:1),ce.preventDefault();return}if([Q,fe].includes(ne)){const we=ne===Q?-1:1,$e=O.value[0]{const xe=d?d(ce):[],U=ce==="start",fe=(ne||(U?m.value:v.value)).hour(),we=U?l(fe+1,23):l(0,fe-1);return rd(xe,we)},L=(ce,ne,xe)=>{const U=p?p(ce,ne):[],Q=ne==="start",fe=xe||(Q?m.value:v.value),we=fe.hour();if(ce!==we)return U;const $e=fe.minute(),pe=Q?l($e+1,59):l(0,$e-1);return rd(U,pe)},P=(ce,ne,xe,U)=>{const Q=f?f(ce,ne,xe):[],fe=xe==="start",we=U||(fe?m.value:v.value),$e=we.hour(),pe=we.minute();if(ce!==$e||ne!==pe)return Q;const Se=we.second(),me=fe?l(Se+1,59):l(0,Se-1);return rd(Q,me)},R=([ce,ne])=>[he(ce,"start",!0,ne),he(ne,"end",!1,ce)],{getAvailableHours:J,getAvailableMinutes:oe,getAvailableSeconds:G}=Ig(H,L,P),{timePickerOptions:le,getAvailableTime:he,onSetOption:j}=Pg({getAvailableHours:J,getAvailableMinutes:oe,getAvailableSeconds:G}),re=ce=>ce?Ie(ce)?ce.map(ne=>tt(ne,o.format).locale(n.value)):tt(ce,o.format).locale(n.value):null,Y=ce=>ce?Ie(ce)?ce.map(ne=>ne.format(o.format)):ce.format(o.format):null,W=()=>{if(Ie(h))return h.map(ne=>tt(ne).locale(n.value));const ce=tt(h).locale(n.value);return[ce,ce.add(60,"m")]};return t("set-picker-option",["formatToString",Y]),t("set-picker-option",["parseUserInput",re]),t("set-picker-option",["isValidValue",M]),t("set-picker-option",["handleKeydownInput",F]),t("set-picker-option",["getDefaultValue",W]),t("set-picker-option",["getRangeAvailableTime",R]),(ce,ne)=>ce.actualVisible?(y(),$("div",{key:0,class:T([s(a).b("range-picker"),s(i).b("panel")])},[C("div",{class:T(s(a).be("range-picker","content"))},[C("div",{class:T(s(a).be("range-picker","cell"))},[C("div",{class:T(s(a).be("range-picker","header"))},Ce(s(r)("el.datepicker.startTime")),3),C("div",{class:T([s(a).be("range-picker","body"),s(a).be("panel","content"),s(a).is("arrow",s(u)),{"has-seconds":s(w)}])},[K(R0,{ref:"minSpinner",role:"start","show-seconds":s(w),"am-pm-mode":s(b),"arrow-control":s(u),"spinner-date":s(v),"disabled-hours":H,"disabled-minutes":L,"disabled-seconds":P,onChange:k,onSetOption:s(j),onSelectRange:D},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),C("div",{class:T(s(a).be("range-picker","cell"))},[C("div",{class:T(s(a).be("range-picker","header"))},Ce(s(r)("el.datepicker.endTime")),3),C("div",{class:T([s(a).be("range-picker","body"),s(a).be("panel","content"),s(a).is("arrow",s(u)),{"has-seconds":s(w)}])},[K(R0,{ref:"maxSpinner",role:"end","show-seconds":s(w),"am-pm-mode":s(b),"arrow-control":s(u),"spinner-date":s(m),"disabled-hours":H,"disabled-minutes":L,"disabled-seconds":P,onChange:z,onSetOption:s(j),onSelectRange:N},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),C("div",{class:T(s(a).be("panel","footer"))},[C("button",{type:"button",class:T([s(a).be("panel","btn"),"cancel"]),onClick:ne[0]||(ne[0]=xe=>_())},Ce(s(r)("el.datepicker.cancel")),3),C("button",{type:"button",class:T([s(a).be("panel","btn"),"confirm"]),disabled:s(A),onClick:ne[1]||(ne[1]=xe=>x())},Ce(s(r)("el.datepicker.confirm")),11,Tde)],2)],2)):ae("v-if",!0)}});var Vde=Te(Ade,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);tt.extend(qp);var Ode=te({name:"ElTimePicker",install:null,props:{...Up,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const o=V(),[l,r]=e.isRange?["timerange",Vde]:["time",Nc],n=a=>t.emit("update:modelValue",a);return st("ElPopperOptions",e.popperOptions),t.expose({focus:a=>{var i;(i=o.value)==null||i.handleFocusInput(a)},blur:a=>{var i;(i=o.value)==null||i.handleBlurInput(a)},handleOpen:()=>{var a;(a=o.value)==null||a.handleOpen()},handleClose:()=>{var a;(a=o.value)==null||a.handleClose()}}),()=>{var a;const i=(a=e.format)!=null?a:z0;return K(Og,ht(e,{ref:o,type:l,format:i,"onUpdate:modelValue":n}),{default:c=>K(r,c,null)})}}});const nc=Ode;nc.install=e=>{e.component(nc.name,nc)};const Pde=nc,Lde=(e,t)=>{const o=e.subtract(1,"month").endOf("month").date();return Rr(t).map((l,r)=>o-(t-r-1))},Ide=e=>{const t=e.daysInMonth();return Rr(t).map((o,l)=>l+1)},Rde=e=>Rr(e.length/7).map(t=>{const o=t*7;return e.slice(o,o+7)}),Hde=Ae({selectedDay:{type:de(Object)},range:{type:de(Array)},date:{type:de(Object),required:!0},hideHeader:{type:Boolean}}),Nde={pick:e=>ft(e)};var Wg={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(xo,function(){return function(o,l,r){var n=l.prototype,a=function(p){return p&&(p.indexOf?p:p.s)},i=function(p,f,h,v,m){var g=p.name?p:p.$locale(),_=a(g[f]),w=a(g[h]),b=_||w.map(function(k){return k.slice(0,v)});if(!m)return b;var x=g.weekStart;return b.map(function(k,z){return b[(z+(x||0))%7]})},c=function(){return r.Ls[r.locale()]},u=function(p,f){return p.formats[f]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,m,g){return m||g.slice(1)})}(p.formats[f.toUpperCase()])},d=function(){var p=this;return{months:function(f){return f?f.format("MMMM"):i(p,"months")},monthsShort:function(f){return f?f.format("MMM"):i(p,"monthsShort","months",3)},firstDayOfWeek:function(){return p.$locale().weekStart||0},weekdays:function(f){return f?f.format("dddd"):i(p,"weekdays")},weekdaysMin:function(f){return f?f.format("dd"):i(p,"weekdaysMin","weekdays",2)},weekdaysShort:function(f){return f?f.format("ddd"):i(p,"weekdaysShort","weekdays",3)},longDateFormat:function(f){return u(p.$locale(),f)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};n.localeData=function(){return d.bind(this)()},r.localeData=function(){var p=c();return{firstDayOfWeek:function(){return p.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(f){return u(p,f)},meridiem:p.meridiem,ordinal:p.ordinal}},r.months=function(){return i(c(),"months")},r.monthsShort=function(){return i(c(),"monthsShort","months",3)},r.weekdays=function(p){return i(c(),"weekdays",null,null,p)},r.weekdaysShort=function(p){return i(c(),"weekdaysShort","weekdays",3,p)},r.weekdaysMin=function(p){return i(c(),"weekdaysMin","weekdays",2,p)}}})})(Wg);const qg=Wg.exports,Bde=(e,t)=>{tt.extend(qg);const o=tt.localeData().firstDayOfWeek(),{t:l,lang:r}=yt(),n=tt().locale(r.value),a=S(()=>!!e.range&&!!e.range.length),i=S(()=>{let f=[];if(a.value){const[h,v]=e.range,m=Rr(v.date()-h.date()+1).map(w=>({text:h.date()+w,type:"current"}));let g=m.length%7;g=g===0?0:7-g;const _=Rr(g).map((w,b)=>({text:b+1,type:"next"}));f=m.concat(_)}else{const h=e.date.startOf("month").day(),v=Lde(e.date,(h-o+7)%7).map(w=>({text:w,type:"prev"})),m=Ide(e.date).map(w=>({text:w,type:"current"}));f=[...v,...m];const g=7-(f.length%7||7),_=Rr(g).map((w,b)=>({text:b+1,type:"next"}));f=f.concat(_)}return Rde(f)}),c=S(()=>{const f=o;return f===0?nd.map(h=>l(`el.datepicker.weeks.${h}`)):nd.slice(f).concat(nd.slice(0,f)).map(h=>l(`el.datepicker.weeks.${h}`))}),u=(f,h)=>{switch(h){case"prev":return e.date.startOf("month").subtract(1,"month").date(f);case"next":return e.date.startOf("month").add(1,"month").date(f);case"current":return e.date.date(f)}};return{now:n,isInRange:a,rows:i,weekDays:c,getFormattedDate:u,handlePickDay:({text:f,type:h})=>{const v=u(f,h);t("pick",v)},getSlotData:({text:f,type:h})=>{const v=u(f,h);return{isSelected:v.isSame(e.selectedDay),type:`${h}-month`,day:v.format("YYYY-MM-DD"),date:v.toDate()}}}},Dde={key:0},Fde=["onClick"],jde=te({name:"DateTable"}),Kde=te({...jde,props:Hde,emits:Nde,setup(e,{expose:t,emit:o}){const l=e,{isInRange:r,now:n,rows:a,weekDays:i,getFormattedDate:c,handlePickDay:u,getSlotData:d}=Bde(l,o),p=_e("calendar-table"),f=_e("calendar-day"),h=({text:v,type:m})=>{const g=[m];if(m==="current"){const _=c(v,m);_.isSame(l.selectedDay,"day")&&g.push(f.is("selected")),_.isSame(n,"day")&&g.push(f.is("today"))}return g};return t({getFormattedDate:c}),(v,m)=>(y(),$("table",{class:T([s(p).b(),s(p).is("range",s(r))]),cellspacing:"0",cellpadding:"0"},[v.hideHeader?ae("v-if",!0):(y(),$("thead",Dde,[(y(!0),$(Pe,null,ut(s(i),g=>(y(),$("th",{key:g},Ce(g),1))),128))])),C("tbody",null,[(y(!0),$(Pe,null,ut(s(a),(g,_)=>(y(),$("tr",{key:_,class:T({[s(p).e("row")]:!0,[s(p).em("row","hide-border")]:_===0&&v.hideHeader})},[(y(!0),$(Pe,null,ut(g,(w,b)=>(y(),$("td",{key:b,class:T(h(w)),onClick:x=>s(u)(w)},[C("div",{class:T(s(f).b())},[ge(v.$slots,"date-cell",{data:s(d)(w)},()=>[C("span",null,Ce(w.text),1)])],2)],10,Fde))),128))],2))),128))])],2))}});var n3=Te(Kde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const Wde=(e,t)=>{const o=e.endOf("month"),l=t.startOf("month"),n=o.isSame(l,"week")?l.add(1,"week"):l;return[[e,o],[n.startOf("week"),t]]},qde=(e,t)=>{const o=e.endOf("month"),l=e.add(1,"month").startOf("month"),r=o.isSame(l,"week")?l.add(1,"week"):l,n=r.endOf("month"),a=t.startOf("month"),i=n.isSame(a,"week")?a.add(1,"week"):a;return[[e,o],[r.startOf("week"),n],[i.startOf("week"),t]]},Ude=(e,t,o)=>{const l=ao(),{lang:r}=yt(),n=V(),a=tt().locale(r.value),i=S({get(){return e.modelValue?u.value:n.value},set(_){if(!_)return;n.value=_;const w=_.toDate();t(Co,w),t(nt,w)}}),c=S(()=>{if(!e.range)return[];const _=e.range.map(x=>tt(x).locale(r.value)),[w,b]=_;return w.isAfter(b)?[]:w.isSame(b,"month")?v(w,b):w.add(1,"month").month()!==b.month()?[]:v(w,b)}),u=S(()=>e.modelValue?tt(e.modelValue).locale(r.value):i.value||(c.value.length?c.value[0][0]:a)),d=S(()=>u.value.subtract(1,"month").date(1)),p=S(()=>u.value.add(1,"month").date(1)),f=S(()=>u.value.subtract(1,"year").date(1)),h=S(()=>u.value.add(1,"year").date(1)),v=(_,w)=>{const b=_.startOf("week"),x=w.endOf("week"),k=b.get("month"),z=x.get("month");return k===z?[[b,x]]:(k+1)%12===z?Wde(b,x):k+2===z||(k+1)%11===z?qde(b,x):[]},m=_=>{i.value=_},g=_=>{const b={"prev-month":d.value,"next-month":p.value,"prev-year":f.value,"next-year":h.value,today:a}[_];b.isSame(u.value,"day")||m(b)};return jr({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},S(()=>!!l.dateCell)),{calculateValidatedDateRange:v,date:u,realSelectedDay:i,pickDay:m,selectDate:g,validatedRange:c}},Yde=e=>Ie(e)&&e.length===2&&e.every(t=>kn(t)),Gde=Ae({modelValue:{type:Date},range:{type:de(Array),validator:Yde}}),Xde={[nt]:e=>kn(e),[Co]:e=>kn(e)},Jde="ElCalendar",Zde=te({name:Jde}),Qde=te({...Zde,props:Gde,emits:Xde,setup(e,{expose:t,emit:o}){const l=e,r=_e("calendar"),{calculateValidatedDateRange:n,date:a,pickDay:i,realSelectedDay:c,selectDate:u,validatedRange:d}=Ude(l,o),{t:p}=yt(),f=S(()=>{const h=`el.datepicker.month${a.value.format("M")}`;return`${a.value.year()} ${p("el.datepicker.year")} ${p(h)}`});return t({selectedDay:c,pickDay:i,selectDate:u,calculateValidatedDateRange:n}),(h,v)=>(y(),$("div",{class:T(s(r).b())},[C("div",{class:T(s(r).e("header"))},[ge(h.$slots,"header",{date:s(f)},()=>[C("div",{class:T(s(r).e("title"))},Ce(s(f)),3),s(d).length===0?(y(),$("div",{key:0,class:T(s(r).e("button-group"))},[K(s($g),null,{default:Z(()=>[K(s(po),{size:"small",onClick:v[0]||(v[0]=m=>s(u)("prev-month"))},{default:Z(()=>[ot(Ce(s(p)("el.datepicker.prevMonth")),1)]),_:1}),K(s(po),{size:"small",onClick:v[1]||(v[1]=m=>s(u)("today"))},{default:Z(()=>[ot(Ce(s(p)("el.datepicker.today")),1)]),_:1}),K(s(po),{size:"small",onClick:v[2]||(v[2]=m=>s(u)("next-month"))},{default:Z(()=>[ot(Ce(s(p)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):ae("v-if",!0)])],2),s(d).length===0?(y(),$("div",{key:0,class:T(s(r).e("body"))},[K(n3,{date:s(a),"selected-day":s(c),onPick:s(i)},Br({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:Z(m=>[h.$slots["date-cell"]?ge(h.$slots,"date-cell",vl(ht({key:0},m))):ge(h.$slots,"dateCell",vl(ht({key:1},m)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(y(),$("div",{key:1,class:T(s(r).e("body"))},[(y(!0),$(Pe,null,ut(s(d),(m,g)=>(y(),ue(n3,{key:g,date:m[0],"selected-day":s(c),range:m,"hide-header":g!==0,onPick:s(i)},Br({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:Z(_=>[h.$slots["date-cell"]?ge(h.$slots,"date-cell",vl(ht({key:0},_))):ge(h.$slots,"dateCell",vl(ht({key:1},_)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var e0e=Te(Qde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const t0e=at(e0e),o0e=Ae({header:{type:String,default:""},bodyStyle:{type:de([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),l0e=te({name:"ElCard"}),r0e=te({...l0e,props:o0e,setup(e){const t=_e("card");return(o,l)=>(y(),$("div",{class:T([s(t).b(),s(t).is(`${o.shadow}-shadow`)])},[o.$slots.header||o.header?(y(),$("div",{key:0,class:T(s(t).e("header"))},[ge(o.$slots,"header",{},()=>[ot(Ce(o.header),1)])],2)):ae("v-if",!0),C("div",{class:T(s(t).e("body")),style:Be(o.bodyStyle)},[ge(o.$slots,"default")],6)],2))}});var n0e=Te(r0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const a0e=at(n0e),i0e=Ae({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},indicator:{type:Boolean,default:!0},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),s0e={change:(e,t)=>[e,t].every(et)},a3=300,c0e=(e,t,o)=>{const{children:l,addChild:r,removeChild:n}=Gm(Qe(),"ElCarouselItem"),a=V(-1),i=V(null),c=V(!1),u=V(),d=S(()=>e.arrow!=="never"&&!s(h)),p=S(()=>l.value.some(H=>H.props.label.toString().length>0)),f=S(()=>e.type==="card"),h=S(()=>e.direction==="vertical"),v=bn(H=>{b(H)},a3,{trailing:!0}),m=bn(H=>{D(H)},a3);function g(){i.value&&(clearInterval(i.value),i.value=null)}function _(){e.interval<=0||!e.autoplay||i.value||(i.value=setInterval(()=>w(),e.interval))}const w=()=>{a.valueJ.props.name===H);R.length>0&&(H=l.value.indexOf(R[0]))}if(H=Number(H),Number.isNaN(H)||H!==Math.floor(H))return;const L=l.value.length,P=a.value;H<0?a.value=e.loop?L-1:0:H>=L?a.value=e.loop?0:L-1:a.value=H,P===a.value&&x(P),B()}function x(H){l.value.forEach((L,P)=>{L.translateItem(P,a.value,H)})}function k(H,L){var P,R,J,oe;const G=s(l),le=G.length;if(le===0||!H.states.inStage)return!1;const he=L+1,j=L-1,re=le-1,Y=G[re].states.active,W=G[0].states.active,ce=(R=(P=G[he])==null?void 0:P.states)==null?void 0:R.active,ne=(oe=(J=G[j])==null?void 0:J.states)==null?void 0:oe.active;return L===re&&W||ce?"left":L===0&&Y||ne?"right":!1}function z(){c.value=!0,e.pauseOnHover&&g()}function M(){c.value=!1,_()}function E(H){s(h)||l.value.forEach((L,P)=>{H===k(L,P)&&(L.states.hover=!0)})}function A(){s(h)||l.value.forEach(H=>{H.states.hover=!1})}function O(H){a.value=H}function D(H){e.trigger==="hover"&&H!==a.value&&(a.value=H)}function I(){b(a.value-1)}function N(){b(a.value+1)}function B(){g(),_()}ve(()=>a.value,(H,L)=>{x(L),L>-1&&t("change",H,L)}),ve(()=>e.autoplay,H=>{H?_():g()}),ve(()=>e.loop,()=>{b(a.value)}),ve(()=>e.interval,()=>{B()}),ve(()=>l.value,()=>{l.value.length>0&&b(e.initialIndex)});const F=Et();return Ze(()=>{F.value=bo(u.value,()=>{x()}),_()}),It(()=>{g(),u.value&&F.value&&F.value.stop()}),st(bm,{root:u,isCardType:f,isVertical:h,items:l,loop:e.loop,addItem:r,removeItem:n,setActiveItem:b}),{root:u,activeIndex:a,arrowDisplay:d,hasLabel:p,hover:c,isCardType:f,items:l,handleButtonEnter:E,handleButtonLeave:A,handleIndicatorClick:O,handleMouseEnter:z,handleMouseLeave:M,setActiveItem:b,prev:I,next:N,throttledArrowClick:v,throttledIndicatorHover:m}},u0e=["onMouseenter","onClick"],d0e={key:0},p0e="ElCarousel",f0e=te({name:p0e}),h0e=te({...f0e,props:i0e,emits:s0e,setup(e,{expose:t,emit:o}){const l=e,{root:r,activeIndex:n,arrowDisplay:a,hasLabel:i,hover:c,isCardType:u,items:d,handleButtonEnter:p,handleButtonLeave:f,handleIndicatorClick:h,handleMouseEnter:v,handleMouseLeave:m,setActiveItem:g,prev:_,next:w,throttledArrowClick:b,throttledIndicatorHover:x}=c0e(l,o),k=_e("carousel"),z=S(()=>{const E=[k.b(),k.m(l.direction)];return s(u)&&E.push(k.m("card")),E}),M=S(()=>{const E=[k.e("indicators"),k.em("indicators",l.direction)];return s(i)&&E.push(k.em("indicators","labels")),(l.indicatorPosition==="outside"||s(u))&&E.push(k.em("indicators","outside")),E});return t({setActiveItem:g,prev:_,next:w}),(E,A)=>(y(),$("div",{ref_key:"root",ref:r,class:T(s(z)),onMouseenter:A[6]||(A[6]=Ue((...O)=>s(v)&&s(v)(...O),["stop"])),onMouseleave:A[7]||(A[7]=Ue((...O)=>s(m)&&s(m)(...O),["stop"]))},[C("div",{class:T(s(k).e("container")),style:Be({height:E.height})},[s(a)?(y(),ue(Kt,{key:0,name:"carousel-arrow-left",persisted:""},{default:Z(()=>[Xe(C("button",{type:"button",class:T([s(k).e("arrow"),s(k).em("arrow","left")]),onMouseenter:A[0]||(A[0]=O=>s(p)("left")),onMouseleave:A[1]||(A[1]=(...O)=>s(f)&&s(f)(...O)),onClick:A[2]||(A[2]=Ue(O=>s(b)(s(n)-1),["stop"]))},[K(s(De),null,{default:Z(()=>[K(s(ir))]),_:1})],34),[[_t,(E.arrow==="always"||s(c))&&(l.loop||s(n)>0)]])]),_:1})):ae("v-if",!0),s(a)?(y(),ue(Kt,{key:1,name:"carousel-arrow-right",persisted:""},{default:Z(()=>[Xe(C("button",{type:"button",class:T([s(k).e("arrow"),s(k).em("arrow","right")]),onMouseenter:A[3]||(A[3]=O=>s(p)("right")),onMouseleave:A[4]||(A[4]=(...O)=>s(f)&&s(f)(...O)),onClick:A[5]||(A[5]=Ue(O=>s(b)(s(n)+1),["stop"]))},[K(s(De),null,{default:Z(()=>[K(s(go))]),_:1})],34),[[_t,(E.arrow==="always"||s(c))&&(l.loop||s(n)(y(),$("li",{key:D,class:T([s(k).e("indicator"),s(k).em("indicator",E.direction),s(k).is("active",D===s(n))]),onMouseenter:I=>s(x)(D),onClick:Ue(I=>s(h)(D),["stop"])},[C("button",{class:T(s(k).e("button"))},[s(i)?(y(),$("span",d0e,Ce(O.props.label),1)):ae("v-if",!0)],2)],42,u0e))),128))],2)):ae("v-if",!0)],34))}});var v0e=Te(h0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const m0e=Ae({name:{type:String,default:""},label:{type:[String,Number],default:""}}),g0e=(e,t)=>{const o=Re(bm),l=Qe(),r=.83,n=V(!1),a=V(0),i=V(1),c=V(!1),u=V(!1),d=V(!1),p=V(!1),{isCardType:f,isVertical:h}=o;function v(b,x,k){const z=k-1,M=x-1,E=x+1,A=k/2;return x===0&&b===z?-1:x===z&&b===0?k:b=A?k+1:b>E&&b-x>=A?-2:b}function m(b,x){var k;const z=((k=o.root.value)==null?void 0:k.offsetWidth)||0;return d.value?z*((2-r)*(b-x)+1)/4:b{var z;const M=s(f),E=(z=o.items.value.length)!=null?z:Number.NaN,A=b===x;!M&&!lo(k)&&(p.value=A||b===k),!A&&E>2&&o.loop&&(b=v(b,x,E));const O=s(h);c.value=A,M?(d.value=Math.round(Math.abs(b-x))<=1,a.value=m(b,x),i.value=s(c)?1:r):a.value=g(b,x,O),u.value=!0};function w(){if(o&&s(f)){const b=o.items.value.findIndex(({uid:x})=>x===l.uid);o.setActiveItem(b)}}return Ze(()=>{o.addItem({props:e,states:wt({hover:n,translate:a,scale:i,active:c,ready:u,inStage:d,animating:p}),uid:l.uid,translateItem:_})}),ur(()=>{o.removeItem(l.uid)}),{active:c,animating:p,hover:n,inStage:d,isVertical:h,translate:a,isCardType:f,scale:i,ready:u,handleItemClick:w}},b0e=te({name:"ElCarouselItem"}),_0e=te({...b0e,props:m0e,setup(e){const t=e,o=_e("carousel"),{active:l,animating:r,hover:n,inStage:a,isVertical:i,translate:c,isCardType:u,scale:d,ready:p,handleItemClick:f}=g0e(t),h=S(()=>{const m=`${`translate${s(i)?"Y":"X"}`}(${s(c)}px)`,g=`scale(${s(d)})`;return{transform:[m,g].join(" ")}});return(v,m)=>Xe((y(),$("div",{class:T([s(o).e("item"),s(o).is("active",s(l)),s(o).is("in-stage",s(a)),s(o).is("hover",s(n)),s(o).is("animating",s(r)),{[s(o).em("item","card")]:s(u)}]),style:Be(s(h)),onClick:m[0]||(m[0]=(...g)=>s(f)&&s(f)(...g))},[s(u)?Xe((y(),$("div",{key:0,class:T(s(o).e("mask"))},null,2)),[[_t,!s(l)]]):ae("v-if",!0),ge(v.$slots,"default")],6)),[[_t,s(p)]])}});var Ug=Te(_0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const y0e=at(v0e,{CarouselItem:Ug}),w0e=Bt(Ug),Yg={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Lo,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},Gg={[nt]:e=>Ge(e)||et(e)||Jt(e),change:e=>Ge(e)||et(e)||Jt(e)},x0e=({model:e,isChecked:t})=>{const o=Re(Ka,void 0),l=S(()=>{var n,a;const i=(n=o==null?void 0:o.max)==null?void 0:n.value,c=(a=o==null?void 0:o.min)==null?void 0:a.value;return!lo(i)&&e.value.length>=i&&!t.value||!lo(c)&&e.value.length<=c&&t.value});return{isDisabled:zl(S(()=>(o==null?void 0:o.disabled.value)||l.value)),isLimitDisabled:l}},k0e=(e,{model:t,isLimitExceeded:o,hasOwnLabel:l,isDisabled:r,isLabeledByFormItem:n})=>{const a=Re(Ka,void 0),{formItem:i}=So(),{emit:c}=Qe();function u(v){var m,g;return v===e.trueLabel||v===!0?(m=e.trueLabel)!=null?m:!0:(g=e.falseLabel)!=null?g:!1}function d(v,m){c("change",u(v),m)}function p(v){if(o.value)return;const m=v.target;c("change",u(m.checked),v)}async function f(v){o.value||!l.value&&!r.value&&n.value&&(v.composedPath().some(_=>_.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await Ne(),d(t.value,v)))}const h=S(()=>(a==null?void 0:a.validateEvent)||e.validateEvent);return ve(()=>e.modelValue,()=>{h.value&&(i==null||i.validate("change").catch(v=>void 0))}),{handleChange:p,onClickRoot:f}},C0e=e=>{const t=V(!1),{emit:o}=Qe(),l=Re(Ka,void 0),r=S(()=>lo(l)===!1),n=V(!1);return{model:S({get(){var i,c;return r.value?(i=l==null?void 0:l.modelValue)==null?void 0:i.value:(c=e.modelValue)!=null?c:t.value},set(i){var c,u;r.value&&Ie(i)?(n.value=((c=l==null?void 0:l.max)==null?void 0:c.value)!==void 0&&i.length>(l==null?void 0:l.max.value),n.value===!1&&((u=l==null?void 0:l.changeEvent)==null||u.call(l,i))):(o(nt,i),t.value=i)}}),isGroup:r,isLimitExceeded:n}},$0e=(e,t,{model:o})=>{const l=Re(Ka,void 0),r=V(!1),n=S(()=>{const u=o.value;return Jt(u)?u:Ie(u)?ft(e.label)?u.map(kt).some(d=>jo(d,e.label)):u.map(kt).includes(e.label):u!=null?u===e.trueLabel:!!u}),a=Xt(S(()=>{var u;return(u=l==null?void 0:l.size)==null?void 0:u.value}),{prop:!0}),i=Xt(S(()=>{var u;return(u=l==null?void 0:l.size)==null?void 0:u.value})),c=S(()=>!!(t.default||e.label));return{checkboxButtonSize:a,isChecked:n,isFocused:r,checkboxSize:i,hasOwnLabel:c}},S0e=(e,{model:t})=>{function o(){Ie(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&o()},Xg=(e,t)=>{const{formItem:o}=So(),{model:l,isGroup:r,isLimitExceeded:n}=C0e(e),{isFocused:a,isChecked:i,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d}=$0e(e,t,{model:l}),{isDisabled:p}=x0e({model:l,isChecked:i}),{inputId:f,isLabeledByFormItem:h}=Yr(e,{formItemContext:o,disableIdGeneration:d,disableIdManagement:r}),{handleChange:v,onClickRoot:m}=k0e(e,{model:l,isLimitExceeded:n,hasOwnLabel:d,isDisabled:p,isLabeledByFormItem:h});return S0e(e,{model:l}),{inputId:f,isLabeledByFormItem:h,isChecked:i,isDisabled:p,isFocused:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d,model:l,handleChange:v,onClickRoot:m}},z0e=["tabindex","role","aria-checked"],E0e=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],M0e=["id","aria-hidden","disabled","value","name","tabindex"],T0e=te({name:"ElCheckbox"}),A0e=te({...T0e,props:Yg,emits:Gg,setup(e){const t=e,o=ao(),{inputId:l,isLabeledByFormItem:r,isChecked:n,isDisabled:a,isFocused:i,checkboxSize:c,hasOwnLabel:u,model:d,handleChange:p,onClickRoot:f}=Xg(t,o),h=_e("checkbox");return(v,m)=>(y(),ue(pt(!s(u)&&s(r)?"span":"label"),{class:T([s(h).b(),s(h).m(s(c)),s(h).is("disabled",s(a)),s(h).is("bordered",v.border),s(h).is("checked",s(n))]),"aria-controls":v.indeterminate?v.controls:null,onClick:s(f)},{default:Z(()=>[C("span",{class:T([s(h).e("input"),s(h).is("disabled",s(a)),s(h).is("checked",s(n)),s(h).is("indeterminate",v.indeterminate),s(h).is("focus",s(i))]),tabindex:v.indeterminate?0:void 0,role:v.indeterminate?"checkbox":void 0,"aria-checked":v.indeterminate?"mixed":void 0},[v.trueLabel||v.falseLabel?Xe((y(),$("input",{key:0,id:s(l),"onUpdate:modelValue":m[0]||(m[0]=g=>xt(d)?d.value=g:null),class:T(s(h).e("original")),type:"checkbox","aria-hidden":v.indeterminate?"true":"false",name:v.name,tabindex:v.tabindex,disabled:s(a),"true-value":v.trueLabel,"false-value":v.falseLabel,onChange:m[1]||(m[1]=(...g)=>s(p)&&s(p)(...g)),onFocus:m[2]||(m[2]=g=>i.value=!0),onBlur:m[3]||(m[3]=g=>i.value=!1)},null,42,E0e)),[[Ac,s(d)]]):Xe((y(),$("input",{key:1,id:s(l),"onUpdate:modelValue":m[4]||(m[4]=g=>xt(d)?d.value=g:null),class:T(s(h).e("original")),type:"checkbox","aria-hidden":v.indeterminate?"true":"false",disabled:s(a),value:v.label,name:v.name,tabindex:v.tabindex,onChange:m[5]||(m[5]=(...g)=>s(p)&&s(p)(...g)),onFocus:m[6]||(m[6]=g=>i.value=!0),onBlur:m[7]||(m[7]=g=>i.value=!1)},null,42,M0e)),[[Ac,s(d)]]),C("span",{class:T(s(h).e("inner"))},null,2)],10,z0e),s(u)?(y(),$("span",{key:0,class:T(s(h).e("label"))},[ge(v.$slots,"default"),v.$slots.default?ae("v-if",!0):(y(),$(Pe,{key:0},[ot(Ce(v.label),1)],64))],2)):ae("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var V0e=Te(A0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const O0e=["name","tabindex","disabled","true-value","false-value"],P0e=["name","tabindex","disabled","value"],L0e=te({name:"ElCheckboxButton"}),I0e=te({...L0e,props:Yg,emits:Gg,setup(e){const t=e,o=ao(),{isFocused:l,isChecked:r,isDisabled:n,checkboxButtonSize:a,model:i,handleChange:c}=Xg(t,o),u=Re(Ka,void 0),d=_e("checkbox"),p=S(()=>{var f,h,v,m;const g=(h=(f=u==null?void 0:u.fill)==null?void 0:f.value)!=null?h:"";return{backgroundColor:g,borderColor:g,color:(m=(v=u==null?void 0:u.textColor)==null?void 0:v.value)!=null?m:"",boxShadow:g?`-1px 0 0 0 ${g}`:void 0}});return(f,h)=>(y(),$("label",{class:T([s(d).b("button"),s(d).bm("button",s(a)),s(d).is("disabled",s(n)),s(d).is("checked",s(r)),s(d).is("focus",s(l))])},[f.trueLabel||f.falseLabel?Xe((y(),$("input",{key:0,"onUpdate:modelValue":h[0]||(h[0]=v=>xt(i)?i.value=v:null),class:T(s(d).be("button","original")),type:"checkbox",name:f.name,tabindex:f.tabindex,disabled:s(n),"true-value":f.trueLabel,"false-value":f.falseLabel,onChange:h[1]||(h[1]=(...v)=>s(c)&&s(c)(...v)),onFocus:h[2]||(h[2]=v=>l.value=!0),onBlur:h[3]||(h[3]=v=>l.value=!1)},null,42,O0e)),[[Ac,s(i)]]):Xe((y(),$("input",{key:1,"onUpdate:modelValue":h[4]||(h[4]=v=>xt(i)?i.value=v:null),class:T(s(d).be("button","original")),type:"checkbox",name:f.name,tabindex:f.tabindex,disabled:s(n),value:f.label,onChange:h[5]||(h[5]=(...v)=>s(c)&&s(c)(...v)),onFocus:h[6]||(h[6]=v=>l.value=!0),onBlur:h[7]||(h[7]=v=>l.value=!1)},null,42,P0e)),[[Ac,s(i)]]),f.$slots.default||f.label?(y(),$("span",{key:2,class:T(s(d).be("button","inner")),style:Be(s(r)?s(p):void 0)},[ge(f.$slots,"default",{},()=>[ot(Ce(f.label),1)])],6)):ae("v-if",!0)],2))}});var Jg=Te(I0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const R0e=Ae({modelValue:{type:de(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Lo,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),H0e={[nt]:e=>Ie(e),change:e=>Ie(e)},N0e=te({name:"ElCheckboxGroup"}),B0e=te({...N0e,props:R0e,emits:H0e,setup(e,{emit:t}){const o=e,l=_e("checkbox"),{formItem:r}=So(),{inputId:n,isLabeledByFormItem:a}=Yr(o,{formItemContext:r}),i=async u=>{t(nt,u),await Ne(),t("change",u)},c=S({get(){return o.modelValue},set(u){i(u)}});return st(Ka,{...or(Gt(o),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:i}),ve(()=>o.modelValue,()=>{o.validateEvent&&(r==null||r.validate("change").catch(u=>void 0))}),(u,d)=>{var p;return y(),ue(pt(u.tag),{id:s(n),class:T(s(l).b("group")),role:"group","aria-label":s(a)?void 0:u.label||"checkbox-group","aria-labelledby":s(a)?(p=s(r))==null?void 0:p.labelId:void 0},{default:Z(()=>[ge(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Zg=Te(B0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const sl=at(V0e,{CheckboxButton:Jg,CheckboxGroup:Zg}),D0e=Bt(Jg),Qg=Bt(Zg),e8=Ae({size:Lo,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),F0e=Ae({...e8,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),t8={[nt]:e=>Ge(e)||et(e)||Jt(e),[Ot]:e=>Ge(e)||et(e)||Jt(e)},o8=(e,t)=>{const o=V(),l=Re(km,void 0),r=S(()=>!!l),n=S({get(){return r.value?l.modelValue:e.modelValue},set(d){r.value?l.changeEvent(d):t&&t(nt,d),o.value.checked=e.modelValue===e.label}}),a=Xt(S(()=>l==null?void 0:l.size)),i=zl(S(()=>l==null?void 0:l.disabled)),c=V(!1),u=S(()=>i.value||r.value&&n.value!==e.label?-1:0);return{radioRef:o,isGroup:r,radioGroup:l,focus:c,size:a,disabled:i,tabIndex:u,modelValue:n}},j0e=["value","name","disabled"],K0e=te({name:"ElRadio"}),W0e=te({...K0e,props:F0e,emits:t8,setup(e,{emit:t}){const o=e,l=_e("radio"),{radioRef:r,radioGroup:n,focus:a,size:i,disabled:c,modelValue:u}=o8(o,t);function d(){Ne(()=>t("change",u.value))}return(p,f)=>{var h;return y(),$("label",{class:T([s(l).b(),s(l).is("disabled",s(c)),s(l).is("focus",s(a)),s(l).is("bordered",p.border),s(l).is("checked",s(u)===p.label),s(l).m(s(i))])},[C("span",{class:T([s(l).e("input"),s(l).is("disabled",s(c)),s(l).is("checked",s(u)===p.label)])},[Xe(C("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":f[0]||(f[0]=v=>xt(u)?u.value=v:null),class:T(s(l).e("original")),value:p.label,name:p.name||((h=s(n))==null?void 0:h.name),disabled:s(c),type:"radio",onFocus:f[1]||(f[1]=v=>a.value=!0),onBlur:f[2]||(f[2]=v=>a.value=!1),onChange:d},null,42,j0e),[[o4,s(u)]]),C("span",{class:T(s(l).e("inner"))},null,2)],2),C("span",{class:T(s(l).e("label")),onKeydown:f[3]||(f[3]=Ue(()=>{},["stop"]))},[ge(p.$slots,"default",{},()=>[ot(Ce(p.label),1)])],34)],2)}}});var q0e=Te(W0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const U0e=Ae({...e8,name:{type:String,default:""}}),Y0e=["value","name","disabled"],G0e=te({name:"ElRadioButton"}),X0e=te({...G0e,props:U0e,setup(e){const t=e,o=_e("radio"),{radioRef:l,focus:r,size:n,disabled:a,modelValue:i,radioGroup:c}=o8(t),u=S(()=>({backgroundColor:(c==null?void 0:c.fill)||"",borderColor:(c==null?void 0:c.fill)||"",boxShadow:c!=null&&c.fill?`-1px 0 0 0 ${c.fill}`:"",color:(c==null?void 0:c.textColor)||""}));return(d,p)=>{var f;return y(),$("label",{class:T([s(o).b("button"),s(o).is("active",s(i)===d.label),s(o).is("disabled",s(a)),s(o).is("focus",s(r)),s(o).bm("button",s(n))])},[Xe(C("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":p[0]||(p[0]=h=>xt(i)?i.value=h:null),class:T(s(o).be("button","original-radio")),value:d.label,type:"radio",name:d.name||((f=s(c))==null?void 0:f.name),disabled:s(a),onFocus:p[1]||(p[1]=h=>r.value=!0),onBlur:p[2]||(p[2]=h=>r.value=!1)},null,42,Y0e),[[o4,s(i)]]),C("span",{class:T(s(o).be("button","inner")),style:Be(s(i)===d.label?s(u):{}),onKeydown:p[3]||(p[3]=Ue(()=>{},["stop"]))},[ge(d.$slots,"default",{},()=>[ot(Ce(d.label),1)])],38)],2)}}});var l8=Te(X0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const J0e=Ae({id:{type:String,default:void 0},size:Lo,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),Z0e=t8,Q0e=["id","aria-label","aria-labelledby"],e2e=te({name:"ElRadioGroup"}),t2e=te({...e2e,props:J0e,emits:Z0e,setup(e,{emit:t}){const o=e,l=_e("radio"),r=wl(),n=V(),{formItem:a}=So(),{inputId:i,isLabeledByFormItem:c}=Yr(o,{formItemContext:a}),u=p=>{t(nt,p),Ne(()=>t("change",p))};Ze(()=>{const p=n.value.querySelectorAll("[type=radio]"),f=p[0];!Array.from(p).some(h=>h.checked)&&f&&(f.tabIndex=0)});const d=S(()=>o.name||r.value);return st(km,wt({...Gt(o),changeEvent:u,name:d})),ve(()=>o.modelValue,()=>{o.validateEvent&&(a==null||a.validate("change").catch(p=>void 0))}),(p,f)=>(y(),$("div",{id:s(i),ref_key:"radioGroupRef",ref:n,class:T(s(l).b("group")),role:"radiogroup","aria-label":s(c)?void 0:p.label||"radio-group","aria-labelledby":s(c)?s(a).labelId:void 0},[ge(p.$slots,"default")],10,Q0e))}});var r8=Te(t2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const n8=at(q0e,{RadioButton:l8,RadioGroup:r8}),o2e=Bt(r8),l2e=Bt(l8);var r2e=te({name:"NodeContent",setup(){return{ns:_e("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:o}=this.$parent,{data:l,label:r}=t,{renderLabelFn:n}=o;return Fe("span",{class:e.e("label")},n?n({node:t,data:l}):r)}});const Yp=Symbol(),n2e=te({name:"ElCascaderNode",components:{ElCheckbox:sl,ElRadio:n8,NodeContent:r2e,ElIcon:De,Check:Fa,Loading:vr,ArrowRight:go},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const o=Re(Yp),l=_e("cascader-node"),r=S(()=>o.isHoverMenu),n=S(()=>o.config.multiple),a=S(()=>o.config.checkStrictly),i=S(()=>{var z;return(z=o.checkedNodes[0])==null?void 0:z.uid}),c=S(()=>e.node.isDisabled),u=S(()=>e.node.isLeaf),d=S(()=>a.value&&!u.value||!c.value),p=S(()=>h(o.expandingNode)),f=S(()=>a.value&&o.checkedNodes.some(h)),h=z=>{var M;const{level:E,uid:A}=e.node;return((M=z==null?void 0:z.pathNodes[E-1])==null?void 0:M.uid)===A},v=()=>{p.value||o.expandNode(e.node)},m=z=>{const{node:M}=e;z!==M.checked&&o.handleCheckChange(M,z)},g=()=>{o.lazyLoad(e.node,()=>{u.value||v()})},_=z=>{!r.value||(w(),!u.value&&t("expand",z))},w=()=>{const{node:z}=e;!d.value||z.loading||(z.loaded?v():g())},b=()=>{r.value&&!u.value||(u.value&&!c.value&&!a.value&&!n.value?k(!0):w())},x=z=>{a.value?(m(z),e.node.loaded&&v()):k(z)},k=z=>{e.node.loaded?(m(z),!a.value&&v()):g()};return{panel:o,isHoverMenu:r,multiple:n,checkStrictly:a,checkedNodeId:i,isDisabled:c,isLeaf:u,expandable:d,inExpandingPath:p,inCheckedPath:f,ns:l,handleHoverExpand:_,handleExpand:w,handleClick:b,handleCheck:k,handleSelectCheck:x}}}),a2e=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],i2e=C("span",null,null,-1);function s2e(e,t,o,l,r,n){const a=Oe("el-checkbox"),i=Oe("el-radio"),c=Oe("check"),u=Oe("el-icon"),d=Oe("node-content"),p=Oe("loading"),f=Oe("arrow-right");return y(),$("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:T([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...h)=>e.handleHoverExpand&&e.handleHoverExpand(...h)),onFocus:t[3]||(t[3]=(...h)=>e.handleHoverExpand&&e.handleHoverExpand(...h)),onClick:t[4]||(t[4]=(...h)=>e.handleClick&&e.handleClick(...h))},[ae(" prefix "),e.multiple?(y(),ue(a,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=Ue(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(y(),ue(i,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=Ue(()=>{},["stop"]))},{default:Z(()=>[ae(` + Add an empty element to avoid render label, + do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 + `),i2e]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(y(),ue(u,{key:2,class:T(e.ns.e("prefix"))},{default:Z(()=>[K(c)]),_:1},8,["class"])):ae("v-if",!0),ae(" content "),K(d),ae(" postfix "),e.isLeaf?ae("v-if",!0):(y(),$(Pe,{key:3},[e.node.loading?(y(),ue(u,{key:0,class:T([e.ns.is("loading"),e.ns.e("postfix")])},{default:Z(()=>[K(p)]),_:1},8,["class"])):(y(),ue(u,{key:1,class:T(["arrow-right",e.ns.e("postfix")])},{default:Z(()=>[K(f)]),_:1},8,["class"]))],64))],42,a2e)}var c2e=Te(n2e,[["render",s2e],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const u2e=te({name:"ElCascaderMenu",components:{Loading:vr,ElIcon:De,ElScrollbar:_r,ElCascaderNode:c2e},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=Qe(),o=_e("cascader-menu"),{t:l}=yt(),r=gs();let n=null,a=null;const i=Re(Yp),c=V(null),u=S(()=>!e.nodes.length),d=S(()=>!i.initialLoaded),p=S(()=>`cascader-menu-${r}-${e.index}`),f=g=>{n=g.target},h=g=>{if(!(!i.isHoverMenu||!n||!c.value))if(n.contains(g.target)){v();const _=t.vnode.el,{left:w}=_.getBoundingClientRect(),{offsetWidth:b,offsetHeight:x}=_,k=g.clientX-w,z=n.offsetTop,M=z+n.offsetHeight;c.value.innerHTML=` + + + `}else a||(a=window.setTimeout(m,i.config.hoverThreshold))},v=()=>{!a||(clearTimeout(a),a=null)},m=()=>{!c.value||(c.value.innerHTML="",v())};return{ns:o,panel:i,hoverZone:c,isEmpty:u,isLoading:d,menuId:p,t:l,handleExpand:f,handleMouseMove:h,clearHoverZone:m}}});function d2e(e,t,o,l,r,n){const a=Oe("el-cascader-node"),i=Oe("loading"),c=Oe("el-icon"),u=Oe("el-scrollbar");return y(),ue(u,{key:e.menuId,tag:"ul",role:"menu",class:T(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:Z(()=>{var d;return[(y(!0),$(Pe,null,ut(e.nodes,p=>(y(),ue(a,{key:p.uid,node:p,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(y(),$("div",{key:0,class:T(e.ns.e("empty-text"))},[K(c,{size:"14",class:T(e.ns.is("loading"))},{default:Z(()=>[K(i)]),_:1},8,["class"]),ot(" "+Ce(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(y(),$("div",{key:1,class:T(e.ns.e("empty-text"))},Ce(e.t("el.cascader.noData")),3)):(d=e.panel)!=null&&d.isHoverMenu?(y(),$("svg",{key:2,ref:"hoverZone",class:T(e.ns.e("hover-zone"))},null,2)):ae("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var p2e=Te(u2e,[["render",d2e],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let f2e=0;const h2e=e=>{const t=[e];let{parent:o}=e;for(;o;)t.unshift(o),o=o.parent;return t};class Sa{constructor(t,o,l,r=!1){this.data=t,this.config=o,this.parent=l,this.root=r,this.uid=f2e++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:n,label:a,children:i}=o,c=t[i],u=h2e(this);this.level=r?0:l?l.level+1:1,this.value=t[n],this.label=t[a],this.pathNodes=u,this.pathValues=u.map(d=>d.value),this.pathLabels=u.map(d=>d.label),this.childrenData=c,this.children=(c||[]).map(d=>new Sa(d,o,this)),this.loaded=!o.lazy||this.isLeaf||!Jo(c)}get isDisabled(){const{data:t,parent:o,config:l}=this,{disabled:r,checkStrictly:n}=l;return(Ye(r)?r(t,this):!!t[r])||!n&&(o==null?void 0:o.isDisabled)}get isLeaf(){const{data:t,config:o,childrenData:l,loaded:r}=this,{lazy:n,leaf:a}=o,i=Ye(a)?a(t,this):t[a];return lo(i)?n&&!r?!1:!(Array.isArray(l)&&l.length):!!i}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:o,children:l}=this,r=new Sa(t,this.config,this);return Array.isArray(o)?o.push(t):this.childrenData=[t],l.push(r),r}calcText(t,o){const l=t?this.pathLabels.join(o):this.label;return this.text=l,l}broadcast(t,...o){const l=`onParent${Zo(t)}`;this.children.forEach(r=>{r&&(r.broadcast(t,...o),r[l]&&r[l](...o))})}emit(t,...o){const{parent:l}=this,r=`onChild${Zo(t)}`;l&&(l[r]&&l[r](...o),l.emit(t,...o))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,o=t.filter(r=>!r.isDisabled),l=o.length?o.every(r=>r.checked):!1;this.setCheckState(l)}setCheckState(t){const o=this.children.length,l=this.children.reduce((r,n)=>{const a=n.checked?1:n.indeterminate?.5:0;return r+a},0);this.checked=this.loaded&&this.children.filter(r=>!r.isDisabled).every(r=>r.loaded&&r.checked)&&t,this.indeterminate=this.loaded&&l!==o&&l>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:o,multiple:l}=this.config;o||!l?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}}const H0=(e,t)=>e.reduce((o,l)=>(l.isLeaf?o.push(l):(!t&&o.push(l),o=o.concat(H0(l.children,t))),o),[]);class i3{constructor(t,o){this.config=o;const l=(t||[]).map(r=>new Sa(r,this.config));this.nodes=l,this.allNodes=H0(l,!1),this.leafNodes=H0(l,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,o){const l=o?o.appendChild(t):new Sa(t,this.config);o||this.nodes.push(l),this.allNodes.push(l),l.isLeaf&&this.leafNodes.push(l)}appendNodes(t,o){t.forEach(l=>this.appendNode(l,o))}getNodeByValue(t,o=!1){return!t&&t!==0?null:this.getFlattedNodes(o).find(r=>jo(r.value,t)||jo(r.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:l,level:r})=>jo(t.value,l)&&t.level===r)||null}}const a8={modelValue:[Number,String,Array],options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({})}},v2e={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:$t,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},m2e=e=>S(()=>({...v2e,...e.props})),s3=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},g2e=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():R4(e)&&e.click()},b2e=(e,t)=>{const o=t.slice(0),l=o.map(n=>n.uid),r=e.reduce((n,a)=>{const i=l.indexOf(a.uid);return i>-1&&(n.push(a),o.splice(i,1),l.splice(i,1)),n},[]);return r.push(...o),r},_2e=te({name:"ElCascaderPanel",components:{ElCascaderMenu:p2e},props:{...a8,border:{type:Boolean,default:!0},renderLabel:Function},emits:[nt,Ot,"close","expand-change"],setup(e,{emit:t,slots:o}){let l=!1;const r=_e("cascader"),n=m2e(e);let a=null;const i=V(!0),c=V([]),u=V(null),d=V([]),p=V(null),f=V([]),h=S(()=>n.value.expandTrigger==="hover"),v=S(()=>e.renderLabel||o.default),m=()=>{const{options:I}=e,N=n.value;l=!1,a=new i3(I,N),d.value=[a.getNodes()],N.lazy&&Jo(e.options)?(i.value=!1,g(void 0,B=>{B&&(a=new i3(B,N),d.value=[a.getNodes()]),i.value=!0,E(!1,!0)})):E(!1,!0)},g=(I,N)=>{const B=n.value;I=I||new Sa({},B,void 0,!0),I.loading=!0;const F=H=>{const L=I,P=L.root?null:L;H&&(a==null||a.appendNodes(H,P)),L.loading=!1,L.loaded=!0,L.childrenData=L.childrenData||[],N&&N(H)};B.lazyLoad(I,F)},_=(I,N)=>{var B;const{level:F}=I,H=d.value.slice(0,F);let L;I.isLeaf?L=I.pathNodes[F-2]:(L=I,H.push(I.children)),((B=p.value)==null?void 0:B.uid)!==(L==null?void 0:L.uid)&&(p.value=I,d.value=H,!N&&t("expand-change",(I==null?void 0:I.pathValues)||[]))},w=(I,N,B=!0)=>{const{checkStrictly:F,multiple:H}=n.value,L=f.value[0];l=!0,!H&&(L==null||L.doCheck(!1)),I.doCheck(N),M(),B&&!H&&!F&&t("close"),!B&&!H&&!F&&b(I)},b=I=>{!I||(I=I.parent,b(I),I&&_(I))},x=I=>a==null?void 0:a.getFlattedNodes(I),k=I=>{var N;return(N=x(I))==null?void 0:N.filter(B=>B.checked!==!1)},z=()=>{f.value.forEach(I=>I.doCheck(!1)),M()},M=()=>{var I;const{checkStrictly:N,multiple:B}=n.value,F=f.value,H=k(!N),L=b2e(F,H),P=L.map(R=>R.valueByOption);f.value=L,u.value=B?P:(I=P[0])!=null?I:null},E=(I=!1,N=!1)=>{const{modelValue:B}=e,{lazy:F,multiple:H,checkStrictly:L}=n.value,P=!L;if(!(!i.value||l||!N&&jo(B,u.value)))if(F&&!I){const J=vh(t$(lr(B))).map(oe=>a==null?void 0:a.getNodeByValue(oe)).filter(oe=>!!oe&&!oe.loaded&&!oe.loading);J.length?J.forEach(oe=>{g(oe,()=>E(!1,N))}):E(!0,N)}else{const R=H?lr(B):[B],J=vh(R.map(oe=>a==null?void 0:a.getNodeByValue(oe,P)));A(J,N),u.value=M4(B)}},A=(I,N=!0)=>{const{checkStrictly:B}=n.value,F=f.value,H=I.filter(R=>!!R&&(B||R.isLeaf)),L=a==null?void 0:a.getSameNode(p.value),P=N&&L||H[0];P?P.pathNodes.forEach(R=>_(R,!0)):p.value=null,F.forEach(R=>R.doCheck(!1)),H.forEach(R=>R.doCheck(!0)),f.value=H,Ne(O)},O=()=>{!gt||c.value.forEach(I=>{const N=I==null?void 0:I.$el;if(N){const B=N.querySelector(`.${r.namespace.value}-scrollbar__wrap`),F=N.querySelector(`.${r.b("node")}.${r.is("active")}`)||N.querySelector(`.${r.b("node")}.in-active-path`);K4(B,F)}})},D=I=>{const N=I.target,{code:B}=I;switch(B){case je.up:case je.down:{I.preventDefault();const F=B===je.up?-1:1;Qs(H4(N,F,`.${r.b("node")}[tabindex="-1"]`));break}case je.left:{I.preventDefault();const F=c.value[s3(N)-1],H=F==null?void 0:F.$el.querySelector(`.${r.b("node")}[aria-expanded="true"]`);Qs(H);break}case je.right:{I.preventDefault();const F=c.value[s3(N)+1],H=F==null?void 0:F.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`);Qs(H);break}case je.enter:g2e(N);break}};return st(Yp,wt({config:n,expandingNode:p,checkedNodes:f,isHoverMenu:h,initialLoaded:i,renderLabelFn:v,lazyLoad:g,expandNode:_,handleCheckChange:w})),ve([n,()=>e.options],m,{deep:!0,immediate:!0}),ve(()=>e.modelValue,()=>{l=!1,E()},{deep:!0}),ve(()=>u.value,I=>{jo(I,e.modelValue)||(t(nt,I),t(Ot,I))}),O6(()=>c.value=[]),Ze(()=>!Jo(e.modelValue)&&E()),{ns:r,menuList:c,menus:d,checkedNodes:f,handleKeyDown:D,handleCheckChange:w,getFlattedNodes:x,getCheckedNodes:k,clearCheckedNodes:z,calculateCheckedValue:M,scrollToExpandingNode:O}}});function y2e(e,t,o,l,r,n){const a=Oe("el-cascader-menu");return y(),$("div",{class:T([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...i)=>e.handleKeyDown&&e.handleKeyDown(...i))},[(y(!0),$(Pe,null,ut(e.menus,(i,c)=>(y(),ue(a,{key:c,ref_for:!0,ref:u=>e.menuList[c]=u,index:c,nodes:[...i]},null,8,["index","nodes"]))),128))],34)}var ac=Te(_2e,[["render",y2e],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);ac.install=e=>{e.component(ac.name,ac)};const i8=ac,w2e=i8,Gp=Ae({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Ur,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),x2e={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},k2e=te({name:"ElTag"}),C2e=te({...k2e,props:Gp,emits:x2e,setup(e,{emit:t}){const o=e,l=Xt(),r=_e("tag"),n=S(()=>{const{type:c,hit:u,effect:d,closable:p,round:f}=o;return[r.b(),r.is("closable",p),r.m(c),r.m(l.value),r.m(d),r.is("hit",u),r.is("round",f)]}),a=c=>{t("close",c)},i=c=>{t("click",c)};return(c,u)=>c.disableTransitions?(y(),$("span",{key:0,class:T(s(n)),style:Be({backgroundColor:c.color}),onClick:i},[C("span",{class:T(s(r).e("content"))},[ge(c.$slots,"default")],2),c.closable?(y(),ue(s(De),{key:0,class:T(s(r).e("close")),onClick:Ue(a,["stop"])},{default:Z(()=>[K(s(nl))]),_:1},8,["class","onClick"])):ae("v-if",!0)],6)):(y(),ue(Kt,{key:1,name:`${s(r).namespace.value}-zoom-in-center`,appear:""},{default:Z(()=>[C("span",{class:T(s(n)),style:Be({backgroundColor:c.color}),onClick:i},[C("span",{class:T(s(r).e("content"))},[ge(c.$slots,"default")],2),c.closable?(y(),ue(s(De),{key:0,class:T(s(r).e("close")),onClick:Ue(a,["stop"])},{default:Z(()=>[K(s(nl))]),_:1},8,["class","onClick"])):ae("v-if",!0)],6)]),_:3},8,["name"]))}});var $2e=Te(C2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const Pu=at($2e),S2e={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:e})=>{const{modifiersData:t,placement:o}=e;["right","left","bottom","top"].includes(o)||(t.arrow.x=35)},requires:["arrow"]}]},z2e="ElCascader",E2e=te({name:z2e,components:{ElCascaderPanel:i8,ElInput:mo,ElTooltip:Ro,ElScrollbar:_r,ElTag:Pu,ElIcon:De,CircleClose:hr,Check:Fa,ArrowDown:fr},directives:{Clickoutside:Wr},props:{...a8,size:{type:String,validator:ja},placeholder:{type:String},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:Function,default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:Function,default:()=>!0},popperClass:{type:String,default:""},teleported:to.teleported,tagType:{...Gp.type,default:"info"},validateEvent:{type:Boolean,default:!0}},emits:[nt,Ot,"focus","blur","visible-change","expand-change","remove-tag"],setup(e,{emit:t}){let o=0,l=0;const r=_e("cascader"),n=_e("input"),{t:a}=yt(),{form:i,formItem:c}=So(),u=V(null),d=V(null),p=V(null),f=V(null),h=V(null),v=V(!1),m=V(!1),g=V(!1),_=V(""),w=V(""),b=V([]),x=V([]),k=V([]),z=V(!1),M=S(()=>e.disabled||(i==null?void 0:i.disabled)),E=S(()=>e.placeholder||a("el.cascader.placeholder")),A=S(()=>w.value||b.value.length>0?"":E.value),O=Xt(),D=S(()=>["small"].includes(O.value)?"small":"default"),I=S(()=>!!e.props.multiple),N=S(()=>!e.filterable||I.value),B=S(()=>I.value?w.value:_.value),F=S(()=>{var X;return((X=f.value)==null?void 0:X.checkedNodes)||[]}),H=S(()=>!e.clearable||M.value||g.value||!m.value?!1:!!F.value.length),L=S(()=>{const{showAllLevels:X,separator:se}=e,ze=F.value;return ze.length?I.value?"":ze[0].calcText(X,se):""}),P=S({get(){return M4(e.modelValue)},set(X){t(nt,X),t(Ot,X),e.validateEvent&&(c==null||c.validate("change").catch(se=>void 0))}}),R=S(()=>{var X,se;return(se=(X=u.value)==null?void 0:X.popperRef)==null?void 0:se.contentRef}),J=X=>{var se,ze,Ve;M.value||(X=X!=null?X:!v.value,X!==v.value&&(v.value=X,(ze=(se=d.value)==null?void 0:se.input)==null||ze.setAttribute("aria-expanded",`${X}`),X?(oe(),Ne((Ve=f.value)==null?void 0:Ve.scrollToExpandingNode)):e.filterable&&fe(),t("visible-change",X)))},oe=()=>{Ne(()=>{var X;(X=u.value)==null||X.updatePopper()})},G=()=>{g.value=!1},le=X=>{const{showAllLevels:se,separator:ze}=e;return{node:X,key:X.uid,text:X.calcText(se,ze),hitState:!1,closable:!M.value&&!X.isDisabled,isCollapseTag:!1}},he=X=>{var se;const ze=X.node;ze.doCheck(!1),(se=f.value)==null||se.calculateCheckedValue(),t("remove-tag",ze.valueByOption)},j=()=>{if(!I.value)return;const X=F.value,se=[],ze=[];if(X.forEach(Ve=>ze.push(le(Ve))),x.value=ze,X.length){const[Ve,...Le]=X,Ke=Le.length;se.push(le(Ve)),Ke&&(e.collapseTags?se.push({key:-1,text:`+ ${Ke}`,closable:!1,isCollapseTag:!0}):Le.forEach(qe=>se.push(le(qe))))}b.value=se},re=()=>{var X,se;const{filterMethod:ze,showAllLevels:Ve,separator:Le}=e,Ke=(se=(X=f.value)==null?void 0:X.getFlattedNodes(!e.props.checkStrictly))==null?void 0:se.filter(qe=>qe.isDisabled?!1:(qe.calcText(Ve,Le),ze(qe,B.value)));I.value&&(b.value.forEach(qe=>{qe.hitState=!1}),x.value.forEach(qe=>{qe.hitState=!1})),g.value=!0,k.value=Ke,oe()},Y=()=>{var X;let se;g.value&&h.value?se=h.value.$el.querySelector(`.${r.e("suggestion-item")}`):se=(X=f.value)==null?void 0:X.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`),se&&(se.focus(),!g.value&&se.click())},W=()=>{var X,se;const ze=(X=d.value)==null?void 0:X.input,Ve=p.value,Le=(se=h.value)==null?void 0:se.$el;if(!(!gt||!ze)){if(Le){const Ke=Le.querySelector(`.${r.e("suggestion-list")}`);Ke.style.minWidth=`${ze.offsetWidth}px`}if(Ve){const{offsetHeight:Ke}=Ve,qe=b.value.length>0?`${Math.max(Ke+6,o)}px`:`${o}px`;ze.style.height=qe,oe()}}},ce=X=>{var se;return(se=f.value)==null?void 0:se.getCheckedNodes(X)},ne=X=>{oe(),t("expand-change",X)},xe=X=>{var se;const ze=(se=X.target)==null?void 0:se.value;if(X.type==="compositionend")z.value=!1,Ne(()=>me(ze));else{const Ve=ze[ze.length-1]||"";z.value=!ku(Ve)}},U=X=>{if(!z.value)switch(X.code){case je.enter:J();break;case je.down:J(!0),Ne(Y),X.preventDefault();break;case je.esc:v.value===!0&&(X.preventDefault(),X.stopPropagation(),J(!1));break;case je.tab:J(!1);break}},Q=()=>{var X;(X=f.value)==null||X.clearCheckedNodes(),!v.value&&e.filterable&&fe(),J(!1)},fe=()=>{const{value:X}=L;_.value=X,w.value=X},we=X=>{var se,ze;const{checked:Ve}=X;I.value?(se=f.value)==null||se.handleCheckChange(X,!Ve,!1):(!Ve&&((ze=f.value)==null||ze.handleCheckChange(X,!0,!1)),J(!1))},$e=X=>{const se=X.target,{code:ze}=X;switch(ze){case je.up:case je.down:{const Ve=ze===je.up?-1:1;Qs(H4(se,Ve,`.${r.e("suggestion-item")}[tabindex="-1"]`));break}case je.enter:se.click();break}},pe=()=>{const X=b.value,se=X[X.length-1];l=w.value?0:l+1,!(!se||!l||e.collapseTags&&X.length>1)&&(se.hitState?he(se):se.hitState=!0)},Se=$o(()=>{const{value:X}=B;if(!X)return;const se=e.beforeFilter(X);Ti(se)?se.then(re).catch(()=>{}):se!==!1?re():G()},e.debounce),me=(X,se)=>{!v.value&&J(!0),!(se!=null&&se.isComposing)&&(X?Se():G())};return ve(g,oe),ve([F,M],j),ve(b,()=>{Ne(()=>W())}),ve(L,fe,{immediate:!0}),Ze(()=>{const X=d.value.input,se=Number.parseFloat(L$(n.cssVarName("input-height"),X).value)-2;o=X.offsetHeight||se,bo(X,W)}),{popperOptions:S2e,tooltipRef:u,popperPaneRef:R,input:d,tagWrapper:p,panel:f,suggestionPanel:h,popperVisible:v,inputHover:m,inputPlaceholder:E,currentPlaceholder:A,filtering:g,presentText:L,checkedValue:P,inputValue:_,searchInputValue:w,presentTags:b,allPresentTags:x,suggestions:k,isDisabled:M,isOnComposition:z,realSize:O,tagSize:D,multiple:I,readonly:N,clearBtnVisible:H,nsCascader:r,nsInput:n,t:a,togglePopperVisible:J,hideSuggestionPanel:G,deleteTag:he,focusFirstNode:Y,getCheckedNodes:ce,handleExpandChange:ne,handleKeyDown:U,handleComposition:xe,handleClear:Q,handleSuggestionClick:we,handleSuggestionKeyDown:$e,handleDelete:pe,handleInput:me}}}),M2e={key:0},T2e=["placeholder"],A2e=["onClick"];function V2e(e,t,o,l,r,n){const a=Oe("circle-close"),i=Oe("el-icon"),c=Oe("arrow-down"),u=Oe("el-input"),d=Oe("el-tag"),p=Oe("el-tooltip"),f=Oe("el-cascader-panel"),h=Oe("check"),v=Oe("el-scrollbar"),m=ha("clickoutside");return y(),ue(p,{ref:"tooltipRef",visible:e.popperVisible,teleported:e.teleported,"popper-class":[e.nsCascader.e("dropdown"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${e.nsCascader.namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:e.hideSuggestionPanel},{default:Z(()=>[Xe((y(),$("div",{class:T([e.nsCascader.b(),e.nsCascader.m(e.realSize),e.nsCascader.is("disabled",e.isDisabled),e.$attrs.class]),style:Be(e.$attrs.style),onClick:t[11]||(t[11]=()=>e.togglePopperVisible(e.readonly?void 0:!0)),onKeydown:t[12]||(t[12]=(...g)=>e.handleKeyDown&&e.handleKeyDown(...g)),onMouseenter:t[13]||(t[13]=g=>e.inputHover=!0),onMouseleave:t[14]||(t[14]=g=>e.inputHover=!1)},[K(u,{ref:"input",modelValue:e.inputValue,"onUpdate:modelValue":t[1]||(t[1]=g=>e.inputValue=g),placeholder:e.currentPlaceholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1,size:e.realSize,class:T(e.nsCascader.is("focus",e.popperVisible)),onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onFocus:t[2]||(t[2]=g=>e.$emit("focus",g)),onBlur:t[3]||(t[3]=g=>e.$emit("blur",g)),onInput:e.handleInput},{suffix:Z(()=>[e.clearBtnVisible?(y(),ue(i,{key:"clear",class:T([e.nsInput.e("icon"),"icon-circle-close"]),onClick:Ue(e.handleClear,["stop"])},{default:Z(()=>[K(a)]),_:1},8,["class","onClick"])):(y(),ue(i,{key:"arrow-down",class:T([e.nsInput.e("icon"),"icon-arrow-down",e.nsCascader.is("reverse",e.popperVisible)]),onClick:t[0]||(t[0]=Ue(g=>e.togglePopperVisible(),["stop"]))},{default:Z(()=>[K(c)]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","onCompositionstart","onCompositionupdate","onCompositionend","onInput"]),e.multiple?(y(),$("div",{key:0,ref:"tagWrapper",class:T(e.nsCascader.e("tags"))},[(y(!0),$(Pe,null,ut(e.presentTags,g=>(y(),ue(d,{key:g.key,type:e.tagType,size:e.tagSize,hit:g.hitState,closable:g.closable,"disable-transitions":"",onClose:_=>e.deleteTag(g)},{default:Z(()=>[g.isCollapseTag===!1?(y(),$("span",M2e,Ce(g.text),1)):(y(),ue(p,{key:1,teleported:!1,disabled:e.popperVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:Z(()=>[C("span",null,Ce(g.text),1)]),content:Z(()=>[C("div",{class:T(e.nsCascader.e("collapse-tags"))},[(y(!0),$(Pe,null,ut(e.allPresentTags.slice(1),(_,w)=>(y(),$("div",{key:w,class:T(e.nsCascader.e("collapse-tag"))},[(y(),ue(d,{key:_.key,class:"in-tooltip",type:e.tagType,size:e.tagSize,hit:_.hitState,closable:_.closable,"disable-transitions":"",onClose:b=>e.deleteTag(_)},{default:Z(()=>[C("span",null,Ce(_.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),e.filterable&&!e.isDisabled?Xe((y(),$("input",{key:0,"onUpdate:modelValue":t[4]||(t[4]=g=>e.searchInputValue=g),type:"text",class:T(e.nsCascader.e("search-input")),placeholder:e.presentText?"":e.inputPlaceholder,onInput:t[5]||(t[5]=g=>e.handleInput(e.searchInputValue,g)),onClick:t[6]||(t[6]=Ue(g=>e.togglePopperVisible(!0),["stop"])),onKeydown:t[7]||(t[7]=bt((...g)=>e.handleDelete&&e.handleDelete(...g),["delete"])),onCompositionstart:t[8]||(t[8]=(...g)=>e.handleComposition&&e.handleComposition(...g)),onCompositionupdate:t[9]||(t[9]=(...g)=>e.handleComposition&&e.handleComposition(...g)),onCompositionend:t[10]||(t[10]=(...g)=>e.handleComposition&&e.handleComposition(...g))},null,42,T2e)),[[X2,e.searchInputValue]]):ae("v-if",!0)],2)):ae("v-if",!0)],38)),[[m,()=>e.togglePopperVisible(!1),e.popperPaneRef]])]),content:Z(()=>[Xe(K(f,{ref:"panel",modelValue:e.checkedValue,"onUpdate:modelValue":t[15]||(t[15]=g=>e.checkedValue=g),options:e.options,props:e.props,border:!1,"render-label":e.$slots.default,onExpandChange:e.handleExpandChange,onClose:t[16]||(t[16]=g=>e.$nextTick(()=>e.togglePopperVisible(!1)))},null,8,["modelValue","options","props","render-label","onExpandChange"]),[[_t,!e.filtering]]),e.filterable?Xe((y(),ue(v,{key:0,ref:"suggestionPanel",tag:"ul",class:T(e.nsCascader.e("suggestion-panel")),"view-class":e.nsCascader.e("suggestion-list"),onKeydown:e.handleSuggestionKeyDown},{default:Z(()=>[e.suggestions.length?(y(!0),$(Pe,{key:0},ut(e.suggestions,g=>(y(),$("li",{key:g.uid,class:T([e.nsCascader.e("suggestion-item"),e.nsCascader.is("checked",g.checked)]),tabindex:-1,onClick:_=>e.handleSuggestionClick(g)},[C("span",null,Ce(g.text),1),g.checked?(y(),ue(i,{key:0},{default:Z(()=>[K(h)]),_:1})):ae("v-if",!0)],10,A2e))),128)):ge(e.$slots,"empty",{key:1},()=>[C("li",{class:T(e.nsCascader.e("empty-text"))},Ce(e.t("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class","onKeydown"])),[[_t,e.filtering]]):ae("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-options","transition","onHide"])}var ic=Te(E2e,[["render",V2e],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/index.vue"]]);ic.install=e=>{e.component(ic.name,ic)};const O2e=ic,P2e=O2e,L2e=Ae({checked:{type:Boolean,default:!1}}),I2e={"update:checked":e=>Jt(e),[Ot]:e=>Jt(e)},R2e=te({name:"ElCheckTag"}),H2e=te({...R2e,props:L2e,emits:I2e,setup(e,{emit:t}){const o=e,l=_e("check-tag"),r=()=>{const n=!o.checked;t(Ot,n),t("update:checked",n)};return(n,a)=>(y(),$("span",{class:T([s(l).b(),s(l).is("checked",n.checked)]),onClick:r},[ge(n.$slots,"default")],2))}});var N2e=Te(H2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const B2e=at(N2e),D2e=Ae({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:de([Number,Object]),default:()=>Lt({})},sm:{type:de([Number,Object]),default:()=>Lt({})},md:{type:de([Number,Object]),default:()=>Lt({})},lg:{type:de([Number,Object]),default:()=>Lt({})},xl:{type:de([Number,Object]),default:()=>Lt({})}}),F2e=te({name:"ElCol"}),j2e=te({...F2e,props:D2e,setup(e){const t=e,{gutter:o}=Re(Cm,{gutter:S(()=>0)}),l=_e("col"),r=S(()=>{const a={};return o.value&&(a.paddingLeft=a.paddingRight=`${o.value/2}px`),a}),n=S(()=>{const a=[];return["span","offset","pull","push"].forEach(u=>{const d=t[u];et(d)&&(u==="span"?a.push(l.b(`${t[u]}`)):d>0&&a.push(l.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{et(t[u])?a.push(l.b(`${u}-${t[u]}`)):ft(t[u])&&Object.entries(t[u]).forEach(([d,p])=>{a.push(d!=="span"?l.b(`${u}-${d}-${p}`):l.b(`${u}-${p}`))})}),o.value&&a.push(l.is("guttered")),a});return(a,i)=>(y(),ue(pt(a.tag),{class:T([s(l).b(),s(n)]),style:Be(s(r))},{default:Z(()=>[ge(a.$slots,"default")]),_:3},8,["class","style"]))}});var K2e=Te(j2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const W2e=at(K2e),c3=e=>typeof et(e),q2e=Ae({accordion:Boolean,modelValue:{type:de([Array,String,Number]),default:()=>Lt([])}}),U2e={[nt]:c3,[Ot]:c3},Y2e=(e,t)=>{const o=V(_a(e.modelValue)),l=n=>{o.value=n;const a=e.accordion?o.value[0]:o.value;t(nt,a),t(Ot,a)},r=n=>{if(e.accordion)l([o.value[0]===n?"":n]);else{const a=[...o.value],i=a.indexOf(n);i>-1?a.splice(i,1):a.push(n),l(a)}};return ve(()=>e.modelValue,()=>o.value=_a(e.modelValue),{deep:!0}),st(_m,{activeNames:o,handleItemClick:r}),{activeNames:o,setActiveNames:l}},G2e=()=>{const e=_e("collapse");return{rootKls:S(()=>e.b())}},X2e=te({name:"ElCollapse"}),J2e=te({...X2e,props:q2e,emits:U2e,setup(e,{expose:t,emit:o}){const l=e,{activeNames:r,setActiveNames:n}=Y2e(l,o),{rootKls:a}=G2e();return t({activeNames:r,setActiveNames:n}),(i,c)=>(y(),$("div",{class:T(s(a)),role:"tablist","aria-multiselectable":"true"},[ge(i.$slots,"default")],2))}});var Z2e=Te(J2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const Q2e=te({name:"ElCollapseTransition"}),epe=te({...Q2e,setup(e){const t=_e("collapse-transition"),o={beforeEnter(l){l.dataset||(l.dataset={}),l.dataset.oldPaddingTop=l.style.paddingTop,l.dataset.oldPaddingBottom=l.style.paddingBottom,l.style.maxHeight=0,l.style.paddingTop=0,l.style.paddingBottom=0},enter(l){l.dataset.oldOverflow=l.style.overflow,l.scrollHeight!==0?(l.style.maxHeight=`${l.scrollHeight}px`,l.style.paddingTop=l.dataset.oldPaddingTop,l.style.paddingBottom=l.dataset.oldPaddingBottom):(l.style.maxHeight=0,l.style.paddingTop=l.dataset.oldPaddingTop,l.style.paddingBottom=l.dataset.oldPaddingBottom),l.style.overflow="hidden"},afterEnter(l){l.style.maxHeight="",l.style.overflow=l.dataset.oldOverflow},beforeLeave(l){l.dataset||(l.dataset={}),l.dataset.oldPaddingTop=l.style.paddingTop,l.dataset.oldPaddingBottom=l.style.paddingBottom,l.dataset.oldOverflow=l.style.overflow,l.style.maxHeight=`${l.scrollHeight}px`,l.style.overflow="hidden"},leave(l){l.scrollHeight!==0&&(l.style.maxHeight=0,l.style.paddingTop=0,l.style.paddingBottom=0)},afterLeave(l){l.style.maxHeight="",l.style.overflow=l.dataset.oldOverflow,l.style.paddingTop=l.dataset.oldPaddingTop,l.style.paddingBottom=l.dataset.oldPaddingBottom}};return(l,r)=>(y(),ue(Kt,ht({name:s(t).b()},n9(o)),{default:Z(()=>[ge(l.$slots,"default")]),_:3},16,["name"]))}});var sc=Te(epe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);sc.install=e=>{e.component(sc.name,sc)};const Lu=sc,tpe=Lu,ope=Ae({title:{type:String,default:""},name:{type:de([String,Number]),default:()=>gs()},disabled:Boolean}),lpe=e=>{const t=Re(_m),o=V(!1),l=V(!1),r=V(gs()),n=S(()=>t==null?void 0:t.activeNames.value.includes(e.name));return{focusing:o,id:r,isActive:n,handleFocus:()=>{setTimeout(()=>{l.value?l.value=!1:o.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(e.name),o.value=!1,l.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(e.name)}}},rpe=(e,{focusing:t,isActive:o,id:l})=>{const r=_e("collapse"),n=S(()=>[r.b("item"),r.is("active",s(o)),r.is("disabled",e.disabled)]),a=S(()=>[r.be("item","header"),r.is("active",s(o)),{focusing:s(t)&&!e.disabled}]),i=S(()=>[r.be("item","arrow"),r.is("active",s(o))]),c=S(()=>r.be("item","wrap")),u=S(()=>r.be("item","content")),d=S(()=>r.b(`content-${s(l)}`)),p=S(()=>r.b(`head-${s(l)}`));return{arrowKls:i,headKls:a,rootKls:n,itemWrapperKls:c,itemContentKls:u,scopedContentId:d,scopedHeadId:p}},npe=["aria-expanded","aria-controls","aria-describedby"],ape=["id","tabindex"],ipe=["id","aria-hidden","aria-labelledby"],spe=te({name:"ElCollapseItem"}),cpe=te({...spe,props:ope,setup(e,{expose:t}){const o=e,{focusing:l,id:r,isActive:n,handleFocus:a,handleHeaderClick:i,handleEnterClick:c}=lpe(o),{arrowKls:u,headKls:d,rootKls:p,itemWrapperKls:f,itemContentKls:h,scopedContentId:v,scopedHeadId:m}=rpe(o,{focusing:l,isActive:n,id:r});return t({isActive:n}),(g,_)=>(y(),$("div",{class:T(s(p))},[C("div",{role:"tab","aria-expanded":s(n),"aria-controls":s(v),"aria-describedby":s(v)},[C("div",{id:s(m),class:T(s(d)),role:"button",tabindex:g.disabled?-1:0,onClick:_[0]||(_[0]=(...w)=>s(i)&&s(i)(...w)),onKeypress:_[1]||(_[1]=bt(Ue((...w)=>s(c)&&s(c)(...w),["stop","prevent"]),["space","enter"])),onFocus:_[2]||(_[2]=(...w)=>s(a)&&s(a)(...w)),onBlur:_[3]||(_[3]=w=>l.value=!1)},[ge(g.$slots,"title",{},()=>[ot(Ce(g.title),1)]),K(s(De),{class:T(s(u))},{default:Z(()=>[K(s(go))]),_:1},8,["class"])],42,ape)],8,npe),K(s(Lu),null,{default:Z(()=>[Xe(C("div",{id:s(v),class:T(s(f)),role:"tabpanel","aria-hidden":!s(n),"aria-labelledby":s(m)},[C("div",{class:T(s(h))},[ge(g.$slots,"default")],2)],10,ipe),[[_t,s(n)]])]),_:3})],2))}});var s8=Te(cpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const upe=at(Z2e,{CollapseItem:s8}),dpe=Bt(s8);let md=!1;function Yi(e,t){if(!gt)return;const o=function(n){var a;(a=t.drag)==null||a.call(t,n)},l=function(n){var a;document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",l),document.removeEventListener("touchmove",o),document.removeEventListener("touchend",l),document.onselectstart=null,document.ondragstart=null,md=!1,(a=t.end)==null||a.call(t,n)},r=function(n){var a;md||(n.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",o),document.addEventListener("mouseup",l),document.addEventListener("touchmove",o),document.addEventListener("touchend",l),md=!0,(a=t.start)==null||a.call(t,n))};e.addEventListener("mousedown",r),e.addEventListener("touchstart",r)}const ppe=te({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=_e("color-alpha-slider"),o=Qe(),l=Et(),r=Et(),n=V(0),a=V(0),i=V();ve(()=>e.color.get("alpha"),()=>{h()}),ve(()=>e.color.value,()=>{h()});function c(){if(!l.value||e.vertical)return 0;const v=o.vnode.el,m=e.color.get("alpha");return v?Math.round(m*(v.offsetWidth-l.value.offsetWidth/2)/100):0}function u(){if(!l.value)return 0;const v=o.vnode.el;if(!e.vertical)return 0;const m=e.color.get("alpha");return v?Math.round(m*(v.offsetHeight-l.value.offsetHeight/2)/100):0}function d(){if(e.color&&e.color.value){const{r:v,g:m,b:g}=e.color.toRgb();return`linear-gradient(to right, rgba(${v}, ${m}, ${g}, 0) 0%, rgba(${v}, ${m}, ${g}, 1) 100%)`}return""}function p(v){v.target!==l.value&&f(v)}function f(v){if(!r.value||!l.value)return;const g=o.vnode.el.getBoundingClientRect(),{clientX:_,clientY:w}=hp(v);if(e.vertical){let b=w-g.top;b=Math.max(l.value.offsetHeight/2,b),b=Math.min(b,g.height-l.value.offsetHeight/2),e.color.set("alpha",Math.round((b-l.value.offsetHeight/2)/(g.height-l.value.offsetHeight)*100))}else{let b=_-g.left;b=Math.max(l.value.offsetWidth/2,b),b=Math.min(b,g.width-l.value.offsetWidth/2),e.color.set("alpha",Math.round((b-l.value.offsetWidth/2)/(g.width-l.value.offsetWidth)*100))}}function h(){n.value=c(),a.value=u(),i.value=d()}return Ze(()=>{if(!r.value||!l.value)return;const v={drag:m=>{f(m)},end:m=>{f(m)}};Yi(r.value,v),Yi(l.value,v),h()}),{thumb:l,bar:r,thumbLeft:n,thumbTop:a,background:i,handleClick:p,update:h,ns:t}}});function fpe(e,t,o,l,r,n){return y(),$("div",{class:T([e.ns.b(),e.ns.is("vertical",e.vertical)])},[C("div",{ref:"bar",class:T(e.ns.e("bar")),style:Be({background:e.background}),onClick:t[0]||(t[0]=(...a)=>e.handleClick&&e.handleClick(...a))},null,6),C("div",{ref:"thumb",class:T(e.ns.e("thumb")),style:Be({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var hpe=Te(ppe,[["render",fpe],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const vpe=te({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=_e("color-hue-slider"),o=Qe(),l=V(),r=V(),n=V(0),a=V(0),i=S(()=>e.color.get("hue"));ve(()=>i.value,()=>{f()});function c(h){h.target!==l.value&&u(h)}function u(h){if(!r.value||!l.value)return;const m=o.vnode.el.getBoundingClientRect(),{clientX:g,clientY:_}=hp(h);let w;if(e.vertical){let b=_-m.top;b=Math.min(b,m.height-l.value.offsetHeight/2),b=Math.max(l.value.offsetHeight/2,b),w=Math.round((b-l.value.offsetHeight/2)/(m.height-l.value.offsetHeight)*360)}else{let b=g-m.left;b=Math.min(b,m.width-l.value.offsetWidth/2),b=Math.max(l.value.offsetWidth/2,b),w=Math.round((b-l.value.offsetWidth/2)/(m.width-l.value.offsetWidth)*360)}e.color.set("hue",w)}function d(){if(!l.value)return 0;const h=o.vnode.el;if(e.vertical)return 0;const v=e.color.get("hue");return h?Math.round(v*(h.offsetWidth-l.value.offsetWidth/2)/360):0}function p(){if(!l.value)return 0;const h=o.vnode.el;if(!e.vertical)return 0;const v=e.color.get("hue");return h?Math.round(v*(h.offsetHeight-l.value.offsetHeight/2)/360):0}function f(){n.value=d(),a.value=p()}return Ze(()=>{if(!r.value||!l.value)return;const h={drag:v=>{u(v)},end:v=>{u(v)}};Yi(r.value,h),Yi(l.value,h),f()}),{bar:r,thumb:l,thumbLeft:n,thumbTop:a,hueValue:i,handleClick:c,update:f,ns:t}}});function mpe(e,t,o,l,r,n){return y(),$("div",{class:T([e.ns.b(),e.ns.is("vertical",e.vertical)])},[C("div",{ref:"bar",class:T(e.ns.e("bar")),onClick:t[0]||(t[0]=(...a)=>e.handleClick&&e.handleClick(...a))},null,2),C("div",{ref:"thumb",class:T(e.ns.e("thumb")),style:Be({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var gpe=Te(vpe,[["render",mpe],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const bpe=Ae({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Lo,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:de(Array)},validateEvent:{type:Boolean,default:!0}}),_pe={[nt]:e=>Ge(e)||ro(e),[Ot]:e=>Ge(e)||ro(e),activeChange:e=>Ge(e)||ro(e)},c8=Symbol("colorPickerContextKey"),u3=function(e,t,o){return[e,t*o/((e=(2-t)*o)<1?e:2-e)||0,e/2]},ype=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},wpe=function(e){return typeof e=="string"&&e.includes("%")},sa=function(e,t){ype(e)&&(e="100%");const o=wpe(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),o&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},d3={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},cc=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),o=e%16;return`${d3[t]||t}${d3[o]||o}`},p3=function({r:e,g:t,b:o}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+o)?"":`#${cc(e)}${cc(t)}${cc(o)}`},gd={A:10,B:11,C:12,D:13,E:14,F:15},en=function(e){return e.length===2?(gd[e[0].toUpperCase()]||+e[0])*16+(gd[e[1].toUpperCase()]||+e[1]):gd[e[1].toUpperCase()]||+e[1]},xpe=function(e,t,o){t=t/100,o=o/100;let l=t;const r=Math.max(o,.01);o*=2,t*=o<=1?o:2-o,l*=r<=1?r:2-r;const n=(o+t)/2,a=o===0?2*l/(r+l):2*t/(o+t);return{h:e,s:a*100,v:n*100}},f3=(e,t,o)=>{e=sa(e,255),t=sa(t,255),o=sa(o,255);const l=Math.max(e,t,o),r=Math.min(e,t,o);let n;const a=l,i=l-r,c=l===0?0:i/l;if(l===r)n=0;else{switch(l){case e:{n=(t-o)/i+(t{this._hue=Math.max(0,Math.min(360,l)),this._saturation=Math.max(0,Math.min(100,r)),this._value=Math.max(0,Math.min(100,n)),this.doOnChange()};if(t.includes("hsl")){const l=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,n)=>n>2?Number.parseFloat(r):Number.parseInt(r,10));if(l.length===4?this._alpha=Number.parseFloat(l[3])*100:l.length===3&&(this._alpha=100),l.length>=3){const{h:r,s:n,v:a}=xpe(l[0],l[1],l[2]);o(r,n,a)}}else if(t.includes("hsv")){const l=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,n)=>n>2?Number.parseFloat(r):Number.parseInt(r,10));l.length===4?this._alpha=Number.parseFloat(l[3])*100:l.length===3&&(this._alpha=100),l.length>=3&&o(l[0],l[1],l[2])}else if(t.includes("rgb")){const l=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,n)=>n>2?Number.parseFloat(r):Number.parseInt(r,10));if(l.length===4?this._alpha=Number.parseFloat(l[3])*100:l.length===3&&(this._alpha=100),l.length>=3){const{h:r,s:n,v:a}=f3(l[0],l[1],l[2]);o(r,n,a)}}else if(t.includes("#")){const l=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(l))return;let r,n,a;l.length===3?(r=en(l[0]+l[0]),n=en(l[1]+l[1]),a=en(l[2]+l[2])):(l.length===6||l.length===8)&&(r=en(l.slice(0,2)),n=en(l.slice(2,4)),a=en(l.slice(4,6))),l.length===8?this._alpha=en(l.slice(6))/255*100:(l.length===3||l.length===6)&&(this._alpha=100);const{h:i,s:c,v:u}=f3(r,n,a);o(i,c,u)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:o,_value:l,_alpha:r,format:n}=this;if(this.enableAlpha)switch(n){case"hsl":{const a=u3(t,o/100,l/100);this.value=`hsla(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(o)}%, ${Math.round(l)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${p3(oi(t,o,l))}${cc(r*255/100)}`;break}default:{const{r:a,g:i,b:c}=oi(t,o,l);this.value=`rgba(${a}, ${i}, ${c}, ${this.get("alpha")/100})`}}else switch(n){case"hsl":{const a=u3(t,o/100,l/100);this.value=`hsl(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(o)}%, ${Math.round(l)}%)`;break}case"rgb":{const{r:a,g:i,b:c}=oi(t,o,l);this.value=`rgb(${a}, ${i}, ${c})`;break}default:this.value=p3(oi(t,o,l))}}}const kpe=te({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=_e("color-predefine"),{currentColor:o}=Re(c8),l=V(n(e.colors,e.color));ve(()=>o.value,a=>{const i=new yi;i.fromString(a),l.value.forEach(c=>{c.selected=i.compare(c)})}),Ao(()=>{l.value=n(e.colors,e.color)});function r(a){e.color.fromString(e.colors[a])}function n(a,i){return a.map(c=>{const u=new yi;return u.enableAlpha=!0,u.format="rgba",u.fromString(c),u.selected=u.value===i.value,u})}return{rgbaColors:l,handleSelect:r,ns:t}}}),Cpe=["onClick"];function $pe(e,t,o,l,r,n){return y(),$("div",{class:T(e.ns.b())},[C("div",{class:T(e.ns.e("colors"))},[(y(!0),$(Pe,null,ut(e.rgbaColors,(a,i)=>(y(),$("div",{key:e.colors[i],class:T([e.ns.e("color-selector"),e.ns.is("alpha",a._alpha<100),{selected:a.selected}]),onClick:c=>e.handleSelect(i)},[C("div",{style:Be({backgroundColor:a.value})},null,4)],10,Cpe))),128))],2)],2)}var Spe=Te(kpe,[["render",$pe],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const zpe=te({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=_e("color-svpanel"),o=Qe(),l=V(0),r=V(0),n=V("hsl(0, 100%, 50%)"),a=S(()=>{const u=e.color.get("hue"),d=e.color.get("value");return{hue:u,value:d}});function i(){const u=e.color.get("saturation"),d=e.color.get("value"),p=o.vnode.el,{clientWidth:f,clientHeight:h}=p;r.value=u*f/100,l.value=(100-d)*h/100,n.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function c(u){const p=o.vnode.el.getBoundingClientRect(),{clientX:f,clientY:h}=hp(u);let v=f-p.left,m=h-p.top;v=Math.max(0,v),v=Math.min(v,p.width),m=Math.max(0,m),m=Math.min(m,p.height),r.value=v,l.value=m,e.color.set({saturation:v/p.width*100,value:100-m/p.height*100})}return ve(()=>a.value,()=>{i()}),Ze(()=>{Yi(o.vnode.el,{drag:u=>{c(u)},end:u=>{c(u)}}),i()}),{cursorTop:l,cursorLeft:r,background:n,colorValue:a,handleDrag:c,update:i,ns:t}}}),Epe=C("div",null,null,-1),Mpe=[Epe];function Tpe(e,t,o,l,r,n){return y(),$("div",{class:T(e.ns.b()),style:Be({backgroundColor:e.background})},[C("div",{class:T(e.ns.e("white"))},null,2),C("div",{class:T(e.ns.e("black"))},null,2),C("div",{class:T(e.ns.e("cursor")),style:Be({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},Mpe,6)],6)}var Ape=Te(zpe,[["render",Tpe],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const Vpe=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],Ope=te({name:"ElColorPicker"}),Ppe=te({...Ope,props:bpe,emits:_pe,setup(e,{expose:t,emit:o}){const l=e,{t:r}=yt(),n=_e("color"),{formItem:a}=So(),i=Xt(),c=zl(),{inputId:u,isLabeledByFormItem:d}=Yr(l,{formItemContext:a}),p=V(),f=V(),h=V(),v=V();let m=!0;const g=wt(new yi({enableAlpha:l.showAlpha,format:l.colorFormat||"",value:l.modelValue})),_=V(!1),w=V(!1),b=V(""),x=S(()=>!l.modelValue&&!w.value?"transparent":E(g,l.showAlpha)),k=S(()=>!l.modelValue&&!w.value?"":g.value),z=S(()=>d.value?void 0:l.label||r("el.colorpicker.defaultLabel")),M=S(()=>d.value?a==null?void 0:a.labelId:void 0);function E(L,P){if(!(L instanceof yi))throw new TypeError("color should be instance of _color Class");const{r:R,g:J,b:oe}=L.toRgb();return P?`rgba(${R}, ${J}, ${oe}, ${L.get("alpha")/100})`:`rgb(${R}, ${J}, ${oe})`}function A(L){_.value=L}const O=$o(A,100);function D(){O(!1),I()}function I(){Ne(()=>{l.modelValue?g.fromString(l.modelValue):(g.value="",Ne(()=>{w.value=!1}))})}function N(){c.value||O(!_.value)}function B(){g.fromString(b.value)}function F(){const L=g.value;o(nt,L),o("change",L),l.validateEvent&&(a==null||a.validate("change").catch(P=>void 0)),O(!1),Ne(()=>{const P=new yi({enableAlpha:l.showAlpha,format:l.colorFormat||"",value:l.modelValue});g.compare(P)||I()})}function H(){O(!1),o(nt,null),o("change",null),l.modelValue!==null&&l.validateEvent&&(a==null||a.validate("change").catch(L=>void 0)),I()}return Ze(()=>{l.modelValue&&(b.value=k.value)}),ve(()=>l.modelValue,L=>{L?L&&L!==g.value&&(m=!1,g.fromString(L)):w.value=!1}),ve(()=>k.value,L=>{b.value=L,m&&o("activeChange",L),m=!0}),ve(()=>g.value,()=>{!l.modelValue&&!w.value&&(w.value=!0)}),ve(()=>_.value,()=>{Ne(()=>{var L,P,R;(L=p.value)==null||L.update(),(P=f.value)==null||P.update(),(R=h.value)==null||R.update()})}),st(c8,{currentColor:k}),t({color:g}),(L,P)=>(y(),ue(s(Ro),{ref_key:"popper",ref:v,visible:_.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[s(n).be("picker","panel"),s(n).b("dropdown"),L.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${s(n).namespace.value}-zoom-in-top`,persistent:""},{content:Z(()=>[Xe((y(),$("div",null,[C("div",{class:T(s(n).be("dropdown","main-wrapper"))},[K(gpe,{ref_key:"hue",ref:p,class:"hue-slider",color:s(g),vertical:""},null,8,["color"]),K(Ape,{ref:"svPanel",color:s(g)},null,8,["color"])],2),L.showAlpha?(y(),ue(hpe,{key:0,ref_key:"alpha",ref:h,color:s(g)},null,8,["color"])):ae("v-if",!0),L.predefine?(y(),ue(Spe,{key:1,ref:"predefine",color:s(g),colors:L.predefine},null,8,["color","colors"])):ae("v-if",!0),C("div",{class:T(s(n).be("dropdown","btns"))},[C("span",{class:T(s(n).be("dropdown","value"))},[K(s(mo),{modelValue:b.value,"onUpdate:modelValue":P[0]||(P[0]=R=>b.value=R),"validate-event":!1,size:"small",onKeyup:bt(B,["enter"]),onBlur:B},null,8,["modelValue","onKeyup"])],2),K(s(po),{class:T(s(n).be("dropdown","link-btn")),text:"",size:"small",onClick:H},{default:Z(()=>[ot(Ce(s(r)("el.colorpicker.clear")),1)]),_:1},8,["class"]),K(s(po),{plain:"",size:"small",class:T(s(n).be("dropdown","btn")),onClick:F},{default:Z(()=>[ot(Ce(s(r)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[s(Wr),D]])]),default:Z(()=>[C("div",{id:s(u),class:T([s(n).b("picker"),s(n).is("disabled",s(c)),s(n).bm("picker",s(i))]),role:"button","aria-label":s(z),"aria-labelledby":s(M),"aria-description":s(r)("el.colorpicker.description",{color:L.modelValue||""}),tabindex:L.tabindex,onKeydown:bt(N,["enter"])},[s(c)?(y(),$("div",{key:0,class:T(s(n).be("picker","mask"))},null,2)):ae("v-if",!0),C("div",{class:T(s(n).be("picker","trigger")),onClick:N},[C("span",{class:T([s(n).be("picker","color"),s(n).is("alpha",L.showAlpha)])},[C("span",{class:T(s(n).be("picker","color-inner")),style:Be({backgroundColor:s(x)})},[Xe(K(s(De),{class:T([s(n).be("picker","icon"),s(n).is("icon-arrow-down")])},{default:Z(()=>[K(s(fr))]),_:1},8,["class"]),[[_t,L.modelValue||w.value]]),!L.modelValue&&!w.value?(y(),ue(s(De),{key:0,class:T([s(n).be("picker","empty"),s(n).is("icon-close")])},{default:Z(()=>[K(s(nl))]),_:1},8,["class"])):ae("v-if",!0)],6)],2)],2)],42,Vpe)]),_:1},8,["visible","popper-class","transition"]))}});var Lpe=Te(Ppe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const Ipe=at(Lpe),N0={},Rpe=Ae({a11y:{type:Boolean,default:!0},locale:{type:de(Object)},size:Lo,button:{type:de(Object)},experimentalFeatures:{type:de(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:de(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),Hpe=te({name:"ElConfigProvider",props:Rpe,setup(e,{slots:t}){ve(()=>e.message,l=>{Object.assign(N0,l!=null?l:{})},{immediate:!0,deep:!0});const o=Am(e);return()=>ge(t,"default",{config:o==null?void 0:o.value})}}),Npe=at(Hpe),Bpe=te({name:"ElContainer"}),Dpe=te({...Bpe,props:{direction:{type:String}},setup(e){const t=e,o=ao(),l=_e("container"),r=S(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:o&&o.default?o.default().some(a=>{const i=a.type.name;return i==="ElHeader"||i==="ElFooter"}):!1);return(n,a)=>(y(),$("section",{class:T([s(l).b(),s(l).is("vertical",s(r))])},[ge(n.$slots,"default")],2))}});var Fpe=Te(Dpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const jpe=te({name:"ElAside"}),Kpe=te({...jpe,props:{width:{type:String,default:null}},setup(e){const t=e,o=_e("aside"),l=S(()=>t.width?o.cssVarBlock({width:t.width}):{});return(r,n)=>(y(),$("aside",{class:T(s(o).b()),style:Be(s(l))},[ge(r.$slots,"default")],6))}});var u8=Te(Kpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const Wpe=te({name:"ElFooter"}),qpe=te({...Wpe,props:{height:{type:String,default:null}},setup(e){const t=e,o=_e("footer"),l=S(()=>t.height?o.cssVarBlock({height:t.height}):{});return(r,n)=>(y(),$("footer",{class:T(s(o).b()),style:Be(s(l))},[ge(r.$slots,"default")],6))}});var d8=Te(qpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const Upe=te({name:"ElHeader"}),Ype=te({...Upe,props:{height:{type:String,default:null}},setup(e){const t=e,o=_e("header"),l=S(()=>t.height?o.cssVarBlock({height:t.height}):{});return(r,n)=>(y(),$("header",{class:T(s(o).b()),style:Be(s(l))},[ge(r.$slots,"default")],6))}});var p8=Te(Ype,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const Gpe=te({name:"ElMain"}),Xpe=te({...Gpe,setup(e){const t=_e("main");return(o,l)=>(y(),$("main",{class:T(s(t).b())},[ge(o.$slots,"default")],2))}});var f8=Te(Xpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const Jpe=at(Fpe,{Aside:u8,Footer:d8,Header:p8,Main:f8}),Zpe=Bt(u8),Qpe=Bt(d8),efe=Bt(p8),tfe=Bt(f8);var h8={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(xo,function(){return function(o,l){var r=l.prototype,n=r.format;r.format=function(a){var i=this,c=this.$locale();if(!this.isValid())return n.bind(this)(a);var u=this.$utils(),d=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return c.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return c.ordinal(i.week(),"W");case"w":case"ww":return u.s(i.week(),p==="w"?1:2,"0");case"W":case"WW":return u.s(i.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(i.$H===0?24:i.$H),p==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return p}});return n.bind(this)(d)}}})})(h8);const ofe=h8.exports;var v8={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(xo,function(){var o="week",l="year";return function(r,n,a){var i=n.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(l).add(1,l).date(u),p=a(this).endOf(o);if(d.isBefore(p))return 1}var f=a(this).startOf(l).date(u).startOf(o).subtract(1,"millisecond"),h=this.diff(f,o,!0);return h<0?a(this).startOf("week").week():Math.ceil(h)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(v8);const lfe=v8.exports;var m8={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(xo,function(){return function(o,l){l.prototype.weekYear=function(){var r=this.month(),n=this.week(),a=this.year();return n===1&&r===11?a+1:r===0&&n>=52?a-1:a}}})})(m8);const rfe=m8.exports;var g8={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(xo,function(){return function(o,l,r){l.prototype.dayOfYear=function(n){var a=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return n==null?a:this.add(n-a,"day")}}})})(g8);const nfe=g8.exports;var b8={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(xo,function(){return function(o,l){l.prototype.isSameOrAfter=function(r,n){return this.isSame(r,n)||this.isAfter(r,n)}}})})(b8);const afe=b8.exports;var _8={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(xo,function(){return function(o,l){l.prototype.isSameOrBefore=function(r,n){return this.isSame(r,n)||this.isBefore(r,n)}}})})(_8);const ife=_8.exports,sfe=Ae({type:{type:de(String),default:"date"}}),cfe=["date","dates","year","month","week","range"],Xp=Ae({disabledDate:{type:de(Function)},date:{type:de(Object),required:!0},minDate:{type:de(Object)},maxDate:{type:de(Object)},parsedValue:{type:de([Object,Array])},rangeState:{type:de(Object),default:()=>({endDate:null,selecting:!1})}}),y8=Ae({type:{type:de(String),required:!0,values:Gne}}),w8=Ae({unlinkPanels:Boolean,parsedValue:{type:de(Array)}}),x8=e=>({type:String,values:cfe,default:e}),ufe=Ae({...y8,parsedValue:{type:de([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),dfe=Ae({...Xp,cellClassName:{type:de(Function)},showWeekNumber:Boolean,selectionMode:x8("date")}),B0=e=>{if(!Ie(e))return!1;const[t,o]=e;return tt.isDayjs(t)&&tt.isDayjs(o)&&t.isSameOrBefore(o)},k8=(e,{lang:t,unit:o,unlinkPanels:l})=>{let r;if(Ie(e)){let[n,a]=e.map(i=>tt(i).locale(t));return l||(a=n.add(1,o)),[n,a]}else e?r=tt(e):r=tt();return r=r.locale(t),[r,r.add(1,o)]},pfe=(e,t,{columnIndexOffset:o,startDate:l,nextEndDate:r,now:n,unit:a,relativeDateGetter:i,setCellMetadata:c,setRowMetadata:u})=>{for(let d=0;d{const{cell:l}=e;if(o.default){const r=o.default(l).filter(n=>n.patchFlag!==-2&&n.type.toString()!=="Symbol(Comment)");if(r.length)return r}return K("div",{class:t.b()},[K("span",{class:t.e("text")},[l==null?void 0:l.text])])}}});const vfe=["aria-label"],mfe={key:0,scope:"col"},gfe=["aria-label"],bfe=["aria-current","aria-selected","tabindex"],_fe=te({__name:"basic-date-table",props:dfe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:o}){const l=e,r=_e("date-table"),{t:n,lang:a}=yt(),i=V(),c=V(),u=V(),d=V(),p=V([[],[],[],[],[],[]]);let f=!1;const h=l.date.$locale().weekStart||7,v=l.date.locale("en").localeData().weekdaysShort().map(G=>G.toLowerCase()),m=S(()=>h>3?7-h:-h),g=S(()=>{const G=l.date.startOf("month");return G.subtract(G.day()||7,"day")}),_=S(()=>v.concat(v).slice(h,h+7)),w=S(()=>y4(E.value).some(G=>G.isCurrent)),b=S(()=>{const G=l.date.startOf("month"),le=G.day()||7,he=G.daysInMonth(),j=G.subtract(1,"month").daysInMonth();return{startOfMonthDay:le,dateCountOfMonth:he,dateCountOfLastMonth:j}}),x=S(()=>l.selectionMode==="dates"?lr(l.parsedValue):[]),k=(G,{count:le,rowIndex:he,columnIndex:j})=>{const{startOfMonthDay:re,dateCountOfMonth:Y,dateCountOfLastMonth:W}=s(b),ce=s(m);if(he>=0&&he<=1){const ne=re+ce<0?7+re+ce:re+ce;if(j+he*7>=ne)return G.text=le,!0;G.text=W-(ne-j%7)+1+he*7,G.type="prev-month"}else return le<=Y?G.text=le:(G.text=le-Y,G.type="next-month"),!0;return!1},z=(G,{columnIndex:le,rowIndex:he},j)=>{const{disabledDate:re,cellClassName:Y}=l,W=s(x),ce=k(G,{count:j,rowIndex:he,columnIndex:le}),ne=G.dayjs.toDate();return G.selected=W.find(xe=>xe.valueOf()===G.dayjs.valueOf()),G.isSelected=!!G.selected,G.isCurrent=D(G),G.disabled=re==null?void 0:re(ne),G.customClass=Y==null?void 0:Y(ne),ce},M=G=>{if(l.selectionMode==="week"){const[le,he]=l.showWeekNumber?[1,7]:[0,6],j=oe(G[le+1]);G[le].inRange=j,G[le].start=j,G[he].inRange=j,G[he].end=j}},E=S(()=>{const{minDate:G,maxDate:le,rangeState:he,showWeekNumber:j}=l,re=m.value,Y=p.value,W="day";let ce=1;if(j)for(let ne=0;ne<6;ne++)Y[ne][0]||(Y[ne][0]={type:"week",text:g.value.add(ne*7+1,W).week()});return pfe({row:6,column:7},Y,{startDate:G,columnIndexOffset:j?1:0,nextEndDate:he.endDate||le||he.selecting&&G||null,now:tt().locale(s(a)).startOf(W),unit:W,relativeDateGetter:ne=>g.value.add(ne-re,W),setCellMetadata:(...ne)=>{z(...ne,ce)&&(ce+=1)},setRowMetadata:M}),Y});ve(()=>l.date,async()=>{var G,le;(G=i.value)!=null&&G.contains(document.activeElement)&&(await Ne(),(le=c.value)==null||le.focus())});const A=async()=>{var G;(G=c.value)==null||G.focus()},O=(G="")=>["normal","today"].includes(G),D=G=>l.selectionMode==="date"&&O(G.type)&&I(G,l.parsedValue),I=(G,le)=>le?tt(le).locale(a.value).isSame(l.date.date(Number(G.text)),"day"):!1,N=G=>{const le=[];return O(G.type)&&!G.disabled?(le.push("available"),G.type==="today"&&le.push("today")):le.push(G.type),D(G)&&le.push("current"),G.inRange&&(O(G.type)||l.selectionMode==="week")&&(le.push("in-range"),G.start&&le.push("start-date"),G.end&&le.push("end-date")),G.disabled&&le.push("disabled"),G.selected&&le.push("selected"),G.customClass&&le.push(G.customClass),le.join(" ")},B=(G,le)=>{const he=G*7+(le-(l.showWeekNumber?1:0))-m.value;return g.value.add(he,"day")},F=G=>{var le;if(!l.rangeState.selecting)return;let he=G.target;if(he.tagName==="SPAN"&&(he=(le=he.parentNode)==null?void 0:le.parentNode),he.tagName==="DIV"&&(he=he.parentNode),he.tagName!=="TD")return;const j=he.parentNode.rowIndex-1,re=he.cellIndex;E.value[j][re].disabled||(j!==u.value||re!==d.value)&&(u.value=j,d.value=re,o("changerange",{selecting:!0,endDate:B(j,re)}))},H=G=>!w.value&&(G==null?void 0:G.text)===1&&G.type==="normal"||G.isCurrent,L=G=>{f||w.value||l.selectionMode!=="date"||J(G,!0)},P=G=>{!G.target.closest("td")||(f=!0)},R=G=>{!G.target.closest("td")||(f=!1)},J=(G,le=!1)=>{const he=G.target.closest("td");if(!he)return;const j=he.parentNode.rowIndex-1,re=he.cellIndex,Y=E.value[j][re];if(Y.disabled||Y.type==="week")return;const W=B(j,re);if(l.selectionMode==="range")!l.rangeState.selecting||!l.minDate?(o("pick",{minDate:W,maxDate:null}),o("select",!0)):(W>=l.minDate?o("pick",{minDate:l.minDate,maxDate:W}):o("pick",{minDate:W,maxDate:l.minDate}),o("select",!1));else if(l.selectionMode==="date")o("pick",W,le);else if(l.selectionMode==="week"){const ce=W.week(),ne=`${W.year()}w${ce}`;o("pick",{year:W.year(),week:ce,value:ne,date:W.startOf("week")})}else if(l.selectionMode==="dates"){const ce=Y.selected?lr(l.parsedValue).filter(ne=>(ne==null?void 0:ne.valueOf())!==W.valueOf()):lr(l.parsedValue).concat([W]);o("pick",ce)}},oe=G=>{if(l.selectionMode!=="week")return!1;let le=l.date.startOf("day");if(G.type==="prev-month"&&(le=le.subtract(1,"month")),G.type==="next-month"&&(le=le.add(1,"month")),le=le.date(Number.parseInt(G.text,10)),l.parsedValue&&!Array.isArray(l.parsedValue)){const he=(l.parsedValue.day()-h+7)%7-1;return l.parsedValue.subtract(he,"day").isSame(le,"day")}return!1};return t({focus:A}),(G,le)=>(y(),$("table",{role:"grid","aria-label":s(n)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:T([s(r).b(),{"is-week-mode":G.selectionMode==="week"}]),onClick:J,onMousemove:F,onMousedown:P,onMouseup:R},[C("tbody",{ref_key:"tbodyRef",ref:i},[C("tr",null,[G.showWeekNumber?(y(),$("th",mfe,Ce(s(n)("el.datepicker.week")),1)):ae("v-if",!0),(y(!0),$(Pe,null,ut(s(_),(he,j)=>(y(),$("th",{key:j,scope:"col","aria-label":s(n)("el.datepicker.weeksFull."+he)},Ce(s(n)("el.datepicker.weeks."+he)),9,gfe))),128))]),(y(!0),$(Pe,null,ut(s(E),(he,j)=>(y(),$("tr",{key:j,class:T([s(r).e("row"),{current:oe(he[1])}])},[(y(!0),$(Pe,null,ut(he,(re,Y)=>(y(),$("td",{key:`${j}.${Y}`,ref_for:!0,ref:W=>H(re)&&(c.value=W),class:T(N(re)),"aria-current":re.isCurrent?"date":void 0,"aria-selected":re.isCurrent,tabindex:H(re)?0:-1,onFocus:L},[K(s(hfe),{cell:re},null,8,["cell"])],42,bfe))),128))],2))),128))],512)],42,vfe))}});var D0=Te(_fe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const yfe=Ae({...Xp,selectionMode:x8("month")}),wfe=["aria-label"],xfe=["aria-selected","aria-label","tabindex","onKeydown"],kfe={class:"cell"},Cfe=te({__name:"basic-month-table",props:yfe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:o}){const l=e,r=(x,k,z)=>{const M=tt().locale(z).startOf("month").month(k).year(x),E=M.daysInMonth();return Rr(E).map(A=>M.add(A,"day").toDate())},n=_e("month-table"),{t:a,lang:i}=yt(),c=V(),u=V(),d=V(l.date.locale("en").localeData().monthsShort().map(x=>x.toLowerCase())),p=V([[],[],[]]),f=V(),h=V(),v=S(()=>{var x,k;const z=p.value,M=tt().locale(i.value).startOf("month");for(let E=0;E<3;E++){const A=z[E];for(let O=0;O<4;O++){const D=A[O]||(A[O]={row:E,column:O,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});D.type="normal";const I=E*4+O,N=l.date.startOf("year").month(I),B=l.rangeState.endDate||l.maxDate||l.rangeState.selecting&&l.minDate||null;D.inRange=!!(l.minDate&&N.isSameOrAfter(l.minDate,"month")&&B&&N.isSameOrBefore(B,"month"))||!!(l.minDate&&N.isSameOrBefore(l.minDate,"month")&&B&&N.isSameOrAfter(B,"month")),(x=l.minDate)!=null&&x.isSameOrAfter(B)?(D.start=!!(B&&N.isSame(B,"month")),D.end=l.minDate&&N.isSame(l.minDate,"month")):(D.start=!!(l.minDate&&N.isSame(l.minDate,"month")),D.end=!!(B&&N.isSame(B,"month"))),M.isSame(N)&&(D.type="today"),D.text=I,D.disabled=((k=l.disabledDate)==null?void 0:k.call(l,N.toDate()))||!1}}return z}),m=()=>{var x;(x=u.value)==null||x.focus()},g=x=>{const k={},z=l.date.year(),M=new Date,E=x.text;return k.disabled=l.disabledDate?r(z,E,i.value).every(l.disabledDate):!1,k.current=lr(l.parsedValue).findIndex(A=>tt.isDayjs(A)&&A.year()===z&&A.month()===E)>=0,k.today=M.getFullYear()===z&&M.getMonth()===E,x.inRange&&(k["in-range"]=!0,x.start&&(k["start-date"]=!0),x.end&&(k["end-date"]=!0)),k},_=x=>{const k=l.date.year(),z=x.text;return lr(l.date).findIndex(M=>M.year()===k&&M.month()===z)>=0},w=x=>{var k;if(!l.rangeState.selecting)return;let z=x.target;if(z.tagName==="A"&&(z=(k=z.parentNode)==null?void 0:k.parentNode),z.tagName==="DIV"&&(z=z.parentNode),z.tagName!=="TD")return;const M=z.parentNode.rowIndex,E=z.cellIndex;v.value[M][E].disabled||(M!==f.value||E!==h.value)&&(f.value=M,h.value=E,o("changerange",{selecting:!0,endDate:l.date.startOf("year").month(M*4+E)}))},b=x=>{var k;const z=(k=x.target)==null?void 0:k.closest("td");if((z==null?void 0:z.tagName)!=="TD"||_l(z,"disabled"))return;const M=z.cellIndex,A=z.parentNode.rowIndex*4+M,O=l.date.startOf("year").month(A);l.selectionMode==="range"?l.rangeState.selecting?(l.minDate&&O>=l.minDate?o("pick",{minDate:l.minDate,maxDate:O}):o("pick",{minDate:O,maxDate:l.minDate}),o("select",!1)):(o("pick",{minDate:O,maxDate:null}),o("select",!0)):o("pick",A)};return ve(()=>l.date,async()=>{var x,k;(x=c.value)!=null&&x.contains(document.activeElement)&&(await Ne(),(k=u.value)==null||k.focus())}),t({focus:m}),(x,k)=>(y(),$("table",{role:"grid","aria-label":s(a)("el.datepicker.monthTablePrompt"),class:T(s(n).b()),onClick:b,onMousemove:w},[C("tbody",{ref_key:"tbodyRef",ref:c},[(y(!0),$(Pe,null,ut(s(v),(z,M)=>(y(),$("tr",{key:M},[(y(!0),$(Pe,null,ut(z,(E,A)=>(y(),$("td",{key:A,ref_for:!0,ref:O=>_(E)&&(u.value=O),class:T(g(E)),"aria-selected":`${_(E)}`,"aria-label":s(a)(`el.datepicker.month${+E.text+1}`),tabindex:_(E)?0:-1,onKeydown:[bt(Ue(b,["prevent","stop"]),["space"]),bt(Ue(b,["prevent","stop"]),["enter"])]},[C("div",null,[C("span",kfe,Ce(s(a)("el.datepicker.months."+d.value[E.text])),1)])],42,xfe))),128))]))),128))],512)],42,wfe))}});var F0=Te(Cfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:$fe,disabledDate:Sfe,parsedValue:zfe}=Xp,Efe=Ae({date:$fe,disabledDate:Sfe,parsedValue:zfe}),Mfe=["aria-label"],Tfe=["aria-selected","tabindex","onKeydown"],Afe={class:"cell"},Vfe={key:1},Ofe=te({__name:"basic-year-table",props:Efe,emits:["pick"],setup(e,{expose:t,emit:o}){const l=e,r=(m,g)=>{const _=tt(String(m)).locale(g).startOf("year"),b=_.endOf("year").dayOfYear();return Rr(b).map(x=>_.add(x,"day").toDate())},n=_e("year-table"),{t:a,lang:i}=yt(),c=V(),u=V(),d=S(()=>Math.floor(l.date.year()/10)*10),p=()=>{var m;(m=u.value)==null||m.focus()},f=m=>{const g={},_=tt().locale(i.value);return g.disabled=l.disabledDate?r(m,i.value).every(l.disabledDate):!1,g.current=lr(l.parsedValue).findIndex(w=>w.year()===m)>=0,g.today=_.year()===m,g},h=m=>m===d.value&&l.date.year()d.value+9||lr(l.date).findIndex(g=>g.year()===m)>=0,v=m=>{const _=m.target.closest("td");if(_&&_.textContent){if(_l(_,"disabled"))return;const w=_.textContent||_.innerText;o("pick",Number(w))}};return ve(()=>l.date,async()=>{var m,g;(m=c.value)!=null&&m.contains(document.activeElement)&&(await Ne(),(g=u.value)==null||g.focus())}),t({focus:p}),(m,g)=>(y(),$("table",{role:"grid","aria-label":s(a)("el.datepicker.yearTablePrompt"),class:T(s(n).b()),onClick:v},[C("tbody",{ref_key:"tbodyRef",ref:c},[(y(),$(Pe,null,ut(3,(_,w)=>C("tr",{key:w},[(y(),$(Pe,null,ut(4,(b,x)=>(y(),$(Pe,{key:w+"_"+x},[w*4+x<10?(y(),$("td",{key:0,ref_for:!0,ref:k=>h(s(d)+w*4+x)&&(u.value=k),class:T(["available",f(s(d)+w*4+x)]),"aria-selected":`${h(s(d)+w*4+x)}`,tabindex:h(s(d)+w*4+x)?0:-1,onKeydown:[bt(Ue(v,["prevent","stop"]),["space"]),bt(Ue(v,["prevent","stop"]),["enter"])]},[C("span",Afe,Ce(s(d)+w*4+x),1)],42,Tfe)):(y(),$("td",Vfe))],64))),64))])),64))],512)],10,Mfe))}});var Pfe=Te(Ofe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const Lfe=["onClick"],Ife=["aria-label"],Rfe=["aria-label"],Hfe=["aria-label"],Nfe=["aria-label"],Bfe=te({__name:"panel-date-pick",props:ufe,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const o=e,l=(be,ye,He)=>!0,r=_e("picker-panel"),n=_e("date-picker"),a=us(),i=ao(),{t:c,lang:u}=yt(),d=Re("EP_PICKER_BASE"),p=Re($u),{shortcuts:f,disabledDate:h,cellClassName:v,defaultTime:m,arrowControl:g}=d.props,_=Rt(d.props,"defaultValue"),w=V(),b=V(tt().locale(u.value)),x=S(()=>tt(m).locale(u.value)),k=S(()=>b.value.month()),z=S(()=>b.value.year()),M=V([]),E=V(null),A=V(null),O=be=>M.value.length>0?l(be,M.value,o.format||"HH:mm:ss"):!0,D=be=>m&&!xe.value?x.value.year(be.year()).month(be.month()).date(be.date()):j.value?be.millisecond(0):be.startOf("day"),I=(be,...ye)=>{if(!be)t("pick",be,...ye);else if(Ie(be)){const He=be.map(D);t("pick",He,...ye)}else t("pick",D(be),...ye);E.value=null,A.value=null},N=(be,ye)=>{if(R.value==="date"){be=be;let He=o.parsedValue?o.parsedValue.year(be.year()).month(be.month()).date(be.date()):be;O(He)||(He=M.value[0][0].year(be.year()).month(be.month()).date(be.date())),b.value=He,I(He,j.value||ye)}else R.value==="week"?I(be.date):R.value==="dates"&&I(be,!0)},B=be=>{const ye=be?"add":"subtract";b.value=b.value[ye](1,"month"),rt("month")},F=be=>{const ye=b.value,He=be?"add":"subtract";b.value=H.value==="year"?ye[He](10,"year"):ye[He](1,"year"),rt("year")},H=V("date"),L=S(()=>{const be=c("el.datepicker.year");if(H.value==="year"){const ye=Math.floor(z.value/10)*10;return be?`${ye} ${be} - ${ye+9} ${be}`:`${ye} - ${ye+9}`}return`${z.value} ${be}`}),P=be=>{const ye=Ye(be.value)?be.value():be.value;if(ye){I(tt(ye).locale(u.value));return}be.onClick&&be.onClick({attrs:a,slots:i,emit:t})},R=S(()=>{const{type:be}=o;return["week","month","year","dates"].includes(be)?be:"date"}),J=S(()=>R.value==="date"?H.value:R.value),oe=S(()=>!!f.length),G=async be=>{b.value=b.value.startOf("month").month(be),R.value==="month"?I(b.value,!1):(H.value="date",["month","year","date","week"].includes(R.value)&&(I(b.value,!0),await Ne(),Le())),rt("month")},le=async be=>{R.value==="year"?(b.value=b.value.startOf("year").year(be),I(b.value,!1)):(b.value=b.value.year(be),H.value="month",["month","year","date","week"].includes(R.value)&&(I(b.value,!0),await Ne(),Le())),rt("year")},he=async be=>{H.value=be,await Ne(),Le()},j=S(()=>o.type==="datetime"||o.type==="datetimerange"),re=S(()=>j.value||R.value==="dates"),Y=()=>{if(R.value==="dates")I(o.parsedValue);else{let be=o.parsedValue;if(!be){const ye=tt(m).locale(u.value),He=Ve();be=ye.year(He.year()).month(He.month()).date(He.date())}b.value=be,I(be)}},W=()=>{const ye=tt().locale(u.value).toDate();(!h||!h(ye))&&O(ye)&&(b.value=tt().locale(u.value),I(b.value))},ce=S(()=>Tg(o.format)),ne=S(()=>Mg(o.format)),xe=S(()=>{if(A.value)return A.value;if(!(!o.parsedValue&&!_.value))return(o.parsedValue||b.value).format(ce.value)}),U=S(()=>{if(E.value)return E.value;if(!(!o.parsedValue&&!_.value))return(o.parsedValue||b.value).format(ne.value)}),Q=V(!1),fe=()=>{Q.value=!0},we=()=>{Q.value=!1},$e=be=>({hour:be.hour(),minute:be.minute(),second:be.second(),year:be.year(),month:be.month(),date:be.date()}),pe=(be,ye,He)=>{const{hour:Je,minute:q,second:ie}=$e(be),ke=o.parsedValue?o.parsedValue.hour(Je).minute(q).second(ie):be;b.value=ke,I(b.value,!0),He||(Q.value=ye)},Se=be=>{const ye=tt(be,ce.value).locale(u.value);if(ye.isValid()&&O(ye)){const{year:He,month:Je,date:q}=$e(b.value);b.value=ye.year(He).month(Je).date(q),A.value=null,Q.value=!1,I(b.value,!0)}},me=be=>{const ye=tt(be,ne.value).locale(u.value);if(ye.isValid()){if(h&&h(ye.toDate()))return;const{hour:He,minute:Je,second:q}=$e(b.value);b.value=ye.hour(He).minute(Je).second(q),E.value=null,I(b.value,!0)}},X=be=>tt.isDayjs(be)&&be.isValid()&&(h?!h(be.toDate()):!0),se=be=>R.value==="dates"?be.map(ye=>ye.format(o.format)):be.format(o.format),ze=be=>tt(be,o.format).locale(u.value),Ve=()=>{const be=tt(_.value).locale(u.value);if(!_.value){const ye=x.value;return tt().hour(ye.hour()).minute(ye.minute()).second(ye.second()).locale(u.value)}return be},Le=async()=>{var be;["week","month","year","date"].includes(R.value)&&((be=w.value)==null||be.focus(),R.value==="week"&&qe(je.down))},Ke=be=>{const{code:ye}=be;[je.up,je.down,je.left,je.right,je.home,je.end,je.pageUp,je.pageDown].includes(ye)&&(qe(ye),be.stopPropagation(),be.preventDefault()),[je.enter,je.space].includes(ye)&&E.value===null&&A.value===null&&(be.preventDefault(),I(b.value,!1))},qe=be=>{var ye;const{up:He,down:Je,left:q,right:ie,home:ke,end:Me,pageUp:it,pageDown:zt}=je,Ut={year:{[He]:-4,[Je]:4,[q]:-1,[ie]:1,offset:(dt,Dt)=>dt.setFullYear(dt.getFullYear()+Dt)},month:{[He]:-4,[Je]:4,[q]:-1,[ie]:1,offset:(dt,Dt)=>dt.setMonth(dt.getMonth()+Dt)},week:{[He]:-1,[Je]:1,[q]:-1,[ie]:1,offset:(dt,Dt)=>dt.setDate(dt.getDate()+Dt*7)},date:{[He]:-7,[Je]:7,[q]:-1,[ie]:1,[ke]:dt=>-dt.getDay(),[Me]:dt=>-dt.getDay()+6,[it]:dt=>-new Date(dt.getFullYear(),dt.getMonth(),0).getDate(),[zt]:dt=>new Date(dt.getFullYear(),dt.getMonth()+1,0).getDate(),offset:(dt,Dt)=>dt.setDate(dt.getDate()+Dt)}},qt=b.value.toDate();for(;Math.abs(b.value.diff(qt,"year",!0))<1;){const dt=Ut[J.value];if(!dt)return;if(dt.offset(qt,Ye(dt[be])?dt[be](qt):(ye=dt[be])!=null?ye:0),h&&h(qt))break;const Dt=tt(qt).locale(u.value);b.value=Dt,t("pick",Dt,!0);break}},rt=be=>{t("panel-change",b.value.toDate(),be,H.value)};return ve(()=>R.value,be=>{if(["month","year"].includes(be)){H.value=be;return}H.value="date"},{immediate:!0}),ve(()=>H.value,()=>{p==null||p.updatePopper()}),ve(()=>_.value,be=>{be&&(b.value=Ve())},{immediate:!0}),ve(()=>o.parsedValue,be=>{if(be){if(R.value==="dates"||Array.isArray(be))return;b.value=be}else b.value=Ve()},{immediate:!0}),t("set-picker-option",["isValidValue",X]),t("set-picker-option",["formatToString",se]),t("set-picker-option",["parseUserInput",ze]),t("set-picker-option",["handleFocusPicker",Le]),(be,ye)=>(y(),$("div",{class:T([s(r).b(),s(n).b(),{"has-sidebar":be.$slots.sidebar||s(oe),"has-time":s(j)}])},[C("div",{class:T(s(r).e("body-wrapper"))},[ge(be.$slots,"sidebar",{class:T(s(r).e("sidebar"))}),s(oe)?(y(),$("div",{key:0,class:T(s(r).e("sidebar"))},[(y(!0),$(Pe,null,ut(s(f),(He,Je)=>(y(),$("button",{key:Je,type:"button",class:T(s(r).e("shortcut")),onClick:q=>P(He)},Ce(He.text),11,Lfe))),128))],2)):ae("v-if",!0),C("div",{class:T(s(r).e("body"))},[s(j)?(y(),$("div",{key:0,class:T(s(n).e("time-header"))},[C("span",{class:T(s(n).e("editor-wrap"))},[K(s(mo),{placeholder:s(c)("el.datepicker.selectDate"),"model-value":s(U),size:"small","validate-event":!1,onInput:ye[0]||(ye[0]=He=>E.value=He),onChange:me},null,8,["placeholder","model-value"])],2),Xe((y(),$("span",{class:T(s(n).e("editor-wrap"))},[K(s(mo),{placeholder:s(c)("el.datepicker.selectTime"),"model-value":s(xe),size:"small","validate-event":!1,onFocus:fe,onInput:ye[1]||(ye[1]=He=>A.value=He),onChange:Se},null,8,["placeholder","model-value"]),K(s(Nc),{visible:Q.value,format:s(ce),"time-arrow-control":s(g),"parsed-value":b.value,onPick:pe},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[s(Wr),we]])],2)):ae("v-if",!0),Xe(C("div",{class:T([s(n).e("header"),(H.value==="year"||H.value==="month")&&s(n).e("header--bordered")])},[C("span",{class:T(s(n).e("prev-btn"))},[C("button",{type:"button","aria-label":s(c)("el.datepicker.prevYear"),class:T(["d-arrow-left",s(r).e("icon-btn")]),onClick:ye[2]||(ye[2]=He=>F(!1))},[K(s(De),null,{default:Z(()=>[K(s(zn))]),_:1})],10,Ife),Xe(C("button",{type:"button","aria-label":s(c)("el.datepicker.prevMonth"),class:T([s(r).e("icon-btn"),"arrow-left"]),onClick:ye[3]||(ye[3]=He=>B(!1))},[K(s(De),null,{default:Z(()=>[K(s(ir))]),_:1})],10,Rfe),[[_t,H.value==="date"]])],2),C("span",{role:"button",class:T(s(n).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:ye[4]||(ye[4]=bt(He=>he("year"),["enter"])),onClick:ye[5]||(ye[5]=He=>he("year"))},Ce(s(L)),35),Xe(C("span",{role:"button","aria-live":"polite",tabindex:"0",class:T([s(n).e("header-label"),{active:H.value==="month"}]),onKeydown:ye[6]||(ye[6]=bt(He=>he("month"),["enter"])),onClick:ye[7]||(ye[7]=He=>he("month"))},Ce(s(c)(`el.datepicker.month${s(k)+1}`)),35),[[_t,H.value==="date"]]),C("span",{class:T(s(n).e("next-btn"))},[Xe(C("button",{type:"button","aria-label":s(c)("el.datepicker.nextMonth"),class:T([s(r).e("icon-btn"),"arrow-right"]),onClick:ye[8]||(ye[8]=He=>B(!0))},[K(s(De),null,{default:Z(()=>[K(s(go))]),_:1})],10,Hfe),[[_t,H.value==="date"]]),C("button",{type:"button","aria-label":s(c)("el.datepicker.nextYear"),class:T([s(r).e("icon-btn"),"d-arrow-right"]),onClick:ye[9]||(ye[9]=He=>F(!0))},[K(s(De),null,{default:Z(()=>[K(s(En))]),_:1})],10,Nfe)],2)],2),[[_t,H.value!=="time"]]),C("div",{class:T(s(r).e("content")),onKeydown:Ke},[H.value==="date"?(y(),ue(D0,{key:0,ref_key:"currentViewRef",ref:w,"selection-mode":s(R),date:b.value,"parsed-value":be.parsedValue,"disabled-date":s(h),"cell-class-name":s(v),onPick:N},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):ae("v-if",!0),H.value==="year"?(y(),ue(Pfe,{key:1,ref_key:"currentViewRef",ref:w,date:b.value,"disabled-date":s(h),"parsed-value":be.parsedValue,onPick:le},null,8,["date","disabled-date","parsed-value"])):ae("v-if",!0),H.value==="month"?(y(),ue(F0,{key:2,ref_key:"currentViewRef",ref:w,date:b.value,"parsed-value":be.parsedValue,"disabled-date":s(h),onPick:G},null,8,["date","parsed-value","disabled-date"])):ae("v-if",!0)],34)],2)],2),Xe(C("div",{class:T(s(r).e("footer"))},[Xe(K(s(po),{text:"",size:"small",class:T(s(r).e("link-btn")),onClick:W},{default:Z(()=>[ot(Ce(s(c)("el.datepicker.now")),1)]),_:1},8,["class"]),[[_t,s(R)!=="dates"]]),K(s(po),{plain:"",size:"small",class:T(s(r).e("link-btn")),onClick:Y},{default:Z(()=>[ot(Ce(s(c)("el.datepicker.confirm")),1)]),_:1},8,["class"])],2),[[_t,s(re)&&H.value==="date"]])],2))}});var Dfe=Te(Bfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const Ffe=Ae({...y8,...w8}),jfe=e=>{const{emit:t}=Qe(),o=us(),l=ao();return n=>{const a=Ye(n.value)?n.value():n.value;if(a){t("pick",[tt(a[0]).locale(e.value),tt(a[1]).locale(e.value)]);return}n.onClick&&n.onClick({attrs:o,slots:l,emit:t})}},C8=(e,{defaultValue:t,leftDate:o,rightDate:l,unit:r,onParsedValueChanged:n})=>{const{emit:a}=Qe(),{pickerNs:i}=Re(zp),c=_e("date-range-picker"),{t:u,lang:d}=yt(),p=jfe(d),f=V(),h=V(),v=V({endDate:null,selecting:!1}),m=b=>{v.value=b},g=(b=!1)=>{const x=s(f),k=s(h);B0([x,k])&&a("pick",[x,k],b)},_=b=>{v.value.selecting=b,b||(v.value.endDate=null)},w=()=>{const[b,x]=k8(s(t),{lang:s(d),unit:r,unlinkPanels:e.unlinkPanels});f.value=void 0,h.value=void 0,o.value=b,l.value=x};return ve(t,b=>{b&&w()},{immediate:!0}),ve(()=>e.parsedValue,b=>{if(Ie(b)&&b.length===2){const[x,k]=b;f.value=x,o.value=x,h.value=k,n(s(f),s(h))}else w()},{immediate:!0}),{minDate:f,maxDate:h,rangeState:v,lang:d,ppNs:i,drpNs:c,handleChangeRange:m,handleRangeConfirm:g,handleShortcutClick:p,onSelect:_,t:u}},Kfe=["onClick"],Wfe=["disabled"],qfe=["disabled"],Ufe=["disabled"],Yfe=["disabled"],Fs="month",Gfe=te({__name:"panel-date-range",props:Ffe,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const o=e,l=Re("EP_PICKER_BASE"),{disabledDate:r,cellClassName:n,format:a,defaultTime:i,arrowControl:c,clearable:u}=l.props,d=Rt(l.props,"shortcuts"),p=Rt(l.props,"defaultValue"),{lang:f}=yt(),h=V(tt().locale(f.value)),v=V(tt().locale(f.value).add(1,Fs)),{minDate:m,maxDate:g,rangeState:_,ppNs:w,drpNs:b,handleChangeRange:x,handleRangeConfirm:k,handleShortcutClick:z,onSelect:M,t:E}=C8(o,{defaultValue:p,leftDate:h,rightDate:v,unit:Fs,onParsedValueChanged:q}),A=V({min:null,max:null}),O=V({min:null,max:null}),D=S(()=>`${h.value.year()} ${E("el.datepicker.year")} ${E(`el.datepicker.month${h.value.month()+1}`)}`),I=S(()=>`${v.value.year()} ${E("el.datepicker.year")} ${E(`el.datepicker.month${v.value.month()+1}`)}`),N=S(()=>h.value.year()),B=S(()=>h.value.month()),F=S(()=>v.value.year()),H=S(()=>v.value.month()),L=S(()=>!!d.value.length),P=S(()=>A.value.min!==null?A.value.min:m.value?m.value.format(le.value):""),R=S(()=>A.value.max!==null?A.value.max:g.value||m.value?(g.value||m.value).format(le.value):""),J=S(()=>O.value.min!==null?O.value.min:m.value?m.value.format(G.value):""),oe=S(()=>O.value.max!==null?O.value.max:g.value||m.value?(g.value||m.value).format(G.value):""),G=S(()=>Tg(a)),le=S(()=>Mg(a)),he=()=>{h.value=h.value.subtract(1,"year"),o.unlinkPanels||(v.value=h.value.add(1,"month")),U("year")},j=()=>{h.value=h.value.subtract(1,"month"),o.unlinkPanels||(v.value=h.value.add(1,"month")),U("month")},re=()=>{o.unlinkPanels?v.value=v.value.add(1,"year"):(h.value=h.value.add(1,"year"),v.value=h.value.add(1,"month")),U("year")},Y=()=>{o.unlinkPanels?v.value=v.value.add(1,"month"):(h.value=h.value.add(1,"month"),v.value=h.value.add(1,"month")),U("month")},W=()=>{h.value=h.value.add(1,"year"),U("year")},ce=()=>{h.value=h.value.add(1,"month"),U("month")},ne=()=>{v.value=v.value.subtract(1,"year"),U("year")},xe=()=>{v.value=v.value.subtract(1,"month"),U("month")},U=ie=>{t("panel-change",[h.value.toDate(),v.value.toDate()],ie)},Q=S(()=>{const ie=(B.value+1)%12,ke=B.value+1>=12?1:0;return o.unlinkPanels&&new Date(N.value+ke,ie)o.unlinkPanels&&F.value*12+H.value-(N.value*12+B.value+1)>=12),we=S(()=>!(m.value&&g.value&&!_.value.selecting&&B0([m.value,g.value]))),$e=S(()=>o.type==="datetime"||o.type==="datetimerange"),pe=(ie,ke)=>{if(!!ie)return i?tt(i[ke]||i).locale(f.value).year(ie.year()).month(ie.month()).date(ie.date()):ie},Se=(ie,ke=!0)=>{const Me=ie.minDate,it=ie.maxDate,zt=pe(Me,0),Ut=pe(it,1);g.value===Ut&&m.value===zt||(t("calendar-change",[Me.toDate(),it&&it.toDate()]),g.value=Ut,m.value=zt,!(!ke||$e.value)&&k())},me=V(!1),X=V(!1),se=()=>{me.value=!1},ze=()=>{X.value=!1},Ve=(ie,ke)=>{A.value[ke]=ie;const Me=tt(ie,le.value).locale(f.value);if(Me.isValid()){if(r&&r(Me.toDate()))return;ke==="min"?(h.value=Me,m.value=(m.value||h.value).year(Me.year()).month(Me.month()).date(Me.date()),o.unlinkPanels||(v.value=Me.add(1,"month"),g.value=m.value.add(1,"month"))):(v.value=Me,g.value=(g.value||v.value).year(Me.year()).month(Me.month()).date(Me.date()),o.unlinkPanels||(h.value=Me.subtract(1,"month"),m.value=g.value.subtract(1,"month")))}},Le=(ie,ke)=>{A.value[ke]=null},Ke=(ie,ke)=>{O.value[ke]=ie;const Me=tt(ie,G.value).locale(f.value);Me.isValid()&&(ke==="min"?(me.value=!0,m.value=(m.value||h.value).hour(Me.hour()).minute(Me.minute()).second(Me.second()),(!g.value||g.value.isBefore(m.value))&&(g.value=m.value)):(X.value=!0,g.value=(g.value||v.value).hour(Me.hour()).minute(Me.minute()).second(Me.second()),v.value=g.value,g.value&&g.value.isBefore(m.value)&&(m.value=g.value)))},qe=(ie,ke)=>{O.value[ke]=null,ke==="min"?(h.value=m.value,me.value=!1):(v.value=g.value,X.value=!1)},rt=(ie,ke,Me)=>{O.value.min||(ie&&(h.value=ie,m.value=(m.value||h.value).hour(ie.hour()).minute(ie.minute()).second(ie.second())),Me||(me.value=ke),(!g.value||g.value.isBefore(m.value))&&(g.value=m.value,v.value=ie))},be=(ie,ke,Me)=>{O.value.max||(ie&&(v.value=ie,g.value=(g.value||v.value).hour(ie.hour()).minute(ie.minute()).second(ie.second())),Me||(X.value=ke),g.value&&g.value.isBefore(m.value)&&(m.value=g.value))},ye=()=>{h.value=k8(s(p),{lang:s(f),unit:"month",unlinkPanels:o.unlinkPanels})[0],v.value=h.value.add(1,"month"),t("pick",null)},He=ie=>Ie(ie)?ie.map(ke=>ke.format(a)):ie.format(a),Je=ie=>Ie(ie)?ie.map(ke=>tt(ke,a).locale(f.value)):tt(ie,a).locale(f.value);function q(ie,ke){if(o.unlinkPanels&&ke){const Me=(ie==null?void 0:ie.year())||0,it=(ie==null?void 0:ie.month())||0,zt=ke.year(),Ut=ke.month();v.value=Me===zt&&it===Ut?ke.add(1,Fs):ke}else v.value=h.value.add(1,Fs),ke&&(v.value=v.value.hour(ke.hour()).minute(ke.minute()).second(ke.second()))}return t("set-picker-option",["isValidValue",B0]),t("set-picker-option",["parseUserInput",Je]),t("set-picker-option",["formatToString",He]),t("set-picker-option",["handleClear",ye]),(ie,ke)=>(y(),$("div",{class:T([s(w).b(),s(b).b(),{"has-sidebar":ie.$slots.sidebar||s(L),"has-time":s($e)}])},[C("div",{class:T(s(w).e("body-wrapper"))},[ge(ie.$slots,"sidebar",{class:T(s(w).e("sidebar"))}),s(L)?(y(),$("div",{key:0,class:T(s(w).e("sidebar"))},[(y(!0),$(Pe,null,ut(s(d),(Me,it)=>(y(),$("button",{key:it,type:"button",class:T(s(w).e("shortcut")),onClick:zt=>s(z)(Me)},Ce(Me.text),11,Kfe))),128))],2)):ae("v-if",!0),C("div",{class:T(s(w).e("body"))},[s($e)?(y(),$("div",{key:0,class:T(s(b).e("time-header"))},[C("span",{class:T(s(b).e("editors-wrap"))},[C("span",{class:T(s(b).e("time-picker-wrap"))},[K(s(mo),{size:"small",disabled:s(_).selecting,placeholder:s(E)("el.datepicker.startDate"),class:T(s(b).e("editor")),"model-value":s(P),"validate-event":!1,onInput:ke[0]||(ke[0]=Me=>Ve(Me,"min")),onChange:ke[1]||(ke[1]=Me=>Le(Me,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),Xe((y(),$("span",{class:T(s(b).e("time-picker-wrap"))},[K(s(mo),{size:"small",class:T(s(b).e("editor")),disabled:s(_).selecting,placeholder:s(E)("el.datepicker.startTime"),"model-value":s(J),"validate-event":!1,onFocus:ke[2]||(ke[2]=Me=>me.value=!0),onInput:ke[3]||(ke[3]=Me=>Ke(Me,"min")),onChange:ke[4]||(ke[4]=Me=>qe(Me,"min"))},null,8,["class","disabled","placeholder","model-value"]),K(s(Nc),{visible:me.value,format:s(G),"datetime-role":"start","time-arrow-control":s(c),"parsed-value":h.value,onPick:rt},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[s(Wr),se]])],2),C("span",null,[K(s(De),null,{default:Z(()=>[K(s(go))]),_:1})]),C("span",{class:T([s(b).e("editors-wrap"),"is-right"])},[C("span",{class:T(s(b).e("time-picker-wrap"))},[K(s(mo),{size:"small",class:T(s(b).e("editor")),disabled:s(_).selecting,placeholder:s(E)("el.datepicker.endDate"),"model-value":s(R),readonly:!s(m),"validate-event":!1,onInput:ke[5]||(ke[5]=Me=>Ve(Me,"max")),onChange:ke[6]||(ke[6]=Me=>Le(Me,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),Xe((y(),$("span",{class:T(s(b).e("time-picker-wrap"))},[K(s(mo),{size:"small",class:T(s(b).e("editor")),disabled:s(_).selecting,placeholder:s(E)("el.datepicker.endTime"),"model-value":s(oe),readonly:!s(m),"validate-event":!1,onFocus:ke[7]||(ke[7]=Me=>s(m)&&(X.value=!0)),onInput:ke[8]||(ke[8]=Me=>Ke(Me,"max")),onChange:ke[9]||(ke[9]=Me=>qe(Me,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),K(s(Nc),{"datetime-role":"end",visible:X.value,format:s(G),"time-arrow-control":s(c),"parsed-value":v.value,onPick:be},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[s(Wr),ze]])],2)],2)):ae("v-if",!0),C("div",{class:T([[s(w).e("content"),s(b).e("content")],"is-left"])},[C("div",{class:T(s(b).e("header"))},[C("button",{type:"button",class:T([s(w).e("icon-btn"),"d-arrow-left"]),onClick:he},[K(s(De),null,{default:Z(()=>[K(s(zn))]),_:1})],2),C("button",{type:"button",class:T([s(w).e("icon-btn"),"arrow-left"]),onClick:j},[K(s(De),null,{default:Z(()=>[K(s(ir))]),_:1})],2),ie.unlinkPanels?(y(),$("button",{key:0,type:"button",disabled:!s(fe),class:T([[s(w).e("icon-btn"),{"is-disabled":!s(fe)}],"d-arrow-right"]),onClick:W},[K(s(De),null,{default:Z(()=>[K(s(En))]),_:1})],10,Wfe)):ae("v-if",!0),ie.unlinkPanels?(y(),$("button",{key:1,type:"button",disabled:!s(Q),class:T([[s(w).e("icon-btn"),{"is-disabled":!s(Q)}],"arrow-right"]),onClick:ce},[K(s(De),null,{default:Z(()=>[K(s(go))]),_:1})],10,qfe)):ae("v-if",!0),C("div",null,Ce(s(D)),1)],2),K(D0,{"selection-mode":"range",date:h.value,"min-date":s(m),"max-date":s(g),"range-state":s(_),"disabled-date":s(r),"cell-class-name":s(n),onChangerange:s(x),onPick:Se,onSelect:s(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),C("div",{class:T([[s(w).e("content"),s(b).e("content")],"is-right"])},[C("div",{class:T(s(b).e("header"))},[ie.unlinkPanels?(y(),$("button",{key:0,type:"button",disabled:!s(fe),class:T([[s(w).e("icon-btn"),{"is-disabled":!s(fe)}],"d-arrow-left"]),onClick:ne},[K(s(De),null,{default:Z(()=>[K(s(zn))]),_:1})],10,Ufe)):ae("v-if",!0),ie.unlinkPanels?(y(),$("button",{key:1,type:"button",disabled:!s(Q),class:T([[s(w).e("icon-btn"),{"is-disabled":!s(Q)}],"arrow-left"]),onClick:xe},[K(s(De),null,{default:Z(()=>[K(s(ir))]),_:1})],10,Yfe)):ae("v-if",!0),C("button",{type:"button",class:T([s(w).e("icon-btn"),"d-arrow-right"]),onClick:re},[K(s(De),null,{default:Z(()=>[K(s(En))]),_:1})],2),C("button",{type:"button",class:T([s(w).e("icon-btn"),"arrow-right"]),onClick:Y},[K(s(De),null,{default:Z(()=>[K(s(go))]),_:1})],2),C("div",null,Ce(s(I)),1)],2),K(D0,{"selection-mode":"range",date:v.value,"min-date":s(m),"max-date":s(g),"range-state":s(_),"disabled-date":s(r),"cell-class-name":s(n),onChangerange:s(x),onPick:Se,onSelect:s(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),s($e)?(y(),$("div",{key:0,class:T(s(w).e("footer"))},[s(u)?(y(),ue(s(po),{key:0,text:"",size:"small",class:T(s(w).e("link-btn")),onClick:ye},{default:Z(()=>[ot(Ce(s(E)("el.datepicker.clear")),1)]),_:1},8,["class"])):ae("v-if",!0),K(s(po),{plain:"",size:"small",class:T(s(w).e("link-btn")),disabled:s(we),onClick:ke[10]||(ke[10]=Me=>s(k)(!1))},{default:Z(()=>[ot(Ce(s(E)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):ae("v-if",!0)],2))}});var Xfe=Te(Gfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const Jfe=Ae({...w8}),Zfe=["pick","set-picker-option"],Qfe=({unlinkPanels:e,leftDate:t,rightDate:o})=>{const{t:l}=yt(),r=()=>{t.value=t.value.subtract(1,"year"),e.value||(o.value=o.value.subtract(1,"year"))},n=()=>{e.value||(t.value=t.value.add(1,"year")),o.value=o.value.add(1,"year")},a=()=>{t.value=t.value.add(1,"year")},i=()=>{o.value=o.value.subtract(1,"year")},c=S(()=>`${t.value.year()} ${l("el.datepicker.year")}`),u=S(()=>`${o.value.year()} ${l("el.datepicker.year")}`),d=S(()=>t.value.year()),p=S(()=>o.value.year()===t.value.year()?t.value.year()+1:o.value.year());return{leftPrevYear:r,rightNextYear:n,leftNextYear:a,rightPrevYear:i,leftLabel:c,rightLabel:u,leftYear:d,rightYear:p}},e1e=["onClick"],t1e=["disabled"],o1e=["disabled"],js="year",l1e=te({name:"DatePickerMonthRange"}),r1e=te({...l1e,props:Jfe,emits:Zfe,setup(e,{emit:t}){const o=e,{lang:l}=yt(),r=Re("EP_PICKER_BASE"),{shortcuts:n,disabledDate:a,format:i}=r.props,c=Rt(r.props,"defaultValue"),u=V(tt().locale(l.value)),d=V(tt().locale(l.value).add(1,js)),{minDate:p,maxDate:f,rangeState:h,ppNs:v,drpNs:m,handleChangeRange:g,handleRangeConfirm:_,handleShortcutClick:w,onSelect:b}=C8(o,{defaultValue:c,leftDate:u,rightDate:d,unit:js,onParsedValueChanged:H}),x=S(()=>!!n.length),{leftPrevYear:k,rightNextYear:z,leftNextYear:M,rightPrevYear:E,leftLabel:A,rightLabel:O,leftYear:D,rightYear:I}=Qfe({unlinkPanels:Rt(o,"unlinkPanels"),leftDate:u,rightDate:d}),N=S(()=>o.unlinkPanels&&I.value>D.value+1),B=(L,P=!0)=>{const R=L.minDate,J=L.maxDate;f.value===J&&p.value===R||(f.value=J,p.value=R,P&&_())},F=L=>L.map(P=>P.format(i));function H(L,P){if(o.unlinkPanels&&P){const R=(L==null?void 0:L.year())||0,J=P.year();d.value=R===J?P.add(1,js):P}else d.value=u.value.add(1,js)}return t("set-picker-option",["formatToString",F]),(L,P)=>(y(),$("div",{class:T([s(v).b(),s(m).b(),{"has-sidebar":Boolean(L.$slots.sidebar)||s(x)}])},[C("div",{class:T(s(v).e("body-wrapper"))},[ge(L.$slots,"sidebar",{class:T(s(v).e("sidebar"))}),s(x)?(y(),$("div",{key:0,class:T(s(v).e("sidebar"))},[(y(!0),$(Pe,null,ut(s(n),(R,J)=>(y(),$("button",{key:J,type:"button",class:T(s(v).e("shortcut")),onClick:oe=>s(w)(R)},Ce(R.text),11,e1e))),128))],2)):ae("v-if",!0),C("div",{class:T(s(v).e("body"))},[C("div",{class:T([[s(v).e("content"),s(m).e("content")],"is-left"])},[C("div",{class:T(s(m).e("header"))},[C("button",{type:"button",class:T([s(v).e("icon-btn"),"d-arrow-left"]),onClick:P[0]||(P[0]=(...R)=>s(k)&&s(k)(...R))},[K(s(De),null,{default:Z(()=>[K(s(zn))]),_:1})],2),L.unlinkPanels?(y(),$("button",{key:0,type:"button",disabled:!s(N),class:T([[s(v).e("icon-btn"),{[s(v).is("disabled")]:!s(N)}],"d-arrow-right"]),onClick:P[1]||(P[1]=(...R)=>s(M)&&s(M)(...R))},[K(s(De),null,{default:Z(()=>[K(s(En))]),_:1})],10,t1e)):ae("v-if",!0),C("div",null,Ce(s(A)),1)],2),K(F0,{"selection-mode":"range",date:u.value,"min-date":s(p),"max-date":s(f),"range-state":s(h),"disabled-date":s(a),onChangerange:s(g),onPick:B,onSelect:s(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),C("div",{class:T([[s(v).e("content"),s(m).e("content")],"is-right"])},[C("div",{class:T(s(m).e("header"))},[L.unlinkPanels?(y(),$("button",{key:0,type:"button",disabled:!s(N),class:T([[s(v).e("icon-btn"),{"is-disabled":!s(N)}],"d-arrow-left"]),onClick:P[2]||(P[2]=(...R)=>s(E)&&s(E)(...R))},[K(s(De),null,{default:Z(()=>[K(s(zn))]),_:1})],10,o1e)):ae("v-if",!0),C("button",{type:"button",class:T([s(v).e("icon-btn"),"d-arrow-right"]),onClick:P[3]||(P[3]=(...R)=>s(z)&&s(z)(...R))},[K(s(De),null,{default:Z(()=>[K(s(En))]),_:1})],2),C("div",null,Ce(s(O)),1)],2),K(F0,{"selection-mode":"range",date:d.value,"min-date":s(p),"max-date":s(f),"range-state":s(h),"disabled-date":s(a),onChangerange:s(g),onPick:B,onSelect:s(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var n1e=Te(r1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const a1e=function(e){switch(e){case"daterange":case"datetimerange":return Xfe;case"monthrange":return n1e;default:return Dfe}};tt.extend(qg);tt.extend(ofe);tt.extend(qp);tt.extend(lfe);tt.extend(rfe);tt.extend(nfe);tt.extend(afe);tt.extend(ife);var i1e=te({name:"ElDatePicker",install:null,props:{...Up,...sfe},emits:["update:modelValue"],setup(e,{expose:t,emit:o,slots:l}){const r=_e("picker-panel");st("ElPopperOptions",wt(Rt(e,"popperOptions"))),st(zp,{slots:l,pickerNs:r});const n=V();t({focus:(c=!0)=>{var u;(u=n.value)==null||u.focus(c)},handleOpen:()=>{var c;(c=n.value)==null||c.handleOpen()},handleClose:()=>{var c;(c=n.value)==null||c.handleClose()}});const i=c=>{o("update:modelValue",c)};return()=>{var c;const u=(c=e.format)!=null?c:sde[e.type]||Wn,d=a1e(e.type);return K(Og,ht(e,{format:u,type:e.type,ref:n,"onUpdate:modelValue":i}),{default:p=>K(d,p,null),"range-separator":l["range-separator"]})}}});const uc=i1e;uc.install=e=>{e.component(uc.name,uc)};const s1e=uc,Jp="elDescriptions";var li=te({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:Re(Jp,{})}},render(){var e,t,o,l,r,n;const a=eae(this.cell),{border:i,direction:c}=this.descriptions,u=c==="vertical",d=((o=(t=(e=this.cell)==null?void 0:e.children)==null?void 0:t.label)==null?void 0:o.call(t))||a.label,p=(n=(r=(l=this.cell)==null?void 0:l.children)==null?void 0:r.default)==null?void 0:n.call(r),f=a.span,h=a.align?`is-${a.align}`:"",v=a.labelAlign?`is-${a.labelAlign}`:h,m=a.className,g=a.labelClassName,_={width:Yt(a.width),minWidth:Yt(a.minWidth)},w=_e("descriptions");switch(this.type){case"label":return Fe(this.tag,{style:_,class:[w.e("cell"),w.e("label"),w.is("bordered-label",i),w.is("vertical-label",u),v,g],colSpan:u?f:1},d);case"content":return Fe(this.tag,{style:_,class:[w.e("cell"),w.e("content"),w.is("bordered-content",i),w.is("vertical-content",u),h,m],colSpan:u?f:f*2-1},p);default:return Fe("td",{style:_,class:[w.e("cell"),h],colSpan:f},[Fe("span",{class:[w.e("label"),g]},d),Fe("span",{class:[w.e("content"),m]},p)])}}});const c1e=Ae({row:{type:Array,default:()=>[]}}),u1e={key:1},d1e=te({name:"ElDescriptionsRow"}),p1e=te({...d1e,props:c1e,setup(e){const t=Re(Jp,{});return(o,l)=>s(t).direction==="vertical"?(y(),$(Pe,{key:0},[C("tr",null,[(y(!0),$(Pe,null,ut(o.row,(r,n)=>(y(),ue(s(li),{key:`tr1-${n}`,cell:r,tag:"th",type:"label"},null,8,["cell"]))),128))]),C("tr",null,[(y(!0),$(Pe,null,ut(o.row,(r,n)=>(y(),ue(s(li),{key:`tr2-${n}`,cell:r,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(y(),$("tr",u1e,[(y(!0),$(Pe,null,ut(o.row,(r,n)=>(y(),$(Pe,{key:`tr3-${n}`},[s(t).border?(y(),$(Pe,{key:0},[K(s(li),{cell:r,tag:"td",type:"label"},null,8,["cell"]),K(s(li),{cell:r,tag:"td",type:"content"},null,8,["cell"])],64)):(y(),ue(s(li),{key:1,cell:r,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var f1e=Te(p1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const h1e=Ae({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Lo,title:{type:String,default:""},extra:{type:String,default:""}}),v1e=te({name:"ElDescriptions"}),m1e=te({...v1e,props:h1e,setup(e){const t=e,o=_e("descriptions"),l=Xt(),r=ao();st(Jp,t);const n=S(()=>[o.b(),o.m(l.value)]),a=(c,u,d,p=!1)=>(c.props||(c.props={}),u>d&&(c.props.span=d),p&&(c.props.span=u),c),i=()=>{var c;const u=na((c=r.default)==null?void 0:c.call(r)).filter(v=>{var m;return((m=v==null?void 0:v.type)==null?void 0:m.name)==="ElDescriptionsItem"}),d=[];let p=[],f=t.column,h=0;return u.forEach((v,m)=>{var g;const _=((g=v.props)==null?void 0:g.span)||1;if(mf?f:_),m===u.length-1){const w=t.column-h%t.column;p.push(a(v,w,f,!0)),d.push(p);return}_(y(),$("div",{class:T(s(n))},[c.title||c.extra||c.$slots.title||c.$slots.extra?(y(),$("div",{key:0,class:T(s(o).e("header"))},[C("div",{class:T(s(o).e("title"))},[ge(c.$slots,"title",{},()=>[ot(Ce(c.title),1)])],2),C("div",{class:T(s(o).e("extra"))},[ge(c.$slots,"extra",{},()=>[ot(Ce(c.extra),1)])],2)],2)):ae("v-if",!0),C("div",{class:T(s(o).e("body"))},[C("table",{class:T([s(o).e("table"),s(o).is("bordered",c.border)])},[C("tbody",null,[(y(!0),$(Pe,null,ut(i(),(d,p)=>(y(),ue(f1e,{key:p,row:d},null,8,["row"]))),128))])],2)],2)],2))}});var g1e=Te(m1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),$8=te({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const b1e=at(g1e,{DescriptionsItem:$8}),_1e=Bt($8),y1e=Ae({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:de([String,Array,Object])},zIndex:{type:de([String,Number])}}),w1e={click:e=>e instanceof MouseEvent};var x1e=te({name:"ElOverlay",props:y1e,emits:w1e,setup(e,{slots:t,emit:o}){const l=_e("overlay"),r=c=>{o("click",c)},{onClick:n,onMousedown:a,onMouseup:i}=Ep(e.customMaskEvent?void 0:r);return()=>e.mask?K("div",{class:[l.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:n,onMousedown:a,onMouseup:i},[ge(t,"default")],Xo.STYLE|Xo.CLASS|Xo.PROPS,["onClick","onMouseup","onMousedown"]):Fe("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ge(t,"default")])}});const Zp=x1e,S8=Ae({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:Mt},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),k1e={close:()=>!0},C1e=["aria-label"],$1e=["id"],S1e=te({name:"ElDialogContent"}),z1e=te({...S1e,props:S8,emits:k1e,setup(e){const t=e,{t:o}=yt(),{Close:l}=fm,{dialogRef:r,headerRef:n,bodyId:a,ns:i,style:c}=Re(wm),{focusTrapRef:u}=Re(jp),d=xu(u,r),p=S(()=>t.draggable);return Vm(r,n,p),(f,h)=>(y(),$("div",{ref:s(d),class:T([s(i).b(),s(i).is("fullscreen",f.fullscreen),s(i).is("draggable",s(p)),s(i).is("align-center",f.alignCenter),{[s(i).m("center")]:f.center},f.customClass]),style:Be(s(c)),tabindex:"-1"},[C("header",{ref_key:"headerRef",ref:n,class:T(s(i).e("header"))},[ge(f.$slots,"header",{},()=>[C("span",{role:"heading",class:T(s(i).e("title"))},Ce(f.title),3)]),f.showClose?(y(),$("button",{key:0,"aria-label":s(o)("el.dialog.close"),class:T(s(i).e("headerbtn")),type:"button",onClick:h[0]||(h[0]=v=>f.$emit("close"))},[K(s(De),{class:T(s(i).e("close"))},{default:Z(()=>[(y(),ue(pt(f.closeIcon||s(l))))]),_:1},8,["class"])],10,C1e)):ae("v-if",!0)],2),C("div",{id:s(a),class:T(s(i).e("body"))},[ge(f.$slots,"default")],10,$1e),f.$slots.footer?(y(),$("footer",{key:0,class:T(s(i).e("footer"))},[ge(f.$slots,"footer")],2)):ae("v-if",!0)],6))}});var E1e=Te(z1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const z8=Ae({...S8,appendToBody:{type:Boolean,default:!1},beforeClose:{type:de(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),E8={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[nt]:e=>Jt(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},M8=(e,t)=>{const l=Qe().emit,{nextZIndex:r}=gr();let n="";const a=wl(),i=wl(),c=V(!1),u=V(!1),d=V(!1),p=V(e.zIndex||r());let f,h;const v=mr("namespace",zu),m=S(()=>{const B={},F=`--${v.value}-dialog`;return e.fullscreen||(e.top&&(B[`${F}-margin-top`]=e.top),e.width&&(B[`${F}-width`]=Yt(e.width))),B}),g=S(()=>e.alignCenter?{display:"flex"}:{});function _(){l("opened")}function w(){l("closed"),l(nt,!1),e.destroyOnClose&&(d.value=!1)}function b(){l("close")}function x(){h==null||h(),f==null||f(),e.openDelay&&e.openDelay>0?{stop:f}=Sn(()=>E(),e.openDelay):E()}function k(){f==null||f(),h==null||h(),e.closeDelay&&e.closeDelay>0?{stop:h}=Sn(()=>A(),e.closeDelay):A()}function z(){function B(F){F||(u.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(B):k()}function M(){e.closeOnClickModal&&z()}function E(){!gt||(c.value=!0)}function A(){c.value=!1}function O(){l("openAutoFocus")}function D(){l("closeAutoFocus")}function I(B){var F;((F=B.detail)==null?void 0:F.focusReason)==="pointer"&&B.preventDefault()}e.lockScroll&&Om(c);function N(){e.closeOnPressEscape&&z()}return ve(()=>e.modelValue,B=>{B?(u.value=!1,x(),d.value=!0,p.value=e.zIndex?p.value++:r(),Ne(()=>{l("open"),t.value&&(t.value.scrollTop=0)})):c.value&&k()}),ve(()=>e.fullscreen,B=>{!t.value||(B?(n=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=n)}),Ze(()=>{e.modelValue&&(c.value=!0,d.value=!0,x())}),{afterEnter:_,afterLeave:w,beforeLeave:b,handleClose:z,onModalClick:M,close:k,doClose:A,onOpenAutoFocus:O,onCloseAutoFocus:D,onCloseRequested:N,onFocusoutPrevented:I,titleId:a,bodyId:i,closed:u,style:m,overlayDialogStyle:g,rendered:d,visible:c,zIndex:p}},M1e=["aria-label","aria-labelledby","aria-describedby"],T1e=te({name:"ElDialog",inheritAttrs:!1}),A1e=te({...T1e,props:z8,emits:E8,setup(e,{expose:t}){const o=e,l=ao();jr({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},S(()=>!!l.title)),jr({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},S(()=>!!o.customClass));const r=_e("dialog"),n=V(),a=V(),i=V(),{visible:c,titleId:u,bodyId:d,style:p,overlayDialogStyle:f,rendered:h,zIndex:v,afterEnter:m,afterLeave:g,beforeLeave:_,handleClose:w,onModalClick:b,onOpenAutoFocus:x,onCloseAutoFocus:k,onCloseRequested:z,onFocusoutPrevented:M}=M8(o,n);st(wm,{dialogRef:n,headerRef:a,bodyId:d,ns:r,rendered:h,style:p});const E=Ep(b),A=S(()=>o.draggable&&!o.fullscreen);return t({visible:c,dialogContentRef:i}),(O,D)=>(y(),ue(cs,{to:"body",disabled:!O.appendToBody},[K(Kt,{name:"dialog-fade",onAfterEnter:s(m),onAfterLeave:s(g),onBeforeLeave:s(_),persisted:""},{default:Z(()=>[Xe(K(s(Zp),{"custom-mask-event":"",mask:O.modal,"overlay-class":O.modalClass,"z-index":s(v)},{default:Z(()=>[C("div",{role:"dialog","aria-modal":"true","aria-label":O.title||void 0,"aria-labelledby":O.title?void 0:s(u),"aria-describedby":s(d),class:T(`${s(r).namespace.value}-overlay-dialog`),style:Be(s(f)),onClick:D[0]||(D[0]=(...I)=>s(E).onClick&&s(E).onClick(...I)),onMousedown:D[1]||(D[1]=(...I)=>s(E).onMousedown&&s(E).onMousedown(...I)),onMouseup:D[2]||(D[2]=(...I)=>s(E).onMouseup&&s(E).onMouseup(...I))},[K(s(Ou),{loop:"",trapped:s(c),"focus-start-el":"container",onFocusAfterTrapped:s(x),onFocusAfterReleased:s(k),onFocusoutPrevented:s(M),onReleaseRequested:s(z)},{default:Z(()=>[s(h)?(y(),ue(E1e,ht({key:0,ref_key:"dialogContentRef",ref:i},O.$attrs,{"custom-class":O.customClass,center:O.center,"align-center":O.alignCenter,"close-icon":O.closeIcon,draggable:s(A),fullscreen:O.fullscreen,"show-close":O.showClose,title:O.title,onClose:s(w)}),Br({header:Z(()=>[O.$slots.title?ge(O.$slots,"title",{key:1}):ge(O.$slots,"header",{key:0,close:s(w),titleId:s(u),titleClass:s(r).e("title")})]),default:Z(()=>[ge(O.$slots,"default")]),_:2},[O.$slots.footer?{name:"footer",fn:Z(()=>[ge(O.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):ae("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,M1e)]),_:3},8,["mask","overlay-class","z-index"]),[[_t,s(c)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var V1e=Te(A1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const O1e=at(V1e),P1e=Ae({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:de(String),default:"solid"}}),L1e=te({name:"ElDivider"}),I1e=te({...L1e,props:P1e,setup(e){const t=e,o=_e("divider"),l=S(()=>o.cssVar({"border-style":t.borderStyle}));return(r,n)=>(y(),$("div",{class:T([s(o).b(),s(o).m(r.direction)]),style:Be(s(l)),role:"separator"},[r.$slots.default&&r.direction!=="vertical"?(y(),$("div",{key:0,class:T([s(o).e("text"),s(o).is(r.contentPosition)])},[ge(r.$slots,"default")],2)):ae("v-if",!0)],6))}});var R1e=Te(I1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const T8=at(R1e),H1e=Ae({...z8,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),N1e=E8,B1e=te({name:"ElDrawer",components:{ElOverlay:Zp,ElFocusTrap:Ou,ElIcon:De,Close:nl},props:H1e,emits:N1e,setup(e,{slots:t}){jr({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},S(()=>!!t.title));const o=V(),l=V(),r=_e("drawer"),{t:n}=yt(),a=S(()=>e.direction==="rtl"||e.direction==="ltr"),i=S(()=>Yt(e.size));return{...M8(e,o),drawerRef:o,focusStartRef:l,isHorizontal:a,drawerSize:i,ns:r,t:n}}}),D1e=["aria-label","aria-labelledby","aria-describedby"],F1e=["id"],j1e=["aria-label"],K1e=["id"];function W1e(e,t,o,l,r,n){const a=Oe("close"),i=Oe("el-icon"),c=Oe("el-focus-trap"),u=Oe("el-overlay");return y(),ue(cs,{to:"body",disabled:!e.appendToBody},[K(Kt,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:Z(()=>[Xe(K(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:Z(()=>[K(c,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Z(()=>[C("div",{ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId,class:T([e.ns.b(),e.direction,e.visible&&"open",e.customClass]),style:Be(e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize),role:"dialog",onClick:t[1]||(t[1]=Ue(()=>{},["stop"]))},[C("span",{ref:"focusStartRef",class:T(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(y(),$("header",{key:0,class:T(e.ns.e("header"))},[e.$slots.title?ge(e.$slots,"title",{key:1},()=>[ae(" DEPRECATED SLOT ")]):ge(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?ae("v-if",!0):(y(),$("span",{key:0,id:e.titleId,role:"heading",class:T(e.ns.e("title"))},Ce(e.title),11,F1e))]),e.showClose?(y(),$("button",{key:2,"aria-label":e.t("el.drawer.close"),class:T(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...d)=>e.handleClose&&e.handleClose(...d))},[K(i,{class:T(e.ns.e("close"))},{default:Z(()=>[K(a)]),_:1},8,["class"])],10,j1e)):ae("v-if",!0)],2)):ae("v-if",!0),e.rendered?(y(),$("div",{key:1,id:e.bodyId,class:T(e.ns.e("body"))},[ge(e.$slots,"default")],10,K1e)):ae("v-if",!0),e.$slots.footer?(y(),$("div",{key:2,class:T(e.ns.e("footer"))},[ge(e.$slots,"footer")],2)):ae("v-if",!0)],14,D1e)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[_t,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var q1e=Te(B1e,[["render",W1e],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const U1e=at(q1e),Y1e=te({inheritAttrs:!1});function G1e(e,t,o,l,r,n){return ge(e.$slots,"default")}var X1e=Te(Y1e,[["render",G1e],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const J1e=te({name:"ElCollectionItem",inheritAttrs:!1});function Z1e(e,t,o,l,r,n){return ge(e.$slots,"default")}var Q1e=Te(J1e,[["render",Z1e],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const A8="data-el-collection-item",V8=e=>{const t=`El${e}Collection`,o=`${t}Item`,l=Symbol(t),r=Symbol(o),n={...X1e,name:t,setup(){const i=V(null),c=new Map;st(l,{itemMap:c,getItems:()=>{const d=s(i);if(!d)return[];const p=Array.from(d.querySelectorAll(`[${A8}]`));return[...c.values()].sort((h,v)=>p.indexOf(h.ref)-p.indexOf(v.ref))},collectionRef:i})}},a={...Q1e,name:o,setup(i,{attrs:c}){const u=V(null),d=Re(l,void 0);st(r,{collectionItemRef:u}),Ze(()=>{const p=s(u);p&&d.itemMap.set(p,{ref:p,...c})}),It(()=>{const p=s(u);d.itemMap.delete(p)})}};return{COLLECTION_INJECTION_KEY:l,COLLECTION_ITEM_INJECTION_KEY:r,ElCollection:n,ElCollectionItem:a}},ehe=Ae({style:{type:de([String,Array,Object])},currentTabId:{type:de(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:de(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:the,ElCollectionItem:ohe,COLLECTION_INJECTION_KEY:Qp,COLLECTION_ITEM_INJECTION_KEY:lhe}=V8("RovingFocusGroup"),ef=Symbol("elRovingFocusGroup"),O8=Symbol("elRovingFocusGroupItem"),rhe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},nhe=(e,t)=>{if(t!=="rtl")return e;switch(e){case je.right:return je.left;case je.left:return je.right;default:return e}},ahe=(e,t,o)=>{const l=nhe(e.key,o);if(!(t==="vertical"&&[je.left,je.right].includes(l))&&!(t==="horizontal"&&[je.up,je.down].includes(l)))return rhe[l]},ihe=(e,t)=>e.map((o,l)=>e[(l+t)%e.length]),tf=e=>{const{activeElement:t}=document;for(const o of e)if(o===t||(o.focus(),t!==document.activeElement))return},h3="currentTabIdChange",v3="rovingFocusGroup.entryFocus",she={bubbles:!1,cancelable:!0},che=te({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:ehe,emits:[h3,"entryFocus"],setup(e,{emit:t}){var o;const l=V((o=e.currentTabId||e.defaultCurrentTabId)!=null?o:null),r=V(!1),n=V(!1),a=V(null),{getItems:i}=Re(Qp,void 0),c=S(()=>[{outline:"none"},e.style]),u=m=>{t(h3,m)},d=()=>{r.value=!0},p=Nt(m=>{var g;(g=e.onMousedown)==null||g.call(e,m)},()=>{n.value=!0}),f=Nt(m=>{var g;(g=e.onFocus)==null||g.call(e,m)},m=>{const g=!s(n),{target:_,currentTarget:w}=m;if(_===w&&g&&!s(r)){const b=new Event(v3,she);if(w==null||w.dispatchEvent(b),!b.defaultPrevented){const x=i().filter(A=>A.focusable),k=x.find(A=>A.active),z=x.find(A=>A.id===s(l)),E=[k,z,...x].filter(Boolean).map(A=>A.ref);tf(E)}}n.value=!1}),h=Nt(m=>{var g;(g=e.onBlur)==null||g.call(e,m)},()=>{r.value=!1}),v=(...m)=>{t("entryFocus",...m)};st(ef,{currentTabbedId:ss(l),loop:Rt(e,"loop"),tabIndex:S(()=>s(r)?-1:0),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:c,orientation:Rt(e,"orientation"),dir:Rt(e,"dir"),onItemFocus:u,onItemShiftTab:d,onBlur:h,onFocus:f,onMousedown:p}),ve(()=>e.currentTabId,m=>{l.value=m!=null?m:null}),At(a,v3,v)}});function uhe(e,t,o,l,r,n){return ge(e.$slots,"default")}var dhe=Te(che,[["render",uhe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const phe=te({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:the,ElRovingFocusGroupImpl:dhe}});function fhe(e,t,o,l,r,n){const a=Oe("el-roving-focus-group-impl"),i=Oe("el-focus-group-collection");return y(),ue(i,null,{default:Z(()=>[K(a,vl(cu(e.$attrs)),{default:Z(()=>[ge(e.$slots,"default")]),_:3},16)]),_:3})}var hhe=Te(phe,[["render",fhe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const vhe=te({components:{ElRovingFocusCollectionItem:ohe},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:o,loop:l,onItemFocus:r,onItemShiftTab:n}=Re(ef,void 0),{getItems:a}=Re(Qp,void 0),i=wl(),c=V(null),u=Nt(h=>{t("mousedown",h)},h=>{e.focusable?r(s(i)):h.preventDefault()}),d=Nt(h=>{t("focus",h)},()=>{r(s(i))}),p=Nt(h=>{t("keydown",h)},h=>{const{key:v,shiftKey:m,target:g,currentTarget:_}=h;if(v===je.tab&&m){n();return}if(g!==_)return;const w=ahe(h);if(w){h.preventDefault();let x=a().filter(k=>k.focusable).map(k=>k.ref);switch(w){case"last":{x.reverse();break}case"prev":case"next":{w==="prev"&&x.reverse();const k=x.indexOf(_);x=l.value?ihe(x,k+1):x.slice(k+1);break}}Ne(()=>{tf(x)})}}),f=S(()=>o.value===s(i));return st(O8,{rovingFocusGroupItemRef:c,tabIndex:S(()=>s(f)?0:-1),handleMousedown:u,handleFocus:d,handleKeydown:p}),{id:i,handleKeydown:p,handleFocus:d,handleMousedown:u}}});function mhe(e,t,o,l,r,n){const a=Oe("el-roving-focus-collection-item");return y(),ue(a,{id:e.id,focusable:e.focusable,active:e.active},{default:Z(()=>[ge(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var ghe=Te(vhe,[["render",mhe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const dc=Ae({trigger:Ui.trigger,effect:{...to.effect,default:"light"},type:{type:de(String)},placement:{type:de(String),default:"bottom"},popperOptions:{type:de(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:de([Number,String]),default:0},maxHeight:{type:de([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:de(Object)},teleported:to.teleported}),P8=Ae({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Mt}}),bhe=Ae({onKeydown:{type:de(Function)}}),_he=[je.down,je.pageDown,je.home],L8=[je.up,je.pageUp,je.end],yhe=[..._he,...L8],{ElCollection:whe,ElCollectionItem:xhe,COLLECTION_INJECTION_KEY:khe,COLLECTION_ITEM_INJECTION_KEY:Che}=V8("Dropdown"),Iu=Symbol("elDropdown"),{ButtonGroup:$he}=po,She=te({name:"ElDropdown",components:{ElButton:po,ElButtonGroup:$he,ElScrollbar:_r,ElDropdownCollection:whe,ElTooltip:Ro,ElRovingFocusGroup:hhe,ElOnlyChild:eg,ElIcon:De,ArrowDown:fr},props:dc,emits:["visible-change","click","command"],setup(e,{emit:t}){const o=Qe(),l=_e("dropdown"),{t:r}=yt(),n=V(),a=V(),i=V(null),c=V(null),u=V(null),d=V(null),p=V(!1),f=[je.enter,je.space,je.down],h=S(()=>({maxHeight:Yt(e.maxHeight)})),v=S(()=>[l.m(x.value)]),m=wl().value,g=S(()=>e.id||m);function _(){w()}function w(){var F;(F=i.value)==null||F.onClose()}function b(){var F;(F=i.value)==null||F.onOpen()}const x=Xt();function k(...F){t("command",...F)}function z(){}function M(){const F=s(c);F==null||F.focus(),d.value=null}function E(F){d.value=F}function A(F){p.value||(F.preventDefault(),F.stopImmediatePropagation())}function O(){t("visible-change",!0)}function D(F){(F==null?void 0:F.type)==="keydown"&&c.value.focus()}function I(){t("visible-change",!1)}return st(Iu,{contentRef:c,role:S(()=>e.role),triggerId:g,isUsingKeyboard:p,onItemEnter:z,onItemLeave:M}),st("elDropdown",{instance:o,dropdownSize:x,handleClick:_,commandHandler:k,trigger:Rt(e,"trigger"),hideOnClick:Rt(e,"hideOnClick")}),{t:r,ns:l,scrollbar:u,wrapStyle:h,dropdownTriggerKls:v,dropdownSize:x,triggerId:g,triggerKeys:f,currentTabId:d,handleCurrentTabIdChange:E,handlerMainButtonClick:F=>{t("click",F)},handleEntryFocus:A,handleClose:w,handleOpen:b,handleBeforeShowTooltip:O,handleShowTooltip:D,handleBeforeHideTooltip:I,onFocusAfterTrapped:F=>{var H,L;F.preventDefault(),(L=(H=c.value)==null?void 0:H.focus)==null||L.call(H,{preventScroll:!0})},popperRef:i,contentRef:c,triggeringElementRef:n,referenceElementRef:a}}});function zhe(e,t,o,l,r,n){var a;const i=Oe("el-dropdown-collection"),c=Oe("el-roving-focus-group"),u=Oe("el-scrollbar"),d=Oe("el-only-child"),p=Oe("el-tooltip"),f=Oe("el-button"),h=Oe("arrow-down"),v=Oe("el-icon"),m=Oe("el-button-group");return y(),$("div",{class:T([e.ns.b(),e.ns.is("disabled",e.disabled)])},[K(p,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(a=e.referenceElementRef)==null?void 0:a.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Br({content:Z(()=>[K(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:Z(()=>[K(c,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:Z(()=>[K(i,null,{default:Z(()=>[ge(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:Z(()=>[K(d,{id:e.triggerId,role:"button",tabindex:e.tabindex},{default:Z(()=>[ge(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(y(),ue(m,{key:0},{default:Z(()=>[K(f,ht({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:Z(()=>[ge(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),K(f,ht({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:Z(()=>[K(v,{class:T(e.ns.e("icon"))},{default:Z(()=>[K(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):ae("v-if",!0)],2)}var Ehe=Te(She,[["render",zhe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const Mhe=te({name:"DropdownItemImpl",components:{ElIcon:De},props:P8,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const o=_e("dropdown"),{role:l}=Re(Iu,void 0),{collectionItemRef:r}=Re(Che,void 0),{collectionItemRef:n}=Re(lhe,void 0),{rovingFocusGroupItemRef:a,tabIndex:i,handleFocus:c,handleKeydown:u,handleMousedown:d}=Re(O8,void 0),p=xu(r,n,a),f=S(()=>l.value==="menu"?"menuitem":l.value==="navigation"?"link":"button"),h=Nt(v=>{const{code:m}=v;if(m===je.enter||m===je.space)return v.preventDefault(),v.stopImmediatePropagation(),t("clickimpl",v),!0},u);return{ns:o,itemRef:p,dataset:{[A8]:""},role:f,tabIndex:i,handleFocus:c,handleKeydown:h,handleMousedown:d}}}),The=["aria-disabled","tabindex","role"];function Ahe(e,t,o,l,r,n){const a=Oe("el-icon");return y(),$(Pe,null,[e.divided?(y(),$("li",ht({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):ae("v-if",!0),C("li",ht({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=i=>e.$emit("clickimpl",i)),onFocus:t[1]||(t[1]=(...i)=>e.handleFocus&&e.handleFocus(...i)),onKeydown:t[2]||(t[2]=(...i)=>e.handleKeydown&&e.handleKeydown(...i)),onMousedown:t[3]||(t[3]=(...i)=>e.handleMousedown&&e.handleMousedown(...i)),onPointermove:t[4]||(t[4]=i=>e.$emit("pointermove",i)),onPointerleave:t[5]||(t[5]=i=>e.$emit("pointerleave",i))}),[e.icon?(y(),ue(a,{key:0},{default:Z(()=>[(y(),ue(pt(e.icon)))]),_:1})):ae("v-if",!0),ge(e.$slots,"default")],16,The)],64)}var Vhe=Te(Mhe,[["render",Ahe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const I8=()=>{const e=Re("elDropdown",{}),t=S(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},Ohe=te({name:"ElDropdownItem",components:{ElDropdownCollectionItem:xhe,ElRovingFocusItem:ghe,ElDropdownItemImpl:Vhe},inheritAttrs:!1,props:P8,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:o}){const{elDropdown:l}=I8(),r=Qe(),n=V(null),a=S(()=>{var h,v;return(v=(h=s(n))==null?void 0:h.textContent)!=null?v:""}),{onItemEnter:i,onItemLeave:c}=Re(Iu,void 0),u=Nt(h=>(t("pointermove",h),h.defaultPrevented),th(h=>{var v;e.disabled?c(h):(i(h),h.defaultPrevented||(v=h.currentTarget)==null||v.focus())})),d=Nt(h=>(t("pointerleave",h),h.defaultPrevented),th(h=>{c(h)})),p=Nt(h=>{if(!e.disabled)return t("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var v,m,g;if(e.disabled){h.stopImmediatePropagation();return}(v=l==null?void 0:l.hideOnClick)!=null&&v.value&&((m=l.handleClick)==null||m.call(l)),(g=l.commandHandler)==null||g.call(l,e.command,r,h)}),f=S(()=>({...e,...o}));return{handleClick:p,handlePointerMove:u,handlePointerLeave:d,textContent:a,propsAndAttrs:f}}});function Phe(e,t,o,l,r,n){var a;const i=Oe("el-dropdown-item-impl"),c=Oe("el-roving-focus-item"),u=Oe("el-dropdown-collection-item");return y(),ue(u,{disabled:e.disabled,"text-value":(a=e.textValue)!=null?a:e.textContent},{default:Z(()=>[K(c,{focusable:!e.disabled},{default:Z(()=>[K(i,ht(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:Z(()=>[ge(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var R8=Te(Ohe,[["render",Phe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const Lhe=te({name:"ElDropdownMenu",props:bhe,setup(e){const t=_e("dropdown"),{_elDropdownSize:o}=I8(),l=o.value,{focusTrapRef:r,onKeydown:n}=Re(jp,void 0),{contentRef:a,role:i,triggerId:c}=Re(Iu,void 0),{collectionRef:u,getItems:d}=Re(khe,void 0),{rovingFocusGroupRef:p,rovingFocusGroupRootStyle:f,tabIndex:h,onBlur:v,onFocus:m,onMousedown:g}=Re(ef,void 0),{collectionRef:_}=Re(Qp,void 0),w=S(()=>[t.b("menu"),t.bm("menu",l==null?void 0:l.value)]),b=xu(a,u,r,p,_),x=Nt(z=>{var M;(M=e.onKeydown)==null||M.call(e,z)},z=>{const{currentTarget:M,code:E,target:A}=z;if(M.contains(A),je.tab===E&&z.stopImmediatePropagation(),z.preventDefault(),A!==s(a)||!yhe.includes(E))return;const D=d().filter(I=>!I.disabled).map(I=>I.ref);L8.includes(E)&&D.reverse(),tf(D)});return{size:l,rovingFocusGroupRootStyle:f,tabIndex:h,dropdownKls:w,role:i,triggerId:c,dropdownListWrapperRef:b,handleKeydown:z=>{x(z),n(z)},onBlur:v,onFocus:m,onMousedown:g}}}),Ihe=["role","aria-labelledby"];function Rhe(e,t,o,l,r,n){return y(),$("ul",{ref:e.dropdownListWrapperRef,class:T(e.dropdownKls),style:Be(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...a)=>e.onBlur&&e.onBlur(...a)),onFocus:t[1]||(t[1]=(...a)=>e.onFocus&&e.onFocus(...a)),onKeydown:t[2]||(t[2]=(...a)=>e.handleKeydown&&e.handleKeydown(...a)),onMousedown:t[3]||(t[3]=(...a)=>e.onMousedown&&e.onMousedown(...a))},[ge(e.$slots,"default")],46,Ihe)}var H8=Te(Lhe,[["render",Rhe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const Hhe=at(Ehe,{DropdownItem:R8,DropdownMenu:H8}),Nhe=Bt(R8),Bhe=Bt(H8);let Dhe=0;const Fhe=te({name:"ImgEmpty",setup(){return{ns:_e("empty"),id:++Dhe}}}),jhe={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Khe=["id"],Whe=["stop-color"],qhe=["stop-color"],Uhe=["id"],Yhe=["stop-color"],Ghe=["stop-color"],Xhe=["id"],Jhe={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Zhe={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},Qhe={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},e3e=["fill"],t3e=["fill"],o3e={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},l3e=["fill"],r3e=["fill"],n3e=["fill"],a3e=["fill"],i3e=["fill"],s3e={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},c3e=["fill","xlink:href"],u3e=["fill","mask"],d3e=["fill"];function p3e(e,t,o,l,r,n){return y(),$("svg",jhe,[C("defs",null,[C("linearGradient",{id:`linearGradient-1-${e.id}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[C("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Whe),C("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,qhe)],8,Khe),C("linearGradient",{id:`linearGradient-2-${e.id}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[C("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Yhe),C("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,Ghe)],8,Uhe),C("rect",{id:`path-3-${e.id}`,x:"0",y:"0",width:"17",height:"36"},null,8,Xhe)]),C("g",Jhe,[C("g",Zhe,[C("g",Qhe,[C("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${e.ns.cssVarBlockName("fill-color-3")})`},null,8,e3e),C("polygon",{id:"Rectangle-Copy-14",fill:`var(${e.ns.cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,t3e),C("g",o3e,[C("polygon",{id:"Rectangle-Copy-10",fill:`var(${e.ns.cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,l3e),C("polygon",{id:"Rectangle-Copy-11",fill:`var(${e.ns.cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,r3e),C("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${e.id})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,n3e),C("polygon",{id:"Rectangle-Copy-13",fill:`var(${e.ns.cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,a3e)]),C("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${e.id})`,x:"13",y:"45",width:"40",height:"36"},null,8,i3e),C("g",s3e,[C("use",{id:"Mask",fill:`var(${e.ns.cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${e.id}`},null,8,c3e),C("polygon",{id:"Rectangle-Copy",fill:`var(${e.ns.cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${e.id})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,u3e)]),C("polygon",{id:"Rectangle-Copy-18",fill:`var(${e.ns.cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,d3e)])])])])}var f3e=Te(Fhe,[["render",p3e],["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const h3e={image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},v3e=["src"],m3e={key:1},g3e=te({name:"ElEmpty"}),b3e=te({...g3e,props:h3e,setup(e){const t=e,{t:o}=yt(),l=_e("empty"),r=S(()=>t.description||o("el.table.emptyText")),n=S(()=>({width:t.imageSize?`${t.imageSize}px`:""}));return(a,i)=>(y(),$("div",{class:T(s(l).b())},[C("div",{class:T(s(l).e("image")),style:Be(s(n))},[a.image?(y(),$("img",{key:0,src:a.image,ondragstart:"return false"},null,8,v3e)):ge(a.$slots,"image",{key:1},()=>[K(f3e)])],6),C("div",{class:T(s(l).e("description"))},[a.$slots.description?ge(a.$slots,"description",{key:0}):(y(),$("p",m3e,Ce(s(r)),1))],2),a.$slots.default?(y(),$("div",{key:0,class:T(s(l).e("bottom"))},[ge(a.$slots,"default")],2)):ae("v-if",!0)],2))}});var _3e=Te(b3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const N8=at(_3e),y3e=Ae({model:Object,rules:{type:de(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:{type:String,values:Ur},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),w3e={validate:(e,t,o)=>(Ie(e)||Ge(e))&&Jt(t)&&Ge(o)};function x3e(){const e=V([]),t=S(()=>{if(!e.value.length)return"0";const n=Math.max(...e.value);return n?`${n}px`:""});function o(n){const a=e.value.indexOf(n);return a===-1&&t.value,a}function l(n,a){if(n&&a){const i=o(a);e.value.splice(i,1,n)}else n&&e.value.push(n)}function r(n){const a=o(n);a>-1&&e.value.splice(a,1)}return{autoLabelWidth:t,registerLabelWidth:l,deregisterLabelWidth:r}}const Ks=(e,t)=>{const o=_a(t);return o.length>0?e.filter(l=>l.prop&&o.includes(l.prop)):e},k3e="ElForm",C3e=te({name:k3e}),$3e=te({...C3e,props:y3e,emits:w3e,setup(e,{expose:t,emit:o}){const l=e,r=[],n=Xt(),a=_e("form"),i=S(()=>{const{labelPosition:w,inline:b}=l;return[a.b(),a.m(n.value||"default"),{[a.m(`label-${w}`)]:w,[a.m("inline")]:b}]}),c=w=>{r.push(w)},u=w=>{w.prop&&r.splice(r.indexOf(w),1)},d=(w=[])=>{!l.model||Ks(r,w).forEach(b=>b.resetField())},p=(w=[])=>{Ks(r,w).forEach(b=>b.clearValidate())},f=S(()=>!!l.model),h=w=>{if(r.length===0)return[];const b=Ks(r,w);return b.length?b:[]},v=async w=>g(void 0,w),m=async(w=[])=>{if(!f.value)return!1;const b=h(w);if(b.length===0)return!0;let x={};for(const k of b)try{await k.validate("")}catch(z){x={...x,...z}}return Object.keys(x).length===0?!0:Promise.reject(x)},g=async(w=[],b)=>{const x=!Ye(b);try{const k=await m(w);return k===!0&&(b==null||b(k)),k}catch(k){if(k instanceof Error)throw k;const z=k;return l.scrollToError&&_(Object.keys(z)[0]),b==null||b(!1,z),x&&Promise.reject(z)}},_=w=>{var b;const x=Ks(r,w)[0];x&&((b=x.$el)==null||b.scrollIntoView())};return ve(()=>l.rules,()=>{l.validateOnRuleChange&&v().catch(w=>void 0)},{deep:!0}),st(On,wt({...Gt(l),emit:o,resetFields:d,clearValidate:p,validateField:g,addField:c,removeField:u,...x3e()})),t({validate:v,validateField:g,resetFields:d,clearValidate:p,scrollToField:_}),(w,b)=>(y(),$("form",{class:T(s(i))},[ge(w.$slots,"default")],2))}});var S3e=Te($3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pc(e,t,o){return E3e()?pc=Reflect.construct.bind():pc=function(r,n,a){var i=[null];i.push.apply(i,n);var c=Function.bind.apply(r,i),u=new c;return a&&Gi(u,a.prototype),u},pc.apply(null,arguments)}function M3e(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function K0(e){var t=typeof Map=="function"?new Map:void 0;return K0=function(l){if(l===null||!M3e(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(l))return t.get(l);t.set(l,r)}function r(){return pc(l,arguments,j0(this).constructor)}return r.prototype=Object.create(l.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Gi(r,l)},K0(e)}var T3e=/%[sdj%]/g,A3e=function(){};typeof process<"u"&&process.env;function W0(e){if(!e||!e.length)return null;var t={};return e.forEach(function(o){var l=o.field;t[l]=t[l]||[],t[l].push(o)}),t}function Fo(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),l=1;l=n)return i;switch(i){case"%s":return String(o[r++]);case"%d":return Number(o[r++]);case"%j":try{return JSON.stringify(o[r++])}catch{return"[Circular]"}break;default:return i}});return a}return e}function V3e(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Qt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||V3e(t)&&typeof e=="string"&&!e)}function O3e(e,t,o){var l=[],r=0,n=e.length;function a(i){l.push.apply(l,i||[]),r++,r===n&&o(l)}e.forEach(function(i){t(i,a)})}function m3(e,t,o){var l=0,r=e.length;function n(a){if(a&&a.length){o(a);return}var i=l;l=l+1,i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ci={integer:function(t){return ci.number(t)&&parseInt(t,10)===t},float:function(t){return ci.number(t)&&!ci.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ci.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(y3.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(N3e())},hex:function(t){return typeof t=="string"&&!!t.match(y3.hex)}},B3e=function(t,o,l,r,n){if(t.required&&o===void 0){B8(t,o,l,r,n);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=t.type;a.indexOf(i)>-1?ci[i](o)||r.push(Fo(n.messages.types[i],t.fullField,t.type)):i&&typeof o!==t.type&&r.push(Fo(n.messages.types[i],t.fullField,t.type))},D3e=function(t,o,l,r,n){var a=typeof t.len=="number",i=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=o,p=null,f=typeof o=="number",h=typeof o=="string",v=Array.isArray(o);if(f?p="number":h?p="string":v&&(p="array"),!p)return!1;v&&(d=o.length),h&&(d=o.replace(u,"_").length),a?d!==t.len&&r.push(Fo(n.messages[p].len,t.fullField,t.len)):i&&!c&&dt.max?r.push(Fo(n.messages[p].max,t.fullField,t.max)):i&&c&&(dt.max)&&r.push(Fo(n.messages[p].range,t.fullField,t.min,t.max))},Rn="enum",F3e=function(t,o,l,r,n){t[Rn]=Array.isArray(t[Rn])?t[Rn]:[],t[Rn].indexOf(o)===-1&&r.push(Fo(n.messages[Rn],t.fullField,t[Rn].join(", ")))},j3e=function(t,o,l,r,n){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(o)||r.push(Fo(n.messages.pattern.mismatch,t.fullField,o,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(o)||r.push(Fo(n.messages.pattern.mismatch,t.fullField,o,t.pattern))}}},St={required:B8,whitespace:H3e,type:B3e,range:D3e,enum:F3e,pattern:j3e},K3e=function(t,o,l,r,n){var a=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(Qt(o,"string")&&!t.required)return l();St.required(t,o,r,a,n,"string"),Qt(o,"string")||(St.type(t,o,r,a,n),St.range(t,o,r,a,n),St.pattern(t,o,r,a,n),t.whitespace===!0&&St.whitespace(t,o,r,a,n))}l(a)},W3e=function(t,o,l,r,n){var a=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(Qt(o)&&!t.required)return l();St.required(t,o,r,a,n),o!==void 0&&St.type(t,o,r,a,n)}l(a)},q3e=function(t,o,l,r,n){var a=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(o===""&&(o=void 0),Qt(o)&&!t.required)return l();St.required(t,o,r,a,n),o!==void 0&&(St.type(t,o,r,a,n),St.range(t,o,r,a,n))}l(a)},U3e=function(t,o,l,r,n){var a=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(Qt(o)&&!t.required)return l();St.required(t,o,r,a,n),o!==void 0&&St.type(t,o,r,a,n)}l(a)},Y3e=function(t,o,l,r,n){var a=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(Qt(o)&&!t.required)return l();St.required(t,o,r,a,n),Qt(o)||St.type(t,o,r,a,n)}l(a)},G3e=function(t,o,l,r,n){var a=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(Qt(o)&&!t.required)return l();St.required(t,o,r,a,n),o!==void 0&&(St.type(t,o,r,a,n),St.range(t,o,r,a,n))}l(a)},X3e=function(t,o,l,r,n){var a=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(Qt(o)&&!t.required)return l();St.required(t,o,r,a,n),o!==void 0&&(St.type(t,o,r,a,n),St.range(t,o,r,a,n))}l(a)},J3e=function(t,o,l,r,n){var a=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(o==null&&!t.required)return l();St.required(t,o,r,a,n,"array"),o!=null&&(St.type(t,o,r,a,n),St.range(t,o,r,a,n))}l(a)},Z3e=function(t,o,l,r,n){var a=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(Qt(o)&&!t.required)return l();St.required(t,o,r,a,n),o!==void 0&&St.type(t,o,r,a,n)}l(a)},Q3e="enum",eve=function(t,o,l,r,n){var a=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(Qt(o)&&!t.required)return l();St.required(t,o,r,a,n),o!==void 0&&St[Q3e](t,o,r,a,n)}l(a)},tve=function(t,o,l,r,n){var a=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(Qt(o,"string")&&!t.required)return l();St.required(t,o,r,a,n),Qt(o,"string")||St.pattern(t,o,r,a,n)}l(a)},ove=function(t,o,l,r,n){var a=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(Qt(o,"date")&&!t.required)return l();if(St.required(t,o,r,a,n),!Qt(o,"date")){var c;o instanceof Date?c=o:c=new Date(o),St.type(t,c,r,a,n),c&&St.range(t,c.getTime(),r,a,n)}}l(a)},lve=function(t,o,l,r,n){var a=[],i=Array.isArray(o)?"array":typeof o;St.required(t,o,r,a,n,i),l(a)},bd=function(t,o,l,r,n){var a=t.type,i=[],c=t.required||!t.required&&r.hasOwnProperty(t.field);if(c){if(Qt(o,a)&&!t.required)return l();St.required(t,o,r,i,n,a),Qt(o,a)||St.type(t,o,r,i,n)}l(i)},rve=function(t,o,l,r,n){var a=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(Qt(o)&&!t.required)return l();St.required(t,o,r,a,n)}l(a)},wi={string:K3e,method:W3e,number:q3e,boolean:U3e,regexp:Y3e,integer:G3e,float:X3e,array:J3e,object:Z3e,enum:eve,pattern:tve,date:ove,url:bd,hex:bd,email:bd,required:lve,any:rve};function q0(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var U0=q0(),ws=function(){function e(o){this.rules=null,this._messages=U0,this.define(o)}var t=e.prototype;return t.define=function(l){var r=this;if(!l)throw new Error("Cannot configure a schema with no rules");if(typeof l!="object"||Array.isArray(l))throw new Error("Rules must be an object");this.rules={},Object.keys(l).forEach(function(n){var a=l[n];r.rules[n]=Array.isArray(a)?a:[a]})},t.messages=function(l){return l&&(this._messages=_3(q0(),l)),this._messages},t.validate=function(l,r,n){var a=this;r===void 0&&(r={}),n===void 0&&(n=function(){});var i=l,c=r,u=n;if(typeof c=="function"&&(u=c,c={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,i),Promise.resolve(i);function d(m){var g=[],_={};function w(x){if(Array.isArray(x)){var k;g=(k=g).concat.apply(k,x)}else g.push(x)}for(var b=0;b");const r=_e("form"),n=V(),a=V(0),i=()=>{var d;if((d=n.value)!=null&&d.firstElementChild){const p=window.getComputedStyle(n.value.firstElementChild).width;return Math.ceil(Number.parseFloat(p))}else return 0},c=(d="update")=>{Ne(()=>{t.default&&e.isAutoWidth&&(d==="update"?a.value=i():d==="remove"&&(o==null||o.deregisterLabelWidth(a.value)))})},u=()=>c("update");return Ze(()=>{u()}),It(()=>{c("remove")}),jl(()=>u()),ve(a,(d,p)=>{e.updateAll&&(o==null||o.registerLabelWidth(d,p))}),bo(S(()=>{var d,p;return(p=(d=n.value)==null?void 0:d.firstElementChild)!=null?p:null}),u),()=>{var d,p;if(!t)return null;const{isAutoWidth:f}=e;if(f){const h=o==null?void 0:o.autoLabelWidth,v=l==null?void 0:l.hasLabel,m={};if(v&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-a.value),_=o.labelPosition==="left"?"marginRight":"marginLeft";g&&(m[_]=`${g}px`)}return K("div",{ref:n,class:[r.be("item","label-wrap")],style:m},[(d=t.default)==null?void 0:d.call(t)])}else return K(Pe,{ref:n},[(p=t.default)==null?void 0:p.call(t)])}}});const sve=["role","aria-labelledby"],cve=te({name:"ElFormItem"}),uve=te({...cve,props:ave,setup(e,{expose:t}){const o=e,l=ao(),r=Re(On,void 0),n=Re(Bl,void 0),a=Xt(void 0,{formItem:!1}),i=_e("form-item"),c=wl().value,u=V([]),d=V(""),p=A$(d,100),f=V(""),h=V();let v,m=!1;const g=S(()=>{if((r==null?void 0:r.labelPosition)==="top")return{};const Y=Yt(o.labelWidth||(r==null?void 0:r.labelWidth)||"");return Y?{width:Y}:{}}),_=S(()=>{if((r==null?void 0:r.labelPosition)==="top"||(r==null?void 0:r.inline))return{};if(!o.label&&!o.labelWidth&&A)return{};const Y=Yt(o.labelWidth||(r==null?void 0:r.labelWidth)||"");return!o.label&&!l.label?{marginLeft:Y}:{}}),w=S(()=>[i.b(),i.m(a.value),i.is("error",d.value==="error"),i.is("validating",d.value==="validating"),i.is("success",d.value==="success"),i.is("required",B.value||o.required),i.is("no-asterisk",r==null?void 0:r.hideRequiredAsterisk),(r==null?void 0:r.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[i.m("feedback")]:r==null?void 0:r.statusIcon}]),b=S(()=>Jt(o.inlineMessage)?o.inlineMessage:(r==null?void 0:r.inlineMessage)||!1),x=S(()=>[i.e("error"),{[i.em("error","inline")]:b.value}]),k=S(()=>o.prop?Ge(o.prop)?o.prop:o.prop.join("."):""),z=S(()=>!!(o.label||l.label)),M=S(()=>o.for||u.value.length===1?u.value[0]:void 0),E=S(()=>!M.value&&z.value),A=!!n,O=S(()=>{const Y=r==null?void 0:r.model;if(!(!Y||!o.prop))return ec(Y,o.prop).value}),D=S(()=>{const{required:Y}=o,W=[];o.rules&&W.push(..._a(o.rules));const ce=r==null?void 0:r.rules;if(ce&&o.prop){const ne=ec(ce,o.prop).value;ne&&W.push(..._a(ne))}if(Y!==void 0){const ne=W.map((xe,U)=>[xe,U]).filter(([xe])=>Object.keys(xe).includes("required"));if(ne.length>0)for(const[xe,U]of ne)xe.required!==Y&&(W[U]={...xe,required:Y});else W.push({required:Y})}return W}),I=S(()=>D.value.length>0),N=Y=>D.value.filter(ce=>!ce.trigger||!Y?!0:Array.isArray(ce.trigger)?ce.trigger.includes(Y):ce.trigger===Y).map(({trigger:ce,...ne})=>ne),B=S(()=>D.value.some(Y=>Y.required)),F=S(()=>{var Y;return p.value==="error"&&o.showMessage&&((Y=r==null?void 0:r.showMessage)!=null?Y:!0)}),H=S(()=>`${o.label||""}${(r==null?void 0:r.labelSuffix)||""}`),L=Y=>{d.value=Y},P=Y=>{var W,ce;const{errors:ne,fields:xe}=Y;(!ne||!xe)&&console.error(Y),L("error"),f.value=ne?(ce=(W=ne==null?void 0:ne[0])==null?void 0:W.message)!=null?ce:`${o.prop} is required`:"",r==null||r.emit("validate",o.prop,!1,f.value)},R=()=>{L("success"),r==null||r.emit("validate",o.prop,!0,"")},J=async Y=>{const W=k.value;return new ws({[W]:Y}).validate({[W]:O.value},{firstFields:!0}).then(()=>(R(),!0)).catch(ne=>(P(ne),Promise.reject(ne)))},oe=async(Y,W)=>{if(m||!o.prop)return!1;const ce=Ye(W);if(!I.value)return W==null||W(!1),!1;const ne=N(Y);return ne.length===0?(W==null||W(!0),!0):(L("validating"),J(ne).then(()=>(W==null||W(!0),!0)).catch(xe=>{const{fields:U}=xe;return W==null||W(!1,U),ce?!1:Promise.reject(U)}))},G=()=>{L(""),f.value="",m=!1},le=async()=>{const Y=r==null?void 0:r.model;if(!Y||!o.prop)return;const W=ec(Y,o.prop);m=!0,W.value=G1(v),await Ne(),G(),m=!1},he=Y=>{u.value.includes(Y)||u.value.push(Y)},j=Y=>{u.value=u.value.filter(W=>W!==Y)};ve(()=>o.error,Y=>{f.value=Y||"",L(Y?"error":"")},{immediate:!0}),ve(()=>o.validateStatus,Y=>L(Y||""));const re=wt({...Gt(o),$el:h,size:a,validateState:d,labelId:c,inputIds:u,isGroup:E,hasLabel:z,addInputId:he,removeInputId:j,resetField:le,clearValidate:G,validate:oe});return st(Bl,re),Ze(()=>{o.prop&&(r==null||r.addField(re),v=G1(O.value))}),It(()=>{r==null||r.removeField(re)}),t({size:a,validateMessage:f,validateState:d,validate:oe,clearValidate:G,resetField:le}),(Y,W)=>{var ce;return y(),$("div",{ref_key:"formItemRef",ref:h,class:T(s(w)),role:s(E)?"group":void 0,"aria-labelledby":s(E)?s(c):void 0},[K(s(ive),{"is-auto-width":s(g).width==="auto","update-all":((ce=s(r))==null?void 0:ce.labelWidth)==="auto"},{default:Z(()=>[s(z)?(y(),ue(pt(s(M)?"label":"div"),{key:0,id:s(c),for:s(M),class:T(s(i).e("label")),style:Be(s(g))},{default:Z(()=>[ge(Y.$slots,"label",{label:s(H)},()=>[ot(Ce(s(H)),1)])]),_:3},8,["id","for","class","style"])):ae("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),C("div",{class:T(s(i).e("content")),style:Be(s(_))},[ge(Y.$slots,"default"),K(Kt,{name:`${s(i).namespace.value}-zoom-in-top`},{default:Z(()=>[s(F)?ge(Y.$slots,"error",{key:0,error:f.value},()=>[C("div",{class:T(s(x))},Ce(f.value),3)]):ae("v-if",!0)]),_:3},8,["name"])],6)],10,sve)}}});var D8=Te(uve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const dve=at(S3e,{FormItem:D8}),pve=Bt(D8),fve=Ae({urlList:{type:de(Array),default:()=>Lt([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0}}),hve={close:()=>!0,switch:e=>et(e)},vve=["src"],mve=te({name:"ElImageViewer"}),gve=te({...mve,props:fve,emits:hve,setup(e,{expose:t,emit:o}){const l=e,r={CONTAIN:{name:"contain",icon:bl(J4)},ORIGINAL:{name:"original",icon:bl(nm)}},n=xp()?"DOMMouseScroll":"mousewheel",{t:a}=yt(),i=_e("image-viewer"),{nextZIndex:c}=gr(),u=V(),d=V([]),p=A2(),f=V(!0),h=V(l.initialIndex),v=Et(r.CONTAIN),m=V({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),g=S(()=>{const{urlList:P}=l;return P.length<=1}),_=S(()=>h.value===0),w=S(()=>h.value===l.urlList.length-1),b=S(()=>l.urlList[h.value]),x=S(()=>{const{scale:P,deg:R,offsetX:J,offsetY:oe,enableTransition:G}=m.value;let le=J/P,he=oe/P;switch(R%360){case 90:case-270:[le,he]=[he,-le];break;case 180:case-180:[le,he]=[-le,-he];break;case 270:case-90:[le,he]=[-he,le];break}const j={transform:`scale(${P}) rotate(${R}deg) translate(${le}px, ${he}px)`,transition:G?"transform .3s":""};return v.value.name===r.CONTAIN.name&&(j.maxWidth=j.maxHeight="100%"),j}),k=S(()=>et(l.zIndex)?l.zIndex:c());function z(){E(),o("close")}function M(){const P=bn(J=>{switch(J.code){case je.esc:l.closeOnPressEscape&&z();break;case je.space:N();break;case je.left:F();break;case je.up:L("zoomIn");break;case je.right:H();break;case je.down:L("zoomOut");break}}),R=bn(J=>{(J.wheelDelta?J.wheelDelta:-J.detail)>0?L("zoomIn",{zoomRate:1.2,enableTransition:!1}):L("zoomOut",{zoomRate:1.2,enableTransition:!1})});p.run(()=>{At(document,"keydown",P),At(document,n,R)})}function E(){p.stop()}function A(){f.value=!1}function O(P){f.value=!1,P.target.alt=a("el.image.error")}function D(P){if(f.value||P.button!==0||!u.value)return;m.value.enableTransition=!1;const{offsetX:R,offsetY:J}=m.value,oe=P.pageX,G=P.pageY,le=bn(j=>{m.value={...m.value,offsetX:R+j.pageX-oe,offsetY:J+j.pageY-G}}),he=At(document,"mousemove",le);At(document,"mouseup",()=>{he()}),P.preventDefault()}function I(){m.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function N(){if(f.value)return;const P=Fi(r),R=Object.values(r),J=v.value.name,G=(R.findIndex(le=>le.name===J)+1)%P.length;v.value=r[P[G]],I()}function B(P){const R=l.urlList.length;h.value=(P+R)%R}function F(){_.value&&!l.infinite||B(h.value-1)}function H(){w.value&&!l.infinite||B(h.value+1)}function L(P,R={}){if(f.value)return;const{zoomRate:J,rotateDeg:oe,enableTransition:G}={zoomRate:1.4,rotateDeg:90,enableTransition:!0,...R};switch(P){case"zoomOut":m.value.scale>.2&&(m.value.scale=Number.parseFloat((m.value.scale/J).toFixed(3)));break;case"zoomIn":m.value.scale<7&&(m.value.scale=Number.parseFloat((m.value.scale*J).toFixed(3)));break;case"clockwise":m.value.deg+=oe;break;case"anticlockwise":m.value.deg-=oe;break}m.value.enableTransition=G}return ve(b,()=>{Ne(()=>{const P=d.value[0];P!=null&&P.complete||(f.value=!0)})}),ve(h,P=>{I(),o("switch",P)}),Ze(()=>{var P,R;M(),(R=(P=u.value)==null?void 0:P.focus)==null||R.call(P)}),t({setActiveItem:B}),(P,R)=>(y(),ue(cs,{to:"body",disabled:!P.teleported},[K(Kt,{name:"viewer-fade",appear:""},{default:Z(()=>[C("div",{ref_key:"wrapper",ref:u,tabindex:-1,class:T(s(i).e("wrapper")),style:Be({zIndex:s(k)})},[C("div",{class:T(s(i).e("mask")),onClick:R[0]||(R[0]=Ue(J=>P.hideOnClickModal&&z(),["self"]))},null,2),ae(" CLOSE "),C("span",{class:T([s(i).e("btn"),s(i).e("close")]),onClick:z},[K(s(De),null,{default:Z(()=>[K(s(nl))]),_:1})],2),ae(" ARROW "),s(g)?ae("v-if",!0):(y(),$(Pe,{key:0},[C("span",{class:T([s(i).e("btn"),s(i).e("prev"),s(i).is("disabled",!P.infinite&&s(_))]),onClick:F},[K(s(De),null,{default:Z(()=>[K(s(ir))]),_:1})],2),C("span",{class:T([s(i).e("btn"),s(i).e("next"),s(i).is("disabled",!P.infinite&&s(w))]),onClick:H},[K(s(De),null,{default:Z(()=>[K(s(go))]),_:1})],2)],64)),ae(" ACTIONS "),C("div",{class:T([s(i).e("btn"),s(i).e("actions")])},[C("div",{class:T(s(i).e("actions__inner"))},[K(s(De),{onClick:R[1]||(R[1]=J=>L("zoomOut"))},{default:Z(()=>[K(s(dm))]),_:1}),K(s(De),{onClick:R[2]||(R[2]=J=>L("zoomIn"))},{default:Z(()=>[K(s(yp))]),_:1}),C("i",{class:T(s(i).e("actions__divider"))},null,2),K(s(De),{onClick:N},{default:Z(()=>[(y(),ue(pt(s(v).icon)))]),_:1}),C("i",{class:T(s(i).e("actions__divider"))},null,2),K(s(De),{onClick:R[3]||(R[3]=J=>L("anticlockwise"))},{default:Z(()=>[K(s(lm))]),_:1}),K(s(De),{onClick:R[4]||(R[4]=J=>L("clockwise"))},{default:Z(()=>[K(s(rm))]),_:1})],2)],2),ae(" CANVAS "),C("div",{class:T(s(i).e("canvas"))},[(y(!0),$(Pe,null,ut(P.urlList,(J,oe)=>Xe((y(),$("img",{ref_for:!0,ref:G=>d.value[oe]=G,key:J,src:J,style:Be(s(x)),class:T(s(i).e("img")),onLoad:A,onError:O,onMousedown:D},null,46,vve)),[[_t,oe===h.value]])),128))],2),ge(P.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var bve=Te(gve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const F8=at(bve),_ve=Ae({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:de([String,Object])},previewSrcList:{type:de(Array),default:()=>Lt([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0}}),yve={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>et(e),close:()=>!0,show:()=>!0},wve=["src","loading"],xve={key:0},kve=te({name:"ElImage",inheritAttrs:!1}),Cve=te({...kve,props:_ve,emits:yve,setup(e,{emit:t}){const o=e;let l="";const{t:r}=yt(),n=_e("image"),a=us(),i=$p(),c=V(),u=V(!1),d=V(!0),p=V(!1),f=V(),h=V(),v=gt&&"loading"in HTMLImageElement.prototype;let m,g;const _=S(()=>a.style),w=S(()=>{const{fit:L}=o;return gt&&L?{objectFit:L}:{}}),b=S(()=>{const{previewSrcList:L}=o;return Array.isArray(L)&&L.length>0}),x=S(()=>{const{previewSrcList:L,initialIndex:P}=o;let R=P;return P>L.length-1&&(R=0),R}),k=S(()=>o.loading==="eager"?!1:!v&&o.loading==="lazy"||o.lazy),z=()=>{!gt||(d.value=!0,u.value=!1,c.value=o.src)};function M(L){d.value=!1,u.value=!1,t("load",L)}function E(L){d.value=!1,u.value=!0,t("error",L)}function A(){U$(f.value,h.value)&&(z(),I())}const O=B4(A,200);async function D(){var L;if(!gt)return;await Ne();const{scrollContainer:P}=o;yl(P)?h.value=P:Ge(P)&&P!==""?h.value=(L=document.querySelector(P))!=null?L:void 0:f.value&&(h.value=vp(f.value)),h.value&&(m=At(h,"scroll",O),setTimeout(()=>A(),100))}function I(){!gt||!h.value||!O||(m==null||m(),h.value=void 0)}function N(L){if(!!L.ctrlKey){if(L.deltaY<0)return L.preventDefault(),!1;if(L.deltaY>0)return L.preventDefault(),!1}}function B(){!b.value||(g=At("wheel",N,{passive:!1}),l=document.body.style.overflow,document.body.style.overflow="hidden",p.value=!0,t("show"))}function F(){g==null||g(),document.body.style.overflow=l,p.value=!1,t("close")}function H(L){t("switch",L)}return ve(()=>o.src,()=>{k.value?(d.value=!0,u.value=!1,I(),D()):z()}),Ze(()=>{k.value?D():z()}),(L,P)=>(y(),$("div",{ref_key:"container",ref:f,class:T([s(n).b(),L.$attrs.class]),style:Be(s(_))},[c.value!==void 0&&!u.value?(y(),$("img",ht({key:0},s(i),{src:c.value,loading:L.loading,style:s(w),class:[s(n).e("inner"),s(b)&&s(n).e("preview"),d.value&&s(n).is("loading")],onClick:B,onLoad:M,onError:E}),null,16,wve)):ae("v-if",!0),d.value||u.value?(y(),$("div",{key:1,class:T(s(n).e("wrapper"))},[d.value?ge(L.$slots,"placeholder",{key:0},()=>[C("div",{class:T(s(n).e("placeholder"))},null,2)]):u.value?ge(L.$slots,"error",{key:1},()=>[C("div",{class:T(s(n).e("error"))},Ce(s(r)("el.image.error")),3)]):ae("v-if",!0)],2)):ae("v-if",!0),s(b)?(y(),$(Pe,{key:2},[p.value?(y(),ue(s(F8),{key:0,"z-index":L.zIndex,"initial-index":s(x),infinite:L.infinite,"url-list":L.previewSrcList,"hide-on-click-modal":L.hideOnClickModal,teleported:L.previewTeleported,"close-on-press-escape":L.closeOnPressEscape,onClose:F,onSwitch:H},{default:Z(()=>[L.$slots.viewer?(y(),$("div",xve,[ge(L.$slots,"viewer")])):ae("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):ae("v-if",!0)],64)):ae("v-if",!0)],6))}});var $ve=Te(Cve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const Sve=at($ve),zve=Ae({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Lo,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||et(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),Eve={[Ot]:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Co]:e=>et(e)||ro(e),[nt]:e=>et(e)||ro(e)},Mve=["aria-label","onKeydown"],Tve=["aria-label","onKeydown"],Ave=te({name:"ElInputNumber"}),Vve=te({...Ave,props:zve,emits:Eve,setup(e,{expose:t,emit:o}){const l=e,{t:r}=yt(),n=_e("input-number"),a=V(),i=wt({currentValue:l.modelValue,userInput:null}),{formItem:c}=So(),u=S(()=>et(l.modelValue)&&w(l.modelValue,-1)et(l.modelValue)&&w(l.modelValue)>l.max),p=S(()=>{const N=_(l.step);return lo(l.precision)?Math.max(_(l.modelValue),N):(N>l.precision,l.precision)}),f=S(()=>l.controls&&l.controlsPosition==="right"),h=Xt(),v=zl(),m=S(()=>{if(i.userInput!==null)return i.userInput;let N=i.currentValue;if(ro(N))return"";if(et(N)){if(Number.isNaN(N))return"";lo(l.precision)||(N=N.toFixed(l.precision))}return N}),g=(N,B)=>{if(lo(B)&&(B=p.value),B===0)return Math.round(N);let F=String(N);const H=F.indexOf(".");if(H===-1||!F.replace(".","").split("")[H+B])return N;const R=F.length;return F.charAt(R-1)==="5"&&(F=`${F.slice(0,Math.max(0,R-1))}6`),Number.parseFloat(Number(F).toFixed(B))},_=N=>{if(ro(N))return 0;const B=N.toString(),F=B.indexOf(".");let H=0;return F!==-1&&(H=B.length-F-1),H},w=(N,B=1)=>et(N)?g(N+l.step*B):i.currentValue,b=()=>{if(l.readonly||v.value||d.value)return;const N=Number(m.value)||0,B=w(N);z(B),o(Co,i.currentValue)},x=()=>{if(l.readonly||v.value||u.value)return;const N=Number(m.value)||0,B=w(N,-1);z(B),o(Co,i.currentValue)},k=(N,B)=>{const{max:F,min:H,step:L,precision:P,stepStrictly:R,valueOnClear:J}=l;let oe=Number(N);if(ro(N)||Number.isNaN(oe))return null;if(N===""){if(J===null)return null;oe=Ge(J)?{min:H,max:F}[J]:J}return R&&(oe=g(Math.round(oe/L)*L,P)),lo(P)||(oe=g(oe,P)),(oe>F||oeF?F:H,B&&o(nt,oe)),oe},z=N=>{var B;const F=i.currentValue,H=k(N);F!==H&&(i.userInput=null,o(nt,H),o(Ot,H,F),l.validateEvent&&((B=c==null?void 0:c.validate)==null||B.call(c,"change").catch(L=>void 0)),i.currentValue=H)},M=N=>{i.userInput=N,o(Co,N===""?null:Number(N))},E=N=>{const B=N!==""?Number(N):"";(et(B)&&!Number.isNaN(B)||N==="")&&z(B),i.userInput=null},A=()=>{var N,B;(B=(N=a.value)==null?void 0:N.focus)==null||B.call(N)},O=()=>{var N,B;(B=(N=a.value)==null?void 0:N.blur)==null||B.call(N)},D=N=>{o("focus",N)},I=N=>{var B;o("blur",N),l.validateEvent&&((B=c==null?void 0:c.validate)==null||B.call(c,"blur").catch(F=>void 0))};return ve(()=>l.modelValue,N=>{i.currentValue=k(N,!0),i.userInput=null},{immediate:!0}),Ze(()=>{var N;const{min:B,max:F,modelValue:H}=l,L=(N=a.value)==null?void 0:N.input;if(L.setAttribute("role","spinbutton"),Number.isFinite(F)?L.setAttribute("aria-valuemax",String(F)):L.removeAttribute("aria-valuemax"),Number.isFinite(B)?L.setAttribute("aria-valuemin",String(B)):L.removeAttribute("aria-valuemin"),L.setAttribute("aria-valuenow",String(i.currentValue)),L.setAttribute("aria-disabled",String(v.value)),!et(H)&&H!=null){let P=Number(H);Number.isNaN(P)&&(P=null),o(nt,P)}}),jl(()=>{var N;const B=(N=a.value)==null?void 0:N.input;B==null||B.setAttribute("aria-valuenow",`${i.currentValue}`)}),t({focus:A,blur:O}),(N,B)=>(y(),$("div",{class:T([s(n).b(),s(n).m(s(h)),s(n).is("disabled",s(v)),s(n).is("without-controls",!N.controls),s(n).is("controls-right",s(f))]),onDragstart:B[0]||(B[0]=Ue(()=>{},["prevent"]))},[N.controls?Xe((y(),$("span",{key:0,role:"button","aria-label":s(r)("el.inputNumber.decrease"),class:T([s(n).e("decrease"),s(n).is("disabled",s(u))]),onKeydown:bt(x,["enter"])},[K(s(De),null,{default:Z(()=>[s(f)?(y(),ue(s(fr),{key:0})):(y(),ue(s(Q4),{key:1}))]),_:1})],42,Mve)),[[s(Hc),x]]):ae("v-if",!0),N.controls?Xe((y(),$("span",{key:1,role:"button","aria-label":s(r)("el.inputNumber.increase"),class:T([s(n).e("increase"),s(n).is("disabled",s(d))]),onKeydown:bt(b,["enter"])},[K(s(De),null,{default:Z(()=>[s(f)?(y(),ue(s(vs),{key:0})):(y(),ue(s(bp),{key:1}))]),_:1})],42,Tve)),[[s(Hc),b]]):ae("v-if",!0),K(s(mo),{id:N.id,ref_key:"input",ref:a,type:"number",step:N.step,"model-value":s(m),placeholder:N.placeholder,readonly:N.readonly,disabled:s(v),size:s(h),max:N.max,min:N.min,name:N.name,label:N.label,"validate-event":!1,onKeydown:[bt(Ue(b,["prevent"]),["up"]),bt(Ue(x,["prevent"]),["down"])],onBlur:I,onFocus:D,onInput:M,onChange:E},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var Ove=Te(Vve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const j8=at(Ove),Pve=Ae({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:Mt}}),Lve={click:e=>e instanceof MouseEvent},Ive=["href"],Rve=te({name:"ElLink"}),Hve=te({...Rve,props:Pve,emits:Lve,setup(e,{emit:t}){const o=e,l=_e("link");function r(n){o.disabled||t("click",n)}return(n,a)=>(y(),$("a",{class:T([s(l).b(),s(l).m(n.type),s(l).is("disabled",n.disabled),s(l).is("underline",n.underline&&!n.disabled)]),href:n.disabled||!n.href?void 0:n.href,onClick:r},[n.icon?(y(),ue(s(De),{key:0},{default:Z(()=>[(y(),ue(pt(n.icon)))]),_:1})):ae("v-if",!0),n.$slots.default?(y(),$("span",{key:1,class:T(s(l).e("inner"))},[ge(n.$slots,"default")],2)):ae("v-if",!0),n.$slots.icon?ge(n.$slots,"icon",{key:2}):ae("v-if",!0)],10,Ive))}});var Nve=Te(Hve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const Bve=at(Nve);class Dve{constructor(t,o){this.parent=t,this.domNode=o,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,o=>{o.addEventListener("keydown",l=>{let r=!1;switch(l.code){case je.down:{this.gotoSubIndex(this.subIndex+1),r=!0;break}case je.up:{this.gotoSubIndex(this.subIndex-1),r=!0;break}case je.tab:{Zs(t,"mouseleave");break}case je.enter:case je.space:{r=!0,l.currentTarget.click();break}}return r&&(l.preventDefault(),l.stopPropagation()),!1})})}}class Fve{constructor(t,o){this.domNode=t,this.submenu=null,this.submenu=null,this.init(o)}init(t){this.domNode.setAttribute("tabindex","0");const o=this.domNode.querySelector(`.${t}-menu`);o&&(this.submenu=new Dve(this,o)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let o=!1;switch(t.code){case je.down:{Zs(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),o=!0;break}case je.up:{Zs(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),o=!0;break}case je.tab:{Zs(t.currentTarget,"mouseleave");break}case je.enter:case je.space:{o=!0,t.currentTarget.click();break}}o&&t.preventDefault()})}}class jve{constructor(t,o){this.domNode=t,this.init(o)}init(t){const o=this.domNode.childNodes;Array.from(o).forEach(l=>{l.nodeType===1&&new Fve(l,t)})}}const Kve=te({name:"ElMenuCollapseTransition",setup(){const e=_e("menu");return{listeners:{onBeforeEnter:o=>o.style.opacity="0.2",onEnter(o,l){Ol(o,`${e.namespace.value}-opacity-transition`),o.style.opacity="1",l()},onAfterEnter(o){Vo(o,`${e.namespace.value}-opacity-transition`),o.style.opacity=""},onBeforeLeave(o){o.dataset||(o.dataset={}),_l(o,e.m("collapse"))?(Vo(o,e.m("collapse")),o.dataset.oldOverflow=o.style.overflow,o.dataset.scrollWidth=o.clientWidth.toString(),Ol(o,e.m("collapse"))):(Ol(o,e.m("collapse")),o.dataset.oldOverflow=o.style.overflow,o.dataset.scrollWidth=o.clientWidth.toString(),Vo(o,e.m("collapse"))),o.style.width=`${o.scrollWidth}px`,o.style.overflow="hidden"},onLeave(o){Ol(o,"horizontal-collapse-transition"),o.style.width=`${o.dataset.scrollWidth}px`}}}}});function Wve(e,t,o,l,r,n){return y(),ue(Kt,ht({mode:"out-in"},e.listeners),{default:Z(()=>[ge(e.$slots,"default")]),_:3},16)}var qve=Te(Kve,[["render",Wve],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function K8(e,t){const o=S(()=>{let r=e.parent;const n=[t.value];for(;r.type.name!=="ElMenu";)r.props.index&&n.unshift(r.props.index),r=r.parent;return n});return{parentMenu:S(()=>{let r=e.parent;for(;r&&!["ElMenu","ElSubMenu"].includes(r.type.name);)r=r.parent;return r}),indexPath:o}}function Uve(e){return S(()=>{const o=e.backgroundColor;return o?new kg(o).shade(20).toString():""})}const W8=(e,t)=>{const o=_e("menu");return S(()=>o.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Uve(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},Yve=Ae({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:Mt},expandOpenIcon:{type:Mt},collapseCloseIcon:{type:Mt},collapseOpenIcon:{type:Mt}}),_d="ElSubMenu";var of=te({name:_d,props:Yve,setup(e,{slots:t,expose:o}){const l=Qe(),{indexPath:r,parentMenu:n}=K8(l,S(()=>e.index)),a=_e("menu"),i=_e("sub-menu"),c=Re("rootMenu");c||Zt(_d,"can not inject root menu");const u=Re(`subMenu:${n.value.uid}`);u||Zt(_d,"can not inject sub menu");const d=V({}),p=V({});let f;const h=V(!1),v=V(),m=V(null),g=S(()=>D.value==="horizontal"&&w.value?"bottom-start":"right-start"),_=S(()=>D.value==="horizontal"&&w.value||D.value==="vertical"&&!c.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?z.value?e.expandOpenIcon:e.expandCloseIcon:fr:e.collapseCloseIcon&&e.collapseOpenIcon?z.value?e.collapseOpenIcon:e.collapseCloseIcon:go),w=S(()=>u.level===0),b=S(()=>e.popperAppendToBody===void 0?w.value:Boolean(e.popperAppendToBody)),x=S(()=>c.props.collapse?`${a.namespace.value}-zoom-in-left`:`${a.namespace.value}-zoom-in-top`),k=S(()=>D.value==="horizontal"&&w.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),z=S(()=>c.openedMenus.includes(e.index)),M=S(()=>{let R=!1;return Object.values(d.value).forEach(J=>{J.active&&(R=!0)}),Object.values(p.value).forEach(J=>{J.active&&(R=!0)}),R}),E=S(()=>c.props.backgroundColor||""),A=S(()=>c.props.activeTextColor||""),O=S(()=>c.props.textColor||""),D=S(()=>c.props.mode),I=wt({index:e.index,indexPath:r,active:M}),N=S(()=>D.value!=="horizontal"?{color:O.value}:{borderBottomColor:M.value?c.props.activeTextColor?A.value:"":"transparent",color:M.value?A.value:O.value}),B=()=>{var R,J,oe;return(oe=(J=(R=m.value)==null?void 0:R.popperRef)==null?void 0:J.popperInstanceRef)==null?void 0:oe.destroy()},F=R=>{R||B()},H=()=>{c.props.menuTrigger==="hover"&&c.props.mode==="horizontal"||c.props.collapse&&c.props.mode==="vertical"||e.disabled||c.handleSubMenuClick({index:e.index,indexPath:r.value,active:M.value})},L=(R,J=e.showTimeout)=>{var oe;R.type!=="focus"&&(c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"||e.disabled||(u.mouseInChild.value=!0,f==null||f(),{stop:f}=Sn(()=>{c.openMenu(e.index,r.value)},J),b.value&&((oe=n.value.vnode.el)==null||oe.dispatchEvent(new MouseEvent("mouseenter")))))},P=(R=!1)=>{var J,oe;c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"||(f==null||f(),u.mouseInChild.value=!1,{stop:f}=Sn(()=>!h.value&&c.closeMenu(e.index,r.value),e.hideTimeout),b.value&&R&&((J=l.parent)==null?void 0:J.type.name)==="ElSubMenu"&&((oe=u.handleMouseleave)==null||oe.call(u,!0)))};ve(()=>c.props.collapse,R=>F(Boolean(R)));{const R=oe=>{p.value[oe.index]=oe},J=oe=>{delete p.value[oe.index]};st(`subMenu:${l.uid}`,{addSubMenu:R,removeSubMenu:J,handleMouseleave:P,mouseInChild:h,level:u.level+1})}return o({opened:z}),Ze(()=>{c.addSubMenu(I),u.addSubMenu(I)}),It(()=>{u.removeSubMenu(I),c.removeSubMenu(I)}),()=>{var R;const J=[(R=t.title)==null?void 0:R.call(t),Fe(De,{class:i.e("icon-arrow"),style:{transform:z.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&c.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ge(_.value)?Fe(l.appContext.components[_.value]):Fe(_.value)})],oe=W8(c.props,u.level+1),G=c.isMenuPopup?Fe(Ro,{ref:m,visible:z.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:g.value,teleported:b.value,fallbackPlacements:k.value,transition:x.value,gpuAcceleration:!1},{content:()=>{var le;return Fe("div",{class:[a.m(D.value),a.m("popup-container"),e.popperClass],onMouseenter:he=>L(he,100),onMouseleave:()=>P(!0),onFocus:he=>L(he,100)},[Fe("ul",{class:[a.b(),a.m("popup"),a.m(`popup-${g.value}`)],style:oe.value},[(le=t.default)==null?void 0:le.call(t)])])},default:()=>Fe("div",{class:i.e("title"),style:[N.value,{backgroundColor:E.value}],onClick:H},J)}):Fe(Pe,{},[Fe("div",{class:i.e("title"),style:[N.value,{backgroundColor:E.value}],ref:v,onClick:H},J),Fe(Lu,{},{default:()=>{var le;return Xe(Fe("ul",{role:"menu",class:[a.b(),a.m("inline")],style:oe.value},[(le=t.default)==null?void 0:le.call(t)]),[[_t,z.value]])}})]);return Fe("li",{class:[i.b(),i.is("active",M.value),i.is("opened",z.value),i.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:z.value,onMouseenter:L,onMouseleave:()=>P(!0),onFocus:L},[G])}}});const Gve=Ae({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:de(Array),default:()=>Lt([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0}}),yd=e=>Array.isArray(e)&&e.every(t=>Ge(t)),Xve={close:(e,t)=>Ge(e)&&yd(t),open:(e,t)=>Ge(e)&&yd(t),select:(e,t,o,l)=>Ge(e)&&yd(t)&&ft(o)&&(l===void 0||l instanceof Promise)};var Jve=te({name:"ElMenu",props:Gve,emits:Xve,setup(e,{emit:t,slots:o,expose:l}){const r=Qe(),n=r.appContext.config.globalProperties.$router,a=V(),i=_e("menu"),c=_e("sub-menu"),u=V(-1),d=V(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),p=V(e.defaultActive),f=V({}),h=V({}),v=S(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),m=()=>{const O=p.value&&f.value[p.value];if(!O||e.mode==="horizontal"||e.collapse)return;O.indexPath.forEach(I=>{const N=h.value[I];N&&g(I,N.indexPath)})},g=(O,D)=>{d.value.includes(O)||(e.uniqueOpened&&(d.value=d.value.filter(I=>D.includes(I))),d.value.push(O),t("open",O,D))},_=(O,D)=>{const I=d.value.indexOf(O);I!==-1&&d.value.splice(I,1),t("close",O,D)},w=({index:O,indexPath:D})=>{d.value.includes(O)?_(O,D):g(O,D)},b=O=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:D,indexPath:I}=O;if(!(D===void 0||I===void 0))if(e.router&&n){const N=O.route||D,B=n.push(N).then(F=>(F||(p.value=D),F));t("select",D,I,{index:D,indexPath:I,route:N},B)}else p.value=D,t("select",D,I,{index:D,indexPath:I})},x=O=>{const D=f.value,I=D[O]||p.value&&D[p.value]||D[e.defaultActive];I?p.value=I.index:p.value=O},k=()=>{var O,D;if(!a.value)return-1;const I=Array.from((D=(O=a.value)==null?void 0:O.childNodes)!=null?D:[]).filter(R=>R.nodeName!=="#text"||R.nodeValue),N=64,B=Number.parseInt(getComputedStyle(a.value).paddingLeft,10),F=Number.parseInt(getComputedStyle(a.value).paddingRight,10),H=a.value.clientWidth-B-F;let L=0,P=0;return I.forEach((R,J)=>{L+=R.offsetWidth||0,L<=H-N&&(P=J+1)}),P===I.length?-1:P},z=(O,D=33.34)=>{let I;return()=>{I&&clearTimeout(I),I=setTimeout(()=>{O()},D)}};let M=!0;const E=()=>{const O=()=>{u.value=-1,Ne(()=>{u.value=k()})};M?O():z(O)(),M=!1};ve(()=>e.defaultActive,O=>{f.value[O]||(p.value=""),x(O)}),ve(()=>e.collapse,O=>{O&&(d.value=[])}),ve(f.value,m);let A;Ao(()=>{e.mode==="horizontal"&&e.ellipsis?A=bo(a,E).stop:A==null||A()});{const O=B=>{h.value[B.index]=B},D=B=>{delete h.value[B.index]};st("rootMenu",wt({props:e,openedMenus:d,items:f,subMenus:h,activeIndex:p,isMenuPopup:v,addMenuItem:B=>{f.value[B.index]=B},removeMenuItem:B=>{delete f.value[B.index]},addSubMenu:O,removeSubMenu:D,openMenu:g,closeMenu:_,handleMenuItemClick:b,handleSubMenuClick:w})),st(`subMenu:${r.uid}`,{addSubMenu:O,removeSubMenu:D,mouseInChild:V(!1),level:0})}return Ze(()=>{e.mode==="horizontal"&&new jve(r.vnode.el,i.namespace.value)}),l({open:D=>{const{indexPath:I}=h.value[D];I.forEach(N=>g(N,I))},close:_,handleResize:E}),()=>{var O,D;let I=(D=(O=o.default)==null?void 0:O.call(o))!=null?D:[];const N=[];if(e.mode==="horizontal"&&a.value){const H=na(I),L=u.value===-1?H:H.slice(0,u.value),P=u.value===-1?[]:H.slice(u.value);(P==null?void 0:P.length)&&e.ellipsis&&(I=L,N.push(Fe(of,{index:"sub-menu-more",class:c.e("hide-arrow")},{title:()=>Fe(De,{class:c.e("icon-more")},{default:()=>Fe(em)}),default:()=>P})))}const B=W8(e,0),F=Fe("ul",{key:String(e.collapse),role:"menubar",ref:a,style:B.value,class:{[i.b()]:!0,[i.m(e.mode)]:!0,[i.m("collapse")]:e.collapse}},[...I,...N]);return e.collapseTransition&&e.mode==="vertical"?Fe(qve,()=>F):F}}});const Zve=Ae({index:{type:de([String,null]),default:null},route:{type:de([String,Object])},disabled:Boolean}),Qve={click:e=>Ge(e.index)&&Array.isArray(e.indexPath)},wd="ElMenuItem",e6e=te({name:wd,components:{ElTooltip:Ro},props:Zve,emits:Qve,setup(e,{emit:t}){const o=Qe(),l=Re("rootMenu"),r=_e("menu"),n=_e("menu-item");l||Zt(wd,"can not inject root menu");const{parentMenu:a,indexPath:i}=K8(o,Rt(e,"index")),c=Re(`subMenu:${a.value.uid}`);c||Zt(wd,"can not inject sub menu");const u=S(()=>e.index===l.activeIndex),d=wt({index:e.index,indexPath:i,active:u}),p=()=>{e.disabled||(l.handleMenuItemClick({index:e.index,indexPath:i.value,route:e.route}),t("click",d))};return Ze(()=>{c.addSubMenu(d),l.addMenuItem(d)}),It(()=>{c.removeSubMenu(d),l.removeMenuItem(d)}),{Effect:rse,parentMenu:a,rootMenu:l,active:u,nsMenu:r,nsMenuItem:n,handleClick:p}}});function t6e(e,t,o,l,r,n){const a=Oe("el-tooltip");return y(),$("li",{class:T([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(y(),ue(a,{key:0,effect:e.Effect.DARK,placement:"right","fallback-placements":["left"],persistent:""},{content:Z(()=>[ge(e.$slots,"title")]),default:Z(()=>[C("div",{class:T(e.nsMenu.be("tooltip","trigger"))},[ge(e.$slots,"default")],2)]),_:3},8,["effect"])):(y(),$(Pe,{key:1},[ge(e.$slots,"default"),ge(e.$slots,"title")],64))],2)}var q8=Te(e6e,[["render",t6e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const o6e={title:String},l6e="ElMenuItemGroup",r6e=te({name:l6e,props:o6e,setup(){return{ns:_e("menu-item-group")}}});function n6e(e,t,o,l,r,n){return y(),$("li",{class:T(e.ns.b())},[C("div",{class:T(e.ns.e("title"))},[e.$slots.title?ge(e.$slots,"title",{key:1}):(y(),$(Pe,{key:0},[ot(Ce(e.title),1)],64))],2),C("ul",null,[ge(e.$slots,"default")])],2)}var U8=Te(r6e,[["render",n6e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const a6e=at(Jve,{MenuItem:q8,MenuItemGroup:U8,SubMenu:of}),i6e=Bt(q8),s6e=Bt(U8);Bt(of);const c6e=Ae({icon:{type:Mt,default:()=>W4},title:String,content:{type:String,default:""}}),u6e={back:()=>!0},d6e=["aria-label"],p6e=te({name:"ElPageHeader"}),f6e=te({...p6e,props:c6e,emits:u6e,setup(e,{emit:t}){const o=ao(),{t:l}=yt(),r=_e("page-header"),n=S(()=>[r.b(),{[r.m("has-breadcrumb")]:!!o.breadcrumb,[r.m("has-extra")]:!!o.extra,[r.is("contentful")]:!!o.default}]);function a(){t("back")}return(i,c)=>(y(),$("div",{class:T(s(n))},[C("div",{class:T(s(r).e("breadcrumb"))},[ge(i.$slots,"breadcrumb")],2),C("div",{class:T(s(r).e("header"))},[C("div",{class:T(s(r).e("left"))},[C("div",{class:T(s(r).e("back")),role:"button",tabindex:"0",onClick:a},[i.icon||i.$slots.icon?(y(),$("div",{key:0,"aria-label":i.title||s(l)("el.pageHeader.title"),class:T(s(r).e("icon"))},[ge(i.$slots,"icon",{},()=>[i.icon?(y(),ue(s(De),{key:0},{default:Z(()=>[(y(),ue(pt(i.icon)))]),_:1})):ae("v-if",!0)])],10,d6e)):ae("v-if",!0),C("div",{class:T(s(r).e("title"))},[ge(i.$slots,"title",{},()=>[ot(Ce(i.title||s(l)("el.pageHeader.title")),1)])],2)],2),K(s(T8),{direction:"vertical"}),C("div",{class:T(s(r).e("content"))},[ge(i.$slots,"content",{},()=>[ot(Ce(i.content),1)])],2)],2),i.$slots.extra?(y(),$("div",{key:0,class:T(s(r).e("extra"))},[ge(i.$slots,"extra")],2)):ae("v-if",!0)],2),i.$slots.default?(y(),$("div",{key:0,class:T(s(r).e("main"))},[ge(i.$slots,"default")],2)):ae("v-if",!0)],2))}});var h6e=Te(f6e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const v6e=at(h6e),m6e=Ae({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Mt}}),g6e={click:e=>e instanceof MouseEvent},b6e=["disabled","aria-disabled"],_6e={key:0},y6e=te({name:"ElPaginationPrev"}),w6e=te({...y6e,props:m6e,emits:g6e,setup(e){const t=e,o=S(()=>t.disabled||t.currentPage<=1);return(l,r)=>(y(),$("button",{type:"button",class:"btn-prev",disabled:s(o),"aria-disabled":s(o),onClick:r[0]||(r[0]=n=>l.$emit("click",n))},[l.prevText?(y(),$("span",_6e,Ce(l.prevText),1)):(y(),ue(s(De),{key:1},{default:Z(()=>[(y(),ue(pt(l.prevIcon)))]),_:1}))],8,b6e))}});var x6e=Te(w6e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const k6e=Ae({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Mt}}),C6e=["disabled","aria-disabled"],$6e={key:0},S6e=te({name:"ElPaginationNext"}),z6e=te({...S6e,props:k6e,emits:["click"],setup(e){const t=e,o=S(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(l,r)=>(y(),$("button",{type:"button",class:"btn-next",disabled:s(o),"aria-disabled":s(o),onClick:r[0]||(r[0]=n=>l.$emit("click",n))},[l.nextText?(y(),$("span",$6e,Ce(l.nextText),1)):(y(),ue(s(De),{key:1},{default:Z(()=>[(y(),ue(pt(l.nextIcon)))]),_:1}))],8,C6e))}});var E6e=Te(z6e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const Y8="ElSelectGroup",Ru="ElSelect";function M6e(e,t){const o=Re(Ru),l=Re(Y8,{disabled:!1}),r=S(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),n=S(()=>o.props.multiple?p(o.props.modelValue,e.value):f(e.value,o.props.modelValue)),a=S(()=>{if(o.props.multiple){const m=o.props.modelValue||[];return!n.value&&m.length>=o.props.multipleLimit&&o.props.multipleLimit>0}else return!1}),i=S(()=>e.label||(r.value?"":e.value)),c=S(()=>e.value||e.label||""),u=S(()=>e.disabled||t.groupDisabled||a.value),d=Qe(),p=(m=[],g)=>{if(r.value){const _=o.props.valueKey;return m&&m.some(w=>kt(Pt(w,_))===Pt(g,_))}else return m&&m.includes(g)},f=(m,g)=>{if(r.value){const{valueKey:_}=o.props;return Pt(m,_)===Pt(g,_)}else return m===g},h=()=>{!e.disabled&&!l.disabled&&(o.hoverIndex=o.optionsArray.indexOf(d.proxy))};ve(()=>i.value,()=>{!e.created&&!o.props.remote&&o.setSelected()}),ve(()=>e.value,(m,g)=>{const{remote:_,valueKey:w}=o.props;if(Object.is(m,g)||(o.onOptionDestroy(g,d.proxy),o.onOptionCreate(d.proxy)),!e.created&&!_){if(w&&typeof m=="object"&&typeof g=="object"&&m[w]===g[w])return;o.setSelected()}}),ve(()=>l.disabled,()=>{t.groupDisabled=l.disabled},{immediate:!0});const{queryChange:v}=kt(o);return ve(v,m=>{const{query:g}=s(m),_=new RegExp(J$(g),"i");t.visible=_.test(i.value)||e.created,t.visible||o.filteredOptionsCount--}),{select:o,currentLabel:i,currentValue:c,itemSelected:n,isDisabled:u,hoverItem:h}}const T6e=te({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=_e("select"),o=wt({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:l,itemSelected:r,isDisabled:n,select:a,hoverItem:i}=M6e(e,o),{visible:c,hover:u}=Gt(o),d=Qe().proxy;a.onOptionCreate(d),It(()=>{const f=d.value,{selected:h}=a,m=(a.props.multiple?h:[h]).some(g=>g.value===d.value);Ne(()=>{a.cachedOptions.get(f)===d&&!m&&a.cachedOptions.delete(f)}),a.onOptionDestroy(f,d)});function p(){e.disabled!==!0&&o.groupDisabled!==!0&&a.handleOptionSelect(d,!0)}return{ns:t,currentLabel:l,itemSelected:r,isDisabled:n,select:a,hoverItem:i,visible:c,hover:u,selectOptionClick:p,states:o}}});function A6e(e,t,o,l,r,n){return Xe((y(),$("li",{class:T([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...a)=>e.hoverItem&&e.hoverItem(...a)),onClick:t[1]||(t[1]=Ue((...a)=>e.selectOptionClick&&e.selectOptionClick(...a),["stop"]))},[ge(e.$slots,"default",{},()=>[C("span",null,Ce(e.currentLabel),1)])],34)),[[_t,e.visible]])}var lf=Te(T6e,[["render",A6e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const V6e=te({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Re(Ru),t=_e("select"),o=S(()=>e.props.popperClass),l=S(()=>e.props.multiple),r=S(()=>e.props.fitInputWidth),n=V("");function a(){var i;n.value=`${(i=e.selectWrapper)==null?void 0:i.offsetWidth}px`}return Ze(()=>{a(),bo(e.selectWrapper,a)}),{ns:t,minWidth:n,popperClass:o,isMultiple:l,isFitInputWidth:r}}});function O6e(e,t,o,l,r,n){return y(),$("div",{class:T([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Be({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[ge(e.$slots,"default")],6)}var P6e=Te(V6e,[["render",O6e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function L6e(e){const{t}=yt();return wt({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}const I6e=(e,t,o)=>{const{t:l}=yt(),r=_e("select");jr({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},S(()=>e.suffixTransition===!1));const n=V(null),a=V(null),i=V(null),c=V(null),u=V(null),d=V(null),p=V(-1),f=Et({query:""}),h=Et(""),{form:v,formItem:m}=So(),g=S(()=>!e.filterable||e.multiple||!t.visible),_=S(()=>e.disabled||(v==null?void 0:v.disabled)),w=S(()=>{const q=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!_.value&&t.inputHovering&&q}),b=S(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),x=S(()=>r.is("reverse",b.value&&t.visible&&e.suffixTransition)),k=S(()=>e.remote?300:0),z=S(()=>e.loading?e.loadingText||l("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||l("el.select.noMatch"):t.options.size===0?e.noDataText||l("el.select.noData"):null),M=S(()=>Array.from(t.options.values())),E=S(()=>Array.from(t.cachedOptions.values())),A=S(()=>{const q=M.value.filter(ie=>!ie.created).some(ie=>ie.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!q}),O=Xt(),D=S(()=>["small"].includes(O.value)?"small":"default"),I=S({get(){return t.visible&&z.value!==!1},set(q){t.visible=q}});ve([()=>_.value,()=>O.value,()=>v==null?void 0:v.size],()=>{Ne(()=>{N()})}),ve(()=>e.placeholder,q=>{t.cachedPlaceHolder=t.currentPlaceholder=q}),ve(()=>e.modelValue,(q,ie)=>{e.multiple&&(N(),q&&q.length>0||a.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",B(t.query))),L(),e.filterable&&!e.multiple&&(t.inputLength=20),!jo(q,ie)&&e.validateEvent&&(m==null||m.validate("change").catch(ke=>void 0))},{flush:"post",deep:!0}),ve(()=>t.visible,q=>{var ie,ke,Me;q?((ke=(ie=i.value)==null?void 0:ie.updatePopper)==null||ke.call(ie),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,e.multiple?(Me=a.value)==null||Me.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),B(t.query),!e.multiple&&!e.remote&&(f.value.query="",Ja(f),Ja(h)))):(e.filterable&&(Ye(e.filterMethod)&&e.filterMethod(""),Ye(e.remoteMethod)&&e.remoteMethod("")),a.value&&a.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,R(),Ne(()=>{a.value&&a.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),o.emit("visible-change",q)}),ve(()=>t.options.entries(),()=>{var q,ie,ke;if(!gt)return;(ie=(q=i.value)==null?void 0:q.updatePopper)==null||ie.call(q),e.multiple&&N();const Me=((ke=u.value)==null?void 0:ke.querySelectorAll("input"))||[];Array.from(Me).includes(document.activeElement)||L(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&H()},{flush:"post"}),ve(()=>t.hoverIndex,q=>{et(q)&&q>-1?p.value=M.value[q]||{}:p.value={},M.value.forEach(ie=>{ie.hover=p.value===ie})});const N=()=>{e.collapseTags&&!e.filterable||Ne(()=>{var q,ie;if(!n.value)return;const ke=n.value.$el.querySelector("input"),Me=c.value,it=Jne(O.value||(v==null?void 0:v.size));ke.style.height=`${(t.selected.length===0?it:Math.max(Me?Me.clientHeight+(Me.clientHeight>it?6:0):0,it))-2}px`,t.tagInMultiLine=Number.parseFloat(ke.style.height)>=it,t.visible&&z.value!==!1&&((ie=(q=i.value)==null?void 0:q.updatePopper)==null||ie.call(q))})},B=async q=>{if(!(t.previousQuery===q||t.isOnComposition)){if(t.previousQuery===null&&(Ye(e.filterMethod)||Ye(e.remoteMethod))){t.previousQuery=q;return}t.previousQuery=q,Ne(()=>{var ie,ke;t.visible&&((ke=(ie=i.value)==null?void 0:ie.updatePopper)==null||ke.call(ie))}),t.hoverIndex=-1,e.multiple&&e.filterable&&Ne(()=>{const ie=a.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,ie):ie,F(),N()}),e.remote&&Ye(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(q)):Ye(e.filterMethod)?(e.filterMethod(q),Ja(h)):(t.filteredOptionsCount=t.optionsCount,f.value.query=q,Ja(f),Ja(h)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Ne(),H())}},F=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=a.value.value?"":t.cachedPlaceHolder)},H=()=>{const q=M.value.filter(Me=>Me.visible&&!Me.disabled&&!Me.states.groupDisabled),ie=q.find(Me=>Me.created),ke=q[0];t.hoverIndex=ne(M.value,ie||ke)},L=()=>{var q;if(e.multiple)t.selectedLabel="";else{const ke=P(e.modelValue);(q=ke.props)!=null&&q.created?(t.createdLabel=ke.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=ke.currentLabel,t.selected=ke,e.filterable&&(t.query=t.selectedLabel);return}const ie=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(ke=>{ie.push(P(ke))}),t.selected=ie,Ne(()=>{N()})},P=q=>{let ie;const ke=Ys(q).toLowerCase()==="object",Me=Ys(q).toLowerCase()==="null",it=Ys(q).toLowerCase()==="undefined";for(let qt=t.cachedOptions.size-1;qt>=0;qt--){const dt=E.value[qt];if(ke?Pt(dt.value,e.valueKey)===Pt(q,e.valueKey):dt.value===q){ie={value:q,currentLabel:dt.currentLabel,isDisabled:dt.isDisabled};break}}if(ie)return ie;const zt=ke?q.label:!Me&&!it?q:"",Ut={value:q,currentLabel:zt};return e.multiple&&(Ut.hitState=!1),Ut},R=()=>{setTimeout(()=>{const q=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(ie=>M.value.findIndex(ke=>Pt(ke,q)===Pt(ie,q)))):t.hoverIndex=-1:t.hoverIndex=M.value.findIndex(ie=>rt(ie)===rt(t.selected))},300)},J=()=>{var q,ie;oe(),(ie=(q=i.value)==null?void 0:q.updatePopper)==null||ie.call(q),e.multiple&&!e.filterable&&N()},oe=()=>{var q;t.inputWidth=(q=n.value)==null?void 0:q.$el.getBoundingClientRect().width},G=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,B(t.query))},le=$o(()=>{G()},k.value),he=$o(q=>{B(q.target.value)},k.value),j=q=>{jo(e.modelValue,q)||o.emit(Ot,q)},re=q=>{if(q.target.value.length<=0&&!$e()){const ie=e.modelValue.slice();ie.pop(),o.emit(nt,ie),j(ie)}q.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)},Y=(q,ie)=>{const ke=t.selected.indexOf(ie);if(ke>-1&&!_.value){const Me=e.modelValue.slice();Me.splice(ke,1),o.emit(nt,Me),j(Me),o.emit("remove-tag",ie.value)}q.stopPropagation()},W=q=>{q.stopPropagation();const ie=e.multiple?[]:"";if(!Ge(ie))for(const ke of t.selected)ke.isDisabled&&ie.push(ke.value);o.emit(nt,ie),j(ie),t.hoverIndex=-1,t.visible=!1,o.emit("clear")},ce=(q,ie)=>{var ke;if(e.multiple){const Me=(e.modelValue||[]).slice(),it=ne(Me,q.value);it>-1?Me.splice(it,1):(e.multipleLimit<=0||Me.length{U(q)})},ne=(q=[],ie)=>{if(!ft(ie))return q.indexOf(ie);const ke=e.valueKey;let Me=-1;return q.some((it,zt)=>kt(Pt(it,ke))===Pt(ie,ke)?(Me=zt,!0):!1),Me},xe=()=>{t.softFocus=!0;const q=a.value||n.value;q&&(q==null||q.focus())},U=q=>{var ie,ke,Me,it,zt;const Ut=Array.isArray(q)?q[0]:q;let qt=null;if(Ut!=null&&Ut.value){const dt=M.value.filter(Dt=>Dt.value===Ut.value);dt.length>0&&(qt=dt[0].$el)}if(i.value&&qt){const dt=(it=(Me=(ke=(ie=i.value)==null?void 0:ie.popperRef)==null?void 0:ke.contentRef)==null?void 0:Me.querySelector)==null?void 0:it.call(Me,`.${r.be("dropdown","wrap")}`);dt&&K4(dt,qt)}(zt=d.value)==null||zt.handleScroll()},Q=q=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(q.value,q),t.cachedOptions.set(q.value,q)},fe=(q,ie)=>{t.options.get(q)===ie&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(q))},we=q=>{q.code!==je.backspace&&$e(!1),t.inputLength=a.value.value.length*15+20,N()},$e=q=>{if(!Array.isArray(t.selected))return;const ie=t.selected[t.selected.length-1];if(!!ie)return q===!0||q===!1?(ie.hitState=q,q):(ie.hitState=!ie.hitState,ie.hitState)},pe=q=>{const ie=q.target.value;if(q.type==="compositionend")t.isOnComposition=!1,Ne(()=>B(ie));else{const ke=ie[ie.length-1]||"";t.isOnComposition=!ku(ke)}},Se=()=>{Ne(()=>U(t.selected))},me=q=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),o.emit("focus",q))},X=()=>{var q;t.visible=!1,(q=n.value)==null||q.blur()},se=q=>{Ne(()=>{t.isSilentBlur?t.isSilentBlur=!1:o.emit("blur",q)}),t.softFocus=!1},ze=q=>{W(q)},Ve=()=>{t.visible=!1},Le=q=>{t.visible&&(q.preventDefault(),q.stopPropagation(),t.visible=!1)},Ke=q=>{var ie;q&&!t.mouseEnter||_.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!i.value||!i.value.isFocusInsideContent())&&(t.visible=!t.visible),t.visible&&((ie=a.value||n.value)==null||ie.focus()))},qe=()=>{t.visible?M.value[t.hoverIndex]&&ce(M.value[t.hoverIndex],void 0):Ke()},rt=q=>ft(q.value)?Pt(q.value,e.valueKey):q.value,be=S(()=>M.value.filter(q=>q.visible).every(q=>q.disabled)),ye=q=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!be.value){q==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):q==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const ie=M.value[t.hoverIndex];(ie.disabled===!0||ie.states.groupDisabled===!0||!ie.visible)&&ye(q),Ne(()=>U(p.value))}};return{optionsArray:M,selectSize:O,handleResize:J,debouncedOnInputChange:le,debouncedQueryChange:he,deletePrevTag:re,deleteTag:Y,deleteSelected:W,handleOptionSelect:ce,scrollToOption:U,readonly:g,resetInputHeight:N,showClose:w,iconComponent:b,iconReverse:x,showNewOption:A,collapseTagSize:D,setSelected:L,managePlaceholder:F,selectDisabled:_,emptyText:z,toggleLastOptionHitState:$e,resetInputState:we,handleComposition:pe,onOptionCreate:Q,onOptionDestroy:fe,handleMenuEnter:Se,handleFocus:me,blur:X,handleBlur:se,handleClearClick:ze,handleClose:Ve,handleKeydownEscape:Le,toggleMenu:Ke,selectOption:qe,getValueKey:rt,navigateOptions:ye,dropMenuVisible:I,queryChange:f,groupQueryChange:h,reference:n,input:a,tooltipRef:i,tags:c,selectWrapper:u,scrollbar:d,handleMouseEnter:()=>{t.mouseEnter=!0},handleMouseLeave:()=>{t.mouseEnter=!1}}},x3="ElSelect",R6e=te({name:x3,componentName:x3,components:{ElInput:mo,ElSelectMenu:P6e,ElOption:lf,ElTag:Pu,ElScrollbar:_r,ElTooltip:Ro,ElIcon:De},directives:{ClickOutside:Wr},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:ja},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},teleported:to.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Mt,default:hr},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:Mt,default:fr},tagType:{...Gp.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Pn,default:"bottom-start"}},emits:[nt,Ot,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const o=_e("select"),l=_e("input"),{t:r}=yt(),n=L6e(e),{optionsArray:a,selectSize:i,readonly:c,handleResize:u,collapseTagSize:d,debouncedOnInputChange:p,debouncedQueryChange:f,deletePrevTag:h,deleteTag:v,deleteSelected:m,handleOptionSelect:g,scrollToOption:_,setSelected:w,resetInputHeight:b,managePlaceholder:x,showClose:k,selectDisabled:z,iconComponent:M,iconReverse:E,showNewOption:A,emptyText:O,toggleLastOptionHitState:D,resetInputState:I,handleComposition:N,onOptionCreate:B,onOptionDestroy:F,handleMenuEnter:H,handleFocus:L,blur:P,handleBlur:R,handleClearClick:J,handleClose:oe,handleKeydownEscape:G,toggleMenu:le,selectOption:he,getValueKey:j,navigateOptions:re,dropMenuVisible:Y,reference:W,input:ce,tooltipRef:ne,tags:xe,selectWrapper:U,scrollbar:Q,queryChange:fe,groupQueryChange:we,handleMouseEnter:$e,handleMouseLeave:pe}=I6e(e,n,t),{focus:Se}=aae(W),{inputWidth:me,selected:X,inputLength:se,filteredOptionsCount:ze,visible:Ve,softFocus:Le,selectedLabel:Ke,hoverIndex:qe,query:rt,inputHovering:be,currentPlaceholder:ye,menuVisibleOnFocus:He,isOnComposition:Je,isSilentBlur:q,options:ie,cachedOptions:ke,optionsCount:Me,prefixWidth:it,tagInMultiLine:zt}=Gt(n),Ut=S(()=>{const Ee=[o.b()],We=s(i);return We&&Ee.push(o.m(We)),e.disabled&&Ee.push(o.m("disabled")),Ee}),qt=S(()=>({maxWidth:`${s(me)-32}px`,width:"100%"})),dt=S(()=>({maxWidth:`${s(me)>123?s(me)-123:s(me)-75}px`}));st(Ru,wt({props:e,options:ie,optionsArray:a,cachedOptions:ke,optionsCount:Me,filteredOptionsCount:ze,hoverIndex:qe,handleOptionSelect:g,onOptionCreate:B,onOptionDestroy:F,selectWrapper:U,selected:X,setSelected:w,queryChange:fe,groupQueryChange:we})),Ze(()=>{n.cachedPlaceHolder=ye.value=e.placeholder||r("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(ye.value=""),bo(U,u),e.remote&&e.multiple&&b(),Ne(()=>{const Ee=W.value&&W.value.$el;if(!!Ee&&(me.value=Ee.getBoundingClientRect().width,t.slots.prefix)){const We=Ee.querySelector(`.${l.e("prefix")}`);it.value=Math.max(We.getBoundingClientRect().width+5,30)}}),w()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(nt,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(nt,"");const Dt=S(()=>{var Ee,We;return(We=(Ee=ne.value)==null?void 0:Ee.popperRef)==null?void 0:We.contentRef});return{tagInMultiLine:zt,prefixWidth:it,selectSize:i,readonly:c,handleResize:u,collapseTagSize:d,debouncedOnInputChange:p,debouncedQueryChange:f,deletePrevTag:h,deleteTag:v,deleteSelected:m,handleOptionSelect:g,scrollToOption:_,inputWidth:me,selected:X,inputLength:se,filteredOptionsCount:ze,visible:Ve,softFocus:Le,selectedLabel:Ke,hoverIndex:qe,query:rt,inputHovering:be,currentPlaceholder:ye,menuVisibleOnFocus:He,isOnComposition:Je,isSilentBlur:q,options:ie,resetInputHeight:b,managePlaceholder:x,showClose:k,selectDisabled:z,iconComponent:M,iconReverse:E,showNewOption:A,emptyText:O,toggleLastOptionHitState:D,resetInputState:I,handleComposition:N,handleMenuEnter:H,handleFocus:L,blur:P,handleBlur:R,handleClearClick:J,handleClose:oe,handleKeydownEscape:G,toggleMenu:le,selectOption:he,getValueKey:j,navigateOptions:re,dropMenuVisible:Y,focus:Se,reference:W,input:ce,tooltipRef:ne,popperPaneRef:Dt,tags:xe,selectWrapper:U,scrollbar:Q,wrapperKls:Ut,selectTagsStyle:qt,nsSelect:o,tagTextStyle:dt,handleMouseEnter:$e,handleMouseLeave:pe}}}),H6e=["disabled","autocomplete"],N6e={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function B6e(e,t,o,l,r,n){const a=Oe("el-tag"),i=Oe("el-tooltip"),c=Oe("el-icon"),u=Oe("el-input"),d=Oe("el-option"),p=Oe("el-scrollbar"),f=Oe("el-select-menu"),h=ha("click-outside");return Xe((y(),$("div",{ref:"selectWrapper",class:T(e.wrapperKls),onMouseenter:t[22]||(t[22]=(...v)=>e.handleMouseEnter&&e.handleMouseEnter(...v)),onMouseleave:t[23]||(t[23]=(...v)=>e.handleMouseLeave&&e.handleMouseLeave(...v)),onClick:t[24]||(t[24]=Ue((...v)=>e.toggleMenu&&e.toggleMenu(...v),["stop"]))},[K(i,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:Z(()=>[C("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=v=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=v=>e.inputHovering=!1)},[e.multiple?(y(),$("div",{key:0,ref:"tags",class:T(e.nsSelect.e("tags")),style:Be(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(y(),$("span",{key:0,class:T([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[K(a,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:t[0]||(t[0]=v=>e.deleteTag(v,e.selected[0]))},{default:Z(()=>[C("span",{class:T(e.nsSelect.e("tags-text")),style:Be(e.tagTextStyle)},Ce(e.selected[0].currentLabel),7)]),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(y(),ue(a,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:Z(()=>[e.collapseTagsTooltip?(y(),ue(i,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:Z(()=>[C("span",{class:T(e.nsSelect.e("tags-text"))},"+ "+Ce(e.selected.length-1),3)]),content:Z(()=>[C("div",{class:T(e.nsSelect.e("collapse-tags"))},[(y(!0),$(Pe,null,ut(e.selected.slice(1),(v,m)=>(y(),$("div",{key:m,class:T(e.nsSelect.e("collapse-tag"))},[(y(),ue(a,{key:e.getValueKey(v),class:"in-tooltip",closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:g=>e.deleteTag(g,v)},{default:Z(()=>[C("span",{class:T(e.nsSelect.e("tags-text")),style:Be({maxWidth:e.inputWidth-75+"px"})},Ce(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(y(),$("span",{key:1,class:T(e.nsSelect.e("tags-text"))},"+ "+Ce(e.selected.length-1),3))]),_:1},8,["size","type"])):ae("v-if",!0)],2)):ae("v-if",!0),ae("
    "),e.collapseTags?ae("v-if",!0):(y(),ue(Kt,{key:1,onAfterLeave:e.resetInputHeight},{default:Z(()=>[C("span",{class:T([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(y(!0),$(Pe,null,ut(e.selected,v=>(y(),ue(a,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",onClose:m=>e.deleteTag(m,v)},{default:Z(()=>[C("span",{class:T(e.nsSelect.e("tags-text")),style:Be({maxWidth:e.inputWidth-75+"px"})},Ce(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),ae("
    "),e.filterable?Xe((y(),$("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=v=>e.query=v),type:"text",class:T([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Be({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[2]||(t[2]=(...v)=>e.handleFocus&&e.handleFocus(...v)),onBlur:t[3]||(t[3]=(...v)=>e.handleBlur&&e.handleBlur(...v)),onKeyup:t[4]||(t[4]=(...v)=>e.managePlaceholder&&e.managePlaceholder(...v)),onKeydown:[t[5]||(t[5]=(...v)=>e.resetInputState&&e.resetInputState(...v)),t[6]||(t[6]=bt(Ue(v=>e.navigateOptions("next"),["prevent"]),["down"])),t[7]||(t[7]=bt(Ue(v=>e.navigateOptions("prev"),["prevent"]),["up"])),t[8]||(t[8]=bt((...v)=>e.handleKeydownEscape&&e.handleKeydownEscape(...v),["esc"])),t[9]||(t[9]=bt(Ue((...v)=>e.selectOption&&e.selectOption(...v),["stop","prevent"]),["enter"])),t[10]||(t[10]=bt((...v)=>e.deletePrevTag&&e.deletePrevTag(...v),["delete"])),t[11]||(t[11]=bt(v=>e.visible=!1,["tab"]))],onCompositionstart:t[12]||(t[12]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionupdate:t[13]||(t[13]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionend:t[14]||(t[14]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onInput:t[15]||(t[15]=(...v)=>e.debouncedQueryChange&&e.debouncedQueryChange(...v))},null,46,H6e)),[[X2,e.query]]):ae("v-if",!0)],6)):ae("v-if",!0),K(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=v=>e.selectedLabel=v),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:T([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=bt(Ue(v=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=bt(Ue(v=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),bt(Ue(e.selectOption,["stop","prevent"]),["enter"]),bt(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=bt(v=>e.visible=!1,["tab"]))]},Br({suffix:Z(()=>[e.iconComponent&&!e.showClose?(y(),ue(c,{key:0,class:T([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:Z(()=>[(y(),ue(pt(e.iconComponent)))]),_:1},8,["class"])):ae("v-if",!0),e.showClose&&e.clearIcon?(y(),ue(c,{key:1,class:T([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:Z(()=>[(y(),ue(pt(e.clearIcon)))]),_:1},8,["class","onClick"])):ae("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:Z(()=>[C("div",N6e,[ge(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:Z(()=>[K(f,null,{default:Z(()=>[Xe(K(p,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:T([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&e.filteredOptionsCount===0)])},{default:Z(()=>[e.showNewOption?(y(),ue(d,{key:0,value:e.query,created:!0},null,8,["value"])):ae("v-if",!0),ge(e.$slots,"default")]),_:3},8,["wrap-class","view-class","class"]),[[_t,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(y(),$(Pe,{key:0},[e.$slots.empty?ge(e.$slots,"empty",{key:0}):(y(),$("p",{key:1,class:T(e.nsSelect.be("dropdown","empty"))},Ce(e.emptyText),3))],64)):ae("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","effect","transition","persistent","onShow"])],34)),[[h,e.handleClose,e.popperPaneRef]])}var D6e=Te(R6e,[["render",B6e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const F6e=te({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=_e("select"),o=V(!0),l=Qe(),r=V([]);st(Y8,wt({...Gt(e)}));const n=Re(Ru);Ze(()=>{r.value=a(l.subTree)});const a=c=>{const u=[];return Array.isArray(c.children)&&c.children.forEach(d=>{var p;d.type&&d.type.name==="ElOption"&&d.component&&d.component.proxy?u.push(d.component.proxy):(p=d.children)!=null&&p.length&&u.push(...a(d))}),u},{groupQueryChange:i}=kt(n);return ve(i,()=>{o.value=r.value.some(c=>c.visible===!0)},{flush:"post"}),{visible:o,ns:t}}});function j6e(e,t,o,l,r,n){return Xe((y(),$("ul",{class:T(e.ns.be("group","wrap"))},[C("li",{class:T(e.ns.be("group","title"))},Ce(e.label),3),C("li",null,[C("ul",{class:T(e.ns.b("group"))},[ge(e.$slots,"default")],2)])],2)),[[_t,e.visible]])}var G8=Te(F6e,[["render",j6e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const Mn=at(D6e,{Option:lf,OptionGroup:G8}),Bc=Bt(lf),K6e=Bt(G8),rf=()=>Re(xm,{}),W6e=Ae({pageSize:{type:Number,required:!0},pageSizes:{type:de(Array),default:()=>Lt([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,values:Ur}}),q6e=te({name:"ElPaginationSizes"}),U6e=te({...q6e,props:W6e,emits:["page-size-change"],setup(e,{emit:t}){const o=e,{t:l}=yt(),r=_e("pagination"),n=rf(),a=V(o.pageSize);ve(()=>o.pageSizes,(u,d)=>{if(!jo(u,d)&&Array.isArray(u)){const p=u.includes(o.pageSize)?o.pageSize:o.pageSizes[0];t("page-size-change",p)}}),ve(()=>o.pageSize,u=>{a.value=u});const i=S(()=>o.pageSizes);function c(u){var d;u!==a.value&&(a.value=u,(d=n.handleSizeChange)==null||d.call(n,Number(u)))}return(u,d)=>(y(),$("span",{class:T(s(r).e("sizes"))},[K(s(Mn),{"model-value":a.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,"validate-event":!1,onChange:c},{default:Z(()=>[(y(!0),$(Pe,null,ut(s(i),p=>(y(),ue(s(Bc),{key:p,value:p,label:p+s(l)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var Y6e=Te(U6e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const G6e=["disabled"],X6e=te({name:"ElPaginationJumper"}),J6e=te({...X6e,setup(e){const{t}=yt(),o=_e("pagination"),{pageCount:l,disabled:r,currentPage:n,changeEvent:a}=rf(),i=V(),c=S(()=>{var p;return(p=i.value)!=null?p:n==null?void 0:n.value});function u(p){i.value=+p}function d(p){p=Math.trunc(+p),a==null||a(+p),i.value=void 0}return(p,f)=>(y(),$("span",{class:T(s(o).e("jump")),disabled:s(r)},[ot(Ce(s(t)("el.pagination.goto"))+" ",1),K(s(mo),{size:"small",class:T([s(o).e("editor"),s(o).is("in-pagination")]),min:1,max:s(l),disabled:s(r),"model-value":s(c),"validate-event":!1,type:"number","onUpdate:modelValue":u,onChange:d},null,8,["class","max","disabled","model-value"]),ot(" "+Ce(s(t)("el.pagination.pageClassifier")),1)],10,G6e))}});var Z6e=Te(J6e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const Q6e=Ae({total:{type:Number,default:1e3}}),e4e=["disabled"],t4e=te({name:"ElPaginationTotal"}),o4e=te({...t4e,props:Q6e,setup(e){const{t}=yt(),o=_e("pagination"),{disabled:l}=rf();return(r,n)=>(y(),$("span",{class:T(s(o).e("total")),disabled:s(l)},Ce(s(t)("el.pagination.total",{total:r.total})),11,e4e))}});var l4e=Te(o4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const r4e=Ae({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),n4e=["onKeyup"],a4e=["aria-current","tabindex"],i4e=["tabindex"],s4e=["aria-current","tabindex"],c4e=["tabindex"],u4e=["aria-current","tabindex"],d4e=te({name:"ElPaginationPager"}),p4e=te({...d4e,props:r4e,emits:["change"],setup(e,{emit:t}){const o=e,l=_e("pager"),r=_e("icon"),n=V(!1),a=V(!1),i=V(!1),c=V(!1),u=V(!1),d=V(!1),p=S(()=>{const _=o.pagerCount,w=(_-1)/2,b=Number(o.currentPage),x=Number(o.pageCount);let k=!1,z=!1;x>_&&(b>_-w&&(k=!0),bo.disabled?-1:0);Ao(()=>{const _=(o.pagerCount-1)/2;n.value=!1,a.value=!1,o.pageCount>o.pagerCount&&(o.currentPage>o.pagerCount-_&&(n.value=!0),o.currentPagex&&(b=x)),b!==k&&t("change",b)}return(_,w)=>(y(),$("ul",{class:T(s(l).b()),onClick:g,onKeyup:bt(m,["enter"])},[_.pageCount>0?(y(),$("li",{key:0,class:T([[s(l).is("active",_.currentPage===1),s(l).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===1,tabindex:s(f)}," 1 ",10,a4e)):ae("v-if",!0),n.value?(y(),$("li",{key:1,class:T(["more","btn-quickprev",s(r).b(),s(l).is("disabled",_.disabled)]),tabindex:s(f),onMouseenter:w[0]||(w[0]=b=>h(!0)),onMouseleave:w[1]||(w[1]=b=>i.value=!1),onFocus:w[2]||(w[2]=b=>v(!0)),onBlur:w[3]||(w[3]=b=>u.value=!1)},[i.value||u.value?(y(),ue(s(zn),{key:0})):(y(),ue(s(_0),{key:1}))],42,i4e)):ae("v-if",!0),(y(!0),$(Pe,null,ut(s(p),b=>(y(),$("li",{key:b,class:T([[s(l).is("active",_.currentPage===b),s(l).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===b,tabindex:s(f)},Ce(b),11,s4e))),128)),a.value?(y(),$("li",{key:2,class:T(["more","btn-quicknext",s(r).b(),s(l).is("disabled",_.disabled)]),tabindex:s(f),onMouseenter:w[4]||(w[4]=b=>h()),onMouseleave:w[5]||(w[5]=b=>c.value=!1),onFocus:w[6]||(w[6]=b=>v()),onBlur:w[7]||(w[7]=b=>d.value=!1)},[c.value||d.value?(y(),ue(s(En),{key:0})):(y(),ue(s(_0),{key:1}))],42,c4e)):ae("v-if",!0),_.pageCount>1?(y(),$("li",{key:3,class:T([[s(l).is("active",_.currentPage===_.pageCount),s(l).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===_.pageCount,tabindex:s(f)},Ce(_.pageCount),11,u4e)):ae("v-if",!0)],42,n4e))}});var f4e=Te(p4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const _o=e=>typeof e!="number",h4e=Ae({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>typeof e=="number"&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:de(Array),default:()=>Lt([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:Mt,default:()=>ir},nextText:{type:String,default:""},nextIcon:{type:Mt,default:()=>go},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),v4e={"update:current-page":e=>typeof e=="number","update:page-size":e=>typeof e=="number","size-change":e=>typeof e=="number","current-change":e=>typeof e=="number","prev-click":e=>typeof e=="number","next-click":e=>typeof e=="number"},k3="ElPagination";var m4e=te({name:k3,props:h4e,emits:v4e,setup(e,{emit:t,slots:o}){const{t:l}=yt(),r=_e("pagination"),n=Qe().vnode.props||{},a="onUpdate:currentPage"in n||"onUpdate:current-page"in n||"onCurrentChange"in n,i="onUpdate:pageSize"in n||"onUpdate:page-size"in n||"onSizeChange"in n,c=S(()=>{if(_o(e.total)&&_o(e.pageCount)||!_o(e.currentPage)&&!a)return!1;if(e.layout.includes("sizes")){if(_o(e.pageCount)){if(!_o(e.total)&&!_o(e.pageSize)&&!i)return!1}else if(!i)return!1}return!0}),u=V(_o(e.defaultPageSize)?10:e.defaultPageSize),d=V(_o(e.defaultCurrentPage)?1:e.defaultCurrentPage),p=S({get(){return _o(e.pageSize)?u.value:e.pageSize},set(b){_o(e.pageSize)&&(u.value=b),i&&(t("update:page-size",b),t("size-change",b))}}),f=S(()=>{let b=0;return _o(e.pageCount)?_o(e.total)||(b=Math.max(1,Math.ceil(e.total/p.value))):b=e.pageCount,b}),h=S({get(){return _o(e.currentPage)?d.value:e.currentPage},set(b){let x=b;b<1?x=1:b>f.value&&(x=f.value),_o(e.currentPage)&&(d.value=x),a&&(t("update:current-page",x),t("current-change",x))}});ve(f,b=>{h.value>b&&(h.value=b)});function v(b){h.value=b}function m(b){p.value=b;const x=f.value;h.value>x&&(h.value=x)}function g(){e.disabled||(h.value-=1,t("prev-click",h.value))}function _(){e.disabled||(h.value+=1,t("next-click",h.value))}function w(b,x){b&&(b.props||(b.props={}),b.props.class=[b.props.class,x].join(" "))}return st(xm,{pageCount:f,disabled:S(()=>e.disabled),currentPage:h,changeEvent:v,handleSizeChange:m}),()=>{var b,x;if(!c.value)return l("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&f.value<=1)return null;const k=[],z=[],M=Fe("div",{class:r.e("rightwrapper")},z),E={prev:Fe(x6e,{disabled:e.disabled,currentPage:h.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:g}),jumper:Fe(Z6e),pager:Fe(f4e,{currentPage:h.value,pageCount:f.value,pagerCount:e.pagerCount,onChange:v,disabled:e.disabled}),next:Fe(E6e,{disabled:e.disabled,currentPage:h.value,pageCount:f.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:_}),sizes:Fe(Y6e,{pageSize:p.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:(x=(b=o==null?void 0:o.default)==null?void 0:b.call(o))!=null?x:null,total:Fe(l4e,{total:_o(e.total)?0:e.total})},A=e.layout.split(",").map(D=>D.trim());let O=!1;return A.forEach(D=>{if(D==="->"){O=!0;return}O?z.push(E[D]):k.push(E[D])}),w(k[0],r.is("first")),w(k[k.length-1],r.is("last")),O&&z.length>0&&(w(z[0],r.is("first")),w(z[z.length-1],r.is("last")),k.push(M)),Fe("div",{role:"pagination","aria-label":"pagination",class:[r.b(),r.is("background",e.background),{[r.m("small")]:e.small}]},k)}}});const g4e=at(m4e),b4e=Ae({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:C0,default:"primary"},cancelButtonType:{type:String,values:C0,default:"text"},icon:{type:Mt,default:()=>om},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},onConfirm:{type:de(Function)},onCancel:{type:de(Function)},teleported:to.teleported,persistent:to.persistent,width:{type:[String,Number],default:150}}),_4e=te({name:"ElPopconfirm"}),y4e=te({..._4e,props:b4e,setup(e){const t=e,{t:o}=yt(),l=_e("popconfirm"),r=V(),n=()=>{var p,f;(f=(p=r.value)==null?void 0:p.onClose)==null||f.call(p)},a=S(()=>({width:Yt(t.width)})),i=p=>{var f;(f=t.onConfirm)==null||f.call(t,p),n()},c=p=>{var f;(f=t.onCancel)==null||f.call(t,p),n()},u=S(()=>t.confirmButtonText||o("el.popconfirm.confirmButtonText")),d=S(()=>t.cancelButtonText||o("el.popconfirm.cancelButtonText"));return(p,f)=>(y(),ue(s(Ro),ht({ref_key:"tooltipRef",ref:r,trigger:"click",effect:"light"},p.$attrs,{"popper-class":`${s(l).namespace.value}-popover`,"popper-style":s(a),teleported:p.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":p.hideAfter,persistent:p.persistent}),{content:Z(()=>[C("div",{class:T(s(l).b())},[C("div",{class:T(s(l).e("main"))},[!p.hideIcon&&p.icon?(y(),ue(s(De),{key:0,class:T(s(l).e("icon")),style:Be({color:p.iconColor})},{default:Z(()=>[(y(),ue(pt(p.icon)))]),_:1},8,["class","style"])):ae("v-if",!0),ot(" "+Ce(p.title),1)],2),C("div",{class:T(s(l).e("action"))},[K(s(po),{size:"small",type:p.cancelButtonType==="text"?"":p.cancelButtonType,text:p.cancelButtonType==="text",onClick:c},{default:Z(()=>[ot(Ce(s(d)),1)]),_:1},8,["type","text"]),K(s(po),{size:"small",type:p.confirmButtonType==="text"?"":p.confirmButtonType,text:p.confirmButtonType==="text",onClick:i},{default:Z(()=>[ot(Ce(s(u)),1)]),_:1},8,["type","text"])],2)],2)]),default:Z(()=>[p.$slots.reference?ge(p.$slots,"reference",{key:0}):ae("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var w4e=Te(y4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const x4e=at(w4e),k4e=Ae({trigger:Ui.trigger,placement:dc.placement,disabled:Ui.disabled,visible:to.visible,transition:to.transition,popperOptions:dc.popperOptions,tabindex:dc.tabindex,content:to.content,popperStyle:to.popperStyle,popperClass:to.popperClass,enterable:{...to.enterable,default:!0},effect:{...to.effect,default:"light"},teleported:to.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),C4e={"update:visible":e=>Jt(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},$4e="onUpdate:visible",S4e=te({name:"ElPopover"}),z4e=te({...S4e,props:k4e,emits:C4e,setup(e,{expose:t,emit:o}){const l=e,r=S(()=>l[$4e]),n=_e("popover"),a=V(),i=S(()=>{var g;return(g=s(a))==null?void 0:g.popperRef}),c=S(()=>[{width:Yt(l.width)},l.popperStyle]),u=S(()=>[n.b(),l.popperClass,{[n.m("plain")]:!!l.content}]),d=S(()=>l.transition===`${n.namespace.value}-fade-in-linear`),p=()=>{var g;(g=a.value)==null||g.hide()},f=()=>{o("before-enter")},h=()=>{o("before-leave")},v=()=>{o("after-enter")},m=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:i,hide:p}),(g,_)=>(y(),ue(s(Ro),ht({ref_key:"tooltipRef",ref:a},g.$attrs,{trigger:g.trigger,placement:g.placement,disabled:g.disabled,visible:g.visible,transition:g.transition,"popper-options":g.popperOptions,tabindex:g.tabindex,content:g.content,offset:g.offset,"show-after":g.showAfter,"hide-after":g.hideAfter,"auto-close":g.autoClose,"show-arrow":g.showArrow,"aria-label":g.title,effect:g.effect,enterable:g.enterable,"popper-class":s(u),"popper-style":s(c),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":s(d),"onUpdate:visible":s(r),onBeforeShow:f,onBeforeHide:h,onShow:v,onHide:m}),{content:Z(()=>[g.title?(y(),$("div",{key:0,class:T(s(n).e("title")),role:"title"},Ce(g.title),3)):ae("v-if",!0),ge(g.$slots,"default",{},()=>[ot(Ce(g.content),1)])]),default:Z(()=>[g.$slots.reference?ge(g.$slots,"reference",{key:0}):ae("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var E4e=Te(z4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const C3=(e,t)=>{const o=t.arg||t.value,l=o==null?void 0:o.popperRef;l&&(l.triggerRef=e)};var M4e={mounted(e,t){C3(e,t)},updated(e,t){C3(e,t)}};const T4e="popover",X8=Yne(M4e,T4e),A4e=at(E4e,{directive:X8}),V4e=Ae({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:de(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:de([String,Array,Function]),default:""},format:{type:de(Function),default:e=>`${e}%`}}),O4e=["aria-valuenow"],P4e={viewBox:"0 0 100 100"},L4e=["d","stroke","stroke-width"],I4e=["d","stroke","opacity","stroke-linecap","stroke-width"],R4e={key:0},H4e=te({name:"ElProgress"}),N4e=te({...H4e,props:V4e,setup(e){const t=e,o={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},l=_e("progress"),r=S(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:w(t.percentage)})),n=S(()=>(t.strokeWidth/t.width*100).toFixed(1)),a=S(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(n.value)/2}`,10):0),i=S(()=>{const b=a.value,x=t.type==="dashboard";return` + M 50 50 + m 0 ${x?"":"-"}${b} + a ${b} ${b} 0 1 1 0 ${x?"-":""}${b*2} + a ${b} ${b} 0 1 1 0 ${x?"":"-"}${b*2} + `}),c=S(()=>2*Math.PI*a.value),u=S(()=>t.type==="dashboard"?.75:1),d=S(()=>`${-1*c.value*(1-u.value)/2}px`),p=S(()=>({strokeDasharray:`${c.value*u.value}px, ${c.value}px`,strokeDashoffset:d.value})),f=S(()=>({strokeDasharray:`${c.value*u.value*(t.percentage/100)}px, ${c.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=S(()=>{let b;return t.color?b=w(t.percentage):b=o[t.status]||o.default,b}),v=S(()=>t.status==="warning"?ms:t.type==="line"?t.status==="success"?_u:hr:t.status==="success"?Fa:nl),m=S(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=S(()=>t.format(t.percentage));function _(b){const x=100/b.length;return b.map((z,M)=>Ge(z)?{color:z,percentage:(M+1)*x}:z).sort((z,M)=>z.percentage-M.percentage)}const w=b=>{var x;const{color:k}=t;if(Ye(k))return k(b);if(Ge(k))return k;{const z=_(k);for(const M of z)if(M.percentage>b)return M.color;return(x=z[z.length-1])==null?void 0:x.color}};return(b,x)=>(y(),$("div",{class:T([s(l).b(),s(l).m(b.type),s(l).is(b.status),{[s(l).m("without-text")]:!b.showText,[s(l).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?(y(),$("div",{key:0,class:T(s(l).b("bar"))},[C("div",{class:T(s(l).be("bar","outer")),style:Be({height:`${b.strokeWidth}px`})},[C("div",{class:T([s(l).be("bar","inner"),{[s(l).bem("bar","inner","indeterminate")]:b.indeterminate}]),style:Be(s(r))},[(b.showText||b.$slots.default)&&b.textInside?(y(),$("div",{key:0,class:T(s(l).be("bar","innerText"))},[ge(b.$slots,"default",{percentage:b.percentage},()=>[C("span",null,Ce(s(g)),1)])],2)):ae("v-if",!0)],6)],6)],2)):(y(),$("div",{key:1,class:T(s(l).b("circle")),style:Be({height:`${b.width}px`,width:`${b.width}px`})},[(y(),$("svg",P4e,[C("path",{class:T(s(l).be("circle","track")),d:s(i),stroke:`var(${s(l).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":s(n),fill:"none",style:Be(s(p))},null,14,L4e),C("path",{class:T(s(l).be("circle","path")),d:s(i),stroke:s(h),fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":s(n),style:Be(s(f))},null,14,I4e)]))],6)),(b.showText||b.$slots.default)&&!b.textInside?(y(),$("div",{key:2,class:T(s(l).e("text")),style:Be({fontSize:`${s(m)}px`})},[ge(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(y(),ue(s(De),{key:1},{default:Z(()=>[(y(),ue(pt(s(v))))]),_:1})):(y(),$("span",R4e,Ce(s(g)),1))])],6)):ae("v-if",!0)],10,O4e))}});var B4e=Te(N4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const J8=at(B4e),D4e=Ae({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:de([Array,Object]),default:()=>Lt(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:de([Array,Object]),default:()=>[si,si,si]},voidIcon:{type:Mt,default:()=>cm},disabledVoidIcon:{type:Mt,default:()=>si},disabled:{type:Boolean},allowHalf:{type:Boolean},showText:{type:Boolean},showScore:{type:Boolean},textColor:{type:String,default:""},texts:{type:de(Array),default:()=>Lt(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:{type:String,validator:ja},label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),F4e={[Ot]:e=>et(e),[nt]:e=>et(e)},j4e=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],K4e=["onMousemove","onClick"],W4e=te({name:"ElRate"}),q4e=te({...W4e,props:D4e,emits:F4e,setup(e,{expose:t,emit:o}){const l=e;function r(H,L){const P=oe=>ft(oe),R=Object.keys(L).map(oe=>+oe).filter(oe=>{const G=L[oe];return(P(G)?G.excluded:!1)?Hoe-G),J=L[R[0]];return P(J)&&J.value||J}const n=Re(On,void 0),a=Re(Bl,void 0),i=Xt(),c=_e("rate"),{inputId:u,isLabeledByFormItem:d}=Yr(l,{formItemContext:a}),p=V(l.modelValue),f=V(-1),h=V(!0),v=S(()=>[c.b(),c.m(i.value)]),m=S(()=>l.disabled||(n==null?void 0:n.disabled)),g=S(()=>c.cssVarBlock({"void-color":l.voidColor,"disabled-void-color":l.disabledVoidColor,"fill-color":x.value})),_=S(()=>{let H="";return l.showScore?H=l.scoreTemplate.replace(/\{\s*value\s*\}/,m.value?`${l.modelValue}`:`${p.value}`):l.showText&&(H=l.texts[Math.ceil(p.value)-1]),H}),w=S(()=>l.modelValue*100-Math.floor(l.modelValue)*100),b=S(()=>Ie(l.colors)?{[l.lowThreshold]:l.colors[0],[l.highThreshold]:{value:l.colors[1],excluded:!0},[l.max]:l.colors[2]}:l.colors),x=S(()=>{const H=r(p.value,b.value);return ft(H)?"":H}),k=S(()=>{let H="";return m.value?H=`${w.value}%`:l.allowHalf&&(H="50%"),{color:x.value,width:H}}),z=S(()=>{let H=Ie(l.icons)?[...l.icons]:{...l.icons};return H=bl(H),Ie(H)?{[l.lowThreshold]:H[0],[l.highThreshold]:{value:H[1],excluded:!0},[l.max]:H[2]}:H}),M=S(()=>r(l.modelValue,z.value)),E=S(()=>m.value?Ge(l.disabledVoidIcon)?l.disabledVoidIcon:bl(l.disabledVoidIcon):Ge(l.voidIcon)?l.voidIcon:bl(l.voidIcon)),A=S(()=>r(p.value,z.value));function O(H){const L=m.value&&w.value>0&&H-1l.modelValue,P=l.allowHalf&&h.value&&H-.5<=p.value&&H>p.value;return L||P}function D(H){l.clearable&&H===l.modelValue&&(H=0),o(nt,H),l.modelValue!==H&&o("change",H)}function I(H){m.value||(l.allowHalf&&h.value?D(p.value):D(H))}function N(H){if(m.value)return;let L=p.value;const P=H.code;return P===je.up||P===je.right?(l.allowHalf?L+=.5:L+=1,H.stopPropagation(),H.preventDefault()):(P===je.left||P===je.down)&&(l.allowHalf?L-=.5:L-=1,H.stopPropagation(),H.preventDefault()),L=L<0?0:L,L=L>l.max?l.max:L,o(nt,L),o("change",L),L}function B(H,L){if(!m.value){if(l.allowHalf){let P=L.target;_l(P,c.e("item"))&&(P=P.querySelector(`.${c.e("icon")}`)),(P.clientWidth===0||_l(P,c.e("decimal")))&&(P=P.parentNode),h.value=L.offsetX*2<=P.clientWidth,p.value=h.value?H-.5:H}else p.value=H;f.value=H}}function F(){m.value||(l.allowHalf&&(h.value=l.modelValue!==Math.floor(l.modelValue)),p.value=l.modelValue,f.value=-1)}return ve(()=>l.modelValue,H=>{p.value=H,h.value=l.modelValue!==Math.floor(l.modelValue)}),l.modelValue||o(nt,0),t({setCurrentValue:B,resetCurrentValue:F}),(H,L)=>{var P;return y(),$("div",{id:s(u),class:T([s(v),s(c).is("disabled",s(m))]),role:"slider","aria-label":s(d)?void 0:H.label||"rating","aria-labelledby":s(d)?(P=s(a))==null?void 0:P.labelId:void 0,"aria-valuenow":p.value,"aria-valuetext":s(_)||void 0,"aria-valuemin":"0","aria-valuemax":H.max,tabindex:"0",style:Be(s(g)),onKeydown:N},[(y(!0),$(Pe,null,ut(H.max,(R,J)=>(y(),$("span",{key:J,class:T(s(c).e("item")),onMousemove:oe=>B(R,oe),onMouseleave:F,onClick:oe=>I(R)},[K(s(De),{class:T([s(c).e("icon"),{hover:f.value===R},s(c).is("active",R<=p.value)])},{default:Z(()=>[O(R)?ae("v-if",!0):(y(),$(Pe,{key:0},[Xe((y(),ue(pt(s(A)),null,null,512)),[[_t,R<=p.value]]),Xe((y(),ue(pt(s(E)),null,null,512)),[[_t,!(R<=p.value)]])],64)),O(R)?(y(),ue(s(De),{key:1,style:Be(s(k)),class:T([s(c).e("icon"),s(c).e("decimal")])},{default:Z(()=>[(y(),ue(pt(s(M))))]),_:1},8,["style","class"])):ae("v-if",!0)]),_:2},1032,["class"])],42,K4e))),128)),H.showText||H.showScore?(y(),$("span",{key:0,class:T(s(c).e("text"))},Ce(s(_)),3)):ae("v-if",!0)],46,j4e)}}});var U4e=Te(q4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const Y4e=at(U4e),Xn={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},$3={[Xn.success]:Y4,[Xn.warning]:ms,[Xn.error]:yu,[Xn.info]:wu},G4e=Ae({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),X4e=te({name:"ElResult"}),J4e=te({...X4e,props:G4e,setup(e){const t=e,o=_e("result"),l=S(()=>{const r=t.icon,n=r&&Xn[r]?Xn[r]:"icon-info",a=$3[n]||$3["icon-info"];return{class:n,component:a}});return(r,n)=>(y(),$("div",{class:T(s(o).b())},[C("div",{class:T(s(o).e("icon"))},[ge(r.$slots,"icon",{},()=>[s(l).component?(y(),ue(pt(s(l).component),{key:0,class:T(s(l).class)},null,8,["class"])):ae("v-if",!0)])],2),r.title||r.$slots.title?(y(),$("div",{key:0,class:T(s(o).e("title"))},[ge(r.$slots,"title",{},()=>[C("p",null,Ce(r.title),1)])],2)):ae("v-if",!0),r.subTitle||r.$slots["sub-title"]?(y(),$("div",{key:1,class:T(s(o).e("subtitle"))},[ge(r.$slots,"sub-title",{},()=>[C("p",null,Ce(r.subTitle),1)])],2)):ae("v-if",!0),r.$slots.extra?(y(),$("div",{key:2,class:T(s(o).e("extra"))},[ge(r.$slots,"extra")],2)):ae("v-if",!0)],2))}});var Z4e=Te(J4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const Q4e=at(Z4e),eme=["start","center","end","space-around","space-between","space-evenly"],tme=["top","middle","bottom"],ome=Ae({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:eme,default:"start"},align:{type:String,values:tme,default:"top"}}),lme=te({name:"ElRow"}),rme=te({...lme,props:ome,setup(e){const t=e,o=_e("row"),l=S(()=>t.gutter);st(Cm,{gutter:l});const r=S(()=>{const n={};return t.gutter&&(n.marginRight=n.marginLeft=`-${t.gutter/2}px`),n});return(n,a)=>(y(),ue(pt(n.tag),{class:T([s(o).b(),s(o).is(`justify-${t.justify}`,n.justify!=="start"),s(o).is(`align-${t.align}`,n.align!=="top")]),style:Be(s(r))},{default:Z(()=>[ge(n.$slots,"default")]),_:3},8,["class","style"]))}});var nme=Te(rme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const ame=at(nme);var S3=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ime(e,t){return!!(e===t||S3(e)&&S3(t))}function sme(e,t){if(e.length!==t.length)return!1;for(var o=0;o{const t=Qe().proxy.$props;return S(()=>{const o=(l,r,n)=>({});return t.perfMode?vu(o):cme(o)})},Y0=50,Dc="itemRendered",Fc="scroll",Jn="forward",jc="backward",Qo="auto",Hu="smart",Xi="start",Pl="center",Ji="end",za="horizontal",nf="vertical",ume="ltr",ca="rtl",Zi="negative",af="positive-ascending",sf="positive-descending",dme={[za]:"left",[nf]:"top"},pme=20,fme={[za]:"deltaX",[nf]:"deltaY"},hme=({atEndEdge:e,atStartEdge:t,layout:o},l)=>{let r,n=0;const a=c=>c<0&&t.value||c>0&&e.value;return{hasReachedEdge:a,onWheel:c=>{Cp(r);const u=c[fme[o.value]];a(n)&&a(n+u)||(n+=u,xp()||c.preventDefault(),r=kp(()=>{l(n),n=0}))}}},G0=Sl({type:de([Number,Function]),required:!0}),X0=Sl({type:Number}),J0=Sl({type:Number,default:2}),vme=Sl({type:String,values:["ltr","rtl"],default:"ltr"}),Z0=Sl({type:Number,default:0}),Kc=Sl({type:Number,required:!0}),Q8=Sl({type:String,values:["horizontal","vertical"],default:nf}),eb=Ae({className:{type:String,default:""},containerElement:{type:de([String,Object]),default:"div"},data:{type:de(Array),default:()=>Lt([])},direction:vme,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:de([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),tb=Ae({cache:J0,estimatedItemSize:X0,layout:Q8,initScrollOffset:Z0,total:Kc,itemSize:G0,...eb}),Q0={type:Number,default:6},ob={type:Number,default:0},lb={type:Number,default:2},yn=Ae({columnCache:J0,columnWidth:G0,estimatedColumnWidth:X0,estimatedRowHeight:X0,initScrollLeft:Z0,initScrollTop:Z0,itemKey:{type:de(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:J0,rowHeight:G0,totalColumn:Kc,totalRow:Kc,hScrollbarSize:Q0,vScrollbarSize:Q0,scrollbarStartGap:ob,scrollbarEndGap:lb,...eb}),rb=Ae({alwaysOn:Boolean,class:String,layout:Q8,total:Kc,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:Q0,startGap:ob,endGap:lb,visible:Boolean}),fn=(e,t)=>ee===ume||e===ca||e===za,z3=e=>e===ca;let Hn=null;function Wc(e=!1){if(Hn===null||e){const t=document.createElement("div"),o=t.style;o.width="50px",o.height="50px",o.overflow="scroll",o.direction="rtl";const l=document.createElement("div"),r=l.style;return r.width="100px",r.height="100px",t.appendChild(l),document.body.appendChild(t),t.scrollLeft>0?Hn=sf:(t.scrollLeft=1,t.scrollLeft===0?Hn=Zi:Hn=af),document.body.removeChild(t),Hn}return Hn}function mme({move:e,size:t,bar:o},l){const r={},n=`translate${o.axis}(${e}px)`;return r[o.size]=t,r.transform=n,r.msTransform=n,r.webkitTransform=n,l==="horizontal"?r.height="100%":r.width="100%",r}const e2=te({name:"ElVirtualScrollBar",props:rb,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const o=S(()=>e.startGap+e.endGap),l=_e("virtual-scrollbar"),r=_e("scrollbar"),n=V(),a=V();let i=null,c=null;const u=wt({isDragging:!1,traveled:0}),d=S(()=>Jm[e.layout]),p=S(()=>e.clientSize-s(o)),f=S(()=>({position:"absolute",width:`${za===e.layout?p.value:e.scrollbarSize}px`,height:`${za===e.layout?e.scrollbarSize:p.value}px`,[dme[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=S(()=>{const z=e.ratio,M=e.clientSize;if(z>=100)return Number.POSITIVE_INFINITY;if(z>=50)return z*M/100;const E=M/3;return Math.floor(Math.min(Math.max(z*M,pme),E))}),v=S(()=>{if(!Number.isFinite(h.value))return{display:"none"};const z=`${h.value}px`;return mme({bar:d.value,size:z,move:u.traveled},e.layout)}),m=S(()=>Math.floor(e.clientSize-h.value-s(o))),g=()=>{window.addEventListener("mousemove",x),window.addEventListener("mouseup",b);const z=s(a);!z||(c=document.onselectstart,document.onselectstart=()=>!1,z.addEventListener("touchmove",x),z.addEventListener("touchend",b))},_=()=>{window.removeEventListener("mousemove",x),window.removeEventListener("mouseup",b),document.onselectstart=c,c=null;const z=s(a);!z||(z.removeEventListener("touchmove",x),z.removeEventListener("touchend",b))},w=z=>{z.stopImmediatePropagation(),!(z.ctrlKey||[1,2].includes(z.button))&&(u.isDragging=!0,u[d.value.axis]=z.currentTarget[d.value.offset]-(z[d.value.client]-z.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),g())},b=()=>{u.isDragging=!1,u[d.value.axis]=0,t("stop-move"),_()},x=z=>{const{isDragging:M}=u;if(!M||!a.value||!n.value)return;const E=u[d.value.axis];if(!E)return;Cp(i);const A=(n.value.getBoundingClientRect()[d.value.direction]-z[d.value.client])*-1,O=a.value[d.value.offset]-E,D=A-O;i=kp(()=>{u.traveled=Math.max(e.startGap,Math.min(D,m.value)),t("scroll",D,m.value)})},k=z=>{const M=Math.abs(z.target.getBoundingClientRect()[d.value.direction]-z[d.value.client]),E=a.value[d.value.offset]/2,A=M-E;u.traveled=Math.max(0,Math.min(A,m.value)),t("scroll",A,m.value)};return ve(()=>e.scrollFrom,z=>{u.isDragging||(u.traveled=Math.ceil(z*m.value))}),It(()=>{_()}),()=>Fe("div",{role:"presentation",ref:n,class:[l.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:f.value,onMousedown:Ue(k,["stop","prevent"]),onTouchstartPrevent:w},Fe("div",{ref:a,class:r.e("thumb"),style:v.value,onMousedown:w},[]))}}),nb=({name:e,getOffset:t,getItemSize:o,getItemOffset:l,getEstimatedTotalSize:r,getStartIndexForOffset:n,getStopIndexForStartIndex:a,initCache:i,clearCache:c,validateProps:u})=>te({name:e!=null?e:"ElVirtualList",props:tb,emits:[Dc,Fc],setup(d,{emit:p,expose:f}){u(d);const h=Qe(),v=_e("vl"),m=V(i(d,h)),g=Z8(),_=V(),w=V(),b=V(),x=V({isScrolling:!1,scrollDir:"forward",scrollOffset:et(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),k=S(()=>{const{total:le,cache:he}=d,{isScrolling:j,scrollDir:re,scrollOffset:Y}=s(x);if(le===0)return[0,0,0,0];const W=n(d,Y,s(m)),ce=a(d,W,Y,s(m)),ne=!j||re===jc?Math.max(1,he):1,xe=!j||re===Jn?Math.max(1,he):1;return[Math.max(0,W-ne),Math.max(0,Math.min(le-1,ce+xe)),W,ce]}),z=S(()=>r(d,s(m))),M=S(()=>Qi(d.layout)),E=S(()=>[{position:"relative",[`overflow-${M.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:et(d.height)?`${d.height}px`:d.height,width:et(d.width)?`${d.width}px`:d.width},d.style]),A=S(()=>{const le=s(z),he=s(M);return{height:he?"100%":`${le}px`,pointerEvents:s(x).isScrolling?"none":void 0,width:he?`${le}px`:"100%"}}),O=S(()=>M.value?d.width:d.height),{onWheel:D}=hme({atStartEdge:S(()=>x.value.scrollOffset<=0),atEndEdge:S(()=>x.value.scrollOffset>=z.value),layout:S(()=>d.layout)},le=>{var he,j;(j=(he=b.value).onMouseUp)==null||j.call(he),L(Math.min(x.value.scrollOffset+le,z.value-O.value))}),I=()=>{const{total:le}=d;if(le>0){const[Y,W,ce,ne]=s(k);p(Dc,Y,W,ce,ne)}const{scrollDir:he,scrollOffset:j,updateRequested:re}=s(x);p(Fc,he,j,re)},N=le=>{const{clientHeight:he,scrollHeight:j,scrollTop:re}=le.currentTarget,Y=s(x);if(Y.scrollOffset===re)return;const W=Math.max(0,Math.min(re,j-he));x.value={...Y,isScrolling:!0,scrollDir:fn(Y.scrollOffset,W),scrollOffset:W,updateRequested:!1},Ne(J)},B=le=>{const{clientWidth:he,scrollLeft:j,scrollWidth:re}=le.currentTarget,Y=s(x);if(Y.scrollOffset===j)return;const{direction:W}=d;let ce=j;if(W===ca)switch(Wc()){case Zi:{ce=-j;break}case sf:{ce=re-he-j;break}}ce=Math.max(0,Math.min(ce,re-he)),x.value={...Y,isScrolling:!0,scrollDir:fn(Y.scrollOffset,ce),scrollOffset:ce,updateRequested:!1},Ne(J)},F=le=>{s(M)?B(le):N(le),I()},H=(le,he)=>{const j=(z.value-O.value)/he*le;L(Math.min(z.value-O.value,j))},L=le=>{le=Math.max(le,0),le!==s(x).scrollOffset&&(x.value={...s(x),scrollOffset:le,scrollDir:fn(s(x).scrollOffset,le),updateRequested:!0},Ne(J))},P=(le,he=Qo)=>{const{scrollOffset:j}=s(x);le=Math.max(0,Math.min(le,d.total-1)),L(t(d,le,he,j,s(m)))},R=le=>{const{direction:he,itemSize:j,layout:re}=d,Y=g.value(c&&j,c&&re,c&&he);let W;if(mt(Y,String(le)))W=Y[le];else{const ce=l(d,le,s(m)),ne=o(d,le,s(m)),xe=s(M),U=he===ca,Q=xe?ce:0;Y[le]=W={position:"absolute",left:U?void 0:`${Q}px`,right:U?`${Q}px`:void 0,top:xe?0:`${ce}px`,height:xe?"100%":`${ne}px`,width:xe?`${ne}px`:"100%"}}return W},J=()=>{x.value.isScrolling=!1,Ne(()=>{g.value(-1,null,null)})},oe=()=>{const le=_.value;le&&(le.scrollTop=0)};Ze(()=>{if(!gt)return;const{initScrollOffset:le}=d,he=s(_);et(le)&&he&&(s(M)?he.scrollLeft=le:he.scrollTop=le),I()}),jl(()=>{const{direction:le,layout:he}=d,{scrollOffset:j,updateRequested:re}=s(x),Y=s(_);if(re&&Y)if(he===za)if(le===ca)switch(Wc()){case Zi:{Y.scrollLeft=-j;break}case af:{Y.scrollLeft=j;break}default:{const{clientWidth:W,scrollWidth:ce}=Y;Y.scrollLeft=ce-W-j;break}}else Y.scrollLeft=j;else Y.scrollTop=j});const G={ns:v,clientSize:O,estimatedTotalSize:z,windowStyle:E,windowRef:_,innerRef:w,innerStyle:A,itemsToRender:k,scrollbarRef:b,states:x,getItemStyle:R,onScroll:F,onScrollbarScroll:H,onWheel:D,scrollTo:L,scrollToItem:P,resetScrollTop:oe};return f({windowRef:_,innerRef:w,getItemStyleCache:g,scrollTo:L,scrollToItem:P,resetScrollTop:oe,states:x}),G},render(d){var p;const{$slots:f,className:h,clientSize:v,containerElement:m,data:g,getItemStyle:_,innerElement:w,itemsToRender:b,innerStyle:x,layout:k,total:z,onScroll:M,onScrollbarScroll:E,onWheel:A,states:O,useIsScrolling:D,windowStyle:I,ns:N}=d,[B,F]=b,H=pt(m),L=pt(w),P=[];if(z>0)for(let G=B;G<=F;G++)P.push((p=f.default)==null?void 0:p.call(f,{data:g,key:G,index:G,isScrolling:D?O.isScrolling:void 0,style:_(G)}));const R=[Fe(L,{style:x,ref:"innerRef"},Ge(L)?P:{default:()=>P})],J=Fe(e2,{ref:"scrollbarRef",clientSize:v,layout:k,onScroll:E,ratio:v*100/this.estimatedTotalSize,scrollFrom:O.scrollOffset/(this.estimatedTotalSize-v),total:z}),oe=Fe(H,{class:[N.e("window"),h],style:I,onScroll:M,onWheel:A,ref:"windowRef",key:0},Ge(H)?[R]:{default:()=>[R]});return Fe("div",{key:0,class:[N.e("wrapper"),O.scrollbarAlwaysOn?"always-on":""]},[oe,J])}}),ab=nb({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:o,layout:l,width:r},n,a,i)=>{const c=Qi(l)?r:e,u=Math.max(0,t*o-c),d=Math.min(u,n*o),p=Math.max(0,(n+1)*o-c);switch(a===Hu&&(i>=p-c&&i<=d+c?a=Qo:a=Pl),a){case Xi:return d;case Ji:return p;case Pl:{const f=Math.round(p+(d-p)/2);return fu+Math.floor(c/2)?u:f}case Qo:default:return i>=p&&i<=d?i:iMath.max(0,Math.min(e-1,Math.floor(o/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:o,layout:l,width:r},n,a)=>{const i=n*o,c=Qi(l)?r:e,u=Math.ceil((c+a-i)/o);return Math.max(0,Math.min(t-1,n+u-1))},initCache(){},clearCache:!0,validateProps(){}}),Zn=(e,t,o)=>{const{itemSize:l}=e,{items:r,lastVisitedIndex:n}=o;if(t>n){let a=0;if(n>=0){const i=r[n];a=i.offset+i.size}for(let i=n+1;i<=t;i++){const c=l(i);r[i]={offset:a,size:c},a+=c}o.lastVisitedIndex=t}return r[t]},gme=(e,t,o)=>{const{items:l,lastVisitedIndex:r}=t;return(r>0?l[r].offset:0)>=o?ib(e,t,0,r,o):bme(e,t,Math.max(0,r),o)},ib=(e,t,o,l,r)=>{for(;o<=l;){const n=o+Math.floor((l-o)/2),a=Zn(e,n,t).offset;if(a===r)return n;ar&&(l=n-1)}return Math.max(0,o-1)},bme=(e,t,o,l)=>{const{total:r}=e;let n=1;for(;o{let r=0;if(l>=e&&(l=e-1),l>=0){const i=t[l];r=i.offset+i.size}const a=(e-l-1)*o;return r+a},_me=nb({name:"ElDynamicSizeList",getItemOffset:(e,t,o)=>Zn(e,t,o).offset,getItemSize:(e,t,{items:o})=>o[t].size,getEstimatedTotalSize:E3,getOffset:(e,t,o,l,r)=>{const{height:n,layout:a,width:i}=e,c=Qi(a)?i:n,u=Zn(e,t,r),d=E3(e,r),p=Math.max(0,Math.min(d-c,u.offset)),f=Math.max(0,u.offset-c+u.size);switch(o===Hu&&(l>=f-c&&l<=p+c?o=Qo:o=Pl),o){case Xi:return p;case Ji:return f;case Pl:return Math.round(f+(p-f)/2);case Qo:default:return l>=f&&l<=p?l:lgme(e,o,t),getStopIndexForStartIndex:(e,t,o,l)=>{const{height:r,total:n,layout:a,width:i}=e,c=Qi(a)?i:r,u=Zn(e,t,l),d=o+c;let p=u.offset+u.size,f=t;for(;f{var n,a;o.lastVisitedIndex=Math.min(o.lastVisitedIndex,l-1),(n=t.exposed)==null||n.getItemStyleCache(-1),r&&((a=t.proxy)==null||a.$forceUpdate())},o},clearCache:!1,validateProps:({itemSize:e})=>{}}),yme=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:o,atYStartEdge:l},r)=>{let n=null,a=0,i=0;const c=(d,p)=>{const f=d<0&&t.value||d>0&&e.value,h=p<0&&l.value||p>0&&o.value;return f&&h};return{hasReachedEdge:c,onWheel:d=>{Cp(n);let p=d.deltaX,f=d.deltaY;Math.abs(p)>Math.abs(f)?f=0:p=0,d.shiftKey&&f!==0&&(p=f,f=0),!(c(a,i)&&c(a+p,i+f))&&(a+=p,i+=f,xp()||d.preventDefault(),n=kp(()=>{r(a,i),a=0,i=0}))}}},sb=({name:e,clearCache:t,getColumnPosition:o,getColumnStartIndexForOffset:l,getColumnStopIndexForStartIndex:r,getEstimatedTotalHeight:n,getEstimatedTotalWidth:a,getColumnOffset:i,getRowOffset:c,getRowPosition:u,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:p,initCache:f,injectToInstance:h,validateProps:v})=>te({name:e!=null?e:"ElVirtualList",props:yn,emits:[Dc,Fc],setup(m,{emit:g,expose:_,slots:w}){const b=_e("vl");v(m);const x=Qe(),k=V(f(m,x));h==null||h(x,k);const z=V(),M=V(),E=V(),A=V(null),O=V({isScrolling:!1,scrollLeft:et(m.initScrollLeft)?m.initScrollLeft:0,scrollTop:et(m.initScrollTop)?m.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Jn,yAxisScrollDir:Jn}),D=Z8(),I=S(()=>Number.parseInt(`${m.height}`,10)),N=S(()=>Number.parseInt(`${m.width}`,10)),B=S(()=>{const{totalColumn:pe,totalRow:Se,columnCache:me}=m,{isScrolling:X,xAxisScrollDir:se,scrollLeft:ze}=s(O);if(pe===0||Se===0)return[0,0,0,0];const Ve=l(m,ze,s(k)),Le=r(m,Ve,ze,s(k)),Ke=!X||se===jc?Math.max(1,me):1,qe=!X||se===Jn?Math.max(1,me):1;return[Math.max(0,Ve-Ke),Math.max(0,Math.min(pe-1,Le+qe)),Ve,Le]}),F=S(()=>{const{totalColumn:pe,totalRow:Se,rowCache:me}=m,{isScrolling:X,yAxisScrollDir:se,scrollTop:ze}=s(O);if(pe===0||Se===0)return[0,0,0,0];const Ve=d(m,ze,s(k)),Le=p(m,Ve,ze,s(k)),Ke=!X||se===jc?Math.max(1,me):1,qe=!X||se===Jn?Math.max(1,me):1;return[Math.max(0,Ve-Ke),Math.max(0,Math.min(Se-1,Le+qe)),Ve,Le]}),H=S(()=>n(m,s(k))),L=S(()=>a(m,s(k))),P=S(()=>{var pe;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:m.direction,height:et(m.height)?`${m.height}px`:m.height,width:et(m.width)?`${m.width}px`:m.width},(pe=m.style)!=null?pe:{}]}),R=S(()=>{const pe=`${s(L)}px`;return{height:`${s(H)}px`,pointerEvents:s(O).isScrolling?"none":void 0,width:pe}}),J=()=>{const{totalColumn:pe,totalRow:Se}=m;if(pe>0&&Se>0){const[Le,Ke,qe,rt]=s(B),[be,ye,He,Je]=s(F);g(Dc,{columnCacheStart:Le,columnCacheEnd:Ke,rowCacheStart:be,rowCacheEnd:ye,columnVisibleStart:qe,columnVisibleEnd:rt,rowVisibleStart:He,rowVisibleEnd:Je})}const{scrollLeft:me,scrollTop:X,updateRequested:se,xAxisScrollDir:ze,yAxisScrollDir:Ve}=s(O);g(Fc,{xAxisScrollDir:ze,scrollLeft:me,yAxisScrollDir:Ve,scrollTop:X,updateRequested:se})},oe=pe=>{const{clientHeight:Se,clientWidth:me,scrollHeight:X,scrollLeft:se,scrollTop:ze,scrollWidth:Ve}=pe.currentTarget,Le=s(O);if(Le.scrollTop===ze&&Le.scrollLeft===se)return;let Ke=se;if(z3(m.direction))switch(Wc()){case Zi:Ke=-se;break;case sf:Ke=Ve-me-se;break}O.value={...Le,isScrolling:!0,scrollLeft:Ke,scrollTop:Math.max(0,Math.min(ze,X-Se)),updateRequested:!0,xAxisScrollDir:fn(Le.scrollLeft,Ke),yAxisScrollDir:fn(Le.scrollTop,ze)},Ne(()=>W()),ce(),J()},G=(pe,Se)=>{const me=s(I),X=(H.value-me)/Se*pe;j({scrollTop:Math.min(H.value-me,X)})},le=(pe,Se)=>{const me=s(N),X=(L.value-me)/Se*pe;j({scrollLeft:Math.min(L.value-me,X)})},{onWheel:he}=yme({atXStartEdge:S(()=>O.value.scrollLeft<=0),atXEndEdge:S(()=>O.value.scrollLeft>=L.value),atYStartEdge:S(()=>O.value.scrollTop<=0),atYEndEdge:S(()=>O.value.scrollTop>=H.value)},(pe,Se)=>{var me,X,se,ze;(X=(me=M.value)==null?void 0:me.onMouseUp)==null||X.call(me),(ze=(se=M.value)==null?void 0:se.onMouseUp)==null||ze.call(se);const Ve=s(N),Le=s(I);j({scrollLeft:Math.min(O.value.scrollLeft+pe,L.value-Ve),scrollTop:Math.min(O.value.scrollTop+Se,H.value-Le)})}),j=({scrollLeft:pe=O.value.scrollLeft,scrollTop:Se=O.value.scrollTop})=>{pe=Math.max(pe,0),Se=Math.max(Se,0);const me=s(O);Se===me.scrollTop&&pe===me.scrollLeft||(O.value={...me,xAxisScrollDir:fn(me.scrollLeft,pe),yAxisScrollDir:fn(me.scrollTop,Se),scrollLeft:pe,scrollTop:Se,updateRequested:!0},Ne(()=>W()),ce(),J())},re=(pe=0,Se=0,me=Qo)=>{const X=s(O);Se=Math.max(0,Math.min(Se,m.totalColumn-1)),pe=Math.max(0,Math.min(pe,m.totalRow-1));const se=j4(b.namespace.value),ze=s(k),Ve=n(m,ze),Le=a(m,ze);j({scrollLeft:i(m,Se,me,X.scrollLeft,ze,Le>m.width?se:0),scrollTop:c(m,pe,me,X.scrollTop,ze,Ve>m.height?se:0)})},Y=(pe,Se)=>{const{columnWidth:me,direction:X,rowHeight:se}=m,ze=D.value(t&&me,t&&se,t&&X),Ve=`${pe},${Se}`;if(mt(ze,Ve))return ze[Ve];{const[,Le]=o(m,Se,s(k)),Ke=s(k),qe=z3(X),[rt,be]=u(m,pe,Ke),[ye]=o(m,Se,Ke);return ze[Ve]={position:"absolute",left:qe?void 0:`${Le}px`,right:qe?`${Le}px`:void 0,top:`${be}px`,height:`${rt}px`,width:`${ye}px`},ze[Ve]}},W=()=>{O.value.isScrolling=!1,Ne(()=>{D.value(-1,null,null)})};Ze(()=>{if(!gt)return;const{initScrollLeft:pe,initScrollTop:Se}=m,me=s(z);me&&(et(pe)&&(me.scrollLeft=pe),et(Se)&&(me.scrollTop=Se)),J()});const ce=()=>{const{direction:pe}=m,{scrollLeft:Se,scrollTop:me,updateRequested:X}=s(O),se=s(z);if(X&&se){if(pe===ca)switch(Wc()){case Zi:{se.scrollLeft=-Se;break}case af:{se.scrollLeft=Se;break}default:{const{clientWidth:ze,scrollWidth:Ve}=se;se.scrollLeft=Ve-ze-Se;break}}else se.scrollLeft=Math.max(0,Se);se.scrollTop=Math.max(0,me)}},{resetAfterColumnIndex:ne,resetAfterRowIndex:xe,resetAfter:U}=x.proxy;_({windowRef:z,innerRef:A,getItemStyleCache:D,scrollTo:j,scrollToItem:re,states:O,resetAfterColumnIndex:ne,resetAfterRowIndex:xe,resetAfter:U});const Q=()=>{const{scrollbarAlwaysOn:pe,scrollbarStartGap:Se,scrollbarEndGap:me,totalColumn:X,totalRow:se}=m,ze=s(N),Ve=s(I),Le=s(L),Ke=s(H),{scrollLeft:qe,scrollTop:rt}=s(O),be=Fe(e2,{ref:M,alwaysOn:pe,startGap:Se,endGap:me,class:b.e("horizontal"),clientSize:ze,layout:"horizontal",onScroll:le,ratio:ze*100/Le,scrollFrom:qe/(Le-ze),total:se,visible:!0}),ye=Fe(e2,{ref:E,alwaysOn:pe,startGap:Se,endGap:me,class:b.e("vertical"),clientSize:Ve,layout:"vertical",onScroll:G,ratio:Ve*100/Ke,scrollFrom:rt/(Ke-Ve),total:X,visible:!0});return{horizontalScrollbar:be,verticalScrollbar:ye}},fe=()=>{var pe;const[Se,me]=s(B),[X,se]=s(F),{data:ze,totalColumn:Ve,totalRow:Le,useIsScrolling:Ke,itemKey:qe}=m,rt=[];if(Le>0&&Ve>0)for(let be=X;be<=se;be++)for(let ye=Se;ye<=me;ye++)rt.push((pe=w.default)==null?void 0:pe.call(w,{columnIndex:ye,data:ze,key:qe({columnIndex:ye,data:ze,rowIndex:be}),isScrolling:Ke?s(O).isScrolling:void 0,style:Y(be,ye),rowIndex:be}));return rt},we=()=>{const pe=pt(m.innerElement),Se=fe();return[Fe(pe,{style:s(R),ref:A},Ge(pe)?Se:{default:()=>Se})]};return()=>{const pe=pt(m.containerElement),{horizontalScrollbar:Se,verticalScrollbar:me}=Q(),X=we();return Fe("div",{key:0,class:b.e("wrapper")},[Fe(pe,{class:m.className,style:s(P),onScroll:oe,onWheel:he,ref:z},Ge(pe)?X:{default:()=>X}),Se,me])}}}),wme=sb({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:o},l,r,n,a,i)=>{o=Number(o);const c=Math.max(0,e*t-o),u=Math.min(c,l*t),d=Math.max(0,l*t-o+i+t);switch(r==="smart"&&(n>=d-o&&n<=u+o?r=Qo:r=Pl),r){case Xi:return u;case Ji:return d;case Pl:{const p=Math.round(d+(u-d)/2);return pc+Math.floor(o/2)?c:p}case Qo:default:return n>=d&&n<=u?n:d>u||n{t=Number(t);const c=Math.max(0,o*e-t),u=Math.min(c,l*e),d=Math.max(0,l*e-t+i+e);switch(r===Hu&&(n>=d-t&&n<=u+t?r=Qo:r=Pl),r){case Xi:return u;case Ji:return d;case Pl:{const p=Math.round(d+(u-d)/2);return pc+Math.floor(t/2)?c:p}case Qo:default:return n>=d&&n<=u?n:d>u||nMath.max(0,Math.min(t-1,Math.floor(o/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:o},l,r)=>{const n=l*e,a=Math.ceil((o+r-n)/e);return Math.max(0,Math.min(t-1,l+a-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},o)=>Math.max(0,Math.min(t-1,Math.floor(o/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:o},l,r)=>{const n=l*e,a=Math.ceil((o+r-n)/e);return Math.max(0,Math.min(t-1,l+a-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),{max:qc,min:cb,floor:ub}=Math,xme={column:"columnWidth",row:"rowHeight"},t2={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Jl=(e,t,o,l)=>{const[r,n,a]=[o[l],e[xme[l]],o[t2[l]]];if(t>a){let i=0;if(a>=0){const c=r[a];i=c.offset+c.size}for(let c=a+1;c<=t;c++){const u=n(c);r[c]={offset:i,size:u},i+=u}o[t2[l]]=t}return r[t]},db=(e,t,o,l,r,n)=>{for(;o<=l;){const a=o+ub((l-o)/2),i=Jl(e,a,t,n).offset;if(i===r)return a;i{const n=r==="column"?e.totalColumn:e.totalRow;let a=1;for(;o{const[r,n]=[t[l],t[t2[l]]];return(n>0?r[n].offset:0)>=o?db(e,t,0,n,o,l):kme(e,t,qc(0,n),o,l)},pb=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:o,row:l})=>{let r=0;if(o>=e&&(o=e-1),o>=0){const i=l[o];r=i.offset+i.size}const a=(e-o-1)*t;return r+a},fb=({totalColumn:e},{column:t,estimatedColumnWidth:o,lastVisitedColumnIndex:l})=>{let r=0;if(l>e&&(l=e-1),l>=0){const i=t[l];r=i.offset+i.size}const a=(e-l-1)*o;return r+a},Cme={column:fb,row:pb},T3=(e,t,o,l,r,n,a)=>{const[i,c]=[n==="row"?e.height:e.width,Cme[n]],u=Jl(e,t,r,n),d=c(e,r),p=qc(0,cb(d-i,u.offset)),f=qc(0,u.offset-i+a+u.size);switch(o===Hu&&(l>=f-i&&l<=p+i?o=Qo:o=Pl),o){case Xi:return p;case Ji:return f;case Pl:return Math.round(f+(p-f)/2);case Qo:default:return l>=f&&l<=p?l:f>p||l{const l=Jl(e,t,o,"column");return[l.size,l.offset]},getRowPosition:(e,t,o)=>{const l=Jl(e,t,o,"row");return[l.size,l.offset]},getColumnOffset:(e,t,o,l,r,n)=>T3(e,t,o,l,r,"column",n),getRowOffset:(e,t,o,l,r,n)=>T3(e,t,o,l,r,"row",n),getColumnStartIndexForOffset:(e,t,o)=>M3(e,o,t,"column"),getColumnStopIndexForStartIndex:(e,t,o,l)=>{const r=Jl(e,t,l,"column"),n=o+e.width;let a=r.offset+r.size,i=t;for(;iM3(e,o,t,"row"),getRowStopIndexForStartIndex:(e,t,o,l)=>{const{totalRow:r,height:n}=e,a=Jl(e,t,l,"row"),i=o+n;let c=a.size+a.offset,u=t;for(;u{const o=({columnIndex:n,rowIndex:a},i)=>{var c,u;i=lo(i)?!0:i,et(n)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,n-1)),et(a)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,a-1)),(c=e.exposed)==null||c.getItemStyleCache.value(-1,null,null),i&&((u=e.proxy)==null||u.$forceUpdate())},l=(n,a)=>{o({columnIndex:n},a)},r=(n,a)=>{o({rowIndex:n},a)};Object.assign(e.proxy,{resetAfterColumnIndex:l,resetAfterRowIndex:r,resetAfter:o})},initCache:({estimatedColumnWidth:e=Y0,estimatedRowHeight:t=Y0})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),Sme=te({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:_e("select")}}});function zme(e,t,o,l,r,n){return e.item.isTitle?(y(),$("div",{key:0,class:T(e.ns.be("group","title")),style:Be([e.style,{lineHeight:`${e.height}px`}])},Ce(e.item.label),7)):(y(),$("div",{key:1,class:T(e.ns.be("group","split")),style:Be(e.style)},[C("span",{class:T(e.ns.be("group","split-dash")),style:Be({top:`${e.height/2}px`})},null,6)],6))}var Eme=Te(Sme,[["render",zme],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function Mme(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const Tme={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:hr},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:to.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:ja},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:de(String),values:Pn,default:"bottom-start"}},Ame={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},Vme=te({props:Ame,emits:["select","hover"],setup(e,{emit:t}){const o=_e("select"),{hoverItem:l,selectOptionClick:r}=Mme(e,{emit:t});return{ns:o,hoverItem:l,selectOptionClick:r}}}),Ome=["aria-selected"];function Pme(e,t,o,l,r,n){return y(),$("li",{"aria-selected":e.selected,style:Be(e.style),class:T([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...a)=>e.hoverItem&&e.hoverItem(...a)),onClick:t[1]||(t[1]=Ue((...a)=>e.selectOptionClick&&e.selectOptionClick(...a),["stop"]))},[ge(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[C("span",null,Ce(e.item.label),1)])],46,Ome)}var Lme=Te(Vme,[["render",Pme],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const hb="ElSelectV2Injection";var Ime=te({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:o}){const l=Re(hb),r=_e("select"),n=V([]),a=V(),i=S(()=>e.data.length);ve(()=>i.value,()=>{var E,A;(A=(E=l.popper.value).updatePopper)==null||A.call(E)});const c=S(()=>lo(l.props.estimatedOptionHeight)),u=S(()=>c.value?{itemSize:l.props.itemHeight}:{estimatedSize:l.props.estimatedOptionHeight,itemSize:E=>n.value[E]}),d=(E=[],A)=>{const{props:{valueKey:O}}=l;return ft(A)?E&&E.some(D=>Pt(D,O)===Pt(A,O)):E.includes(A)},p=(E,A)=>{if(ft(A)){const{valueKey:O}=l.props;return Pt(E,O)===Pt(A,O)}else return E===A},f=(E,A)=>{const{valueKey:O}=l.props;return l.props.multiple?d(E,Pt(A,O)):p(E,Pt(A,O))},h=(E,A)=>{const{disabled:O,multiple:D,multipleLimit:I}=l.props;return O||!A&&(D?I>0&&E.length>=I:!1)},v=E=>e.hoveringIndex===E;o({listRef:a,isSized:c,isItemDisabled:h,isItemHovering:v,isItemSelected:f,scrollToItem:E=>{const A=a.value;A&&A.scrollToItem(E)},resetScrollTop:()=>{const E=a.value;E&&E.resetScrollTop()}});const _=E=>{const{index:A,data:O,style:D}=E,I=s(c),{itemSize:N,estimatedSize:B}=s(u),{modelValue:F}=l.props,{onSelect:H,onHover:L}=l,P=O[A];if(P.type==="Group")return K(Eme,{item:P,style:D,height:I?N:B},null);const R=f(F,P),J=h(F,R),oe=v(A);return K(Lme,ht(E,{selected:R,disabled:P.disabled||J,created:!!P.created,hovering:oe,item:P,onSelect:H,onHover:L}),{default:G=>{var le;return((le=t.default)==null?void 0:le.call(t,G))||K("span",null,[P.label])}})},{onKeyboardNavigate:w,onKeyboardSelect:b}=l,x=()=>{w("forward")},k=()=>{w("backward")},z=()=>{l.expanded=!1},M=E=>{const{code:A}=E,{tab:O,esc:D,down:I,up:N,enter:B}=je;switch(A!==O&&(E.preventDefault(),E.stopPropagation()),A){case O:case D:{z();break}case I:{x();break}case N:{k();break}case B:{b();break}}};return()=>{var E;const{data:A,width:O}=e,{height:D,multiple:I,scrollbarAlwaysOn:N}=l.props;if(A.length===0)return K("div",{class:r.b("dropdown"),style:{width:`${O}px`}},[(E=t.empty)==null?void 0:E.call(t)]);const B=s(c)?ab:_me;return K("div",{class:[r.b("dropdown"),r.is("multiple",I)]},[K(B,ht({ref:a},s(u),{className:r.be("dropdown","list"),scrollbarAlwaysOn:N,data:A,height:D,width:O,total:A.length,onKeydown:M}),{default:F=>K(_,F,null)})])}}});function Rme(e,t){const o=V(0),l=V(null),r=S(()=>e.allowCreate&&e.filterable);function n(d){const p=f=>f.value===d;return e.options&&e.options.some(p)||t.createdOptions.some(p)}function a(d){!r.value||(e.multiple&&d.created?o.value++:l.value=d)}function i(d){if(r.value)if(d&&d.length>0&&!n(d)){const p={value:d,label:d,created:!0,disabled:!1};t.createdOptions.length>=o.value?t.createdOptions[o.value]=p:t.createdOptions.push(p)}else if(e.multiple)t.createdOptions.length=o.value;else{const p=l.value;t.createdOptions.length=0,p&&p.created&&t.createdOptions.push(p)}}function c(d){if(!r.value||!d||!d.created||d.created&&e.reserveKeyword&&t.inputValue===d.label)return;const p=t.createdOptions.findIndex(f=>f.value===d.value);~p&&(t.createdOptions.splice(p,1),o.value--)}function u(){r.value&&(t.createdOptions.length=0,o.value=0)}return{createNewOption:i,removeNewOption:c,selectNewOption:a,clearAllNewOption:u}}const Hme=e=>{const t=[];return e.forEach(o=>{Ie(o.options)?(t.push({label:o.label,isTitle:!0,type:"Group"}),o.options.forEach(l=>{t.push(l)}),t.push({type:"Group"})):t.push(o)}),t};function Nme(e){const t=V(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:n=>{const a=n.target.value,i=a[a.length-1]||"";t.value=!ku(i)},handleCompositionEnd:n=>{t.value&&(t.value=!1,Ye(e)&&e(n))}}}const A3="",V3=11,Bme={larget:51,default:42,small:33},Dme=(e,t)=>{const{t:o}=yt(),l=_e("select-v2"),r=_e("input"),{form:n,formItem:a}=So(),i=wt({inputValue:A3,displayInputValue:A3,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),c=V(-1),u=V(-1),d=V(null),p=V(null),f=V(null),h=V(null),v=V(null),m=V(null),g=V(null),_=V(!1),w=S(()=>e.disabled||(n==null?void 0:n.disabled)),b=S(()=>{const Ee=I.value.length*34;return Ee>e.height?e.height:Ee}),x=S(()=>!ro(e.modelValue)),k=S(()=>{const Ee=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:x.value;return e.clearable&&!w.value&&i.comboBoxHovering&&Ee}),z=S(()=>e.remote&&e.filterable?"":vs),M=S(()=>z.value&&l.is("reverse",_.value)),E=S(()=>(a==null?void 0:a.validateState)||""),A=S(()=>hm[E.value]),O=S(()=>e.remote?300:0),D=S(()=>{const Ee=I.value;return e.loading?e.loadingText||o("el.select.loading"):e.remote&&i.inputValue===""&&Ee.length===0?!1:e.filterable&&i.inputValue&&Ee.length>0?e.noMatchText||o("el.select.noMatch"):Ee.length===0?e.noDataText||o("el.select.noData"):null}),I=S(()=>{const Ee=We=>{var vt;const Ct=i.inputValue;return Ct?(vt=We.label)==null?void 0:vt.includes(Ct):!0};return e.loading?[]:Hme(e.options.concat(i.createdOptions).map(We=>{if(Ie(We.options)){const vt=We.options.filter(Ee);if(vt.length>0)return{...We,options:vt}}else if(e.remote||Ee(We))return We;return null}).filter(We=>We!==null))}),N=S(()=>I.value.every(Ee=>Ee.disabled)),B=Xt(),F=S(()=>B.value==="small"?"small":"default"),H=S(()=>{const Ee=m.value,We=F.value||"default",vt=Ee?Number.parseInt(getComputedStyle(Ee).paddingLeft):0,Ct=Ee?Number.parseInt(getComputedStyle(Ee).paddingRight):0;return i.selectWidth-Ct-vt-Bme[We]}),L=()=>{var Ee;u.value=((Ee=v.value)==null?void 0:Ee.offsetWidth)||200},P=S(()=>({width:`${i.calculatedWidth===0?V3:Math.ceil(i.calculatedWidth)+V3}px`})),R=S(()=>Ie(e.modelValue)?e.modelValue.length===0&&!i.displayInputValue:e.filterable?i.displayInputValue.length===0:!0),J=S(()=>{const Ee=e.placeholder||o("el.select.placeholder");return e.multiple||ro(e.modelValue)?Ee:i.selectedLabel}),oe=S(()=>{var Ee,We;return(We=(Ee=h.value)==null?void 0:Ee.popperRef)==null?void 0:We.contentRef}),G=S(()=>{if(e.multiple){const Ee=e.modelValue.length;if(e.modelValue.length>0)return I.value.findIndex(We=>We.value===e.modelValue[Ee-1])}else if(e.modelValue)return I.value.findIndex(Ee=>Ee.value===e.modelValue);return-1}),le=S({get(){return _.value&&D.value!==!1},set(Ee){_.value=Ee}}),{createNewOption:he,removeNewOption:j,selectNewOption:re,clearAllNewOption:Y}=Rme(e,i),{handleCompositionStart:W,handleCompositionUpdate:ce,handleCompositionEnd:ne}=Nme(Ee=>zt(Ee)),xe=()=>{var Ee,We,vt;(We=(Ee=p.value).focus)==null||We.call(Ee),(vt=h.value)==null||vt.updatePopper()},U=()=>{if(!e.automaticDropdown&&!w.value)return i.isComposing&&(i.softFocus=!0),Ne(()=>{var Ee,We;_.value=!_.value,(We=(Ee=p.value)==null?void 0:Ee.focus)==null||We.call(Ee)})},Q=()=>(e.filterable&&i.inputValue!==i.selectedLabel&&(i.query=i.selectedLabel),we(i.inputValue),Ne(()=>{he(i.inputValue)})),fe=$o(Q,O.value),we=Ee=>{i.previousQuery!==Ee&&(i.previousQuery=Ee,e.filterable&&Ye(e.filterMethod)?e.filterMethod(Ee):e.filterable&&e.remote&&Ye(e.remoteMethod)&&e.remoteMethod(Ee))},$e=Ee=>{jo(e.modelValue,Ee)||t(Ot,Ee)},pe=Ee=>{t(nt,Ee),$e(Ee),i.previousValue=Ee==null?void 0:Ee.toString()},Se=(Ee=[],We)=>{if(!ft(We))return Ee.indexOf(We);const vt=e.valueKey;let Ct=-1;return Ee.some((Ml,Tl)=>Pt(Ml,vt)===Pt(We,vt)?(Ct=Tl,!0):!1),Ct},me=Ee=>ft(Ee)?Pt(Ee,e.valueKey):Ee,X=Ee=>ft(Ee)?Ee.label:Ee,se=()=>{if(!(e.collapseTags&&!e.filterable))return Ne(()=>{var Ee,We;if(!p.value)return;const vt=m.value;v.value.height=vt.offsetHeight,_.value&&D.value!==!1&&((We=(Ee=h.value)==null?void 0:Ee.updatePopper)==null||We.call(Ee))})},ze=()=>{var Ee,We;if(Ve(),L(),(We=(Ee=h.value)==null?void 0:Ee.updatePopper)==null||We.call(Ee),e.multiple)return se()},Ve=()=>{const Ee=m.value;Ee&&(i.selectWidth=Ee.getBoundingClientRect().width)},Le=(Ee,We,vt=!0)=>{var Ct,Ml;if(e.multiple){let Tl=e.modelValue.slice();const Cs=Se(Tl,me(Ee));Cs>-1?(Tl=[...Tl.slice(0,Cs),...Tl.slice(Cs+1)],i.cachedOptions.splice(Cs,1),j(Ee)):(e.multipleLimit<=0||Tl.length{const{valueKey:vt}=e,Ct=e.modelValue.indexOf(Pt(We,vt));if(Ct>-1&&!w.value){const Ml=[...e.modelValue.slice(0,Ct),...e.modelValue.slice(Ct+1)];return i.cachedOptions.splice(Ct,1),pe(Ml),t("remove-tag",Pt(We,vt)),i.softFocus=!0,j(We),Ne(xe)}Ee.stopPropagation()},qe=Ee=>{const We=i.isComposing;i.isComposing=!0,i.softFocus?i.softFocus=!1:We||t("focus",Ee)},rt=Ee=>(i.softFocus=!1,Ne(()=>{var We,vt;(vt=(We=p.value)==null?void 0:We.blur)==null||vt.call(We),g.value&&(i.calculatedWidth=g.value.getBoundingClientRect().width),i.isSilentBlur?i.isSilentBlur=!1:i.isComposing&&t("blur",Ee),i.isComposing=!1})),be=()=>{i.displayInputValue.length>0?Je(""):_.value=!1},ye=Ee=>{if(i.displayInputValue.length===0){Ee.preventDefault();const We=e.modelValue.slice();We.pop(),j(i.cachedOptions.pop()),pe(We)}},He=()=>{let Ee;return Ie(e.modelValue)?Ee=[]:Ee=void 0,i.softFocus=!0,e.multiple?i.cachedOptions=[]:i.selectedLabel="",_.value=!1,pe(Ee),t("clear"),Y(),Ne(xe)},Je=Ee=>{i.displayInputValue=Ee,i.inputValue=Ee},q=(Ee,We=void 0)=>{const vt=I.value;if(!["forward","backward"].includes(Ee)||w.value||vt.length<=0||N.value)return;if(!_.value)return U();We===void 0&&(We=i.hoveringIndex);let Ct=-1;Ee==="forward"?(Ct=We+1,Ct>=vt.length&&(Ct=0)):Ee==="backward"&&(Ct=We-1,(Ct<0||Ct>=vt.length)&&(Ct=vt.length-1));const Ml=vt[Ct];if(Ml.disabled||Ml.type==="Group")return q(Ee,Ct);ke(Ct),dt(Ct)},ie=()=>{if(_.value)~i.hoveringIndex&&I.value[i.hoveringIndex]&&Le(I.value[i.hoveringIndex],i.hoveringIndex,!1);else return U()},ke=Ee=>{i.hoveringIndex=Ee},Me=()=>{i.hoveringIndex=-1},it=()=>{var Ee;const We=p.value;We&&((Ee=We.focus)==null||Ee.call(We))},zt=Ee=>{const We=Ee.target.value;if(Je(We),i.displayInputValue.length>0&&!_.value&&(_.value=!0),i.calculatedWidth=g.value.getBoundingClientRect().width,e.multiple&&se(),e.remote)fe();else return Q()},Ut=()=>(_.value=!1,rt()),qt=()=>(i.inputValue=i.displayInputValue,Ne(()=>{~G.value&&(ke(G.value),dt(i.hoveringIndex))})),dt=Ee=>{f.value.scrollToItem(Ee)},Dt=()=>{if(Me(),e.multiple)if(e.modelValue.length>0){let Ee=!1;i.cachedOptions.length=0,i.previousValue=e.modelValue.toString(),e.modelValue.forEach(We=>{const vt=I.value.findIndex(Ct=>me(Ct)===We);~vt&&(i.cachedOptions.push(I.value[vt]),Ee||ke(vt),Ee=!0)})}else i.cachedOptions=[],i.previousValue=void 0;else if(x.value){i.previousValue=e.modelValue;const Ee=I.value,We=Ee.findIndex(vt=>me(vt)===me(e.modelValue));~We?(i.selectedLabel=Ee[We].label,ke(We)):i.selectedLabel=`${e.modelValue}`}else i.selectedLabel="",i.previousValue=void 0;Y(),L()};return ve(_,Ee=>{var We,vt;t("visible-change",Ee),Ee?(vt=(We=h.value).update)==null||vt.call(We):(i.displayInputValue="",i.previousQuery=null,he(""))}),ve(()=>e.modelValue,(Ee,We)=>{var vt;(!Ee||Ee.toString()!==i.previousValue)&&Dt(),!jo(Ee,We)&&e.validateEvent&&((vt=a==null?void 0:a.validate)==null||vt.call(a,"change").catch(Ct=>void 0))},{deep:!0}),ve(()=>e.options,()=>{const Ee=p.value;(!Ee||Ee&&document.activeElement!==Ee)&&Dt()},{deep:!0}),ve(I,()=>Ne(f.value.resetScrollTop)),Ze(()=>{Dt()}),bo(v,ze),{collapseTagSize:F,currentPlaceholder:J,expanded:_,emptyText:D,popupHeight:b,debounce:O,filteredOptions:I,iconComponent:z,iconReverse:M,inputWrapperStyle:P,popperSize:u,dropdownMenuVisible:le,hasModelValue:x,shouldShowPlaceholder:R,selectDisabled:w,selectSize:B,showClearBtn:k,states:i,tagMaxWidth:H,nsSelectV2:l,nsInput:r,calculatorRef:g,controlRef:d,inputRef:p,menuRef:f,popper:h,selectRef:v,selectionRef:m,popperRef:oe,validateState:E,validateIcon:A,debouncedOnInputChange:fe,deleteTag:Ke,getLabel:X,getValueKey:me,handleBlur:rt,handleClear:He,handleClickOutside:Ut,handleDel:ye,handleEsc:be,handleFocus:qe,handleMenuEnter:qt,handleResize:ze,toggleMenu:U,scrollTo:dt,onInput:zt,onKeyboardNavigate:q,onKeyboardSelect:ie,onSelect:Le,onHover:ke,onUpdateInputValue:Je,handleCompositionStart:W,handleCompositionEnd:ne,handleCompositionUpdate:ce}},Fme=te({name:"ElSelectV2",components:{ElSelectMenu:Ime,ElTag:Pu,ElTooltip:Ro,ElIcon:De},directives:{ClickOutside:Wr,ModelText:X2},props:Tme,emits:[nt,Ot,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const o=Dme(e,t);return st(hb,{props:wt({...Gt(e),height:o.popupHeight}),popper:o.popper,onSelect:o.onSelect,onHover:o.onHover,onKeyboardNavigate:o.onKeyboardNavigate,onKeyboardSelect:o.onKeyboardSelect}),o}}),jme={key:0},Kme=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],Wme=["textContent"],qme=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],Ume=["textContent"];function Yme(e,t,o,l,r,n){const a=Oe("el-tag"),i=Oe("el-tooltip"),c=Oe("el-icon"),u=Oe("el-select-menu"),d=ha("model-text"),p=ha("click-outside");return Xe((y(),$("div",{ref:"selectRef",class:T([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[25]||(t[25]=Ue((...f)=>e.toggleMenu&&e.toggleMenu(...f),["stop"])),onMouseenter:t[26]||(t[26]=f=>e.states.comboBoxHovering=!0),onMouseleave:t[27]||(t[27]=f=>e.states.comboBoxHovering=!1)},[K(i,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[24]||(t[24]=f=>e.states.inputValue=e.states.displayInputValue)},{default:Z(()=>{var f;return[C("div",{ref:"selectionRef",class:T([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing||e.expanded),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(y(),$("div",jme,[ge(e.$slots,"prefix")])):ae("v-if",!0),e.multiple?(y(),$("div",{key:1,class:T(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(y(),$("div",{key:0,class:T(e.nsSelectV2.e("selected-item"))},[K(a,{closable:!e.selectDisabled&&!((f=e.states.cachedOptions[0])!=null&&f.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:t[0]||(t[0]=h=>e.deleteTag(h,e.states.cachedOptions[0]))},{default:Z(()=>{var h;return[C("span",{class:T(e.nsSelectV2.e("tags-text")),style:Be({maxWidth:`${e.tagMaxWidth}px`})},Ce((h=e.states.cachedOptions[0])==null?void 0:h.label),7)]}),_:1},8,["closable","size"]),e.modelValue.length>1?(y(),ue(a,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:Z(()=>[e.collapseTagsTooltip?(y(),ue(i,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:Z(()=>[C("span",{class:T(e.nsSelectV2.e("tags-text")),style:Be({maxWidth:`${e.tagMaxWidth}px`})},"+ "+Ce(e.modelValue.length-1),7)]),content:Z(()=>[C("div",{class:T(e.nsSelectV2.e("selection"))},[(y(!0),$(Pe,null,ut(e.states.cachedOptions.slice(1),(h,v)=>(y(),$("div",{key:v,class:T(e.nsSelectV2.e("selected-item"))},[(y(),ue(a,{key:e.getValueKey(h),closable:!e.selectDisabled&&!h.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:m=>e.deleteTag(m,h)},{default:Z(()=>[C("span",{class:T(e.nsSelectV2.e("tags-text")),style:Be({maxWidth:`${e.tagMaxWidth}px`})},Ce(e.getLabel(h)),7)]),_:2},1032,["closable","size","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect"])):(y(),$("span",{key:1,class:T(e.nsSelectV2.e("tags-text")),style:Be({maxWidth:`${e.tagMaxWidth}px`})},"+ "+Ce(e.modelValue.length-1),7))]),_:1},8,["size"])):ae("v-if",!0)],2)):(y(!0),$(Pe,{key:1},ut(e.states.cachedOptions,(h,v)=>(y(),$("div",{key:v,class:T(e.nsSelectV2.e("selected-item"))},[(y(),ue(a,{key:e.getValueKey(h),closable:!e.selectDisabled&&!h.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:m=>e.deleteTag(m,h)},{default:Z(()=>[C("span",{class:T(e.nsSelectV2.e("tags-text")),style:Be({maxWidth:`${e.tagMaxWidth}px`})},Ce(e.getLabel(h)),7)]),_:2},1032,["closable","size","onClose"]))],2))),128)),C("div",{class:T([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:Be(e.inputWrapperStyle)},[Xe(C("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:T([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":t[1]||(t[1]=(...h)=>e.onUpdateInputValue&&e.onUpdateInputValue(...h)),onFocus:t[2]||(t[2]=(...h)=>e.handleFocus&&e.handleFocus(...h)),onBlur:t[3]||(t[3]=(...h)=>e.handleBlur&&e.handleBlur(...h)),onInput:t[4]||(t[4]=(...h)=>e.onInput&&e.onInput(...h)),onCompositionstart:t[5]||(t[5]=(...h)=>e.handleCompositionStart&&e.handleCompositionStart(...h)),onCompositionupdate:t[6]||(t[6]=(...h)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...h)),onCompositionend:t[7]||(t[7]=(...h)=>e.handleCompositionEnd&&e.handleCompositionEnd(...h)),onKeydown:[t[8]||(t[8]=bt(Ue(h=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[9]||(t[9]=bt(Ue(h=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[10]||(t[10]=bt(Ue((...h)=>e.onKeyboardSelect&&e.onKeyboardSelect(...h),["stop","prevent"]),["enter"])),t[11]||(t[11]=bt(Ue((...h)=>e.handleEsc&&e.handleEsc(...h),["stop","prevent"]),["esc"])),t[12]||(t[12]=bt(Ue((...h)=>e.handleDel&&e.handleDel(...h),["stop"]),["delete"]))]},null,42,Kme),[[d,e.states.displayInputValue]]),e.filterable?(y(),$("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:T(e.nsSelectV2.e("input-calculator")),textContent:Ce(e.states.displayInputValue)},null,10,Wme)):ae("v-if",!0)],6)],2)):(y(),$(Pe,{key:2},[C("div",{class:T([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[Xe(C("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:T(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[13]||(t[13]=(...h)=>e.handleCompositionStart&&e.handleCompositionStart(...h)),onCompositionupdate:t[14]||(t[14]=(...h)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...h)),onCompositionend:t[15]||(t[15]=(...h)=>e.handleCompositionEnd&&e.handleCompositionEnd(...h)),onFocus:t[16]||(t[16]=(...h)=>e.handleFocus&&e.handleFocus(...h)),onBlur:t[17]||(t[17]=(...h)=>e.handleBlur&&e.handleBlur(...h)),onInput:t[18]||(t[18]=(...h)=>e.onInput&&e.onInput(...h)),onKeydown:[t[19]||(t[19]=bt(Ue(h=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[20]||(t[20]=bt(Ue(h=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[21]||(t[21]=bt(Ue((...h)=>e.onKeyboardSelect&&e.onKeyboardSelect(...h),["stop","prevent"]),["enter"])),t[22]||(t[22]=bt(Ue((...h)=>e.handleEsc&&e.handleEsc(...h),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[23]||(t[23]=(...h)=>e.onUpdateInputValue&&e.onUpdateInputValue(...h))},null,42,qme),[[d,e.states.displayInputValue]])],2),e.filterable?(y(),$("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:T([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:Ce(e.states.displayInputValue)},null,10,Ume)):ae("v-if",!0)],64)),e.shouldShowPlaceholder?(y(),$("span",{key:3,class:T([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},Ce(e.currentPlaceholder),3)):ae("v-if",!0),C("span",{class:T(e.nsSelectV2.e("suffix"))},[e.iconComponent?Xe((y(),ue(c,{key:0,class:T([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:Z(()=>[(y(),ue(pt(e.iconComponent)))]),_:1},8,["class"])),[[_t,!e.showClearBtn]]):ae("v-if",!0),e.showClearBtn&&e.clearIcon?(y(),ue(c,{key:1,class:T([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:Ue(e.handleClear,["prevent","stop"])},{default:Z(()=>[(y(),ue(pt(e.clearIcon)))]),_:1},8,["class","onClick"])):ae("v-if",!0),e.validateState&&e.validateIcon?(y(),ue(c,{key:2,class:T([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:Z(()=>[(y(),ue(pt(e.validateIcon)))]),_:1},8,["class"])):ae("v-if",!0)],2)],2)]}),content:Z(()=>[K(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:Z(f=>[ge(e.$slots,"default",vl(cu(f)))]),empty:Z(()=>[ge(e.$slots,"empty",{},()=>[C("p",{class:T(e.nsSelectV2.e("empty"))},Ce(e.emptyText?e.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[p,e.handleClickOutside,e.popperRef]])}var fc=Te(Fme,[["render",Yme],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);fc.install=e=>{e.component(fc.name,fc)};const Gme=fc,Xme=Gme,Jme=Ae({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),Zme=Ae({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),Qme=te({name:"ElSkeletonItem"}),ege=te({...Qme,props:Zme,setup(e){const t=_e("skeleton");return(o,l)=>(y(),$("div",{class:T([s(t).e("item"),s(t).e(o.variant)])},[o.variant==="image"?(y(),ue(s(tm),{key:0})):ae("v-if",!0)],2))}});var Uc=Te(ege,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const tge=te({name:"ElSkeleton"}),oge=te({...tge,props:Jme,setup(e,{expose:t}){const o=e,l=_e("skeleton"),r=bae(Rt(o,"loading"),o.throttle);return t({uiLoading:r}),(n,a)=>s(r)?(y(),$("div",ht({key:0,class:[s(l).b(),s(l).is("animated",n.animated)]},n.$attrs),[(y(!0),$(Pe,null,ut(n.count,i=>(y(),$(Pe,{key:i},[n.loading?ge(n.$slots,"template",{key:i},()=>[K(Uc,{class:T(s(l).is("first")),variant:"p"},null,8,["class"]),(y(!0),$(Pe,null,ut(n.rows,c=>(y(),ue(Uc,{key:c,class:T([s(l).e("paragraph"),s(l).is("last",c===n.rows&&n.rows>1)]),variant:"p"},null,8,["class"]))),128))]):ae("v-if",!0)],64))),128))],16)):ge(n.$slots,"default",vl(ht({key:1},n.$attrs)))}});var lge=Te(oge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const rge=at(lge,{SkeletonItem:Uc}),nge=Bt(Uc),age=Ae({modelValue:{type:de([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Lo,inputSize:Lo,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:de(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:de(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Pn,default:"top"},marks:{type:de(Object)},validateEvent:{type:Boolean,default:!0}}),xd=e=>et(e)||Ie(e)&&e.every(et),ige={[nt]:xd,[Co]:xd,[Ot]:xd},sge=(e,t,o)=>{const l=V();return Ze(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),At(window,"resize",o),await Ne(),o()}),{sliderWrapper:l}},cge=e=>S(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((o,l)=>o-l).filter(o=>o<=e.max&&o>=e.min).map(o=>({point:o,position:(o-e.min)*100/(e.max-e.min),mark:e.marks[o]})):[]),uge=(e,t,o)=>{const{form:l,formItem:r}=So(),n=Et(),a=V(),i=V(),c={firstButton:a,secondButton:i},u=S(()=>e.disabled||(l==null?void 0:l.disabled)||!1),d=S(()=>Math.min(t.firstValue,t.secondValue)),p=S(()=>Math.max(t.firstValue,t.secondValue)),f=S(()=>e.range?`${100*(p.value-d.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=S(()=>e.range?`${100*(d.value-e.min)/(e.max-e.min)}%`:"0%"),v=S(()=>e.vertical?{height:e.height}:{}),m=S(()=>e.vertical?{height:f.value,bottom:h.value}:{width:f.value,left:h.value}),g=()=>{n.value&&(t.sliderSize=n.value[`client${e.vertical?"Height":"Width"}`])},_=D=>{const I=e.min+D*(e.max-e.min)/100;if(!e.range)return a;let N;return Math.abs(d.value-I)t.secondValue?"firstButton":"secondButton",c[N]},w=D=>{const I=_(D);return I.value.setPosition(D),I},b=D=>{t.firstValue=D,k(e.range?[d.value,p.value]:D)},x=D=>{t.secondValue=D,e.range&&k([d.value,p.value])},k=D=>{o(nt,D),o(Co,D)},z=async()=>{await Ne(),o(Ot,e.range?[d.value,p.value]:e.modelValue)},M=D=>{var I,N,B,F,H,L;if(u.value||t.dragging)return;g();let P=0;if(e.vertical){const R=(B=(N=(I=D.touches)==null?void 0:I.item(0))==null?void 0:N.clientY)!=null?B:D.clientY;P=(n.value.getBoundingClientRect().bottom-R)/t.sliderSize*100}else{const R=(L=(H=(F=D.touches)==null?void 0:F.item(0))==null?void 0:H.clientX)!=null?L:D.clientX,J=n.value.getBoundingClientRect().left;P=(R-J)/t.sliderSize*100}if(!(P<0||P>100))return w(P)};return{elFormItem:r,slider:n,firstButton:a,secondButton:i,sliderDisabled:u,minValue:d,maxValue:p,runwayStyle:v,barStyle:m,resetSize:g,setPosition:w,emitChange:z,onSliderWrapperPrevent:D=>{var I,N;(((I=c.firstButton.value)==null?void 0:I.dragging)||((N=c.secondButton.value)==null?void 0:N.dragging))&&D.preventDefault()},onSliderClick:D=>{M(D)&&z()},onSliderDown:async D=>{const I=M(D);I&&(await Ne(),I.value.onButtonDown(D))},setFirstValue:b,setSecondValue:x}},{left:dge,down:pge,right:fge,up:hge,home:vge,end:mge,pageUp:gge,pageDown:bge}=je,_ge=(e,t,o)=>{const l=V(),r=V(!1),n=S(()=>t.value instanceof Function),a=S(()=>n.value&&t.value(e.modelValue)||e.modelValue),i=$o(()=>{o.value&&(r.value=!0)},50),c=$o(()=>{o.value&&(r.value=!1)},50);return{tooltip:l,tooltipVisible:r,formatValue:a,displayTooltip:i,hideTooltip:c}},yge=(e,t,o)=>{const{disabled:l,min:r,max:n,step:a,showTooltip:i,precision:c,sliderSize:u,formatTooltip:d,emitChange:p,resetSize:f,updateDragging:h}=Re(Sm),{tooltip:v,tooltipVisible:m,formatValue:g,displayTooltip:_,hideTooltip:w}=_ge(e,d,i),b=V(),x=S(()=>`${(e.modelValue-r.value)/(n.value-r.value)*100}%`),k=S(()=>e.vertical?{bottom:x.value}:{left:x.value}),z=()=>{t.hovering=!0,_()},M=()=>{t.hovering=!1,t.dragging||w()},E=G=>{l.value||(G.preventDefault(),P(G),window.addEventListener("mousemove",R),window.addEventListener("touchmove",R),window.addEventListener("mouseup",J),window.addEventListener("touchend",J),window.addEventListener("contextmenu",J),b.value.focus())},A=G=>{l.value||(t.newPosition=Number.parseFloat(x.value)+G/(n.value-r.value)*100,oe(t.newPosition),p())},O=()=>{A(-a.value)},D=()=>{A(a.value)},I=()=>{A(-a.value*4)},N=()=>{A(a.value*4)},B=()=>{l.value||(oe(0),p())},F=()=>{l.value||(oe(100),p())},H=G=>{let le=!0;[dge,pge].includes(G.key)?O():[fge,hge].includes(G.key)?D():G.key===vge?B():G.key===mge?F():G.key===bge?I():G.key===gge?N():le=!1,le&&G.preventDefault()},L=G=>{let le,he;return G.type.startsWith("touch")?(he=G.touches[0].clientY,le=G.touches[0].clientX):(he=G.clientY,le=G.clientX),{clientX:le,clientY:he}},P=G=>{t.dragging=!0,t.isClick=!0;const{clientX:le,clientY:he}=L(G);e.vertical?t.startY=he:t.startX=le,t.startPosition=Number.parseFloat(x.value),t.newPosition=t.startPosition},R=G=>{if(t.dragging){t.isClick=!1,_(),f();let le;const{clientX:he,clientY:j}=L(G);e.vertical?(t.currentY=j,le=(t.startY-t.currentY)/u.value*100):(t.currentX=he,le=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+le,oe(t.newPosition)}},J=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||w(),t.isClick||oe(t.newPosition),p()},0),window.removeEventListener("mousemove",R),window.removeEventListener("touchmove",R),window.removeEventListener("mouseup",J),window.removeEventListener("touchend",J),window.removeEventListener("contextmenu",J))},oe=async G=>{if(G===null||Number.isNaN(+G))return;G<0?G=0:G>100&&(G=100);const le=100/((n.value-r.value)/a.value);let j=Math.round(G/le)*le*(n.value-r.value)*.01+r.value;j=Number.parseFloat(j.toFixed(c.value)),j!==e.modelValue&&o(nt,j),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Ne(),t.dragging&&_(),v.value.updatePopper()};return ve(()=>t.dragging,G=>{h(G)}),{disabled:l,button:b,tooltip:v,tooltipVisible:m,showTooltip:i,wrapperStyle:k,formatValue:g,handleMouseEnter:z,handleMouseLeave:M,onButtonDown:E,onKeyDown:H,setPosition:oe}},wge=(e,t,o,l)=>({stops:S(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const a=(e.max-e.min)/e.step,i=100*e.step/(e.max-e.min),c=Array.from({length:a-1}).map((u,d)=>(d+1)*i);return e.range?c.filter(u=>u<100*(o.value-e.min)/(e.max-e.min)||u>100*(l.value-e.min)/(e.max-e.min)):c.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:a=>e.vertical?{bottom:`${a}%`}:{left:`${a}%`}}),xge=(e,t,o,l,r,n)=>{const a=u=>{r(nt,u),r(Co,u)},i=()=>e.range?![o.value,l.value].every((u,d)=>u===t.oldValue[d]):e.modelValue!==t.oldValue,c=()=>{var u,d;if(e.min>e.max){Zt("Slider","min should not be greater than max.");return}const p=e.modelValue;e.range&&Array.isArray(p)?p[1]e.max?a([e.max,e.max]):p[0]e.max?a([p[0],e.max]):(t.firstValue=p[0],t.secondValue=p[1],i()&&(e.validateEvent&&((u=n==null?void 0:n.validate)==null||u.call(n,"change").catch(f=>void 0)),t.oldValue=p.slice())):!e.range&&typeof p=="number"&&!Number.isNaN(p)&&(pe.max?a(e.max):(t.firstValue=p,i()&&(e.validateEvent&&((d=n==null?void 0:n.validate)==null||d.call(n,"change").catch(f=>void 0)),t.oldValue=p)))};c(),ve(()=>t.dragging,u=>{u||c()}),ve(()=>e.modelValue,(u,d)=>{t.dragging||Array.isArray(u)&&Array.isArray(d)&&u.every((p,f)=>p===d[f])&&t.firstValue===u[0]&&t.secondValue===u[1]||c()},{deep:!0}),ve(()=>[e.min,e.max],()=>{c()})},kge=Ae({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Pn,default:"top"}}),Cge={[nt]:e=>et(e)},$ge=["tabindex"],Sge=te({name:"ElSliderButton"}),zge=te({...Sge,props:kge,emits:Cge,setup(e,{expose:t,emit:o}){const l=e,r=_e("slider"),n=wt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:l.modelValue}),{disabled:a,button:i,tooltip:c,showTooltip:u,tooltipVisible:d,wrapperStyle:p,formatValue:f,handleMouseEnter:h,handleMouseLeave:v,onButtonDown:m,onKeyDown:g,setPosition:_}=yge(l,n,o),{hovering:w,dragging:b}=Gt(n);return t({onButtonDown:m,onKeyDown:g,setPosition:_,hovering:w,dragging:b}),(x,k)=>(y(),$("div",{ref_key:"button",ref:i,class:T([s(r).e("button-wrapper"),{hover:s(w),dragging:s(b)}]),style:Be(s(p)),tabindex:s(a)?-1:0,onMouseenter:k[0]||(k[0]=(...z)=>s(h)&&s(h)(...z)),onMouseleave:k[1]||(k[1]=(...z)=>s(v)&&s(v)(...z)),onMousedown:k[2]||(k[2]=(...z)=>s(m)&&s(m)(...z)),onTouchstart:k[3]||(k[3]=(...z)=>s(m)&&s(m)(...z)),onFocus:k[4]||(k[4]=(...z)=>s(h)&&s(h)(...z)),onBlur:k[5]||(k[5]=(...z)=>s(v)&&s(v)(...z)),onKeydown:k[6]||(k[6]=(...z)=>s(g)&&s(g)(...z))},[K(s(Ro),{ref_key:"tooltip",ref:c,visible:s(d),placement:x.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":x.tooltipClass,disabled:!s(u),persistent:""},{content:Z(()=>[C("span",null,Ce(s(f)),1)]),default:Z(()=>[C("div",{class:T([s(r).e("button"),{hover:s(w),dragging:s(b)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,$ge))}});var O3=Te(zge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const Ege=Ae({mark:{type:de([String,Object]),default:void 0}});var Mge=te({name:"ElSliderMarker",props:Ege,setup(e){const t=_e("slider"),o=S(()=>Ge(e.mark)?e.mark:e.mark.label),l=S(()=>Ge(e.mark)?void 0:e.mark.style);return()=>Fe("div",{class:t.e("marks-text"),style:l.value},o.value)}});const Tge=["id","role","aria-label","aria-labelledby"],Age={key:1},Vge=te({name:"ElSlider"}),Oge=te({...Vge,props:age,emits:ige,setup(e,{expose:t,emit:o}){const l=e,r=_e("slider"),{t:n}=yt(),a=wt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:i,slider:c,firstButton:u,secondButton:d,sliderDisabled:p,minValue:f,maxValue:h,runwayStyle:v,barStyle:m,resetSize:g,emitChange:_,onSliderWrapperPrevent:w,onSliderClick:b,onSliderDown:x,setFirstValue:k,setSecondValue:z}=uge(l,a,o),{stops:M,getStopStyle:E}=wge(l,a,f,h),{inputId:A,isLabeledByFormItem:O}=Yr(l,{formItemContext:i}),D=Xt(),I=S(()=>l.inputSize||D.value),N=S(()=>l.label||n("el.slider.defaultLabel",{min:l.min,max:l.max})),B=S(()=>l.range?l.rangeStartLabel||n("el.slider.defaultRangeStartLabel"):N.value),F=S(()=>l.formatValueText?l.formatValueText(G.value):`${G.value}`),H=S(()=>l.rangeEndLabel||n("el.slider.defaultRangeEndLabel")),L=S(()=>l.formatValueText?l.formatValueText(le.value):`${le.value}`),P=S(()=>[r.b(),r.m(D.value),r.is("vertical",l.vertical),{[r.m("with-input")]:l.showInput}]),R=cge(l);xge(l,a,f,h,o,i);const J=S(()=>{const re=[l.min,l.max,l.step].map(Y=>{const W=`${Y}`.split(".")[1];return W?W.length:0});return Math.max.apply(null,re)}),{sliderWrapper:oe}=sge(l,a,g),{firstValue:G,secondValue:le,sliderSize:he}=Gt(a),j=re=>{a.dragging=re};return st(Sm,{...Gt(l),sliderSize:he,disabled:p,precision:J,emitChange:_,resetSize:g,updateDragging:j}),t({onSliderClick:b}),(re,Y)=>{var W,ce;return y(),$("div",{id:re.range?s(A):void 0,ref_key:"sliderWrapper",ref:oe,class:T(s(P)),role:re.range?"group":void 0,"aria-label":re.range&&!s(O)?s(N):void 0,"aria-labelledby":re.range&&s(O)?(W=s(i))==null?void 0:W.labelId:void 0,onTouchstart:Y[2]||(Y[2]=(...ne)=>s(w)&&s(w)(...ne)),onTouchmove:Y[3]||(Y[3]=(...ne)=>s(w)&&s(w)(...ne))},[C("div",{ref_key:"slider",ref:c,class:T([s(r).e("runway"),{"show-input":re.showInput&&!re.range},s(r).is("disabled",s(p))]),style:Be(s(v)),onMousedown:Y[0]||(Y[0]=(...ne)=>s(x)&&s(x)(...ne)),onTouchstart:Y[1]||(Y[1]=(...ne)=>s(x)&&s(x)(...ne))},[C("div",{class:T(s(r).e("bar")),style:Be(s(m))},null,6),K(O3,{id:re.range?void 0:s(A),ref_key:"firstButton",ref:u,"model-value":s(G),vertical:re.vertical,"tooltip-class":re.tooltipClass,placement:re.placement,role:"slider","aria-label":re.range||!s(O)?s(B):void 0,"aria-labelledby":!re.range&&s(O)?(ce=s(i))==null?void 0:ce.labelId:void 0,"aria-valuemin":re.min,"aria-valuemax":re.range?s(le):re.max,"aria-valuenow":s(G),"aria-valuetext":s(F),"aria-orientation":re.vertical?"vertical":"horizontal","aria-disabled":s(p),"onUpdate:modelValue":s(k)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),re.range?(y(),ue(O3,{key:0,ref_key:"secondButton",ref:d,"model-value":s(le),vertical:re.vertical,"tooltip-class":re.tooltipClass,placement:re.placement,role:"slider","aria-label":s(H),"aria-valuemin":s(G),"aria-valuemax":re.max,"aria-valuenow":s(le),"aria-valuetext":s(L),"aria-orientation":re.vertical?"vertical":"horizontal","aria-disabled":s(p),"onUpdate:modelValue":s(z)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):ae("v-if",!0),re.showStops?(y(),$("div",Age,[(y(!0),$(Pe,null,ut(s(M),(ne,xe)=>(y(),$("div",{key:xe,class:T(s(r).e("stop")),style:Be(s(E)(ne))},null,6))),128))])):ae("v-if",!0),s(R).length>0?(y(),$(Pe,{key:2},[C("div",null,[(y(!0),$(Pe,null,ut(s(R),(ne,xe)=>(y(),$("div",{key:xe,style:Be(s(E)(ne.position)),class:T([s(r).e("stop"),s(r).e("marks-stop")])},null,6))),128))]),C("div",{class:T(s(r).e("marks"))},[(y(!0),$(Pe,null,ut(s(R),(ne,xe)=>(y(),ue(s(Mge),{key:xe,mark:ne.mark,style:Be(s(E)(ne.position))},null,8,["mark","style"]))),128))],2)],64)):ae("v-if",!0)],38),re.showInput&&!re.range?(y(),ue(s(j8),{key:0,ref:"input","model-value":s(G),class:T(s(r).e("input")),step:re.step,disabled:s(p),controls:re.showInputControls,min:re.min,max:re.max,debounce:re.debounce,size:s(I),"onUpdate:modelValue":s(k),onChange:s(_)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):ae("v-if",!0)],42,Tge)}}});var Pge=Te(Oge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const Lge=at(Pge),Ige=Ae({prefixCls:{type:String}}),P3=te({name:"ElSpaceItem",props:Ige,setup(e,{slots:t}){const o=_e("space"),l=S(()=>`${e.prefixCls||o.b()}__item`);return()=>Fe("div",{class:l.value},ge(t,"default"))}}),L3={small:8,default:12,large:16};function Rge(e){const t=_e("space"),o=S(()=>[t.b(),t.m(e.direction),e.class]),l=V(0),r=V(0),n=S(()=>{const i=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${r.value}px`}:{},c={alignItems:e.alignment};return[i,c,e.style]}),a=S(()=>{const i={paddingBottom:`${r.value}px`,marginRight:`${l.value}px`},c=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[i,c]});return Ao(()=>{const{size:i="small",wrap:c,direction:u,fill:d}=e;if(Ie(i)){const[p=0,f=0]=i;l.value=p,r.value=f}else{let p;et(i)?p=i:p=L3[i||"small"]||L3.small,(c||d)&&u==="horizontal"?l.value=r.value=p:u==="horizontal"?(l.value=p,r.value=0):(r.value=p,l.value=0)}}),{classes:o,containerStyle:n,itemStyle:a}}const Hge=Ae({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:de([String,Object,Array]),default:""},style:{type:de([String,Array,Object]),default:""},alignment:{type:de(String),default:"center"},prefixCls:{type:String},spacer:{type:de([Object,String,Number,Array]),default:null,validator:e=>Vt(e)||et(e)||Ge(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Ur,validator:e=>et(e)||Ie(e)&&e.length===2&&e.every(et)}});var Nge=te({name:"ElSpace",props:Hge,setup(e,{slots:t}){const{classes:o,containerStyle:l,itemStyle:r}=Rge(e);function n(a,i="",c=[]){const{prefixCls:u}=e;return a.forEach((d,p)=>{y0(d)?Ie(d.children)&&d.children.forEach((f,h)=>{y0(f)&&Ie(f.children)?n(f.children,`${i+h}-`,c):c.push(K(P3,{style:r.value,prefixCls:u,key:`nested-${i+h}`},{default:()=>[f]},Xo.PROPS|Xo.STYLE,["style","prefixCls"]))}):Qne(d)&&c.push(K(P3,{style:r.value,prefixCls:u,key:`LoopKey${i+p}`},{default:()=>[d]},Xo.PROPS|Xo.STYLE,["style","prefixCls"]))}),c}return()=>{var a;const{spacer:i,direction:c}=e,u=ge(t,"default",{key:0},()=>[]);if(((a=u.children)!=null?a:[]).length===0)return null;if(Ie(u.children)){let d=n(u.children);if(i){const p=d.length-1;d=d.reduce((f,h,v)=>{const m=[...f,h];return v!==p&&m.push(K("span",{style:[r.value,c==="vertical"?"width: 100%":null],key:v},[Vt(i)?i:ot(i,Xo.TEXT)],Xo.STYLE)),m},[])}return K("div",{class:o.value,style:l.value},d,Xo.STYLE|Xo.CLASS)}return u.children}}});const Bge=at(Nge),Dge=Ae({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),Fge={[Ot]:(e,t)=>[e,t].every(et)},jge=te({name:"ElSteps"}),Kge=te({...jge,props:Dge,emits:Fge,setup(e,{emit:t}){const o=e,l=_e("steps"),r=V([]);return ve(r,()=>{r.value.forEach((n,a)=>{n.setIndex(a)})}),st("ElSteps",{props:o,steps:r}),ve(()=>o.active,(n,a)=>{t(Ot,n,a)}),(n,a)=>(y(),$("div",{class:T([s(l).b(),s(l).m(n.simple?"simple":n.direction)])},[ge(n.$slots,"default")],2))}});var Wge=Te(Kge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const qge=Ae({title:{type:String,default:""},icon:{type:Mt},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),Uge=te({name:"ElStep"}),Yge=te({...Uge,props:qge,setup(e){const t=e,o=_e("step"),l=V(-1),r=V({}),n=V(""),a=Re("ElSteps"),i=Qe();Ze(()=>{ve([()=>a.props.active,()=>a.props.processStatus,()=>a.props.finishStatus],([k])=>{b(k)},{immediate:!0})}),It(()=>{a.steps.value=a.steps.value.filter(k=>k.uid!==(i==null?void 0:i.uid))});const c=S(()=>t.status||n.value),u=S(()=>{const k=a.steps.value[l.value-1];return k?k.currentStatus:"wait"}),d=S(()=>a.props.alignCenter),p=S(()=>a.props.direction==="vertical"),f=S(()=>a.props.simple),h=S(()=>a.steps.value.length),v=S(()=>{var k;return((k=a.steps.value[h.value-1])==null?void 0:k.uid)===(i==null?void 0:i.uid)}),m=S(()=>f.value?"":a.props.space),g=S(()=>{const k={flexBasis:typeof m.value=="number"?`${m.value}px`:m.value?m.value:`${100/(h.value-(d.value?0:1))}%`};return p.value||v.value&&(k.maxWidth=`${100/h.value}%`),k}),_=k=>{l.value=k},w=k=>{let z=100;const M={};M.transitionDelay=`${150*l.value}ms`,k===a.props.processStatus?z=0:k==="wait"&&(z=0,M.transitionDelay=`${-150*l.value}ms`),M.borderWidth=z&&!f.value?"1px":0,M[a.props.direction==="vertical"?"height":"width"]=`${z}%`,r.value=M},b=k=>{k>l.value?n.value=a.props.finishStatus:k===l.value&&u.value!=="error"?n.value=a.props.processStatus:n.value="wait";const z=a.steps.value[l.value-1];z&&z.calcProgress(n.value)},x=wt({uid:S(()=>i==null?void 0:i.uid),currentStatus:c,setIndex:_,calcProgress:w});return a.steps.value=[...a.steps.value,x],(k,z)=>(y(),$("div",{style:Be(s(g)),class:T([s(o).b(),s(o).is(s(f)?"simple":s(a).props.direction),s(o).is("flex",s(v)&&!s(m)&&!s(d)),s(o).is("center",s(d)&&!s(p)&&!s(f))])},[ae(" icon & line "),C("div",{class:T([s(o).e("head"),s(o).is(s(c))])},[s(f)?ae("v-if",!0):(y(),$("div",{key:0,class:T(s(o).e("line"))},[C("i",{class:T(s(o).e("line-inner")),style:Be(r.value)},null,6)],2)),C("div",{class:T([s(o).e("icon"),s(o).is(k.icon||k.$slots.icon?"icon":"text")])},[ge(k.$slots,"icon",{},()=>[k.icon?(y(),ue(s(De),{key:0,class:T(s(o).e("icon-inner"))},{default:Z(()=>[(y(),ue(pt(k.icon)))]),_:1},8,["class"])):s(c)==="success"?(y(),ue(s(De),{key:1,class:T([s(o).e("icon-inner"),s(o).is("status")])},{default:Z(()=>[K(s(Fa))]),_:1},8,["class"])):s(c)==="error"?(y(),ue(s(De),{key:2,class:T([s(o).e("icon-inner"),s(o).is("status")])},{default:Z(()=>[K(s(nl))]),_:1},8,["class"])):s(f)?ae("v-if",!0):(y(),$("div",{key:3,class:T(s(o).e("icon-inner"))},Ce(l.value+1),3))])],2)],2),ae(" title & description "),C("div",{class:T(s(o).e("main"))},[C("div",{class:T([s(o).e("title"),s(o).is(s(c))])},[ge(k.$slots,"title",{},()=>[ot(Ce(k.title),1)])],2),s(f)?(y(),$("div",{key:0,class:T(s(o).e("arrow"))},null,2)):(y(),$("div",{key:1,class:T([s(o).e("description"),s(o).is(s(c))])},[ge(k.$slots,"description",{},()=>[ot(Ce(k.description),1)])],2))],2)],6))}});var vb=Te(Yge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const Gge=at(Wge,{Step:vb}),Xge=Bt(vb),Jge=Ae({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:Mt},inactiveIcon:{type:Mt},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:de(Function)},size:{type:String,validator:ja},tabindex:{type:[String,Number]}}),Zge={[nt]:e=>Jt(e)||Ge(e)||et(e),[Ot]:e=>Jt(e)||Ge(e)||et(e),[Co]:e=>Jt(e)||Ge(e)||et(e)},Qge=["onClick"],e8e=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],t8e=["aria-hidden"],o8e=["aria-hidden"],l8e=["aria-hidden"],o2="ElSwitch",r8e=te({name:o2}),n8e=te({...r8e,props:Jge,emits:Zge,setup(e,{expose:t,emit:o}){const l=e,r=Qe(),{formItem:n}=So(),a=Xt(),i=_e("switch");jr({from:'"value"',replacement:'"model-value" or "v-model"',scope:o2,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},S(()=>{var k;return!!((k=r.vnode.props)!=null&&k.value)}));const{inputId:c}=Yr(l,{formItemContext:n}),u=zl(S(()=>l.loading)),d=V(l.modelValue!==!1),p=V(),f=V(),h=S(()=>[i.b(),i.m(a.value),i.is("disabled",u.value),i.is("checked",g.value)]),v=S(()=>({width:Yt(l.width)}));ve(()=>l.modelValue,()=>{d.value=!0}),ve(()=>l.value,()=>{d.value=!1});const m=S(()=>d.value?l.modelValue:l.value),g=S(()=>m.value===l.activeValue);[l.activeValue,l.inactiveValue].includes(m.value)||(o(nt,l.inactiveValue),o(Ot,l.inactiveValue),o(Co,l.inactiveValue)),ve(g,k=>{var z;p.value.checked=k,l.validateEvent&&((z=n==null?void 0:n.validate)==null||z.call(n,"change").catch(M=>void 0))});const _=()=>{const k=g.value?l.inactiveValue:l.activeValue;o(nt,k),o(Ot,k),o(Co,k),Ne(()=>{p.value.checked=g.value})},w=()=>{if(u.value)return;const{beforeChange:k}=l;if(!k){_();return}const z=k();[Ti(z),Jt(z)].includes(!0)||Zt(o2,"beforeChange must return type `Promise` or `boolean`"),Ti(z)?z.then(E=>{E&&_()}).catch(E=>{}):z&&_()},b=S(()=>i.cssVarBlock({...l.activeColor?{"on-color":l.activeColor}:null,...l.inactiveColor?{"off-color":l.inactiveColor}:null,...l.borderColor?{"border-color":l.borderColor}:null})),x=()=>{var k,z;(z=(k=p.value)==null?void 0:k.focus)==null||z.call(k)};return Ze(()=>{p.value.checked=g.value}),t({focus:x,checked:g}),(k,z)=>(y(),$("div",{class:T(s(h)),style:Be(s(b)),onClick:Ue(w,["prevent"])},[C("input",{id:s(c),ref_key:"input",ref:p,class:T(s(i).e("input")),type:"checkbox",role:"switch","aria-checked":s(g),"aria-disabled":s(u),name:k.name,"true-value":k.activeValue,"false-value":k.inactiveValue,disabled:s(u),tabindex:k.tabindex,onChange:_,onKeydown:bt(w,["enter"])},null,42,e8e),!k.inlinePrompt&&(k.inactiveIcon||k.inactiveText)?(y(),$("span",{key:0,class:T([s(i).e("label"),s(i).em("label","left"),s(i).is("active",!s(g))])},[k.inactiveIcon?(y(),ue(s(De),{key:0},{default:Z(()=>[(y(),ue(pt(k.inactiveIcon)))]),_:1})):ae("v-if",!0),!k.inactiveIcon&&k.inactiveText?(y(),$("span",{key:1,"aria-hidden":s(g)},Ce(k.inactiveText),9,t8e)):ae("v-if",!0)],2)):ae("v-if",!0),C("span",{ref_key:"core",ref:f,class:T(s(i).e("core")),style:Be(s(v))},[k.inlinePrompt?(y(),$("div",{key:0,class:T(s(i).e("inner"))},[k.activeIcon||k.inactiveIcon?(y(),ue(s(De),{key:0,class:T(s(i).is("icon"))},{default:Z(()=>[(y(),ue(pt(s(g)?k.activeIcon:k.inactiveIcon)))]),_:1},8,["class"])):k.activeText||k.inactiveText?(y(),$("span",{key:1,class:T(s(i).is("text")),"aria-hidden":!s(g)},Ce(s(g)?k.activeText:k.inactiveText),11,o8e)):ae("v-if",!0)],2)):ae("v-if",!0),C("div",{class:T(s(i).e("action"))},[k.loading?(y(),ue(s(De),{key:0,class:T(s(i).is("loading"))},{default:Z(()=>[K(s(vr))]),_:1},8,["class"])):ae("v-if",!0)],2)],6),!k.inlinePrompt&&(k.activeIcon||k.activeText)?(y(),$("span",{key:1,class:T([s(i).e("label"),s(i).em("label","right"),s(i).is("active",s(g))])},[k.activeIcon?(y(),ue(s(De),{key:0},{default:Z(()=>[(y(),ue(pt(k.activeIcon)))]),_:1})):ae("v-if",!0),!k.activeIcon&&k.activeText?(y(),$("span",{key:1,"aria-hidden":!s(g)},Ce(k.activeText),9,l8e)):ae("v-if",!0)],2)):ae("v-if",!0)],14,Qge))}});var a8e=Te(n8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const i8e=at(a8e);/*! + * escape-html + * Copyright(c) 2012-2013 TJ Holowaychuk + * Copyright(c) 2015 Andreas Lubbe + * Copyright(c) 2015 Tiancheng "Timothy" Gu + * MIT Licensed + */var s8e=/["'&<>]/,c8e=u8e;function u8e(e){var t=""+e,o=s8e.exec(t);if(!o)return t;var l,r="",n=0,a=0;for(n=o.index;ntypeof u=="string"?Pt(i,u):u(i,c,e))):(t!=="$key"&&I3(i)&&"$value"in i&&(i=i.$value),[I3(i)?Pt(i,t):i])},a=function(i,c){if(l)return l(i.value,c.value);for(let u=0,d=i.key.length;uc.key[u])return 1}return 0};return e.map((i,c)=>({value:i,index:c,key:n?n(i,c):null})).sort((i,c)=>{let u=a(i,c);return u||(u=i.index-c.index),u*+o}).map(i=>i.value)},mb=function(e,t){let o=null;return e.columns.forEach(l=>{l.id===t&&(o=l)}),o},p8e=function(e,t){let o=null;for(let l=0;l{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const o=t.split(".");let l=e;for(const r of o)l=l[r];return`${l}`}else if(typeof t=="function")return t.call(null,e)},hn=function(e,t){const o={};return(e||[]).forEach((l,r)=>{o[so(l,t)]={row:l,index:r}}),o};function f8e(e,t){const o={};let l;for(l in e)o[l]=e[l];for(l in t)if(mt(t,l)){const r=t[l];typeof r<"u"&&(o[l]=r)}return o}function cf(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function gb(e){return e===""||e!==void 0&&(e=cf(e),Number.isNaN(e)&&(e=80)),e}function h8e(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function v8e(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,o)=>(...l)=>t(o(...l)))}function xi(e,t,o){let l=!1;const r=e.indexOf(t),n=r!==-1,a=i=>{i==="add"?e.push(t):e.splice(r,1),l=!0,Ie(t.children)&&t.children.forEach(c=>{xi(e,c,o!=null?o:!n)})};return Jt(o)?o&&!n?a("add"):!o&&n&&a("remove"):a(n?"remove":"add"),l}function m8e(e,t,o="children",l="hasChildren"){const r=a=>!(Array.isArray(a)&&a.length);function n(a,i,c){t(a,i,c),i.forEach(u=>{if(u[l]){t(u,null,c+1);return}const d=u[o];r(d)||n(u,d,c+1)})}e.forEach(a=>{if(a[l]){t(a,null,0);return}const i=a[o];r(i)||n(a,i,0)})}let Yl;function g8e(e,t,o,l,r){const{nextZIndex:n}=gr(),a=e==null?void 0:e.dataset.prefix,i=e==null?void 0:e.querySelector(`.${a}-scrollbar__wrap`);function c(){const v=r==="light",m=document.createElement("div");return m.className=`${a}-popper ${v?"is-light":"is-dark"}`,o=c8e(o),m.innerHTML=o,m.style.zIndex=String(n()),e==null||e.appendChild(m),m}function u(){const v=document.createElement("div");return v.className=`${a}-popper__arrow`,v}function d(){p&&p.update()}Yl==null||Yl(),Yl=()=>{try{p&&p.destroy(),f&&(e==null||e.removeChild(f)),t.removeEventListener("mouseenter",d),t.removeEventListener("mouseleave",Yl),i==null||i.removeEventListener("scroll",Yl),Yl=void 0}catch{}};let p=null;const f=c(),h=u();return f.appendChild(h),p=hg(t,f,{strategy:"absolute",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"arrow",options:{element:h,padding:10}}],...l}),t.addEventListener("mouseenter",d),t.addEventListener("mouseleave",Yl),i==null||i.addEventListener("scroll",Yl),p}function bb(e){return e.children?QC(e.children,bb):[e]}function H3(e,t){return e+t.colSpan}const _b=(e,t,o,l)=>{let r=0,n=e;const a=o.states.columns.value;if(l){const c=bb(l[e]);r=a.slice(0,a.indexOf(c[0])).reduce(H3,0),n=r+c.reduce(H3,0)-1}else r=e;let i;switch(t){case"left":n=a.length-o.states.rightFixedLeafColumnsLength.value&&(i="right");break;default:n=a.length-o.states.rightFixedLeafColumnsLength.value&&(i="right")}return i?{direction:i,start:r,after:n}:{}},uf=(e,t,o,l,r,n=0)=>{const a=[],{direction:i,start:c,after:u}=_b(t,o,l,r);if(i){const d=i==="left";a.push(`${e}-fixed-column--${i}`),d&&u+n===l.states.fixedLeafColumnsLength.value-1?a.push("is-last-column"):!d&&c-n===l.states.columns.value.length-l.states.rightFixedLeafColumnsLength.value&&a.push("is-first-column")}return a};function N3(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const df=(e,t,o,l)=>{const{direction:r,start:n=0,after:a=0}=_b(e,t,o,l);if(!r)return;const i={},c=r==="left",u=o.states.columns.value;return c?i.left=u.slice(0,n).reduce(N3,0):i.right=u.slice(a+1).reverse().reduce(N3,0),i},Ea=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function b8e(e){const t=Qe(),o=V(!1),l=V([]);return{updateExpandRows:()=>{const c=e.data.value||[],u=e.rowKey.value;if(o.value)l.value=c.slice();else if(u){const d=hn(l.value,u);l.value=c.reduce((p,f)=>{const h=so(f,u);return d[h]&&p.push(f),p},[])}else l.value=[]},toggleRowExpansion:(c,u)=>{xi(l.value,c,u)&&t.emit("expand-change",c,l.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const u=e.data.value||[],d=e.rowKey.value,p=hn(u,d);l.value=c.reduce((f,h)=>{const v=p[h];return v&&f.push(v.row),f},[])},isRowExpanded:c=>{const u=e.rowKey.value;return u?!!hn(l.value,u)[so(c,u)]:l.value.includes(c)},states:{expandRows:l,defaultExpandAll:o}}}function _8e(e){const t=Qe(),o=V(null),l=V(null),r=u=>{t.store.assertRowKey(),o.value=u,a(u)},n=()=>{o.value=null},a=u=>{const{data:d,rowKey:p}=e;let f=null;p.value&&(f=(s(d)||[]).find(h=>so(h,p.value)===u)),l.value=f,t.emit("current-change",l.value,null)};return{setCurrentRowKey:r,restoreCurrentRowKey:n,setCurrentRowByKey:a,updateCurrentRow:u=>{const d=l.value;if(u&&u!==d){l.value=u,t.emit("current-change",l.value,d);return}!u&&d&&(l.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const u=e.rowKey.value,d=e.data.value||[],p=l.value;if(!d.includes(p)&&p){if(u){const f=so(p,u);a(f)}else l.value=null;l.value===null&&t.emit("current-change",null,p)}else o.value&&(a(o.value),n())},states:{_currentRowKey:o,currentRow:l}}}function y8e(e){const t=V([]),o=V({}),l=V(16),r=V(!1),n=V({}),a=V("hasChildren"),i=V("children"),c=Qe(),u=S(()=>{if(!e.rowKey.value)return{};const _=e.data.value||[];return p(_)}),d=S(()=>{const _=e.rowKey.value,w=Object.keys(n.value),b={};return w.length&&w.forEach(x=>{if(n.value[x].length){const k={children:[]};n.value[x].forEach(z=>{const M=so(z,_);k.children.push(M),z[a.value]&&!b[M]&&(b[M]={children:[]})}),b[x]=k}}),b}),p=_=>{const w=e.rowKey.value,b={};return m8e(_,(x,k,z)=>{const M=so(x,w);Array.isArray(k)?b[M]={children:k.map(E=>so(E,w)),level:z}:r.value&&(b[M]={children:[],lazy:!0,level:z})},i.value,a.value),b},f=(_=!1,w=(b=>(b=c.store)==null?void 0:b.states.defaultExpandAll.value)())=>{var b;const x=u.value,k=d.value,z=Object.keys(x),M={};if(z.length){const E=s(o),A=[],O=(I,N)=>{if(_)return t.value?w||t.value.includes(N):!!(w||(I==null?void 0:I.expanded));{const B=w||t.value&&t.value.includes(N);return!!((I==null?void 0:I.expanded)||B)}};z.forEach(I=>{const N=E[I],B={...x[I]};if(B.expanded=O(N,I),B.lazy){const{loaded:F=!1,loading:H=!1}=N||{};B.loaded=!!F,B.loading=!!H,A.push(I)}M[I]=B});const D=Object.keys(k);r.value&&D.length&&A.length&&D.forEach(I=>{const N=E[I],B=k[I].children;if(A.includes(I)){if(M[I].children.length!==0)throw new Error("[ElTable]children must be an empty array.");M[I].children=B}else{const{loaded:F=!1,loading:H=!1}=N||{};M[I]={lazy:!0,loaded:!!F,loading:!!H,expanded:O(N,I),children:B,level:""}}})}o.value=M,(b=c.store)==null||b.updateTableScrollY()};ve(()=>t.value,()=>{f(!0)}),ve(()=>u.value,()=>{f()}),ve(()=>d.value,()=>{f()});const h=_=>{t.value=_,f()},v=(_,w)=>{c.store.assertRowKey();const b=e.rowKey.value,x=so(_,b),k=x&&o.value[x];if(x&&k&&"expanded"in k){const z=k.expanded;w=typeof w>"u"?!k.expanded:w,o.value[x].expanded=w,z!==w&&c.emit("expand-change",_,w),c.store.updateTableScrollY()}},m=_=>{c.store.assertRowKey();const w=e.rowKey.value,b=so(_,w),x=o.value[b];r.value&&x&&"loaded"in x&&!x.loaded?g(_,b,x):v(_,void 0)},g=(_,w,b)=>{const{load:x}=c.props;x&&!o.value[w].loaded&&(o.value[w].loading=!0,x(_,b,k=>{if(!Array.isArray(k))throw new TypeError("[ElTable] data must be an array");o.value[w].loading=!1,o.value[w].loaded=!0,o.value[w].expanded=!0,k.length&&(n.value[w]=k),c.emit("expand-change",_,!0)}))};return{loadData:g,loadOrToggle:m,toggleTreeExpansion:v,updateTreeExpandKeys:h,updateTreeData:f,normalize:p,states:{expandRowKeys:t,treeData:o,indent:l,lazy:r,lazyTreeNodeMap:n,lazyColumnIdentifier:a,childrenColumnName:i}}}const w8e=(e,t)=>{const o=t.sortingColumn;return!o||typeof o.sortable=="string"?e:d8e(e,t.sortProp,t.sortOrder,o.sortMethod,o.sortBy)},hc=e=>{const t=[];return e.forEach(o=>{o.children?t.push.apply(t,hc(o.children)):t.push(o)}),t};function x8e(){var e;const t=Qe(),{size:o}=Gt((e=t.proxy)==null?void 0:e.$props),l=V(null),r=V([]),n=V([]),a=V(!1),i=V([]),c=V([]),u=V([]),d=V([]),p=V([]),f=V([]),h=V([]),v=V([]),m=V(0),g=V(0),_=V(0),w=V(!1),b=V([]),x=V(!1),k=V(!1),z=V(null),M=V({}),E=V(null),A=V(null),O=V(null),D=V(null),I=V(null);ve(r,()=>t.state&&H(!1),{deep:!0});const N=()=>{if(!l.value)throw new Error("[ElTable] prop row-key is required")},B=ye=>{var He;(He=ye.children)==null||He.forEach(Je=>{Je.fixed=ye.fixed,B(Je)})},F=()=>{i.value.forEach(ie=>{B(ie)}),d.value=i.value.filter(ie=>ie.fixed===!0||ie.fixed==="left"),p.value=i.value.filter(ie=>ie.fixed==="right"),d.value.length>0&&i.value[0]&&i.value[0].type==="selection"&&!i.value[0].fixed&&(i.value[0].fixed=!0,d.value.unshift(i.value[0]));const ye=i.value.filter(ie=>!ie.fixed);c.value=[].concat(d.value).concat(ye).concat(p.value);const He=hc(ye),Je=hc(d.value),q=hc(p.value);m.value=He.length,g.value=Je.length,_.value=q.length,u.value=[].concat(Je).concat(He).concat(q),a.value=d.value.length>0||p.value.length>0},H=(ye,He=!1)=>{ye&&F(),He?t.state.doLayout():t.state.debouncedUpdateLayout()},L=ye=>b.value.includes(ye),P=()=>{w.value=!1,b.value.length&&(b.value=[],t.emit("selection-change",[]))},R=()=>{let ye;if(l.value){ye=[];const He=hn(b.value,l.value),Je=hn(r.value,l.value);for(const q in He)mt(He,q)&&!Je[q]&&ye.push(He[q].row)}else ye=b.value.filter(He=>!r.value.includes(He));if(ye.length){const He=b.value.filter(Je=>!ye.includes(Je));b.value=He,t.emit("selection-change",He.slice())}},J=()=>(b.value||[]).slice(),oe=(ye,He=void 0,Je=!0)=>{if(xi(b.value,ye,He)){const ie=(b.value||[]).slice();Je&&t.emit("select",ie,ye),t.emit("selection-change",ie)}},G=()=>{var ye,He;const Je=k.value?!w.value:!(w.value||b.value.length);w.value=Je;let q=!1,ie=0;const ke=(He=(ye=t==null?void 0:t.store)==null?void 0:ye.states)==null?void 0:He.rowKey.value;r.value.forEach((Me,it)=>{const zt=it+ie;z.value?z.value.call(null,Me,zt)&&xi(b.value,Me,Je)&&(q=!0):xi(b.value,Me,Je)&&(q=!0),ie+=j(so(Me,ke))}),q&&t.emit("selection-change",b.value?b.value.slice():[]),t.emit("select-all",b.value)},le=()=>{const ye=hn(b.value,l.value);r.value.forEach(He=>{const Je=so(He,l.value),q=ye[Je];q&&(b.value[q.index]=He)})},he=()=>{var ye,He,Je;if(((ye=r.value)==null?void 0:ye.length)===0){w.value=!1;return}let q;l.value&&(q=hn(b.value,l.value));const ie=function(zt){return q?!!q[so(zt,l.value)]:b.value.includes(zt)};let ke=!0,Me=0,it=0;for(let zt=0,Ut=(r.value||[]).length;zt{var He;if(!t||!t.store)return 0;const{treeData:Je}=t.store.states;let q=0;const ie=(He=Je.value[ye])==null?void 0:He.children;return ie&&(q+=ie.length,ie.forEach(ke=>{q+=j(ke)})),q},re=(ye,He)=>{Array.isArray(ye)||(ye=[ye]);const Je={};return ye.forEach(q=>{M.value[q.id]=He,Je[q.columnKey||q.id]=He}),Je},Y=(ye,He,Je)=>{A.value&&A.value!==ye&&(A.value.order=null),A.value=ye,O.value=He,D.value=Je},W=()=>{let ye=s(n);Object.keys(M.value).forEach(He=>{const Je=M.value[He];if(!Je||Je.length===0)return;const q=mb({columns:u.value},He);q&&q.filterMethod&&(ye=ye.filter(ie=>Je.some(ke=>q.filterMethod.call(null,ke,ie,q))))}),E.value=ye},ce=()=>{r.value=w8e(E.value,{sortingColumn:A.value,sortProp:O.value,sortOrder:D.value})},ne=(ye=void 0)=>{ye&&ye.filter||W(),ce()},xe=ye=>{const{tableHeaderRef:He}=t.refs;if(!He)return;const Je=Object.assign({},He.filterPanels),q=Object.keys(Je);if(!!q.length)if(typeof ye=="string"&&(ye=[ye]),Array.isArray(ye)){const ie=ye.map(ke=>p8e({columns:u.value},ke));q.forEach(ke=>{const Me=ie.find(it=>it.id===ke);Me&&(Me.filteredValue=[])}),t.store.commit("filterChange",{column:ie,values:[],silent:!0,multi:!0})}else q.forEach(ie=>{const ke=u.value.find(Me=>Me.id===ie);ke&&(ke.filteredValue=[])}),M.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},U=()=>{!A.value||(Y(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Q,toggleRowExpansion:fe,updateExpandRows:we,states:$e,isRowExpanded:pe}=b8e({data:r,rowKey:l}),{updateTreeExpandKeys:Se,toggleTreeExpansion:me,updateTreeData:X,loadOrToggle:se,states:ze}=y8e({data:r,rowKey:l}),{updateCurrentRowData:Ve,updateCurrentRow:Le,setCurrentRowKey:Ke,states:qe}=_8e({data:r,rowKey:l});return{assertRowKey:N,updateColumns:F,scheduleLayout:H,isSelected:L,clearSelection:P,cleanSelection:R,getSelectionRows:J,toggleRowSelection:oe,_toggleAllSelection:G,toggleAllSelection:null,updateSelectionByRowKey:le,updateAllSelected:he,updateFilters:re,updateCurrentRow:Le,updateSort:Y,execFilter:W,execSort:ce,execQuery:ne,clearFilter:xe,clearSort:U,toggleRowExpansion:fe,setExpandRowKeysAdapter:ye=>{Q(ye),Se(ye)},setCurrentRowKey:Ke,toggleRowExpansionAdapter:(ye,He)=>{u.value.some(({type:q})=>q==="expand")?fe(ye,He):me(ye,He)},isRowExpanded:pe,updateExpandRows:we,updateCurrentRowData:Ve,loadOrToggle:se,updateTreeData:X,states:{tableSize:o,rowKey:l,data:r,_data:n,isComplex:a,_columns:i,originColumns:c,columns:u,fixedColumns:d,rightFixedColumns:p,leafColumns:f,fixedLeafColumns:h,rightFixedLeafColumns:v,leafColumnsLength:m,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:_,isAllSelected:w,selection:b,reserveSelection:x,selectOnIndeterminate:k,selectable:z,filters:M,filteredData:E,sortingColumn:A,sortProp:O,sortOrder:D,hoverRow:I,...$e,...ze,...qe}}}function l2(e,t){return e.map(o=>{var l;return o.id===t.id?t:((l=o.children)!=null&&l.length&&(o.children=l2(o.children,t)),o)})}function yb(e){e.forEach(t=>{var o,l;t.no=(o=t.getColumnIndex)==null?void 0:o.call(t),(l=t.children)!=null&&l.length&&yb(t.children)}),e.sort((t,o)=>t.no-o.no)}function k8e(){const e=Qe(),t=x8e();return{ns:_e("table"),...t,mutations:{setData(a,i){const c=s(a._data)!==i;a.data.value=i,a._data.value=i,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),s(a.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(a,i,c){const u=s(a._columns);let d=[];c?(c&&!c.children&&(c.children=[]),c.children.push(i),d=l2(u,c)):(u.push(i),d=u),yb(d),a._columns.value=d,i.type==="selection"&&(a.selectable.value=i.selectable,a.reserveSelection.value=i.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},removeColumn(a,i,c){const u=s(a._columns)||[];if(c)c.children.splice(c.children.findIndex(d=>d.id===i.id),1),c.children.length===0&&delete c.children,a._columns.value=l2(u,c);else{const d=u.indexOf(i);d>-1&&(u.splice(d,1),a._columns.value=u)}e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(a,i){const{prop:c,order:u,init:d}=i;if(c){const p=s(a.columns).find(f=>f.property===c);p&&(p.order=u,e.store.updateSort(p,c,u),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(a,i){const{sortingColumn:c,sortProp:u,sortOrder:d}=a,p=s(c),f=s(u),h=s(d);h===null&&(a.sortingColumn.value=null,a.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!i||!(i.silent||i.init))&&e.emit("sort-change",{column:p,prop:f,order:h}),e.store.updateTableScrollY()},filterChange(a,i){const{column:c,values:u,silent:d}=i,p=e.store.updateFilters(c,u);e.store.execQuery(),d||e.emit("filter-change",p),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(a,i){e.store.toggleRowSelection(i),e.store.updateAllSelected()},setHoverRow(a,i){a.hoverRow.value=i},setCurrentRow(a,i){e.store.updateCurrentRow(i)}},commit:function(a,...i){const c=e.store.mutations;if(c[a])c[a].apply(e,[e.store.states].concat(i));else throw new Error(`Action not found: ${a}`)},updateTableScrollY:function(){Ne(()=>e.layout.updateScrollY.apply(e.layout))}}}const ki={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function C8e(e,t){if(!e)throw new Error("Table is required.");const o=k8e();return o.toggleAllSelection=$o(o._toggleAllSelection,10),Object.keys(ki).forEach(l=>{wb(xb(t,l),l,o)}),$8e(o,t),o}function $8e(e,t){Object.keys(ki).forEach(o=>{ve(()=>xb(t,o),l=>{wb(l,o,e)})})}function wb(e,t,o){let l=e,r=ki[t];typeof ki[t]=="object"&&(r=r.key,l=l||ki[t].default),o.states[r].value=l}function xb(e,t){if(t.includes(".")){const o=t.split(".");let l=e;return o.forEach(r=>{l=l[r]}),l}else return e[t]}class S8e{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=V(null),this.scrollX=V(!1),this.scrollY=V(!1),this.bodyWidth=V(null),this.fixedWidth=V(null),this.rightFixedWidth=V(null),this.gutterWidth=0;for(const o in t)mt(t,o)&&(xt(this[o])?this[o].value=t[o]:this[o]=t[o]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const o=this.table.refs.scrollBarRef;if(this.table.vnode.el&&o){let l=!0;const r=this.scrollY.value;return l=o.wrap$.scrollHeight>o.wrap$.clientHeight,this.scrollY.value=l,r!==l}return!1}setHeight(t,o="height"){if(!gt)return;const l=this.table.vnode.el;if(t=h8e(t),this.height.value=Number(t),!l&&(t||t===0))return Ne(()=>this.setHeight(t,o));typeof t=="number"?(l.style[o]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(l.style[o]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(l=>{l.isColumnGroup?t.push.apply(t,l.columns):t.push(l)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let o=t;for(;o.tagName!=="DIV";){if(getComputedStyle(o).display==="none")return!0;o=o.parentElement}return!1}updateColumnsWidth(){if(!gt)return;const t=this.fit,o=this.table.vnode.el.clientWidth;let l=0;const r=this.getFlattenColumns(),n=r.filter(c=>typeof c.width!="number");if(r.forEach(c=>{typeof c.width=="number"&&c.realWidth&&(c.realWidth=null)}),n.length>0&&t){if(r.forEach(c=>{l+=Number(c.width||c.minWidth||80)}),l<=o){this.scrollX.value=!1;const c=o-l;if(n.length===1)n[0].realWidth=Number(n[0].minWidth||80)+c;else{const u=n.reduce((f,h)=>f+Number(h.minWidth||80),0),d=c/u;let p=0;n.forEach((f,h)=>{if(h===0)return;const v=Math.floor(Number(f.minWidth||80)*d);p+=v,f.realWidth=Number(f.minWidth||80)+v}),n[0].realWidth=Number(n[0].minWidth||80)+c-p}}else this.scrollX.value=!0,n.forEach(c=>{c.realWidth=Number(c.minWidth)});this.bodyWidth.value=Math.max(l,o),this.table.state.resizeState.value.width=this.bodyWidth.value}else r.forEach(c=>{!c.width&&!c.minWidth?c.realWidth=80:c.realWidth=Number(c.width||c.minWidth),l+=c.realWidth}),this.scrollX.value=l>o,this.bodyWidth.value=l;const a=this.store.states.fixedColumns.value;if(a.length>0){let c=0;a.forEach(u=>{c+=Number(u.realWidth||u.width)}),this.fixedWidth.value=c}const i=this.store.states.rightFixedColumns.value;if(i.length>0){let c=0;i.forEach(u=>{c+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=c}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const o=this.observers.indexOf(t);o!==-1&&this.observers.splice(o,1)}notifyObservers(t){this.observers.forEach(l=>{var r,n;switch(t){case"columns":(r=l.state)==null||r.onColumnsChange(this);break;case"scrollable":(n=l.state)==null||n.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:z8e}=sl,E8e=te({name:"ElTableFilterPanel",components:{ElCheckbox:sl,ElCheckboxGroup:z8e,ElScrollbar:_r,ElTooltip:Ro,ElIcon:De,ArrowDown:fr,ArrowUp:vs},directives:{ClickOutside:Wr},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=Qe(),{t:o}=yt(),l=_e("table-filter"),r=t==null?void 0:t.parent;r.filterPanels.value[e.column.id]||(r.filterPanels.value[e.column.id]=t);const n=V(!1),a=V(null),i=S(()=>e.column&&e.column.filters),c=S({get:()=>{var x;return(((x=e.column)==null?void 0:x.filteredValue)||[])[0]},set:x=>{u.value&&(typeof x<"u"&&x!==null?u.value.splice(0,1,x):u.value.splice(0,1))}}),u=S({get(){return e.column?e.column.filteredValue||[]:[]},set(x){e.column&&e.upDataColumn("filteredValue",x)}}),d=S(()=>e.column?e.column.filterMultiple:!0),p=x=>x.value===c.value,f=()=>{n.value=!1},h=x=>{x.stopPropagation(),n.value=!n.value},v=()=>{n.value=!1},m=()=>{w(u.value),f()},g=()=>{u.value=[],w(u.value),f()},_=x=>{c.value=x,w(typeof x<"u"&&x!==null?u.value:[]),f()},w=x=>{e.store.commit("filterChange",{column:e.column,values:x}),e.store.updateAllSelected()};ve(n,x=>{e.column&&e.upDataColumn("filterOpened",x)},{immediate:!0});const b=S(()=>{var x,k;return(k=(x=a.value)==null?void 0:x.popperRef)==null?void 0:k.contentRef});return{tooltipVisible:n,multiple:d,filteredValue:u,filterValue:c,filters:i,handleConfirm:m,handleReset:g,handleSelect:_,isActive:p,t:o,ns:l,showFilterPanel:h,hideFilterPanel:v,popperPaneRef:b,tooltip:a}}}),M8e={key:0},T8e=["disabled"],A8e=["label","onClick"];function V8e(e,t,o,l,r,n){const a=Oe("el-checkbox"),i=Oe("el-checkbox-group"),c=Oe("el-scrollbar"),u=Oe("arrow-up"),d=Oe("arrow-down"),p=Oe("el-icon"),f=Oe("el-tooltip"),h=ha("click-outside");return y(),ue(f,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:Z(()=>[e.multiple?(y(),$("div",M8e,[C("div",{class:T(e.ns.e("content"))},[K(c,{"wrap-class":e.ns.e("wrap")},{default:Z(()=>[K(i,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:T(e.ns.e("checkbox-group"))},{default:Z(()=>[(y(!0),$(Pe,null,ut(e.filters,v=>(y(),ue(a,{key:v.value,label:v.value},{default:Z(()=>[ot(Ce(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),C("div",{class:T(e.ns.e("bottom"))},[C("button",{class:T({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...v)=>e.handleConfirm&&e.handleConfirm(...v))},Ce(e.t("el.table.confirmFilter")),11,T8e),C("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},Ce(e.t("el.table.resetFilter")),1)],2)])):(y(),$("ul",{key:1,class:T(e.ns.e("list"))},[C("li",{class:T([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=v=>e.handleSelect(null))},Ce(e.t("el.table.clearFilter")),3),(y(!0),$(Pe,null,ut(e.filters,v=>(y(),$("li",{key:v.value,class:T([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:m=>e.handleSelect(v.value)},Ce(v.text),11,A8e))),128))],2))]),default:Z(()=>[Xe((y(),$("span",{class:T([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...v)=>e.showFilterPanel&&e.showFilterPanel(...v))},[K(p,null,{default:Z(()=>[e.column.filterOpened?(y(),ue(u,{key:0})):(y(),ue(d,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var O8e=Te(E8e,[["render",V8e],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function kb(e){const t=Qe();iu(()=>{o.value.addObserver(t)}),Ze(()=>{l(o.value),r(o.value)}),jl(()=>{l(o.value),r(o.value)}),ur(()=>{o.value.removeObserver(t)});const o=S(()=>{const n=e.layout;if(!n)throw new Error("Can not find table layout.");return n}),l=n=>{var a;const i=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col"))||[];if(!i.length)return;const c=n.getFlattenColumns(),u={};c.forEach(d=>{u[d.id]=d});for(let d=0,p=i.length;d{var a,i;const c=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,p=c.length;d{m.stopPropagation()},n=(m,g)=>{!g.filters&&g.sortable?v(m,g,!1):g.filterable&&!g.sortable&&r(m),l==null||l.emit("header-click",g,m)},a=(m,g)=>{l==null||l.emit("header-contextmenu",g,m)},i=V(null),c=V(!1),u=V({}),d=(m,g)=>{if(!!gt&&!(g.children&&g.children.length>0)&&i.value&&e.border){c.value=!0;const _=l;t("set-drag-visible",!0);const b=(_==null?void 0:_.vnode.el).getBoundingClientRect().left,x=o.vnode.el.querySelector(`th.${g.id}`),k=x.getBoundingClientRect(),z=k.left-b+30;Ol(x,"noclick"),u.value={startMouseLeft:m.clientX,startLeft:k.right-b,startColumnLeft:k.left-b,tableLeft:b};const M=_==null?void 0:_.refs.resizeProxy;M.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const E=O=>{const D=O.clientX-u.value.startMouseLeft,I=u.value.startLeft+D;M.style.left=`${Math.max(z,I)}px`},A=()=>{if(c.value){const{startColumnLeft:O,startLeft:D}=u.value,N=Number.parseInt(M.style.left,10)-O;g.width=g.realWidth=N,_==null||_.emit("header-dragend",g.width,D-O,g,m),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",c.value=!1,i.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",A),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Vo(x,"noclick")},0)};document.addEventListener("mousemove",E),document.addEventListener("mouseup",A)}},p=(m,g)=>{var _;if(g.children&&g.children.length>0)return;const w=(_=m.target)==null?void 0:_.closest("th");if(!(!g||!g.resizable)&&!c.value&&e.border){const b=w.getBoundingClientRect(),x=document.body.style;b.width>12&&b.right-m.pageX<8?(x.cursor="col-resize",_l(w,"is-sortable")&&(w.style.cursor="col-resize"),i.value=g):c.value||(x.cursor="",_l(w,"is-sortable")&&(w.style.cursor="pointer"),i.value=null)}},f=()=>{!gt||(document.body.style.cursor="")},h=({order:m,sortOrders:g})=>{if(m==="")return g[0];const _=g.indexOf(m||null);return g[_>g.length-2?0:_+1]},v=(m,g,_)=>{var w;m.stopPropagation();const b=g.order===_?null:_||h(g),x=(w=m.target)==null?void 0:w.closest("th");if(x&&_l(x,"noclick")){Vo(x,"noclick");return}if(!g.sortable)return;const k=e.store.states;let z=k.sortProp.value,M;const E=k.sortingColumn.value;(E!==g||E===g&&E.order===null)&&(E&&(E.order=null),k.sortingColumn.value=g,z=g.property),b?M=g.order=b:M=g.order=null,k.sortProp.value=z,k.sortOrder.value=M,l==null||l.store.commit("changeSortCondition")};return{handleHeaderClick:n,handleHeaderContextMenu:a,handleMouseDown:d,handleMouseMove:p,handleMouseOut:f,handleSortClick:v,handleFilterClick:r}}function L8e(e){const t=Re(Kl),o=_e("table");return{getHeaderRowStyle:i=>{const c=t==null?void 0:t.props.headerRowStyle;return typeof c=="function"?c.call(null,{rowIndex:i}):c},getHeaderRowClass:i=>{const c=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?c.push(u):typeof u=="function"&&c.push(u.call(null,{rowIndex:i})),c.join(" ")},getHeaderCellStyle:(i,c,u,d)=>{var p;let f=(p=t==null?void 0:t.props.headerCellStyle)!=null?p:{};typeof f=="function"&&(f=f.call(null,{rowIndex:i,columnIndex:c,row:u,column:d}));const h=df(c,d.fixed,e.store,u);return Ea(h,"left"),Ea(h,"right"),Object.assign({},f,h)},getHeaderCellClass:(i,c,u,d)=>{const p=uf(o.b(),c,d.fixed,e.store,u),f=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...p];d.children||f.push("is-leaf"),d.sortable&&f.push("is-sortable");const h=t==null?void 0:t.props.headerCellClassName;return typeof h=="string"?f.push(h):typeof h=="function"&&f.push(h.call(null,{rowIndex:i,columnIndex:c,row:u,column:d})),f.push(o.e("cell")),f.filter(v=>Boolean(v)).join(" ")}}}const Cb=e=>{const t=[];return e.forEach(o=>{o.children?(t.push(o),t.push.apply(t,Cb(o.children))):t.push(o)}),t},I8e=e=>{let t=1;const o=(n,a)=>{if(a&&(n.level=a.level+1,t{o(c,n),i+=c.colSpan}),n.colSpan=i}else n.colSpan=1};e.forEach(n=>{n.level=1,o(n,void 0)});const l=[];for(let n=0;n{n.children?(n.rowSpan=1,n.children.forEach(a=>a.isSubColumn=!0)):n.rowSpan=t-n.level+1,l[n.level-1].push(n)}),l};function R8e(e){const t=Re(Kl),o=S(()=>I8e(e.store.states.originColumns.value));return{isGroup:S(()=>{const n=o.value.length>1;return n&&t&&(t.state.isGroup.value=!0),n}),toggleAllSelection:n=>{n.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:o}}var H8e=te({name:"ElTableHeader",components:{ElCheckbox:sl},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const o=Qe(),l=Re(Kl),r=_e("table"),n=V({}),{onColumnsChange:a,onScrollableChange:i}=kb(l);Ze(async()=>{await Ne(),await Ne();const{prop:z,order:M}=e.defaultSort;l==null||l.store.commit("sort",{prop:z,order:M,init:!0})});const{handleHeaderClick:c,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:p,handleMouseOut:f,handleSortClick:h,handleFilterClick:v}=P8e(e,t),{getHeaderRowStyle:m,getHeaderRowClass:g,getHeaderCellStyle:_,getHeaderCellClass:w}=L8e(e),{isGroup:b,toggleAllSelection:x,columnRows:k}=R8e(e);return o.state={onColumnsChange:a,onScrollableChange:i},o.filterPanels=n,{ns:r,filterPanels:n,onColumnsChange:a,onScrollableChange:i,columnRows:k,getHeaderRowClass:g,getHeaderRowStyle:m,getHeaderCellClass:w,getHeaderCellStyle:_,handleHeaderClick:c,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:p,handleMouseOut:f,handleSortClick:h,handleFilterClick:v,isGroup:b,toggleAllSelection:x}},render(){const{ns:e,isGroup:t,columnRows:o,getHeaderCellStyle:l,getHeaderCellClass:r,getHeaderRowClass:n,getHeaderRowStyle:a,handleHeaderClick:i,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:d,handleSortClick:p,handleMouseOut:f,store:h,$parent:v}=this;let m=1;return Fe("thead",{class:{[e.is("group")]:t}},o.map((g,_)=>Fe("tr",{class:n(_),key:_,style:a(_)},g.map((w,b)=>(w.rowSpan>m&&(m=w.rowSpan),Fe("th",{class:r(_,b,g,w),colspan:w.colSpan,key:`${w.id}-thead`,rowspan:w.rowSpan,style:l(_,b,g,w),onClick:x=>i(x,w),onContextmenu:x=>c(x,w),onMousedown:x=>u(x,w),onMousemove:x=>d(x,w),onMouseout:f},[Fe("div",{class:["cell",w.filteredValue&&w.filteredValue.length>0?"highlight":""]},[w.renderHeader?w.renderHeader({column:w,$index:b,store:h,_self:v}):w.label,w.sortable&&Fe("span",{onClick:x=>p(x,w),class:"caret-wrapper"},[Fe("i",{onClick:x=>p(x,w,"ascending"),class:"sort-caret ascending"}),Fe("i",{onClick:x=>p(x,w,"descending"),class:"sort-caret descending"})]),w.filterable&&Fe(O8e,{store:h,placement:w.filterPlacement||"bottom-start",column:w,upDataColumn:(x,k)=>{w[x]=k}})])]))))))}});function N8e(e){const t=Re(Kl),o=V(""),l=V(Fe("div")),r=(f,h,v)=>{var m;const g=t,_=kd(f);let w;const b=(m=g==null?void 0:g.vnode.el)==null?void 0:m.dataset.prefix;_&&(w=R3({columns:e.store.states.columns.value},_,b),w&&(g==null||g.emit(`cell-${v}`,h,w,_,f))),g==null||g.emit(`row-${v}`,h,w,f)},n=(f,h)=>{r(f,h,"dblclick")},a=(f,h)=>{e.store.commit("setCurrentRow",h),r(f,h,"click")},i=(f,h)=>{r(f,h,"contextmenu")},c=$o(f=>{e.store.commit("setHoverRow",f)},30),u=$o(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:n,handleClick:a,handleContextMenu:i,handleMouseEnter:c,handleMouseLeave:u,handleCellMouseEnter:(f,h,v)=>{var m;const g=t,_=kd(f),w=(m=g==null?void 0:g.vnode.el)==null?void 0:m.dataset.prefix;if(_){const M=R3({columns:e.store.states.columns.value},_,w),E=g.hoverState={cell:_,column:M,row:h};g==null||g.emit("cell-mouse-enter",E.row,E.column,E.cell,f)}const b=f.target.querySelector(".cell");if(!(_l(b,`${w}-tooltip`)&&b.childNodes.length))return;const x=document.createRange();x.setStart(b,0),x.setEnd(b,b.childNodes.length);const k=x.getBoundingClientRect().width,z=(Number.parseInt(Ql(b,"paddingLeft"),10)||0)+(Number.parseInt(Ql(b,"paddingRight"),10)||0);(k+z>b.offsetWidth||b.scrollWidth>b.offsetWidth)&&g8e(t==null?void 0:t.refs.tableWrapper,_,_.innerText||_.textContent,{placement:"top",strategy:"fixed"},v)},handleCellMouseLeave:f=>{if(!kd(f))return;const v=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",v==null?void 0:v.row,v==null?void 0:v.column,v==null?void 0:v.cell,f)},tooltipContent:o,tooltipTrigger:l}}function B8e(e){const t=Re(Kl),o=_e("table");return{getRowStyle:(u,d)=>{const p=t==null?void 0:t.props.rowStyle;return typeof p=="function"?p.call(null,{row:u,rowIndex:d}):p||null},getRowClass:(u,d)=>{const p=[o.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&u===e.store.states.currentRow.value&&p.push("current-row"),e.stripe&&d%2===1&&p.push(o.em("row","striped"));const f=t==null?void 0:t.props.rowClassName;return typeof f=="string"?p.push(f):typeof f=="function"&&p.push(f.call(null,{row:u,rowIndex:d})),p},getCellStyle:(u,d,p,f)=>{const h=t==null?void 0:t.props.cellStyle;let v=h!=null?h:{};typeof h=="function"&&(v=h.call(null,{rowIndex:u,columnIndex:d,row:p,column:f}));const m=df(d,e==null?void 0:e.fixed,e.store);return Ea(m,"left"),Ea(m,"right"),Object.assign({},v,m)},getCellClass:(u,d,p,f,h)=>{const v=uf(o.b(),d,e==null?void 0:e.fixed,e.store,void 0,h),m=[f.id,f.align,f.className,...v],g=t==null?void 0:t.props.cellClassName;return typeof g=="string"?m.push(g):typeof g=="function"&&m.push(g.call(null,{rowIndex:u,columnIndex:d,row:p,column:f})),m.push(o.e("cell")),m.filter(_=>Boolean(_)).join(" ")},getSpan:(u,d,p,f)=>{let h=1,v=1;const m=t==null?void 0:t.props.spanMethod;if(typeof m=="function"){const g=m({row:u,column:d,rowIndex:p,columnIndex:f});Array.isArray(g)?(h=g[0],v=g[1]):typeof g=="object"&&(h=g.rowspan,v=g.colspan)}return{rowspan:h,colspan:v}},getColspanRealWidth:(u,d,p)=>{if(d<1)return u[p].realWidth;const f=u.map(({realWidth:h,width:v})=>h||v).slice(p,p+d);return Number(f.reduce((h,v)=>Number(h)+Number(v),-1))}}}function D8e(e){const t=Re(Kl),o=_e("table"),{handleDoubleClick:l,handleClick:r,handleContextMenu:n,handleMouseEnter:a,handleMouseLeave:i,handleCellMouseEnter:c,handleCellMouseLeave:u,tooltipContent:d,tooltipTrigger:p}=N8e(e),{getRowStyle:f,getRowClass:h,getCellStyle:v,getCellClass:m,getSpan:g,getColspanRealWidth:_}=B8e(e),w=S(()=>e.store.states.columns.value.findIndex(({type:M})=>M==="default")),b=(M,E)=>{const A=t.props.rowKey;return A?so(M,A):E},x=(M,E,A,O=!1)=>{const{tooltipEffect:D,store:I}=e,{indent:N,columns:B}=I.states,F=h(M,E);let H=!0;return A&&(F.push(o.em("row",`level-${A.level}`)),H=A.display),Fe("tr",{style:[H?null:{display:"none"},f(M,E)],class:F,key:b(M,E),onDblclick:P=>l(P,M),onClick:P=>r(P,M),onContextmenu:P=>n(P,M),onMouseenter:()=>a(E),onMouseleave:i},B.value.map((P,R)=>{const{rowspan:J,colspan:oe}=g(M,P,E,R);if(!J||!oe)return null;const G={...P};G.realWidth=_(B.value,oe,R);const le={store:e.store,_self:e.context||t,column:G,row:M,$index:E,cellIndex:R,expanded:O};R===w.value&&A&&(le.treeNode={indent:A.level*N.value,level:A.level},typeof A.expanded=="boolean"&&(le.treeNode.expanded=A.expanded,"loading"in A&&(le.treeNode.loading=A.loading),"noLazyChildren"in A&&(le.treeNode.noLazyChildren=A.noLazyChildren)));const he=`${E},${R}`,j=G.columnKey||G.rawColumnKey||"",re=k(R,P,le);return Fe("td",{style:v(E,R,M,P),class:m(E,R,M,P,oe-1),key:`${j}${he}`,rowspan:J,colspan:oe,onMouseenter:Y=>c(Y,M,D),onMouseleave:u},[re])}))},k=(M,E,A)=>E.renderCell(A);return{wrappedRowRender:(M,E)=>{const A=e.store,{isRowExpanded:O,assertRowKey:D}=A,{treeData:I,lazyTreeNodeMap:N,childrenColumnName:B,rowKey:F}=A.states,H=A.states.columns.value;if(H.some(({type:P})=>P==="expand")){const P=O(M),R=x(M,E,void 0,P),J=t.renderExpanded;return P?J?[[R,Fe("tr",{key:`expanded-row__${R.key}`},[Fe("td",{colspan:H.length,class:`${o.e("cell")} ${o.e("expanded-cell")}`},[J({row:M,$index:E,store:A,expanded:P})])])]]:(console.error("[Element Error]renderExpanded is required."),R):[[R]]}else if(Object.keys(I.value).length){D();const P=so(M,F.value);let R=I.value[P],J=null;R&&(J={expanded:R.expanded,level:R.level,display:!0},typeof R.lazy=="boolean"&&(typeof R.loaded=="boolean"&&R.loaded&&(J.noLazyChildren=!(R.children&&R.children.length)),J.loading=R.loading));const oe=[x(M,E,J)];if(R){let G=0;const le=(j,re)=>{!(j&&j.length&&re)||j.forEach(Y=>{const W={display:re.display&&re.expanded,level:re.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ce=so(Y,F.value);if(ce==null)throw new Error("For nested data item, row-key is required.");if(R={...I.value[ce]},R&&(W.expanded=R.expanded,R.level=R.level||W.level,R.display=!!(R.expanded&&W.display),typeof R.lazy=="boolean"&&(typeof R.loaded=="boolean"&&R.loaded&&(W.noLazyChildren=!(R.children&&R.children.length)),W.loading=R.loading)),G++,oe.push(x(Y,E+G,W)),R){const ne=N.value[ce]||Y[B.value];le(ne,R)}})};R.display=!0;const he=N.value[P]||M[B.value];le(he,R)}return oe}else return x(M,E,void 0)},tooltipContent:d,tooltipTrigger:p}}const F8e={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var j8e=te({name:"ElTableBody",props:F8e,setup(e){const t=Qe(),o=Re(Kl),l=_e("table"),{wrappedRowRender:r,tooltipContent:n,tooltipTrigger:a}=D8e(e),{onColumnsChange:i,onScrollableChange:c}=kb(o);return ve(e.store.states.hoverRow,(u,d)=>{if(!e.store.states.isComplex.value||!gt)return;let p=window.requestAnimationFrame;p||(p=f=>window.setTimeout(f,16)),p(()=>{const f=t==null?void 0:t.vnode.el,h=Array.from((f==null?void 0:f.children)||[]).filter(g=>g==null?void 0:g.classList.contains(`${l.e("row")}`)),v=h[d],m=h[u];v&&Vo(v,"hover-row"),m&&Ol(m,"hover-row")})}),ur(()=>{var u;(u=Yl)==null||u()}),{ns:l,onColumnsChange:i,onScrollableChange:c,wrappedRowRender:r,tooltipContent:n,tooltipTrigger:a}},render(){const{wrappedRowRender:e,store:t}=this,o=t.states.data.value||[];return Fe("tbody",{},[o.reduce((l,r)=>l.concat(e(r,l.length)),[])])}});function pf(e){const t=e.tableLayout==="auto";let o=e.columns||[];t&&o.every(r=>r.width===void 0)&&(o=[]);const l=r=>{const n={key:`${e.tableLayout}_${r.id}`,style:{},name:void 0};return t?n.style={width:`${r.width}px`}:n.name=r.id,n};return Fe("colgroup",{},o.map(r=>Fe("col",l(r))))}pf.props=["columns","tableLayout"];function K8e(){const e=Re(Kl),t=e==null?void 0:e.store,o=S(()=>t.states.fixedLeafColumnsLength.value),l=S(()=>t.states.rightFixedColumns.value.length),r=S(()=>t.states.columns.value.length),n=S(()=>t.states.fixedColumns.value.length),a=S(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:o,rightFixedLeafCount:l,columnsCount:r,leftFixedCount:n,rightFixedCount:a,columns:t.states.columns}}function W8e(e){const{columns:t}=K8e(),o=_e("table");return{getCellClasses:(n,a)=>{const i=n[a],c=[o.e("cell"),i.id,i.align,i.labelClassName,...uf(o.b(),a,i.fixed,e.store)];return i.className&&c.push(i.className),i.children||c.push(o.is("leaf")),c},getCellStyles:(n,a)=>{const i=df(a,n.fixed,e.store);return Ea(i,"left"),Ea(i,"right"),i},columns:t}}var q8e=te({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:o,columns:l}=W8e(e);return{ns:_e("table"),getCellClasses:t,getCellStyles:o,columns:l}},render(){const{columns:e,getCellStyles:t,getCellClasses:o,summaryMethod:l,sumText:r,ns:n}=this,a=this.store.states.data.value;let i=[];return l?i=l({columns:e,data:a}):e.forEach((c,u)=>{if(u===0){i[u]=r;return}const d=a.map(v=>Number(v[c.property])),p=[];let f=!0;d.forEach(v=>{if(!Number.isNaN(+v)){f=!1;const m=`${v}`.split(".")[1];p.push(m?m.length:0)}});const h=Math.max.apply(null,p);f?i[u]="":i[u]=d.reduce((v,m)=>{const g=Number(m);return Number.isNaN(+g)?v:Number.parseFloat((v+m).toFixed(Math.min(h,20)))},0)}),Fe("table",{class:n.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[pf({columns:e}),Fe("tbody",[Fe("tr",{},[...e.map((c,u)=>Fe("td",{key:u,colspan:c.colSpan,rowspan:c.rowSpan,class:o(e,u),style:t(c,u)},[Fe("div",{class:["cell",c.labelClassName]},[i[u]])]))])])])}});function U8e(e){return{setCurrentRow:d=>{e.commit("setCurrentRow",d)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(d,p)=>{e.toggleRowSelection(d,p,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:d=>{e.clearFilter(d)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(d,p)=>{e.toggleRowExpansionAdapter(d,p)},clearSort:()=>{e.clearSort()},sort:(d,p)=>{e.commit("sort",{prop:d,order:p})}}}function Y8e(e,t,o,l){const r=V(!1),n=V(null),a=V(!1),i=P=>{a.value=P},c=V({width:null,height:null,headerHeight:null}),u=V(!1),d={display:"inline-block",verticalAlign:"middle"},p=V(),f=V(0),h=V(0),v=V(0),m=V(0);Ao(()=>{t.setHeight(e.height)}),Ao(()=>{t.setMaxHeight(e.maxHeight)}),ve(()=>[e.currentRowKey,o.states.rowKey],([P,R])=>{!s(R)||!s(P)||o.setCurrentRowKey(`${P}`)},{immediate:!0}),ve(()=>e.data,P=>{l.store.commit("setData",P)},{immediate:!0,deep:!0}),Ao(()=>{e.expandRowKeys&&o.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{l.store.commit("setHoverRow",null),l.hoverState&&(l.hoverState=null)},_=(P,R)=>{const{pixelX:J,pixelY:oe}=R;Math.abs(J)>=Math.abs(oe)&&(l.refs.bodyWrapper.scrollLeft+=R.pixelX/5)},w=S(()=>e.height||e.maxHeight||o.states.fixedColumns.value.length>0||o.states.rightFixedColumns.value.length>0),b=S(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),x=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(E)};Ze(async()=>{await Ne(),o.updateColumns(),A(),requestAnimationFrame(x);const P=l.vnode.el,R=l.refs.headerWrapper;e.flexible&&P&&P.parentElement&&(P.parentElement.style.minWidth="0"),c.value={width:p.value=P.offsetWidth,height:P.offsetHeight,headerHeight:e.showHeader&&R?R.offsetHeight:null},o.states.columns.value.forEach(J=>{J.filteredValue&&J.filteredValue.length&&l.store.commit("filterChange",{column:J,values:J.filteredValue,silent:!0})}),l.$ready=!0});const k=(P,R)=>{if(!P)return;const J=Array.from(P.classList).filter(oe=>!oe.startsWith("is-scrolling-"));J.push(t.scrollX.value?R:"is-scrolling-none"),P.className=J.join(" ")},z=P=>{const{tableWrapper:R}=l.refs;k(R,P)},M=P=>{const{tableWrapper:R}=l.refs;return!!(R&&R.classList.contains(P))},E=function(){if(!l.refs.scrollBarRef)return;if(!t.scrollX.value){const j="is-scrolling-none";M(j)||z(j);return}const P=l.refs.scrollBarRef.wrap$;if(!P)return;const{scrollLeft:R,offsetWidth:J,scrollWidth:oe}=P,{headerWrapper:G,footerWrapper:le}=l.refs;G&&(G.scrollLeft=R),le&&(le.scrollLeft=R);const he=oe-J-1;R>=he?z("is-scrolling-right"):z(R===0?"is-scrolling-left":"is-scrolling-middle")},A=()=>{!l.refs.scrollBarRef||(l.refs.scrollBarRef.wrap$&&At(l.refs.scrollBarRef.wrap$,"scroll",E,{passive:!0}),e.fit?bo(l.vnode.el,O):At(window,"resize",O),bo(l.refs.bodyWrapper,()=>{var P,R;O(),(R=(P=l.refs)==null?void 0:P.scrollBarRef)==null||R.update()}))},O=()=>{var P,R,J;const oe=l.vnode.el;if(!l.$ready||!oe)return;let G=!1;const{width:le,height:he,headerHeight:j}=c.value,re=p.value=oe.offsetWidth;le!==re&&(G=!0);const Y=oe.offsetHeight;(e.height||w.value)&&he!==Y&&(G=!0);const W=e.tableLayout==="fixed"?l.refs.headerWrapper:(P=l.refs.tableHeaderRef)==null?void 0:P.$el;e.showHeader&&(W==null?void 0:W.offsetHeight)!==j&&(G=!0),f.value=((R=l.refs.tableWrapper)==null?void 0:R.scrollHeight)||0,v.value=(W==null?void 0:W.scrollHeight)||0,m.value=((J=l.refs.footerWrapper)==null?void 0:J.offsetHeight)||0,h.value=f.value-v.value-m.value,G&&(c.value={width:re,height:Y,headerHeight:e.showHeader&&(W==null?void 0:W.offsetHeight)||0},x())},D=Xt(),I=S(()=>{const{bodyWidth:P,scrollY:R,gutterWidth:J}=t;return P.value?`${P.value-(R.value?J:0)}px`:""}),N=S(()=>e.maxHeight?"fixed":e.tableLayout),B=S(()=>{if(e.data&&e.data.length)return null;let P="100%";e.height&&h.value&&(P=`${h.value}px`);const R=p.value;return{width:R?`${R}px`:"",height:P}}),F=S(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),H=S(()=>{if(e.height)return{height:"100%"};if(e.maxHeight){if(Number.isNaN(Number(e.maxHeight)))return{maxHeight:`calc(${e.maxHeight} - ${v.value+m.value}px)`};{const P=e.maxHeight;if(f.value>=Number(P))return{maxHeight:`${f.value-v.value-m.value}px`}}}return{}});return{isHidden:r,renderExpanded:n,setDragVisible:i,isGroup:u,handleMouseLeave:g,handleHeaderFooterMousewheel:_,tableSize:D,emptyBlockStyle:B,handleFixedMousewheel:(P,R)=>{const J=l.refs.bodyWrapper;if(Math.abs(R.spinY)>0){const oe=J.scrollTop;R.pixelY<0&&oe!==0&&P.preventDefault(),R.pixelY>0&&J.scrollHeight-J.clientHeight>oe&&P.preventDefault(),J.scrollTop+=Math.ceil(R.pixelY/5)}else J.scrollLeft+=Math.ceil(R.pixelX/5)},resizeProxyVisible:a,bodyWidth:I,resizeState:c,doLayout:x,tableBodyStyles:b,tableLayout:N,scrollbarViewStyle:d,tableInnerStyle:F,scrollbarStyle:H}}var G8e={data:{type:Array,default:()=>[]},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const X8e=()=>{const e=V(),t=(n,a)=>{const i=e.value;i&&i.scrollTo(n,a)},o=(n,a)=>{const i=e.value;i&&et(a)&&["Top","Left"].includes(n)&&i[`setScroll${n}`](a)};return{scrollBarRef:e,scrollTo:t,setScrollTop:n=>o("Top",n),setScrollLeft:n=>o("Left",n)}};let J8e=1;const Z8e=te({name:"ElTable",directives:{Mousewheel:kde},components:{TableHeader:H8e,TableBody:j8e,TableFooter:q8e,ElScrollbar:_r,hColgroup:pf},props:G8e,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=yt(),o=_e("table"),l=Qe();st(Kl,l);const r=C8e(l,e);l.store=r;const n=new S8e({store:l.store,table:l,fit:e.fit,showHeader:e.showHeader});l.layout=n;const a=S(()=>(r.states.data.value||[]).length===0),{setCurrentRow:i,getSelectionRows:c,toggleRowSelection:u,clearSelection:d,clearFilter:p,toggleAllSelection:f,toggleRowExpansion:h,clearSort:v,sort:m}=U8e(r),{isHidden:g,renderExpanded:_,setDragVisible:w,isGroup:b,handleMouseLeave:x,handleHeaderFooterMousewheel:k,tableSize:z,emptyBlockStyle:M,handleFixedMousewheel:E,resizeProxyVisible:A,bodyWidth:O,resizeState:D,doLayout:I,tableBodyStyles:N,tableLayout:B,scrollbarViewStyle:F,tableInnerStyle:H,scrollbarStyle:L}=Y8e(e,n,r,l),{scrollBarRef:P,scrollTo:R,setScrollLeft:J,setScrollTop:oe}=X8e(),G=$o(I,50),le=`${o.namespace.value}-table_${J8e++}`;l.tableId=le,l.state={isGroup:b,resizeState:D,doLayout:I,debouncedUpdateLayout:G};const he=S(()=>e.sumText||t("el.table.sumText")),j=S(()=>e.emptyText||t("el.table.emptyText"));return{ns:o,layout:n,store:r,handleHeaderFooterMousewheel:k,handleMouseLeave:x,tableId:le,tableSize:z,isHidden:g,isEmpty:a,renderExpanded:_,resizeProxyVisible:A,resizeState:D,isGroup:b,bodyWidth:O,tableBodyStyles:N,emptyBlockStyle:M,debouncedUpdateLayout:G,handleFixedMousewheel:E,setCurrentRow:i,getSelectionRows:c,toggleRowSelection:u,clearSelection:d,clearFilter:p,toggleAllSelection:f,toggleRowExpansion:h,clearSort:v,doLayout:I,sort:m,t,setDragVisible:w,context:l,computedSumText:he,computedEmptyText:j,tableLayout:B,scrollbarViewStyle:F,tableInnerStyle:H,scrollbarStyle:L,scrollBarRef:P,scrollTo:R,setScrollLeft:J,setScrollTop:oe}}}),Q8e=["data-prefix"],ebe={ref:"hiddenColumns",class:"hidden-columns"};function tbe(e,t,o,l,r,n){const a=Oe("hColgroup"),i=Oe("table-header"),c=Oe("table-body"),u=Oe("el-scrollbar"),d=Oe("table-footer"),p=ha("mousewheel");return y(),$("div",{ref:"tableWrapper",class:T([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Be(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=f=>e.handleMouseLeave())},[C("div",{class:T(e.ns.e("inner-wrapper")),style:Be(e.tableInnerStyle)},[C("div",ebe,[ge(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?Xe((y(),$("div",{key:0,ref:"headerWrapper",class:T(e.ns.e("header-wrapper"))},[C("table",{ref:"tableHeader",class:T(e.ns.e("header")),style:Be(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[K(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),K(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[p,e.handleHeaderFooterMousewheel]]):ae("v-if",!0),C("div",{ref:"bodyWrapper",class:T(e.ns.e("body-wrapper"))},[K(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:Z(()=>[C("table",{ref:"tableBody",class:T(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Be({width:e.bodyWidth,tableLayout:e.tableLayout})},[K(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(y(),ue(i,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):ae("v-if",!0),K(c,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","row-style","store","stripe"])],6),e.isEmpty?(y(),$("div",{key:0,ref:"emptyBlock",style:Be(e.emptyBlockStyle),class:T(e.ns.e("empty-block"))},[C("span",{class:T(e.ns.e("empty-text"))},[ge(e.$slots,"empty",{},()=>[ot(Ce(e.computedEmptyText),1)])],2)],6)):ae("v-if",!0),e.$slots.append?(y(),$("div",{key:1,ref:"appendWrapper",class:T(e.ns.e("append-wrapper"))},[ge(e.$slots,"append")],2)):ae("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?Xe((y(),$("div",{key:1,ref:"footerWrapper",class:T(e.ns.e("footer-wrapper"))},[K(d,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:Be(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[_t,!e.isEmpty],[p,e.handleHeaderFooterMousewheel]]):ae("v-if",!0),e.border||e.isGroup?(y(),$("div",{key:2,class:T(e.ns.e("border-left-patch"))},null,2)):ae("v-if",!0)],6),Xe(C("div",{ref:"resizeProxy",class:T(e.ns.e("column-resize-proxy"))},null,2),[[_t,e.resizeProxyVisible]])],46,Q8e)}var obe=Te(Z8e,[["render",tbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const lbe={selection:"table-column--selection",expand:"table__expand-column"},rbe={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},nbe=e=>lbe[e]||"",abe={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return Fe(sl,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:o,$index:l}){return Fe(sl,{disabled:t.selectable?!t.selectable.call(null,e,l):!1,size:o.states.tableSize.value,onChange:()=>{o.commit("rowSelectedChanged",e)},onClick:r=>r.stopPropagation(),modelValue:o.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let o=t+1;const l=e.index;return typeof l=="number"?o=t+l:typeof l=="function"&&(o=l(t)),Fe("div",{},[o])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:o}){const{ns:l}=t,r=[l.e("expand-icon")];return o&&r.push(l.em("expand-icon","expanded")),Fe("div",{class:r,onClick:function(a){a.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Fe(De,null,{default:()=>[Fe(go)]})]})},sortable:!1,resizable:!1}};function ibe({row:e,column:t,$index:o}){var l;const r=t.property,n=r&&ec(e,r).value;return t&&t.formatter?t.formatter(e,t,n,o):((l=n==null?void 0:n.toString)==null?void 0:l.call(n))||""}function sbe({row:e,treeNode:t,store:o},l=!1){const{ns:r}=o;if(!t)return l?[Fe("span",{class:r.e("placeholder")})]:null;const n=[],a=function(i){i.stopPropagation(),!t.loading&&o.loadOrToggle(e)};if(t.indent&&n.push(Fe("span",{class:r.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const i=[r.e("expand-icon"),t.expanded?r.em("expand-icon","expanded"):""];let c=go;t.loading&&(c=vr),n.push(Fe("div",{class:i,onClick:a},{default:()=>[Fe(De,{class:{[r.is("loading")]:t.loading}},{default:()=>[Fe(c)]})]}))}else n.push(Fe("span",{class:r.e("placeholder")}));return n}function B3(e,t){return e.reduce((o,l)=>(o[l]=l,o),t)}function cbe(e,t){const o=Qe();return{registerComplexWatchers:()=>{const n=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},i=B3(n,a);Object.keys(i).forEach(c=>{const u=a[c];mt(t,u)&&ve(()=>t[u],d=>{let p=d;u==="width"&&c==="realWidth"&&(p=cf(d)),u==="minWidth"&&c==="realMinWidth"&&(p=gb(d)),o.columnConfig.value[u]=p,o.columnConfig.value[c]=p;const f=u==="fixed";e.value.store.scheduleLayout(f)})})},registerNormalWatchers:()=>{const n=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],a={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},i=B3(n,a);Object.keys(i).forEach(c=>{const u=a[c];mt(t,u)&&ve(()=>t[u],d=>{o.columnConfig.value[c]=d})})}}}function ube(e,t,o){const l=Qe(),r=V(""),n=V(!1),a=V(),i=V(),c=_e("table");Ao(()=>{a.value=e.align?`is-${e.align}`:null,a.value}),Ao(()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:a.value,i.value});const u=S(()=>{let b=l.vnode.vParent||l.parent;for(;b&&!b.tableId&&!b.columnId;)b=b.vnode.vParent||b.parent;return b}),d=S(()=>{const{store:b}=l.parent;if(!b)return!1;const{treeData:x}=b.states,k=x.value;return k&&Object.keys(k).length>0}),p=V(cf(e.width)),f=V(gb(e.minWidth)),h=b=>(p.value&&(b.width=p.value),f.value&&(b.minWidth=f.value),!p.value&&f.value&&(b.width=void 0),b.minWidth||(b.minWidth=80),b.realWidth=Number(b.width===void 0?b.minWidth:b.width),b),v=b=>{const x=b.type,k=abe[x]||{};Object.keys(k).forEach(M=>{const E=k[M];M!=="className"&&E!==void 0&&(b[M]=E)});const z=nbe(x);if(z){const M=`${s(c.namespace)}-${z}`;b.className=b.className?`${b.className} ${M}`:M}return b},m=b=>{Array.isArray(b)?b.forEach(k=>x(k)):x(b);function x(k){var z;((z=k==null?void 0:k.type)==null?void 0:z.name)==="ElTableColumn"&&(k.vParent=l)}};return{columnId:r,realAlign:a,isSubColumn:n,realHeaderAlign:i,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:b=>{e.renderHeader||b.type!=="selection"&&(b.renderHeader=k=>{l.columnConfig.value.label;const z=t.header;return z?z(k):b.label});let x=b.renderCell;return b.type==="expand"?(b.renderCell=k=>Fe("div",{class:"cell"},[x(k)]),o.value.renderExpanded=k=>t.default?t.default(k):t.default):(x=x||ibe,b.renderCell=k=>{let z=null;if(t.default){const O=t.default(k);z=O.some(D=>D.type!==ko)?O:x(k)}else z=x(k);const M=d.value&&k.cellIndex===0&&k.column.type!=="selection",E=sbe(k,M),A={class:"cell",style:{}};return b.showOverflowTooltip&&(A.class=`${A.class} ${s(c.namespace)}-tooltip`,A.style={width:`${(k.column.realWidth||Number(k.column.width))-1}px`}),m(z),Fe("div",A,[E,z])}),b},getPropsData:(...b)=>b.reduce((x,k)=>(Array.isArray(k)&&k.forEach(z=>{x[z]=e[z]}),x),{}),getColumnElIndex:(b,x)=>Array.prototype.indexOf.call(b,x)}}var dbe={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let pbe=1;var $b=te({name:"ElTableColumn",components:{ElCheckbox:sl},props:dbe,setup(e,{slots:t}){const o=Qe(),l=V({}),r=S(()=>{let w=o.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:n,registerComplexWatchers:a}=cbe(r,e),{columnId:i,isSubColumn:c,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:p,setColumnForcedProps:f,setColumnRenders:h,getPropsData:v,getColumnElIndex:m,realAlign:g}=ube(e,t,r),_=d.value;i.value=`${_.tableId||_.columnId}_column_${pbe++}`,iu(()=>{c.value=r.value!==_;const w=e.type||"default",b=e.sortable===""?!0:e.sortable,x={...rbe[w],id:i.value,type:w,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:e.showOverflowTooltip||e.showTooltipWhenOverflow,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:b,index:e.index,rawColumnKey:o.vnode.key};let A=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);A=f8e(x,A),A=v8e(h,p,f)(A),l.value=A,n(),a()}),Ze(()=>{var w;const b=d.value,x=c.value?b.vnode.el.children:(w=b.refs.hiddenColumns)==null?void 0:w.children,k=()=>m(x||[],o.vnode.el);l.value.getColumnIndex=k,k()>-1&&r.value.store.commit("insertColumn",l.value,c.value?b.columnConfig.value:null)}),It(()=>{r.value.store.commit("removeColumn",l.value,c.value?_.columnConfig.value:null)}),o.columnId=i.value,o.columnConfig=l},render(){var e,t,o;try{const l=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),r=[];if(Array.isArray(l))for(const a of l)((o=a.type)==null?void 0:o.name)==="ElTableColumn"||a.shapeFlag&2?r.push(a):a.type===Pe&&Array.isArray(a.children)&&a.children.forEach(i=>{(i==null?void 0:i.patchFlag)!==1024&&!Ge(i==null?void 0:i.children)&&r.push(i)});return Fe("div",r)}catch{return Fe("div",[])}}});const fbe=at(obe,{TableColumn:$b}),hbe=Bt($b);var es=(e=>(e.ASC="asc",e.DESC="desc",e))(es||{}),ts=(e=>(e.CENTER="center",e.RIGHT="right",e))(ts||{}),Sb=(e=>(e.LEFT="left",e.RIGHT="right",e))(Sb||{});const r2={asc:"desc",desc:"asc"},os=Symbol("placeholder"),vbe=(e,t,o)=>{var l;const r={flexGrow:0,flexShrink:0,...o?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};o||(r.flexShrink=1);const n={...(l=e.style)!=null?l:{},...r,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(n.maxWidth=e.maxWidth),e.minWidth&&(n.minWidth=e.minWidth)),n};function mbe(e,t,o){const l=S(()=>s(t).filter(m=>!m.hidden)),r=S(()=>s(l).filter(m=>m.fixed==="left"||m.fixed===!0)),n=S(()=>s(l).filter(m=>m.fixed==="right")),a=S(()=>s(l).filter(m=>!m.fixed)),i=S(()=>{const m=[];return s(r).forEach(g=>{m.push({...g,placeholderSign:os})}),s(a).forEach(g=>{m.push(g)}),s(n).forEach(g=>{m.push({...g,placeholderSign:os})}),m}),c=S(()=>s(r).length||s(n).length),u=S(()=>s(t).reduce((g,_)=>(g[_.key]=vbe(_,s(o),e.fixed),g),{})),d=S(()=>s(l).reduce((m,g)=>m+g.width,0)),p=m=>s(t).find(g=>g.key===m),f=m=>s(u)[m],h=(m,g)=>{m.width=g};function v(m){var g;const{key:_}=m.currentTarget.dataset;if(!_)return;const{sortState:w,sortBy:b}=e;let x=es.ASC;ft(w)?x=r2[w[_]]:x=r2[b.order],(g=e.onColumnSort)==null||g.call(e,{column:p(_),key:_,order:x})}return{columns:t,columnsStyles:u,columnsTotalWidth:d,fixedColumnsOnLeft:r,fixedColumnsOnRight:n,hasFixedColumns:c,mainColumns:i,normalColumns:a,visibleColumns:l,getColumn:p,getColumnStyle:f,updateColumnWidth:h,onColumnSorted:v}}const gbe=(e,{mainTableRef:t,leftTableRef:o,rightTableRef:l,onMaybeEndReached:r})=>{const n=V({scrollLeft:0,scrollTop:0});function a(h){var v,m,g;const{scrollTop:_}=h;(v=t.value)==null||v.scrollTo(h),(m=o.value)==null||m.scrollToTop(_),(g=l.value)==null||g.scrollToTop(_)}function i(h){n.value=h,a(h)}function c(h){n.value.scrollTop=h,a(s(n))}function u(h){var v,m;n.value.scrollLeft=h,(m=(v=t.value)==null?void 0:v.scrollTo)==null||m.call(v,s(n))}function d(h){var v;i(h),(v=e.onScroll)==null||v.call(e,h)}function p({scrollTop:h}){const{scrollTop:v}=s(n);h!==v&&c(h)}function f(h,v="auto"){var m;(m=t.value)==null||m.scrollToRow(h,v)}return ve(()=>s(n).scrollTop,(h,v)=>{h>v&&r()}),{scrollPos:n,scrollTo:i,scrollToLeft:u,scrollToTop:c,scrollToRow:f,onScroll:d,onVerticalScroll:p}},bbe=(e,{mainTableRef:t,leftTableRef:o,rightTableRef:l,onMaybeEndReached:r})=>{const n=Qe(),{emit:a}=n,i=Et(!1),c=Et(null),u=V(e.defaultExpandedRowKeys||[]),d=V(-1),p=Et(null),f=V({}),h=V({}),v=Et({}),m=Et({}),g=Et({}),_=S(()=>et(e.estimatedRowHeight));function w(A){var O;(O=e.onRowsRendered)==null||O.call(e,A),A.rowCacheEnd>s(d)&&(d.value=A.rowCacheEnd)}function b({hovered:A,rowKey:O}){c.value=A?O:null}function x({expanded:A,rowData:O,rowIndex:D,rowKey:I}){var N,B;const F=[...s(u)],H=F.indexOf(I);A?H===-1&&F.push(I):H>-1&&F.splice(H,1),u.value=F,a("update:expandedRowKeys",F),(N=e.onRowExpand)==null||N.call(e,{expanded:A,rowData:O,rowIndex:D,rowKey:I}),(B=e.onExpandedRowsChange)==null||B.call(e,F)}const k=$o(()=>{var A,O,D,I;i.value=!0,f.value={...s(f),...s(h)},z(s(p),!1),h.value={},p.value=null,(A=t.value)==null||A.forceUpdate(),(O=o.value)==null||O.forceUpdate(),(D=l.value)==null||D.forceUpdate(),(I=n.proxy)==null||I.$forceUpdate(),i.value=!1},0);function z(A,O=!1){!s(_)||[t,o,l].forEach(D=>{const I=s(D);I&&I.resetAfterRowIndex(A,O)})}function M(A,O,D){const I=s(p);(I===null||I>D)&&(p.value=D),h.value[A]=O}function E({rowKey:A,height:O,rowIndex:D},I){I?I===Sb.RIGHT?g.value[A]=O:v.value[A]=O:m.value[A]=O;const N=Math.max(...[v,g,m].map(B=>B.value[A]||0));s(f)[A]!==N&&(M(A,N,D),k())}return ve(d,()=>r()),{hoveringRowKey:c,expandedRowKeys:u,lastRenderedRowIndex:d,isDynamic:_,isResetting:i,rowHeights:f,resetAfterIndex:z,onRowExpanded:x,onRowHovered:b,onRowsRendered:w,onRowHeightChange:E}},_be=(e,{expandedRowKeys:t,lastRenderedRowIndex:o,resetAfterIndex:l})=>{const r=V({}),n=S(()=>{const i={},{data:c,rowKey:u}=e,d=s(t);if(!d||!d.length)return c;const p=[],f=new Set;d.forEach(v=>f.add(v));let h=c.slice();for(h.forEach(v=>i[v[u]]=0);h.length>0;){const v=h.shift();p.push(v),f.has(v[u])&&Array.isArray(v.children)&&v.children.length>0&&(h=[...v.children,...h],v.children.forEach(m=>i[m[u]]=i[v[u]]+1))}return r.value=i,p}),a=S(()=>{const{data:i,expandColumnKey:c}=e;return c?s(n):i});return ve(a,(i,c)=>{i!==c&&(o.value=-1,l(0,!0))}),{data:a,depthMap:r}},ybe=(e,t)=>e+t,vc=e=>Ie(e)?e.reduce(ybe,0):e,Tn=(e,t,o={})=>Ye(e)?e(t):e!=null?e:o,Or=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Yt(e[t])}),e),zb=e=>Vt(e)?t=>Fe(e,t):e,wbe=(e,{columnsTotalWidth:t,data:o,fixedColumnsOnLeft:l,fixedColumnsOnRight:r})=>{const n=S(()=>{const{fixed:b,width:x,vScrollbarSize:k}=e,z=x-k;return b?Math.max(Math.round(s(t)),z):z}),a=S(()=>s(n)+(e.fixed?e.vScrollbarSize:0)),i=S(()=>{const{height:b=0,maxHeight:x=0,footerHeight:k,hScrollbarSize:z}=e;if(x>0){const M=s(v),E=s(c),O=s(h)+M+E+z;return Math.min(O,x-k)}return b-k}),c=S(()=>{const{rowHeight:b,estimatedRowHeight:x}=e,k=s(o);return et(x)?k.length*x:k.length*b}),u=S(()=>{const{maxHeight:b}=e,x=s(i);if(et(b)&&b>0)return x;const k=s(c)+s(h)+s(v);return Math.min(x,k)}),d=b=>b.width,p=S(()=>vc(s(l).map(d))),f=S(()=>vc(s(r).map(d))),h=S(()=>vc(e.headerHeight)),v=S(()=>{var b;return(((b=e.fixedData)==null?void 0:b.length)||0)*e.rowHeight}),m=S(()=>s(i)-s(h)-s(v)),g=S(()=>{const{style:b={},height:x,width:k}=e;return Or({...b,height:x,width:k})}),_=S(()=>Or({height:e.footerHeight})),w=S(()=>({top:Yt(s(h)),bottom:Yt(e.footerHeight),width:Yt(e.width)}));return{bodyWidth:n,fixedTableHeight:u,mainTableHeight:i,leftTableWidth:p,rightTableWidth:f,headerWidth:a,rowsHeight:c,windowHeight:m,footerHeight:_,emptyStyle:w,rootStyle:g,headerHeight:h}},xbe=e=>{const t=V(),o=V(0),l=V(0);let r;return Ze(()=>{r=bo(t,([n])=>{const{width:a,height:i}=n.contentRect,{paddingLeft:c,paddingRight:u,paddingTop:d,paddingBottom:p}=getComputedStyle(n.target),f=Number.parseInt(c)||0,h=Number.parseInt(u)||0,v=Number.parseInt(d)||0,m=Number.parseInt(p)||0;o.value=a-f-h,l.value=i-v-m}).stop}),It(()=>{r==null||r()}),ve([o,l],([n,a])=>{var i;(i=e.onResize)==null||i.call(e,{width:n,height:a})}),{sizer:t,width:o,height:l}};function kbe(e){const t=V(),o=V(),l=V(),{columns:r,columnsStyles:n,columnsTotalWidth:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:c,hasFixedColumns:u,mainColumns:d,onColumnSorted:p}=mbe(e,Rt(e,"columns"),Rt(e,"fixed")),{scrollTo:f,scrollToLeft:h,scrollToTop:v,scrollToRow:m,onScroll:g,onVerticalScroll:_,scrollPos:w}=gbe(e,{mainTableRef:t,leftTableRef:o,rightTableRef:l,onMaybeEndReached:U}),{expandedRowKeys:b,hoveringRowKey:x,lastRenderedRowIndex:k,isDynamic:z,isResetting:M,rowHeights:E,resetAfterIndex:A,onRowExpanded:O,onRowHeightChange:D,onRowHovered:I,onRowsRendered:N}=bbe(e,{mainTableRef:t,leftTableRef:o,rightTableRef:l,onMaybeEndReached:U}),{data:B,depthMap:F}=_be(e,{expandedRowKeys:b,lastRenderedRowIndex:k,resetAfterIndex:A}),{bodyWidth:H,fixedTableHeight:L,mainTableHeight:P,leftTableWidth:R,rightTableWidth:J,headerWidth:oe,rowsHeight:G,windowHeight:le,footerHeight:he,emptyStyle:j,rootStyle:re,headerHeight:Y}=wbe(e,{columnsTotalWidth:a,data:B,fixedColumnsOnLeft:i,fixedColumnsOnRight:c}),W=Et(!1),ce=V(),ne=S(()=>{const Q=s(B).length===0;return Ie(e.fixedData)?e.fixedData.length===0&&Q:Q});function xe(Q){const{estimatedRowHeight:fe,rowHeight:we,rowKey:$e}=e;return fe?s(E)[s(B)[Q][$e]]||fe:we}function U(){const{onEndReached:Q}=e;if(!Q)return;const{scrollTop:fe}=s(w),we=s(G),$e=s(le),pe=we-(fe+$e)+e.hScrollbarSize;s(k)>=0&&we===fe+s(P)-s(Y)&&Q(pe)}return ve(()=>e.expandedRowKeys,Q=>b.value=Q,{deep:!0}),{columns:r,containerRef:ce,mainTableRef:t,leftTableRef:o,rightTableRef:l,isDynamic:z,isResetting:M,isScrolling:W,hoveringRowKey:x,hasFixedColumns:u,columnsStyles:n,columnsTotalWidth:a,data:B,expandedRowKeys:b,depthMap:F,fixedColumnsOnLeft:i,fixedColumnsOnRight:c,mainColumns:d,bodyWidth:H,emptyStyle:j,rootStyle:re,headerWidth:oe,footerHeight:he,mainTableHeight:P,fixedTableHeight:L,leftTableWidth:R,rightTableWidth:J,showEmpty:ne,getRowHeight:xe,onColumnSorted:p,onRowHovered:I,onRowExpanded:O,onRowsRendered:N,onRowHeightChange:D,scrollTo:f,scrollToLeft:h,scrollToTop:v,scrollToRow:m,onScroll:g,onVerticalScroll:_}}const ff=Symbol("tableV2"),Eb=String,xs={type:de(Array),required:!0},hf={type:de(Array)},Mb={...hf,required:!0},Cbe=String,D3={type:de(Array),default:()=>Lt([])},sn={type:Number,required:!0},Tb={type:de([String,Number,Symbol]),default:"id"},F3={type:de(Object)},vn=Ae({class:String,columns:xs,columnsStyles:{type:de(Object),required:!0},depth:Number,expandColumnKey:Cbe,estimatedRowHeight:{...yn.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:de(Function)},onRowHover:{type:de(Function)},onRowHeightChange:{type:de(Function)},rowData:{type:de(Object),required:!0},rowEventHandlers:{type:de(Object)},rowIndex:{type:Number,required:!0},rowKey:Tb,style:{type:de(Object)}}),Cd={type:Number,required:!0},vf=Ae({class:String,columns:xs,fixedHeaderData:{type:de(Array)},headerData:{type:de(Array),required:!0},headerHeight:{type:de([Number,Array]),default:50},rowWidth:Cd,rowHeight:{type:Number,default:50},height:Cd,width:Cd}),mc=Ae({columns:xs,data:Mb,fixedData:hf,estimatedRowHeight:vn.estimatedRowHeight,width:sn,height:sn,headerWidth:sn,headerHeight:vf.headerHeight,bodyWidth:sn,rowHeight:sn,cache:tb.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:yn.scrollbarAlwaysOn,scrollbarStartGap:yn.scrollbarStartGap,scrollbarEndGap:yn.scrollbarEndGap,class:Eb,style:F3,containerStyle:F3,getRowHeight:{type:de(Function),required:!0},rowKey:vn.rowKey,onRowsRendered:{type:de(Function)},onScroll:{type:de(Function)}}),$be=Ae({cache:mc.cache,estimatedRowHeight:vn.estimatedRowHeight,rowKey:Tb,headerClass:{type:de([String,Function])},headerProps:{type:de([Object,Function])},headerCellProps:{type:de([Object,Function])},headerHeight:vf.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:de([String,Function])},rowProps:{type:de([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:de([Object,Function])},columns:xs,data:Mb,dataGetter:{type:de(Function)},fixedData:hf,expandColumnKey:vn.expandColumnKey,expandedRowKeys:D3,defaultExpandedRowKeys:D3,class:Eb,fixed:Boolean,style:{type:de(Object)},width:sn,height:sn,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:yn.hScrollbarSize,vScrollbarSize:yn.vScrollbarSize,scrollbarAlwaysOn:rb.alwaysOn,sortBy:{type:de(Object),default:()=>({})},sortState:{type:de(Object),default:void 0},onColumnSort:{type:de(Function)},onExpandedRowsChange:{type:de(Function)},onEndReached:{type:de(Function)},onRowExpand:vn.onRowExpand,onScroll:mc.onScroll,onRowsRendered:mc.onRowsRendered,rowEventHandlers:vn.rowEventHandlers}),mf=(e,{slots:t})=>{var o;const{cellData:l,style:r}=e,n=((o=l==null?void 0:l.toString)==null?void 0:o.call(l))||"";return K("div",{class:e.class,title:n,style:r},[t.default?t.default(e):n])};mf.displayName="ElTableV2Cell";mf.inheritAttrs=!1;const gf=(e,{slots:t})=>{var o,l;return t.default?t.default(e):K("div",{class:e.class,title:(o=e.column)==null?void 0:o.title},[(l=e.column)==null?void 0:l.title])};gf.displayName="ElTableV2HeaderCell";gf.inheritAttrs=!1;const Sbe=Ae({class:String,columns:xs,columnsStyles:{type:de(Object),required:!0},headerIndex:Number,style:{type:de(Object)}}),zbe=te({name:"ElTableV2HeaderRow",props:Sbe,setup(e,{slots:t}){return()=>{const{columns:o,columnsStyles:l,headerIndex:r,style:n}=e;let a=o.map((i,c)=>t.cell({columns:o,column:i,columnIndex:c,headerIndex:r,style:l[i.key]}));return t.header&&(a=t.header({cells:a.map(i=>Ie(i)&&i.length===1?i[0]:i),columns:o,headerIndex:r})),K("div",{class:e.class,style:n},[a])}}}),Ebe="ElTableV2Header",Mbe=te({name:Ebe,props:vf,setup(e,{slots:t,expose:o}){const l=_e("table-v2"),r=V(),n=S(()=>Or({width:e.width,height:e.height})),a=S(()=>Or({width:e.rowWidth,height:e.height})),i=S(()=>_a(s(e.headerHeight))),c=p=>{const f=s(r);Ne(()=>{f!=null&&f.scroll&&f.scroll({left:p})})},u=()=>{const p=l.e("fixed-header-row"),{columns:f,fixedHeaderData:h,rowHeight:v}=e;return h==null?void 0:h.map((m,g)=>{var _;const w=Or({height:v,width:"100%"});return(_=t.fixed)==null?void 0:_.call(t,{class:p,columns:f,rowData:m,rowIndex:-(g+1),style:w})})},d=()=>{const p=l.e("dynamic-header-row"),{columns:f}=e;return s(i).map((h,v)=>{var m;const g=Or({width:"100%",height:h});return(m=t.dynamic)==null?void 0:m.call(t,{class:p,columns:f,headerIndex:v,style:g})})};return o({scrollToLeft:c}),()=>{if(!(e.height<=0))return K("div",{ref:r,class:e.class,style:s(n)},[K("div",{style:s(a),class:l.e("header")},[d(),u()])])}}}),Tbe=e=>{const{isScrolling:t}=Re(ff),o=V(!1),l=V(),r=S(()=>et(e.estimatedRowHeight)&&e.rowIndex>=0),n=(c=!1)=>{const u=s(l);if(!u)return;const{columns:d,onRowHeightChange:p,rowKey:f,rowIndex:h,style:v}=e,{height:m}=u.getBoundingClientRect();o.value=!0,Ne(()=>{if(c||m!==Number.parseInt(v.height)){const g=d[0],_=(g==null?void 0:g.placeholderSign)===os;p==null||p({rowKey:f,height:m,rowIndex:h},g&&!_&&g.fixed)}})},a=S(()=>{const{rowData:c,rowIndex:u,rowKey:d,onRowHover:p}=e,f=e.rowEventHandlers||{},h={};return Object.entries(f).forEach(([v,m])=>{Ye(m)&&(h[v]=g=>{m({event:g,rowData:c,rowIndex:u,rowKey:d})})}),p&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:v,hovered:m})=>{const g=h[v];h[v]=_=>{p({event:_,hovered:m,rowData:c,rowIndex:u,rowKey:d}),g==null||g(_)}}),h}),i=c=>{const{onRowExpand:u,rowData:d,rowIndex:p,rowKey:f}=e;u==null||u({expanded:c,rowData:d,rowIndex:p,rowKey:f})};return Ze(()=>{s(r)&&n(!0)}),{isScrolling:t,measurable:r,measured:o,rowRef:l,eventHandlers:a,onExpand:i}},Abe="ElTableV2TableRow",Vbe=te({name:Abe,props:vn,setup(e,{expose:t,slots:o,attrs:l}){const{eventHandlers:r,isScrolling:n,measurable:a,measured:i,rowRef:c,onExpand:u}=Tbe(e);return t({onExpand:u}),()=>{const{columns:d,columnsStyles:p,expandColumnKey:f,depth:h,rowData:v,rowIndex:m,style:g}=e;let _=d.map((w,b)=>{const x=Ie(v.children)&&v.children.length>0&&w.key===f;return o.cell({column:w,columns:d,columnIndex:b,depth:h,style:p[w.key],rowData:v,rowIndex:m,isScrolling:s(n),expandIconProps:x?{rowData:v,rowIndex:m,onExpand:u}:void 0})});if(o.row&&(_=o.row({cells:_.map(w=>Ie(w)&&w.length===1?w[0]:w),style:g,columns:d,depth:h,rowData:v,rowIndex:m,isScrolling:s(n)})),s(a)){const{height:w,...b}=g||{},x=s(i);return K("div",ht({ref:c,class:e.class,style:x?g:b},l,s(r)),[_])}return K("div",ht(l,{ref:c,class:e.class,style:g},s(r)),[_])}}}),Obe=e=>{const{sortOrder:t}=e;return K(De,{size:14,class:e.class},{default:()=>[t===es.ASC?K(sm,null,null):K(im,null,null)]})},Pbe=e=>{const{expanded:t,expandable:o,onExpand:l,style:r,size:n}=e,a={onClick:o?()=>l(!t):void 0,class:e.class};return K(De,ht(a,{size:n,style:r}),{default:()=>[K(go,null,null)]})},Lbe="ElTableV2Grid",Ibe=e=>{const t=V(),o=V(),l=S(()=>{const{data:m,rowHeight:g,estimatedRowHeight:_}=e;if(!_)return m.length*g}),r=S(()=>{const{fixedData:m,rowHeight:g}=e;return((m==null?void 0:m.length)||0)*g}),n=S(()=>vc(e.headerHeight)),a=S(()=>{const{height:m}=e;return Math.max(0,m-s(n)-s(r))}),i=S(()=>s(n)+s(r)>0),c=({data:m,rowIndex:g})=>m[g][e.rowKey];function u({rowCacheStart:m,rowCacheEnd:g,rowVisibleStart:_,rowVisibleEnd:w}){var b;(b=e.onRowsRendered)==null||b.call(e,{rowCacheStart:m,rowCacheEnd:g,rowVisibleStart:_,rowVisibleEnd:w})}function d(m,g){var _;(_=o.value)==null||_.resetAfterRowIndex(m,g)}function p(m,g){const _=s(t),w=s(o);!_||!w||(ft(m)?(_.scrollToLeft(m.scrollLeft),w.scrollTo(m)):(_.scrollToLeft(m),w.scrollTo({scrollLeft:m,scrollTop:g})))}function f(m){var g;(g=s(o))==null||g.scrollTo({scrollTop:m})}function h(m,g){var _;(_=s(o))==null||_.scrollToItem(m,1,g)}function v(){var m,g;(m=s(o))==null||m.$forceUpdate(),(g=s(t))==null||g.$forceUpdate()}return{bodyRef:o,forceUpdate:v,fixedRowHeight:r,gridHeight:a,hasHeader:i,headerHeight:n,headerRef:t,totalHeight:l,itemKey:c,onItemRendered:u,resetAfterRowIndex:d,scrollTo:p,scrollToTop:f,scrollToRow:h}},bf=te({name:Lbe,props:mc,setup(e,{slots:t,expose:o}){const{ns:l}=Re(ff),{bodyRef:r,fixedRowHeight:n,gridHeight:a,hasHeader:i,headerRef:c,headerHeight:u,totalHeight:d,forceUpdate:p,itemKey:f,onItemRendered:h,resetAfterRowIndex:v,scrollTo:m,scrollToTop:g,scrollToRow:_}=Ibe(e);o({forceUpdate:p,totalHeight:d,scrollTo:m,scrollToTop:g,scrollToRow:_,resetAfterRowIndex:v});const w=()=>e.bodyWidth;return()=>{const{cache:b,columns:x,data:k,fixedData:z,useIsScrolling:M,scrollbarAlwaysOn:E,scrollbarEndGap:A,scrollbarStartGap:O,style:D,rowHeight:I,bodyWidth:N,estimatedRowHeight:B,headerWidth:F,height:H,width:L,getRowHeight:P,onScroll:R}=e,J=et(B),oe=J?$me:wme,G=s(u);return K("div",{role:"table",class:[l.e("table"),e.class],style:D},[K(oe,{ref:r,data:k,useIsScrolling:M,itemKey:f,columnCache:0,columnWidth:J?w:N,totalColumn:1,totalRow:k.length,rowCache:b,rowHeight:J?P:I,width:L,height:s(a),class:l.e("body"),scrollbarStartGap:O,scrollbarEndGap:A,scrollbarAlwaysOn:E,onScroll:R,onItemRendered:h,perfMode:!1},{default:le=>{var he;const j=k[le.rowIndex];return(he=t.row)==null?void 0:he.call(t,{...le,columns:x,rowData:j})}}),s(i)&&K(Mbe,{ref:c,class:l.e("header-wrapper"),columns:x,headerData:k,headerHeight:e.headerHeight,fixedHeaderData:z,rowWidth:F,rowHeight:I,width:L,height:Math.min(G+s(n),H)},{dynamic:t.header,fixed:t.row})])}}});function Rbe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vt(e)}const Hbe=(e,{slots:t})=>{const{mainTableRef:o,...l}=e;return K(bf,ht({ref:o},l),Rbe(t)?t:{default:()=>[t]})};function Nbe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vt(e)}const Bbe=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:o,...l}=e;return K(bf,ht({ref:o},l),Nbe(t)?t:{default:()=>[t]})};function Dbe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vt(e)}const Fbe=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:o,...l}=e;return K(bf,ht({ref:o},l),Dbe(t)?t:{default:()=>[t]})};function jbe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vt(e)}const Kbe=(e,{slots:t})=>{const{columns:o,columnsStyles:l,depthMap:r,expandColumnKey:n,expandedRowKeys:a,estimatedRowHeight:i,hasFixedColumns:c,hoveringRowKey:u,rowData:d,rowIndex:p,style:f,isScrolling:h,rowProps:v,rowClass:m,rowKey:g,rowEventHandlers:_,ns:w,onRowHovered:b,onRowExpanded:x}=e,k=Tn(m,{columns:o,rowData:d,rowIndex:p},""),z=Tn(v,{columns:o,rowData:d,rowIndex:p}),M=d[g],E=r[M]||0,A=Boolean(n),O=p<0,D=[w.e("row"),k,{[w.e(`row-depth-${E}`)]:A&&p>=0,[w.is("expanded")]:A&&a.includes(M),[w.is("hovered")]:!h&&M===u,[w.is("fixed")]:!E&&O,[w.is("customized")]:Boolean(t.row)}],I=c?b:void 0,N={...z,columns:o,columnsStyles:l,class:D,depth:E,expandColumnKey:n,estimatedRowHeight:O?void 0:i,isScrolling:h,rowIndex:p,rowData:d,rowKey:M,rowEventHandlers:_,style:f};return K(Vbe,ht(N,{onRowHover:I,onRowExpand:x}),jbe(t)?t:{default:()=>[t]})},n2=({columns:e,column:t,columnIndex:o,depth:l,expandIconProps:r,isScrolling:n,rowData:a,rowIndex:i,style:c,expandedRowKeys:u,ns:d,cellProps:p,expandColumnKey:f,indentSize:h,iconSize:v,rowKey:m},{slots:g})=>{const _=Or(c);if(t.placeholderSign===os)return K("div",{class:d.em("row-cell","placeholder"),style:_},null);const{cellRenderer:w,dataKey:b,dataGetter:x}=t,z=zb(w)||g.default||(H=>K(mf,H,null)),M=Ye(x)?x({columns:e,column:t,columnIndex:o,rowData:a,rowIndex:i}):Pt(a,b!=null?b:""),E=Tn(p,{cellData:M,columns:e,column:t,columnIndex:o,rowIndex:i,rowData:a}),A={class:d.e("cell-text"),columns:e,column:t,columnIndex:o,cellData:M,isScrolling:n,rowData:a,rowIndex:i},O=z(A),D=[d.e("row-cell"),t.align===ts.CENTER&&d.is("align-center"),t.align===ts.RIGHT&&d.is("align-right")],I=i>=0&&t.key===f,N=i>=0&&u.includes(a[m]);let B;const F=`margin-inline-start: ${l*h}px;`;return I&&(ft(r)?B=K(Pbe,ht(r,{class:[d.e("expand-icon"),d.is("expanded",N)],size:v,expanded:N,style:F,expandable:!0}),null):B=K("div",{style:[F,`width: ${v}px; height: ${v}px;`].join(" ")},null)),K("div",ht({class:D,style:_},E),[B,O])};n2.inheritAttrs=!1;function Wbe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vt(e)}const qbe=({columns:e,columnsStyles:t,headerIndex:o,style:l,headerClass:r,headerProps:n,ns:a},{slots:i})=>{const c={columns:e,headerIndex:o},u=[a.e("header-row"),Tn(r,c,""),{[a.is("customized")]:Boolean(i.header)}],d={...Tn(n,c),columnsStyles:t,class:u,columns:e,headerIndex:o,style:l};return K(zbe,d,Wbe(i)?i:{default:()=>[i]})},j3=(e,{slots:t})=>{const{column:o,ns:l,style:r,onColumnSorted:n}=e,a=Or(r);if(o.placeholderSign===os)return K("div",{class:l.em("header-row-cell","placeholder"),style:a},null);const{headerCellRenderer:i,headerClass:c,sortable:u}=o,d={...e,class:l.e("header-cell-text")},f=(zb(i)||t.default||(x=>K(gf,x,null)))(d),{sortBy:h,sortState:v,headerCellProps:m}=e;let g,_;if(v){const x=v[o.key];g=Boolean(r2[x]),_=g?x:es.ASC}else g=o.key===h.key,_=g?h.order:es.ASC;const w=[l.e("header-cell"),Tn(c,e,""),o.align===ts.CENTER&&l.is("align-center"),o.align===ts.RIGHT&&l.is("align-right"),u&&l.is("sortable")],b={...Tn(m,e),onClick:o.sortable?n:void 0,class:w,style:a,["data-key"]:o.key};return K("div",b,[f,u&&K(Obe,{class:[l.e("sort-icon"),g&&l.is("sorting")],sortOrder:_},null)])},Ab=(e,{slots:t})=>{var o;return K("div",{class:e.class,style:e.style},[(o=t.default)==null?void 0:o.call(t)])};Ab.displayName="ElTableV2Footer";const Vb=(e,{slots:t})=>K("div",{class:e.class,style:e.style},[t.default?t.default():K(N8,null,null)]);Vb.displayName="ElTableV2Empty";const Ob=(e,{slots:t})=>{var o;return K("div",{class:e.class,style:e.style},[(o=t.default)==null?void 0:o.call(t)])};Ob.displayName="ElTableV2Overlay";function ri(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vt(e)}const Ube="ElTableV2",Ybe=te({name:Ube,props:$be,setup(e,{slots:t,expose:o}){const l=_e("table-v2"),{columnsStyles:r,fixedColumnsOnLeft:n,fixedColumnsOnRight:a,mainColumns:i,mainTableHeight:c,fixedTableHeight:u,leftTableWidth:d,rightTableWidth:p,data:f,depthMap:h,expandedRowKeys:v,hasFixedColumns:m,hoveringRowKey:g,mainTableRef:_,leftTableRef:w,rightTableRef:b,isDynamic:x,isResetting:k,isScrolling:z,bodyWidth:M,emptyStyle:E,rootStyle:A,headerWidth:O,footerHeight:D,showEmpty:I,scrollTo:N,scrollToLeft:B,scrollToTop:F,scrollToRow:H,getRowHeight:L,onColumnSorted:P,onRowHeightChange:R,onRowHovered:J,onRowExpanded:oe,onRowsRendered:G,onScroll:le,onVerticalScroll:he}=kbe(e);return o({scrollTo:N,scrollToLeft:B,scrollToTop:F,scrollToRow:H}),st(ff,{ns:l,isResetting:k,hoveringRowKey:g,isScrolling:z}),()=>{const{cache:j,cellProps:re,estimatedRowHeight:Y,expandColumnKey:W,fixedData:ce,headerHeight:ne,headerClass:xe,headerProps:U,headerCellProps:Q,sortBy:fe,sortState:we,rowHeight:$e,rowClass:pe,rowEventHandlers:Se,rowKey:me,rowProps:X,scrollbarAlwaysOn:se,indentSize:ze,iconSize:Ve,useIsScrolling:Le,vScrollbarSize:Ke,width:qe}=e,rt=s(f),be={cache:j,class:l.e("main"),columns:s(i),data:rt,fixedData:ce,estimatedRowHeight:Y,bodyWidth:s(M),headerHeight:ne,headerWidth:s(O),height:s(c),mainTableRef:_,rowKey:me,rowHeight:$e,scrollbarAlwaysOn:se,scrollbarStartGap:2,scrollbarEndGap:Ke,useIsScrolling:Le,width:qe,getRowHeight:L,onRowsRendered:G,onScroll:le},ye=s(d),He=s(u),Je={cache:j,class:l.e("left"),columns:s(n),data:rt,estimatedRowHeight:Y,leftTableRef:w,rowHeight:$e,bodyWidth:ye,headerWidth:ye,headerHeight:ne,height:He,rowKey:me,scrollbarAlwaysOn:se,scrollbarStartGap:2,scrollbarEndGap:Ke,useIsScrolling:Le,width:ye,getRowHeight:L,onScroll:he},ie=s(p)+Ke,ke={cache:j,class:l.e("right"),columns:s(a),data:rt,estimatedRowHeight:Y,rightTableRef:b,rowHeight:$e,bodyWidth:ie,headerWidth:ie,headerHeight:ne,height:He,rowKey:me,scrollbarAlwaysOn:se,scrollbarStartGap:2,scrollbarEndGap:Ke,width:ie,style:`--${s(l.namespace)}-table-scrollbar-size: ${Ke}px`,useIsScrolling:Le,getRowHeight:L,onScroll:he},Me=s(r),it={ns:l,depthMap:s(h),columnsStyles:Me,expandColumnKey:W,expandedRowKeys:s(v),estimatedRowHeight:Y,hasFixedColumns:s(m),hoveringRowKey:s(g),rowProps:X,rowClass:pe,rowKey:me,rowEventHandlers:Se,onRowHovered:J,onRowExpanded:oe,onRowHeightChange:R},zt={cellProps:re,expandColumnKey:W,indentSize:ze,iconSize:Ve,rowKey:me,expandedRowKeys:s(v),ns:l},Ut={ns:l,headerClass:xe,headerProps:U,columnsStyles:Me},qt={ns:l,sortBy:fe,sortState:we,headerCellProps:Q,onColumnSorted:P},dt={row:We=>K(Kbe,ht(We,it),{row:t.row,cell:vt=>{let Ct;return t.cell?K(n2,ht(vt,zt,{style:Me[vt.column.key]}),ri(Ct=t.cell(vt))?Ct:{default:()=>[Ct]}):K(n2,ht(vt,zt,{style:Me[vt.column.key]}),null)}}),header:We=>K(qbe,ht(We,Ut),{header:t.header,cell:vt=>{let Ct;return t["header-cell"]?K(j3,ht(vt,qt,{style:Me[vt.column.key]}),ri(Ct=t["header-cell"](vt))?Ct:{default:()=>[Ct]}):K(j3,ht(vt,qt,{style:Me[vt.column.key]}),null)}})},Dt=[e.class,l.b(),l.e("root"),{[l.is("dynamic")]:s(x)}],Ee={class:l.e("footer"),style:s(D)};return K("div",{class:Dt,style:s(A)},[K(Hbe,be,ri(dt)?dt:{default:()=>[dt]}),K(Bbe,Je,ri(dt)?dt:{default:()=>[dt]}),K(Fbe,ke,ri(dt)?dt:{default:()=>[dt]}),t.footer&&K(Ab,Ee,{default:t.footer}),s(I)&&K(Vb,{class:l.e("empty"),style:s(E)},{default:t.empty}),t.overlay&&K(Ob,{class:l.e("overlay")},{default:t.overlay})])}}}),Gbe=Ae({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:de(Function)}}),Xbe=te({name:"ElAutoResizer",props:Gbe,setup(e,{slots:t}){const o=_e("auto-resizer"),{height:l,width:r,sizer:n}=xbe(e),a={width:"100%",height:"100%"};return()=>{var i;return K("div",{ref:n,class:o.b(),style:a},[(i=t.default)==null?void 0:i.call(t,{height:l.value,width:r.value})])}}}),Jbe=at(Ybe),Zbe=at(Xbe),Qbe=Ae({tabs:{type:de(Array),default:()=>Lt([])}}),Pb="ElTabBar",e_e=te({name:Pb}),t_e=te({...e_e,props:Qbe,setup(e,{expose:t}){const o=e,l=Qe(),r=Re(Cu);r||Zt(Pb,"");const n=_e("tabs"),a=V(),i=V(),c=()=>{let d=0,p=0;const f=["top","bottom"].includes(r.props.tabPosition)?"width":"height",h=f==="width"?"x":"y";return o.tabs.every(v=>{var m,g,_,w;const b=(g=(m=l.parent)==null?void 0:m.refs)==null?void 0:g[`tab-${v.uid}`];if(!b)return!1;if(!v.active)return!0;p=b[`client${Zo(f)}`];const x=h==="x"?"left":"top";d=b[`offset${Zo(x)}`]-((w=(_=b.parentElement)==null?void 0:_[`offset${Zo(x)}`])!=null?w:0);const k=b.closest(".is-scrollable");if(k){const M=window.getComputedStyle(k);d+=Number.parseFloat(M[`padding${Zo(x)}`])}const z=window.getComputedStyle(b);return f==="width"&&(o.tabs.length>1&&(p-=Number.parseFloat(z.paddingLeft)+Number.parseFloat(z.paddingRight)),d+=Number.parseFloat(z.paddingLeft)),!1}),{[f]:`${p}px`,transform:`translate${Zo(h)}(${d}px)`}},u=()=>i.value=c();return ve(()=>o.tabs,async()=>{await Ne(),u()},{immediate:!0}),bo(a,()=>u()),t({ref:a,update:u}),(d,p)=>(y(),$("div",{ref_key:"barRef",ref:a,class:T([s(n).e("active-bar"),s(n).is(s(r).props.tabPosition)]),style:Be(i.value)},null,6))}});var o_e=Te(t_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const l_e=Ae({panes:{type:de(Array),default:()=>Lt([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),r_e={tabClick:(e,t,o)=>o instanceof Event,tabRemove:(e,t)=>t instanceof Event},K3="ElTabNav",n_e=te({name:K3,props:l_e,emits:r_e,setup(e,{expose:t,emit:o}){const l=Qe(),r=Re(Cu);r||Zt(K3,"");const n=_e("tabs"),a=I$(),i=q$(),c=V(),u=V(),d=V(),p=V(!1),f=V(0),h=V(!1),v=V(!0),m=S(()=>["top","bottom"].includes(r.props.tabPosition)?"width":"height"),g=S(()=>({transform:`translate${m.value==="width"?"X":"Y"}(-${f.value}px)`})),_=()=>{if(!c.value)return;const E=c.value[`offset${Zo(m.value)}`],A=f.value;if(!A)return;const O=A>E?A-E:0;f.value=O},w=()=>{if(!c.value||!u.value)return;const E=u.value[`offset${Zo(m.value)}`],A=c.value[`offset${Zo(m.value)}`],O=f.value;if(E-O<=A)return;const D=E-O>A*2?O+A:E-A;f.value=D},b=async()=>{const E=u.value;if(!p.value||!d.value||!c.value||!E)return;await Ne();const A=d.value.querySelector(".is-active");if(!A)return;const O=c.value,D=["top","bottom"].includes(r.props.tabPosition),I=A.getBoundingClientRect(),N=O.getBoundingClientRect(),B=D?E.offsetWidth-N.width:E.offsetHeight-N.height,F=f.value;let H=F;D?(I.leftN.right&&(H=F+I.right-N.right)):(I.topN.bottom&&(H=F+(I.bottom-N.bottom))),H=Math.max(H,0),f.value=Math.min(H,B)},x=()=>{if(!u.value||!c.value)return;const E=u.value[`offset${Zo(m.value)}`],A=c.value[`offset${Zo(m.value)}`],O=f.value;if(A0&&(f.value=0)},k=E=>{const A=E.code,{up:O,down:D,left:I,right:N}=je;if(![O,D,I,N].includes(A))return;const B=Array.from(E.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),F=B.indexOf(E.target);let H;A===I||A===O?F===0?H=B.length-1:H=F-1:F{v.value&&(h.value=!0)},M=()=>h.value=!1;return ve(a,E=>{E==="hidden"?v.value=!1:E==="visible"&&setTimeout(()=>v.value=!0,50)}),ve(i,E=>{E?setTimeout(()=>v.value=!0,50):v.value=!1}),bo(d,x),Ze(()=>setTimeout(()=>b(),0)),jl(()=>x()),t({scrollToActiveTab:b,removeFocus:M}),ve(()=>e.panes,()=>l.update(),{flush:"post"}),()=>{const E=p.value?[K("span",{class:[n.e("nav-prev"),n.is("disabled",!p.value.prev)],onClick:_},[K(De,null,{default:()=>[K(ir,null,null)]})]),K("span",{class:[n.e("nav-next"),n.is("disabled",!p.value.next)],onClick:w},[K(De,null,{default:()=>[K(go,null,null)]})])]:null,A=e.panes.map((O,D)=>{var I,N,B,F;const H=O.uid,L=O.props.disabled,P=(N=(I=O.props.name)!=null?I:O.index)!=null?N:`${D}`,R=!L&&(O.isClosable||e.editable);O.index=`${D}`;const J=R?K(De,{class:"is-icon-close",onClick:le=>o("tabRemove",O,le)},{default:()=>[K(nl,null,null)]}):null,oe=((F=(B=O.slots).label)==null?void 0:F.call(B))||O.props.label,G=!L&&O.active?0:-1;return K("div",{ref:`tab-${H}`,class:[n.e("item"),n.is(r.props.tabPosition),n.is("active",O.active),n.is("disabled",L),n.is("closable",R),n.is("focus",h.value)],id:`tab-${P}`,key:`tab-${H}`,"aria-controls":`pane-${P}`,role:"tab","aria-selected":O.active,tabindex:G,onFocus:()=>z(),onBlur:()=>M(),onClick:le=>{M(),o("tabClick",O,P,le)},onKeydown:le=>{R&&(le.code===je.delete||le.code===je.backspace)&&o("tabRemove",O,le)}},[oe,J])});return K("div",{ref:d,class:[n.e("nav-wrap"),n.is("scrollable",!!p.value),n.is(r.props.tabPosition)]},[E,K("div",{class:n.e("nav-scroll"),ref:c},[K("div",{class:[n.e("nav"),n.is(r.props.tabPosition),n.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:u,style:g.value,role:"tablist",onKeydown:k},[e.type?null:K(o_e,{tabs:[...e.panes]},null),A])])])}}}),a_e=Ae({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:de(Function),default:()=>!0},stretch:Boolean}),$d=e=>Ge(e)||et(e),i_e={[nt]:e=>$d(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>$d(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>$d(e),tabAdd:()=>!0};var s_e=te({name:"ElTabs",props:a_e,emits:i_e,setup(e,{emit:t,slots:o,expose:l}){var r,n;const a=_e("tabs"),{children:i,addChild:c,removeChild:u}=Gm(Qe(),"ElTabPane"),d=V(),p=V((n=(r=e.modelValue)!=null?r:e.activeName)!=null?n:"0"),f=_=>{p.value=_,t(nt,_),t("tabChange",_)},h=async _=>{var w,b,x;if(!(p.value===_||lo(_)))try{await((w=e.beforeLeave)==null?void 0:w.call(e,_,p.value))!==!1&&(f(_),(x=(b=d.value)==null?void 0:b.removeFocus)==null||x.call(b))}catch{}},v=(_,w,b)=>{_.props.disabled||(h(w),t("tabClick",_,b))},m=(_,w)=>{_.props.disabled||lo(_.props.name)||(w.stopPropagation(),t("edit",_.props.name,"remove"),t("tabRemove",_.props.name))},g=()=>{t("edit",void 0,"add"),t("tabAdd")};return jr({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},S(()=>!!e.activeName)),ve(()=>e.activeName,_=>h(_)),ve(()=>e.modelValue,_=>h(_)),ve(p,async()=>{var _;await Ne(),(_=d.value)==null||_.scrollToActiveTab()}),st(Cu,{props:e,currentName:p,registerPane:c,unregisterPane:u}),l({currentName:p}),()=>{const _=e.editable||e.addable?K("span",{class:a.e("new-tab"),tabindex:"0",onClick:g,onKeydown:x=>{x.code===je.enter&&g()}},[K(De,{class:a.is("icon-plus")},{default:()=>[K(bp,null,null)]})]):null,w=K("div",{class:[a.e("header"),a.is(e.tabPosition)]},[_,K(n_e,{ref:d,currentName:p.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:v,onTabRemove:m},null)]),b=K("div",{class:a.e("content")},[ge(o,"default")]);return K("div",{class:[a.b(),a.m(e.tabPosition),{[a.m("card")]:e.type==="card",[a.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[w,b]:[b,w]])}}});const c_e=Ae({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),u_e=["id","aria-hidden","aria-labelledby"],Lb="ElTabPane",d_e=te({name:Lb}),p_e=te({...d_e,props:c_e,setup(e){const t=e,o=Qe(),l=ao(),r=Re(Cu);r||Zt(Lb,"usage: ");const n=_e("tab-pane"),a=V(),i=S(()=>t.closable||r.props.closable),c=rh(()=>{var h;return r.currentName.value===((h=t.name)!=null?h:a.value)}),u=V(c.value),d=S(()=>{var h;return(h=t.name)!=null?h:a.value}),p=rh(()=>!t.lazy||u.value||c.value);ve(c,h=>{h&&(u.value=!0)});const f=wt({uid:o.uid,slots:l,props:t,paneName:d,active:c,index:a,isClosable:i});return Ze(()=>{r.registerPane(f)}),ur(()=>{r.unregisterPane(f.uid)}),(h,v)=>s(p)?Xe((y(),$("div",{key:0,id:`pane-${s(d)}`,class:T(s(n).b()),role:"tabpanel","aria-hidden":!s(c),"aria-labelledby":`tab-${s(d)}`},[ge(h.$slots,"default")],10,u_e)),[[_t,s(c)]]):ae("v-if",!0)}});var Ib=Te(p_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const f_e=at(s_e,{TabPane:Ib}),h_e=Bt(Ib),v_e=Ae({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:Lo,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:de([String,Object]),default:()=>gp},clearIcon:{type:de([String,Object]),default:()=>hr}}),er=e=>{const t=(e||"").split(":");if(t.length>=2){let o=Number.parseInt(t[0],10);const l=Number.parseInt(t[1],10),r=e.toUpperCase();return r.includes("AM")&&o===12?o=0:r.includes("PM")&&o!==12&&(o+=12),{hours:o,minutes:l}}return null},Sd=(e,t)=>{const o=er(e);if(!o)return-1;const l=er(t);if(!l)return-1;const r=o.minutes+o.hours*60,n=l.minutes+l.hours*60;return r===n?0:r>n?1:-1},W3=e=>`${e}`.padStart(2,"0"),qn=e=>`${W3(e.hours)}:${W3(e.minutes)}`,m_e=(e,t)=>{const o=er(e);if(!o)return"";const l=er(t);if(!l)return"";const r={hours:o.hours,minutes:o.minutes};return r.minutes+=l.minutes,r.hours+=l.hours,r.hours+=Math.floor(r.minutes/60),r.minutes=r.minutes%60,qn(r)},g_e=te({name:"ElTimeSelect"}),b_e=te({...g_e,props:v_e,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const o=e;tt.extend(qp);const{Option:l}=Mn,r=_e("input"),n=V(),a=zl(),i=S(()=>o.modelValue),c=S(()=>{const g=er(o.start);return g?qn(g):null}),u=S(()=>{const g=er(o.end);return g?qn(g):null}),d=S(()=>{const g=er(o.step);return g?qn(g):null}),p=S(()=>{const g=er(o.minTime||"");return g?qn(g):null}),f=S(()=>{const g=er(o.maxTime||"");return g?qn(g):null}),h=S(()=>{const g=[];if(o.start&&o.end&&o.step){let _=c.value,w;for(;_&&u.value&&Sd(_,u.value)<=0;)w=tt(_,"HH:mm").format(o.format),g.push({value:w,disabled:Sd(_,p.value||"-1:-1")<=0||Sd(_,f.value||"100:100")>=0}),_=m_e(_,d.value)}return g});return t({blur:()=>{var g,_;(_=(g=n.value)==null?void 0:g.blur)==null||_.call(g)},focus:()=>{var g,_;(_=(g=n.value)==null?void 0:g.focus)==null||_.call(g)}}),(g,_)=>(y(),ue(s(Mn),{ref_key:"select",ref:n,"model-value":s(i),disabled:s(a),clearable:g.clearable,"clear-icon":g.clearIcon,size:g.size,effect:g.effect,placeholder:g.placeholder,"default-first-option":"",filterable:g.editable,"onUpdate:modelValue":_[0]||(_[0]=w=>g.$emit("update:modelValue",w)),onChange:_[1]||(_[1]=w=>g.$emit("change",w)),onBlur:_[2]||(_[2]=w=>g.$emit("blur",w)),onFocus:_[3]||(_[3]=w=>g.$emit("focus",w))},{prefix:Z(()=>[g.prefixIcon?(y(),ue(s(De),{key:0,class:T(s(r).e("prefix-icon"))},{default:Z(()=>[(y(),ue(pt(g.prefixIcon)))]),_:1},8,["class"])):ae("v-if",!0)]),default:Z(()=>[(y(!0),$(Pe,null,ut(s(h),w=>(y(),ue(s(l),{key:w.value,label:w.value,value:w.value,disabled:w.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var gc=Te(b_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);gc.install=e=>{e.component(gc.name,gc)};const __e=gc,y_e=__e,w_e=te({name:"ElTimeline",setup(e,{slots:t}){const o=_e("timeline");return st("timeline",t),()=>Fe("ul",{class:[o.b()]},[ge(t,"default")])}}),x_e=Ae({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:Mt},hollow:{type:Boolean,default:!1}}),k_e=te({name:"ElTimelineItem"}),C_e=te({...k_e,props:x_e,setup(e){const t=_e("timeline-item");return(o,l)=>(y(),$("li",{class:T([s(t).b(),{[s(t).e("center")]:o.center}])},[C("div",{class:T(s(t).e("tail"))},null,2),o.$slots.dot?ae("v-if",!0):(y(),$("div",{key:0,class:T([s(t).e("node"),s(t).em("node",o.size||""),s(t).em("node",o.type||""),s(t).is("hollow",o.hollow)]),style:Be({backgroundColor:o.color})},[o.icon?(y(),ue(s(De),{key:0,class:T(s(t).e("icon"))},{default:Z(()=>[(y(),ue(pt(o.icon)))]),_:1},8,["class"])):ae("v-if",!0)],6)),o.$slots.dot?(y(),$("div",{key:1,class:T(s(t).e("dot"))},[ge(o.$slots,"dot")],2)):ae("v-if",!0),C("div",{class:T(s(t).e("wrapper"))},[!o.hideTimestamp&&o.placement==="top"?(y(),$("div",{key:0,class:T([s(t).e("timestamp"),s(t).is("top")])},Ce(o.timestamp),3)):ae("v-if",!0),C("div",{class:T(s(t).e("content"))},[ge(o.$slots,"default")],2),!o.hideTimestamp&&o.placement==="bottom"?(y(),$("div",{key:1,class:T([s(t).e("timestamp"),s(t).is("bottom")])},Ce(o.timestamp),3)):ae("v-if",!0)],2)],2))}});var Rb=Te(C_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const $_e=at(w_e,{TimelineItem:Rb}),S_e=Bt(Rb),Hb=Ae({nowrap:Boolean});var Nb=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(Nb||{});const z_e=Object.values(Nb),_f=Ae({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:de(Object),default:null}}),E_e=Ae({side:{type:de(String),values:z_e,required:!0}}),M_e=["absolute","fixed"],T_e=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],yf=Ae({ariaLabel:String,arrowPadding:{type:de(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:de(String),values:T_e,default:"bottom"},reference:{type:de(Object),default:null},offset:{type:Number,default:8},strategy:{type:de(String),values:M_e,default:"absolute"},showArrow:{type:Boolean,default:!1}}),wf=Ae({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:de(Function)},"onUpdate:open":{type:de(Function)}}),Nn={type:de(Function)},xf=Ae({onBlur:Nn,onClick:Nn,onFocus:Nn,onMouseDown:Nn,onMouseEnter:Nn,onMouseLeave:Nn}),A_e=Ae({...wf,..._f,...xf,...yf,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:de(Object),default:null},teleported:Boolean,to:{type:de(String),default:"body"}}),V_e=te({name:"ElTooltipV2Root"}),O_e=te({...V_e,props:wf,setup(e,{expose:t}){const o=e,l=V(o.defaultOpen),r=V(null),n=S({get:()=>G$(o.open)?l.value:o.open,set:g=>{var _;l.value=g,(_=o["onUpdate:open"])==null||_.call(o,g)}}),a=S(()=>et(o.delayDuration)&&o.delayDuration>0),{start:i,stop:c}=Sn(()=>{n.value=!0},S(()=>o.delayDuration),{immediate:!1}),u=_e("tooltip-v2"),d=wl(),p=()=>{c(),n.value=!0},f=()=>{s(a)?i():p()},h=p,v=()=>{c(),n.value=!1};return ve(n,g=>{var _;g&&(document.dispatchEvent(new CustomEvent(ad)),h()),(_=o.onOpenChange)==null||_.call(o,g)}),Ze(()=>{document.addEventListener(ad,v)}),It(()=>{c(),document.removeEventListener(ad,v)}),st(Su,{contentId:d,triggerRef:r,ns:u,onClose:v,onDelayOpen:f,onOpen:h}),t({onOpen:h,onClose:v}),(g,_)=>ge(g.$slots,"default",{open:s(n)})}});var P_e=Te(O_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const L_e=te({name:"ElTooltipV2Arrow"}),I_e=te({...L_e,props:{..._f,...E_e},setup(e){const t=e,{ns:o}=Re(Su),{arrowRef:l}=Re(Mm),r=S(()=>{const{style:n,width:a,height:i}=t,c=o.namespace.value;return{[`--${c}-tooltip-v2-arrow-width`]:`${a}px`,[`--${c}-tooltip-v2-arrow-height`]:`${i}px`,[`--${c}-tooltip-v2-arrow-border-width`]:`${a/2}px`,[`--${c}-tooltip-v2-arrow-cover-width`]:a/2-1,...n||{}}});return(n,a)=>(y(),$("span",{ref_key:"arrowRef",ref:l,style:Be(s(r)),class:T(s(o).e("arrow"))},null,6))}});var q3=Te(I_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const R_e=Ae({style:{type:de([String,Object,Array]),default:()=>({})}}),H_e=te({name:"ElVisuallyHidden"}),N_e=te({...H_e,props:R_e,setup(e){const t=e,o=S(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(l,r)=>(y(),$("span",ht(l.$attrs,{style:s(o)}),[ge(l.$slots,"default")],16))}});var B_e=Te(N_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const D_e=["data-side"],F_e=te({name:"ElTooltipV2Content"}),j_e=te({...F_e,props:{...yf,...Hb},setup(e){const t=e,{triggerRef:o,contentId:l}=Re(Su),r=V(t.placement),n=V(t.strategy),a=V(null),{referenceRef:i,contentRef:c,middlewareData:u,x:d,y:p,update:f}=pie({placement:r,strategy:n,middleware:S(()=>{const b=[sie(t.offset)];return t.showArrow&&b.push(fie({arrowRef:a})),b})}),h=gr().nextZIndex(),v=_e("tooltip-v2"),m=S(()=>r.value.split("-")[0]),g=S(()=>({position:s(n),top:`${s(p)||0}px`,left:`${s(d)||0}px`,zIndex:h})),_=S(()=>{if(!t.showArrow)return{};const{arrow:b}=s(u);return{[`--${v.namespace.value}-tooltip-v2-arrow-x`]:`${b==null?void 0:b.x}px`||"",[`--${v.namespace.value}-tooltip-v2-arrow-y`]:`${b==null?void 0:b.y}px`||""}}),w=S(()=>[v.e("content"),v.is("dark",t.effect==="dark"),v.is(s(n)),t.contentClass]);return ve(a,()=>f()),ve(()=>t.placement,b=>r.value=b),Ze(()=>{ve(()=>t.reference||o.value,b=>{i.value=b||void 0},{immediate:!0})}),st(Mm,{arrowRef:a}),(b,x)=>(y(),$("div",{ref_key:"contentRef",ref:c,style:Be(s(g)),"data-tooltip-v2-root":""},[b.nowrap?ae("v-if",!0):(y(),$("div",{key:0,"data-side":s(m),class:T(s(w))},[ge(b.$slots,"default",{contentStyle:s(g),contentClass:s(w)}),K(s(B_e),{id:s(l),role:"tooltip"},{default:Z(()=>[b.ariaLabel?(y(),$(Pe,{key:0},[ot(Ce(b.ariaLabel),1)],64)):ge(b.$slots,"default",{key:1})]),_:3},8,["id"]),ge(b.$slots,"arrow",{style:Be(s(_)),side:s(m)})],10,D_e))],4))}});var U3=Te(j_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const K_e=Ae({setRef:{type:de(Function),required:!0},onlyChild:Boolean});var W_e=te({props:K_e,setup(e,{slots:t}){const o=V(),l=xu(o,r=>{r?e.setRef(r.nextElementSibling):e.setRef(null)});return()=>{var r;const[n]=((r=t.default)==null?void 0:r.call(t))||[],a=e.onlyChild?tae(n.children):n.children;return K(Pe,{ref:l},[a])}}});const q_e=te({name:"ElTooltipV2Trigger"}),U_e=te({...q_e,props:{...Hb,...xf},setup(e){const t=e,{onClose:o,onOpen:l,onDelayOpen:r,triggerRef:n,contentId:a}=Re(Su);let i=!1;const c=w=>{n.value=w},u=()=>{i=!1},d=Nt(t.onMouseEnter,r),p=Nt(t.onMouseLeave,o),f=Nt(t.onMouseDown,()=>{o(),i=!0,document.addEventListener("mouseup",u,{once:!0})}),h=Nt(t.onFocus,()=>{i||l()}),v=Nt(t.onBlur,o),m=Nt(t.onClick,w=>{w.detail===0&&o()}),g={blur:v,click:m,focus:h,mousedown:f,mouseenter:d,mouseleave:p},_=(w,b,x)=>{w&&Object.entries(b).forEach(([k,z])=>{w[x](k,z)})};return ve(n,(w,b)=>{_(w,g,"addEventListener"),_(b,g,"removeEventListener"),w&&w.setAttribute("aria-describedby",a.value)}),It(()=>{_(n.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(w,b)=>w.nowrap?(y(),ue(s(W_e),{key:0,"set-ref":c,"only-child":""},{default:Z(()=>[ge(w.$slots,"default")]),_:3})):(y(),$("button",ht({key:1,ref_key:"triggerRef",ref:n},w.$attrs),[ge(w.$slots,"default")],16))}});var Y_e=Te(U_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const G_e=te({name:"ElTooltipV2"}),X_e=te({...G_e,props:A_e,setup(e){const o=Gt(e),l=wt(or(o,Object.keys(_f))),r=wt(or(o,Object.keys(yf))),n=wt(or(o,Object.keys(wf))),a=wt(or(o,Object.keys(xf)));return(i,c)=>(y(),ue(P_e,vl(cu(n)),{default:Z(({open:u})=>[K(Y_e,ht(a,{nowrap:""}),{default:Z(()=>[ge(i.$slots,"trigger")]),_:3},16),(y(),ue(cs,{to:i.to,disabled:!i.teleported},[i.fullTransition?(y(),ue(Kt,vl(ht({key:0},i.transitionProps)),{default:Z(()=>[i.alwaysOn||u?(y(),ue(U3,vl(ht({key:0},r)),{arrow:Z(({style:d,side:p})=>[i.showArrow?(y(),ue(q3,ht({key:0},l,{style:d,side:p}),null,16,["style","side"])):ae("v-if",!0)]),default:Z(()=>[ge(i.$slots,"default")]),_:3},16)):ae("v-if",!0)]),_:2},1040)):(y(),$(Pe,{key:1},[i.alwaysOn||u?(y(),ue(U3,vl(ht({key:0},r)),{arrow:Z(({style:d,side:p})=>[i.showArrow?(y(),ue(q3,ht({key:0},l,{style:d,side:p}),null,16,["style","side"])):ae("v-if",!0)]),default:Z(()=>[ge(i.$slots,"default")]),_:3},16)):ae("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var J_e=Te(X_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const Z_e=at(J_e),Bb="left-check-change",Db="right-check-change",Un=Ae({data:{type:de(Array),default:()=>[]},titles:{type:de(Array),default:()=>[]},buttonTexts:{type:de(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:de(Function)},leftDefaultChecked:{type:de(Array),default:()=>[]},rightDefaultChecked:{type:de(Array),default:()=>[]},renderContent:{type:de(Function)},modelValue:{type:de(Array),default:()=>[]},format:{type:de(Object),default:()=>({})},filterable:Boolean,props:{type:de(Object),default:()=>Lt({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),a2=(e,t)=>[e,t].every(Ie)||Ie(e)&&ro(t),Q_e={[Ot]:(e,t,o)=>[e,o].every(Ie)&&["left","right"].includes(t),[nt]:e=>Ie(e),[Bb]:a2,[Db]:a2},i2="checked-change",e5e=Ae({data:Un.data,optionRender:{type:de(Function)},placeholder:String,title:String,filterable:Boolean,format:Un.format,filterMethod:Un.filterMethod,defaultChecked:Un.leftDefaultChecked,props:Un.props}),t5e={[i2]:a2},ks=e=>{const t={label:"label",key:"key",disabled:"disabled"};return S(()=>({...t,...e.props}))},o5e=(e,t,o)=>{const l=ks(e),r=S(()=>e.data.filter(d=>Ye(e.filterMethod)?e.filterMethod(t.query,d):String(d[l.value.label]||d[l.value.key]).toLowerCase().includes(t.query.toLowerCase()))),n=S(()=>r.value.filter(d=>!d[l.value.disabled])),a=S(()=>{const d=t.checked.length,p=e.data.length,{noChecked:f,hasChecked:h}=e.format;return f&&h?d>0?h.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,p.toString()):f.replace(/\${total}/g,p.toString()):`${d}/${p}`}),i=S(()=>{const d=t.checked.length;return d>0&&d{const d=n.value.map(p=>p[l.value.key]);t.allChecked=d.length>0&&d.every(p=>t.checked.includes(p))},u=d=>{t.checked=d?n.value.map(p=>p[l.value.key]):[]};return ve(()=>t.checked,(d,p)=>{if(c(),t.checkChangeByUser){const f=d.concat(p).filter(h=>!d.includes(h)||!p.includes(h));o(i2,d,f)}else o(i2,d),t.checkChangeByUser=!0}),ve(n,()=>{c()}),ve(()=>e.data,()=>{const d=[],p=r.value.map(f=>f[l.value.key]);t.checked.forEach(f=>{p.includes(f)&&d.push(f)}),t.checkChangeByUser=!1,t.checked=d}),ve(()=>e.defaultChecked,(d,p)=>{if(p&&d.length===p.length&&d.every(v=>p.includes(v)))return;const f=[],h=n.value.map(v=>v[l.value.key]);d.forEach(v=>{h.includes(v)&&f.push(v)}),t.checkChangeByUser=!1,t.checked=f},{immediate:!0}),{filteredData:r,checkableData:n,checkedSummary:a,isIndeterminate:i,updateAllChecked:c,handleAllCheckedChange:u}},l5e=(e,t)=>({onSourceCheckedChange:(r,n)=>{e.leftChecked=r,n&&t(Bb,r,n)},onTargetCheckedChange:(r,n)=>{e.rightChecked=r,n&&t(Db,r,n)}}),r5e=e=>{const t=ks(e),o=S(()=>e.data.reduce((n,a)=>(n[a[t.value.key]]=a)&&n,{})),l=S(()=>e.data.filter(n=>!e.modelValue.includes(n[t.value.key]))),r=S(()=>e.targetOrder==="original"?e.data.filter(n=>e.modelValue.includes(n[t.value.key])):e.modelValue.reduce((n,a)=>{const i=o.value[a];return i&&n.push(i),n},[]));return{sourceData:l,targetData:r}},n5e=(e,t,o)=>{const l=ks(e),r=(i,c,u)=>{o(nt,i),o(Ot,i,c,u)};return{addToLeft:()=>{const i=e.modelValue.slice();t.rightChecked.forEach(c=>{const u=i.indexOf(c);u>-1&&i.splice(u,1)}),r(i,"left",t.rightChecked)},addToRight:()=>{let i=e.modelValue.slice();const c=e.data.filter(u=>{const d=u[l.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(u=>u[l.value.key]);i=e.targetOrder==="unshift"?c.concat(i):i.concat(c),e.targetOrder==="original"&&(i=e.data.filter(u=>i.includes(u[l.value.key])).map(u=>u[l.value.key])),r(i,"right",t.leftChecked)}}},a5e=te({name:"ElTransferPanel"}),i5e=te({...a5e,props:e5e,emits:t5e,setup(e,{expose:t,emit:o}){const l=e,r=ao(),n=({option:x})=>x,{t:a}=yt(),i=_e("transfer"),c=wt({checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}),u=ks(l),{filteredData:d,checkedSummary:p,isIndeterminate:f,handleAllCheckedChange:h}=o5e(l,c,o),v=S(()=>!Jo(c.query)&&Jo(d.value)),m=S(()=>!Jo(r.default()[0].children)),{checked:g,allChecked:_,query:w,inputHover:b}=Gt(c);return t({query:w}),(x,k)=>(y(),$("div",{class:T(s(i).b("panel"))},[C("p",{class:T(s(i).be("panel","header"))},[K(s(sl),{modelValue:s(_),"onUpdate:modelValue":k[0]||(k[0]=z=>xt(_)?_.value=z:null),indeterminate:s(f),"validate-event":!1,onChange:s(h)},{default:Z(()=>[ot(Ce(x.title)+" ",1),C("span",null,Ce(s(p)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),C("div",{class:T([s(i).be("panel","body"),s(i).is("with-footer",s(m))])},[x.filterable?(y(),ue(s(mo),{key:0,modelValue:s(w),"onUpdate:modelValue":k[1]||(k[1]=z=>xt(w)?w.value=z:null),class:T(s(i).be("panel","filter")),size:"default",placeholder:x.placeholder,"prefix-icon":s(am),clearable:"","validate-event":!1,onMouseenter:k[2]||(k[2]=z=>b.value=!0),onMouseleave:k[3]||(k[3]=z=>b.value=!1)},null,8,["modelValue","class","placeholder","prefix-icon"])):ae("v-if",!0),Xe(K(s(Qg),{modelValue:s(g),"onUpdate:modelValue":k[4]||(k[4]=z=>xt(g)?g.value=z:null),"validate-event":!1,class:T([s(i).is("filterable",x.filterable),s(i).be("panel","list")])},{default:Z(()=>[(y(!0),$(Pe,null,ut(s(d),z=>(y(),ue(s(sl),{key:z[s(u).key],class:T(s(i).be("panel","item")),label:z[s(u).key],disabled:z[s(u).disabled],"validate-event":!1},{default:Z(()=>{var M;return[K(n,{option:(M=x.optionRender)==null?void 0:M.call(x,z)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[_t,!s(v)&&!s(Jo)(x.data)]]),Xe(C("p",{class:T(s(i).be("panel","empty"))},Ce(s(v)?s(a)("el.transfer.noMatch"):s(a)("el.transfer.noData")),3),[[_t,s(v)||s(Jo)(x.data)]])],2),s(m)?(y(),$("p",{key:0,class:T(s(i).be("panel","footer"))},[ge(x.$slots,"default")],2)):ae("v-if",!0)],2))}});var Y3=Te(i5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const s5e={key:0},c5e={key:0},u5e=te({name:"ElTransfer"}),d5e=te({...u5e,props:Un,emits:Q_e,setup(e,{expose:t,emit:o}){const l=e,r=ao(),{t:n}=yt(),a=_e("transfer"),{formItem:i}=So(),c=wt({leftChecked:[],rightChecked:[]}),u=ks(l),{sourceData:d,targetData:p}=r5e(l),{onSourceCheckedChange:f,onTargetCheckedChange:h}=l5e(c,o),{addToLeft:v,addToRight:m}=n5e(l,c,o),g=V(),_=V(),w=E=>{switch(E){case"left":g.value.query="";break;case"right":_.value.query="";break}},b=S(()=>l.buttonTexts.length===2),x=S(()=>l.titles[0]||n("el.transfer.titles.0")),k=S(()=>l.titles[1]||n("el.transfer.titles.1")),z=S(()=>l.filterPlaceholder||n("el.transfer.filterPlaceholder"));ve(()=>l.modelValue,()=>{var E;l.validateEvent&&((E=i==null?void 0:i.validate)==null||E.call(i,"change").catch(A=>void 0))});const M=S(()=>E=>l.renderContent?l.renderContent(Fe,E):r.default?r.default({option:E}):Fe("span",E[u.value.label]||E[u.value.key]));return t({clearQuery:w,leftPanel:g,rightPanel:_}),(E,A)=>(y(),$("div",{class:T(s(a).b())},[K(Y3,{ref_key:"leftPanel",ref:g,data:s(d),"option-render":s(M),placeholder:s(z),title:s(x),filterable:E.filterable,format:E.format,"filter-method":E.filterMethod,"default-checked":E.leftDefaultChecked,props:l.props,onCheckedChange:s(f)},{default:Z(()=>[ge(E.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),C("div",{class:T(s(a).e("buttons"))},[K(s(po),{type:"primary",class:T([s(a).e("button"),s(a).is("with-texts",s(b))]),disabled:s(Jo)(c.rightChecked),onClick:s(v)},{default:Z(()=>[K(s(De),null,{default:Z(()=>[K(s(ir))]),_:1}),s(lo)(E.buttonTexts[0])?ae("v-if",!0):(y(),$("span",s5e,Ce(E.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),K(s(po),{type:"primary",class:T([s(a).e("button"),s(a).is("with-texts",s(b))]),disabled:s(Jo)(c.leftChecked),onClick:s(m)},{default:Z(()=>[s(lo)(E.buttonTexts[1])?ae("v-if",!0):(y(),$("span",c5e,Ce(E.buttonTexts[1]),1)),K(s(De),null,{default:Z(()=>[K(s(go))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),K(Y3,{ref_key:"rightPanel",ref:_,data:s(p),"option-render":s(M),placeholder:s(z),filterable:E.filterable,format:E.format,"filter-method":E.filterMethod,title:s(k),"default-checked":E.rightDefaultChecked,props:l.props,onCheckedChange:s(h)},{default:Z(()=>[ge(E.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var p5e=Te(d5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const f5e=at(p5e),ua="$treeNodeId",G3=function(e,t){!t||t[ua]||Object.defineProperty(t,ua,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},kf=function(e,t){return e?t[e]:t[ua]},s2=(e,t,o)=>{const l=e.value.currentNode;o();const r=e.value.currentNode;l!==r&&t("current-change",r?r.data:null,r)},c2=e=>{let t=!0,o=!0,l=!0;for(let r=0,n=e.length;r"u"){const n=l[t];return n===void 0?"":n}};let h5e=0;class wn{constructor(t){this.id=h5e++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const o in t)mt(t,o)&&(this[o]=t[o]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const o=t.props;if(o&&typeof o.isLeaf<"u"){const n=qs(this,"isLeaf");typeof n=="boolean"&&(this.isLeafByUser=n)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&this.expand(),Array.isArray(this.data)||G3(this,this.data),!this.data)return;const l=t.defaultExpandedKeys,r=t.key;r&&l&&l.includes(this.key)&&this.expand(null,t.autoExpandParent),r&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||G3(this,t),this.data=t,this.childNodes=[];let o;this.level===0&&Array.isArray(this.data)?o=this.data:o=qs(this,"children")||[];for(let l=0,r=o.length;l-1)return t.childNodes[o+1]}return null}get previousSibling(){const t=this.parent;if(t){const o=t.childNodes.indexOf(this);if(o>-1)return o>0?t.childNodes[o-1]:null}return null}contains(t,o=!0){return(this.childNodes||[]).some(l=>l===t||o&&l.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,o,l){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof wn)){if(!l){const r=this.getChildren(!0);r.includes(t.data)||(typeof o>"u"||o<0?r.push(t.data):r.splice(o,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=wt(new wn(t)),t instanceof wn&&t.initialize()}t.level=this.level+1,typeof o>"u"||o<0?this.childNodes.push(t):this.childNodes.splice(o,0,t),this.updateLeafState()}insertBefore(t,o){let l;o&&(l=this.childNodes.indexOf(o)),this.insertChild(t,l)}insertAfter(t,o){let l;o&&(l=this.childNodes.indexOf(o),l!==-1&&(l+=1)),this.insertChild(t,l)}removeChild(t){const o=this.getChildren()||[],l=o.indexOf(t.data);l>-1&&o.splice(l,1);const r=this.childNodes.indexOf(t);r>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()}removeChildByData(t){let o=null;for(let l=0;l{if(o){let r=this.parent;for(;r.level>0;)r.expanded=!0,r=r.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(r=>{r.canFocus=!0})};this.shouldLoadData()?this.loadData(r=>{Array.isArray(r)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||bc(this),l())}):l()}doCreateChildren(t,o={}){t.forEach(l=>{this.insertChild(Object.assign({data:l},o),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,o,l,r){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:a,allWithoutDisable:i}=c2(this.childNodes);!this.isLeaf&&!a&&i&&(this.checked=!1,t=!1);const c=()=>{if(o){const u=this.childNodes;for(let f=0,h=u.length;f{c(),bc(this)},{checked:t!==!1});return}else c()}const n=this.parent;!n||n.level===0||l||bc(n)}getChildren(t=!1){if(this.level===0)return this.data;const o=this.data;if(!o)return null;const l=this.store.props;let r="children";return l&&(r=l.children||"children"),o[r]===void 0&&(o[r]=null),t&&!o[r]&&(o[r]=[]),o[r]}updateChildren(){const t=this.getChildren()||[],o=this.childNodes.map(n=>n.data),l={},r=[];t.forEach((n,a)=>{const i=n[ua];!!i&&o.findIndex(u=>u[ua]===i)>=0?l[i]={index:a,data:n}:r.push({index:a,data:n})}),this.store.lazy||o.forEach(n=>{l[n[ua]]||this.removeChildByData(n)}),r.forEach(({index:n,data:a})=>{this.insertChild({data:a},n)}),this.updateLeafState()}loadData(t,o={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(o).length)){this.loading=!0;const l=r=>{this.childNodes=[],this.doCreateChildren(r,o),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,r)};this.store.load(this,l)}else t&&t.call(this)}}class v5e{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const o in t)mt(t,o)&&(this[o]=t[o]);this.nodesMap={}}initialize(){if(this.root=new wn({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,o=>{this.root.doCreateChildren(o),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const o=this.filterNodeMethod,l=this.lazy,r=function(n){const a=n.root?n.root.childNodes:n.childNodes;if(a.forEach(i=>{i.visible=o.call(i,t,i.data,i),r(i)}),!n.visible&&a.length){let i=!0;i=!a.some(c=>c.visible),n.root?n.root.visible=i===!1:n.visible=i===!1}!t||n.visible&&!n.isLeaf&&!l&&n.expand()};r(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof wn)return t;const o=ft(t)?kf(this.key,t):t;return this.nodesMap[o]||null}insertBefore(t,o){const l=this.getNode(o);l.parent.insertBefore({data:t},l)}insertAfter(t,o){const l=this.getNode(o);l.parent.insertAfter({data:t},l)}remove(t){const o=this.getNode(t);o&&o.parent&&(o===this.currentNode&&(this.currentNode=null),o.parent.removeChild(o))}append(t,o){const l=o?this.getNode(o):this.root;l&&l.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],o=this.nodesMap;t.forEach(l=>{const r=o[l];r&&r.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const o=this.key;!t||!t.data||(o?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(l=>{this.deregisterNode(l)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,o=!1){const l=[],r=function(n){(n.root?n.root.childNodes:n.childNodes).forEach(i=>{(i.checked||o&&i.indeterminate)&&(!t||t&&i.isLeaf)&&l.push(i.data),r(i)})};return r(this),l}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(o=>(o||{})[this.key])}getHalfCheckedNodes(){const t=[],o=function(l){(l.root?l.root.childNodes:l.childNodes).forEach(n=>{n.indeterminate&&t.push(n.data),o(n)})};return o(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],o=this.nodesMap;for(const l in o)mt(o,l)&&t.push(o[l]);return t}updateChildren(t,o){const l=this.nodesMap[t];if(!l)return;const r=l.childNodes;for(let n=r.length-1;n>=0;n--){const a=r[n];this.remove(a.data)}for(let n=0,a=o.length;nc.level-i.level),n=Object.create(null),a=Object.keys(l);r.forEach(i=>i.setChecked(!1,!1));for(let i=0,c=r.length;i0;)n[f.data[t]]=!0,f=f.parent;if(u.isLeaf||this.checkStrictly){u.setChecked(!0,!1);continue}if(u.setChecked(!0,!0),o){u.setChecked(!1,!1);const h=function(v){v.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),h(g)})};h(u)}}}setCheckedNodes(t,o=!1){const l=this.key,r={};t.forEach(n=>{r[(n||{})[l]]=!0}),this._setCheckedKeys(l,o,r)}setCheckedKeys(t,o=!1){this.defaultCheckedKeys=t;const l=this.key,r={};t.forEach(n=>{r[n]=!0}),this._setCheckedKeys(l,o,r)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(o=>{const l=this.getNode(o);l&&l.expand(null,this.autoExpandParent)})}setChecked(t,o,l){const r=this.getNode(t);r&&r.setChecked(!!o,l)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const o=this.currentNode;o&&(o.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,o=!0){const l=t[this.key],r=this.nodesMap[l];this.setCurrentNode(r),o&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,o=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const l=this.getNode(t);l&&(this.setCurrentNode(l),o&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const m5e=te({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=_e("tree"),o=Re("NodeInstance"),l=Re("RootTree");return()=>{const r=e.node,{data:n,store:a}=r;return e.renderContent?e.renderContent(Fe,{_self:o,node:r,data:n,store:a}):Fe("span",{class:t.be("node","label")},[l.ctx.slots.default?l.ctx.slots.default({node:r,data:n}):r.label])}}});var g5e=Te(m5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function Fb(e){const t=Re("TreeNodeMap",null),o={treeNodeExpand:l=>{e.node!==l&&e.node.collapse()},children:[]};return t&&t.children.push(o),st("TreeNodeMap",o),{broadcastExpanded:l=>{if(!!e.accordion)for(const r of o.children)r.treeNodeExpand(l)}}}const jb=Symbol("dragEvents");function b5e({props:e,ctx:t,el$:o,dropIndicator$:l,store:r}){const n=_e("tree"),a=V({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return st(jb,{treeNodeDragStart:({event:d,treeNode:p})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(p.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}a.value.draggingNode=p,t.emit("node-drag-start",p.node,d)},treeNodeDragOver:({event:d,treeNode:p})=>{const f=p,h=a.value.dropNode;h&&h!==f&&Vo(h.$el,n.is("drop-inner"));const v=a.value.draggingNode;if(!v||!f)return;let m=!0,g=!0,_=!0,w=!0;typeof e.allowDrop=="function"&&(m=e.allowDrop(v.node,f.node,"prev"),w=g=e.allowDrop(v.node,f.node,"inner"),_=e.allowDrop(v.node,f.node,"next")),d.dataTransfer.dropEffect=g||m||_?"move":"none",(m||g||_)&&h!==f&&(h&&t.emit("node-drag-leave",v.node,h.node,d),t.emit("node-drag-enter",v.node,f.node,d)),(m||g||_)&&(a.value.dropNode=f),f.node.nextSibling===v.node&&(_=!1),f.node.previousSibling===v.node&&(m=!1),f.node.contains(v.node,!1)&&(g=!1),(v.node===f.node||v.node.contains(f.node))&&(m=!1,g=!1,_=!1);const b=f.$el.getBoundingClientRect(),x=o.value.getBoundingClientRect();let k;const z=m?g?.25:_?.45:1:-1,M=_?g?.75:m?.55:0:1;let E=-9999;const A=d.clientY-b.top;Ab.height*M?k="after":g?k="inner":k="none";const O=f.$el.querySelector(`.${n.be("node","expand-icon")}`).getBoundingClientRect(),D=l.value;k==="before"?E=O.top-x.top:k==="after"&&(E=O.bottom-x.top),D.style.top=`${E}px`,D.style.left=`${O.right-x.left}px`,k==="inner"?Ol(f.$el,n.is("drop-inner")):Vo(f.$el,n.is("drop-inner")),a.value.showDropIndicator=k==="before"||k==="after",a.value.allowDrop=a.value.showDropIndicator||w,a.value.dropType=k,t.emit("node-drag-over",v.node,f.node,d)},treeNodeDragEnd:d=>{const{draggingNode:p,dropType:f,dropNode:h}=a.value;if(d.preventDefault(),d.dataTransfer.dropEffect="move",p&&h){const v={data:p.node.data};f!=="none"&&p.node.remove(),f==="before"?h.node.parent.insertBefore(v,h.node):f==="after"?h.node.parent.insertAfter(v,h.node):f==="inner"&&h.node.insertChild(v),f!=="none"&&r.value.registerNode(v),Vo(h.$el,n.is("drop-inner")),t.emit("node-drag-end",p.node,h.node,f,d),f!=="none"&&t.emit("node-drop",p.node,h.node,f,d)}p&&!h&&t.emit("node-drag-end",p.node,null,f,d),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0}}),{dragState:a}}const _5e=te({name:"ElTreeNode",components:{ElCollapseTransition:Lu,ElCheckbox:sl,NodeContent:g5e,ElIcon:De,Loading:vr},props:{node:{type:wn,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const o=_e("tree"),{broadcastExpanded:l}=Fb(e),r=Re("RootTree"),n=V(!1),a=V(!1),i=V(null),c=V(null),u=V(null),d=Re(jb),p=Qe();st("NodeInstance",p),e.node.expanded&&(n.value=!0,a.value=!0);const f=r.props.children||"children";ve(()=>{const A=e.node.data[f];return A&&[...A]},()=>{e.node.updateChildren()}),ve(()=>e.node.indeterminate,A=>{m(e.node.checked,A)}),ve(()=>e.node.checked,A=>{m(A,e.node.indeterminate)}),ve(()=>e.node.expanded,A=>{Ne(()=>n.value=A),A&&(a.value=!0)});const h=A=>kf(r.props.nodeKey,A.data),v=A=>{const O=e.props.class;if(!O)return{};let D;if(Ye(O)){const{data:I}=A;D=O(I,A)}else D=O;return Ge(D)?{[D]:!0}:D},m=(A,O)=>{(i.value!==A||c.value!==O)&&r.ctx.emit("check-change",e.node.data,A,O),i.value=A,c.value=O},g=A=>{s2(r.store,r.ctx.emit,()=>r.store.value.setCurrentNode(e.node)),r.currentNode.value=e.node,r.props.expandOnClickNode&&w(),r.props.checkOnClickNode&&!e.node.disabled&&b(null,{target:{checked:!e.node.checked}}),r.ctx.emit("node-click",e.node.data,e.node,p,A)},_=A=>{r.instance.vnode.props.onNodeContextmenu&&(A.stopPropagation(),A.preventDefault()),r.ctx.emit("node-contextmenu",A,e.node.data,e.node,p)},w=()=>{e.node.isLeaf||(n.value?(r.ctx.emit("node-collapse",e.node.data,e.node,p),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,p)))},b=(A,O)=>{e.node.setChecked(O.target.checked,!r.props.checkStrictly),Ne(()=>{const D=r.store.value;r.ctx.emit("check",e.node.data,{checkedNodes:D.getCheckedNodes(),checkedKeys:D.getCheckedKeys(),halfCheckedNodes:D.getHalfCheckedNodes(),halfCheckedKeys:D.getHalfCheckedKeys()})})};return{ns:o,node$:u,tree:r,expanded:n,childNodeRendered:a,oldChecked:i,oldIndeterminate:c,getNodeKey:h,getNodeClass:v,handleSelectChange:m,handleClick:g,handleContextMenu:_,handleExpandIconClick:w,handleCheckChange:b,handleChildNodeExpand:(A,O,D)=>{l(O),r.ctx.emit("node-expand",A,O,D)},handleDragStart:A=>{!r.props.draggable||d.treeNodeDragStart({event:A,treeNode:e})},handleDragOver:A=>{A.preventDefault(),r.props.draggable&&d.treeNodeDragOver({event:A,treeNode:{$el:u.value,node:e.node}})},handleDrop:A=>{A.preventDefault()},handleDragEnd:A=>{!r.props.draggable||d.treeNodeDragEnd(A)},CaretRight:mp}}}),y5e=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],w5e=["aria-expanded"];function x5e(e,t,o,l,r,n){const a=Oe("el-icon"),i=Oe("el-checkbox"),c=Oe("loading"),u=Oe("node-content"),d=Oe("el-tree-node"),p=Oe("el-collapse-transition");return Xe((y(),$("div",{ref:"node$",class:T([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=Ue((...f)=>e.handleClick&&e.handleClick(...f),["stop"])),onContextmenu:t[2]||(t[2]=(...f)=>e.handleContextMenu&&e.handleContextMenu(...f)),onDragstart:t[3]||(t[3]=Ue((...f)=>e.handleDragStart&&e.handleDragStart(...f),["stop"])),onDragover:t[4]||(t[4]=Ue((...f)=>e.handleDragOver&&e.handleDragOver(...f),["stop"])),onDragend:t[5]||(t[5]=Ue((...f)=>e.handleDragEnd&&e.handleDragEnd(...f),["stop"])),onDrop:t[6]||(t[6]=Ue((...f)=>e.handleDrop&&e.handleDrop(...f),["stop"]))},[C("div",{class:T(e.ns.be("node","content")),style:Be({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(y(),ue(a,{key:0,class:T([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Ue(e.handleExpandIconClick,["stop"])},{default:Z(()=>[(y(),ue(pt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):ae("v-if",!0),e.showCheckbox?(y(),ue(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Ue(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):ae("v-if",!0),e.node.loading?(y(),ue(a,{key:2,class:T([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:Z(()=>[K(c)]),_:1},8,["class"])):ae("v-if",!0),K(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),K(p,null,{default:Z(()=>[!e.renderAfterExpand||e.childNodeRendered?Xe((y(),$("div",{key:0,class:T(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(y(!0),$(Pe,null,ut(e.node.childNodes,f=>(y(),ue(d,{key:e.getNodeKey(f),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:f,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,w5e)),[[_t,e.expanded]]):ae("v-if",!0)]),_:1})],42,y5e)),[[_t,e.node.visible]])}var k5e=Te(_5e,[["render",x5e],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function C5e({el$:e},t){const o=_e("tree"),l=Et([]),r=Et([]);Ze(()=>{a()}),jl(()=>{l.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),r.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),ve(r,i=>{i.forEach(c=>{c.setAttribute("tabindex","-1")})}),At(e,"keydown",i=>{const c=i.target;if(!c.className.includes(o.b("node")))return;const u=i.code;l.value=Array.from(e.value.querySelectorAll(`.${o.is("focusable")}[role=treeitem]`));const d=l.value.indexOf(c);let p;if([je.up,je.down].includes(u)){if(i.preventDefault(),u===je.up){p=d===-1?0:d!==0?d-1:l.value.length-1;const h=p;for(;!t.value.getNode(l.value[p].dataset.key).canFocus;){if(p--,p===h){p=-1;break}p<0&&(p=l.value.length-1)}}else{p=d===-1?0:d=l.value.length&&(p=0)}}p!==-1&&l.value[p].focus()}[je.left,je.right].includes(u)&&(i.preventDefault(),c.click());const f=c.querySelector('[type="checkbox"]');[je.enter,je.space].includes(u)&&f&&(i.preventDefault(),f.click())});const a=()=>{var i;l.value=Array.from(e.value.querySelectorAll(`.${o.is("focusable")}[role=treeitem]`)),r.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const c=e.value.querySelectorAll(`.${o.is("checked")}[role=treeitem]`);if(c.length){c[0].setAttribute("tabindex","0");return}(i=l.value[0])==null||i.setAttribute("tabindex","0")}}const $5e=te({name:"ElTree",components:{ElTreeNode:k5e},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:Mt}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:o}=yt(),l=_e("tree"),r=V(new v5e({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));r.value.initialize();const n=V(r.value.root),a=V(null),i=V(null),c=V(null),{broadcastExpanded:u}=Fb(e),{dragState:d}=b5e({props:e,ctx:t,el$:i,dropIndicator$:c,store:r});C5e({el$:i},r);const p=S(()=>{const{childNodes:L}=n.value;return!L||L.length===0||L.every(({visible:P})=>!P)});ve(()=>e.currentNodeKey,L=>{r.value.setCurrentNodeKey(L)}),ve(()=>e.defaultCheckedKeys,L=>{r.value.setDefaultCheckedKey(L)}),ve(()=>e.defaultExpandedKeys,L=>{r.value.setDefaultExpandedKeys(L)}),ve(()=>e.data,L=>{r.value.setData(L)},{deep:!0}),ve(()=>e.checkStrictly,L=>{r.value.checkStrictly=L});const f=L=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");r.value.filter(L)},h=L=>kf(e.nodeKey,L.data),v=L=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const P=r.value.getNode(L);if(!P)return[];const R=[P.data];let J=P.parent;for(;J&&J!==n.value;)R.push(J.data),J=J.parent;return R.reverse()},m=(L,P)=>r.value.getCheckedNodes(L,P),g=L=>r.value.getCheckedKeys(L),_=()=>{const L=r.value.getCurrentNode();return L?L.data:null},w=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const L=_();return L?L[e.nodeKey]:null},b=(L,P)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");r.value.setCheckedNodes(L,P)},x=(L,P)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");r.value.setCheckedKeys(L,P)},k=(L,P,R)=>{r.value.setChecked(L,P,R)},z=()=>r.value.getHalfCheckedNodes(),M=()=>r.value.getHalfCheckedKeys(),E=(L,P=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");s2(r,t.emit,()=>r.value.setUserCurrentNode(L,P))},A=(L,P=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");s2(r,t.emit,()=>r.value.setCurrentNodeKey(L,P))},O=L=>r.value.getNode(L),D=L=>{r.value.remove(L)},I=(L,P)=>{r.value.append(L,P)},N=(L,P)=>{r.value.insertBefore(L,P)},B=(L,P)=>{r.value.insertAfter(L,P)},F=(L,P,R)=>{u(P),t.emit("node-expand",L,P,R)},H=(L,P)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");r.value.updateChildren(L,P)};return st("RootTree",{ctx:t,props:e,store:r,root:n,currentNode:a,instance:Qe()}),st(Bl,void 0),{ns:l,store:r,root:n,currentNode:a,dragState:d,el$:i,dropIndicator$:c,isEmpty:p,filter:f,getNodeKey:h,getNodePath:v,getCheckedNodes:m,getCheckedKeys:g,getCurrentNode:_,getCurrentKey:w,setCheckedNodes:b,setCheckedKeys:x,setChecked:k,getHalfCheckedNodes:z,getHalfCheckedKeys:M,setCurrentNode:E,setCurrentKey:A,t:o,getNode:O,remove:D,append:I,insertBefore:N,insertAfter:B,handleNodeExpand:F,updateKeyChildren:H}}});function S5e(e,t,o,l,r,n){var a;const i=Oe("el-tree-node");return y(),$("div",{ref:"el$",class:T([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(y(!0),$(Pe,null,ut(e.root.childNodes,c=>(y(),ue(i,{key:e.getNodeKey(c),node:c,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(y(),$("div",{key:0,class:T(e.ns.e("empty-block"))},[C("span",{class:T(e.ns.e("empty-text"))},Ce((a=e.emptyText)!=null?a:e.t("el.tree.emptyText")),3)],2)):ae("v-if",!0),Xe(C("div",{ref:"dropIndicator$",class:T(e.ns.e("drop-indicator"))},null,2),[[_t,e.dragState.showDropIndicator]])],2)}var _c=Te($5e,[["render",S5e],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);_c.install=e=>{e.component(_c.name,_c)};const Yc=_c,z5e=Yc,E5e=(e,{attrs:t},{tree:o,key:l})=>{const r=_e("tree-select"),n={...or(Gt(e),Object.keys(Mn.props)),...t,valueKey:l,popperClass:S(()=>{const a=[r.e("popper")];return e.popperClass&&a.push(e.popperClass),a.join(" ")}),filterMethod:(a="")=>{e.filterMethod&&e.filterMethod(a),Ne(()=>{var i;(i=o.value)==null||i.filter(a)})},onVisibleChange:a=>{var i;(i=t.onVisibleChange)==null||i.call(t,a),e.filterable&&a&&n.filterMethod()}};return n},M5e=te({extends:Bc,setup(e,t){const o=Bc.setup(e,t);delete o.selectOptionClick;const l=Qe().proxy;return Ne(()=>{o.select.cachedOptions.get(l.value)||o.select.onOptionCreate(l)}),o},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function u2(e){return e||e===0}function Kb(e){return Array.isArray(e)&&e.length}function zd(e){return Array.isArray(e)?e:u2(e)?[e]:[]}function yc(e,t,o,l,r){for(let n=0;n{ve(()=>e.modelValue,()=>{e.showCheckbox&&Ne(()=>{const d=n.value;d&&!jo(d.getCheckedKeys(),zd(e.modelValue))&&d.setCheckedKeys(zd(e.modelValue))})},{immediate:!0,deep:!0});const i=S(()=>({value:a.value,...e.props})),c=(d,p)=>{var f;const h=i.value[d];return Ye(h)?h(p,(f=n.value)==null?void 0:f.getNode(c("value",p))):p[h]},u=zd(e.modelValue).map(d=>yc(e.data||[],p=>c("value",p)===d,p=>c("children",p),(p,f,h,v)=>v&&c("value",v))).filter(d=>u2(d));return{...or(Gt(e),Object.keys(Yc.props)),...t,nodeKey:a,expandOnClickNode:S(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:S(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(d,{node:p,data:f,store:h})=>d(M5e,{value:c("value",f),label:c("label",f),disabled:c("disabled",f)},e.renderContent?()=>e.renderContent(d,{node:p,data:f,store:h}):o.default?()=>o.default({node:p,data:f,store:h}):void 0),filterNodeMethod:(d,p,f)=>{var h;return e.filterNodeMethod?e.filterNodeMethod(d,p,f):d?(h=c("label",p))==null?void 0:h.includes(d):!0},onNodeClick:(d,p,f)=>{var h,v,m;if((h=t.onNodeClick)==null||h.call(t,d,p,f),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||p.isLeaf)){if(!c("disabled",d)){const g=(v=r.value)==null?void 0:v.options.get(c("value",d));(m=r.value)==null||m.handleOptionSelect(g,!0)}}else e.expandOnClickNode&&f.proxy.handleExpandIconClick()},onCheck:(d,p)=>{var f;(f=t.onCheck)==null||f.call(t,d,p);const h=c("value",d);if(e.checkStrictly)l(nt,e.multiple?p.checkedKeys:p.checkedKeys.includes(h)?h:void 0);else if(e.multiple)l(nt,n.value.getCheckedKeys(!0));else{const v=yc([d],_=>!Kb(c("children",_))&&!c("disabled",_),_=>c("children",_)),m=v?c("value",v):void 0,g=u2(e.modelValue)&&!!yc([d],_=>c("value",_)===e.modelValue,_=>c("children",_));l(nt,m===e.modelValue||g?void 0:m)}}}},A5e=te({name:"ElTreeSelect",inheritAttrs:!1,props:{...Mn.props,...Yc.props},setup(e,t){const{slots:o,expose:l}=t,r=V(),n=V(),a=S(()=>e.nodeKey||e.valueKey||"value"),i=E5e(e,t,{select:r,tree:n,key:a}),c=T5e(e,t,{select:r,tree:n,key:a}),u=wt({});return l(u),Ze(()=>{Object.assign(u,{...or(n.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...or(r.value,["focus","blur"])})}),()=>Fe(Mn,wt({...i,ref:d=>r.value=d}),{...o,default:()=>Fe(Yc,wt({...c,ref:d=>n.value=d}))})}});var wc=Te(A5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);wc.install=e=>{e.component(wc.name,wc)};const V5e=wc,O5e=V5e,Cf=Symbol(),P5e={key:-1,level:-1,data:{}};var ui=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(ui||{}),d2=(e=>(e.ADD="add",e.DELETE="delete",e))(d2||{});const L5e=Ae({data:{type:de(Array),default:()=>Lt([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:de(Object),default:()=>Lt({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:de(Array),default:()=>Lt([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:de(Array),default:()=>Lt([])},indent:{type:Number,default:16},icon:{type:Mt},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:de([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:de(Function)},perfMode:{type:Boolean,default:!0}}),I5e=Ae({node:{type:de(Object),default:()=>Lt(P5e)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1}}),R5e=Ae({node:{type:de(Object),required:!0}}),Wb="node-click",qb="node-expand",Ub="node-collapse",Yb="current-change",Gb="check",Xb="check-change",Jb="node-contextmenu",H5e={[Wb]:(e,t,o)=>e&&t&&o,[qb]:(e,t)=>e&&t,[Ub]:(e,t)=>e&&t,[Yb]:(e,t)=>e&&t,[Gb]:(e,t)=>e&&t,[Xb]:(e,t)=>e&&typeof t=="boolean",[Jb]:(e,t,o)=>e&&t&&o},N5e={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function B5e(e,t){const o=V(new Set),l=V(new Set),{emit:r}=Qe();ve([()=>t.value,()=>e.defaultCheckedKeys],()=>Ne(()=>{w(e.defaultCheckedKeys)}),{immediate:!0});const n=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:b,maxLevel:x}=t.value,k=o.value,z=new Set;for(let M=x-1;M>=1;--M){const E=b.get(M);!E||E.forEach(A=>{const O=A.children;if(O){let D=!0,I=!1;for(const N of O){const B=N.key;if(k.has(B))I=!0;else if(z.has(B)){D=!1,I=!0;break}else D=!1}D?k.add(A.key):I?(z.add(A.key),k.delete(A.key)):(k.delete(A.key),z.delete(A.key))}})}l.value=z},a=b=>o.value.has(b.key),i=b=>l.value.has(b.key),c=(b,x,k=!0)=>{const z=o.value,M=(E,A)=>{z[A?d2.ADD:d2.DELETE](E.key);const O=E.children;!e.checkStrictly&&O&&O.forEach(D=>{D.disabled||M(D,A)})};M(b,x),n(),k&&u(b,x)},u=(b,x)=>{const{checkedNodes:k,checkedKeys:z}=v(),{halfCheckedNodes:M,halfCheckedKeys:E}=m();r(Gb,b.data,{checkedKeys:z,checkedNodes:k,halfCheckedKeys:E,halfCheckedNodes:M}),r(Xb,b.data,x)};function d(b=!1){return v(b).checkedKeys}function p(b=!1){return v(b).checkedNodes}function f(){return m().halfCheckedKeys}function h(){return m().halfCheckedNodes}function v(b=!1){const x=[],k=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:z}=t.value;o.value.forEach(M=>{const E=z.get(M);E&&(!b||b&&E.isLeaf)&&(k.push(M),x.push(E.data))})}return{checkedKeys:k,checkedNodes:x}}function m(){const b=[],x=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:k}=t.value;l.value.forEach(z=>{const M=k.get(z);M&&(x.push(z),b.push(M.data))})}return{halfCheckedNodes:b,halfCheckedKeys:x}}function g(b){o.value.clear(),l.value.clear(),w(b)}function _(b,x){if((t==null?void 0:t.value)&&e.showCheckbox){const k=t.value.treeNodeMap.get(b);k&&c(k,x,!1)}}function w(b){if(t!=null&&t.value){const{treeNodeMap:x}=t.value;if(e.showCheckbox&&x&&b)for(const k of b){const z=x.get(k);z&&!a(z)&&c(z,!0,!1)}}}return{updateCheckedKeys:n,toggleCheckbox:c,isChecked:a,isIndeterminate:i,getCheckedKeys:d,getCheckedNodes:p,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:_,setCheckedKeys:g}}function D5e(e,t){const o=V(new Set([])),l=V(new Set([])),r=S(()=>Ye(e.filterMethod));function n(i){var c;if(!r.value)return;const u=new Set,d=l.value,p=o.value,f=[],h=((c=t.value)==null?void 0:c.treeNodes)||[],v=e.filterMethod;p.clear();function m(g){g.forEach(_=>{f.push(_),v!=null&&v(i,_.data)?f.forEach(b=>{u.add(b.key)}):_.isLeaf&&p.add(_.key);const w=_.children;if(w&&m(w),!_.isLeaf){if(!u.has(_.key))p.add(_.key);else if(w){let b=!0;for(const x of w)if(!p.has(x.key)){b=!1;break}b?d.add(_.key):d.delete(_.key)}}f.pop()})}return m(h),u}function a(i){return l.value.has(i.key)}return{hiddenExpandIconKeySet:l,hiddenNodeKeySet:o,doFilter:n,isForceHiddenExpandIcon:a}}function F5e(e,t){const o=V(new Set(e.defaultExpandedKeys)),l=V(),r=Et();ve(()=>e.currentNodeKey,W=>{l.value=W},{immediate:!0}),ve(()=>e.data,W=>{re(W)},{immediate:!0});const{isIndeterminate:n,isChecked:a,toggleCheckbox:i,getCheckedKeys:c,getCheckedNodes:u,getHalfCheckedKeys:d,getHalfCheckedNodes:p,setChecked:f,setCheckedKeys:h}=B5e(e,r),{doFilter:v,hiddenNodeKeySet:m,isForceHiddenExpandIcon:g}=D5e(e,r),_=S(()=>{var W;return((W=e.props)==null?void 0:W.value)||ui.KEY}),w=S(()=>{var W;return((W=e.props)==null?void 0:W.children)||ui.CHILDREN}),b=S(()=>{var W;return((W=e.props)==null?void 0:W.disabled)||ui.DISABLED}),x=S(()=>{var W;return((W=e.props)==null?void 0:W.label)||ui.LABEL}),k=S(()=>{const W=o.value,ce=m.value,ne=[],xe=r.value&&r.value.treeNodes||[];function U(){const Q=[];for(let fe=xe.length-1;fe>=0;--fe)Q.push(xe[fe]);for(;Q.length;){const fe=Q.pop();if(!!fe&&(ce.has(fe.key)||ne.push(fe),W.has(fe.key))){const we=fe.children;if(we){const $e=we.length;for(let pe=$e-1;pe>=0;--pe)Q.push(we[pe])}}}}return U(),ne}),z=S(()=>k.value.length>0);function M(W){const ce=new Map,ne=new Map;let xe=1;function U(fe,we=1,$e=void 0){var pe;const Se=[];for(const me of fe){const X=O(me),se={level:we,key:X,data:me};se.label=I(me),se.parent=$e;const ze=A(me);se.disabled=D(me),se.isLeaf=!ze||ze.length===0,ze&&ze.length&&(se.children=U(ze,we+1,se)),Se.push(se),ce.set(X,se),ne.has(we)||ne.set(we,[]),(pe=ne.get(we))==null||pe.push(se)}return we>xe&&(xe=we),Se}const Q=U(W);return{treeNodeMap:ce,levelTreeNodeMap:ne,maxLevel:xe,treeNodes:Q}}function E(W){const ce=v(W);ce&&(o.value=ce)}function A(W){return W[w.value]}function O(W){return W?W[_.value]:""}function D(W){return W[b.value]}function I(W){return W[x.value]}function N(W){o.value.has(W.key)?R(W):P(W)}function B(W){o.value=new Set(W)}function F(W,ce){t(Wb,W.data,W,ce),H(W),e.expandOnClickNode&&N(W),e.showCheckbox&&e.checkOnClickNode&&!W.disabled&&i(W,!a(W),!0)}function H(W){G(W)||(l.value=W.key,t(Yb,W.data,W))}function L(W,ce){i(W,ce)}function P(W){const ce=o.value;if(r.value&&e.accordion){const{treeNodeMap:ne}=r.value;ce.forEach(xe=>{const U=ne.get(xe);W&&W.level===(U==null?void 0:U.level)&&ce.delete(xe)})}ce.add(W.key),t(qb,W.data,W)}function R(W){o.value.delete(W.key),t(Ub,W.data,W)}function J(W){return o.value.has(W.key)}function oe(W){return!!W.disabled}function G(W){const ce=l.value;return!!ce&&ce===W.key}function le(){var W,ce;if(!!l.value)return(ce=(W=r.value)==null?void 0:W.treeNodeMap.get(l.value))==null?void 0:ce.data}function he(){return l.value}function j(W){l.value=W}function re(W){Ne(()=>r.value=M(W))}function Y(W){var ce;const ne=ft(W)?O(W):W;return(ce=r.value)==null?void 0:ce.treeNodeMap.get(ne)}return{tree:r,flattenTree:k,isNotEmpty:z,getKey:O,getChildren:A,toggleExpand:N,toggleCheckbox:i,isExpanded:J,isChecked:a,isIndeterminate:n,isDisabled:oe,isCurrent:G,isForceHiddenExpandIcon:g,handleNodeClick:F,handleNodeCheck:L,getCurrentNode:le,getCurrentKey:he,setCurrentKey:j,getCheckedKeys:c,getCheckedNodes:u,getHalfCheckedKeys:d,getHalfCheckedNodes:p,setChecked:f,setCheckedKeys:h,filter:E,setData:re,getNode:Y,expandNode:P,collapseNode:R,setExpandedKeys:B}}var j5e=te({name:"ElTreeNodeContent",props:R5e,setup(e){const t=Re(Cf),o=_e("tree");return()=>{const l=e.node,{data:r}=l;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:l,data:r}):Fe("span",{class:o.be("node","label")},[l==null?void 0:l.label])}}});const K5e=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],W5e=te({name:"ElTreeNode"}),q5e=te({...W5e,props:I5e,emits:N5e,setup(e,{emit:t}){const o=e,l=Re(Cf),r=_e("tree"),n=S(()=>{var p;return(p=l==null?void 0:l.props.indent)!=null?p:16}),a=S(()=>{var p;return(p=l==null?void 0:l.props.icon)!=null?p:mp}),i=p=>{t("click",o.node,p)},c=()=>{t("toggle",o.node)},u=p=>{t("check",o.node,p)},d=p=>{var f,h,v,m;(v=(h=(f=l==null?void 0:l.instance)==null?void 0:f.vnode)==null?void 0:h.props)!=null&&v.onNodeContextmenu&&(p.stopPropagation(),p.preventDefault()),l==null||l.ctx.emit(Jb,p,(m=o.node)==null?void 0:m.data,o.node)};return(p,f)=>{var h,v,m;return y(),$("div",{ref:"node$",class:T([s(r).b("node"),s(r).is("expanded",p.expanded),s(r).is("current",p.current),s(r).is("focusable",!p.disabled),s(r).is("checked",!p.disabled&&p.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":p.expanded,"aria-disabled":p.disabled,"aria-checked":p.checked,"data-key":(h=p.node)==null?void 0:h.key,onClick:Ue(i,["stop"]),onContextmenu:d},[C("div",{class:T(s(r).be("node","content")),style:Be({paddingLeft:`${(p.node.level-1)*s(n)}px`})},[s(a)?(y(),ue(s(De),{key:0,class:T([s(r).is("leaf",!!((v=p.node)!=null&&v.isLeaf)),s(r).is("hidden",p.hiddenExpandIcon),{expanded:!((m=p.node)!=null&&m.isLeaf)&&p.expanded},s(r).be("node","expand-icon")]),onClick:Ue(c,["stop"])},{default:Z(()=>[(y(),ue(pt(s(a))))]),_:1},8,["class","onClick"])):ae("v-if",!0),p.showCheckbox?(y(),ue(s(sl),{key:1,"model-value":p.checked,indeterminate:p.indeterminate,disabled:p.disabled,onChange:u,onClick:f[0]||(f[0]=Ue(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):ae("v-if",!0),K(s(j5e),{node:p.node},null,8,["node"])],6)],42,K5e)}}});var U5e=Te(q5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const Y5e=26,G5e=te({name:"ElTreeV2"}),X5e=te({...G5e,props:L5e,emits:H5e,setup(e,{expose:t,emit:o}){const l=e,r=ao();st(Cf,{ctx:{emit:o,slots:r},props:l,instance:Qe()}),st(Bl,void 0);const{t:n}=yt(),a=_e("tree"),{flattenTree:i,isNotEmpty:c,toggleExpand:u,isExpanded:d,isIndeterminate:p,isChecked:f,isDisabled:h,isCurrent:v,isForceHiddenExpandIcon:m,handleNodeClick:g,handleNodeCheck:_,toggleCheckbox:w,getCurrentNode:b,getCurrentKey:x,setCurrentKey:k,getCheckedKeys:z,getCheckedNodes:M,getHalfCheckedKeys:E,getHalfCheckedNodes:A,setChecked:O,setCheckedKeys:D,filter:I,setData:N,getNode:B,expandNode:F,collapseNode:H,setExpandedKeys:L}=F5e(l,o);return t({toggleCheckbox:w,getCurrentNode:b,getCurrentKey:x,setCurrentKey:k,getCheckedKeys:z,getCheckedNodes:M,getHalfCheckedKeys:E,getHalfCheckedNodes:A,setChecked:O,setCheckedKeys:D,filter:I,setData:N,getNode:B,expandNode:F,collapseNode:H,setExpandedKeys:L}),(P,R)=>{var J;return y(),$("div",{class:T([s(a).b(),{[s(a).m("highlight-current")]:P.highlightCurrent}]),role:"tree"},[s(c)?(y(),ue(s(ab),{key:0,"class-name":s(a).b("virtual-list"),data:s(i),total:s(i).length,height:P.height,"item-size":Y5e,"perf-mode":P.perfMode},{default:Z(({data:oe,index:G,style:le})=>[(y(),ue(U5e,{key:oe[G].key,style:Be(le),node:oe[G],expanded:s(d)(oe[G]),"show-checkbox":P.showCheckbox,checked:s(f)(oe[G]),indeterminate:s(p)(oe[G]),disabled:s(h)(oe[G]),current:s(v)(oe[G]),"hidden-expand-icon":s(m)(oe[G]),onClick:s(g),onToggle:s(u),onCheck:s(_)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","perf-mode"])):(y(),$("div",{key:1,class:T(s(a).e("empty-block"))},[C("span",{class:T(s(a).e("empty-text"))},Ce((J=P.emptyText)!=null?J:s(n)("el.tree.emptyText")),3)],2))],2)}}});var J5e=Te(X5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const Z5e=at(J5e),Q5e="ElUpload";class e9e extends Error{constructor(t,o,l,r){super(t),this.name="UploadAjaxError",this.status=o,this.method=l,this.url=r}}function X3(e,t,o){let l;return o.response?l=`${o.response.error||o.response}`:o.responseText?l=`${o.responseText}`:l=`fail to ${t.method} ${e} ${o.status}`,new e9e(l,o.status,t.method,e)}function t9e(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const o9e=e=>{typeof XMLHttpRequest>"u"&&Zt(Q5e,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,o=e.action;t.upload&&t.upload.addEventListener("progress",n=>{const a=n;a.percent=n.total>0?n.loaded/n.total*100:0,e.onProgress(a)});const l=new FormData;if(e.data)for(const[n,a]of Object.entries(e.data))Array.isArray(a)?l.append(n,...a):l.append(n,a);l.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(X3(o,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(X3(o,e,t));e.onSuccess(t9e(t))}),t.open(e.method,o,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const r=e.headers||{};if(r instanceof Headers)r.forEach((n,a)=>t.setRequestHeader(a,n));else for(const[n,a]of Object.entries(r))ro(a)||t.setRequestHeader(n,String(a));return t.send(l),t},Zb=["text","picture","picture-card"];let l9e=1;const p2=()=>Date.now()+l9e++,Qb=Ae({action:{type:String,default:"#"},headers:{type:de(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>Lt({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:de(Array),default:()=>Lt([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:Zb,default:"text"},httpRequest:{type:de(Function),default:o9e},disabled:Boolean,limit:Number}),r9e=Ae({...Qb,beforeUpload:{type:de(Function),default:$t},beforeRemove:{type:de(Function)},onRemove:{type:de(Function),default:$t},onChange:{type:de(Function),default:$t},onPreview:{type:de(Function),default:$t},onSuccess:{type:de(Function),default:$t},onProgress:{type:de(Function),default:$t},onError:{type:de(Function),default:$t},onExceed:{type:de(Function),default:$t}}),n9e=Ae({files:{type:de(Array),default:()=>Lt([])},disabled:{type:Boolean,default:!1},handlePreview:{type:de(Function),default:$t},listType:{type:String,values:Zb,default:"text"}}),a9e={remove:e=>!!e},i9e=["onKeydown"],s9e=["src"],c9e=["onClick"],u9e=["onClick"],d9e=["onClick"],p9e=te({name:"ElUploadList"}),f9e=te({...p9e,props:n9e,emits:a9e,setup(e,{emit:t}){const{t:o}=yt(),l=_e("upload"),r=_e("icon"),n=_e("list"),a=V(!1),i=c=>{t("remove",c)};return(c,u)=>(y(),ue(G2,{tag:"ul",class:T([s(l).b("list"),s(l).bm("list",c.listType),s(l).is("disabled",c.disabled)]),name:s(n).b()},{default:Z(()=>[(y(!0),$(Pe,null,ut(c.files,d=>(y(),$("li",{key:d.uid||d.name,class:T([s(l).be("list","item"),s(l).is(d.status),{focusing:a.value}]),tabindex:"0",onKeydown:bt(p=>!c.disabled&&i(d),["delete"]),onFocus:u[0]||(u[0]=p=>a.value=!0),onBlur:u[1]||(u[1]=p=>a.value=!1),onClick:u[2]||(u[2]=p=>a.value=!1)},[ge(c.$slots,"default",{file:d},()=>[c.listType==="picture"||d.status!=="uploading"&&c.listType==="picture-card"?(y(),$("img",{key:0,class:T(s(l).be("list","item-thumbnail")),src:d.url,alt:""},null,10,s9e)):ae("v-if",!0),d.status==="uploading"||c.listType!=="picture-card"?(y(),$("div",{key:1,class:T(s(l).be("list","item-info"))},[C("a",{class:T(s(l).be("list","item-name")),onClick:Ue(p=>c.handlePreview(d),["prevent"])},[K(s(De),{class:T(s(r).m("document"))},{default:Z(()=>[K(s(X4))]),_:1},8,["class"]),C("span",{class:T(s(l).be("list","item-file-name"))},Ce(d.name),3)],10,c9e),d.status==="uploading"?(y(),ue(s(J8),{key:0,type:c.listType==="picture-card"?"circle":"line","stroke-width":c.listType==="picture-card"?6:2,percentage:Number(d.percentage),style:Be(c.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ae("v-if",!0)],2)):ae("v-if",!0),C("label",{class:T(s(l).be("list","item-status-label"))},[c.listType==="text"?(y(),ue(s(De),{key:0,class:T([s(r).m("upload-success"),s(r).m("circle-check")])},{default:Z(()=>[K(s(_u))]),_:1},8,["class"])):["picture-card","picture"].includes(c.listType)?(y(),ue(s(De),{key:1,class:T([s(r).m("upload-success"),s(r).m("check")])},{default:Z(()=>[K(s(Fa))]),_:1},8,["class"])):ae("v-if",!0)],2),c.disabled?ae("v-if",!0):(y(),ue(s(De),{key:2,class:T(s(r).m("close")),onClick:p=>i(d)},{default:Z(()=>[K(s(nl))]),_:2},1032,["class","onClick"])),ae(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ae(" This is a bug which needs to be fixed "),ae(" TODO: Fix the incorrect navigation interaction "),c.disabled?ae("v-if",!0):(y(),$("i",{key:3,class:T(s(r).m("close-tip"))},Ce(s(o)("el.upload.deleteTip")),3)),c.listType==="picture-card"?(y(),$("span",{key:4,class:T(s(l).be("list","item-actions"))},[C("span",{class:T(s(l).be("list","item-preview")),onClick:p=>c.handlePreview(d)},[K(s(De),{class:T(s(r).m("zoom-in"))},{default:Z(()=>[K(s(yp))]),_:1},8,["class"])],10,u9e),c.disabled?ae("v-if",!0):(y(),$("span",{key:0,class:T(s(l).be("list","item-delete")),onClick:p=>i(d)},[K(s(De),{class:T(s(r).m("delete"))},{default:Z(()=>[K(s(G4))]),_:1},8,["class"])],10,d9e))],2)):ae("v-if",!0)])],42,i9e))),128)),ge(c.$slots,"append")]),_:3},8,["class","name"]))}});var J3=Te(f9e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const h9e=Ae({disabled:{type:Boolean,default:!1}}),v9e={file:e=>Ie(e)},m9e=["onDrop","onDragover"],e_="ElUploadDrag",g9e=te({name:e_}),b9e=te({...g9e,props:h9e,emits:v9e,setup(e,{emit:t}){const o=e,l=Re(zm);l||Zt(e_,"usage: ");const r=_e("upload"),n=V(!1),a=c=>{if(o.disabled)return;n.value=!1;const u=Array.from(c.dataTransfer.files),d=l.accept.value;if(!d){t("file",u);return}const p=u.filter(f=>{const{type:h,name:v}=f,m=v.includes(".")?`.${v.split(".").pop()}`:"",g=h.replace(/\/.*$/,"");return d.split(",").map(_=>_.trim()).filter(_=>_).some(_=>_.startsWith(".")?m===_:/\/\*$/.test(_)?g===_.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(_)?h===_:!1)});t("file",p)},i=()=>{o.disabled||(n.value=!0)};return(c,u)=>(y(),$("div",{class:T([s(r).b("dragger"),s(r).is("dragover",n.value)]),onDrop:Ue(a,["prevent"]),onDragover:Ue(i,["prevent"]),onDragleave:u[0]||(u[0]=Ue(d=>n.value=!1,["prevent"]))},[ge(c.$slots,"default")],42,m9e))}});var _9e=Te(b9e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const y9e=Ae({...Qb,beforeUpload:{type:de(Function),default:$t},onRemove:{type:de(Function),default:$t},onStart:{type:de(Function),default:$t},onSuccess:{type:de(Function),default:$t},onProgress:{type:de(Function),default:$t},onError:{type:de(Function),default:$t},onExceed:{type:de(Function),default:$t}}),w9e=["onKeydown"],x9e=["name","multiple","accept"],k9e=te({name:"ElUploadContent",inheritAttrs:!1}),C9e=te({...k9e,props:y9e,setup(e,{expose:t}){const o=e,l=_e("upload"),r=Et({}),n=Et(),a=h=>{if(h.length===0)return;const{autoUpload:v,limit:m,fileList:g,multiple:_,onStart:w,onExceed:b}=o;if(m&&g.length+h.length>m){b(h,g);return}_||(h=h.slice(0,1));for(const x of h){const k=x;k.uid=p2(),w(k),v&&i(k)}},i=async h=>{if(n.value.value="",!o.beforeUpload)return c(h);let v;try{v=await o.beforeUpload(h)}catch{v=!1}if(v===!1){o.onRemove(h);return}let m=h;v instanceof Blob&&(v instanceof File?m=v:m=new File([v],h.name,{type:h.type})),c(Object.assign(m,{uid:h.uid}))},c=h=>{const{headers:v,data:m,method:g,withCredentials:_,name:w,action:b,onProgress:x,onSuccess:k,onError:z,httpRequest:M}=o,{uid:E}=h,A={headers:v||{},withCredentials:_,file:h,data:m,method:g,filename:w,action:b,onProgress:D=>{x(D,h)},onSuccess:D=>{k(D,h),delete r.value[E]},onError:D=>{z(D,h),delete r.value[E]}},O=M(A);r.value[E]=O,O instanceof Promise&&O.then(A.onSuccess,A.onError)},u=h=>{const v=h.target.files;!v||a(Array.from(v))},d=()=>{o.disabled||(n.value.value="",n.value.click())},p=()=>{d()};return t({abort:h=>{Z$(r.value).filter(h?([m])=>String(h.uid)===m:()=>!0).forEach(([m,g])=>{g instanceof XMLHttpRequest&&g.abort(),delete r.value[m]})},upload:i}),(h,v)=>(y(),$("div",{class:T([s(l).b(),s(l).m(h.listType),s(l).is("drag",h.drag)]),tabindex:"0",onClick:d,onKeydown:bt(Ue(p,["self"]),["enter","space"])},[h.drag?(y(),ue(_9e,{key:0,disabled:h.disabled,onFile:a},{default:Z(()=>[ge(h.$slots,"default")]),_:3},8,["disabled"])):ge(h.$slots,"default",{key:1}),C("input",{ref_key:"inputRef",ref:n,class:T(s(l).e("input")),name:h.name,multiple:h.multiple,accept:h.accept,type:"file",onChange:u,onClick:v[0]||(v[0]=Ue(()=>{},["stop"]))},null,42,x9e)],42,w9e))}});var Z3=Te(C9e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const Q3="ElUpload",$9e=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},S9e=(e,t)=>{const o=W$(e,"fileList",void 0,{passive:!0}),l=f=>o.value.find(h=>h.uid===f.uid);function r(f){var h;(h=t.value)==null||h.abort(f)}function n(f=["ready","uploading","success","fail"]){o.value=o.value.filter(h=>!f.includes(h.status))}const a=(f,h)=>{const v=l(h);!v||(console.error(f),v.status="fail",o.value.splice(o.value.indexOf(v),1),e.onError(f,v,o.value),e.onChange(v,o.value))},i=(f,h)=>{const v=l(h);!v||(e.onProgress(f,v,o.value),v.status="uploading",v.percentage=Math.round(f.percent))},c=(f,h)=>{const v=l(h);!v||(v.status="success",v.response=f,e.onSuccess(f,v,o.value),e.onChange(v,o.value))},u=f=>{ro(f.uid)&&(f.uid=p2());const h={name:f.name,percentage:0,status:"ready",size:f.size,raw:f,uid:f.uid};if(e.listType==="picture-card"||e.listType==="picture")try{h.url=URL.createObjectURL(f)}catch(v){v.message,e.onError(v,h,o.value)}o.value=[...o.value,h],e.onChange(h,o.value)},d=async f=>{const h=f instanceof File?l(f):f;h||Zt(Q3,"file to be removed not found");const v=m=>{r(m);const g=o.value;g.splice(g.indexOf(m),1),e.onRemove(m,g),$9e(m)};e.beforeRemove?await e.beforeRemove(h,o.value)!==!1&&v(h):v(h)};function p(){o.value.filter(({status:f})=>f==="ready").forEach(({raw:f})=>{var h;return f&&((h=t.value)==null?void 0:h.upload(f))})}return ve(()=>e.listType,f=>{f!=="picture-card"&&f!=="picture"||(o.value=o.value.map(h=>{const{raw:v,url:m}=h;if(!m&&v)try{h.url=URL.createObjectURL(v)}catch(g){e.onError(g,h,o.value)}return h}))}),ve(o,f=>{for(const h of f)h.uid||(h.uid=p2()),h.status||(h.status="success")},{immediate:!0,deep:!0}),{uploadFiles:o,abort:r,clearFiles:n,handleError:a,handleProgress:i,handleStart:u,handleSuccess:c,handleRemove:d,submit:p}},z9e=te({name:"ElUpload"}),E9e=te({...z9e,props:r9e,setup(e,{expose:t}){const o=e,l=ao(),r=zl(),n=Et(),{abort:a,submit:i,clearFiles:c,uploadFiles:u,handleStart:d,handleError:p,handleRemove:f,handleSuccess:h,handleProgress:v}=S9e(o,n),m=S(()=>o.listType==="picture-card"),g=S(()=>({...o,fileList:u.value,onStart:d,onProgress:v,onSuccess:h,onError:p,onRemove:f}));return It(()=>{u.value.forEach(({url:_})=>{_!=null&&_.startsWith("blob:")&&URL.revokeObjectURL(_)})}),st(zm,{accept:Rt(o,"accept")}),t({abort:a,submit:i,clearFiles:c,handleStart:d,handleRemove:f}),(_,w)=>(y(),$("div",null,[s(m)&&_.showFileList?(y(),ue(J3,{key:0,disabled:s(r),"list-type":_.listType,files:s(u),"handle-preview":_.onPreview,onRemove:s(f)},Br({append:Z(()=>[K(Z3,ht({ref_key:"uploadRef",ref:n},s(g)),{default:Z(()=>[s(l).trigger?ge(_.$slots,"trigger",{key:0}):ae("v-if",!0),!s(l).trigger&&s(l).default?ge(_.$slots,"default",{key:1}):ae("v-if",!0)]),_:3},16)]),_:2},[_.$slots.file?{name:"default",fn:Z(({file:b})=>[ge(_.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ae("v-if",!0),!s(m)||s(m)&&!_.showFileList?(y(),ue(Z3,ht({key:1,ref_key:"uploadRef",ref:n},s(g)),{default:Z(()=>[s(l).trigger?ge(_.$slots,"trigger",{key:0}):ae("v-if",!0),!s(l).trigger&&s(l).default?ge(_.$slots,"default",{key:1}):ae("v-if",!0)]),_:3},16)):ae("v-if",!0),_.$slots.trigger?ge(_.$slots,"default",{key:2}):ae("v-if",!0),ge(_.$slots,"tip"),!s(m)&&_.showFileList?(y(),ue(J3,{key:3,disabled:s(r),"list-type":_.listType,files:s(u),"handle-preview":_.onPreview,onRemove:s(f)},Br({_:2},[_.$slots.file?{name:"default",fn:Z(({file:b})=>[ge(_.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ae("v-if",!0)]))}});var M9e=Te(E9e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const T9e=at(M9e);var A9e=[kie,Pie,uue,Zbe,gue,Cue,yg,Rue,Hue,po,$g,t0e,a0e,y0e,w0e,P2e,w2e,B2e,sl,D0e,Qg,W2e,upe,dpe,tpe,Ipe,Npe,Jpe,Zpe,Qpe,efe,tfe,s1e,b1e,_1e,O1e,T8,U1e,Hhe,Nhe,Bhe,N8,dve,pve,De,Sve,F8,mo,j8,Bve,a6e,i6e,s6e,v6e,g4e,x4e,A4e,gg,J8,n8,l2e,o2e,Y4e,Q4e,ame,_r,Mn,Bc,K6e,Xme,rge,nge,Lge,Bge,Gge,Xge,i8e,fbe,hbe,Jbe,f_e,h_e,Pu,Pde,y_e,$_e,S_e,Ro,Z_e,f5e,z5e,O5e,Z5e,T9e];const fl="ElInfiniteScroll",V9e=50,O9e=200,P9e=0,L9e={delay:{type:Number,default:O9e},distance:{type:Number,default:P9e},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},$f=(e,t)=>Object.entries(L9e).reduce((o,[l,r])=>{var n,a;const{type:i,default:c}=r,u=e.getAttribute(`infinite-scroll-${l}`);let d=(a=(n=t[u])!=null?n:u)!=null?a:c;return d=d==="false"?!1:d,d=i(d),o[l]=Number.isNaN(d)?c:d,o},{}),t_=e=>{const{observer:t}=e[fl];t&&(t.disconnect(),delete e[fl].observer)},I9e=(e,t)=>{const{container:o,containerEl:l,instance:r,observer:n,lastScrollTop:a}=e[fl],{disabled:i,distance:c}=$f(e,r),{clientHeight:u,scrollHeight:d,scrollTop:p}=l,f=p-a;if(e[fl].lastScrollTop=p,n||i||f<0)return;let h=!1;if(o===e)h=d-(u+p)<=c;else{const{clientTop:v,scrollHeight:m}=e,g=Y$(e,l);h=p+u>=g+v+m-c}h&&t.call(r)};function Ed(e,t){const{containerEl:o,instance:l}=e[fl],{disabled:r}=$f(e,l);r||o.clientHeight===0||(o.scrollHeight<=o.clientHeight?t.call(l):t_(e))}const R9e={async mounted(e,t){const{instance:o,value:l}=t;Ye(l)||Zt(fl,"'v-infinite-scroll' binding value must be a function"),await Ne();const{delay:r,immediate:n}=$f(e,o),a=vp(e,!0),i=a===window?document.documentElement:a,c=bn(I9e.bind(null,e,l),r);if(!!a){if(e[fl]={instance:o,container:a,containerEl:i,delay:r,cb:l,onScroll:c,lastScrollTop:i.scrollTop},n){const u=new MutationObserver(bn(Ed.bind(null,e,l),V9e));e[fl].observer=u,u.observe(e,{childList:!0,subtree:!0}),Ed(e,l)}a.addEventListener("scroll",c)}},unmounted(e){const{container:t,onScroll:o}=e[fl];t==null||t.removeEventListener("scroll",o),t_(e)},async updated(e){e[fl]||await Ne();const{containerEl:t,cb:o,observer:l}=e[fl];t.clientHeight&&l&&Ed(e,o)}},f2=R9e;f2.install=e=>{e.directive("InfiniteScroll",f2)};const H9e=f2;function N9e(e){let t;const o=_e("loading"),l=V(!1),r=wt({...e,originalPosition:"",originalOverflow:"",visible:!1});function n(h){r.text=h}function a(){const h=r.parent;if(!h.vLoadingAddClassList){let v=h.getAttribute("loading-number");v=Number.parseInt(v)-1,v?h.setAttribute("loading-number",v.toString()):(Vo(h,o.bm("parent","relative")),h.removeAttribute("loading-number")),Vo(h,o.bm("parent","hidden"))}i(),p.unmount()}function i(){var h,v;(v=(h=f.$el)==null?void 0:h.parentNode)==null||v.removeChild(f.$el)}function c(){var h;e.beforeClose&&!e.beforeClose()||(l.value=!0,clearTimeout(t),t=window.setTimeout(u,400),r.visible=!1,(h=e.closed)==null||h.call(e))}function u(){if(!l.value)return;const h=r.parent;l.value=!1,h.vLoadingAddClassList=void 0,a()}const p=n4({name:"ElLoading",setup(){return()=>{const h=r.spinner||r.svg,v=Fe("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...h?{innerHTML:h}:{}},[Fe("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),m=r.text?Fe("p",{class:o.b("text")},[r.text]):void 0;return Fe(Kt,{name:o.b("fade"),onAfterLeave:u},{default:Z(()=>[Xe(K("div",{style:{backgroundColor:r.background||""},class:[o.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[Fe("div",{class:o.b("spinner")},[v,m])]),[[_t,r.visible]])])})}}}),f=p.mount(document.createElement("div"));return{...Gt(r),setText:n,removeElLoadingChild:i,close:c,handleAfterLeave:u,vm:f,get $el(){return f.$el}}}let Us;const h2=function(e={}){if(!gt)return;const t=B9e(e);if(t.fullscreen&&Us)return Us;const o=N9e({...t,closed:()=>{var r;(r=t.closed)==null||r.call(t),t.fullscreen&&(Us=void 0)}});D9e(t,t.parent,o),ev(t,t.parent,o),t.parent.vLoadingAddClassList=()=>ev(t,t.parent,o);let l=t.parent.getAttribute("loading-number");return l?l=`${Number.parseInt(l)+1}`:l="1",t.parent.setAttribute("loading-number",l),t.parent.appendChild(o.$el),Ne(()=>o.visible.value=t.visible),t.fullscreen&&(Us=o),o},B9e=e=>{var t,o,l,r;let n;return Ge(e.target)?n=(t=document.querySelector(e.target))!=null?t:document.body:n=e.target||document.body,{parent:n===document.body||e.body?document.body:n,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:n===document.body&&((o=e.fullscreen)!=null?o:!0),lock:(l=e.lock)!=null?l:!1,customClass:e.customClass||"",visible:(r=e.visible)!=null?r:!0,target:n}},D9e=async(e,t,o)=>{const{nextZIndex:l}=gr(),r={};if(e.fullscreen)o.originalPosition.value=Ql(document.body,"position"),o.originalOverflow.value=Ql(document.body,"overflow"),r.zIndex=l();else if(e.parent===document.body){o.originalPosition.value=Ql(document.body,"position"),await Ne();for(const n of["top","left"]){const a=n==="top"?"scrollTop":"scrollLeft";r[n]=`${e.target.getBoundingClientRect()[n]+document.body[a]+document.documentElement[a]-Number.parseInt(Ql(document.body,`margin-${n}`),10)}px`}for(const n of["height","width"])r[n]=`${e.target.getBoundingClientRect()[n]}px`}else o.originalPosition.value=Ql(t,"position");for(const[n,a]of Object.entries(r))o.$el.style[n]=a},ev=(e,t,o)=>{const l=_e("loading");["absolute","fixed","sticky"].includes(o.originalPosition.value)?Vo(t,l.bm("parent","relative")):Ol(t,l.bm("parent","relative")),e.fullscreen&&e.lock?Ol(t,l.bm("parent","hidden")):Vo(t,l.bm("parent","hidden"))},v2=Symbol("ElLoading"),tv=(e,t)=>{var o,l,r,n;const a=t.instance,i=f=>ft(t.value)?t.value[f]:void 0,c=f=>{const h=Ge(f)&&(a==null?void 0:a[f])||f;return h&&V(h)},u=f=>c(i(f)||e.getAttribute(`element-loading-${qr(f)}`)),d=(o=i("fullscreen"))!=null?o:t.modifiers.fullscreen,p={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:d,target:(l=i("target"))!=null?l:d?void 0:e,body:(r=i("body"))!=null?r:t.modifiers.body,lock:(n=i("lock"))!=null?n:t.modifiers.lock};e[v2]={options:p,instance:h2(p)}},F9e=(e,t)=>{for(const o of Object.keys(t))xt(t[o])&&(t[o].value=e[o])},ov={mounted(e,t){t.value&&tv(e,t)},updated(e,t){const o=e[v2];t.oldValue!==t.value&&(t.value&&!t.oldValue?tv(e,t):t.value&&t.oldValue?ft(t.value)&&F9e(t.value,o.options):o==null||o.instance.close())},unmounted(e){var t;(t=e[v2])==null||t.instance.close()}},Sf={install(e){e.directive("loading",ov),e.config.globalProperties.$loading=h2},directive:ov,service:h2},o_=["success","info","warning","error"],To=Lt({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:gt?document.body:void 0}),j9e=Ae({customClass:{type:String,default:To.customClass},center:{type:Boolean,default:To.center},dangerouslyUseHTMLString:{type:Boolean,default:To.dangerouslyUseHTMLString},duration:{type:Number,default:To.duration},icon:{type:Mt,default:To.icon},id:{type:String,default:To.id},message:{type:de([String,Object,Function]),default:To.message},onClose:{type:de(Function),required:!1},showClose:{type:Boolean,default:To.showClose},type:{type:String,values:o_,default:To.type},offset:{type:Number,default:To.offset},zIndex:{type:Number,default:To.zIndex},grouping:{type:Boolean,default:To.grouping},repeatNum:{type:Number,default:To.repeatNum}}),K9e={destroy:()=>!0},Ll=h6([]),W9e=e=>{const t=Ll.findIndex(r=>r.id===e),o=Ll[t];let l;return t>0&&(l=Ll[t-1]),{current:o,prev:l}},q9e=e=>{const{prev:t}=W9e(e);return t?t.vm.exposed.bottom.value:0},U9e=["id"],Y9e=["innerHTML"],G9e=te({name:"ElMessage"}),X9e=te({...G9e,props:j9e,emits:K9e,setup(e,{expose:t}){const o=e,{Close:l}=wp,r=_e("message"),n=V(),a=V(!1),i=V(0);let c;const u=S(()=>o.type?o.type==="error"?"danger":o.type:"info"),d=S(()=>{const x=o.type;return{[r.bm("icon",x)]:x&&Fr[x]}}),p=S(()=>o.icon||Fr[o.type]||""),f=S(()=>q9e(o.id)),h=S(()=>o.offset+f.value),v=S(()=>i.value+h.value),m=S(()=>({top:`${h.value}px`,zIndex:o.zIndex}));function g(){o.duration!==0&&({stop:c}=Sn(()=>{w()},o.duration))}function _(){c==null||c()}function w(){a.value=!1}function b({code:x}){x===je.esc&&w()}return Ze(()=>{g(),a.value=!0}),ve(()=>o.repeatNum,()=>{_(),g()}),At(document,"keydown",b),bo(n,()=>{i.value=n.value.getBoundingClientRect().height}),t({visible:a,bottom:v,close:w}),(x,k)=>(y(),ue(Kt,{name:s(r).b("fade"),onBeforeLeave:x.onClose,onAfterLeave:k[0]||(k[0]=z=>x.$emit("destroy")),persisted:""},{default:Z(()=>[Xe(C("div",{id:x.id,ref_key:"messageRef",ref:n,class:T([s(r).b(),{[s(r).m(x.type)]:x.type&&!x.icon},s(r).is("center",x.center),s(r).is("closable",x.showClose),x.customClass]),style:Be(s(m)),role:"alert",onMouseenter:_,onMouseleave:g},[x.repeatNum>1?(y(),ue(s(yg),{key:0,value:x.repeatNum,type:s(u),class:T(s(r).e("badge"))},null,8,["value","type","class"])):ae("v-if",!0),s(p)?(y(),ue(s(De),{key:1,class:T([s(r).e("icon"),s(d)])},{default:Z(()=>[(y(),ue(pt(s(p))))]),_:1},8,["class"])):ae("v-if",!0),ge(x.$slots,"default",{},()=>[x.dangerouslyUseHTMLString?(y(),$(Pe,{key:1},[ae(" Caution here, message could've been compromised, never use user's input as message "),C("p",{class:T(s(r).e("content")),innerHTML:x.message},null,10,Y9e)],2112)):(y(),$("p",{key:0,class:T(s(r).e("content"))},Ce(x.message),3))]),x.showClose?(y(),ue(s(De),{key:2,class:T(s(r).e("closeBtn")),onClick:Ue(w,["stop"])},{default:Z(()=>[K(s(l))]),_:1},8,["class","onClick"])):ae("v-if",!0)],46,U9e),[[_t,a.value]])]),_:3},8,["name","onBeforeLeave"]))}});var J9e=Te(X9e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Z9e=1;const l_=e=>{const t=!e||Ge(e)||Vt(e)||Ye(e)?{message:e}:e,o={...To,...t};if(!o.appendTo)o.appendTo=document.body;else if(Ge(o.appendTo)){let l=document.querySelector(o.appendTo);yl(l)||(l=document.body),o.appendTo=l}return o},Q9e=e=>{const t=Ll.indexOf(e);if(t===-1)return;Ll.splice(t,1);const{handler:o}=e;o.close()},e7e=({appendTo:e,...t},o)=>{const{nextZIndex:l}=gr(),r=`message_${Z9e++}`,n=t.onClose,a=document.createElement("div"),i={...t,zIndex:l()+t.zIndex,id:r,onClose:()=>{n==null||n(),Q9e(p)},onDestroy:()=>{ga(null,a)}},c=K(J9e,i,Ye(i.message)||Vt(i.message)?{default:Ye(i.message)?i.message:()=>i.message}:null);c.appContext=o||Ma._context,ga(c,a),e.appendChild(a.firstElementChild);const u=c.component,p={id:r,vnode:c,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:c.component.props};return p},Ma=(e={},t)=>{if(!gt)return{close:()=>{}};if(et(N0.max)&&Ll.length>=N0.max)return{close:()=>{}};const o=l_(e);if(o.grouping&&Ll.length){const r=Ll.find(({vnode:n})=>{var a;return((a=n.props)==null?void 0:a.message)===o.message});if(r)return r.props.repeatNum+=1,r.props.type=o.type,r.handler}const l=e7e(o,t);return Ll.push(l),l.handler};o_.forEach(e=>{Ma[e]=(t={},o)=>{const l=l_(t);return Ma({...l,type:e},o)}});function t7e(e){for(const t of Ll)(!e||e===t.props.type)&&t.handler.close()}Ma.closeAll=t7e;Ma._context=null;const gl=vm(Ma,"$message"),o7e=te({name:"ElMessageBox",directives:{TrapFocus:mde},components:{ElButton:po,ElFocusTrap:Ou,ElInput:mo,ElOverlay:Zp,ElIcon:De,...wp},inheritAttrs:!1,props:{buttonSize:{type:String,validator:ja},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:o}=yt(),l=_e("message-box"),r=V(!1),{nextZIndex:n}=gr(),a=wt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:n()}),i=S(()=>{const N=a.type;return{[l.bm("icon",N)]:N&&Fr[N]}}),c=wl(),u=wl(),d=Xt(S(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),p=S(()=>a.icon||Fr[a.type]||""),f=S(()=>!!a.message),h=V(),v=V(),m=V(),g=V(),_=V(),w=S(()=>a.confirmButtonClass);ve(()=>a.inputValue,async N=>{await Ne(),e.boxType==="prompt"&&N!==null&&A()},{immediate:!0}),ve(()=>r.value,N=>{var B,F;N&&(e.boxType!=="prompt"&&(a.autofocus?m.value=(F=(B=_.value)==null?void 0:B.$el)!=null?F:h.value:m.value=h.value),a.zIndex=n()),e.boxType==="prompt"&&(N?Ne().then(()=>{var H;g.value&&g.value.$el&&(a.autofocus?m.value=(H=O())!=null?H:h.value:m.value=h.value)}):(a.editorErrorMessage="",a.validateError=!1))});const b=S(()=>e.draggable);Vm(h,v,b),Ze(async()=>{await Ne(),e.closeOnHashChange&&window.addEventListener("hashchange",x)}),It(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",x)});function x(){!r.value||(r.value=!1,Ne(()=>{a.action&&t("action",a.action)}))}const k=()=>{e.closeOnClickModal&&E(a.distinguishCancelAndClose?"close":"cancel")},z=Ep(k),M=N=>{if(a.inputType!=="textarea")return N.preventDefault(),E("confirm")},E=N=>{var B;e.boxType==="prompt"&&N==="confirm"&&!A()||(a.action=N,a.beforeClose?(B=a.beforeClose)==null||B.call(a,N,a,x):x())},A=()=>{if(e.boxType==="prompt"){const N=a.inputPattern;if(N&&!N.test(a.inputValue||""))return a.editorErrorMessage=a.inputErrorMessage||o("el.messagebox.error"),a.validateError=!0,!1;const B=a.inputValidator;if(typeof B=="function"){const F=B(a.inputValue);if(F===!1)return a.editorErrorMessage=a.inputErrorMessage||o("el.messagebox.error"),a.validateError=!0,!1;if(typeof F=="string")return a.editorErrorMessage=F,a.validateError=!0,!1}}return a.editorErrorMessage="",a.validateError=!1,!0},O=()=>{const N=g.value.$refs;return N.input||N.textarea},D=()=>{E("close")},I=()=>{e.closeOnPressEscape&&D()};return e.lockScroll&&Om(r),gae(r),{...Gt(a),ns:l,overlayEvent:z,visible:r,hasMessage:f,typeClass:i,contentId:c,inputId:u,btnSize:d,iconComponent:p,confirmButtonClasses:w,rootRef:h,focusStartRef:m,headerRef:v,inputRef:g,confirmRef:_,doClose:x,handleClose:D,onCloseRequested:I,handleWrapperClick:k,handleInputEnter:M,handleAction:E,t:o}}}),l7e=["aria-label","aria-describedby"],r7e=["aria-label"],n7e=["id"];function a7e(e,t,o,l,r,n){const a=Oe("el-icon"),i=Oe("close"),c=Oe("el-input"),u=Oe("el-button"),d=Oe("el-focus-trap"),p=Oe("el-overlay");return y(),ue(Kt,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:Z(()=>[Xe(K(p,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:Z(()=>[C("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:T(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[K(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Z(()=>[C("div",{ref:"rootRef",class:T([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Be(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Ue(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(y(),$("div",{key:0,ref:"headerRef",class:T(e.ns.e("header"))},[C("div",{class:T(e.ns.e("title"))},[e.iconComponent&&e.center?(y(),ue(a,{key:0,class:T([e.ns.e("status"),e.typeClass])},{default:Z(()=>[(y(),ue(pt(e.iconComponent)))]),_:1},8,["class"])):ae("v-if",!0),C("span",null,Ce(e.title),1)],2),e.showClose?(y(),$("button",{key:0,type:"button",class:T(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=bt(Ue(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[K(a,{class:T(e.ns.e("close"))},{default:Z(()=>[K(i)]),_:1},8,["class"])],42,r7e)):ae("v-if",!0)],2)):ae("v-if",!0),C("div",{id:e.contentId,class:T(e.ns.e("content"))},[C("div",{class:T(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(y(),ue(a,{key:0,class:T([e.ns.e("status"),e.typeClass])},{default:Z(()=>[(y(),ue(pt(e.iconComponent)))]),_:1},8,["class"])):ae("v-if",!0),e.hasMessage?(y(),$("div",{key:1,class:T(e.ns.e("message"))},[ge(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(y(),ue(pt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(y(),ue(pt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:Z(()=>[ot(Ce(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):ae("v-if",!0)],2),Xe(C("div",{class:T(e.ns.e("input"))},[K(c,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:T({invalid:e.validateError}),onKeydown:bt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),C("div",{class:T(e.ns.e("errormsg")),style:Be({visibility:e.editorErrorMessage?"visible":"hidden"})},Ce(e.editorErrorMessage),7)],2),[[_t,e.showInput]])],10,n7e),C("div",{class:T(e.ns.e("btns"))},[e.showCancelButton?(y(),ue(u,{key:0,loading:e.cancelButtonLoading,class:T([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=bt(Ue(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:Z(()=>[ot(Ce(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):ae("v-if",!0),Xe(K(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:T([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=bt(Ue(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:Z(()=>[ot(Ce(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[_t,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,l7e)]),_:3},8,["z-index","overlay-class","mask"]),[[_t,e.visible]])]),_:3})}var i7e=Te(o7e,[["render",a7e],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const ls=new Map,s7e=e=>{let t=document.body;return e.appendTo&&(Ge(e.appendTo)&&(t=document.querySelector(e.appendTo)),yl(e.appendTo)&&(t=e.appendTo),yl(t)||(t=document.body)),t},c7e=(e,t,o=null)=>{const l=K(i7e,e,Ye(e.message)||Vt(e.message)?{default:Ye(e.message)?e.message:()=>e.message}:null);return l.appContext=o,ga(l,t),s7e(e).appendChild(t.firstElementChild),l.component},u7e=()=>document.createElement("div"),d7e=(e,t)=>{const o=u7e();e.onVanish=()=>{ga(null,o),ls.delete(r)},e.onAction=n=>{const a=ls.get(r);let i;e.showInput?i={value:r.inputValue,action:n}:i=n,e.callback?e.callback(i,l.proxy):n==="cancel"||n==="close"?e.distinguishCancelAndClose&&n!=="cancel"?a.reject("close"):a.reject("cancel"):a.resolve(i)};const l=c7e(e,o,t),r=l.proxy;for(const n in e)mt(e,n)&&!mt(r.$props,n)&&(r[n]=e[n]);return r.visible=!0,r};function qa(e,t=null){if(!gt)return Promise.reject();let o;return Ge(e)||Vt(e)?e={message:e}:o=e.callback,new Promise((l,r)=>{const n=d7e(e,t!=null?t:qa._context);ls.set(n,{options:e,callback:o,resolve:l,reject:r})})}const p7e=["alert","confirm","prompt"],f7e={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};p7e.forEach(e=>{qa[e]=h7e(e)});function h7e(e){return(t,o,l,r)=>{let n="";return ft(o)?(l=o,n=""):lo(o)?n="":n=o,qa(Object.assign({title:n,message:t,type:"",...f7e[e]},l,{boxType:e}),r)}}qa.close=()=>{ls.forEach((e,t)=>{t.doClose()}),ls.clear()};qa._context=null;const zr=qa;zr.install=e=>{zr._context=e._context,e.config.globalProperties.$msgbox=zr,e.config.globalProperties.$messageBox=zr,e.config.globalProperties.$alert=zr.alert,e.config.globalProperties.$confirm=zr.confirm,e.config.globalProperties.$prompt=zr.prompt};const Mr=zr,r_=["success","info","warning","error"],v7e=Ae({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:Mt},id:{type:String,default:""},message:{type:de([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:de(Function),default:()=>{}},onClose:{type:de(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...r_,""],default:""},zIndex:{type:Number,default:0}}),m7e={destroy:()=>!0},g7e=["id"],b7e=["textContent"],_7e={key:0},y7e=["innerHTML"],w7e=te({name:"ElNotification"}),x7e=te({...w7e,props:v7e,emits:m7e,setup(e,{expose:t}){const o=e,l=_e("notification"),{Close:r}=fm,n=V(!1);let a;const i=S(()=>{const g=o.type;return g&&Fr[o.type]?l.m(g):""}),c=S(()=>o.type&&Fr[o.type]||o.icon),u=S(()=>o.position.endsWith("right")?"right":"left"),d=S(()=>o.position.startsWith("top")?"top":"bottom"),p=S(()=>({[d.value]:`${o.offset}px`,zIndex:o.zIndex}));function f(){o.duration>0&&({stop:a}=Sn(()=>{n.value&&v()},o.duration))}function h(){a==null||a()}function v(){n.value=!1}function m({code:g}){g===je.delete||g===je.backspace?h():g===je.esc?n.value&&v():f()}return Ze(()=>{f(),n.value=!0}),At(document,"keydown",m),t({visible:n,close:v}),(g,_)=>(y(),ue(Kt,{name:s(l).b("fade"),onBeforeLeave:g.onClose,onAfterLeave:_[1]||(_[1]=w=>g.$emit("destroy")),persisted:""},{default:Z(()=>[Xe(C("div",{id:g.id,class:T([s(l).b(),g.customClass,s(u)]),style:Be(s(p)),role:"alert",onMouseenter:h,onMouseleave:f,onClick:_[0]||(_[0]=(...w)=>g.onClick&&g.onClick(...w))},[s(c)?(y(),ue(s(De),{key:0,class:T([s(l).e("icon"),s(i)])},{default:Z(()=>[(y(),ue(pt(s(c))))]),_:1},8,["class"])):ae("v-if",!0),C("div",{class:T(s(l).e("group"))},[C("h2",{class:T(s(l).e("title")),textContent:Ce(g.title)},null,10,b7e),Xe(C("div",{class:T(s(l).e("content")),style:Be(g.title?void 0:{margin:0})},[ge(g.$slots,"default",{},()=>[g.dangerouslyUseHTMLString?(y(),$(Pe,{key:1},[ae(" Caution here, message could've been compromised, never use user's input as message "),C("p",{innerHTML:g.message},null,8,y7e)],2112)):(y(),$("p",_7e,Ce(g.message),1))])],6),[[_t,g.message]]),g.showClose?(y(),ue(s(De),{key:0,class:T(s(l).e("closeBtn")),onClick:Ue(v,["stop"])},{default:Z(()=>[K(s(r))]),_:1},8,["class","onClick"])):ae("v-if",!0)],2)],46,g7e),[[_t,n.value]])]),_:3},8,["name","onBeforeLeave"]))}});var k7e=Te(x7e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const Gc={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},m2=16;let C7e=1;const Ta=function(e={},t=null){if(!gt)return{close:()=>{}};(typeof e=="string"||Vt(e))&&(e={message:e});const o=e.position||"top-right";let l=e.offset||0;Gc[o].forEach(({vm:p})=>{var f;l+=(((f=p.el)==null?void 0:f.offsetHeight)||0)+m2}),l+=m2;const{nextZIndex:r}=gr(),n=`notification_${C7e++}`,a=e.onClose,i={...e,zIndex:r(),offset:l,id:n,onClose:()=>{$7e(n,o,a)}};let c=document.body;yl(e.appendTo)?c=e.appendTo:Ge(e.appendTo)&&(c=document.querySelector(e.appendTo)),yl(c)||(c=document.body);const u=document.createElement("div"),d=K(k7e,i,Vt(i.message)?{default:()=>i.message}:null);return d.appContext=t!=null?t:Ta._context,d.props.onDestroy=()=>{ga(null,u)},ga(d,u),Gc[o].push({vm:d}),c.appendChild(u.firstElementChild),{close:()=>{d.component.exposed.visible.value=!1}}};r_.forEach(e=>{Ta[e]=(t={})=>((typeof t=="string"||Vt(t))&&(t={message:t}),Ta({...t,type:e}))});function $7e(e,t,o){const l=Gc[t],r=l.findIndex(({vm:u})=>{var d;return((d=u.component)==null?void 0:d.props.id)===e});if(r===-1)return;const{vm:n}=l[r];if(!n)return;o==null||o(n);const a=n.el.offsetHeight,i=t.split("-")[0];l.splice(r,1);const c=l.length;if(!(c<1))for(let u=r;u{t.component.exposed.visible.value=!1})}Ta.closeAll=S7e;Ta._context=null;const di=vm(Ta,"$notify");var z7e=[H9e,Sf,gl,Mr,di,X8],E7e=gie([...A9e,...z7e]),n_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t={name:"zh-cn",el:{colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875",deprecationWarning:"\u4F60\u4F7F\u7528\u4E86\u4E00\u4E9B\u5DF2\u88AB\u5E9F\u5F03\u7684\u7528\u6CD5\uFF0C\u8BF7\u53C2\u8003 el-pagination \u7684\u5B98\u65B9\u6587\u6863"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!"},upload:{deleteTip:"\u6309 delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"}}};e.default=t})(n_);const M7e=Sg(n_);var T7e=!1;/*! + * pinia v2.0.22 + * (c) 2022 Eduardo San Martin Morote + * @license MIT + */let a_;const Nu=e=>a_=e,i_=Symbol();function g2(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ci;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ci||(Ci={}));function A7e(){const e=A2(!0),t=e.run(()=>V({}));let o=[],l=[];const r=bl({install(n){Nu(r),r._a=n,n.provide(i_,r),n.config.globalProperties.$pinia=r,l.forEach(a=>o.push(a)),l=[]},use(n){return!this._a&&!T7e?l.push(n):o.push(n),this},_p:o,_a:null,_e:e,_s:new Map,state:t});return r}const s_=()=>{};function lv(e,t,o,l=s_){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),l())};return!o&&Qe()&&ur(r),r}function Bn(e,...t){e.slice().forEach(o=>{o(...t)})}function b2(e,t){e instanceof Map&&t instanceof Map&&t.forEach((o,l)=>e.set(l,o)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){if(!t.hasOwnProperty(o))continue;const l=t[o],r=e[o];g2(r)&&g2(l)&&e.hasOwnProperty(o)&&!xt(l)&&!Lr(l)?e[o]=b2(r,l):e[o]=l}return e}const V7e=Symbol();function O7e(e){return!g2(e)||!e.hasOwnProperty(V7e)}const{assign:Xl}=Object;function P7e(e){return!!(xt(e)&&e.effect)}function L7e(e,t,o,l){const{state:r,actions:n,getters:a}=t,i=o.state.value[e];let c;function u(){i||(o.state.value[e]=r?r():{});const d=Gt(o.state.value[e]);return Xl(d,n,Object.keys(a||{}).reduce((p,f)=>(p[f]=bl(S(()=>{Nu(o);const h=o._s.get(e);return a[f].call(h,h)})),p),{}))}return c=c_(e,u,t,o,l,!0),c.$reset=function(){const p=r?r():{};this.$patch(f=>{Xl(f,p)})},c}function c_(e,t,o={},l,r,n){let a;const i=Xl({actions:{}},o),c={deep:!0};let u,d,p=bl([]),f=bl([]),h;const v=l.state.value[e];!n&&!v&&(l.state.value[e]={}),V({});let m;function g(M){let E;u=d=!1,typeof M=="function"?(M(l.state.value[e]),E={type:Ci.patchFunction,storeId:e,events:h}):(b2(l.state.value[e],M),E={type:Ci.patchObject,payload:M,storeId:e,events:h});const A=m=Symbol();Ne().then(()=>{m===A&&(u=!0)}),d=!0,Bn(p,E,l.state.value[e])}const _=s_;function w(){a.stop(),p=[],f=[],l._s.delete(e)}function b(M,E){return function(){Nu(l);const A=Array.from(arguments),O=[],D=[];function I(F){O.push(F)}function N(F){D.push(F)}Bn(f,{args:A,name:M,store:k,after:I,onError:N});let B;try{B=E.apply(this&&this.$id===e?this:k,A)}catch(F){throw Bn(D,F),F}return B instanceof Promise?B.then(F=>(Bn(O,F),F)).catch(F=>(Bn(D,F),Promise.reject(F))):(Bn(O,B),B)}}const x={_p:l,$id:e,$onAction:lv.bind(null,f),$patch:g,$reset:_,$subscribe(M,E={}){const A=lv(p,M,E.detached,()=>O()),O=a.run(()=>ve(()=>l.state.value[e],D=>{(E.flush==="sync"?d:u)&&M({storeId:e,type:Ci.direct,events:h},D)},Xl({},c,E)));return A},$dispose:w},k=wt(Xl({},x));l._s.set(e,k);const z=l._e.run(()=>(a=A2(),a.run(()=>t())));for(const M in z){const E=z[M];if(xt(E)&&!P7e(E)||Lr(E))n||(v&&O7e(E)&&(xt(E)?E.value=v[M]:b2(E,v[M])),l.state.value[e][M]=E);else if(typeof E=="function"){const A=b(M,E);z[M]=A,i.actions[M]=E}}return Xl(k,z),Xl(kt(k),z),Object.defineProperty(k,"$state",{get:()=>l.state.value[e],set:M=>{g(E=>{Xl(E,M)})}}),l._p.forEach(M=>{Xl(k,a.run(()=>M({store:k,app:l._a,pinia:l,options:i})))}),v&&n&&o.hydrate&&o.hydrate(k.$state,v),u=!0,d=!0,k}function Ua(e,t,o){let l,r;const n=typeof t=="function";typeof e=="string"?(l=e,r=n?o:t):(r=e,l=e.id);function a(i,c){const u=Qe();return i=i||u&&Re(i_),i&&Nu(i),i=a_,i._s.has(l)||(n?c_(l,t,r,i):L7e(l,r,i)),i._s.get(l)}return a.$id=l,a}const _2={title:"\u9752\u5C9B\u673A\u573A\u65E0\u4EBA\u9A7E\u9A76\u8F66\u8F86\u534F\u540C\u4E91\u5E73\u53F0",sideTheme:"theme-dark",showSettings:!1,topNav:!1,tagsView:!0,fixedHeader:!1,sidebarLogo:!0,dynamicTitle:!1,errorLog:"production"},I7e=A7e();function R7e(){const e=Ya();e.dynamicTitle?document.title=e.title+" - "+_2.title:document.title=_2.title}const{sideTheme:H7e,showSettings:N7e,topNav:B7e,tagsView:D7e,fixedHeader:F7e,sidebarLogo:j7e,dynamicTitle:K7e}=_2,Yo=JSON.parse(localStorage.getItem("layout-setting"))||"",Ya=Ua("settings",{state:()=>({title:"",theme:Yo.theme||"#409EFF",sideTheme:Yo.sideTheme||H7e,showSettings:N7e,topNav:Yo.topNav===void 0?B7e:Yo.topNav,tagsView:Yo.tagsView===void 0?D7e:Yo.tagsView,fixedHeader:Yo.fixedHeader===void 0?F7e:Yo.fixedHeader,sidebarLogo:Yo.sidebarLogo===void 0?j7e:Yo.sidebarLogo,dynamicTitle:Yo.dynamicTitle===void 0?K7e:Yo.dynamicTitle}),actions:{changeSetting(e){const{key:t,value:o}=e;this.hasOwnProperty(t)&&(this[t]=o)},setTitle(e){this.title=e,R7e()}}}),W7e="modulepreload",q7e=function(e){return"/airport/"+e},rv={},lt=function(t,o,l){if(!o||o.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(o.map(n=>{if(n=q7e(n),n in rv)return;rv[n]=!0;const a=n.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(!!l)for(let d=r.length-1;d>=0;d--){const p=r[d];if(p.href===n&&(!a||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${i}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":W7e,a||(u.as="script",u.crossOrigin=""),u.href=n,document.head.appendChild(u),a)return new Promise((d,p)=>{u.addEventListener("load",d),u.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t())};var u_={exports:{}},zf={exports:{}},d_=function(t,o){return function(){for(var r=new Array(arguments.length),n=0;n"u"}function Y7e(e){return e!==null&&!Xc(e)&&e.constructor!==null&&!Xc(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var p_=Ln("ArrayBuffer");function G7e(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&p_(e.buffer),t}function X7e(e){return typeof e=="string"}function J7e(e){return typeof e=="number"}function f_(e){return e!==null&&typeof e=="object"}function xc(e){if(Mf(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var Z7e=Ln("Date"),Q7e=Ln("File"),eye=Ln("Blob"),tye=Ln("FileList");function Af(e){return Ef.call(e)==="[object Function]"}function oye(e){return f_(e)&&Af(e.pipe)}function lye(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Ef.call(e)===t||Af(e.toString)&&e.toString()===t)}var rye=Ln("URLSearchParams");function nye(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function aye(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Vf(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Tf(e))for(var o=0,l=e.length;o0;)n=l[r],a[n]||(t[n]=e[n],a[n]=!0);e=Object.getPrototypeOf(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t}function dye(e,t,o){e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=t.length;var l=e.indexOf(t,o);return l!==-1&&l===o}function pye(e){if(!e)return null;var t=e.length;if(Xc(t))return null;for(var o=new Array(t);t-- >0;)o[t]=e[t];return o}var fye=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),fo={isArray:Tf,isArrayBuffer:p_,isBuffer:Y7e,isFormData:lye,isArrayBufferView:G7e,isString:X7e,isNumber:J7e,isObject:f_,isPlainObject:xc,isUndefined:Xc,isDate:Z7e,isFile:Q7e,isBlob:eye,isFunction:Af,isStream:oye,isURLSearchParams:rye,isStandardBrowserEnv:aye,forEach:Vf,merge:y2,extend:iye,trim:nye,stripBOM:sye,inherits:cye,toFlatObject:uye,kindOf:Mf,kindOfTest:Ln,endsWith:dye,toArray:pye,isTypedArray:fye,isFileList:tye},Dn=fo;function nv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var h_=function(t,o,l){if(!o)return t;var r;if(l)r=l(o);else if(Dn.isURLSearchParams(o))r=o.toString();else{var n=[];Dn.forEach(o,function(c,u){c===null||typeof c>"u"||(Dn.isArray(c)?u=u+"[]":c=[c],Dn.forEach(c,function(p){Dn.isDate(p)?p=p.toISOString():Dn.isObject(p)&&(p=JSON.stringify(p)),n.push(nv(u)+"="+nv(p))}))}),r=n.join("&")}if(r){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},hye=fo;function Bu(){this.handlers=[]}Bu.prototype.use=function(t,o,l){return this.handlers.push({fulfilled:t,rejected:o,synchronous:l?l.synchronous:!1,runWhen:l?l.runWhen:null}),this.handlers.length-1};Bu.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Bu.prototype.forEach=function(t){hye.forEach(this.handlers,function(l){l!==null&&t(l)})};var vye=Bu,mye=fo,gye=function(t,o){mye.forEach(t,function(r,n){n!==o&&n.toUpperCase()===o.toUpperCase()&&(t[o]=r,delete t[n])})},v_=fo;function Aa(e,t,o,l,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),o&&(this.config=o),l&&(this.request=l),r&&(this.response=r)}v_.inherits(Aa,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 m_=Aa.prototype,g_={};["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(e){g_[e]={value:e}});Object.defineProperties(Aa,g_);Object.defineProperty(m_,"isAxiosError",{value:!0});Aa.from=function(e,t,o,l,r,n){var a=Object.create(m_);return v_.toFlatObject(e,a,function(c){return c!==Error.prototype}),Aa.call(a,e.message,t,o,l,r),a.name=e.name,n&&Object.assign(a,n),a};var Ga=Aa,b_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ul=fo;function bye(e,t){t=t||new FormData;var o=[];function l(n){return n===null?"":ul.isDate(n)?n.toISOString():ul.isArrayBuffer(n)||ul.isTypedArray(n)?typeof Blob=="function"?new Blob([n]):Buffer.from(n):n}function r(n,a){if(ul.isPlainObject(n)||ul.isArray(n)){if(o.indexOf(n)!==-1)throw Error("Circular reference detected in "+a);o.push(n),ul.forEach(n,function(c,u){if(!ul.isUndefined(c)){var d=a?a+"."+u:u,p;if(c&&!a&&typeof c=="object"){if(ul.endsWith(u,"{}"))c=JSON.stringify(c);else if(ul.endsWith(u,"[]")&&(p=ul.toArray(c))){p.forEach(function(f){!ul.isUndefined(f)&&t.append(d,l(f))});return}}r(c,d)}}),o.pop()}else t.append(a,l(n))}return r(e),t}var __=bye,Md,av;function _ye(){if(av)return Md;av=1;var e=Ga;return Md=function(o,l,r){var n=r.config.validateStatus;!r.status||!n||n(r.status)?o(r):l(new e("Request failed with status code "+r.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))},Md}var Td,iv;function yye(){if(iv)return Td;iv=1;var e=fo;return Td=e.isStandardBrowserEnv()?function(){return{write:function(l,r,n,a,i,c){var u=[];u.push(l+"="+encodeURIComponent(r)),e.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),e.isString(a)&&u.push("path="+a),e.isString(i)&&u.push("domain="+i),c===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(l){var r=document.cookie.match(new RegExp("(^|;\\s*)("+l+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(l){this.write(l,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Td}var wye=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},xye=function(t,o){return o?t.replace(/\/+$/,"")+"/"+o.replace(/^\/+/,""):t},kye=wye,Cye=xye,y_=function(t,o){return t&&!kye(o)?Cye(t,o):o},Ad,sv;function $ye(){if(sv)return Ad;sv=1;var e=fo,t=["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 Ad=function(l){var r={},n,a,i;return l&&e.forEach(l.split(` +`),function(u){if(i=u.indexOf(":"),n=e.trim(u.substr(0,i)).toLowerCase(),a=e.trim(u.substr(i+1)),n){if(r[n]&&t.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([a]):r[n]=r[n]?r[n]+", "+a:a}}),r},Ad}var Vd,cv;function Sye(){if(cv)return Vd;cv=1;var e=fo;return Vd=e.isStandardBrowserEnv()?function(){var o=/(msie|trident)/i.test(navigator.userAgent),l=document.createElement("a"),r;function n(a){var i=a;return o&&(l.setAttribute("href",i),i=l.href),l.setAttribute("href",i),{href:l.href,protocol:l.protocol?l.protocol.replace(/:$/,""):"",host:l.host,search:l.search?l.search.replace(/^\?/,""):"",hash:l.hash?l.hash.replace(/^#/,""):"",hostname:l.hostname,port:l.port,pathname:l.pathname.charAt(0)==="/"?l.pathname:"/"+l.pathname}}return r=n(window.location.href),function(i){var c=e.isString(i)?n(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),Vd}var Od,uv;function Du(){if(uv)return Od;uv=1;var e=Ga,t=fo;function o(l){e.call(this,l==null?"canceled":l,e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(o,e,{__CANCEL__:!0}),Od=o,Od}var Pd,dv;function zye(){return dv||(dv=1,Pd=function(t){var o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return o&&o[1]||""}),Pd}var Ld,pv;function fv(){if(pv)return Ld;pv=1;var e=fo,t=_ye(),o=yye(),l=h_,r=y_,n=$ye(),a=Sye(),i=b_,c=Ga,u=Du(),d=zye();return Ld=function(f){return new Promise(function(v,m){var g=f.data,_=f.headers,w=f.responseType,b;function x(){f.cancelToken&&f.cancelToken.unsubscribe(b),f.signal&&f.signal.removeEventListener("abort",b)}e.isFormData(g)&&e.isStandardBrowserEnv()&&delete _["Content-Type"];var k=new XMLHttpRequest;if(f.auth){var z=f.auth.username||"",M=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";_.Authorization="Basic "+btoa(z+":"+M)}var E=r(f.baseURL,f.url);k.open(f.method.toUpperCase(),l(E,f.params,f.paramsSerializer),!0),k.timeout=f.timeout;function A(){if(!!k){var I="getAllResponseHeaders"in k?n(k.getAllResponseHeaders()):null,N=!w||w==="text"||w==="json"?k.responseText:k.response,B={data:N,status:k.status,statusText:k.statusText,headers:I,config:f,request:k};t(function(H){v(H),x()},function(H){m(H),x()},B),k=null}}if("onloadend"in k?k.onloadend=A:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(A)},k.onabort=function(){!k||(m(new c("Request aborted",c.ECONNABORTED,f,k)),k=null)},k.onerror=function(){m(new c("Network Error",c.ERR_NETWORK,f,k,k)),k=null},k.ontimeout=function(){var N=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",B=f.transitional||i;f.timeoutErrorMessage&&(N=f.timeoutErrorMessage),m(new c(N,B.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,f,k)),k=null},e.isStandardBrowserEnv()){var O=(f.withCredentials||a(E))&&f.xsrfCookieName?o.read(f.xsrfCookieName):void 0;O&&(_[f.xsrfHeaderName]=O)}"setRequestHeader"in k&&e.forEach(_,function(N,B){typeof g>"u"&&B.toLowerCase()==="content-type"?delete _[B]:k.setRequestHeader(B,N)}),e.isUndefined(f.withCredentials)||(k.withCredentials=!!f.withCredentials),w&&w!=="json"&&(k.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&k.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&k.upload&&k.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(b=function(I){!k||(m(!I||I&&I.type?new u:I),k.abort(),k=null)},f.cancelToken&&f.cancelToken.subscribe(b),f.signal&&(f.signal.aborted?b():f.signal.addEventListener("abort",b))),g||(g=null);var D=d(E);if(D&&["http","https","file"].indexOf(D)===-1){m(new c("Unsupported protocol "+D+":",c.ERR_BAD_REQUEST,f));return}k.send(g)})},Ld}var Id,hv;function Eye(){return hv||(hv=1,Id=null),Id}var eo=fo,vv=gye,mv=Ga,Mye=b_,Tye=__,Aye={"Content-Type":"application/x-www-form-urlencoded"};function gv(e,t){!eo.isUndefined(e)&&eo.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function Vye(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=fv()),e}function Oye(e,t,o){if(eo.isString(e))try{return(t||JSON.parse)(e),eo.trim(e)}catch(l){if(l.name!=="SyntaxError")throw l}return(o||JSON.stringify)(e)}var Fu={transitional:Mye,adapter:Vye(),transformRequest:[function(t,o){if(vv(o,"Accept"),vv(o,"Content-Type"),eo.isFormData(t)||eo.isArrayBuffer(t)||eo.isBuffer(t)||eo.isStream(t)||eo.isFile(t)||eo.isBlob(t))return t;if(eo.isArrayBufferView(t))return t.buffer;if(eo.isURLSearchParams(t))return gv(o,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var l=eo.isObject(t),r=o&&o["Content-Type"],n;if((n=eo.isFileList(t))||l&&r==="multipart/form-data"){var a=this.env&&this.env.FormData;return Tye(n?{"files[]":t}:t,a&&new a)}else if(l||r==="application/json")return gv(o,"application/json"),Oye(t);return t}],transformResponse:[function(t){var o=this.transitional||Fu.transitional,l=o&&o.silentJSONParsing,r=o&&o.forcedJSONParsing,n=!l&&this.responseType==="json";if(n||r&&eo.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(n)throw a.name==="SyntaxError"?mv.from(a,mv.ERR_BAD_RESPONSE,this,null,this.response):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Eye()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};eo.forEach(["delete","get","head"],function(t){Fu.headers[t]={}});eo.forEach(["post","put","patch"],function(t){Fu.headers[t]=eo.merge(Aye)});var Of=Fu,Pye=fo,Lye=Of,Iye=function(t,o,l){var r=this||Lye;return Pye.forEach(l,function(a){t=a.call(r,t,o)}),t},Rd,bv;function w_(){return bv||(bv=1,Rd=function(t){return!!(t&&t.__CANCEL__)}),Rd}var _v=fo,Hd=Iye,Rye=w_(),Hye=Of,Nye=Du();function Nd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Nye}var Bye=function(t){Nd(t),t.headers=t.headers||{},t.data=Hd.call(t,t.data,t.headers,t.transformRequest),t.headers=_v.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),_v.forEach(["delete","get","head","post","put","patch","common"],function(r){delete t.headers[r]});var o=t.adapter||Hye.adapter;return o(t).then(function(r){return Nd(t),r.data=Hd.call(t,r.data,r.headers,t.transformResponse),r},function(r){return Rye(r)||(Nd(t),r&&r.response&&(r.response.data=Hd.call(t,r.response.data,r.response.headers,t.transformResponse))),Promise.reject(r)})},Ho=fo,x_=function(t,o){o=o||{};var l={};function r(d,p){return Ho.isPlainObject(d)&&Ho.isPlainObject(p)?Ho.merge(d,p):Ho.isPlainObject(p)?Ho.merge({},p):Ho.isArray(p)?p.slice():p}function n(d){if(Ho.isUndefined(o[d])){if(!Ho.isUndefined(t[d]))return r(void 0,t[d])}else return r(t[d],o[d])}function a(d){if(!Ho.isUndefined(o[d]))return r(void 0,o[d])}function i(d){if(Ho.isUndefined(o[d])){if(!Ho.isUndefined(t[d]))return r(void 0,t[d])}else return r(void 0,o[d])}function c(d){if(d in o)return r(t[d],o[d]);if(d in t)return r(void 0,t[d])}var u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c};return Ho.forEach(Object.keys(t).concat(Object.keys(o)),function(p){var f=u[p]||n,h=f(p);Ho.isUndefined(h)&&f!==c||(l[p]=h)}),l},Bd,yv;function k_(){return yv||(yv=1,Bd={version:"0.27.2"}),Bd}var Dye=k_().version,Tr=Ga,Pf={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Pf[e]=function(l){return typeof l===e||"a"+(t<1?"n ":" ")+e}});var wv={};Pf.transitional=function(t,o,l){function r(n,a){return"[Axios v"+Dye+"] Transitional option '"+n+"'"+a+(l?". "+l:"")}return function(n,a,i){if(t===!1)throw new Tr(r(a," has been removed"+(o?" in "+o:"")),Tr.ERR_DEPRECATED);return o&&!wv[a]&&(wv[a]=!0,console.warn(r(a," has been deprecated since v"+o+" and will be removed in the near future"))),t?t(n,a,i):!0}};function Fye(e,t,o){if(typeof e!="object")throw new Tr("options must be an object",Tr.ERR_BAD_OPTION_VALUE);for(var l=Object.keys(e),r=l.length;r-- >0;){var n=l[r],a=t[n];if(a){var i=e[n],c=i===void 0||a(i,n,e);if(c!==!0)throw new Tr("option "+n+" must be "+c,Tr.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new Tr("Unknown option "+n,Tr.ERR_BAD_OPTION)}}var jye={assertOptions:Fye,validators:Pf},C_=fo,Kye=h_,xv=vye,kv=Bye,ju=x_,Wye=y_,$_=jye,Fn=$_.validators;function Va(e){this.defaults=e,this.interceptors={request:new xv,response:new xv}}Va.prototype.request=function(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=ju(this.defaults,o),o.method?o.method=o.method.toLowerCase():this.defaults.method?o.method=this.defaults.method.toLowerCase():o.method="get";var l=o.transitional;l!==void 0&&$_.assertOptions(l,{silentJSONParsing:Fn.transitional(Fn.boolean),forcedJSONParsing:Fn.transitional(Fn.boolean),clarifyTimeoutError:Fn.transitional(Fn.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(o)===!1||(n=n&&h.synchronous,r.unshift(h.fulfilled,h.rejected))});var a=[];this.interceptors.response.forEach(function(h){a.push(h.fulfilled,h.rejected)});var i;if(!n){var c=[kv,void 0];for(Array.prototype.unshift.apply(c,r),c=c.concat(a),i=Promise.resolve(o);c.length;)i=i.then(c.shift(),c.shift());return i}for(var u=o;r.length;){var d=r.shift(),p=r.shift();try{u=d(u)}catch(f){p(f);break}}try{i=kv(u)}catch(f){return Promise.reject(f)}for(;a.length;)i=i.then(a.shift(),a.shift());return i};Va.prototype.getUri=function(t){t=ju(this.defaults,t);var o=Wye(t.baseURL,t.url);return Kye(o,t.params,t.paramsSerializer)};C_.forEach(["delete","get","head","options"],function(t){Va.prototype[t]=function(o,l){return this.request(ju(l||{},{method:t,url:o,data:(l||{}).data}))}});C_.forEach(["post","put","patch"],function(t){function o(l){return function(n,a,i){return this.request(ju(i||{},{method:t,headers:l?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}Va.prototype[t]=o(),Va.prototype[t+"Form"]=o(!0)});var qye=Va,Dd,Cv;function Uye(){if(Cv)return Dd;Cv=1;var e=Du();function t(o){if(typeof o!="function")throw new TypeError("executor must be a function.");var l;this.promise=new Promise(function(a){l=a});var r=this;this.promise.then(function(n){if(!!r._listeners){var a,i=r._listeners.length;for(a=0;a{let c=r[i];return i==="a"?["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"][c]:(a.length>0&&c<10&&(c="0"+c),c||0)})}function owe(e){this.$refs[e]&&this.$refs[e].resetFields()}function lwe(e,t,o){let l=e;return l.params=typeof l.params=="object"&&l.params!==null&&!Array.isArray(l.params)?l.params:{},t=Array.isArray(t)?t:[],typeof o>"u"?(l.params.beginTime=t[0],l.params.endTime=t[1]):(l.params["begin"+o]=t[0],l.params["end"+o]=t[1]),l}function rwe(e,t){if(t===void 0)return"";var o=[];return Object.keys(e).some(l=>{if(e[l].value==""+t)return o.push(e[l].label),!0}),o.length===0&&o.push(t),o.join("")}function nwe(e,t,o){if(t===void 0||t.length===0)return"";Array.isArray(t)&&(t=t.join(","));var l=[],r=o===void 0?",":o,n=t.split(r);return Object.keys(t.split(r)).some(a=>{var i=!1;Object.keys(e).some(c=>{e[c].value==""+n[a]&&(l.push(e[c].label+r),i=!0)}),i||l.push(n[a]+r)}),l.join("").substring(0,l.join("").length-1)}function lCe(e){return!e||e=="undefined"||e=="null"?"":e}function awe(e,t,o,l){let r={id:t||"id",parentId:o||"parentId",childrenList:l||"children"};var n={},a={},i=[];for(let u of e){let d=u[r.parentId];n[d]==null&&(n[d]=[]),a[u[r.id]]=u,n[d].push(u)}for(let u of e){let d=u[r.parentId];a[d]==null&&i.push(u)}for(let u of i)c(u);function c(u){if(n[u[r.id]]!==null&&(u[r.childrenList]=n[u[r.id]]),u[r.childrenList])for(let d of u[r.childrenList])c(d)}return i}function z_(e){let t="";for(const r of Object.keys(e)){const n=e[r];var o=encodeURIComponent(r)+"=";if(n!==null&&n!==""&&typeof n<"u")if(typeof n=="object"){for(const a of Object.keys(n))if(n[a]!==null&&n[a]!==""&&typeof n[a]<"u"){let i=r+"["+a+"]";var l=encodeURIComponent(i)+"=";t+=l+encodeURIComponent(n[a])+"&"}}else t+=o+encodeURIComponent(n)+"&"}return t}function Ev(e){if(e.length===0||!e||e=="undefined")return e;let t=e.replace("//","/");return t[t.length-1]==="/"?t.slice(0,t.length-1):t}async function Cc(e){try{const t=await e.text();return JSON.parse(t),!1}catch{return!0}}const iwe={set(e,t){!sessionStorage||e!=null&&t!=null&&sessionStorage.setItem(e,t)},get(e){return!sessionStorage||e==null?null:sessionStorage.getItem(e)},setJSON(e,t){t!=null&&this.set(e,JSON.stringify(t))},getJSON(e){const t=this.get(e);if(t!=null)return JSON.parse(t)},remove(e){sessionStorage.removeItem(e)}},swe={set(e,t){!localStorage||e!=null&&t!=null&&localStorage.setItem(e,t)},get(e){return!localStorage||e==null?null:localStorage.getItem(e)},setJSON(e,t){t!=null&&this.set(e,JSON.stringify(t))},getJSON(e){const t=this.get(e);if(t!=null)return JSON.parse(t)},remove(e){localStorage.removeItem(e)}},$c={session:iwe,local:swe};var If={exports:{}};(function(e,t){(function(o,l){l()})(xo,function(){function o(u,d){return typeof d>"u"?d={autoBom:!1}:typeof d!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),d={autoBom:!d}),d.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}function l(u,d,p){var f=new XMLHttpRequest;f.open("GET",u),f.responseType="blob",f.onload=function(){c(f.response,d,p)},f.onerror=function(){console.error("could not download file")},f.send()}function r(u){var d=new XMLHttpRequest;d.open("HEAD",u,!1);try{d.send()}catch{}return 200<=d.status&&299>=d.status}function n(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var d=document.createEvent("MouseEvents");d.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(d)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof xo=="object"&&xo.global===xo?xo:void 0,i=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(u,d,p){var f=a.URL||a.webkitURL,h=document.createElement("a");d=d||u.name||"download",h.download=d,h.rel="noopener",typeof u=="string"?(h.href=u,h.origin===location.origin?n(h):r(h.href)?l(u,d,p):n(h,h.target="_blank")):(h.href=f.createObjectURL(u),setTimeout(function(){f.revokeObjectURL(h.href)},4e4),setTimeout(function(){n(h)},0))}:"msSaveOrOpenBlob"in navigator?function(u,d,p){if(d=d||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(o(u,p),d);else if(r(u))l(u,d,p);else{var f=document.createElement("a");f.href=u,f.target="_blank",setTimeout(function(){n(f)})}}:function(u,d,p,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof u=="string")return l(u,d,p);var h=u.type==="application/octet-stream",v=/constructor/i.test(a.HTMLElement)||a.safari,m=/CriOS\/[\d]+/.test(navigator.userAgent);if((m||h&&v||i)&&typeof FileReader<"u"){var g=new FileReader;g.onloadend=function(){var b=g.result;b=m?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=b:location=b,f=null},g.readAsDataURL(u)}else{var _=a.URL||a.webkitURL,w=_.createObjectURL(u);f?f.location=w:location.href=w,f=null,setTimeout(function(){_.revokeObjectURL(w)},4e4)}});a.saveAs=c.saveAs=c,e.exports=c})})(If);let Kd;$i.defaults.headers["Content-Type"]="application/json;charset=utf-8";var Xv;const zo=$i.create({baseURL:((Xv=window.APP_CONFIG)==null?void 0:Xv.VITE_BASE_URL)||"http://10.64.58.228:8080",timeout:1e4});zo.interceptors.request.use(e=>{const t=(e.headers||{}).isToken===!1,o=(e.headers||{}).repeatSubmit===!1;if(rr()&&!t&&(e.headers.Authorization="Bearer "+rr()),e.method==="get"&&e.params){let l=e.url+"?"+z_(e.params);l=l.slice(0,-1),e.params={},e.url=l}if(!o&&(e.method==="post"||e.method==="put")){const l={url:e.url,data:typeof e.data=="object"?JSON.stringify(e.data):e.data,time:new Date().getTime()},r=$c.session.getJSON("sessionObj");if(r==null||r==="")$c.session.setJSON("sessionObj",l);else{const n=r.url,a=r.data,i=r.time,c=1e3;if(a===l.data&&l.time-i{console.log(e),Promise.reject(e)});zo.interceptors.response.use(e=>{const t=e.data.code||200,o=Oa[t]||e.data.msg||Oa.default;return t===200?e.data:(gl.error(o),Promise.reject(new Error(o)))},e=>(console.error("\u8BF7\u6C42\u5F02\u5E38:",e),e.response&&(console.error("\u54CD\u5E94\u72B6\u6001\u7801:",e.response.status),console.error("\u54CD\u5E94\u6570\u636E:",e.response.data)),gl.error(e.message),Promise.reject(e)));function cwe(e,t,o,l){return Kd=Sf.service({text:"\u6B63\u5728\u4E0B\u8F7D\u6570\u636E\uFF0C\u8BF7\u7A0D\u5019",background:"rgba(0, 0, 0, 0.7)"}),zo.post(e,t,{transformRequest:[r=>z_(r)],headers:{"Content-Type":"application/x-www-form-urlencoded"},responseType:"blob",...l}).then(async r=>{if(await Cc(r)){const a=new Blob([r]);If.exports.saveAs(a,o)}else{const a=await r.text(),i=JSON.parse(a),c=Oa[i.code]||i.msg||Oa.default;gl.error(c)}Kd.close()}).catch(r=>{console.error(r),gl.error("\u4E0B\u8F7D\u6587\u4EF6\u51FA\u73B0\u9519\u8BEF\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01"),Kd.close()})}function uwe(e,t,o,l){return zo({url:"/login",headers:{isToken:!1},method:"post",data:{username:e,password:t,code:o,uuid:l}})}function rCe(e){return zo({url:"/register",headers:{isToken:!1},method:"post",data:e})}function dwe(){return zo({url:"/getInfo",method:"get"})}function pwe(){return zo({url:"/logout",method:"post"})}function nCe(){return zo({url:"/captchaImage",headers:{isToken:!1},method:"get",timeout:2e4})}const fwe="/airport/assets/profile.61408500.jpg",Hr=Ua("user",{state:()=>({token:rr(),name:"",avatar:"",roles:[],permissions:[]}),actions:{login(e){const t=e.username.trim(),o=e.password,l=e.code,r=e.uuid;return new Promise((n,a)=>{uwe(t,o,l,r).then(i=>{Qye(i.token),this.token=i.token,n()}).catch(i=>{a(i)})})},getInfo(){return new Promise((e,t)=>{dwe().then(o=>{var n;const l=o.user,r=l.avatar==""||l.avatar==null?fwe:((n=window.APP_CONFIG)==null?void 0:n.VITE_BASE_URL)+l.avatar;o.roles&&o.roles.length>0?(this.roles=o.roles,this.permissions=o.permissions):this.roles=["ROLE_DEFAULT"],this.name=l.userName,this.avatar=r,e(o)}).catch(o=>{t(o)})})},logOut(){return new Promise((e,t)=>{pwe(this.token).then(()=>{this.token="",this.roles=[],this.permissions=[],ewe(),e()}).catch(o=>{t(o)})})}}});function Wd(e){const t="*:*:*",o=Hr().permissions;return e&&e.length>0?o.some(l=>t===l||l===e):!1}function qd(e){const t="admin",o=Hr().roles;return e&&e.length>0?o.some(l=>t===l||l===e):!1}const w2={hasPermi(e){return Wd(e)},hasPermiOr(e){return e.some(t=>Wd(t))},hasPermiAnd(e){return e.every(t=>Wd(t))},hasRole(e){return qd(e)},hasRoleOr(e){return e.some(t=>qd(t))},hasRoleAnd(e){return e.every(t=>qd(t))}};/*! + * vue-router v4.1.4 + * (c) 2022 Eduardo San Martin Morote + * @license MIT + */const Yn=typeof window<"u";function hwe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Tt=Object.assign;function Ud(e,t){const o={};for(const l in t){const r=t[l];o[l]=Cl(r)?r.map(e):e(r)}return o}const Si=()=>{},Cl=Array.isArray,vwe=/\/$/,mwe=e=>e.replace(vwe,"");function Yd(e,t,o="/"){let l,r={},n="",a="";const i=t.indexOf("#");let c=t.indexOf("?");return i=0&&(c=-1),c>-1&&(l=t.slice(0,c),n=t.slice(c+1,i>-1?i:t.length),r=e(n)),i>-1&&(l=l||t.slice(0,i),a=t.slice(i,t.length)),l=ywe(l!=null?l:t,o),{fullPath:l+(n&&"?")+n+a,path:l,query:r,hash:a}}function gwe(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function Mv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function bwe(e,t,o){const l=t.matched.length-1,r=o.matched.length-1;return l>-1&&l===r&&Pa(t.matched[l],o.matched[r])&&E_(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Pa(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function E_(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!_we(e[o],t[o]))return!1;return!0}function _we(e,t){return Cl(e)?Tv(e,t):Cl(t)?Tv(t,e):e===t}function Tv(e,t){return Cl(t)?e.length===t.length&&e.every((o,l)=>o===t[l]):e.length===1&&e[0]===t}function ywe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),l=e.split("/");let r=o.length-1,n,a;for(n=0;n1&&r--;else break;return o.slice(0,r).join("/")+"/"+l.slice(n-(n===l.length?1:0)).join("/")}var rs;(function(e){e.pop="pop",e.push="push"})(rs||(rs={}));var zi;(function(e){e.back="back",e.forward="forward",e.unknown=""})(zi||(zi={}));function wwe(e){if(!e)if(Yn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),mwe(e)}const xwe=/^[^#]+#/;function kwe(e,t){return e.replace(xwe,"#")+t}function Cwe(e,t){const o=document.documentElement.getBoundingClientRect(),l=e.getBoundingClientRect();return{behavior:t.behavior,left:l.left-o.left-(t.left||0),top:l.top-o.top-(t.top||0)}}const Ku=()=>({left:window.pageXOffset,top:window.pageYOffset});function $we(e){let t;if("el"in e){const o=e.el,l=typeof o=="string"&&o.startsWith("#"),r=typeof o=="string"?l?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!r)return;t=Cwe(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Av(e,t){return(history.state?history.state.position-t:-1)+e}const x2=new Map;function Swe(e,t){x2.set(e,t)}function zwe(e){const t=x2.get(e);return x2.delete(e),t}let Ewe=()=>location.protocol+"//"+location.host;function M_(e,t){const{pathname:o,search:l,hash:r}=t,n=e.indexOf("#");if(n>-1){let i=r.includes(e.slice(n))?e.slice(n).length:1,c=r.slice(i);return c[0]!=="/"&&(c="/"+c),Mv(c,"")}return Mv(o,e)+l+r}function Mwe(e,t,o,l){let r=[],n=[],a=null;const i=({state:f})=>{const h=M_(e,location),v=o.value,m=t.value;let g=0;if(f){if(o.value=h,t.value=f,a&&a===v){a=null;return}g=m?f.position-m.position:0}else l(h);r.forEach(_=>{_(o.value,v,{delta:g,type:rs.pop,direction:g?g>0?zi.forward:zi.back:zi.unknown})})};function c(){a=o.value}function u(f){r.push(f);const h=()=>{const v=r.indexOf(f);v>-1&&r.splice(v,1)};return n.push(h),h}function d(){const{history:f}=window;!f.state||f.replaceState(Tt({},f.state,{scroll:Ku()}),"")}function p(){for(const f of n)f();n=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",d),{pauseListeners:c,listen:u,destroy:p}}function Vv(e,t,o,l=!1,r=!1){return{back:e,current:t,forward:o,replaced:l,position:window.history.length,scroll:r?Ku():null}}function Twe(e){const{history:t,location:o}=window,l={value:M_(e,o)},r={value:t.state};r.value||n(l.value,{back:null,current:l.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function n(c,u,d){const p=e.indexOf("#"),f=p>-1?(o.host&&document.querySelector("base")?e:e.slice(p))+c:Ewe()+e+c;try{t[d?"replaceState":"pushState"](u,"",f),r.value=u}catch(h){console.error(h),o[d?"replace":"assign"](f)}}function a(c,u){const d=Tt({},t.state,Vv(r.value.back,c,r.value.forward,!0),u,{position:r.value.position});n(c,d,!0),l.value=c}function i(c,u){const d=Tt({},r.value,t.state,{forward:c,scroll:Ku()});n(d.current,d,!0);const p=Tt({},Vv(l.value,c,null),{position:d.position+1},u);n(c,p,!1),l.value=c}return{location:l,state:r,push:i,replace:a}}function Awe(e){e=wwe(e);const t=Twe(e),o=Mwe(e,t.state,t.location,t.replace);function l(n,a=!0){a||o.pauseListeners(),history.go(n)}const r=Tt({location:"",base:e,go:l,createHref:kwe.bind(null,e)},t,o);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Vwe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Awe(e)}function Owe(e){return typeof e=="string"||e&&typeof e=="object"}function T_(e){return typeof e=="string"||typeof e=="symbol"}const kr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},A_=Symbol("");var Ov;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ov||(Ov={}));function La(e,t){return Tt(new Error,{type:e,[A_]:!0},t)}function ql(e,t){return e instanceof Error&&A_ in e&&(t==null||!!(e.type&t))}const Pv="[^/]+?",Pwe={sensitive:!1,strict:!1,start:!0,end:!0},Lwe=/[.+*?^${}()[\]/\\]/g;function Iwe(e,t){const o=Tt({},Pwe,t),l=[];let r=o.start?"^":"";const n=[];for(const u of e){const d=u.length?[]:[90];o.strict&&!u.length&&(r+="/");for(let p=0;pt.length?t.length===1&&t[0]===40+40?1:-1:0}function Hwe(e,t){let o=0;const l=e.score,r=t.score;for(;o0&&t[t.length-1]<0}const Nwe={type:0,value:""},Bwe=/[a-zA-Z0-9_]/;function Dwe(e){if(!e)return[[]];if(e==="/")return[[Nwe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${u}": ${h}`)}let o=0,l=o;const r=[];let n;function a(){n&&r.push(n),n=[]}let i=0,c,u="",d="";function p(){!u||(o===0?n.push({type:0,value:u}):o===1||o===2||o===3?(n.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),n.push({type:1,value:u,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=c}for(;i{a(w)}:Si}function a(d){if(T_(d)){const p=l.get(d);p&&(l.delete(d),o.splice(o.indexOf(p),1),p.children.forEach(a),p.alias.forEach(a))}else{const p=o.indexOf(d);p>-1&&(o.splice(p,1),d.record.name&&l.delete(d.record.name),d.children.forEach(a),d.alias.forEach(a))}}function i(){return o}function c(d){let p=0;for(;p=0&&(d.record.path!==o[p].record.path||!V_(d,o[p]));)p++;o.splice(p,0,d),d.record.name&&!Rv(d)&&l.set(d.record.name,d)}function u(d,p){let f,h={},v,m;if("name"in d&&d.name){if(f=l.get(d.name),!f)throw La(1,{location:d});m=f.record.name,h=Tt(Iv(p.params,f.keys.filter(w=>!w.optional).map(w=>w.name)),d.params&&Iv(d.params,f.keys.map(w=>w.name))),v=f.stringify(h)}else if("path"in d)v=d.path,f=o.find(w=>w.re.test(v)),f&&(h=f.parse(v),m=f.record.name);else{if(f=p.name?l.get(p.name):o.find(w=>w.re.test(p.path)),!f)throw La(1,{location:d,currentLocation:p});m=f.record.name,h=Tt({},p.params,d.params),v=f.stringify(h)}const g=[];let _=f;for(;_;)g.unshift(_.record),_=_.parent;return{name:m,path:v,params:h,matched:g,meta:qwe(g)}}return e.forEach(d=>n(d)),{addRoute:n,resolve:u,removeRoute:a,getRoutes:i,getRecordMatcher:r}}function Iv(e,t){const o={};for(const l of t)l in e&&(o[l]=e[l]);return o}function Kwe(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Wwe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Wwe(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const l in e.components)t[l]=typeof o=="boolean"?o:o[l];return t}function Rv(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function qwe(e){return e.reduce((t,o)=>Tt(t,o.meta),{})}function Hv(e,t){const o={};for(const l in e)o[l]=l in t?t[l]:e[l];return o}function V_(e,t){return t.children.some(o=>o===e||V_(e,o))}const O_=/#/g,Uwe=/&/g,Ywe=/\//g,Gwe=/=/g,Xwe=/\?/g,P_=/\+/g,Jwe=/%5B/g,Zwe=/%5D/g,L_=/%5E/g,Qwe=/%60/g,I_=/%7B/g,exe=/%7C/g,R_=/%7D/g,txe=/%20/g;function Rf(e){return encodeURI(""+e).replace(exe,"|").replace(Jwe,"[").replace(Zwe,"]")}function oxe(e){return Rf(e).replace(I_,"{").replace(R_,"}").replace(L_,"^")}function k2(e){return Rf(e).replace(P_,"%2B").replace(txe,"+").replace(O_,"%23").replace(Uwe,"%26").replace(Qwe,"`").replace(I_,"{").replace(R_,"}").replace(L_,"^")}function lxe(e){return k2(e).replace(Gwe,"%3D")}function rxe(e){return Rf(e).replace(O_,"%23").replace(Xwe,"%3F")}function nxe(e){return e==null?"":rxe(e).replace(Ywe,"%2F")}function Jc(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function axe(e){const t={};if(e===""||e==="?")return t;const l=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&k2(n)):[l&&k2(l)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function ixe(e){const t={};for(const o in e){const l=e[o];l!==void 0&&(t[o]=Cl(l)?l.map(r=>r==null?null:""+r):l==null?l:""+l)}return t}const sxe=Symbol(""),Bv=Symbol(""),Wu=Symbol(""),Hf=Symbol(""),C2=Symbol("");function ni(){let e=[];function t(l){return e.push(l),()=>{const r=e.indexOf(l);r>-1&&e.splice(r,1)}}function o(){e=[]}return{add:t,list:()=>e,reset:o}}function Ar(e,t,o,l,r){const n=l&&(l.enterCallbacks[r]=l.enterCallbacks[r]||[]);return()=>new Promise((a,i)=>{const c=p=>{p===!1?i(La(4,{from:o,to:t})):p instanceof Error?i(p):Owe(p)?i(La(2,{from:t,to:p})):(n&&l.enterCallbacks[r]===n&&typeof p=="function"&&n.push(p),a())},u=e.call(l&&l.instances[r],t,o,c);let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(p=>i(p))})}function Gd(e,t,o,l){const r=[];for(const n of e)for(const a in n.components){let i=n.components[a];if(!(t!=="beforeRouteEnter"&&!n.instances[a]))if(cxe(i)){const u=(i.__vccOpts||i)[t];u&&r.push(Ar(u,o,l,n,a))}else{let c=i();r.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${n.path}"`));const d=hwe(u)?u.default:u;n.components[a]=d;const f=(d.__vccOpts||d)[t];return f&&Ar(f,o,l,n,a)()}))}}return r}function cxe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Dv(e){const t=Re(Wu),o=Re(Hf),l=S(()=>t.resolve(s(e.to))),r=S(()=>{const{matched:c}=l.value,{length:u}=c,d=c[u-1],p=o.matched;if(!d||!p.length)return-1;const f=p.findIndex(Pa.bind(null,d));if(f>-1)return f;const h=Fv(c[u-2]);return u>1&&Fv(d)===h&&p[p.length-1].path!==h?p.findIndex(Pa.bind(null,c[u-2])):f}),n=S(()=>r.value>-1&&fxe(o.params,l.value.params)),a=S(()=>r.value>-1&&r.value===o.matched.length-1&&E_(o.params,l.value.params));function i(c={}){return pxe(c)?t[s(e.replace)?"replace":"push"](s(e.to)).catch(Si):Promise.resolve()}return{route:l,href:S(()=>l.value.href),isActive:n,isExactActive:a,navigate:i}}const uxe=te({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Dv,setup(e,{slots:t}){const o=wt(Dv(e)),{options:l}=Re(Wu),r=S(()=>({[jv(e.activeClass,l.linkActiveClass,"router-link-active")]:o.isActive,[jv(e.exactActiveClass,l.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const n=t.default&&t.default(o);return e.custom?n:Fe("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},n)}}}),dxe=uxe;function pxe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function fxe(e,t){for(const o in t){const l=t[o],r=e[o];if(typeof l=="string"){if(l!==r)return!1}else if(!Cl(r)||r.length!==l.length||l.some((n,a)=>n!==r[a]))return!1}return!0}function Fv(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const jv=(e,t,o)=>e!=null?e:t!=null?t:o,hxe=te({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const l=Re(C2),r=S(()=>e.route||l.value),n=Re(Bv,0),a=S(()=>{let u=s(n);const{matched:d}=r.value;let p;for(;(p=d[u])&&!p.components;)u++;return u}),i=S(()=>r.value.matched[a.value]);st(Bv,S(()=>a.value+1)),st(sxe,i),st(C2,r);const c=V();return ve(()=>[c.value,i.value,e.name],([u,d,p],[f,h,v])=>{d&&(d.instances[p]=u,h&&h!==d&&u&&u===f&&(d.leaveGuards.size||(d.leaveGuards=h.leaveGuards),d.updateGuards.size||(d.updateGuards=h.updateGuards))),u&&d&&(!h||!Pa(d,h)||!f)&&(d.enterCallbacks[p]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=r.value,d=e.name,p=i.value,f=p&&p.components[d];if(!f)return Kv(o.default,{Component:f,route:u});const h=p.props[d],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,g=Fe(f,Tt({},v,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(p.instances[d]=null)},ref:c}));return Kv(o.default,{Component:g,route:u})||g}}});function Kv(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const vxe=hxe;function mxe(e){const t=jwe(e.routes,e),o=e.parseQuery||axe,l=e.stringifyQuery||Nv,r=e.history,n=ni(),a=ni(),i=ni(),c=Et(kr);let u=kr;Yn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Ud.bind(null,j=>""+j),p=Ud.bind(null,nxe),f=Ud.bind(null,Jc);function h(j,re){let Y,W;return T_(j)?(Y=t.getRecordMatcher(j),W=re):W=j,t.addRoute(W,Y)}function v(j){const re=t.getRecordMatcher(j);re&&t.removeRoute(re)}function m(){return t.getRoutes().map(j=>j.record)}function g(j){return!!t.getRecordMatcher(j)}function _(j,re){if(re=Tt({},re||c.value),typeof j=="string"){const U=Yd(o,j,re.path),Q=t.resolve({path:U.path},re),fe=r.createHref(U.fullPath);return Tt(U,Q,{params:f(Q.params),hash:Jc(U.hash),redirectedFrom:void 0,href:fe})}let Y;if("path"in j)Y=Tt({},j,{path:Yd(o,j.path,re.path).path});else{const U=Tt({},j.params);for(const Q in U)U[Q]==null&&delete U[Q];Y=Tt({},j,{params:p(j.params)}),re.params=p(re.params)}const W=t.resolve(Y,re),ce=j.hash||"";W.params=d(f(W.params));const ne=gwe(l,Tt({},j,{hash:oxe(ce),path:W.path})),xe=r.createHref(ne);return Tt({fullPath:ne,hash:ce,query:l===Nv?ixe(j.query):j.query||{}},W,{redirectedFrom:void 0,href:xe})}function w(j){return typeof j=="string"?Yd(o,j,c.value.path):Tt({},j)}function b(j,re){if(u!==j)return La(8,{from:re,to:j})}function x(j){return M(j)}function k(j){return x(Tt(w(j),{replace:!0}))}function z(j){const re=j.matched[j.matched.length-1];if(re&&re.redirect){const{redirect:Y}=re;let W=typeof Y=="function"?Y(j):Y;return typeof W=="string"&&(W=W.includes("?")||W.includes("#")?W=w(W):{path:W},W.params={}),Tt({query:j.query,hash:j.hash,params:"path"in W?{}:j.params},W)}}function M(j,re){const Y=u=_(j),W=c.value,ce=j.state,ne=j.force,xe=j.replace===!0,U=z(Y);if(U)return M(Tt(w(U),{state:typeof U=="object"?Tt({},ce,U.state):ce,force:ne,replace:xe}),re||Y);const Q=Y;Q.redirectedFrom=re;let fe;return!ne&&bwe(l,W,Y)&&(fe=La(16,{to:Q,from:W}),J(W,W,!0,!1)),(fe?Promise.resolve(fe):A(Q,W)).catch(we=>ql(we)?ql(we,2)?we:R(we):L(we,Q,W)).then(we=>{if(we){if(ql(we,2))return M(Tt({replace:xe},w(we.to),{state:typeof we.to=="object"?Tt({},ce,we.to.state):ce,force:ne}),re||Q)}else we=D(Q,W,!0,xe,ce);return O(Q,W,we),we})}function E(j,re){const Y=b(j,re);return Y?Promise.reject(Y):Promise.resolve()}function A(j,re){let Y;const[W,ce,ne]=gxe(j,re);Y=Gd(W.reverse(),"beforeRouteLeave",j,re);for(const U of W)U.leaveGuards.forEach(Q=>{Y.push(Ar(Q,j,re))});const xe=E.bind(null,j,re);return Y.push(xe),jn(Y).then(()=>{Y=[];for(const U of n.list())Y.push(Ar(U,j,re));return Y.push(xe),jn(Y)}).then(()=>{Y=Gd(ce,"beforeRouteUpdate",j,re);for(const U of ce)U.updateGuards.forEach(Q=>{Y.push(Ar(Q,j,re))});return Y.push(xe),jn(Y)}).then(()=>{Y=[];for(const U of j.matched)if(U.beforeEnter&&!re.matched.includes(U))if(Cl(U.beforeEnter))for(const Q of U.beforeEnter)Y.push(Ar(Q,j,re));else Y.push(Ar(U.beforeEnter,j,re));return Y.push(xe),jn(Y)}).then(()=>(j.matched.forEach(U=>U.enterCallbacks={}),Y=Gd(ne,"beforeRouteEnter",j,re),Y.push(xe),jn(Y))).then(()=>{Y=[];for(const U of a.list())Y.push(Ar(U,j,re));return Y.push(xe),jn(Y)}).catch(U=>ql(U,8)?U:Promise.reject(U))}function O(j,re,Y){for(const W of i.list())W(j,re,Y)}function D(j,re,Y,W,ce){const ne=b(j,re);if(ne)return ne;const xe=re===kr,U=Yn?history.state:{};Y&&(W||xe?r.replace(j.fullPath,Tt({scroll:xe&&U&&U.scroll},ce)):r.push(j.fullPath,ce)),c.value=j,J(j,re,Y,xe),R()}let I;function N(){I||(I=r.listen((j,re,Y)=>{if(!he.listening)return;const W=_(j),ce=z(W);if(ce){M(Tt(ce,{replace:!0}),W).catch(Si);return}u=W;const ne=c.value;Yn&&Swe(Av(ne.fullPath,Y.delta),Ku()),A(W,ne).catch(xe=>ql(xe,12)?xe:ql(xe,2)?(M(xe.to,W).then(U=>{ql(U,20)&&!Y.delta&&Y.type===rs.pop&&r.go(-1,!1)}).catch(Si),Promise.reject()):(Y.delta&&r.go(-Y.delta,!1),L(xe,W,ne))).then(xe=>{xe=xe||D(W,ne,!1),xe&&(Y.delta&&!ql(xe,8)?r.go(-Y.delta,!1):Y.type===rs.pop&&ql(xe,20)&&r.go(-1,!1)),O(W,ne,xe)}).catch(Si)}))}let B=ni(),F=ni(),H;function L(j,re,Y){R(j);const W=F.list();return W.length?W.forEach(ce=>ce(j,re,Y)):console.error(j),Promise.reject(j)}function P(){return H&&c.value!==kr?Promise.resolve():new Promise((j,re)=>{B.add([j,re])})}function R(j){return H||(H=!j,N(),B.list().forEach(([re,Y])=>j?Y(j):re()),B.reset()),j}function J(j,re,Y,W){const{scrollBehavior:ce}=e;if(!Yn||!ce)return Promise.resolve();const ne=!Y&&zwe(Av(j.fullPath,0))||(W||!Y)&&history.state&&history.state.scroll||null;return Ne().then(()=>ce(j,re,ne)).then(xe=>xe&&$we(xe)).catch(xe=>L(xe,j,re))}const oe=j=>r.go(j);let G;const le=new Set,he={currentRoute:c,listening:!0,addRoute:h,removeRoute:v,hasRoute:g,getRoutes:m,resolve:_,options:e,push:x,replace:k,go:oe,back:()=>oe(-1),forward:()=>oe(1),beforeEach:n.add,beforeResolve:a.add,afterEach:i.add,onError:F.add,isReady:P,install(j){const re=this;j.component("RouterLink",dxe),j.component("RouterView",vxe),j.config.globalProperties.$router=re,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>s(c)}),Yn&&!G&&c.value===kr&&(G=!0,x(r.location).catch(ce=>{}));const Y={};for(const ce in kr)Y[ce]=S(()=>c.value[ce]);j.provide(Wu,re),j.provide(Hf,wt(Y)),j.provide(C2,c);const W=j.unmount;le.add(j),j.unmount=function(){le.delete(j),le.size<1&&(u=kr,I&&I(),I=null,c.value=kr,G=!1,H=!1),W()}}};return he}function jn(e){return e.reduce((t,o)=>t.then(()=>o()),Promise.resolve())}function gxe(e,t){const o=[],l=[],r=[],n=Math.max(t.matched.length,e.matched.length);for(let a=0;aPa(u,i))?l.push(i):o.push(i));const c=e.matched[a];c&&(t.matched.find(u=>Pa(u,c))||r.push(c))}return[o,l,r]}function Nf(){return Re(Wu)}function Xa(){return Re(Hf)}const Eo=(e,t)=>{const o=e.__vccOpts||e;for(const[l,r]of t)o[l]=r;return o};function bxe(e){return e.indexOf("http://")!==-1||e.indexOf("https://")!==-1}function Wv(e){return/^(https?:|mailto:|tel:)/.test(e)}const ns=Ua("app",{state:()=>({sidebar:{opened:pl.get("sidebarStatus")?!!+pl.get("sidebarStatus"):!0,withoutAnimation:!1,hide:!1},device:"desktop",size:pl.get("size")||"default"}),actions:{toggleSideBar(e){if(this.sidebar.hide)return!1;this.sidebar.opened=!this.sidebar.opened,this.sidebar.withoutAnimation=e,this.sidebar.opened?pl.set("sidebarStatus",1):pl.set("sidebarStatus",0)},closeSideBar(e){pl.set("sidebarStatus",0),this.sidebar.opened=!1,this.sidebar.withoutAnimation=e},toggleDevice(e){this.device=e},setSize(e){this.size=e,pl.set("size",e)},toggleSideBarHide(e){this.sidebar.hide=e}}});const _xe={class:"menu-title"},yxe={class:"submenu-container"},wxe={class:"timeline"},xxe={key:0,class:"timeline-line"},kxe={class:"timeline-item"},Cxe=["onClick"],$xe={key:1,class:"timeline-line"},Sxe={__name:"index",setup(e){const t=Xa(),o=Nf(),l=ns(),r=Ya(),n=tr(),a=S(()=>(console.log("\u4FA7\u8FB9\u680F\u8DEF\u7531\u6570\u636E:",n.sidebarRouters),n.sidebarRouters)),i=S(()=>r.sidebarLogo);S(()=>r.sideTheme),S(()=>r.theme),S(()=>!l.sidebar.opened);const c=V(""),u=V([]),d=()=>{const M=localStorage.getItem("openedMenus");return M?JSON.parse(M):[]};u.value=d();const p=M=>{localStorage.setItem("openedMenus",JSON.stringify(M))},f=M=>{u.value.includes(M)||(u.value.push(M),p(u.value))},h=M=>{const E=u.value.indexOf(M);E!==-1&&(u.value.splice(E,1),p(u.value))},v=S(()=>{const{meta:M,path:E}=t;return M.activeMenu?M.activeMenu:E});function m(M){const E=x(M);E&&(!E.children||E.children.length===0)&&(w(M)?window.open(M,"_blank"):o.push(M))}function g(M,E){const A=_(E,M);c.value=A,E&&!u.value.includes(E)&&(u.value.push(E),p(u.value)),w(M)?window.open(M,"_blank"):o.push(A)}function _(M,E){return w(E)?E:w(M)?M:b(M+"/"+E)}function w(M){return/^(https?:|mailto:|tel:)/.test(M)}function b(M){if(M.length===0||!M||M=="undefined")return M;let E=M.replace("//","/");return E[E.length-1]==="/"?E.slice(0,E.length-1):E}function x(M){if(!M||!a.value)return null;for(const E of a.value){if(E&&E.path===M)return E;if(E&&E.children&&E.children.length>0){for(const A of E.children)if(A&&A.path===M)return A}}return null}function k(M){if(!M||!a.value)return null;for(const E of a.value)if(E&&E.children&&E.children.length>0){for(const A of E.children)if(A&&_(E.path,A.path)===M)return E.path}return null}const z=M=>{if(!M||!M.children)return!1;const E=c.value;return M.children.some(A=>{const O=_(M.path,A.path);return E===O})};return Ze(()=>{u.value=d();const M=t.path;if(M){c.value=M;const E=k(M);E&&(u.value.includes(E)||(u.value.push(E),p(u.value)))}}),ve(()=>t.path,M=>{if(M){c.value=M;const E=k(M);E&&!u.value.includes(E)&&(u.value.push(E),p(u.value))}}),ve(()=>n.sidebarRouters,M=>{M&&M.length>0&&Ne(()=>{const E=t.path;if(E){c.value=E;const A=k(E);A&&!u.value.includes(A)&&(u.value.push(A),p(u.value))}})},{deep:!0}),(M,E)=>{const A=Oe("svg-icon"),O=Oe("el-icon"),D=Oe("el-menu-item"),I=Oe("el-sub-menu"),N=Oe("el-menu"),B=Oe("el-scrollbar");return y(),$("div",{class:T({"has-logo":s(i)}),style:{backgroundColor:"#292C38"}},[K(B,{"wrap-class":"scrollbar-wrapper"},{default:Z(()=>[K(N,{class:"sidebar","default-active":s(v),"default-openeds":s(u),onSelect:m,onOpen:f,onClose:h,"background-color":"#292C38","text-color":"#96A0B5","active-text-color":"#fff","unique-opened":!0},{default:Z(()=>[(y(!0),$(Pe,null,ut(s(a),(F,H)=>(y(),$(Pe,{key:F&&F.path?F.path+H:H},[F&&!F.hidden?(y(),$(Pe,{key:0},[!F.children||F.children.length===0?(y(),ue(D,{key:0,index:F.path||""},{default:Z(()=>{var L;return[K(O,null,{default:Z(()=>{var P;return[K(A,{"icon-class":((P=F.meta)==null?void 0:P.icon)||""},null,8,["icon-class"])]}),_:2},1024),C("span",null,Ce(((L=F.meta)==null?void 0:L.title)||"\u672A\u547D\u540D\u83DC\u5355"),1)]}),_:2},1032,["index"])):(y(),ue(I,{key:1,index:F.path||"",class:T({"is-active":z(F)})},{title:Z(()=>{var L;return[K(O,null,{default:Z(()=>{var P;return[K(A,{"icon-class":((P=F.meta)==null?void 0:P.icon)||""},null,8,["icon-class"])]}),_:2},1024),C("span",_xe,Ce(((L=F.meta)==null?void 0:L.title)||"\u672A\u547D\u540D\u83DC\u5355"),1)]}),default:Z(()=>[C("div",yxe,[C("div",wxe,[(y(!0),$(Pe,null,ut(F.children,(L,P)=>{var R;return y(),$(Pe,{key:L&&L.path?L.path:P},[L&&!L.hidden?(y(),$(Pe,{key:0},[P===0?(y(),$("div",xxe)):ae("",!0),C("div",kxe,[C("div",{class:T(["timeline-dot",{active:s(c)===_(F.path,L.path)}])},null,2),C("div",{class:T(["timeline-content",{active:s(c)===_(F.path,L.path)}]),onClick:J=>g(L.path||"",F.path||"")},Ce(((R=L.meta)==null?void 0:R.title)||"\u672A\u547D\u540D\u83DC\u5355"),11,Cxe)]),P(y(),$("div",{style:Be("height:"+s(t))},[C("iframe",{id:e.iframeId,style:{width:"100%",height:"100%"},src:e.src,frameborder:"no"},null,8,Exe)],4))}},ct=Ua("tags-view",{state:()=>({visitedViews:[],cachedViews:[],iframeViews:[],defaultPages:{"/car":"/car/monitor","/system":"/system/role","/system/operlog":"/system/operlog","/road":"road/intersection"}}),actions:{getMainPath(e){const t=Object.keys(this.defaultPages);for(const o of t)if(e.startsWith(o+"/"))return o;return null},getDefaultPage(e){const t=this.getMainPath(e);return t?this.defaultPages[t]:null},isDefaultPage(e){return e==="/system/operlog"?!1:Object.values(this.defaultPages).includes(e)},addView(e){this.addVisitedView(e),this.addCachedView(e)},addIframeView(e){this.iframeViews.some(t=>t.path===e.path)||this.iframeViews.push(Object.assign({},e,{title:e.meta.title||"no-name"}))},addVisitedView(e){this.visitedViews.some(t=>t.path===e.path)||this.visitedViews.push(Object.assign({},e,{title:e.meta.title||"no-name"}))},addCachedView(e){this.cachedViews.includes(e.name)||e.meta.noCache||this.cachedViews.push(e.name)},delView(e){return new Promise(t=>{this.delVisitedView(e),this.delCachedView(e),t({visitedViews:[...this.visitedViews],cachedViews:[...this.cachedViews]})})},delVisitedView(e){return new Promise(t=>{if(this.isDefaultPage(e.path)){t([...this.visitedViews]);return}for(const[o,l]of this.visitedViews.entries())if(l.path===e.path){this.visitedViews.splice(o,1);break}this.iframeViews=this.iframeViews.filter(o=>o.path!==e.path),t([...this.visitedViews])})},delIframeView(e){return new Promise(t=>{this.iframeViews=this.iframeViews.filter(o=>o.path!==e.path),t([...this.iframeViews])})},delCachedView(e){return new Promise(t=>{const o=this.cachedViews.indexOf(e.name);o>-1&&this.cachedViews.splice(o,1),t([...this.cachedViews])})},delOthersViews(e){return new Promise(t=>{this.delOthersVisitedViews(e),this.delOthersCachedViews(e),t({visitedViews:[...this.visitedViews],cachedViews:[...this.cachedViews]})})},delOthersVisitedViews(e){return new Promise(t=>{this.visitedViews=this.visitedViews.filter(o=>o.meta.affix||o.path===e.path),this.iframeViews=this.iframeViews.filter(o=>o.path===e.path),t([...this.visitedViews])})},delOthersCachedViews(e){return new Promise(t=>{const o=this.cachedViews.indexOf(e.name);o>-1?this.cachedViews=this.cachedViews.slice(o,o+1):this.cachedViews=[],t([...this.cachedViews])})},delAllViews(e){return new Promise(t=>{this.delAllVisitedViews(e),this.delAllCachedViews(e),t({visitedViews:[...this.visitedViews],cachedViews:[...this.cachedViews]})})},delAllVisitedViews(e){return new Promise(t=>{const o=this.visitedViews.filter(l=>l.meta.affix||this.isDefaultPage(l.path));this.visitedViews=o,this.iframeViews=[],t([...this.visitedViews])})},delAllCachedViews(e){return new Promise(t=>{this.cachedViews=[],t([...this.cachedViews])})},updateVisitedView(e){for(let t of this.visitedViews)if(t.path===e.path){t=Object.assign(t,e);break}},delRightTags(e){return new Promise(t=>{const o=this.visitedViews.findIndex(l=>l.path===e.path);o!==-1&&(this.visitedViews=this.visitedViews.filter((l,r)=>{if(r<=o||l.meta&&l.meta.affix)return!0;const n=this.cachedViews.indexOf(l.name);if(n>-1&&this.cachedViews.splice(n,1),l.meta.link){const a=this.iframeViews.findIndex(i=>i.path===l.path);this.iframeViews.splice(a,1)}return!1}),t([...this.visitedViews]))})},delLeftTags(e){return new Promise(t=>{const o=this.visitedViews.findIndex(l=>l.path===e.path);o!==-1&&(this.visitedViews=this.visitedViews.filter((l,r)=>{if(r>=o||l.meta&&l.meta.affix)return!0;const n=this.cachedViews.indexOf(l.name);if(n>-1&&this.cachedViews.splice(n,1),l.meta.link){const a=this.iframeViews.findIndex(i=>i.path===l.path);this.iframeViews.splice(a,1)}return!1}),t([...this.visitedViews]))})}}}),Mxe={__name:"index",setup(e){const t=Xa(),o=ct();return(l,r)=>(y(),ue(G2,{name:"fade-transform",mode:"out-in"},{default:Z(()=>[(y(!0),$(Pe,null,ut(s(o).iframeViews,(n,a)=>Xe((y(),ue(s(H_),{key:n.path,iframeId:"iframe"+a,src:n.meta.link},null,8,["iframeId","src"])),[[_t,s(t).path===n.path]])),128))]),_:1}))}};const Txe={class:"app-main"},Axe={__name:"AppMain",setup(e){const t=ct();return(o,l)=>{const r=Oe("router-view");return y(),$("section",Txe,[K(r,null,{default:Z(({Component:n,route:a})=>[K(Kt,{name:"fade-transform",mode:"out-in"},{default:Z(()=>[(y(),ue(J5,{include:s(t).cachedViews},[a.meta.link?ae("",!0):(y(),ue(pt(n),{key:a.path}))],1032,["include"]))]),_:2},1024)]),_:1}),K(s(Mxe))])}}},Vxe=Eo(Axe,[["__scopeId","data-v-4b51968d"]]),Oxe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAG3SURBVHgB7ZeNTYUwEICPFwd4G9gR2EA2wA1wAxnhOcEbQTZQJwAnwA1gA9jgvOaVcFwKbaHRxPglTfvg/nq01z6Af3aCiIpaS62jdoafhpw+4UwBOznBL+MMQKeX2sWk+9FDvjSyJRyFfeeJjr2zfgJc0mkbWz5OG85T6lpqKXtcgZsLGytqtSsIm3NlouczSYXM6iJc0Vfgi1BubdsMHbvA8vlqH9/ScIcrexw9tqElE+6FKRQU+AVabMhlTG6Q70/SKNwWjqZKkqSHg5CNhrrG/NRbOlsNgMjZuIJ4vLBxsRXAtNJHivwT4vHFxhlsBKAsCoehyYzU9cLHMgCx4EYIw0e+tz28g53QrCoK+t6MPyAGvPhAZHhR2hLqpv2KES8ZpiBZJycX4bvptfMU4pGxcbMqJaqWX+32QFTXhxBh5wXEw3nJ7HU+CovajaFn+dKWMjYmcl/FNx71niBIJxXZvIYon4WynoX3zdeknc/ceqdwGZFn+ZSNwpYRI/9s0Ql3zozqTLyinQHnPybDiswVY9QTMpLj8nrlokbXdjMkEADeLqZ6LehewXyy9aY1ukU+yv8438qEA6WZmJDxAAAAAElFTkSuQmCC";const Pxe=e=>(B5("data-v-66fb18de"),e=e(),D5(),e),Lxe={class:"header-container navbar"},Ixe=Pxe(()=>C("div",{class:"text"},"\u9752\u5C9B\u673A\u573A\u65E0\u4EBA\u9A7E\u9A76\u534F\u540C\u4E91\u5E73\u53F0",-1)),Rxe={class:"tabs-container"},Hxe=["onClick"],Nxe={__name:"Navbar",setup(e){const t=Nf(),o=Xa(),l=ns(),r=Hr(),n=tr(),a=[{id:"platform",name:"\u5E73\u53F0\u6982\u89C8",path:"/platform"},{id:"car",name:"\u8F66\u8F86\u7BA1\u7406",path:"/car"},{id:"road",name:"\u8DEF\u51B5\u7BA1\u7406",path:"/road"},{id:"system",name:"\u7CFB\u7EDF\u7BA1\u7406",path:"/system"}];function i(d){return o.path.startsWith(d)}function c(d){console.log("\u70B9\u51FBTab\u8DEF\u5F84:",d),d==="/platform"?(l.toggleSideBarHide(!0),n.setCurrentTab("platform"),t.push(d)):d==="/car"?(l.toggleSideBarHide(!1),n.setCurrentTab("car"),t.push("/car/monitor")):d==="/road"?(console.log("\u5207\u6362\u5230\u8DEF\u51B5\u7BA1\u7406Tab"),l.toggleSideBarHide(!1),n.setCurrentTab("road"),t.push("/road/intersection")):d==="/system"?(l.toggleSideBarHide(!1),n.setCurrentTab("system"),t.push("/system/role")):t.push(d)}function u(){Mr.confirm("\u786E\u5B9A\u6CE8\u9500\u5E76\u9000\u51FA\u7CFB\u7EDF\u5417\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{r.logOut().then(()=>{t.push("/login")})}).catch(()=>{})}return(d,p)=>(y(),$("div",Lxe,[Ixe,C("div",Rxe,[(y(),$(Pe,null,ut(a,f=>C("div",{key:f.id,class:T(["tab-item",{active:i(f.path)}]),onClick:h=>c(f.path)},Ce(f.name),11,Hxe)),64))]),C("img",{src:Oxe,alt:"close",class:"close-icon",onClick:u})]))}},Bxe=Eo(Nxe,[["__scopeId","data-v-66fb18de"]]);function Dxe(e){document.documentElement.style.setProperty("--el-color-primary",e);for(let t=1;t<=9;t++)document.documentElement.style.setProperty(`--el-color-primary-light-${t}`,`${Fxe(e,t/10)}`);for(let t=1;t<=9;t++)document.documentElement.style.setProperty(`--el-color-primary-dark-${t}`,`${jxe(e,t/10)}`)}function N_(e){e=e.replace("#","");let t=e.match(/../g);for(let o=0;o<3;o++)t[o]=parseInt(t[o],16);return t}function B_(e,t,o){let l=[e.toString(16),t.toString(16),o.toString(16)];for(let r=0;r<3;r++)l[r].length==1&&(l[r]=`0${l[r]}`);return`#${l.join("")}`}function Fxe(e,t){let o=N_(e);for(let l=0;l<3;l++)o[l]=Math.floor((255-o[l])*t+o[l]);return B_(o[0],o[1],o[2])}function jxe(e,t){let o=N_(e);for(let l=0;l<3;l++)o[l]=Math.floor(o[l]*(1-t));return B_(o[0],o[1],o[2])}const Kxe={__name:"ScrollPane",setup(e,{expose:t,emit:o}){const l=V(4),{proxy:r}=Qe(),n=S(()=>r.$refs.scrollContainer.$refs.wrap$);Ze(()=>{n.value.addEventListener("scroll",i,!0)}),It(()=>{n.value.removeEventListener("scroll",i)});function a(p){const f=p.wheelDelta||-p.deltaY*40,h=n.value;h.scrollLeft=h.scrollLeft+f/4}const i=()=>{o("scroll")},c=ct(),u=S(()=>c.visitedViews);function d(p){const h=r.$refs.scrollContainer.$el.offsetWidth,v=n.value;let m=null,g=null;if(u.value.length>0&&(m=u.value[0],g=u.value[u.value.length-1]),m===p)v.scrollLeft=0;else if(g===p)v.scrollLeft=v.scrollWidth-h;else{const _=document.getElementsByClassName("tags-view-item"),w=u.value.findIndex(M=>M===p);let b=null,x=null;for(const M in _)M!=="length"&&Object.hasOwnProperty.call(_,M)&&(_[M].dataset.path===u.value[w-1].path&&(b=_[M]),_[M].dataset.path===u.value[w+1].path&&(x=_[M]));const k=x.offsetLeft+x.offsetWidth+l.value,z=b.offsetLeft-l.value;k>v.scrollLeft+h?v.scrollLeft=k-h:z{const h=Oe("el-scrollbar");return y(),ue(h,{ref:"scrollContainer",vertical:!1,class:"scroll-container",onWheel:Ue(a,["prevent"])},{default:Z(()=>[ge(p.$slots,"default",{},void 0,!0)]),_:3},8,["onWheel"])}}},Wxe=Eo(Kxe,[["__scopeId","data-v-9ec0345c"]]);const qxe={id:"tags-view-container",class:"tags-view-container"},Uxe=["onClick"],Yxe={__name:"index",setup(e){const t=V(!1),o=V(0),l=V(0),r=V({}),n=V([]),a=V(null),{proxy:i}=Qe(),c=Xa(),u=Nf(),d=S(()=>ct().visitedViews),p=S(()=>tr().routes);S(()=>Ya().theme);const f={"/car":"/car/monitor","/system":"/system/role","/road":"/road/intersection"};function h(){const j={},re=[];try{u.options.routes.forEach(W=>{if(W.children&&W.children.length>0&&!W.hidden&&W.meta&&W.meta.title){re.push(W.meta.title);let ce=null;for(const ne of W.children)if(!ne.hidden){ce=ne;break}if(ce&&W.path){const ne=W.path,xe=ne+"/"+(ce.path||"");j[ne]=xe}}})}catch(Y){console.error("\u83B7\u53D6\u83DC\u5355\u4FE1\u606F\u65F6\u51FA\u9519:",Y)}return console.log("\u4ECE\u8DEF\u7531\u4E2D\u83B7\u53D6\u7684\u83DC\u5355\u4FE1\u606F:",j,"\u4E3B\u83DC\u5355\u5217\u8868:",re),{menuInfo:j,mainMenus:re}}V({});const v=V([]);function m(j){if(j.startsWith("/system/person/")||j==="/system/user"||j==="/system/user/index")return"/system";const re=Object.keys(f);for(const Y of re)if(j.startsWith(Y+"/"))return Y;return null}function g(j){return Object.values(f).includes(j.path)}function _(j){return Object.keys(f).includes(j)}function w(j){return Object.keys(f).includes(j.path)?!0:j.meta&&j.meta.title?["\u8F66\u8F86\u7BA1\u7406","\u7CFB\u7EDF\u7BA1\u7406","\u8DEF\u51B5\u7BA1\u7406","\u7528\u6237\u7BA1\u7406","\u5E73\u53F0\u6982\u89C8"].includes(j.meta.title):!1}function b(j){if(j.path==="/car/monitor")return c.path.startsWith("/car/");if(j.path==="/system/role"||j.path==="/system/operlog")return c.path.startsWith("/system/");if(j.path==="/system/user"||j.path==="/system/user/index"||j.meta&&j.meta.title==="\u7528\u6237\u7BA1\u7406")return!!(c.path.includes("/user")||c.meta&&c.meta.title==="\u7528\u6237\u7BA1\u7406");if(j.meta&&j.meta.title&&v.value.includes(j.meta.title)||_(j.path))return!1;if(j.path===c.path)return!0;const re=m(c.path);return!!(!re||j.path.startsWith(re+"/"))}function x(){if(!c.path.includes("/user")&&!(c.meta&&c.meta.title==="\u7528\u6237\u7BA1\u7406"))return;if(!d.value.some(re=>re.path==="/system/user"||re.path==="/system/person/user"||re.meta&&re.meta.title==="\u7528\u6237\u7BA1\u7406")){const re={path:"/system/user",name:"User",meta:{title:"\u7528\u6237\u7BA1\u7406"},fullPath:"/system/user"};ct().addVisitedView(re),console.log("\u624B\u52A8\u6DFB\u52A0\u7528\u6237\u7BA1\u7406\u6807\u7B7E")}}ve(c,j=>{var Y;console.log("Route changed to:",j.path,(Y=j.meta)==null?void 0:Y.title),console.log("\u5F53\u524D\u8BBF\u95EE\u6807\u7B7E\u6570:",d.value.length),console.log("\u5F53\u524D\u8BBF\u95EE\u6807\u7B7E:",d.value.map(W=>({path:W.path,title:W.title}))),d.value.filter(W=>W.title==="\u83DC\u5355\u7BA1\u7406"||W.path==="/system/menu").length>0&&(console.log("\u53D1\u73B0\u83DC\u5355\u7BA1\u7406\u6807\u7B7E\uFF0C\u5C06\u5176\u79FB\u9664"),ct().visitedViews=d.value.filter(W=>W.title!=="\u83DC\u5355\u7BA1\u7406"&&W.path!=="/system/menu")),I(),N(),(j.path.includes("/user")||j.meta&&j.meta.title==="\u7528\u6237\u7BA1\u7406")&&x()}),ve(t,j=>{j?document.body.addEventListener("click",G):document.body.removeEventListener("click",G)}),Ze(()=>{var Y;const{menuInfo:j,mainMenus:re}=h();if(Object.keys(j).forEach(W=>{f[W]||(f[W]=j[W])}),v.value=[...new Set(["\u8F66\u8F86\u7BA1\u7406","\u7CFB\u7EDF\u7BA1\u7406","\u7528\u6237\u7BA1\u7406","\u5E73\u53F0\u6982\u89C8","\u4EBA\u5458\u7BA1\u7406",...re])],console.log("\u5408\u5E76\u540E\u7684\u9ED8\u8BA4\u9875\u9762\u914D\u7F6E:",f),console.log("\u66F4\u65B0\u540E\u7684\u4E3B\u83DC\u5355\u6807\u9898\u5217\u8868:",v.value),D(),I(),_(c.path)){const W=f[c.path];W&&c.path!==W&&u.replace(W)}console.log("Tags initialized, current route:",c.path,(Y=c.meta)==null?void 0:Y.title),(c.path.includes("/user")||c.meta&&c.meta.title==="\u7528\u6237\u7BA1\u7406")&&x()});function k(j){return console.log("\u68C0\u67E5\u6807\u7B7E\u662F\u5426\u6D3B\u52A8:",j.path,"\u5F53\u524D\u8DEF\u7531:",c.path,j.path===c.path),j.path===c.path}function z(j){return k(j)?{"background-color":"transparent",color:"#5690E7","border-color":"none"}:{"background-color":"transparent",color:"#ffffff","border-color":"transparent"}}function M(j){var re;return console.log("\u68C0\u67E5\u662F\u5426\u56FA\u5B9A\u6807\u7B7E:",j.path,j.title,(re=j.meta)==null?void 0:re.affix),j.path==="/system/operlog"?!1:j.meta&&j.meta.affix||g(j)}function E(){try{return r.value.fullPath===d.value[1].fullPath||r.value.fullPath==="/index"}catch{return!1}}function A(){try{return r.value.fullPath===d.value[d.value.length-1].fullPath}catch{return!1}}function O(j,re=""){let Y=[];return j.forEach(W=>{if(W.meta&&W.meta.affix){const ne=Ev(re+"/"+W.path);Y.push({fullPath:ne,path:ne,name:W.name,meta:{...W.meta}})}const ce=Ev(re+"/"+W.path);if(Object.values(f).includes(ce)&&Y.push({fullPath:ce,path:ce,name:W.name,meta:{...W.meta,affix:!0}}),W.children){const ne=O(W.children,W.path);ne.length>=1&&(Y=[...Y,...ne])}}),Y}function D(){const j=O(p.value);n.value=j;const re={fullPath:"/car/monitor",path:"/car/monitor",name:"CarMonitor",meta:{title:"\u8F66\u8F86\u76D1\u63A7",affix:!0}},Y={fullPath:"/system/role",path:"/system/role",name:"systemRole",meta:{title:"\u89D2\u8272\u7BA1\u7406",affix:!0}},W=n.value.some(ne=>ne.path==="/car/monitor"),ce=n.value.some(ne=>ne.path==="/system/role");W||n.value.push(re),ce||n.value.push(Y);for(const ne of n.value)ne.name&&ct().addVisitedView(ne)}function I(){var re;const{name:j}=c;if(console.log("Adding tags for route:",c.path,(re=c.meta)==null?void 0:re.title,"isMainMenu:",_(c.path)),c.path==="/system/user"||c.path==="/system/user/index"||c.meta&&c.meta.title==="\u7528\u6237\u7BA1\u7406"){console.log("\u7279\u522B\u5904\u7406\u7528\u6237\u7BA1\u7406\u9875\u9762");const Y=ct().visitedViews.filter(ne=>!ne.path.startsWith("/system/")||ne.path==="/system/role");ct().visitedViews=Y;const W={fullPath:"/system/role",path:"/system/role",name:"systemRole",meta:{title:"\u89D2\u8272\u7BA1\u7406",affix:!0}};if(!ct().visitedViews.some(ne=>ne.path==="/system/role")){const ne=ct().visitedViews.findIndex(xe=>xe.path==="/index");ne!==-1?ct().visitedViews.splice(ne+1,0,W):ct().visitedViews.unshift(W)}return ct().addView(c),!1}if(j){if(c.path.startsWith("/car/")&&c.path!=="/car/monitor"){const Y=ct().visitedViews.filter(ne=>!ne.path.startsWith("/car/")||ne.path==="/car/monitor");ct().visitedViews=Y;const W={fullPath:"/car/monitor",path:"/car/monitor",name:"CarMonitor",meta:{title:"\u8F66\u8F86\u76D1\u63A7",affix:!0}};if(!ct().visitedViews.some(ne=>ne.path==="/car/monitor")){const ne=ct().visitedViews.findIndex(xe=>xe.path==="/index");ne!==-1?ct().visitedViews.splice(ne+1,0,W):ct().visitedViews.unshift(W)}return ct().addView(c),!1}if(c.path==="/system/operlog"||c.meta&&c.meta.title==="\u64CD\u4F5C\u65E5\u5FD7"){console.log("\u7279\u522B\u5904\u7406\u64CD\u4F5C\u65E5\u5FD7\u9875\u9762");const Y=ct().visitedViews.filter(xe=>!xe.path.startsWith("/system/")||xe.path==="/system/role");ct().visitedViews=Y;const W={fullPath:"/system/role",path:"/system/role",name:"systemRole",meta:{title:"\u89D2\u8272\u7BA1\u7406",affix:!0}};if(!ct().visitedViews.some(xe=>xe.path==="/system/role")){const xe=ct().visitedViews.findIndex(U=>U.path==="/index");xe!==-1?ct().visitedViews.splice(xe+1,0,W):ct().visitedViews.unshift(W)}const ne={fullPath:"/system/operlog",path:"/system/operlog",name:"systemOperlog",meta:{title:"\u64CD\u4F5C\u65E5\u5FD7",icon:"form",affix:!1}};return ct().addVisitedView(ne),!1}if(c.path.startsWith("/system/")&&c.path!=="/system/role"&&c.path!=="/system/operlog"){const Y=ct().visitedViews.filter(ne=>!ne.path.startsWith("/system/")||ne.path==="/system/role"||ne.path==="/system/operlog");ct().visitedViews=Y;const W={fullPath:"/system/role",path:"/system/role",name:"systemRole",meta:{title:"\u89D2\u8272\u7BA1\u7406",affix:!0}};if(!ct().visitedViews.some(ne=>ne.path==="/system/role")){const ne=ct().visitedViews.findIndex(xe=>xe.path==="/index");ne!==-1?ct().visitedViews.splice(ne+1,0,W):ct().visitedViews.unshift(W)}return ct().addView(c),!1}if(c.path.startsWith("/road/")&&c.path!=="/road/intersection"){console.log("\u7279\u522B\u5904\u7406\u8DEF\u51B5\u7BA1\u7406\u9875\u9762:",c.path);const Y=ct().visitedViews.filter(ne=>!ne.path.startsWith("/road/")||ne.path==="/road/intersection");ct().visitedViews=Y;const W={fullPath:"/road/intersection",path:"/road/intersection",name:"Intersection",meta:{title:"\u8DEF\u53E3\u7BA1\u7406",icon:"intersection",affix:!0}};if(!ct().visitedViews.some(ne=>ne.path==="/road/intersection")){const ne=ct().visitedViews.findIndex(xe=>xe.path==="/index");ne!==-1?ct().visitedViews.splice(ne+1,0,W):ct().visitedViews.unshift(W)}return ct().addView(c),!1}if(_(c.path)||c.meta&&c.meta.title&&["\u8F66\u8F86\u7BA1\u7406","\u7CFB\u7EDF\u7BA1\u7406","\u8DEF\u51B5\u7BA1\u7406"].includes(c.meta.title)){const Y=f[c.path];if(Y&&c.path!==Y){let W=null;return Y==="/car/monitor"?W={fullPath:"/car/monitor",path:"/car/monitor",name:"CarMonitor",meta:{title:"\u8F66\u8F86\u76D1\u63A7",affix:!0}}:Y==="/system/role"?W={fullPath:"/system/role",path:"/system/role",name:"systemRole",meta:{title:"\u89D2\u8272\u7BA1\u7406",affix:!0}}:Y==="/road/intersection"&&(W={fullPath:"/road/intersection",path:"/road/intersection",name:"Intersection",meta:{title:"\u8DEF\u53E3\u7BA1\u7406",icon:"intersection",affix:!0}}),W&&ct().addVisitedView(W),u.replace(Y),!1}}w(c)||(ct().addView(c),c.meta&&c.meta.link&&ct().addIframeView(c))}return!1}function N(){Ne(()=>{for(const j of d.value)j.path===c.path&&(a.value&&a.value.moveToTarget&&a.value.moveToTarget(j),j.fullPath!==c.fullPath&&ct().updateVisitedView(c))})}function B(j){i.$tab.refreshPage(j),c.meta.link&&ct().delIframeView(c)}function F(j){if(console.log("\u5173\u95ED\u6807\u7B7E:",j.path,j.title),j.path==="/system/operlog"){console.log("\u5173\u95ED\u64CD\u4F5C\u65E5\u5FD7\u6807\u7B7E\uFF0C\u8DF3\u8F6C\u5230\u89D2\u8272\u7BA1\u7406\u9875\u9762"),ct().delVisitedView(j),u.push("/system/role");return}i.$tab.closePage(j).then(({visitedViews:re})=>{if(k(j)){const Y=m(j.path);Y?u.push(f[Y]):J(re,j)}})}function H(){i.$tab.closeRightPage(r.value).then(j=>{j.find(re=>re.fullPath===c.fullPath)||J(j)})}function L(){i.$tab.closeLeftPage(r.value).then(j=>{j.find(re=>re.fullPath===c.fullPath)||J(j)})}function P(){u.push(r.value).catch(()=>{}),i.$tab.closeOtherPage(r.value).then(()=>{N()})}function R(j){i.$tab.closeAllPage().then(({visitedViews:re})=>{n.value.some(Y=>Y.path===c.path)||J(re,j)})}function J(j,re){const Y=j.slice(-1)[0];Y?u.push(Y.fullPath):re.name==="Dashboard"?u.replace({path:"/redirect"+re.fullPath}):u.push("/")}function oe(j,re){const W=i.$el.getBoundingClientRect().left,ne=i.$el.offsetWidth-105,xe=re.clientX-W+15;xe>ne?l.value=ne:l.value=xe,o.value=re.clientY,t.value=!0,r.value=j}function G(){t.value=!1}function le(){G()}function he(j){console.log("\u70B9\u51FB\u5173\u95ED\u6807\u7B7E\u6309\u94AE:",j.path,j.title),F(j)}return(j,re)=>{const Y=Oe("close"),W=Oe("router-link"),ce=Oe("refresh-right"),ne=Oe("circle-close"),xe=Oe("back"),U=Oe("right");return y(),$("div",qxe,[K(s(Wxe),{ref_key:"scrollPaneRef",ref:a,class:"tags-view-wrapper",onScroll:le},{default:Z(()=>[(y(!0),$(Pe,null,ut(s(d),Q=>Xe((y(),ue(W,{key:Q.path,"data-path":Q.path,class:T([[k(Q)?"active":"",g(Q)&&!k(Q)?"default-tag":""],"tags-view-item"]),to:{path:Q.path,query:Q.query,fullPath:Q.fullPath},style:Be(z(Q)),onMouseup:Ue(fe=>M(Q)?"":F(Q),["middle"]),onContextmenu:Ue(fe=>oe(Q,fe),["prevent"])},{default:Z(()=>[ot(Ce(Q.title)+" ",1),M(Q)?ae("",!0):(y(),$("span",{key:0,onClick:Ue(fe=>he(Q),["prevent","stop"])},[K(Y,{class:"el-icon-close",style:{width:"1em",height:"1em","vertical-align":"middle"}})],8,Uxe))]),_:2},1032,["data-path","class","to","style","onMouseup","onContextmenu"])),[[_t,b(Q)]])),128))]),_:1},512),Xe(C("ul",{style:Be({left:s(l)+"px",top:s(o)+"px"}),class:"contextmenu"},[C("li",{onClick:re[0]||(re[0]=Q=>B(s(r)))},[K(ce,{style:{width:"1em",height:"1em"}}),ot(" \u5237\u65B0\u9875\u9762 ")]),M(s(r))?ae("",!0):(y(),$("li",{key:0,onClick:re[1]||(re[1]=Q=>F(s(r)))},[K(Y,{style:{width:"1em",height:"1em"}}),ot(" \u5173\u95ED\u5F53\u524D ")])),C("li",{onClick:P},[K(ne,{style:{width:"1em",height:"1em"}}),ot(" \u5173\u95ED\u5176\u4ED6 ")]),E()?ae("",!0):(y(),$("li",{key:1,onClick:L},[K(xe,{style:{width:"1em",height:"1em"}}),ot(" \u5173\u95ED\u5DE6\u4FA7 ")])),A()?ae("",!0):(y(),$("li",{key:2,onClick:H},[K(U,{style:{width:"1em",height:"1em"}}),ot(" \u5173\u95ED\u53F3\u4FA7 ")])),C("li",{onClick:re[2]||(re[2]=Q=>R(s(r)))},[K(ne,{style:{width:"1em",height:"1em"}}),ot(" \u5168\u90E8\u5173\u95ED ")])],4),[[_t,s(t)]])])}}},Gxe=Eo(Yxe,[["__scopeId","data-v-53bd61d0"]]);const Xxe={__name:"index",setup(e){const t=Xa(),o=Ya(),l=ns();S(()=>o.theme),S(()=>o.sideTheme);const r=S(()=>l.sidebar),n=S(()=>l.device),a=S(()=>o.tagsView);S(()=>o.fixedHeader);const i=S(()=>t.path.startsWith("/platform")),c=S(()=>r.value.hide||i.value);S(()=>({hideSidebar:!r.value.opened,openSidebar:r.value.opened,withoutAnimation:r.value.withoutAnimation,mobile:n.value==="mobile"}));const{width:u,height:d}=D4(),p=992;return Ao(()=>{n.value==="mobile"&&r.value.opened&&l.closeSideBar({withoutAnimation:!1}),u.value-1{const v=Oe("el-header"),m=Oe("el-aside"),g=Oe("el-main"),_=Oe("el-container");return y(),ue(_,{class:"layout-container"},{default:Z(()=>[K(v,{class:"layout-header"},{default:Z(()=>[K(s(Bxe))]),_:1}),K(_,null,{default:Z(()=>[s(c)?ae("",!0):(y(),ue(m,{key:0,class:"layout-sidebar",width:"248px"},{default:Z(()=>[K(zxe)]),_:1})),K(g,{class:T(["layout-main",{"full-width":s(c)}])},{default:Z(()=>[!s(i)&&s(a)?(y(),ue(s(Gxe),{key:0})):ae("",!0),K(s(Vxe))]),_:1},8,["class"])]),_:1})]),_:1})}}},ho=Eo(Xxe,[["__scopeId","data-v-946ec9c7"]]),$2=[{path:"/redirect",component:ho,hidden:!0,children:[{path:"/redirect/:path(.*)",component:()=>lt(()=>import("./index.40292c56.js"),[])}]},{path:"/login",component:()=>lt(()=>import("./login.4ceff1c2.js"),["assets/login.4ceff1c2.js","assets/login.76af7e00.css"]),hidden:!0},{path:"/register",component:()=>lt(()=>import("./register.ba332f30.js"),["assets/register.ba332f30.js","assets/register.0c8d718f.css"]),hidden:!0},{path:"/:pathMatch(.*)*",component:()=>lt(()=>import("./404.4f9ec086.js"),["assets/404.4f9ec086.js","assets/404.40956bff.css"]),hidden:!0},{path:"/401",component:()=>lt(()=>import("./401.ce836d35.js"),["assets/401.ce836d35.js","assets/401.b3f55b8a.css"]),hidden:!0},{path:"/platform",component:ho,name:"Platform",meta:{title:"\u5E73\u53F0\u6982\u89C8",icon:"dashboard"},children:[{path:"",component:()=>lt(()=>import("./index.46f01612.js"),["assets/index.46f01612.js","assets/VehicleMovementControlRefactored.96e4a3ca.js","assets/VehicleMovementControlRefactored.f094f266.css","assets/vehicle_type.be7b2e4d.js","assets/manager.4e506c5f.js","assets/intersection.55727948.js","assets/index.4abbb6d0.css"]),name:"PlatformIndex",meta:{title:"\u5E73\u53F0\u6982\u89C8",icon:"dashboard",affix:!0}}]},{path:"/car",component:ho,name:"Car",redirect:"/car/index",meta:{title:"\u8F66\u8F86\u7BA1\u7406",icon:"car"},children:[{path:"index",component:()=>lt(()=>import("./index.bd5f24ad.js"),["assets/index.bd5f24ad.js","assets/index.2a94735f.css"]),name:"CarIndex",meta:{title:"\u8F66\u8F86\u7BA1\u7406",icon:"car",affix:!0}}]},{path:"/car/monitor",component:ho,name:"CarMonitor",meta:{title:"\u8F66\u8F86\u76D1\u63A7",icon:"monitor",affix:!1},children:[{path:"",component:()=>lt(()=>import("./index.b09083d4.js"),["assets/index.b09083d4.js","assets/detail.dbd9843f.js","assets/manager.4e506c5f.js","assets/detail.75f82394.css","assets/VehicleMovementControlRefactored.96e4a3ca.js","assets/VehicleMovementControlRefactored.f094f266.css","assets/index.2407f1a6.css","assets/VehicleStats.eed4df3d.css"]),name:"CarMonitorIndex",meta:{title:"\u8F66\u8F86\u76D1\u63A7",icon:"monitor",affix:!1}}]},{path:"/system",component:ho,name:"System",redirect:"/system/index",meta:{title:"\u7CFB\u7EDF\u7BA1\u7406",icon:"system"},children:[{path:"index",component:()=>lt(()=>import("./index.bd5f24ad.js"),["assets/index.bd5f24ad.js","assets/index.2a94735f.css"]),name:"SystemIndex",meta:{title:"\u7CFB\u7EDF\u7BA1\u7406",icon:"system",affix:!0}},{path:"user",component:()=>lt(()=>import("./index.85052e55.js"),["assets/index.85052e55.js","assets/user.72b5bfe4.js","assets/role.9b221df4.js","assets/index.d1eef18d.css"]),name:"User",meta:{title:"\u7528\u6237\u7BA1\u7406",icon:"user",affix:!1}}]},{path:"/system/role",component:ho,name:"systemRole",meta:{title:"\u89D2\u8272\u7BA1\u7406",icon:"peoples",affix:!1},children:[{path:"",component:()=>lt(()=>import("./index.61e877f2.js"),["assets/index.61e877f2.js","assets/role.9b221df4.js","assets/menu.d7f9bfd6.js","assets/index.ff89fc96.css"]),name:"SystemRoleIndex",meta:{title:"\u89D2\u8272\u7BA1\u7406",icon:"peoples",affix:!1}}]},{path:"/system/operlog",component:ho,name:"systemOperlog",meta:{title:"\u64CD\u4F5C\u65E5\u5FD7",icon:"form",affix:!1},children:[{path:"",component:()=>lt(()=>import("./index.0e982fc9.js"),["assets/index.0e982fc9.js","assets/index.f19bba48.css"]),name:"SystemOperlogIndex",meta:{title:"\u64CD\u4F5C\u65E5\u5FD7",icon:"form",affix:!1}}]},{path:"",component:ho,redirect:"/index",children:[{path:"/index",component:()=>lt(()=>import("./index.bd5f24ad.js"),["assets/index.bd5f24ad.js","assets/index.2a94735f.css"]),name:"Index",meta:{title:"\u9996\u9875",icon:"dashboard",affix:!0}}]},{path:"/road",component:ho,name:"Road",redirect:"/road/intersection",meta:{title:"\u8DEF\u51B5\u7BA1\u7406",icon:"road"},children:[{path:"intersection",component:()=>lt(()=>import("./index.a03f408c.js"),["assets/index.a03f408c.js","assets/intersection.55727948.js","assets/index.5eeba437.css"]),name:"Intersection",meta:{title:"\u8DEF\u53E3\u7BA1\u7406",icon:"intersection"}},{path:"intersection/detail/:id",name:"IntersectionDetail",component:()=>lt(()=>import("./detail.9a0c9aad.js"),["assets/detail.9a0c9aad.js","assets/intersection.55727948.js","assets/detail.2d6ac319.css"]),meta:{title:"\u8DEF\u53E3\u8BE6\u60C5"}},{path:"traffic-light",component:()=>lt(()=>import("./index.e43ebe8d.js"),["assets/index.e43ebe8d.js","assets/intersection.55727948.js","assets/index.bb6087a5.css"]),name:"TrafficLight",meta:{title:"\u4FE1\u53F7\u706F\u7BA1\u7406",icon:"traffic-light"}}]},{path:"/user",component:ho,hidden:!0,redirect:"noredirect",children:[{path:"profile",component:()=>lt(()=>import("./index.cbe47255.js"),["assets/index.cbe47255.js","assets/userAvatar.a6e65e8c.js","assets/user.72b5bfe4.js","assets/userAvatar.974c9db4.css","assets/userInfo.139acdfa.js","assets/resetPwd.d6a4bddd.js"]),name:"Profile",meta:{title:"\u4E2A\u4EBA\u4E2D\u5FC3",icon:"user"}}]}],Jxe=[{path:"/system/user-auth",component:ho,hidden:!0,permissions:["system:user:edit"],children:[{path:"role/:userId(\\d+)",component:()=>lt(()=>import("./authRole.d19fd60d.js"),["assets/authRole.d19fd60d.js","assets/user.72b5bfe4.js","assets/authRole.5e2b1ce3.css"]),name:"AuthRole",meta:{title:"\u5206\u914D\u89D2\u8272",activeMenu:"/system/user"}}]},{path:"/system/role-auth",component:ho,hidden:!0,permissions:["system:role:edit"],children:[{path:"user/:roleId(\\d+)",component:()=>lt(()=>import("./authUser.be1c1b53.js"),["assets/authUser.be1c1b53.js","assets/selectUser.b448efa8.js","assets/role.9b221df4.js","assets/authUser.b9a8cfc6.css"]),name:"AuthUser",meta:{title:"\u5206\u914D\u7528\u6237",activeMenu:"/system/role"}}]},{path:"/system/dict-data",component:ho,hidden:!0,permissions:["system:dict:list"],children:[{path:"index/:dictId(\\d+)",component:()=>lt(()=>import("./data.01216890.js"),["assets/data.01216890.js","assets/type.09636148.js","assets/data.b4891bdf.css"]),name:"Data",meta:{title:"\u5B57\u5178\u6570\u636E",activeMenu:"/system/dict"}}]},{path:"/tool/gen-edit",component:ho,hidden:!0,permissions:["tool:gen:edit"],children:[{path:"index/:tableId(\\d+)",component:()=>lt(()=>import("./editTable.5e12baca.js"),["assets/editTable.5e12baca.js","assets/gen.8e7bfccd.js","assets/type.09636148.js","assets/basicInfoForm.9dffecf9.js","assets/genInfoForm.5918a3f6.js","assets/menu.d7f9bfd6.js"]),name:"GenEdit",meta:{title:"\u4FEE\u6539\u751F\u6210\u914D\u7F6E",activeMenu:"/tool/gen"}}]}],wo=mxe({history:Vwe("/airport"),scrollBehavior:()=>({top:0}),routes:$2}),Zxe=()=>zo({url:"/getRouters",method:"get"}),Qxe={};function eke(e,t){const o=Oe("router-view");return y(),ue(o)}const tke=Eo(Qxe,[["render",eke]]),qv=Object.assign({"../../views/car/monitor/detail.vue":()=>lt(()=>import("./detail.dbd9843f.js").then(e=>e.d),["assets/detail.dbd9843f.js","assets/manager.4e506c5f.js","assets/detail.75f82394.css"]),"../../views/car/monitor/index.vue":()=>lt(()=>import("./index.b09083d4.js"),["assets/index.b09083d4.js","assets/detail.dbd9843f.js","assets/manager.4e506c5f.js","assets/detail.75f82394.css","assets/VehicleMovementControlRefactored.96e4a3ca.js","assets/VehicleMovementControlRefactored.f094f266.css","assets/index.2407f1a6.css","assets/VehicleStats.eed4df3d.css"]),"../../views/car/park/index.vue":()=>lt(()=>import("./index.31b828b2.js"),["assets/index.31b828b2.js","assets/vehicle_type.be7b2e4d.js","assets/index.8150f143.css","assets/VehicleStats.eed4df3d.css"]),"../../views/car/type/index.vue":()=>lt(()=>import("./index.6986d19a.js"),["assets/index.6986d19a.js","assets/vehicle_type.be7b2e4d.js","assets/index.cd59a76b.css"]),"../../views/error/401.vue":()=>lt(()=>import("./401.ce836d35.js"),["assets/401.ce836d35.js","assets/401.b3f55b8a.css"]),"../../views/error/404.vue":()=>lt(()=>import("./404.4f9ec086.js"),["assets/404.4f9ec086.js","assets/404.40956bff.css"]),"../../views/index.vue":()=>lt(()=>import("./index.bd5f24ad.js"),["assets/index.bd5f24ad.js","assets/index.2a94735f.css"]),"../../views/login.vue":()=>lt(()=>import("./login.4ceff1c2.js"),["assets/login.4ceff1c2.js","assets/login.76af7e00.css"]),"../../views/platform/index.vue":()=>lt(()=>import("./index.46f01612.js"),["assets/index.46f01612.js","assets/VehicleMovementControlRefactored.96e4a3ca.js","assets/VehicleMovementControlRefactored.f094f266.css","assets/vehicle_type.be7b2e4d.js","assets/manager.4e506c5f.js","assets/intersection.55727948.js","assets/index.4abbb6d0.css"]),"../../views/redirect/index.vue":()=>lt(()=>import("./index.40292c56.js"),[]),"../../views/register.vue":()=>lt(()=>import("./register.ba332f30.js"),["assets/register.ba332f30.js","assets/register.0c8d718f.css"]),"../../views/road/index.vue":()=>lt(()=>import("./index.53cac1e1.js"),["assets/index.53cac1e1.js","assets/index.aa3e8b37.css"]),"../../views/road/intersection/detail.vue":()=>lt(()=>import("./detail.9a0c9aad.js"),["assets/detail.9a0c9aad.js","assets/intersection.55727948.js","assets/detail.2d6ac319.css"]),"../../views/road/intersection/index.vue":()=>lt(()=>import("./index.a03f408c.js"),["assets/index.a03f408c.js","assets/intersection.55727948.js","assets/index.5eeba437.css"]),"../../views/road/traffic-light/index.vue":()=>lt(()=>import("./index.e43ebe8d.js"),["assets/index.e43ebe8d.js","assets/intersection.55727948.js","assets/index.bb6087a5.css"]),"../../views/system/config/index.vue":()=>lt(()=>import("./index.787ae1f4.js"),["assets/index.787ae1f4.js","assets/index.ffaa48ef.css"]),"../../views/system/dict/data.vue":()=>lt(()=>import("./data.01216890.js"),["assets/data.01216890.js","assets/type.09636148.js","assets/data.b4891bdf.css"]),"../../views/system/dict/index.vue":()=>lt(()=>import("./index.8698bf3c.js"),["assets/index.8698bf3c.js","assets/type.09636148.js","assets/index.47434492.css"]),"../../views/system/driver/index.vue":()=>lt(()=>import("./index.99ad9ced.js"),["assets/index.99ad9ced.js","assets/role.9b221df4.js","assets/index.c72073c7.css"]),"../../views/system/menu/index.vue":()=>lt(()=>import("./index.8e3d3ed6.js"),["assets/index.8e3d3ed6.js","assets/menu.d7f9bfd6.js","assets/index.6d5d407e.css"]),"../../views/system/notice/index.vue":()=>lt(()=>import("./index.174524c0.js"),["assets/index.174524c0.js","assets/index.50ecb4a3.css"]),"../../views/system/operlog/index.vue":()=>lt(()=>import("./index.0e982fc9.js"),["assets/index.0e982fc9.js","assets/index.f19bba48.css"]),"../../views/system/post/index.vue":()=>lt(()=>import("./index.12f28407.js"),["assets/index.12f28407.js","assets/index.dc5226e1.css"]),"../../views/system/role/authUser.vue":()=>lt(()=>import("./authUser.be1c1b53.js"),["assets/authUser.be1c1b53.js","assets/selectUser.b448efa8.js","assets/role.9b221df4.js","assets/authUser.b9a8cfc6.css"]),"../../views/system/role/index.vue":()=>lt(()=>import("./index.61e877f2.js"),["assets/index.61e877f2.js","assets/role.9b221df4.js","assets/menu.d7f9bfd6.js","assets/index.ff89fc96.css"]),"../../views/system/role/selectUser.vue":()=>lt(()=>import("./selectUser.b448efa8.js"),["assets/selectUser.b448efa8.js","assets/role.9b221df4.js"]),"../../views/system/user/authRole.vue":()=>lt(()=>import("./authRole.d19fd60d.js"),["assets/authRole.d19fd60d.js","assets/user.72b5bfe4.js","assets/authRole.5e2b1ce3.css"]),"../../views/system/user/index.vue":()=>lt(()=>import("./index.85052e55.js"),["assets/index.85052e55.js","assets/user.72b5bfe4.js","assets/role.9b221df4.js","assets/index.d1eef18d.css"]),"../../views/system/user/profile/index.vue":()=>lt(()=>import("./index.cbe47255.js"),["assets/index.cbe47255.js","assets/userAvatar.a6e65e8c.js","assets/user.72b5bfe4.js","assets/userAvatar.974c9db4.css","assets/userInfo.139acdfa.js","assets/resetPwd.d6a4bddd.js"]),"../../views/system/user/profile/resetPwd.vue":()=>lt(()=>import("./resetPwd.d6a4bddd.js"),["assets/resetPwd.d6a4bddd.js","assets/user.72b5bfe4.js"]),"../../views/system/user/profile/userAvatar.vue":()=>lt(()=>import("./userAvatar.a6e65e8c.js"),["assets/userAvatar.a6e65e8c.js","assets/user.72b5bfe4.js","assets/userAvatar.974c9db4.css"]),"../../views/system/user/profile/userInfo.vue":()=>lt(()=>import("./userInfo.139acdfa.js"),["assets/userInfo.139acdfa.js","assets/user.72b5bfe4.js"]),"../../views/tool/build/index.vue":()=>lt(()=>import("./index.e94b0c30.js"),[]),"../../views/tool/gen/basicInfoForm.vue":()=>lt(()=>import("./basicInfoForm.9dffecf9.js"),[]),"../../views/tool/gen/editTable.vue":()=>lt(()=>import("./editTable.5e12baca.js"),["assets/editTable.5e12baca.js","assets/gen.8e7bfccd.js","assets/type.09636148.js","assets/basicInfoForm.9dffecf9.js","assets/genInfoForm.5918a3f6.js","assets/menu.d7f9bfd6.js"]),"../../views/tool/gen/genInfoForm.vue":()=>lt(()=>import("./genInfoForm.5918a3f6.js"),["assets/genInfoForm.5918a3f6.js","assets/menu.d7f9bfd6.js"]),"../../views/tool/gen/importTable.vue":()=>lt(()=>import("./importTable.64af47b1.js"),["assets/importTable.64af47b1.js","assets/gen.8e7bfccd.js"]),"../../views/tool/gen/index.vue":()=>lt(()=>import("./index.284ab8f5.js"),["assets/index.284ab8f5.js","assets/gen.8e7bfccd.js","assets/importTable.64af47b1.js","assets/index.d35821d2.css"]),"../../views/tool/swagger/index.vue":()=>lt(()=>import("./index.c68008f7.js"),[])}),tr=Ua("permission",{state:()=>({routes:[],addRoutes:[],defaultRoutes:[],topbarRouters:[],sidebarRouters:[],currentTab:"car",allMenus:[]}),actions:{setRoutes(e){this.addRoutes=e,this.routes=$2.concat(e)},setDefaultRoutes(e){this.defaultRoutes=$2.concat(e)},setTopbarRoutes(e){this.topbarRouters=e},setSidebarRouters(e){this.sidebarRouters=e},setCurrentTab(e){this.currentTab=e,this.updateSidebarByTab(e)},setAllMenus(e){this.allMenus=e},updateSidebarByTab(e){if(!this.allMenus||this.allMenus.length===0){console.log("\u4FA7\u8FB9\u680F\u83DC\u5355\u4E3A\u7A7A\u6216\u672A\u521D\u59CB\u5316");return}console.log("\u66F4\u65B0\u4FA7\u8FB9\u680FTab:",e),console.log("\u6240\u6709\u83DC\u5355:",this.allMenus);const t={car:["\u8F66\u8F86\u76D1\u63A7","\u8F66\u8F86\u7BA1\u7406"],system:["\u89D2\u8272\u7BA1\u7406","\u4EBA\u5458\u7BA1\u7406","\u64CD\u4F5C\u65E5\u5FD7"],road:["\u8DEF\u51B5\u7BA1\u7406"]};if(e==="platform"){this.setSidebarRouters([]);return}const o=t[e]||[];console.log("\u5141\u8BB8\u7684\u83DC\u5355\u540D\u79F0:",o);const l=JSON.parse(JSON.stringify(this.allMenus)),r=l.filter(n=>{if(n.meta&&n.meta.title){const a=o.includes(n.meta.title);return console.log("\u68C0\u67E5\u83DC\u5355\u9879:",n.meta.title,"\u662F\u5426\u5141\u8BB8:",a),a}return!1});if(console.log("\u8FC7\u6EE4\u540E\u7684\u83DC\u5355:",r),e==="road"){const n=l.find(a=>a.meta&&a.meta.title==="\u8DEF\u51B5\u7BA1\u7406");if(console.log("\u627E\u5230\u7684\u8DEF\u51B5\u7BA1\u7406\u83DC\u5355:",n),n&&n.children){const a=JSON.parse(JSON.stringify(n));console.log("\u8BBE\u7F6E\u8DEF\u51B5\u7BA1\u7406\u83DC\u5355(\u5305\u542B\u5B50\u83DC\u5355):",a),this.setSidebarRouters([a]);return}}console.log("\u8BBE\u7F6E\u4FA7\u8FB9\u680F\u83DC\u5355:",r),this.setSidebarRouters(r)},generateRoutes(e){return new Promise(t=>{Zxe().then(o=>{console.log("\u4ECE\u540E\u7AEF\u83B7\u53D6\u7684\u8DEF\u7531\u6570\u636E:",o);const l=JSON.parse(JSON.stringify(o.data)),r=JSON.parse(JSON.stringify(o.data)),n=JSON.parse(JSON.stringify(o.data)),a=Sc(l),i=Sc(r,!1,!0),c=Sc(n);oke(Jxe).forEach(f=>{wo.addRoute(f)}),this.setRoutes(i);const d={path:"/road",component:ho,name:"Road",redirect:"/road/intersection",meta:{title:"\u8DEF\u51B5\u7BA1\u7406",icon:"road"},children:[{path:"intersection",component:()=>lt(()=>import("./index.a03f408c.js"),["assets/index.a03f408c.js","assets/intersection.55727948.js","assets/index.5eeba437.css"]),name:"Intersection",meta:{title:"\u8DEF\u53E3\u7BA1\u7406",icon:"intersection"}},{path:"intersection/detail/:id",component:()=>lt(()=>import("./detail.9a0c9aad.js"),["assets/detail.9a0c9aad.js","assets/intersection.55727948.js","assets/detail.2d6ac319.css"]),name:"IntersectionDetail",meta:{title:"\u8DEF\u53E3\u8BE6\u60C5",icon:"intersection"},hidden:!0},{path:"traffic-light",component:()=>lt(()=>import("./index.e43ebe8d.js"),["assets/index.e43ebe8d.js","assets/intersection.55727948.js","assets/index.bb6087a5.css"]),name:"TrafficLight",meta:{title:"\u4FE1\u53F7\u706F\u7BA1\u7406",icon:"traffic-light"}}]};a.some(f=>f.path==="/road")?console.log("\u540E\u7AEF\u5DF2\u8FD4\u56DE\u8DEF\u51B5\u7BA1\u7406\u8DEF\u7531"):(a.push(d),console.log("\u6DFB\u52A0\u4E86\u8DEF\u51B5\u7BA1\u7406\u8DEF\u7531\u5230\u4FA7\u8FB9\u680F")),console.log("\u5904\u7406\u540E\u7684\u4FA7\u8FB9\u680F\u8DEF\u7531:",a),this.setAllMenus(a),this.updateSidebarByTab(this.currentTab),this.setDefaultRoutes(a),this.setTopbarRoutes(c),t(i)})})}}});function Sc(e,t=!1,o=!1){return e.filter(l=>(o&&l.children&&(l.children=D_(l.children)),l.component&&(l.component==="Layout"?l.component=ho:l.component==="ParentView"?l.component=tke:l.component==="InnerLink"?l.component=H_:l.component=lke(l.component)),l.children!=null&&l.children&&l.children.length?l.children=Sc(l.children,l,o):(delete l.children,delete l.redirect),!0))}function D_(e,t=!1){var o=[];return e.forEach((l,r)=>{if(l.children&&l.children.length&&l.component==="ParentView"&&!t){l.children.forEach(n=>{if(n.path=l.path+"/"+n.path,n.children&&n.children.length){o=o.concat(D_(n.children,n));return}o.push(n)});return}t&&(l.path=t.path+"/"+l.path),o=o.concat(l)}),o}function oke(e){const t=[];return e.forEach(o=>{o.permissions?w2.hasPermiOr(o.permissions)&&t.push(o):o.roles&&w2.hasRoleOr(o.roles)&&t.push(o)}),t}const lke=e=>{let t;for(const o in qv)o.split("views/")[1].split(".vue")[0]===e&&(t=()=>qv[o]());return t},rke={__name:"App",setup(e){const t=Xa(),o=tr();return Ze(()=>{Ne(()=>{Dxe(Ya().theme);const l=t.path;l.startsWith("/platform")?o.setCurrentTab("platform"):l.startsWith("/car")?o.setCurrentTab("car"):l.startsWith("/system")?o.setCurrentTab("system"):l.startsWith("/road")?o.setCurrentTab("road"):(l==="/"||l==="/index")&&o.setCurrentTab("platform")})}),(l,r)=>{const n=Oe("router-view");return y(),ue(n)}}},nke={mounted(e,t,o){const{value:l}=t,r="admin",n=Hr().roles;if(l&&l instanceof Array&&l.length>0){const a=l;n.some(c=>r===c||a.includes(c))||e.parentNode&&e.parentNode.removeChild(e)}else throw new Error("\u8BF7\u8BBE\u7F6E\u89D2\u8272\u6743\u9650\u6807\u7B7E\u503C")}},ake={mounted(e,t,o){const{value:l}=t,r="*:*:*",n=Hr().permissions;if(l&&l instanceof Array&&l.length>0){const a=l;n.some(c=>r===c||a.includes(c))||e.parentNode&&e.parentNode.removeChild(e)}else throw new Error("\u8BF7\u8BBE\u7F6E\u64CD\u4F5C\u6743\u9650\u6807\u7B7E\u503C")}},ike={beforeMount(e,{value:t,arg:o}){if(o==="callback")e.$copyCallback=t;else{e.$copyValue=t;const l=()=>{ske(e.$copyValue),e.$copyCallback&&e.$copyCallback(e.$copyValue)};e.addEventListener("click",l),e.$destroyCopy=()=>e.removeEventListener("click",l)}}};function ske(e,{target:t=document.body}={}){const o=document.createElement("textarea"),l=document.activeElement;o.value=e,o.setAttribute("readonly",""),o.style.contain="strict",o.style.position="absolute",o.style.left="-9999px",o.style.fontSize="12pt";const r=document.getSelection(),n=r.rangeCount>0&&r.getRangeAt(0);t.append(o),o.select(),o.selectionStart=0,o.selectionEnd=e.length;let a=!1;try{a=document.execCommand("copy")}catch{}return o.remove(),n&&(r.removeAllRanges(),r.addRange(n)),l&&l.focus(),a}function cke(e){e.directive("hasRole",nke),e.directive("hasPermi",ake),e.directive("copyText",ike)}const uke={refreshPage(e){const{path:t,query:o,matched:l}=wo.currentRoute.value;return e===void 0&&l.forEach(r=>{r.components&&r.components.default&&r.components.default.name&&(["Layout","ParentView"].includes(r.components.default.name)||(e={name:r.components.default.name,path:t,query:o}))}),ct().delCachedView(e).then(()=>{const{path:r,query:n}=e;wo.replace({path:"/redirect"+r,query:n})})},closeOpenPage(e){if(ct().delView(wo.currentRoute.value),e!==void 0)return wo.push(e)},closePage(e){return e===void 0?ct().delView(wo.currentRoute.value).then(({lastPath:t})=>wo.push(t||"/index")):ct().delView(e)},closeAllPage(){return ct().delAllViews()},closeLeftPage(e){return ct().delLeftTags(e||wo.currentRoute.value)},closeRightPage(e){return ct().delRightTags(e||wo.currentRoute.value)},closeOtherPage(e){return ct().delOthersViews(e||wo.currentRoute.value)},openPage(e){return wo.push(e)},updatePage(e){return ct().updateVisitedView(e)}};let Uv;const dke={msg(e){gl.info(e)},msgError(e){gl.error(e)},msgSuccess(e){gl.success(e)},msgWarning(e){gl.warning(e)},alert(e){Mr.alert(e,"\u7CFB\u7EDF\u63D0\u793A")},alertError(e){Mr.alert(e,"\u7CFB\u7EDF\u63D0\u793A",{type:"error"})},alertSuccess(e){Mr.alert(e,"\u7CFB\u7EDF\u63D0\u793A",{type:"success"})},alertWarning(e){Mr.alert(e,"\u7CFB\u7EDF\u63D0\u793A",{type:"warning"})},notify(e){di.info(e)},notifyError(e){di.error(e)},notifySuccess(e){di.success(e)},notifyWarning(e){di.warning(e)},confirm(e,t="\u7CFB\u7EDF\u63D0\u793A"){return Mr.confirm(e,t,{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"})},prompt(e){return Mr.prompt(e,"\u7CFB\u7EDF\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"})},loading(e){Uv=Sf.service({lock:!0,text:e,background:"rgba(0, 0, 0, 0.7)"})},closeLoading(){Uv.close()}};var Jv;const Xd=(Jv=window.APP_CONFIG)==null?void 0:Jv.VITE_BASE_URL,pke={name(e,t=!0){var o=Xd+"/common/download?fileName="+encodeURIComponent(e)+"&delete="+t;$i({method:"get",url:o,responseType:"blob",headers:{Authorization:"Bearer "+rr()}}).then(async l=>{if(await Cc(l.data)){const n=new Blob([l.data]);this.saveAs(n,decodeURIComponent(l.headers["download-filename"]))}else this.printErrMsg(l.data)})},resource(e){var t=Xd+"/common/download/resource?resource="+encodeURIComponent(e);$i({method:"get",url:t,responseType:"blob",headers:{Authorization:"Bearer "+rr()}}).then(async o=>{if(await Cc(o.data)){const r=new Blob([o.data]);this.saveAs(r,decodeURIComponent(o.headers["download-filename"]))}else this.printErrMsg(o.data)})},zip(o,t){var o=Xd+o;$i({method:"get",url:o,responseType:"blob",headers:{Authorization:"Bearer "+rr()}}).then(async l=>{if(await Cc(l.data)){const n=new Blob([l.data],{type:"application/zip"});this.saveAs(n,t)}else this.printErrMsg(l.data)})},saveAs(e,t,o){If.exports.saveAs(e,t,o)},async printErrMsg(e){const t=await e.text(),o=JSON.parse(t),l=Oa[o.code]||o.msg||Oa.default;gl.error(l)}};function fke(e){e.config.globalProperties.$tab=uke,e.config.globalProperties.$auth=w2,e.config.globalProperties.$cache=$c,e.config.globalProperties.$modal=dke,e.config.globalProperties.$download=pke}if(typeof window<"u"){let e=function(){var t=document.body,o=document.getElementById("__svg__icons__dom__");o||(o=document.createElementNS("http://www.w3.org/2000/svg","svg"),o.style.position="absolute",o.style.width="0",o.style.height="0",o.id="__svg__icons__dom__",o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),o.innerHTML='',t.insertBefore(o,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const hke=te({props:{iconClass:{type:String,required:!0},className:{type:String,default:""},color:{type:String,default:""}},setup(e){return{iconName:S(()=>`#icon-${e.iconClass}`),svgClass:S(()=>e.className?`svg-icon ${e.className}`:"svg-icon")}}}),vke=["xlink:href","fill"];function mke(e,t,o,l,r,n){return y(),$("svg",{class:T(e.svgClass),"aria-hidden":"true"},[C("use",{"xlink:href":e.iconName,fill:e.color},null,8,vke)],2)}const gke=Eo(hke,[["render",mke]]),bke={install:e=>{for(const t in ph){const o=ph[t];e.component(o.name,o)}}};var F_={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */(function(e,t){(function(o,l){e.exports=l()})(xo,function(){var o={};o.version="0.2.0";var l=o.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
    '};o.configure=function(v){var m,g;for(m in v)g=v[m],g!==void 0&&v.hasOwnProperty(m)&&(l[m]=g);return this},o.status=null,o.set=function(v){var m=o.isStarted();v=r(v,l.minimum,1),o.status=v===1?null:v;var g=o.render(!m),_=g.querySelector(l.barSelector),w=l.speed,b=l.easing;return g.offsetWidth,i(function(x){l.positionUsing===""&&(l.positionUsing=o.getPositioningCSS()),c(_,a(v,w,b)),v===1?(c(g,{transition:"none",opacity:1}),g.offsetWidth,setTimeout(function(){c(g,{transition:"all "+w+"ms linear",opacity:0}),setTimeout(function(){o.remove(),x()},w)},w)):setTimeout(x,w)}),this},o.isStarted=function(){return typeof o.status=="number"},o.start=function(){o.status||o.set(0);var v=function(){setTimeout(function(){!o.status||(o.trickle(),v())},l.trickleSpeed)};return l.trickle&&v(),this},o.done=function(v){return!v&&!o.status?this:o.inc(.3+.5*Math.random()).set(1)},o.inc=function(v){var m=o.status;return m?(typeof v!="number"&&(v=(1-m)*r(Math.random()*m,.1,.95)),m=r(m+v,0,.994),o.set(m)):o.start()},o.trickle=function(){return o.inc(Math.random()*l.trickleRate)},function(){var v=0,m=0;o.promise=function(g){return!g||g.state()==="resolved"?this:(m===0&&o.start(),v++,m++,g.always(function(){m--,m===0?(v=0,o.done()):o.set((v-m)/v)}),this)}}(),o.render=function(v){if(o.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var m=document.createElement("div");m.id="nprogress",m.innerHTML=l.template;var g=m.querySelector(l.barSelector),_=v?"-100":n(o.status||0),w=document.querySelector(l.parent),b;return c(g,{transition:"all 0 linear",transform:"translate3d("+_+"%,0,0)"}),l.showSpinner||(b=m.querySelector(l.spinnerSelector),b&&h(b)),w!=document.body&&d(w,"nprogress-custom-parent"),w.appendChild(m),m},o.remove=function(){p(document.documentElement,"nprogress-busy"),p(document.querySelector(l.parent),"nprogress-custom-parent");var v=document.getElementById("nprogress");v&&h(v)},o.isRendered=function(){return!!document.getElementById("nprogress")},o.getPositioningCSS=function(){var v=document.body.style,m="WebkitTransform"in v?"Webkit":"MozTransform"in v?"Moz":"msTransform"in v?"ms":"OTransform"in v?"O":"";return m+"Perspective"in v?"translate3d":m+"Transform"in v?"translate":"margin"};function r(v,m,g){return vg?g:v}function n(v){return(-1+v)*100}function a(v,m,g){var _;return l.positionUsing==="translate3d"?_={transform:"translate3d("+n(v)+"%,0,0)"}:l.positionUsing==="translate"?_={transform:"translate("+n(v)+"%,0)"}:_={"margin-left":n(v)+"%"},_.transition="all "+m+"ms "+g,_}var i=function(){var v=[];function m(){var g=v.shift();g&&g(m)}return function(g){v.push(g),v.length==1&&m()}}(),c=function(){var v=["Webkit","O","Moz","ms"],m={};function g(x){return x.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(k,z){return z.toUpperCase()})}function _(x){var k=document.body.style;if(x in k)return x;for(var z=v.length,M=x.charAt(0).toUpperCase()+x.slice(1),E;z--;)if(E=v[z]+M,E in k)return E;return x}function w(x){return x=g(x),m[x]||(m[x]=_(x))}function b(x,k,z){k=w(k),x.style[k]=z}return function(x,k){var z=arguments,M,E;if(z.length==2)for(M in k)E=k[M],E!==void 0&&k.hasOwnProperty(M)&&b(x,M,E);else b(x,z[1],z[2])}}();function u(v,m){var g=typeof v=="string"?v:f(v);return g.indexOf(" "+m+" ")>=0}function d(v,m){var g=f(v),_=g+m;u(g,m)||(v.className=_.substring(1))}function p(v,m){var g=f(v),_;!u(v,m)||(_=g.replace(" "+m+" "," "),v.className=_.substring(1,_.length-1))}function f(v){return(" "+(v.className||"")+" ").replace(/\s+/gi," ")}function h(v){v&&v.parentNode&&v.parentNode.removeChild(v)}return o})})(F_);const Ei=F_.exports;Ei.configure({showSpinner:!1});const _ke=["/login","/auth-redirect","/bind","/register"];wo.beforeEach((e,t,o)=>{if(Ei.start(),rr())if(e.meta.title&&Ya().setTitle(e.meta.title),e.path==="/login")o({path:"/"}),Ei.done();else{const l=e.path;l.startsWith("/platform")?tr().setCurrentTab("platform"):l.startsWith("/car")?tr().setCurrentTab("car"):l.startsWith("/system")?tr().setCurrentTab("system"):l.startsWith("/road")&&tr().setCurrentTab("road"),Hr().roles.length===0?Hr().getInfo().then(()=>{tr().generateRoutes().then(r=>{r.forEach(n=>{bxe(n.path)||wo.addRoute(n)}),e.path==="/"||e.path==="/index"?(ns().toggleSideBarHide(!0),o({path:"/platform",replace:!0})):o({...e,replace:!0})})}).catch(r=>{Hr().logOut().then(()=>{gl.error(r),o({path:"/"})})}):e.path==="/"||e.path==="/index"?(ns().toggleSideBarHide(!0),o({path:"/platform"})):o()}else _ke.indexOf(e.path)!==-1?o():(o(`/login?redirect=${e.fullPath}`),Ei.done())});wo.afterEach(()=>{Ei.done()});const Yv=Ua("dict",{state:()=>({dict:new Array}),actions:{getDict(e){if(e==null&&e=="")return null;try{for(let t=0;t(e.forEach((o,l)=>{t.value[o]=[];const r=Yv().getDict(o);r?t.value[o]=r:yke(o).then(n=>{t.value[o]=n.data.map(a=>({label:a.dictLabel,value:a.dictValue,elTagType:a.listClass,elTagClass:a.cssClass})),Yv().setDict(o,t.value[o])})}),Gt(t.value)))()}Math.easeInOutQuad=function(e,t,o,l){return e/=l/2,e<1?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t)};var xke=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function kke(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function Cke(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function Gv(e,t,o){const l=Cke(),r=e-l,n=20;let a=0;t=typeof t>"u"?500:t;var i=function(){a+=n;var c=Math.easeInOutQuad(a,l,r,t);kke(c),ao.total&&(l.value=1),t("pagination",{page:l.value,limit:i}),o.autoScroll&&Gv(0,800)}function a(i){t("pagination",{page:i,limit:r.value}),o.autoScroll&&Gv(0,800)}return(i,c)=>{const u=Oe("el-pagination");return y(),$("div",$ke,[K(u,{class:"pagination",background:e.background,"current-page":s(l),"onUpdate:current-page":c[0]||(c[0]=d=>xt(l)?l.value=d:null),"page-size":s(r),"onUpdate:page-size":c[1]||(c[1]=d=>xt(r)?r.value=d:null),layout:e.layout,size:"small","page-sizes":e.pageSizes,"pager-count":e.pagerCount,total:e.total,onSizeChange:n,onCurrentChange:a},null,8,["background","current-page","page-size","layout","page-sizes","pager-count","total"])])}}},zke=Eo(Ske,[["__scopeId","data-v-69b0005c"]]);const Eke={__name:"index",props:{showSearch:{type:Boolean,default:!0},columns:{type:Array},search:{type:Boolean,default:!0},gutter:{type:Number,default:10}},emits:["update:showSearch","queryTable"],setup(e,{emit:t}){const o=e,l=V([]),r=V("\u663E\u793A/\u9690\u85CF"),n=V(!1),a=S(()=>{const p={};return o.gutter&&(p.marginRight=`${o.gutter/2}px`),p});function i(){t("update:showSearch",!o.showSearch)}function c(){t("queryTable")}function u(p){for(let f in o.columns){const h=o.columns[f].key;o.columns[f].visible=!p.includes(h)}}function d(){n.value=!0}for(let p in o.columns)o.columns[p].visible===!1&&l.value.push(parseInt(p));return(p,f)=>{const h=Oe("el-button"),v=Oe("el-tooltip"),m=Oe("el-row"),g=Oe("el-transfer"),_=Oe("el-dialog");return y(),$("div",{class:"top-right-btn",style:Be(s(a))},[K(m,null,{default:Z(()=>[e.search?(y(),ue(v,{key:0,class:"item",effect:"dark",content:e.showSearch?"\u9690\u85CF\u641C\u7D22":"\u663E\u793A\u641C\u7D22",placement:"top"},{default:Z(()=>[K(h,{circle:"",icon:"Search",onClick:f[0]||(f[0]=w=>i())})]),_:1},8,["content"])):ae("",!0),K(v,{class:"item",effect:"dark",content:"\u5237\u65B0",placement:"top"},{default:Z(()=>[K(h,{circle:"",icon:"Refresh",onClick:f[1]||(f[1]=w=>c())})]),_:1}),e.columns?(y(),ue(v,{key:1,class:"item",effect:"dark",content:"\u663E\u9690\u5217",placement:"top"},{default:Z(()=>[K(h,{circle:"",icon:"Menu",onClick:f[2]||(f[2]=w=>d())})]),_:1})):ae("",!0)]),_:1}),K(_,{title:s(r),modelValue:s(n),"onUpdate:modelValue":f[4]||(f[4]=w=>xt(n)?n.value=w:null),"append-to-body":""},{default:Z(()=>[K(g,{titles:["\u663E\u793A","\u9690\u85CF"],modelValue:s(l),"onUpdate:modelValue":f[3]||(f[3]=w=>xt(l)?l.value=w:null),data:e.columns,onChange:u},null,8,["modelValue","data"])]),_:1},8,["title","modelValue"])],4)}}},Mke=Eo(Eke,[["__scopeId","data-v-9f9bf8e9"]]);const Tke={class:"upload-file"},Ake={key:0,class:"el-upload__tip"},Vke={style:{color:"#f56c6c"}},Oke={style:{color:"#f56c6c"}},Pke={class:"el-icon-document"},Lke={class:"ele-upload-list__item-content-action"},Ike={__name:"index",props:{modelValue:[String,Object,Array],limit:{type:Number,default:5},fileSize:{type:Number,default:5},fileType:{type:Array,default:()=>["doc","xls","ppt","txt","pdf"]},isShowTip:{type:Boolean,default:!0}},setup(e,{emit:t}){const o=e,{proxy:l}=Qe(),r=V(0),n=V([]),a=window.APP_CONFIG.VITE_BASE_URL,i=V(window.APP_CONFIG.VITE_BASE_URL+"/common/upload"),c=V({Authorization:"Bearer "+rr()}),u=V([]),d=S(()=>o.isShowTip&&(o.fileType||o.fileSize));ve(()=>o.modelValue,b=>{if(b){let x=1;const k=Array.isArray(b)?b:o.modelValue.split(",");u.value=k.map(z=>(typeof z=="string"&&(z={name:z,url:z}),z.uid=z.uid||new Date().getTime()+x++,z))}else return u.value=[],[]},{deep:!0,immediate:!0});function p(b){if(o.fileType.length){const x=b.name.split("."),k=x[x.length-1];if(!(o.fileType.indexOf(k)>=0))return l.$modal.msgError(`\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E, \u8BF7\u4E0A\u4F20${o.fileType.join("/")}\u683C\u5F0F\u6587\u4EF6!`),!1}return o.fileSize&&!(b.size/1024/10240&&n.value.length===r.value&&(u.value=u.value.filter(b=>b.url!==void 0).concat(n.value),n.value=[],r.value=0,t("update:modelValue",w(u.value)),l.$modal.closeLoading())}function _(b){return b.lastIndexOf("/")>-1?b.slice(b.lastIndexOf("/")+1):""}function w(b,x){let k="";x=x||",";for(let z in b)b[z].url&&(k+=b[z].url+x);return k!=""?k.substr(0,k.length-1):""}return(b,x)=>{const k=Oe("el-button"),z=Oe("el-upload"),M=Oe("el-link");return y(),$("div",Tke,[K(z,{multiple:"",action:s(i),"before-upload":p,"file-list":s(u),limit:e.limit,"on-error":h,"on-exceed":f,"on-success":v,"show-file-list":!1,headers:s(c),class:"upload-file-uploader",ref:"fileUpload"},{default:Z(()=>[K(k,{type:"primary"},{default:Z(()=>[ot("\u9009\u53D6\u6587\u4EF6")]),_:1})]),_:1},8,["action","file-list","limit","headers"]),s(d)?(y(),$("div",Ake,[ot(" \u8BF7\u4E0A\u4F20 "),e.fileSize?(y(),$(Pe,{key:0},[ot(" \u5927\u5C0F\u4E0D\u8D85\u8FC7 "),C("b",Vke,Ce(e.fileSize)+"MB",1)],64)):ae("",!0),e.fileType?(y(),$(Pe,{key:1},[ot(" \u683C\u5F0F\u4E3A "),C("b",Oke,Ce(e.fileType.join("/")),1)],64)):ae("",!0),ot(" \u7684\u6587\u4EF6 ")])):ae("",!0),K(G2,{class:"upload-file-list el-upload-list el-upload-list--text",name:"el-fade-in-linear",tag:"ul"},{default:Z(()=>[(y(!0),$(Pe,null,ut(s(u),(E,A)=>(y(),$("li",{key:E.uid,class:"el-upload-list__item ele-upload-list__item-content"},[K(M,{href:`${s(a)}${E.url}`,underline:!1,target:"_blank"},{default:Z(()=>[C("span",Pke,Ce(_(E.name)),1)]),_:2},1032,["href"]),C("div",Lke,[K(M,{underline:!1,onClick:O=>m(A),type:"danger"},{default:Z(()=>[ot("\u5220\u9664")]),_:2},1032,["onClick"])])]))),128))]),_:1})])}}},Rke=Eo(Ike,[["__scopeId","data-v-bc2766f2"]]);const Hke={class:"component-upload-image"},Nke={key:0,class:"el-upload__tip"},Bke={style:{color:"#f56c6c"}},Dke={style:{color:"#f56c6c"}},Fke=["src"],jke={__name:"index",props:{modelValue:[String,Object,Array],limit:{type:Number,default:5},fileSize:{type:Number,default:5},fileType:{type:Array,default:()=>["png","jpg","jpeg"]},isShowTip:{type:Boolean,default:!0}},setup(e,{emit:t}){var k,z;const o=e,{proxy:l}=Qe(),r=V(0),n=V([]),a=V(""),i=V(!1),c=(k=window.APP_CONFIG)==null?void 0:k.VITE_BASE_URL,u=V(((z=window.APP_CONFIG)==null?void 0:z.VITE_BASE_URL)+"/common/upload"),d=V({Authorization:"Bearer "+rr()}),p=V([]),f=S(()=>o.isShowTip&&(o.fileType||o.fileSize));ve(()=>o.modelValue,M=>{if(M){const E=Array.isArray(M)?M:o.modelValue.split(",");p.value=E.map(A=>(typeof A=="string"&&(A.indexOf(c)===-1?A={name:c+A,url:c+A}:A={name:A,url:A}),A))}else return p.value=[],[]},{deep:!0,immediate:!0});function h(M){let E=!1;if(o.fileType.length){let A="";M.name.lastIndexOf(".")>-1&&(A=M.name.slice(M.name.lastIndexOf(".")+1)),E=o.fileType.some(O=>!!(M.type.indexOf(O)>-1||A&&A.indexOf(O)>-1))}else E=M.type.indexOf("image")>-1;if(!E)return l.$modal.msgError(`\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E, \u8BF7\u4E0A\u4F20${o.fileType.join("/")}\u56FE\u7247\u683C\u5F0F\u6587\u4EF6!`),!1;if(o.fileSize&&!(M.size/1024/1024A.name).indexOf(M.name);if(E>-1&&n.value.length===r.value)return p.value.splice(E,1),t("update:modelValue",x(p.value)),!1}function _(){r.value>0&&n.value.length===r.value&&(p.value=p.value.filter(M=>M.url!==void 0).concat(n.value),n.value=[],r.value=0,t("update:modelValue",x(p.value)),l.$modal.closeLoading())}function w(){l.$modal.msgError("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),l.$modal.closeLoading()}function b(M){a.value=M.url,i.value=!0}function x(M,E){let A="";E=E||",";for(let O in M)M[O].url!==void 0&&M[O].url.indexOf("blob:")!==0&&(A+=M[O].url.replace(c,"")+E);return A!=""?A.substr(0,A.length-1):""}return(M,E)=>{const A=Oe("plus"),O=Oe("el-icon"),D=Oe("el-upload"),I=Oe("el-dialog");return y(),$("div",Hke,[K(D,{multiple:"",action:s(u),"list-type":"picture-card","on-success":m,"before-upload":h,limit:e.limit,"on-error":w,"on-exceed":v,ref:"imageUpload","before-remove":g,"show-file-list":!0,headers:s(d),"file-list":s(p),"on-preview":b,class:T({hide:s(p).length>=e.limit})},{default:Z(()=>[K(O,{class:"avatar-uploader-icon"},{default:Z(()=>[K(A)]),_:1})]),_:1},8,["action","limit","headers","file-list","class"]),s(f)?(y(),$("div",Nke,[ot(" \u8BF7\u4E0A\u4F20 "),e.fileSize?(y(),$(Pe,{key:0},[ot(" \u5927\u5C0F\u4E0D\u8D85\u8FC7 "),C("b",Bke,Ce(e.fileSize)+"MB",1)],64)):ae("",!0),e.fileType?(y(),$(Pe,{key:1},[ot(" \u683C\u5F0F\u4E3A "),C("b",Dke,Ce(e.fileType.join("/")),1)],64)):ae("",!0),ot(" \u7684\u6587\u4EF6 ")])):ae("",!0),K(I,{modelValue:s(i),"onUpdate:modelValue":E[0]||(E[0]=N=>xt(i)?i.value=N:null),title:"\u9884\u89C8",width:"800px","append-to-body":""},{default:Z(()=>[C("img",{src:s(a),style:{display:"block","max-width":"100%",margin:"0 auto"}},null,8,Fke)]),_:1},8,["modelValue"])])}}},Kke=Eo(jke,[["__scopeId","data-v-ab87f2df"]]);const Wke={class:"image-slot"},qke={__name:"index",props:{src:{type:String,default:""},width:{type:[Number,String],default:""},height:{type:[Number,String],default:""}},setup(e){const t=e,o=S(()=>{var i;if(!t.src)return;let a=t.src.split(",")[0];return Wv(a)?a:((i=window.APP_CONFIG)==null?void 0:i.VITE_BASE_URL)+a}),l=S(()=>{if(!t.src)return;let a=t.src.split(","),i=[];return a.forEach(c=>{var u;return Wv(c)?i.push(c):i.push(((u=window.APP_CONFIG)==null?void 0:u.VITE_BASE_URL)+c)}),i}),r=S(()=>typeof t.width=="string"?t.width:`${t.width}px`),n=S(()=>typeof t.height=="string"?t.height:`${t.height}px`);return(a,i)=>{const c=Oe("picture-filled"),u=Oe("el-icon"),d=Oe("el-image");return y(),ue(d,{src:`${s(o)}`,fit:"cover",style:Be(`width:${s(r)};height:${s(n)};`),"preview-src-list":s(l),"append-to-body":"true"},{error:Z(()=>[C("div",Wke,[K(u,null,{default:Z(()=>[K(c)]),_:1})])]),_:1},8,["src","style","preview-src-list"])}}},Uke=Eo(qke,[["__scopeId","data-v-e952170a"]]);const Yke={class:"el-tree-select"},Gke={__name:"index",props:{objMap:{type:Object,default:()=>({value:"id",label:"label",children:"children"})},accordion:{type:Boolean,default:()=>!1},value:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""}},emits:["update:value"],setup(e,{emit:t}){const o=e,{proxy:l}=Qe(),r=S({get:()=>o.value,set:h=>{t("update:value",h)}}),n=V(""),a=V([]);function i(){Ne(()=>{const h=r.value;if(h!==null&&typeof h<"u"){const v=l.$refs.selectTree.getNode(h);v&&(n.value=v.data[o.objMap.label],l.$refs.selectTree.setCurrentKey(h),a.value=[h])}else p()})}function c(h){n.value=h[o.objMap.label],r.value=h[o.objMap.value],a.value=[],l.$refs.treeSelect.blur(),u("")}function u(h){l.$refs.selectTree.filter(h)}function d(h,v){return h?v[o.objMap.label].indexOf(h)!==-1:!0}function p(){n.value="",r.value="",a.value=[],f()}function f(){document.querySelectorAll("#tree-option .el-tree-node").forEach(v=>v.classList.remove("is-current"))}return Ze(()=>{i()}),ve(r,()=>{i()}),(h,v)=>{const m=Oe("el-tree"),g=Oe("el-option"),_=Oe("el-select");return y(),$("div",Yke,[K(_,{style:{width:"100%"},modelValue:s(r),"onUpdate:modelValue":v[0]||(v[0]=w=>xt(r)?r.value=w:null),ref:"treeSelect",filterable:!0,clearable:!0,onClear:p,"filter-method":u,placeholder:e.placeholder},{default:Z(()=>[K(g,{value:s(r),label:s(n)},{default:Z(()=>[K(m,{id:"tree-option",ref:"selectTree",accordion:e.accordion,data:e.options,props:e.objMap,"node-key":e.objMap.value,"expand-on-click-node":!1,"default-expanded-keys":s(a),"filter-node-method":d,onNodeClick:c},null,8,["accordion","data","props","node-key","default-expanded-keys"])]),_:1},8,["value","label"])]),_:1},8,["modelValue","placeholder"])])}}},Xke=Eo(Gke,[["__scopeId","data-v-0d03e5b3"]]);const Jke=["index"],Zke={__name:"index",props:{options:{type:Array,default:null},value:[Number,String,Array]},setup(e){const t=e,o=S(()=>t.value!==null&&typeof t.value<"u"?Array.isArray(t.value)?t.value:[String(t.value)]:[]);return(l,r)=>{const n=Oe("el-tag");return y(),$("div",null,[(y(!0),$(Pe,null,ut(e.options,(a,i)=>(y(),$(Pe,null,[s(o).includes(a.value)?(y(),$(Pe,{key:0},[a.elTagType=="default"||a.elTagType==""?(y(),$("span",{key:a.value,index:i,class:T(a.elTagClass)},Ce(a.label),11,Jke)):(y(),ue(n,{"disable-transitions":!0,key:a.value+"",index:i,type:a.elTagType==="primary"?"":a.elTagType,class:T(a.elTagClass)},{default:Z(()=>[ot(Ce(a.label),1)]),_:2},1032,["index","type","class"]))],64)):ae("",!0)],64))),256))])}}},Qke=Eo(Zke,[["__scopeId","data-v-2ad79500"]]),Wt=n4(rke);Wt.config.globalProperties.useDict=wke;Wt.config.globalProperties.download=cwe;Wt.config.globalProperties.parseTime=twe;Wt.config.globalProperties.resetForm=owe;Wt.config.globalProperties.handleTree=awe;Wt.config.globalProperties.addDateRange=lwe;Wt.config.globalProperties.selectDictLabel=rwe;Wt.config.globalProperties.selectDictLabels=nwe;Wt.component("DictTag",Qke);Wt.component("Pagination",zke);Wt.component("TreeSelect",Xke);Wt.component("FileUpload",Rke);Wt.component("ImageUpload",Kke);Wt.component("ImagePreview",Uke);Wt.component("RightToolbar",Mke);Wt.use(wo);Wt.use(I7e);Wt.use(fke);Wt.use(bke);Wt.component("svg-icon",gke);cke(Wt);Wt.use(E7e,{locale:M7e,size:pl.get("size")||"default"});Wt.mount("#app");export{fr as $,oCe as A,Sg as B,Ze as C,ve as D,Mr as E,ur as F,T as G,Pe as H,ut as I,Xe as J,Ac as K,zo as L,X2 as M,tCe as N,gl as O,lt as P,Be as Q,ge as R,It as S,_t as T,eCe as U,Z5 as V,Ua as W,A6 as X,te as Y,vs as Z,Eo as _,Nf as a,Ao as a0,zke as a1,Kt as a2,am as a3,Ne as a4,ir as a5,wt as a6,rr as a7,ha as a8,xt as a9,nl as aa,bp as ab,Ble as ac,lCe as ad,Gt as ae,aCe as af,iCe as ag,cCe as ah,Yv as ai,sCe as aj,uCe as ak,twe as al,gke as am,Wr as an,wo as ao,Hr as b,$ as c,Oe as d,K as e,s as f,nCe as g,pl as h,bt as i,ae as j,ue as k,C as l,ot as m,Ue as n,y as o,B5 as p,D5 as q,V as r,Qe as s,rCe as t,Xa as u,S as v,Z as w,Ce as x,z9 as y,xo as z}; diff --git a/airport/assets/index.79832097.js.gz b/airport/assets/index.79832097.js.gz new file mode 100644 index 0000000..96ddfe1 Binary files /dev/null and b/airport/assets/index.79832097.js.gz differ diff --git a/airport/assets/index.8150f143.css b/airport/assets/index.8150f143.css new file mode 100644 index 0000000..96217f3 --- /dev/null +++ b/airport/assets/index.8150f143.css @@ -0,0 +1 @@ +.app-container[data-v-6645c0b2]{padding:20px;background-color:#292c38;color:#fff;height:100%;border-radius:10px;display:flex;flex-direction:column}.table-container[data-v-6645c0b2]{flex:none;height:auto;max-height:none;overflow:hidden;margin-bottom:0}.park-container[data-v-6645c0b2]{background-color:#292c38;border-radius:4px;height:auto;overflow:visible}.search-area[data-v-6645c0b2]{display:flex;align-items:center;margin-bottom:20px;margin-top:20px}.search-area .search-input[data-v-6645c0b2]{width:250px;margin-right:10px}.search-area .search-select[data-v-6645c0b2]{width:150px;margin-right:10px}.search-area .search-buttons[data-v-6645c0b2]{margin-right:20px;display:flex;gap:10px}.search-area .action-buttons[data-v-6645c0b2]{margin-left:auto;display:flex;gap:10px}.vehicle-image[data-v-6645c0b2]{width:48px;height:48px;border-radius:4px}[data-v-6645c0b2] .el-input__wrapper:hover{box-shadow:none!important}[data-v-6645c0b2] .el-select{border:none!important;width:160px!important;--el-border-color-hover: #343744!important;--el-border-color: #343744!important}[data-v-6645c0b2] .el-select__wrapper.is-focused{box-shadow:none!important}[data-v-6645c0b2] .el-select__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;width:160px;font-size:15px;border:none!important}[data-v-6645c0b2] .el-input__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;border:none!important;box-shadow:none!important}[data-v-6645c0b2] .el-select__placeholder{color:#96a0b5!important}.custom-table[data-v-6645c0b2]{background-color:#292c38!important;color:#fff;margin-bottom:20px;border-radius:4px;overflow:hidden}.custom-table[data-v-6645c0b2] .el-loading-mask{background-color:#292c38b3!important}.custom-table[data-v-6645c0b2] .el-table__empty-block{background-color:#292c38!important}.custom-table[data-v-6645c0b2] .el-table__empty-text{color:#96a0b5!important}.custom-table[data-v-6645c0b2] .el-table,.custom-table[data-v-6645c0b2] .el-table__body{background-color:#292c38!important}.custom-table[data-v-6645c0b2] .el-table__inner-wrapper:before{display:none}.custom-table[data-v-6645c0b2] .el-table__header{border-top-left-radius:4px;border-top-right-radius:4px;overflow:hidden}.custom-table[data-v-6645c0b2] .el-table__header-wrapper th{background-color:#343744!important;color:#96a0b5!important;font-weight:400;border-bottom:none}.custom-table[data-v-6645c0b2] .el-table__header-wrapper tr th.el-table__cell:first-child,.custom-table[data-v-6645c0b2] .el-table__header-wrapper tr th.el-table__cell:first-child .cell{border-top-left-radius:6px}.custom-table[data-v-6645c0b2] .el-table__header-wrapper tr th.el-table__cell:last-child{border-top-right-radius:4px}.custom-table[data-v-6645c0b2] .el-table__header-wrapper tr th.el-table__cell:last-child .cell{border-top-right-radius:4px}.custom-table[data-v-6645c0b2] .el-table__header-wrapper .el-table__header th.el-table__cell{background-color:#343744!important;color:#96a0b5}.custom-table[data-v-6645c0b2] .el-table__header-wrapper tr{background-color:#343744!important}.custom-table[data-v-6645c0b2] .el-table__body-wrapper td{height:56px!important;background-color:#292c38;color:#fff;border-bottom:1px solid #4C4F5F}.custom-table[data-v-6645c0b2] .el-table__body tr:hover>td{background:#2B3B5A!important}.custom-table[data-v-6645c0b2] .el-button--link{border:none;background:transparent;color:#347ae2;padding:0;margin:0 5px}.custom-table[data-v-6645c0b2] .el-button.is-text{background-color:transparent!important;border-color:transparent;color:#347ae2}.custom-table[data-v-6645c0b2] .el-button.is-text:hover,.custom-table[data-v-6645c0b2] .el-button.is-text:focus,.custom-table[data-v-6645c0b2] .el-button.is-text:active{background-color:transparent!important;color:#347ae2}.custom-table[data-v-6645c0b2] .el-button.el-button--primary.is-text,.custom-table[data-v-6645c0b2] .el-button.el-button--primary.is-text:hover,.custom-table[data-v-6645c0b2] .el-table__body tr:hover .el-button--link.is-text{background-color:transparent!important;color:#347ae2}[data-v-6645c0b2] .el-table{--el-table-bg-color: #292c38 !important;--el-table-tr-bg-color: #292c38 !important;--el-table-border-color: #4C4F5F !important;--el-table-header-bg-color: #343744 !important;--el-table-row-hover-bg-color: #2B3B5A !important}[data-v-6645c0b2] .el-table:before{display:none}.vehicle-dialog[data-v-6645c0b2] .el-dialog,.import-dialog[data-v-6645c0b2] .el-dialog{background-color:#343744;border-radius:8px}.vehicle-dialog[data-v-6645c0b2] .el-dialog__header,.import-dialog[data-v-6645c0b2] .el-dialog__header{background-color:#343744;color:#fff;border-bottom:1px solid #4C4F5F}.vehicle-dialog[data-v-6645c0b2] .el-dialog__body,.import-dialog[data-v-6645c0b2] .el-dialog__body{background-color:#343744;color:#fff}.vehicle-dialog[data-v-6645c0b2] .el-dialog__footer,.import-dialog[data-v-6645c0b2] .el-dialog__footer{background-color:#343744;border-top:1px solid #4C4F5F}.vehicle-dialog[data-v-6645c0b2] .el-form-item__label,.import-dialog[data-v-6645c0b2] .el-form-item__label{color:#96a0b5}.vehicle-dialog[data-v-6645c0b2] .el-input__wrapper,.import-dialog[data-v-6645c0b2] .el-input__wrapper,.vehicle-dialog[data-v-6645c0b2] .el-select__wrapper,.import-dialog[data-v-6645c0b2] .el-select__wrapper{background:#292C38!important;border:1px solid #4C4F5F!important;color:#fff!important}.vehicle-dialog[data-v-6645c0b2] .el-input__inner,.import-dialog[data-v-6645c0b2] .el-input__inner{color:#fff!important}.vehicle-dialog[data-v-6645c0b2] .el-select__placeholder,.import-dialog[data-v-6645c0b2] .el-select__placeholder{color:#96a0b5!important}.avatar-uploader[data-v-6645c0b2] .el-upload{border:1px dashed #4C4F5F;border-radius:6px;cursor:pointer;position:relative;overflow:hidden;transition:var(--el-transition-duration-fast)}.avatar-uploader[data-v-6645c0b2] .el-upload:hover{border-color:#347ae2}.avatar-uploader[data-v-6645c0b2] .el-upload-dragger{background-color:#292c38;border:1px dashed #4C4F5F;border-radius:6px;box-sizing:border-box;width:90px;height:90px;text-align:center}.avatar-uploader[data-v-6645c0b2] .el-upload-dragger:hover{border-color:#347ae2}.avatar-uploader-icon[data-v-6645c0b2]{font-size:28px;color:#8c939d;width:90px;height:90px;text-align:center;line-height:90px}.avatar[data-v-6645c0b2]{width:90px;height:90px;display:block}@media (max-width: 1200px){.search-area[data-v-6645c0b2]{flex-wrap:wrap;gap:10px}.search-area .search-input[data-v-6645c0b2]{width:100%;max-width:250px;margin-right:0}.search-area .search-select[data-v-6645c0b2],.search-area .search-buttons[data-v-6645c0b2]{margin-right:0}.search-area .action-buttons[data-v-6645c0b2]{margin-left:0;margin-top:10px}}@media (max-width: 768px){.search-area[data-v-6645c0b2]{flex-direction:column;align-items:flex-start}.search-area .search-input[data-v-6645c0b2],.search-area .search-select[data-v-6645c0b2]{width:100%;max-width:none}.search-area .search-buttons[data-v-6645c0b2],.search-area .action-buttons[data-v-6645c0b2]{width:100%;margin-top:10px}}.import-dialog[data-v-6645c0b2] .el-dialog__header{margin-right:0;padding:20px;border-bottom:1px solid #4C4F5F}.import-dialog[data-v-6645c0b2] .el-dialog__body{padding:20px}.import-dialog[data-v-6645c0b2] .el-dialog__footer{padding:20px;border-top:1px solid #4C4F5F}.import-dialog .import-title[data-v-6645c0b2]{font-size:14px;color:#96a0b5;margin-bottom:20px}.import-dialog .import-upload[data-v-6645c0b2] .el-upload-dragger{width:100%;height:200px;background-color:#292c38;border:1px dashed #4C4F5F;border-radius:8px;display:flex;justify-content:center;align-items:center}.import-dialog .import-upload[data-v-6645c0b2] .el-upload-dragger:hover{border-color:#347ae2}.import-dialog .import-upload .upload-content[data-v-6645c0b2]{display:flex;flex-direction:column;align-items:center;color:#96a0b5}.import-dialog .import-upload .upload-content .upload-icon[data-v-6645c0b2]{font-size:40px;color:#96a0b5;margin-bottom:10px}.import-dialog .import-upload .upload-content .upload-text[data-v-6645c0b2]{font-size:14px;margin-bottom:10px}.import-dialog .import-upload .upload-content .upload-link[data-v-6645c0b2]{display:flex;align-items:center;color:#347ae2;cursor:pointer}.import-dialog .import-upload .upload-content .upload-link .upload-icon-small[data-v-6645c0b2]{font-size:16px;margin-right:4px}.import-dialog .import-upload .upload-content .upload-link .click-upload[data-v-6645c0b2]{font-size:14px}.import-dialog .import-footer[data-v-6645c0b2]{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.import-dialog .import-footer .footer-left[data-v-6645c0b2] .el-checkbox__label{color:#96a0b5}.import-dialog .import-footer .footer-right[data-v-6645c0b2]{display:flex;align-items:center;gap:10px}.import-dialog .import-footer .footer-right .file-format[data-v-6645c0b2]{color:#96a0b5;font-size:12px}.import-dialog .import-footer .footer-right .download-link[data-v-6645c0b2]{font-size:12px}.import-dialog .dialog-footer[data-v-6645c0b2]{display:flex;justify-content:flex-end;gap:10px}.avatar-uploader-box[data-v-6645c0b2]{position:relative;display:flex;justify-content:flex-start;margin-top:8px}.avatar-uploader[data-v-6645c0b2]{text-align:center}.avatar-preview[data-v-6645c0b2]{position:relative;width:90px;height:90px;border-radius:0;overflow:visible}.avatar-preview .avatar[data-v-6645c0b2]{width:100%;height:100%;object-fit:cover;border-radius:0;border:1px solid #343744}.avatar-preview .avatar-replace[data-v-6645c0b2]{position:absolute;top:-8px;right:-8px;width:20px;height:20px;background-color:#00000080;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer;opacity:1;z-index:2}.avatar-preview .avatar-replace .el-icon[data-v-6645c0b2]{font-size:14px;color:#fff}.avatar-upload-placeholder[data-v-6645c0b2]{width:90px;height:90px;border:1px dashed #4C4F5F;border-radius:0;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;transition:all .3s;position:relative;background-color:transparent;overflow:visible}.avatar-upload-placeholder[data-v-6645c0b2]:hover{border-color:#409eff}.avatar-upload-placeholder .avatar-uploader-icon[data-v-6645c0b2]{font-size:28px;color:#8c939d}.avatar-count[data-v-6645c0b2]{position:absolute;top:-5px;right:-25px;font-size:14px;color:#fff;z-index:20;background:none;padding:0} diff --git a/airport/assets/index.8150f143.css.gz b/airport/assets/index.8150f143.css.gz new file mode 100644 index 0000000..ffdfcb3 Binary files /dev/null and b/airport/assets/index.8150f143.css.gz differ diff --git a/airport/assets/index.85052e55.js b/airport/assets/index.85052e55.js new file mode 100644 index 0000000..3e6abcb --- /dev/null +++ b/airport/assets/index.85052e55.js @@ -0,0 +1 @@ +import{_ as Ne,Y as Se,r as f,a6 as $e,a7 as Re,C as Pe,d as r,a8 as Te,o as v,c as I,l as n,e,f as o,w as a,J as Q,k as V,T as Ae,a9 as Ee,a as Fe,s as De,H as D,I as L,m as p,x as y,n as Le,aa as Be,ab as Oe,ac as Y,p as ze,q as Ge}from"./index.79832097.js";import{l as Me,d as qe,g as je,u as Je,a as He}from"./user.72b5bfe4.js";import{l as Qe}from"./role.9b221df4.js";const w=U=>(ze("data-v-4923134e"),U=U(),Ge(),U),Ye={class:"app-container"},Ke={class:"user-container"},We={class:"search-area"},Xe={class:"search-buttons"},Ze={class:"action-buttons"},el={class:"avatar-box"},ll=["src"],al={class:"avatar-uploader-box"},tl={key:0,class:"avatar-preview"},ol=["src"],sl=w(()=>n("div",{class:"avatar-count"},"1/1",-1)),nl=["onClick"],dl={class:"avatar-upload-placeholder"},ul=w(()=>n("div",{class:"avatar-count"},"0/1",-1)),rl={class:"dialog-footer"},il=w(()=>n("div",{class:"import-title"},"\u9009\u62E9\u9700\u8981\u5BFC\u5165\u7684\u9879\u76EE\u6587\u4EF6",-1)),cl={class:"upload-content"},pl=w(()=>n("div",{class:"upload-text"},"\u62D6\u62FD\u6587\u4EF6\u5230\u8FD9\u91CC\uFF0C\u6216",-1)),fl={class:"upload-link"},ml=w(()=>n("span",{class:"click-upload"},"\u70B9\u6B64\u6DFB\u52A0",-1)),_l={class:"import-footer"},vl={class:"footer-left"},gl={class:"footer-right"},bl=w(()=>n("span",{class:"file-format"},"\u4EC5\u5141\u8BB8\u5BFC\u5165xls\u3001xlsx\u683C\u5F0F\u6587\u4EF6\u3002",-1)),hl={class:"dialog-footer"},yl=Se({name:"User"}),wl=Object.assign(yl,{setup(U){var G,M;Fe();const{proxy:i}=De(),{sys_normal_disable:K,sys_user_sex:xl}=i.useDict("sys_normal_disable","sys_user_sex"),R=f([]),b=f(!1),C=f(!0);f(!0);const P=f([]),W=f(!0),B=f(!0),N=f(0),T=f(""),O=f([]),X=f([]),A=f([]),Z=f(""),c=$e({open:!1,title:"",isUploading:!1,updateSupport:0,headers:{Authorization:"Bearer "+Re()},url:((G=window.APP_CONFIG)==null?void 0:G.VITE_BASE_URL)+"/system/user/importData",avatarUrl:((M=window.APP_CONFIG)==null?void 0:M.VITE_BASE_URL)+"/system/user/profile/avatar"});f([{key:0,label:"\u7528\u6237\u7F16\u53F7",visible:!0},{key:1,label:"\u7528\u6237\u540D\u79F0",visible:!0},{key:2,label:"\u7528\u6237\u6635\u79F0",visible:!0},{key:3,label:"\u90E8\u95E8",visible:!0},{key:4,label:"\u624B\u673A\u53F7\u7801",visible:!0},{key:5,label:"\u72B6\u6001",visible:!0},{key:6,label:"\u521B\u5EFA\u65F6\u95F4",visible:!0}]);const d=f({pageNum:1,pageSize:10,userName:void 0,phonenumber:void 0,status:void 0,roleId:void 0,deptId:void 0}),u=f({}),ee=f({userName:[{required:!0,message:"\u7528\u6237\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"},{min:2,max:20,message:"\u7528\u6237\u540D\u79F0\u957F\u5EA6\u5FC5\u987B\u4ECB\u4E8E 2 \u548C 20 \u4E4B\u95F4",trigger:"blur"}],password:[{required:!0,message:"\u7528\u6237\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"},{min:5,max:20,message:"\u7528\u6237\u5BC6\u7801\u957F\u5EA6\u5FC5\u987B\u4ECB\u4E8E 5 \u548C 20 \u4E4B\u95F4",trigger:"blur"}],email:[{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740",trigger:["blur","change"]}],phonenumber:[{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801",trigger:"blur"}]});function h(){C.value=!0,Me(i.addDateRange(d.value,O.value)).then(s=>{C.value=!1;const l=Array.isArray(s.rows)?s.rows:[];R.value=l,N.value=typeof s.total=="number"?s.total:l.length}).catch(()=>{C.value=!1,R.value=[],N.value=0})}function le(){if(typeof d.value.userName=="string"){const s=d.value.userName.trim();d.value.userName=s||void 0}d.value.roleId===""&&(d.value.roleId=void 0),d.value.status===""&&(d.value.status=void 0),d.value.pageNum=1,h()}function ae(){O.value=[],d.value.userName=void 0,d.value.phonenumber=void 0,d.value.status=void 0,d.value.roleId=void 0,d.value.deptId=void 0,d.value.pageNum=1,h()}function te(s){P.value=s.map(l=>l.userId),W.value=s.length!=1,B.value=!s.length}function z(s){const l=s.userId||P.value;i.$modal.confirm("\u786E\u5B9A\u5220\u9664\u6B64\u7528\u6237\u5417?","\u5220\u9664").then(function(){return qe(l)}).then(()=>{h(),i.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function oe(){E(),T.value="\u6DFB\u52A0\u7528\u6237",b.value=!0}function se(s){E();const l=s.userId||P.value[0];je(l).then(m=>{u.value=m.data,u.value.roleIds=m.roleIds||[],b.value=!0,T.value="\u4FEE\u6539\u7528\u6237"})}function E(){u.value={userId:void 0,userName:void 0,password:void 0,phonenumber:void 0,email:void 0,sex:void 0,status:"0",remark:void 0,roleIds:[],avatar:void 0},i.resetForm("userRef")}function ne(){i.$refs.userRef.validate(s=>{if(s)if(u.value.userId!=null){const l={...u.value};l.roles&&delete l.roles,l.admin!==void 0&&delete l.admin,l.password||delete l.password,Je(l).then(m=>{i.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),b.value=!1,h()})}else{const l={...u.value};l.roles&&delete l.roles,l.admin!==void 0&&delete l.admin,l.password=l.password||Z.value,He(l).then(m=>{i.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),b.value=!1,h()})}})}function de(){b.value=!1,E()}function ue(){i.download("system/user/export",{...d.value,pageNum:void 0,pageSize:void 0},`\u7528\u6237\u6570\u636E_${new Date().getTime()}.xlsx`)}function re(){c.title="\u7528\u6237\u5BFC\u5165",c.open=!0,c.isUploading=!1}function ie(s,l,m){c.isUploading=!0}function ce(s,l,m){c.open=!1,c.isUploading=!1,i.$refs.uploadRef.clearFiles(),s.code===200?(i.$alert("
    "+s.msg+"
    ","\u5BFC\u5165\u7ED3\u679C",{dangerouslyUseHTMLString:!0}),h()):i.$modal.msgError(s.msg)}function pe(){i.download("system/user/importTemplate",{},`user_template_${new Date().getTime()}.xlsx`)}function fe(){i.$refs.uploadRef.submit()}function me(s){const l=s.type==="image/jpeg"||s.type==="image/png",m=s.size/1024/1024<2;return l?m?!0:(i.$modal.msgError("\u4E0A\u4F20\u5934\u50CF\u56FE\u7247\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72MB!"),!1):(i.$modal.msgError("\u4E0A\u4F20\u5934\u50CF\u56FE\u7247\u53EA\u80FD\u662FJPG\u6216PNG\u683C\u5F0F!"),!1)}function _e(s,l){s.code===200?(u.value.avatar=s.imgUrl,i.$modal.msgSuccess("\u4E0A\u4F20\u6210\u529F")):i.$modal.msgError(s.msg||"\u4E0A\u4F20\u5931\u8D25")}function ve(){u.value.avatar=void 0}Pe(()=>{h(),ge(),be()});function ge(){Qe().then(s=>{A.value=s.rows})}function be(){X.value=[]}return(s,l)=>{const m=r("el-input"),q=r("el-option"),he=r("el-select"),_=r("el-button"),g=r("el-table-column"),ye=r("el-table"),we=r("pagination"),x=r("el-form-item"),k=r("el-col"),S=r("el-row"),$=r("el-icon"),j=r("el-upload"),J=r("el-checkbox"),xe=r("el-checkbox-group"),ke=r("el-radio"),Ie=r("el-radio-group"),Ve=r("el-form"),H=r("el-dialog"),Ue=r("el-link"),Ce=Te("loading");return v(),I("div",Ye,[n("div",Ke,[n("div",We,[e(m,{modelValue:o(d).userName,"onUpdate:modelValue":l[0]||(l[0]=t=>o(d).userName=t),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D\u67E5\u8BE2",clearable:"","prefix-icon":"Search",class:"search-input"},null,8,["modelValue"]),e(he,{modelValue:o(d).roleId,"onUpdate:modelValue":l[1]||(l[1]=t=>o(d).roleId=t),placeholder:"\u89D2\u8272",clearable:"",class:"search-select"},{default:a(()=>[e(q,{label:"\u5168\u90E8",value:""}),(v(!0),I(D,null,L(o(A),t=>(v(),V(q,{key:t.roleId,label:t.roleName,value:t.roleId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),n("div",Xe,[e(_,{type:"primary",class:"search-btn",onClick:le},{default:a(()=>[p("\u641C\u7D22")]),_:1}),e(_,{class:"reset-btn",onClick:ae},{default:a(()=>[p("\u91CD\u7F6E")]),_:1})]),n("div",Ze,[e(_,{type:"primary",class:"search-btn",onClick:oe},{default:a(()=>[p("\u65B0\u589E")]),_:1}),e(_,{class:"reset-btn",plain:"",onClick:re},{default:a(()=>[p("\u5BFC\u5165")]),_:1}),e(_,{class:"reset-btn",plain:"",onClick:ue},{default:a(()=>[p("\u5BFC\u51FA")]),_:1}),e(_,{class:"export-btn",disabled:o(B),type:"info",onClick:z},{default:a(()=>[p("\u5220\u9664")]),_:1},8,["disabled"])])]),Q((v(),V(ye,{data:o(R),onSelectionChange:te,style:{width:"100%"},class:"custom-table","header-cell-style":{backgroundColor:"#343744",color:"#fff"},"bg-color":"#292C38"},{default:a(()=>[e(g,{type:"selection",width:"50",align:"left"}),e(g,{label:"\u5E8F\u53F7",width:"60",align:"left"},{default:a(t=>[p(y(t.$index+1),1)]),_:1}),e(g,{label:"\u64CD\u4F5C",width:"120",align:"left"},{default:a(t=>[e(_,{link:"",text:"",onClick:F=>se(t.row)},{default:a(()=>[p("\u7F16\u8F91")]),_:2},1032,["onClick"]),e(_,{link:"",text:"",type:"primary",onClick:F=>z(t.row)},{default:a(()=>[p("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1}),e(g,{label:"\u4EBA\u50CF",prop:"avatar",align:"left",class:"avatar-box"},{default:a(t=>[n("div",el,[n("img",{src:t.row.avatar,alt:""},null,8,ll)])]),_:1}),e(g,{label:"\u7528\u6237\u540D",prop:"userName",align:"left"}),e(g,{label:"\u89D2\u8272",align:"left"},{default:a(t=>[n("span",null,y(t.row.roles?t.row.roles.map(F=>F.roleName).join(", "):"-"),1)]),_:1}),e(g,{label:"\u624B\u673A\u53F7",prop:"phonenumber",align:"left"}),e(g,{label:"\u8D26\u53F7\u72B6\u6001",align:"left"},{default:a(t=>[p(y(t.row.status==="0"?"\u6B63\u5E38":"\u505C\u7528"),1)]),_:1}),e(g,{label:"\u521B\u5EFA\u65F6\u95F4",align:"left",prop:"createTime",width:"160"},{default:a(t=>[n("span",null,y(s.parseTime(t.row.createTime)),1)]),_:1})]),_:1},8,["data"])),[[Ce,o(C)]]),Q(e(we,{total:o(N),page:o(d).pageNum,"onUpdate:page":l[2]||(l[2]=t=>o(d).pageNum=t),limit:o(d).pageSize,"onUpdate:limit":l[3]||(l[3]=t=>o(d).pageSize=t),onPagination:h},null,8,["total","page","limit"]),[[Ae,o(N)>0]])]),e(H,{title:o(T),modelValue:o(b),"onUpdate:modelValue":l[8]||(l[8]=t=>Ee(b)?b.value=t:null),width:"600px","append-to-body":""},{footer:a(()=>[n("div",rl,[e(_,{class:"export-btn",onClick:de},{default:a(()=>[p("\u53D6 \u6D88")]),_:1}),e(_,{class:"search-btn",type:"primary",onClick:ne},{default:a(()=>[p("\u786E \u5B9A")]),_:1})])]),default:a(()=>[e(Ve,{model:o(u),rules:o(ee),ref:"userRef","label-width":"80px"},{default:a(()=>[e(S,null,{default:a(()=>[e(k,{span:24},{default:a(()=>[e(x,{label:"\u7528\u6237\u540D",prop:"userName"},{default:a(()=>[e(m,{modelValue:o(u).userName,"onUpdate:modelValue":l[4]||(l[4]=t=>o(u).userName=t),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),e(k,{span:24},{default:a(()=>[e(x,{label:"\u624B\u673A\u53F7",prop:"phonenumber"},{default:a(()=>[e(m,{modelValue:o(u).phonenumber,"onUpdate:modelValue":l[5]||(l[5]=t=>o(u).phonenumber=t),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(S,null,{default:a(()=>[e(k,{span:24},{default:a(()=>[e(x,{label:"\u4EBA\u50CF"},{default:a(()=>[n("div",al,[o(u).avatar?(v(),I("div",tl,[n("img",{src:o(u).avatar,class:"avatar"},null,8,ol),sl,n("div",{class:"avatar-replace",onClick:Le(ve,["stop"])},[e($,null,{default:a(()=>[e(o(Be))]),_:1})],8,nl)])):(v(),V(j,{key:1,class:"avatar-uploader","show-file-list":!1,action:o(c).avatarUrl,headers:o(c).headers,"before-upload":me,"on-success":_e},{default:a(()=>[n("div",dl,[e($,{class:"avatar-uploader-icon"},{default:a(()=>[e(o(Oe))]),_:1}),ul])]),_:1},8,["action","headers"]))])]),_:1})]),_:1})]),_:1}),e(S,null,{default:a(()=>[e(k,{span:24},{default:a(()=>[e(x,{label:"\u89D2\u8272"},{default:a(()=>[e(xe,{modelValue:o(u).roleIds,"onUpdate:modelValue":l[6]||(l[6]=t=>o(u).roleIds=t)},{default:a(()=>[(v(!0),I(D,null,L(o(A),t=>(v(),V(J,{key:t.roleId,label:t.roleId},{default:a(()=>[p(y(t.roleName),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(S,null,{default:a(()=>[e(k,{span:24},{default:a(()=>[e(x,{label:"\u72B6\u6001"},{default:a(()=>[e(Ie,{modelValue:o(u).status,"onUpdate:modelValue":l[7]||(l[7]=t=>o(u).status=t)},{default:a(()=>[(v(!0),I(D,null,L(o(K),t=>(v(),V(ke,{key:t.value,label:t.value},{default:a(()=>[p(y(t.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"]),e(H,{title:o(c).title,modelValue:o(c).open,"onUpdate:modelValue":l[11]||(l[11]=t=>o(c).open=t),width:"500px","append-to-body":"",class:"import-dialog"},{footer:a(()=>[n("div",hl,[e(_,{class:"export-btn",onClick:l[10]||(l[10]=t=>o(c).open=!1)},{default:a(()=>[p("\u53D6 \u6D88")]),_:1}),e(_,{class:"search-btn",type:"primary",onClick:fe},{default:a(()=>[p("\u786E \u5B9A")]),_:1})])]),default:a(()=>[il,e(j,{ref:"uploadRef",limit:1,accept:".xlsx, .xls",headers:o(c).headers,action:o(c).url+"?updateSupport="+o(c).updateSupport,disabled:o(c).isUploading,"on-progress":ie,"on-success":ce,"auto-upload":!1,drag:"",class:"import-upload"},{default:a(()=>[n("div",cl,[e($,{class:"upload-icon"},{default:a(()=>[e(o(Y))]),_:1}),pl,n("div",fl,[e($,{class:"upload-icon-small",style:{color:"#347AE2"}},{default:a(()=>[e(o(Y))]),_:1}),ml])])]),_:1},8,["headers","action","disabled"]),n("div",_l,[n("div",vl,[e(J,{modelValue:o(c).updateSupport,"onUpdate:modelValue":l[9]||(l[9]=t=>o(c).updateSupport=t)},{default:a(()=>[p("\u662F\u5426\u66F4\u65B0\u5DF2\u7ECF\u5B58\u5728\u7684\u7528\u6237\u6570\u636E")]),_:1},8,["modelValue"])]),n("div",gl,[bl,e(Ue,{type:"primary",underline:!1,class:"download-link",onClick:pe},{default:a(()=>[p("\u4E0B\u8F7D\u6A21\u677F")]),_:1})])])]),_:1},8,["title","modelValue"])])}}}),Ul=Ne(wl,[["__scopeId","data-v-4923134e"]]);export{Ul as default}; diff --git a/airport/assets/index.85052e55.js.gz b/airport/assets/index.85052e55.js.gz new file mode 100644 index 0000000..f3578a0 Binary files /dev/null and b/airport/assets/index.85052e55.js.gz differ diff --git a/airport/assets/index.8698bf3c.js b/airport/assets/index.8698bf3c.js new file mode 100644 index 0000000..4dc98eb --- /dev/null +++ b/airport/assets/index.8698bf3c.js @@ -0,0 +1 @@ +import{_ as ye,Y as ge,r as m,a6 as ve,ae as be,d as n,a8 as L,o as u,c as R,J as _,T as Q,f as a,e,w as l,i as M,H as j,I as A,k as f,a9 as $,m as r,l as q,x as P,s as he,ai as we}from"./index.79832097.js";import{l as ke,g as Ve,u as xe,a as Te,d as Ce,r as Ne}from"./type.09636148.js";const Se={class:"app-container"},De={class:"dialog-footer"},Ue=ge({name:"Dict"}),Ie=Object.assign(Ue,{setup(Re){const{proxy:p}=he(),{sys_normal_disable:C}=p.useDict("sys_normal_disable"),K=m([]),g=m(!1),N=m(!0),x=m(!0),S=m([]),Y=m(!0),B=m(!0),D=m(0),U=m(""),k=m([]),H=ve({form:{},queryParams:{pageNum:1,pageSize:10,dictName:void 0,dictType:void 0,status:void 0},rules:{dictName:[{required:!0,message:"\u5B57\u5178\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],dictType:[{required:!0,message:"\u5B57\u5178\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}}),{queryParams:d,form:s,rules:J}=be(H);function b(){N.value=!0,ke(p.addDateRange(d.value,k.value)).then(i=>{K.value=i.rows,D.value=i.total,N.value=!1})}function O(){g.value=!1,I()}function I(){s.value={dictId:void 0,dictName:void 0,dictType:void 0,status:"0",remark:void 0},p.resetForm("dictRef")}function T(){d.value.pageNum=1,b()}function G(){k.value=[],p.resetForm("queryRef"),T()}function W(){I(),g.value=!0,U.value="\u6DFB\u52A0\u5B57\u5178\u7C7B\u578B"}function X(i){S.value=i.map(o=>o.dictId),Y.value=i.length!=1,B.value=!i.length}function E(i){I();const o=i.dictId||S.value;Ve(o).then(h=>{s.value=h.data,g.value=!0,U.value="\u4FEE\u6539\u5B57\u5178\u7C7B\u578B"})}function Z(){p.$refs.dictRef.validate(i=>{i&&(s.value.dictId!=null?xe(s.value).then(o=>{p.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),g.value=!1,b()}):Te(s.value).then(o=>{p.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),g.value=!1,b()}))})}function F(i){const o=i.dictId||S.value;p.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u5B57\u5178\u7F16\u53F7\u4E3A"'+o+'"\u7684\u6570\u636E\u9879\uFF1F').then(function(){return Ce(o)}).then(()=>{b(),p.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function ee(){p.download("system/dict/type/export",{...d.value},`dict_${new Date().getTime()}.xlsx`)}function te(){Ne().then(()=>{p.$modal.msgSuccess("\u5237\u65B0\u6210\u529F"),we().cleanDict()})}return b(),(i,o)=>{const h=n("el-input"),y=n("el-form-item"),le=n("el-option"),ae=n("el-select"),oe=n("el-date-picker"),c=n("el-button"),z=n("el-form"),V=n("el-col"),ne=n("right-toolbar"),de=n("el-row"),v=n("el-table-column"),se=n("router-link"),ie=n("dict-tag"),ue=n("el-table"),re=n("pagination"),pe=n("el-radio"),ce=n("el-radio-group"),me=n("el-dialog"),w=L("hasPermi"),_e=L("loading");return u(),R("div",Se,[_(e(z,{model:a(d),ref:"queryRef",inline:!0,"label-width":"68px"},{default:l(()=>[e(y,{label:"\u5B57\u5178\u540D\u79F0",prop:"dictName"},{default:l(()=>[e(h,{modelValue:a(d).dictName,"onUpdate:modelValue":o[0]||(o[0]=t=>a(d).dictName=t),placeholder:"\u8BF7\u8F93\u5165\u5B57\u5178\u540D\u79F0",clearable:"",style:{width:"240px"},onKeyup:M(T,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(y,{label:"\u5B57\u5178\u7C7B\u578B",prop:"dictType"},{default:l(()=>[e(h,{modelValue:a(d).dictType,"onUpdate:modelValue":o[1]||(o[1]=t=>a(d).dictType=t),placeholder:"\u8BF7\u8F93\u5165\u5B57\u5178\u7C7B\u578B",clearable:"",style:{width:"240px"},onKeyup:M(T,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(y,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(ae,{modelValue:a(d).status,"onUpdate:modelValue":o[2]||(o[2]=t=>a(d).status=t),placeholder:"\u5B57\u5178\u72B6\u6001",clearable:"",style:{width:"240px"}},{default:l(()=>[(u(!0),R(j,null,A(a(C),t=>(u(),f(le,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(y,{label:"\u521B\u5EFA\u65F6\u95F4",style:{width:"308px"}},{default:l(()=>[e(oe,{modelValue:a(k),"onUpdate:modelValue":o[3]||(o[3]=t=>$(k)?k.value=t:null),"value-format":"YYYY-MM-DD",type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(y,null,{default:l(()=>[e(c,{type:"primary",icon:"Search",onClick:T},{default:l(()=>[r("\u641C\u7D22")]),_:1}),e(c,{icon:"Refresh",onClick:G},{default:l(()=>[r("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[Q,a(x)]]),e(de,{gutter:10,class:"mb8"},{default:l(()=>[e(V,{span:1.5},{default:l(()=>[_((u(),f(c,{type:"primary",plain:"",icon:"Plus",onClick:W},{default:l(()=>[r("\u65B0\u589E")]),_:1})),[[w,["system:dict:add"]]])]),_:1},8,["span"]),e(V,{span:1.5},{default:l(()=>[_((u(),f(c,{type:"success",plain:"",icon:"Edit",disabled:a(Y),onClick:E},{default:l(()=>[r("\u4FEE\u6539")]),_:1},8,["disabled"])),[[w,["system:dict:edit"]]])]),_:1},8,["span"]),e(V,{span:1.5},{default:l(()=>[_((u(),f(c,{type:"danger",plain:"",icon:"Delete",disabled:a(B),onClick:F},{default:l(()=>[r("\u5220\u9664")]),_:1},8,["disabled"])),[[w,["system:dict:remove"]]])]),_:1},8,["span"]),e(V,{span:1.5},{default:l(()=>[_((u(),f(c,{type:"warning",plain:"",icon:"Download",onClick:ee},{default:l(()=>[r("\u5BFC\u51FA")]),_:1})),[[w,["system:dict:export"]]])]),_:1},8,["span"]),e(V,{span:1.5},{default:l(()=>[_((u(),f(c,{type:"danger",plain:"",icon:"Refresh",onClick:te},{default:l(()=>[r("\u5237\u65B0\u7F13\u5B58")]),_:1})),[[w,["system:dict:remove"]]])]),_:1},8,["span"]),e(ne,{showSearch:a(x),"onUpdate:showSearch":o[4]||(o[4]=t=>$(x)?x.value=t:null),onQueryTable:b},null,8,["showSearch"])]),_:1}),_((u(),f(ue,{data:a(K),onSelectionChange:X},{default:l(()=>[e(v,{type:"selection",width:"55",align:"center"}),e(v,{label:"\u5B57\u5178\u7F16\u53F7",align:"center",prop:"dictId"}),e(v,{label:"\u5B57\u5178\u540D\u79F0",align:"center",prop:"dictName","show-overflow-tooltip":!0}),e(v,{label:"\u5B57\u5178\u7C7B\u578B",align:"center","show-overflow-tooltip":!0},{default:l(t=>[e(se,{to:"/system/dict-data/index/"+t.row.dictId,class:"link-type"},{default:l(()=>[q("span",null,P(t.row.dictType),1)]),_:2},1032,["to"])]),_:1}),e(v,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:l(t=>[e(ie,{options:a(C),value:t.row.status},null,8,["options","value"])]),_:1}),e(v,{label:"\u5907\u6CE8",align:"center",prop:"remark","show-overflow-tooltip":!0}),e(v,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180"},{default:l(t=>[q("span",null,P(i.parseTime(t.row.createTime)),1)]),_:1}),e(v,{label:"\u64CD\u4F5C",align:"center",width:"160","class-name":"small-padding fixed-width"},{default:l(t=>[_((u(),f(c,{link:"",type:"primary",icon:"Edit",onClick:fe=>E(t.row)},{default:l(()=>[r("\u4FEE\u6539")]),_:2},1032,["onClick"])),[[w,["system:dict:edit"]]]),_((u(),f(c,{link:"",type:"primary",icon:"Delete",onClick:fe=>F(t.row)},{default:l(()=>[r("\u5220\u9664")]),_:2},1032,["onClick"])),[[w,["system:dict:remove"]]])]),_:1})]),_:1},8,["data"])),[[_e,a(N)]]),_(e(re,{total:a(D),page:a(d).pageNum,"onUpdate:page":o[5]||(o[5]=t=>a(d).pageNum=t),limit:a(d).pageSize,"onUpdate:limit":o[6]||(o[6]=t=>a(d).pageSize=t),onPagination:b},null,8,["total","page","limit"]),[[Q,a(D)>0]]),e(me,{title:a(U),modelValue:a(g),"onUpdate:modelValue":o[11]||(o[11]=t=>$(g)?g.value=t:null),width:"500px","append-to-body":""},{footer:l(()=>[q("div",De,[e(c,{type:"primary",onClick:Z},{default:l(()=>[r("\u786E \u5B9A")]),_:1}),e(c,{onClick:O},{default:l(()=>[r("\u53D6 \u6D88")]),_:1})])]),default:l(()=>[e(z,{ref:"dictRef",model:a(s),rules:a(J),"label-width":"80px"},{default:l(()=>[e(y,{label:"\u5B57\u5178\u540D\u79F0",prop:"dictName"},{default:l(()=>[e(h,{modelValue:a(s).dictName,"onUpdate:modelValue":o[7]||(o[7]=t=>a(s).dictName=t),placeholder:"\u8BF7\u8F93\u5165\u5B57\u5178\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(y,{label:"\u5B57\u5178\u7C7B\u578B",prop:"dictType"},{default:l(()=>[e(h,{modelValue:a(s).dictType,"onUpdate:modelValue":o[8]||(o[8]=t=>a(s).dictType=t),placeholder:"\u8BF7\u8F93\u5165\u5B57\u5178\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(y,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(ce,{modelValue:a(s).status,"onUpdate:modelValue":o[9]||(o[9]=t=>a(s).status=t)},{default:l(()=>[(u(!0),R(j,null,A(a(C),t=>(u(),f(pe,{key:t.value,label:t.value},{default:l(()=>[r(P(t.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(y,{label:"\u5907\u6CE8",prop:"remark"},{default:l(()=>[e(h,{modelValue:a(s).remark,"onUpdate:modelValue":o[10]||(o[10]=t=>a(s).remark=t),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}}),Pe=ye(Ie,[["__scopeId","data-v-b275c409"]]);export{Pe as default}; diff --git a/airport/assets/index.8698bf3c.js.gz b/airport/assets/index.8698bf3c.js.gz new file mode 100644 index 0000000..47b19a4 Binary files /dev/null and b/airport/assets/index.8698bf3c.js.gz differ diff --git a/airport/assets/index.8e3d3ed6.js b/airport/assets/index.8e3d3ed6.js new file mode 100644 index 0000000..2456375 --- /dev/null +++ b/airport/assets/index.8e3d3ed6.js @@ -0,0 +1 @@ +import{P as t,_ as _e,r as f,d as u,o as _,c as w,e as s,w as e,f as o,a9 as z,l as c,H as K,I as Q,x as H,p as he,q as Ae,Y as Le,a6 as ke,ae as we,a8 as le,J as k,T as xe,i as Ce,k as d,m as i,am as ne,j as I,an as Ne,s as Se,a4 as Ue}from"./index.79832097.js";import{l as ae,g as qe,u as Fe,a as $e,d as Me}from"./menu.d7f9bfd6.js";let M=[];const Be=Object.assign({"../../assets/icons/svg/404.svg":()=>t(()=>import("./404.b46c7eb9.js"),[]),"../../assets/icons/svg/bug.svg":()=>t(()=>import("./bug.c2b901ab.js"),[]),"../../assets/icons/svg/build.svg":()=>t(()=>import("./build.cee08664.js"),[]),"../../assets/icons/svg/button.svg":()=>t(()=>import("./button.d4ec432f.js"),[]),"../../assets/icons/svg/cascader.svg":()=>t(()=>import("./cascader.1134cded.js"),[]),"../../assets/icons/svg/chart.svg":()=>t(()=>import("./chart.47c5fc09.js"),[]),"../../assets/icons/svg/checkbox.svg":()=>t(()=>import("./checkbox.e0011079.js"),[]),"../../assets/icons/svg/clipboard.svg":()=>t(()=>import("./clipboard.4cb84a95.js"),[]),"../../assets/icons/svg/code.svg":()=>t(()=>import("./code.e3552bf9.js"),[]),"../../assets/icons/svg/color.svg":()=>t(()=>import("./color.36c00dbd.js"),[]),"../../assets/icons/svg/component.svg":()=>t(()=>import("./component.39aabf93.js"),[]),"../../assets/icons/svg/dashboard.svg":()=>t(()=>import("./dashboard.1cdb26b4.js"),[]),"../../assets/icons/svg/date-range.svg":()=>t(()=>import("./date-range.61256616.js"),[]),"../../assets/icons/svg/date.svg":()=>t(()=>import("./date.1a1b54fa.js"),[]),"../../assets/icons/svg/dict.svg":()=>t(()=>import("./dict.f9e4196e.js"),[]),"../../assets/icons/svg/documentation.svg":()=>t(()=>import("./documentation.a5f1c591.js"),[]),"../../assets/icons/svg/download.svg":()=>t(()=>import("./download.b06fbc7a.js"),[]),"../../assets/icons/svg/drag.svg":()=>t(()=>import("./drag.855f09b1.js"),[]),"../../assets/icons/svg/druid.svg":()=>t(()=>import("./druid.59e3bde2.js"),[]),"../../assets/icons/svg/edit.svg":()=>t(()=>import("./edit.6138f7bd.js"),[]),"../../assets/icons/svg/education.svg":()=>t(()=>import("./education.9cdfc09c.js"),[]),"../../assets/icons/svg/email.svg":()=>t(()=>import("./email.6177a1b7.js"),[]),"../../assets/icons/svg/example.svg":()=>t(()=>import("./example.28eb468e.js"),[]),"../../assets/icons/svg/excel.svg":()=>t(()=>import("./excel.9680a7a3.js"),[]),"../../assets/icons/svg/exit-fullscreen.svg":()=>t(()=>import("./exit-fullscreen.7693107c.js"),[]),"../../assets/icons/svg/eye-open.svg":()=>t(()=>import("./eye-open.2742c814.js"),[]),"../../assets/icons/svg/eye.svg":()=>t(()=>import("./eye.7efea8d7.js"),[]),"../../assets/icons/svg/form.svg":()=>t(()=>import("./form.fe6029ff.js"),[]),"../../assets/icons/svg/fullscreen.svg":()=>t(()=>import("./fullscreen.181ef4f1.js"),[]),"../../assets/icons/svg/github.svg":()=>t(()=>import("./github.f0d66958.js"),[]),"../../assets/icons/svg/guide.svg":()=>t(()=>import("./guide.40474b41.js"),[]),"../../assets/icons/svg/icon.svg":()=>t(()=>import("./icon.2d1c0100.js"),[]),"../../assets/icons/svg/input.svg":()=>t(()=>import("./input.a7187a4f.js"),[]),"../../assets/icons/svg/international.svg":()=>t(()=>import("./international.7ee45404.js"),[]),"../../assets/icons/svg/job.svg":()=>t(()=>import("./job.ef157af3.js"),[]),"../../assets/icons/svg/language.svg":()=>t(()=>import("./language.443cf574.js"),[]),"../../assets/icons/svg/link.svg":()=>t(()=>import("./link.64f798fb.js"),[]),"../../assets/icons/svg/list.svg":()=>t(()=>import("./list.88f483cb.js"),[]),"../../assets/icons/svg/lock.svg":()=>t(()=>import("./lock.b3970863.js"),[]),"../../assets/icons/svg/log.svg":()=>t(()=>import("./log.6a61dc82.js"),[]),"../../assets/icons/svg/logininfor.svg":()=>t(()=>import("./logininfor.1258c2cb.js"),[]),"../../assets/icons/svg/message.svg":()=>t(()=>import("./message.082e45f4.js"),[]),"../../assets/icons/svg/money.svg":()=>t(()=>import("./money.1bcf65d6.js"),[]),"../../assets/icons/svg/monitor.svg":()=>t(()=>import("./monitor.16d358a5.js"),[]),"../../assets/icons/svg/nested.svg":()=>t(()=>import("./nested.0325dcc4.js"),[]),"../../assets/icons/svg/number.svg":()=>t(()=>import("./number.63af79ba.js"),[]),"../../assets/icons/svg/online.svg":()=>t(()=>import("./online.0bccf30b.js"),[]),"../../assets/icons/svg/password.svg":()=>t(()=>import("./password.4f940edf.js"),[]),"../../assets/icons/svg/pdf.svg":()=>t(()=>import("./pdf.53cff26e.js"),[]),"../../assets/icons/svg/people.svg":()=>t(()=>import("./people.87963c2b.js"),[]),"../../assets/icons/svg/peoples.svg":()=>t(()=>import("./peoples.0e6279eb.js"),[]),"../../assets/icons/svg/phone.svg":()=>t(()=>import("./phone.5ce31124.js"),[]),"../../assets/icons/svg/post.svg":()=>t(()=>import("./post.8daa8f25.js"),[]),"../../assets/icons/svg/qq.svg":()=>t(()=>import("./qq.74ce5ed3.js"),[]),"../../assets/icons/svg/question.svg":()=>t(()=>import("./question.0c8624b9.js"),[]),"../../assets/icons/svg/radio.svg":()=>t(()=>import("./radio.d6beef62.js"),[]),"../../assets/icons/svg/rate.svg":()=>t(()=>import("./rate.4a8dcd58.js"),[]),"../../assets/icons/svg/redis-list.svg":()=>t(()=>import("./redis-list.1edbb4ff.js"),[]),"../../assets/icons/svg/redis.svg":()=>t(()=>import("./redis.615d741a.js"),[]),"../../assets/icons/svg/row.svg":()=>t(()=>import("./row.1bd8ad7e.js"),[]),"../../assets/icons/svg/search.svg":()=>t(()=>import("./search.33b822fc.js"),[]),"../../assets/icons/svg/select.svg":()=>t(()=>import("./select.558564a5.js"),[]),"../../assets/icons/svg/server.svg":()=>t(()=>import("./server.f0461856.js"),[]),"../../assets/icons/svg/shopping.svg":()=>t(()=>import("./shopping.b0e0ebd3.js"),[]),"../../assets/icons/svg/size.svg":()=>t(()=>import("./size.a85972fe.js"),[]),"../../assets/icons/svg/skill.svg":()=>t(()=>import("./skill.bb02a4ac.js"),[]),"../../assets/icons/svg/slider.svg":()=>t(()=>import("./slider.ab079a74.js"),[]),"../../assets/icons/svg/star.svg":()=>t(()=>import("./star.5374eaaa.js"),[]),"../../assets/icons/svg/swagger.svg":()=>t(()=>import("./swagger.0f6005b0.js"),[]),"../../assets/icons/svg/switch.svg":()=>t(()=>import("./switch.39427d32.js"),[]),"../../assets/icons/svg/system.svg":()=>t(()=>import("./system.dd8f4370.js"),[]),"../../assets/icons/svg/tab.svg":()=>t(()=>import("./tab.837765b4.js"),[]),"../../assets/icons/svg/table.svg":()=>t(()=>import("./table.53c6772c.js"),[]),"../../assets/icons/svg/textarea.svg":()=>t(()=>import("./textarea.7dc42e90.js"),[]),"../../assets/icons/svg/theme.svg":()=>t(()=>import("./theme.988b699a.js"),[]),"../../assets/icons/svg/time-range.svg":()=>t(()=>import("./time-range.134e4394.js"),[]),"../../assets/icons/svg/time.svg":()=>t(()=>import("./time.145701c2.js"),[]),"../../assets/icons/svg/tool.svg":()=>t(()=>import("./tool.c30a4b30.js"),[]),"../../assets/icons/svg/tree-table.svg":()=>t(()=>import("./tree-table.a57dac2f.js"),[]),"../../assets/icons/svg/tree.svg":()=>t(()=>import("./tree.3a250732.js"),[]),"../../assets/icons/svg/upload.svg":()=>t(()=>import("./upload.02a15e1b.js"),[]),"../../assets/icons/svg/user.svg":()=>t(()=>import("./user.0c7aa22a.js"),[]),"../../assets/icons/svg/validCode.svg":()=>t(()=>import("./validCode.c5c7d4df.js"),[]),"../../assets/icons/svg/wechat.svg":()=>t(()=>import("./wechat.ec3af840.js"),[]),"../../assets/icons/svg/zip.svg":()=>t(()=>import("./zip.fc1b638f.js"),[])});for(const A in Be){const m=A.split("assets/icons/svg/")[1].split(".svg")[0];M.push(m)}const je=A=>(he("data-v-79fe850d"),A=A(),Ae(),A),ze={class:"icon-body"},Ke=je(()=>c("i",{class:"el-icon-search el-input__icon"},null,-1)),Qe={class:"icon-list"},He=["onClick"],Je={__name:"index",emits:["selected"],setup(A,{expose:m,emit:J}){const V=f(""),L=f(M);function E(){L.value=M,V.value&&(L.value=M.filter(y=>y.indexOf(V.value)!==-1))}function U(y){J("selected",y),document.body.click()}function x(){V.value="",L.value=M}return m({reset:x}),(y,C)=>{const q=u("el-input"),F=u("svg-icon");return _(),w("div",ze,[s(q,{modelValue:o(V),"onUpdate:modelValue":C[0]||(C[0]=g=>z(V)?V.value=g:null),style:{position:"relative"},clearable:"",placeholder:"\u8BF7\u8F93\u5165\u56FE\u6807\u540D\u79F0",onClear:E,onInput:E},{suffix:e(()=>[Ke]),_:1},8,["modelValue"]),c("div",Qe,[(_(!0),w(K,null,Q(o(L),(g,B)=>(_(),w("div",{key:B,onClick:W=>U(g)},[s(F,{"icon-class":g,style:{height:"30px",width:"16px"}},null,8,["icon-class"]),c("span",null,H(g),1)],8,He))),128))])])}}},Ye=_e(Je,[["__scopeId","data-v-79fe850d"]]);const Ge={class:"app-container"},We={class:"table-container"},Xe={class:"dialog-footer"},Ze=Le({name:"Menu"}),es=Object.assign(Ze,{setup(A){const{proxy:m}=Se(),{sys_show_hide:J,sys_normal_disable:V}=m.useDict("sys_show_hide","sys_normal_disable"),L=f([]),E=f(!1),U=f(!0),x=f(!0),y=f(""),C=f([]),q=f(!1),F=f(!0),g=f(!1),B=f(null),W=ke({form:{},queryParams:{menuName:void 0,visible:void 0},rules:{menuName:[{required:!0,message:"\u83DC\u5355\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],orderNum:[{required:!0,message:"\u83DC\u5355\u987A\u5E8F\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],path:[{required:!0,message:"\u8DEF\u7531\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}}),{queryParams:N,form:n,rules:ie}=we(W);function S(){U.value=!0,ae(N.value).then(r=>{L.value=m.handleTree(r.data,"menuId"),U.value=!1})}function X(){C.value=[],ae().then(r=>{const a={menuId:0,menuName:"\u4E3B\u7C7B\u76EE",children:[]};a.children=m.handleTree(r.data,"menuId"),C.value.push(a)})}function ue(){E.value=!1,Y()}function Y(){n.value={menuId:void 0,parentId:0,menuName:void 0,icon:void 0,menuType:"M",orderNum:void 0,isFrame:"1",isCache:"0",visible:"0",status:"0"},m.resetForm("menuRef")}function Z(){B.value.reset(),g.value=!0}function re(r){n.value.icon=r,g.value=!1}function de(r){var a=r.relatedTarget||r.srcElement||r.target||r.currentTarget,T=a.className;T!=="el-input__inner"&&(g.value=!1)}function G(){S()}function pe(){m.resetForm("queryRef"),G()}function ee(r){Y(),X(),r!=null&&r.menuId?n.value.parentId=r.menuId:n.value.parentId=0,E.value=!0,y.value="\u6DFB\u52A0\u83DC\u5355"}function ve(){F.value=!1,q.value=!q.value,Ue(()=>{F.value=!0})}async function me(r){Y(),await X(),qe(r.menuId).then(a=>{n.value=a.data,E.value=!0,y.value="\u4FEE\u6539\u83DC\u5355"})}function ce(){m.$refs.menuRef.validate(r=>{r&&(n.value.menuId!=null?Fe(n.value).then(a=>{m.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),E.value=!1,S()}):$e(n.value).then(a=>{m.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),E.value=!1,S()}))})}function ge(r){m.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u540D\u79F0\u4E3A"'+r.menuName+'"\u7684\u6570\u636E\u9879?').then(function(){return Me(r.menuId)}).then(()=>{S(),m.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}return S(),(r,a)=>{const T=u("el-input"),p=u("el-form-item"),fe=u("el-option"),Ee=u("el-select"),P=u("el-button"),se=u("el-form"),v=u("el-col"),Ve=u("right-toolbar"),te=u("el-row"),O=u("el-table-column"),Ie=u("dict-tag"),Te=u("el-table"),Pe=u("el-tree-select"),R=u("el-radio"),$=u("el-radio-group"),Re=u("search"),D=u("el-icon"),De=u("el-popover"),ye=u("el-input-number"),b=u("question-filled"),h=u("el-tooltip"),Oe=u("el-dialog"),j=le("hasPermi"),be=le("loading");return _(),w("div",Ge,[k(s(se,{model:o(N),ref:"queryRef",inline:!0},{default:e(()=>[s(p,{label:"\u83DC\u5355\u540D\u79F0",prop:"menuName"},{default:e(()=>[s(T,{modelValue:o(N).menuName,"onUpdate:modelValue":a[0]||(a[0]=l=>o(N).menuName=l),placeholder:"\u8BF7\u8F93\u5165\u83DC\u5355\u540D\u79F0",clearable:"",style:{width:"200px"},onKeyup:Ce(G,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),s(p,{label:"\u72B6\u6001",prop:"status"},{default:e(()=>[s(Ee,{modelValue:o(N).status,"onUpdate:modelValue":a[1]||(a[1]=l=>o(N).status=l),placeholder:"\u83DC\u5355\u72B6\u6001",clearable:"",style:{width:"200px"}},{default:e(()=>[(_(!0),w(K,null,Q(o(V),l=>(_(),d(fe,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s(p,null,{default:e(()=>[s(P,{type:"primary",icon:"Search",onClick:G},{default:e(()=>[i("\u641C\u7D22")]),_:1}),s(P,{icon:"Refresh",onClick:pe},{default:e(()=>[i("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[xe,o(x)]]),s(te,{gutter:10,class:"mb8"},{default:e(()=>[s(v,{span:1.5},{default:e(()=>[k((_(),d(P,{type:"primary",plain:"",icon:"Plus",onClick:ee},{default:e(()=>[i("\u65B0\u589E")]),_:1})),[[j,["system:menu:add"]]])]),_:1},8,["span"]),s(v,{span:1.5},{default:e(()=>[s(P,{type:"info",plain:"",icon:"Sort",onClick:ve},{default:e(()=>[i("\u5C55\u5F00/\u6298\u53E0")]),_:1})]),_:1},8,["span"]),s(Ve,{showSearch:o(x),"onUpdate:showSearch":a[2]||(a[2]=l=>z(x)?x.value=l:null),onQueryTable:S},null,8,["showSearch"])]),_:1}),c("div",We,[o(F)?k((_(),d(Te,{key:0,data:o(L),"row-key":"menuId","default-expand-all":o(q),"tree-props":{children:"children",hasChildren:"hasChildren"}},{default:e(()=>[s(O,{prop:"menuName",label:"\u83DC\u5355\u540D\u79F0","show-overflow-tooltip":!0,width:"160"}),s(O,{prop:"icon",label:"\u56FE\u6807",align:"center",width:"100"},{default:e(l=>[s(o(ne),{"icon-class":l.row.icon},null,8,["icon-class"])]),_:1}),s(O,{prop:"orderNum",label:"\u6392\u5E8F",width:"60"}),s(O,{prop:"perms",label:"\u6743\u9650\u6807\u8BC6","show-overflow-tooltip":!0}),s(O,{prop:"component",label:"\u7EC4\u4EF6\u8DEF\u5F84","show-overflow-tooltip":!0}),s(O,{prop:"status",label:"\u72B6\u6001",width:"80"},{default:e(l=>[s(Ie,{options:o(V),value:l.row.status},null,8,["options","value"])]),_:1}),s(O,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime"},{default:e(l=>[c("span",null,H(r.parseTime(l.row.createTime)),1)]),_:1}),s(O,{label:"\u64CD\u4F5C",align:"center",width:"210","class-name":"small-padding fixed-width"},{default:e(l=>[k((_(),d(P,{link:"",type:"primary",icon:"Edit",onClick:oe=>me(l.row)},{default:e(()=>[i("\u4FEE\u6539")]),_:2},1032,["onClick"])),[[j,["system:menu:edit"]]]),k((_(),d(P,{link:"",type:"primary",icon:"Plus",onClick:oe=>ee(l.row)},{default:e(()=>[i("\u65B0\u589E")]),_:2},1032,["onClick"])),[[j,["system:menu:add"]]]),k((_(),d(P,{link:"",type:"primary",icon:"Delete",onClick:oe=>ge(l.row)},{default:e(()=>[i("\u5220\u9664")]),_:2},1032,["onClick"])),[[j,["system:menu:remove"]]])]),_:1})]),_:1},8,["data","default-expand-all"])),[[be,o(U)]]):I("",!0)]),s(Oe,{title:o(y),modelValue:o(E),"onUpdate:modelValue":a[17]||(a[17]=l=>z(E)?E.value=l:null),width:"680px","append-to-body":""},{footer:e(()=>[c("div",Xe,[s(P,{type:"primary",onClick:ce},{default:e(()=>[i("\u786E \u5B9A")]),_:1}),s(P,{onClick:ue},{default:e(()=>[i("\u53D6 \u6D88")]),_:1})])]),default:e(()=>[s(se,{ref:"menuRef",model:o(n),rules:o(ie),"label-width":"100px"},{default:e(()=>[s(te,null,{default:e(()=>[s(v,{span:24},{default:e(()=>[s(p,{label:"\u4E0A\u7EA7\u83DC\u5355"},{default:e(()=>[s(Pe,{modelValue:o(n).parentId,"onUpdate:modelValue":a[3]||(a[3]=l=>o(n).parentId=l),data:o(C),props:{value:"menuId",label:"menuName",children:"children"},"value-key":"menuId",placeholder:"\u9009\u62E9\u4E0A\u7EA7\u83DC\u5355","check-strictly":""},null,8,["modelValue","data"])]),_:1})]),_:1}),s(v,{span:24},{default:e(()=>[s(p,{label:"\u83DC\u5355\u7C7B\u578B",prop:"menuType"},{default:e(()=>[s($,{modelValue:o(n).menuType,"onUpdate:modelValue":a[4]||(a[4]=l=>o(n).menuType=l)},{default:e(()=>[s(R,{label:"M"},{default:e(()=>[i("\u76EE\u5F55")]),_:1}),s(R,{label:"C"},{default:e(()=>[i("\u83DC\u5355")]),_:1}),s(R,{label:"F"},{default:e(()=>[i("\u6309\u94AE")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),o(n).menuType!="F"?(_(),d(v,{key:0,span:24},{default:e(()=>[s(p,{label:"\u83DC\u5355\u56FE\u6807",prop:"icon"},{default:e(()=>[s(De,{placement:"bottom-start",width:540,visible:o(g),"onUpdate:visible":a[6]||(a[6]=l=>z(g)?g.value=l:null),trigger:"click",onShow:Z},{reference:e(()=>[k((_(),d(T,{modelValue:o(n).icon,"onUpdate:modelValue":a[5]||(a[5]=l=>o(n).icon=l),placeholder:"\u70B9\u51FB\u9009\u62E9\u56FE\u6807",onBlur:Z,readonly:""},{prefix:e(()=>[o(n).icon?(_(),d(o(ne),{key:0,"icon-class":o(n).icon,class:"el-input__icon",style:{height:"32px",width:"16px"}},null,8,["icon-class"])):(_(),d(D,{key:1,style:{height:"32px",width:"16px"}},{default:e(()=>[s(Re)]),_:1}))]),_:1},8,["modelValue"])),[[o(Ne),de]])]),default:e(()=>[s(o(Ye),{ref_key:"iconSelectRef",ref:B,onSelected:re},null,512)]),_:1},8,["visible"])]),_:1})]),_:1})):I("",!0),s(v,{span:12},{default:e(()=>[s(p,{label:"\u83DC\u5355\u540D\u79F0",prop:"menuName"},{default:e(()=>[s(T,{modelValue:o(n).menuName,"onUpdate:modelValue":a[7]||(a[7]=l=>o(n).menuName=l),placeholder:"\u8BF7\u8F93\u5165\u83DC\u5355\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),s(v,{span:12},{default:e(()=>[s(p,{label:"\u663E\u793A\u6392\u5E8F",prop:"orderNum"},{default:e(()=>[s(ye,{modelValue:o(n).orderNum,"onUpdate:modelValue":a[8]||(a[8]=l=>o(n).orderNum=l),"controls-position":"right",min:0},null,8,["modelValue"])]),_:1})]),_:1}),o(n).menuType!="F"?(_(),d(v,{key:1,span:12},{default:e(()=>[s(p,null,{label:e(()=>[c("span",null,[s(h,{content:"\u9009\u62E9\u662F\u5916\u94FE\u5219\u8DEF\u7531\u5730\u5740\u9700\u8981\u4EE5`http(s)://`\u5F00\u5934",placement:"top"},{default:e(()=>[s(D,null,{default:e(()=>[s(b)]),_:1})]),_:1}),i("\u662F\u5426\u5916\u94FE ")])]),default:e(()=>[s($,{modelValue:o(n).isFrame,"onUpdate:modelValue":a[9]||(a[9]=l=>o(n).isFrame=l)},{default:e(()=>[s(R,{label:"0"},{default:e(()=>[i("\u662F")]),_:1}),s(R,{label:"1"},{default:e(()=>[i("\u5426")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})):I("",!0),o(n).menuType!="F"?(_(),d(v,{key:2,span:12},{default:e(()=>[s(p,{prop:"path"},{label:e(()=>[c("span",null,[s(h,{content:"\u8BBF\u95EE\u7684\u8DEF\u7531\u5730\u5740\uFF0C\u5982\uFF1A`user`\uFF0C\u5982\u5916\u7F51\u5730\u5740\u9700\u5185\u94FE\u8BBF\u95EE\u5219\u4EE5`http(s)://`\u5F00\u5934",placement:"top"},{default:e(()=>[s(D,null,{default:e(()=>[s(b)]),_:1})]),_:1}),i(" \u8DEF\u7531\u5730\u5740 ")])]),default:e(()=>[s(T,{modelValue:o(n).path,"onUpdate:modelValue":a[10]||(a[10]=l=>o(n).path=l),placeholder:"\u8BF7\u8F93\u5165\u8DEF\u7531\u5730\u5740"},null,8,["modelValue"])]),_:1})]),_:1})):I("",!0),o(n).menuType=="C"?(_(),d(v,{key:3,span:12},{default:e(()=>[s(p,{prop:"component"},{label:e(()=>[c("span",null,[s(h,{content:"\u8BBF\u95EE\u7684\u7EC4\u4EF6\u8DEF\u5F84\uFF0C\u5982\uFF1A`system/user/index`\uFF0C\u9ED8\u8BA4\u5728`views`\u76EE\u5F55\u4E0B",placement:"top"},{default:e(()=>[s(D,null,{default:e(()=>[s(b)]),_:1})]),_:1}),i(" \u7EC4\u4EF6\u8DEF\u5F84 ")])]),default:e(()=>[s(T,{modelValue:o(n).component,"onUpdate:modelValue":a[11]||(a[11]=l=>o(n).component=l),placeholder:"\u8BF7\u8F93\u5165\u7EC4\u4EF6\u8DEF\u5F84"},null,8,["modelValue"])]),_:1})]),_:1})):I("",!0),o(n).menuType!="M"?(_(),d(v,{key:4,span:12},{default:e(()=>[s(p,null,{label:e(()=>[c("span",null,[s(h,{content:"\u63A7\u5236\u5668\u4E2D\u5B9A\u4E49\u7684\u6743\u9650\u5B57\u7B26\uFF0C\u5982\uFF1A@PreAuthorize(`@ss.hasPermi('system:user:list')`)",placement:"top"},{default:e(()=>[s(D,null,{default:e(()=>[s(b)]),_:1})]),_:1}),i(" \u6743\u9650\u5B57\u7B26 ")])]),default:e(()=>[s(T,{modelValue:o(n).perms,"onUpdate:modelValue":a[12]||(a[12]=l=>o(n).perms=l),placeholder:"\u8BF7\u8F93\u5165\u6743\u9650\u6807\u8BC6",maxlength:"100"},null,8,["modelValue"])]),_:1})]),_:1})):I("",!0),o(n).menuType=="C"?(_(),d(v,{key:5,span:12},{default:e(()=>[s(p,null,{label:e(()=>[c("span",null,[s(h,{content:'\u8BBF\u95EE\u8DEF\u7531\u7684\u9ED8\u8BA4\u4F20\u9012\u53C2\u6570\uFF0C\u5982\uFF1A`{"id": 1, "name": "ry"}`',placement:"top"},{default:e(()=>[s(D,null,{default:e(()=>[s(b)]),_:1})]),_:1}),i(" \u8DEF\u7531\u53C2\u6570 ")])]),default:e(()=>[s(T,{modelValue:o(n).query,"onUpdate:modelValue":a[13]||(a[13]=l=>o(n).query=l),placeholder:"\u8BF7\u8F93\u5165\u8DEF\u7531\u53C2\u6570",maxlength:"255"},null,8,["modelValue"])]),_:1})]),_:1})):I("",!0),o(n).menuType=="C"?(_(),d(v,{key:6,span:12},{default:e(()=>[s(p,null,{label:e(()=>[c("span",null,[s(h,{content:"\u9009\u62E9\u662F\u5219\u4F1A\u88AB`keep-alive`\u7F13\u5B58\uFF0C\u9700\u8981\u5339\u914D\u7EC4\u4EF6\u7684`name`\u548C\u5730\u5740\u4FDD\u6301\u4E00\u81F4",placement:"top"},{default:e(()=>[s(D,null,{default:e(()=>[s(b)]),_:1})]),_:1}),i(" \u662F\u5426\u7F13\u5B58 ")])]),default:e(()=>[s($,{modelValue:o(n).isCache,"onUpdate:modelValue":a[14]||(a[14]=l=>o(n).isCache=l)},{default:e(()=>[s(R,{label:"0"},{default:e(()=>[i("\u7F13\u5B58")]),_:1}),s(R,{label:"1"},{default:e(()=>[i("\u4E0D\u7F13\u5B58")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})):I("",!0),o(n).menuType!="F"?(_(),d(v,{key:7,span:12},{default:e(()=>[s(p,null,{label:e(()=>[c("span",null,[s(h,{content:"\u9009\u62E9\u9690\u85CF\u5219\u8DEF\u7531\u5C06\u4E0D\u4F1A\u51FA\u73B0\u5728\u4FA7\u8FB9\u680F\uFF0C\u4F46\u4ECD\u7136\u53EF\u4EE5\u8BBF\u95EE",placement:"top"},{default:e(()=>[s(D,null,{default:e(()=>[s(b)]),_:1})]),_:1}),i(" \u663E\u793A\u72B6\u6001 ")])]),default:e(()=>[s($,{modelValue:o(n).visible,"onUpdate:modelValue":a[15]||(a[15]=l=>o(n).visible=l)},{default:e(()=>[(_(!0),w(K,null,Q(o(J),l=>(_(),d(R,{key:l.value,label:l.value},{default:e(()=>[i(H(l.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})):I("",!0),o(n).menuType!="F"?(_(),d(v,{key:8,span:12},{default:e(()=>[s(p,null,{label:e(()=>[c("span",null,[s(h,{content:"\u9009\u62E9\u505C\u7528\u5219\u8DEF\u7531\u5C06\u4E0D\u4F1A\u51FA\u73B0\u5728\u4FA7\u8FB9\u680F\uFF0C\u4E5F\u4E0D\u80FD\u88AB\u8BBF\u95EE",placement:"top"},{default:e(()=>[s(D,null,{default:e(()=>[s(b)]),_:1})]),_:1}),i(" \u83DC\u5355\u72B6\u6001 ")])]),default:e(()=>[s($,{modelValue:o(n).status,"onUpdate:modelValue":a[16]||(a[16]=l=>o(n).status=l)},{default:e(()=>[(_(!0),w(K,null,Q(o(V),l=>(_(),d(R,{key:l.value,label:l.value},{default:e(()=>[i(H(l.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})):I("",!0)]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}}),os=_e(es,[["__scopeId","data-v-9fd2a422"]]);export{os as default}; diff --git a/airport/assets/index.8e3d3ed6.js.gz b/airport/assets/index.8e3d3ed6.js.gz new file mode 100644 index 0000000..da5f9b2 Binary files /dev/null and b/airport/assets/index.8e3d3ed6.js.gz differ diff --git a/airport/assets/index.99ad9ced.js b/airport/assets/index.99ad9ced.js new file mode 100644 index 0000000..f2be3fc --- /dev/null +++ b/airport/assets/index.99ad9ced.js @@ -0,0 +1 @@ +import{L as S,_ as Ce,Y as Ve,r as c,a6 as Se,a7 as Ue,C as Te,d as f,a8 as $e,o as w,c as P,l as p,e,w as a,f as t,i as De,H as X,I as Z,k as A,m,J as ee,x as B,al as Re,T as Ee,a9 as Fe,ac as le,s as Le,p as Oe,q as Pe}from"./index.79832097.js";import{j as Ae,l as Be}from"./role.9b221df4.js";function ae(v){return S({url:"/system/driver_info/list",method:"get",params:v})}function ze(v){return S({url:"/system/driver_info/"+v,method:"get"})}function qe(v){return S({url:"/system/driver_info",method:"post",data:v})}function Ke(v){return S({url:"/system/driver_info",method:"put",data:v})}function je(v){return S({url:"/system/driver_info/"+v,method:"delete"})}const $=v=>(Oe("data-v-bb9d9180"),v=v(),Pe(),v),Ge={class:"app-container"},Qe={class:"user-container"},He={class:"search-buttons"},Je={class:"action-buttons"},Me={class:"avatar-box"},Ye=["src"],We={class:"dialog-footer"},Xe=$(()=>p("div",{class:"import-title"},"\u9009\u62E9\u9700\u8981\u5BFC\u5165\u7684\u9879\u76EE\u6587\u4EF6",-1)),Ze={class:"upload-content"},el=$(()=>p("div",{class:"upload-text"},"\u62D6\u62FD\u6587\u4EF6\u5230\u8FD9\u91CC\uFF0C\u6216",-1)),ll={class:"upload-link"},al=$(()=>p("span",{class:"click-upload"},"\u70B9\u6B64\u6DFB\u52A0",-1)),tl={class:"import-footer"},sl={class:"footer-left"},ol={class:"footer-right"},nl=$(()=>p("span",{class:"file-format"},"\u4EC5\u5141\u8BB8\u5BFC\u5165xls\u3001xlsx\u683C\u5F0F\u6587\u4EF6\u3002",-1)),ul={class:"dialog-footer"},rl=Ve({name:"Driver"}),il=Object.assign(rl,{setup(v){var j,G;const{proxy:d}=Le(),{sys_normal_disable:te}=d.useDict("sys_normal_disable"),x=c([]),h=c(!1),U=c(!1),D=c([]),se=c(!0),z=c(!0),N=c(0),R=c(""),oe=c([]),b=c([]),k=c(!1),T=c(null),C=c([]),E=c([]),_=Se({open:!1,title:"",isUploading:!1,updateSupport:0,headers:{Authorization:"Bearer "+Ue()},url:((j=window.APP_CONFIG)==null?void 0:j.VITE_BASE_URL)+"/system/driver_info/importData",avatarUrl:((G=window.APP_CONFIG)==null?void 0:G.VITE_BASE_URL)+"/system/driver_info/avatar"}),u=c({pageNum:1,pageSize:10,userName:void 0,status:void 0,userId:void 0}),o=c({}),ne=c({licenseType:[{required:!0,message:"\u9A7E\u7167\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]});function ue(n){const i=(k.value?C.value:b.value).find(r=>r.userId===n);i?(o.value.userId=i.userId,o.value.userName=i.userName,o.value.avatar=i.avatar):(o.value.userId=void 0,o.value.userName=void 0,o.value.avatar=void 0)}function y(){U.value=!0,ae(u.value).then(n=>{const l=n.rows||[],i=typeof u.value.userName=="string"?u.value.userName.trim():void 0;i?(x.value=l.filter(r=>(r.userName||"").includes(i)),N.value=x.value.length):(x.value=l,N.value=n.total||l.length),U.value=!1}).catch(()=>{U.value=!1,x.value=[],N.value=0})}function V(){return Promise.all([Ae(3),ae({pageNum:1,pageSize:9999})]).then(([n,l])=>{C.value=n.rows||[];const i=l.rows||[];E.value=i.map(r=>r.userId).filter(r=>r!==void 0),k.value?b.value=C.value:b.value=C.value.filter(r=>!E.value.includes(r.userId))}).catch(()=>{b.value=[],C.value=[],E.value=[]})}function F(){if(typeof u.value.userName=="string"){const n=u.value.userName.trim();u.value.userName=n||void 0}u.value.status===""&&(u.value.status=void 0),u.value.pageNum=1,y()}function q(){d.resetForm("queryRef"),u.value.userName=void 0,u.value.status=void 0,u.value.pageNum=1,y()}function re(n){D.value=n.map(l=>l.userId),se.value=n.length!=1,z.value=!n.length}function K(n){const l=n.userId||D.value;d.$modal.confirm("\u786E\u5B9A\u5220\u9664\u6B64\u9A7E\u9A76\u5458\u5417?","\u5220\u9664").then(function(){return je(l)}).then(()=>{y(),d.$modal.msgSuccess("\u5220\u9664\u6210\u529F"),V()}).catch(()=>{})}function ie(){L(),k.value=!1,T.value=null,R.value="\u6DFB\u52A0\u9A7E\u9A76\u5458\u4FE1\u606F",V().then(()=>{h.value=!0})}function de(n){L(),k.value=!0;const l=n.userId||D.value[0];V().then(()=>{ze(l).then(i=>{o.value=i.data||{},o.value.driverId=o.value.driverId||o.value.userId,o.value.userId&&(T.value=b.value.find(r=>r.userId===o.value.userId)||null,T.value||(b.value=[...b.value,{userId:o.value.userId,userName:o.value.userName,avatar:o.value.avatar}])),h.value=!0,R.value="\u4FEE\u6539\u9A7E\u9A76\u5458"})})}function L(){o.value={userId:void 0,userName:void 0,licenseType:void 0,avatar:void 0,driverId:void 0},T.value=null,d.resetForm("driverRef")}function ce(){d.$refs.driverRef.validate(n=>{if(n){if(!o.value.userId){d.$modal.msgError("\u8BF7\u9009\u62E9\u9A7E\u9A76\u5458\u59D3\u540D");return}const l=typeof o.value.licenseType=="string"?o.value.licenseType.trim():o.value.licenseType;if(!l){d.$modal.msgError("\u9A7E\u7167\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A");return}const i={userId:o.value.userId,licenseType:l};o.value.avatar&&(i.avatar=o.value.avatar),o.value.driverId?Ke(i).then(()=>{d.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),h.value=!1,y()}).catch(r=>{console.error("\u66F4\u65B0\u5931\u8D25:",r),d.$modal.msgError("\u4FEE\u6539\u5931\u8D25: "+(r.message||"\u672A\u77E5\u9519\u8BEF"))}):qe(i).then(()=>{d.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),h.value=!1,y(),V()}).catch(r=>{console.error("\u65B0\u589E\u5931\u8D25:",r),d.$modal.msgError("\u65B0\u589E\u5931\u8D25: "+(r.message||"\u672A\u77E5\u9519\u8BEF"))})}})}function pe(){h.value=!1,L()}function fe(){d.download("system/driver_info/export",{...u.value,pageNum:void 0,pageSize:void 0},`\u9A7E\u9A76\u5458\u6570\u636E_${new Date().getTime()}.xlsx`)}function me(n,l,i){_.isUploading=!0}function ve(n,l,i){_.open=!1,_.isUploading=!1,d.$refs.uploadRef.clearFiles(),d.$modal.msgSuccess(n.msg),y()}function _e(){d.download("system/driver_info/importTemplate",{},`driver_template_${new Date().getTime()}.xlsx`)}function ge(){d.$refs.uploadRef.submit()}function he(){Be().then(n=>{oe.value=n.rows||[]})}return Te(()=>{y(),he(),V()}),(n,l)=>{const i=f("el-input"),r=f("el-form-item"),O=f("el-option"),Q=f("el-select"),g=f("el-button"),H=f("el-form"),I=f("el-table-column"),be=f("el-table"),ye=f("pagination"),J=f("el-col"),M=f("el-row"),Y=f("el-dialog"),W=f("el-icon"),Ie=f("el-upload"),we=f("el-checkbox"),xe=f("el-link"),Ne=$e("loading");return w(),P("div",Ge,[p("div",Qe,[e(H,{model:t(u),ref:"queryRef",class:"search-area",inline:""},{default:a(()=>[e(r,{label:"\u59D3\u540D",prop:"userName"},{default:a(()=>[e(i,{modelValue:t(u).userName,"onUpdate:modelValue":l[0]||(l[0]=s=>t(u).userName=s),placeholder:"\u8BF7\u8F93\u5165\u9A7E\u9A76\u5458\u59D3\u540D",clearable:"","prefix-icon":"Search",class:"search-input",onKeyup:De(F,["enter"]),onClear:q},null,8,["modelValue","onKeyup"])]),_:1}),e(r,{label:"\u8D26\u53F7\u72B6\u6001",prop:"status"},{default:a(()=>[e(Q,{modelValue:t(u).status,"onUpdate:modelValue":l[1]||(l[1]=s=>t(u).status=s),placeholder:"\u8D26\u53F7\u72B6\u6001",clearable:"",class:"search-select",onChange:F},{default:a(()=>[e(O,{label:"\u5168\u90E8",value:""}),(w(!0),P(X,null,Z(t(te),s=>(w(),A(O,{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),p("div",He,[e(g,{type:"primary",class:"search-btn",onClick:F},{default:a(()=>[m("\u641C\u7D22")]),_:1}),e(g,{class:"reset-btn",onClick:q},{default:a(()=>[m("\u91CD\u7F6E")]),_:1})]),p("div",Je,[e(g,{type:"primary",class:"search-btn",onClick:ie},{default:a(()=>[m("\u65B0\u589E")]),_:1}),e(g,{class:"reset-btn",plain:"",onClick:fe},{default:a(()=>[m("\u5BFC\u51FA")]),_:1}),e(g,{class:"export-btn",type:"info",disabled:t(z),onClick:K},{default:a(()=>[m("\u5220\u9664")]),_:1},8,["disabled"])])]),_:1},8,["model"]),ee((w(),A(be,{data:t(x),onSelectionChange:re,style:{width:"100%"},class:"custom-table","header-cell-style":{backgroundColor:"#343744",color:"#fff"},"bg-color":"#292C38"},{default:a(()=>[e(I,{type:"selection",width:"50",align:"left"}),e(I,{label:"\u5E8F\u53F7",width:"60",align:"left"},{default:a(s=>[m(B(s.$index+1),1)]),_:1}),e(I,{label:"\u64CD\u4F5C",width:"120",align:"left"},{default:a(s=>[e(g,{link:"",text:"",onClick:ke=>de(s.row)},{default:a(()=>[m("\u7F16\u8F91")]),_:2},1032,["onClick"]),e(g,{link:"",text:"",type:"primary",onClick:ke=>K(s.row)},{default:a(()=>[m("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1}),e(I,{label:"\u4EBA\u50CF",prop:"avatar",align:"left"},{default:a(s=>[p("div",Me,[p("img",{src:s.row.avatar,alt:""},null,8,Ye)])]),_:1}),e(I,{label:"\u59D3\u540D",prop:"userName",align:"left"}),e(I,{label:"\u9A7E\u7167\u7C7B\u578B",prop:"licenseType",align:"left"}),e(I,{label:"\u8D26\u53F7\u72B6\u6001",align:"left"},{default:a(s=>[m(B(s.row.status==="0"?"\u6B63\u5E38":"\u505C\u7528"),1)]),_:1}),e(I,{label:"\u521B\u5EFA\u65F6\u95F4",align:"left",prop:"createTime",width:"160"},{default:a(s=>[p("span",null,B(t(Re)(s.row.createTime)),1)]),_:1})]),_:1},8,["data"])),[[Ne,t(U)]]),ee(e(ye,{total:t(N),page:t(u).pageNum,"onUpdate:page":l[2]||(l[2]=s=>t(u).pageNum=s),limit:t(u).pageSize,"onUpdate:limit":l[3]||(l[3]=s=>t(u).pageSize=s),onPagination:y},null,8,["total","page","limit"]),[[Ee,t(N)>0]])]),e(Y,{title:t(R),modelValue:t(h),"onUpdate:modelValue":l[6]||(l[6]=s=>Fe(h)?h.value=s:null),width:"600px","append-to-body":""},{footer:a(()=>[p("div",We,[e(g,{class:"export-btn",onClick:pe},{default:a(()=>[m("\u53D6 \u6D88")]),_:1}),e(g,{class:"search-btn",type:"primary",onClick:ce},{default:a(()=>[m("\u786E \u5B9A")]),_:1})])]),default:a(()=>[e(H,{model:t(o),rules:t(ne),ref:"driverRef","label-width":"100px"},{default:a(()=>[e(M,null,{default:a(()=>[e(J,{span:24},{default:a(()=>[e(r,{label:"\u59D3\u540D",prop:"userName"},{default:a(()=>[e(Q,{modelValue:t(o).userId,"onUpdate:modelValue":l[4]||(l[4]=s=>t(o).userId=s),placeholder:"\u8BF7\u9009\u62E9\u9A7E\u9A76\u5458\u59D3\u540D",disabled:t(k),class:"full-width-select",onChange:ue},{default:a(()=>[(w(!0),P(X,null,Z(t(b),s=>(w(),A(O,{key:s.userId,label:s.userName,value:s.userId},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(M,null,{default:a(()=>[e(J,{span:24},{default:a(()=>[e(r,{label:"\u9A7E\u9A76\u8BC1\u7C7B\u578B",prop:"licenseType"},{default:a(()=>[e(i,{modelValue:t(o).licenseType,"onUpdate:modelValue":l[5]||(l[5]=s=>t(o).licenseType=s),placeholder:"\u8BF7\u8F93\u5165\u9A7E\u9A76\u8BC1\u7C7B\u578B"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"]),e(Y,{title:t(_).title,modelValue:t(_).open,"onUpdate:modelValue":l[9]||(l[9]=s=>t(_).open=s),width:"500px","append-to-body":"",class:"import-dialog"},{footer:a(()=>[p("div",ul,[e(g,{class:"export-btn",onClick:l[8]||(l[8]=s=>t(_).open=!1)},{default:a(()=>[m("\u53D6 \u6D88")]),_:1}),e(g,{class:"search-btn",type:"primary",onClick:ge},{default:a(()=>[m("\u786E \u5B9A")]),_:1})])]),default:a(()=>[Xe,e(Ie,{ref:"uploadRef",limit:1,accept:".xlsx, .xls",headers:t(_).headers,action:t(_).url+"?updateSupport="+t(_).updateSupport,disabled:t(_).isUploading,"on-progress":me,"on-success":ve,"auto-upload":!1,drag:"",class:"import-upload"},{default:a(()=>[p("div",Ze,[e(W,{class:"upload-icon"},{default:a(()=>[e(t(le))]),_:1}),el,p("div",ll,[e(W,{class:"upload-icon-small",style:{color:"#347AE2"}},{default:a(()=>[e(t(le))]),_:1}),al])])]),_:1},8,["headers","action","disabled"]),p("div",tl,[p("div",sl,[e(we,{modelValue:t(_).updateSupport,"onUpdate:modelValue":l[7]||(l[7]=s=>t(_).updateSupport=s)},{default:a(()=>[m("\u662F\u5426\u66F4\u65B0\u5DF2\u7ECF\u5B58\u5728\u7684\u9A7E\u9A76\u5458\u6570\u636E")]),_:1},8,["modelValue"])]),p("div",ol,[nl,e(xe,{type:"primary",underline:!1,class:"download-link",onClick:_e},{default:a(()=>[m("\u4E0B\u8F7D\u6A21\u677F")]),_:1})])])]),_:1},8,["title","modelValue"])])}}}),pl=Ce(il,[["__scopeId","data-v-bb9d9180"]]);export{pl as default}; diff --git a/airport/assets/index.99ad9ced.js.gz b/airport/assets/index.99ad9ced.js.gz new file mode 100644 index 0000000..d7a2900 Binary files /dev/null and b/airport/assets/index.99ad9ced.js.gz differ diff --git a/airport/assets/index.a03f408c.js b/airport/assets/index.a03f408c.js new file mode 100644 index 0000000..87cb466 --- /dev/null +++ b/airport/assets/index.a03f408c.js @@ -0,0 +1 @@ +import{_ as se,r as m,a6 as de,ae as re,d as _,a8 as B,o as A,c as ce,l as i,J as C,T as z,f as t,e as a,i as ue,w as n,k,a9 as F,a as pe,m as c,x as g,s as me,p as _e,q as ve}from"./index.79832097.js";import{g as fe,l as ge,a as K,u as he,b as be}from"./intersection.55727948.js";const V=D=>(_e("data-v-c84d2e8b"),D=D(),ve(),D),Ie={class:"app-container"},Ve={class:"search-action-bar"},ye={class:"search-area"},Ce={class:"action-buttons"},Ne={class:"table-container"},Ae={class:"dialog-footer"},we={class:"detail-content"},xe={class:"detail-item"},ke=V(()=>i("span",{class:"detail-label"},"\u8DEF\u53E3ID\uFF1A",-1)),De={class:"detail-value"},Se={class:"detail-item"},Ue=V(()=>i("span",{class:"detail-label"},"\u8DEF\u53E3\u540D\u79F0\uFF1A",-1)),Te={class:"detail-value"},$e={class:"detail-item"},qe=V(()=>i("span",{class:"detail-label"},"\u7ECF\u5EA6\uFF1A",-1)),Ee={class:"detail-value"},Re={class:"detail-item"},Pe=V(()=>i("span",{class:"detail-label"},"\u7EAC\u5EA6\uFF1A",-1)),Be={class:"detail-value"},ze={class:"detail-item"},Fe=V(()=>i("span",{class:"detail-label"},"\u533A\u57DF\u7F16\u7801\uFF1A",-1)),Ke={class:"detail-value"},Le={class:"detail-item"},Qe=V(()=>i("span",{class:"detail-label"},"\u63CF\u8FF0\uFF1A",-1)),Je={class:"detail-value"},je={class:"detail-item"},Ge=V(()=>i("span",{class:"detail-label"},"\u72B6\u6001\uFF1A",-1)),He={class:"detail-value"},Me={class:"detail-item"},Oe=V(()=>i("span",{class:"detail-label"},"\u521B\u5EFA\u65F6\u95F4\uFF1A",-1)),We={class:"detail-value"},Xe={class:"dialog-footer"},Ye={__name:"index",setup(D){const{proxy:h}=me();pe();const u=m([]),b=m(!1),N=m(!0),L=m(!0),q=m([]),Q=m(!0),J=m(!0),I=m(0),U=m(""),w=m(!1),v=m({}),j=de({form:{},queryParams:{pageNum:1,pageSize:10,intersectionName:void 0,intersectionId:void 0},rules:{intersectionName:[{required:!0,message:"\u8DEF\u53E3\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],intersectionId:[{required:!0,message:"\u8DEF\u53E3ID\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],longitude:[{required:!0,message:"\u7ECF\u5EA6\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],latitude:[{required:!0,message:"\u7EAC\u5EA6\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}}),{queryParams:p,form:l,rules:G}=re(j);function x(){N.value=!0,p.value.intersectionName&&p.value.intersectionName.trim()!==""?fe({name:p.value.intersectionName}).then(s=>{console.log("\u83B7\u53D6\u8DEF\u53E3\u5217\u8868\u6570\u636E\uFF08\u6A21\u7CCA\u67E5\u8BE2\uFF09:",s),s&&Array.isArray(s)?(u.value=s,console.log("\u83B7\u53D6\u8DEF\u53E3\u6570\u636E\uFF08\u6A21\u7CCA\u67E5\u8BE2\uFF09:",u.value),u.value=u.value.map(e=>({intersectionId:e.intersectionId,intersectionName:e.intersectionName,latitude:e.latitude,longitude:e.longitude,areaCode:e.areaCode||"",description:e.description||"",isActive:e.isActive,createTime:e.createdTime}))):u.value=[],I.value=s.length,console.log("\u8DEF\u53E3\u5217\u8868total:",I.value),N.value=!1}).catch(s=>{console.error("\u83B7\u53D6\u8DEF\u53E3\u5217\u8868\u5931\u8D25\uFF08\u6A21\u7CCA\u67E5\u8BE2\uFF09:",s),I.value=0,N.value=!1}):ge().then(s=>{console.log("\u5B8C\u6574\u54CD\u5E94\u6570\u636E\uFF08\u5168\u90E8\uFF09:",s),s&&Array.isArray(s)?(u.value=s,console.log("\u83B7\u53D6\u8DEF\u53E3\u6570\u636E\uFF08\u5168\u90E8\uFF09:",u.value),u.value=u.value.map(e=>({intersectionId:e.intersectionId,intersectionName:e.intersectionName,latitude:e.latitude,longitude:e.longitude,areaCode:e.areaCode||"",description:e.description||"",isActive:e.isActive,createTime:e.createdTime}))):u.value=[],I.value=u.value.length,console.log("\u8DEF\u53E3\u5217\u8868total:",I.value),N.value=!1}).catch(s=>{console.error("\u83B7\u53D6\u8DEF\u53E3\u5217\u8868\u5931\u8D25\uFF08\u5168\u90E8\uFF09:",s),I.value=0,N.value=!1})}function H(){b.value=!1,T()}function T(){l.value={isEdit:!1,intersectionId:void 0,intersectionName:void 0,longitude:void 0,latitude:void 0,areaCode:void 0,description:void 0,isActive:!0},h.resetForm("intersectionRef")}function $(){p.value.pageNum=1,x()}function M(){h.resetForm("queryRef"),$()}function O(s){q.value=s.map(e=>e.id),Q.value=s.length!==1,J.value=!s.length}function W(){T(),b.value=!0,U.value="\u6DFB\u52A0\u8DEF\u53E3"}function X(s){T();const e=s.intersectionId||q.value[0];K(e).then(d=>{const r=d.data||d;l.value={intersectionId:r.intersectionId,intersectionName:r.intersectionName,longitude:r.longitude,latitude:r.latitude,areaCode:r.areaCode,description:r.description,isActive:r.isActive},l.value.isEdit=!0,b.value=!0,U.value="\u4FEE\u6539\u8DEF\u53E3"})}function Y(s){const e=s.intersectionId;K(e).then(d=>{v.value=d.data||d,w.value=!0}).catch(d=>{console.error("\u83B7\u53D6\u8DEF\u53E3\u8BE6\u60C5\u5931\u8D25:",d),h.$modal.msgError("\u83B7\u53D6\u8DEF\u53E3\u8BE6\u60C5\u5931\u8D25")})}function Z(){h.$refs.intersectionRef.validate(s=>{if(s){const e={intersectionName:l.value.intersectionName,longitude:l.value.longitude,latitude:l.value.latitude,areaCode:l.value.areaCode,description:l.value.description,isActive:l.value.isActive};if(l.value.isEdit)he(l.value.intersectionId,e).then(d=>{h.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),b.value=!1,x()}).catch(d=>{console.error("\u4FEE\u6539\u8DEF\u53E3\u5931\u8D25:",d),h.$modal.msgError("\u4FEE\u6539\u5931\u8D25\uFF0C"+(d.message||"\u8DEF\u53E3\u7F16\u53F7\u53EF\u80FD\u5DF2\u5B58\u5728"))});else{const d={intersectionId:l.value.intersectionId,intersectionName:l.value.intersectionName,longitude:l.value.longitude,latitude:l.value.latitude,areaCode:l.value.areaCode,description:l.value.description,isActive:l.value.isActive};be(d).then(r=>{h.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),b.value=!1,x()}).catch(r=>{console.error("\u65B0\u589E\u8DEF\u53E3\u5931\u8D25:",r),h.$modal.msgError("\u65B0\u589E\u5931\u8D25\uFF0C"+(r.message||"\u8DEF\u53E3\u7F16\u53F7\u53EF\u80FD\u5DF2\u5B58\u5728"))})}}})}function ee(){h.download("road/intersection/export",{...p.value},`intersection_${new Date().getTime()}.xlsx`)}return x(),(s,e)=>{const d=_("el-input"),r=_("el-button"),f=_("el-table-column"),E=_("el-tag"),te=_("el-table"),ae=_("pagination"),y=_("el-form-item"),R=_("el-radio"),le=_("el-radio-group"),oe=_("el-form"),P=_("el-dialog"),S=B("hasPermi"),ie=B("loading");return A(),ce("div",Ie,[i("div",Ve,[C(i("div",ye,[a(d,{modelValue:t(p).intersectionName,"onUpdate:modelValue":e[0]||(e[0]=o=>t(p).intersectionName=o),placeholder:"\u8BF7\u8F93\u5165\u8DEF\u53E3\u540D\u79F0",clearable:"",class:"search-input",onKeyup:ue($,["enter"])},null,8,["modelValue","onKeyup"]),a(r,{class:"search-btn",onClick:$},{default:n(()=>[c("\u641C\u7D22")]),_:1}),a(r,{class:"reset-btn",onClick:M},{default:n(()=>[c("\u91CD\u7F6E")]),_:1})],512),[[z,t(L)]]),i("div",Ce,[C((A(),k(r,{class:"add-btn",onClick:W},{default:n(()=>[c("\u65B0\u589E")]),_:1})),[[S,["road:intersection:add"]]]),C((A(),k(r,{class:"delete-btn",onClick:ee},{default:n(()=>[c("\u5BFC\u51FA")]),_:1})),[[S,["road:intersection:export"]]])])]),i("div",Ne,[C((A(),k(te,{data:t(u),onSelectionChange:O,class:"custom-table"},{default:n(()=>[a(f,{type:"selection",width:"55",align:"center"}),a(f,{label:"\u8DEF\u53E3ID",align:"center",prop:"intersectionId"}),a(f,{label:"\u8DEF\u53E3\u540D\u79F0",align:"center",prop:"intersectionName"}),a(f,{label:"\u7ECF\u5EA6",align:"center",prop:"longitude"}),a(f,{label:"\u7EAC\u5EA6",align:"center",prop:"latitude"}),a(f,{label:"\u533A\u57DF\u7F16\u7801",align:"center",prop:"areaCode"}),a(f,{label:"\u63CF\u8FF0",align:"center",prop:"description"}),a(f,{label:"\u72B6\u6001",align:"center",prop:"isActive"},{default:n(o=>[a(E,{type:o.row.isActive?"success":"info"},{default:n(()=>[c(g(o.row.isActive?"\u5DF2\u6FC0\u6D3B":"\u672A\u6FC0\u6D3B"),1)]),_:2},1032,["type"])]),_:1}),a(f,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180"},{default:n(o=>[i("span",null,g(s.parseTime(new Date(o.row.createTime),"{y}-{m}-{d}")),1)]),_:1}),a(f,{label:"\u64CD\u4F5C",align:"center","class-name":"small-padding fixed-width"},{default:n(o=>[C((A(),k(r,{link:"",type:"primary",onClick:ne=>X(o.row)},{default:n(()=>[c("\u4FEE\u6539")]),_:2},1032,["onClick"])),[[S,["road:intersection:edit"]]]),C((A(),k(r,{link:"",type:"primary",onClick:ne=>Y(o.row)},{default:n(()=>[c("\u8BE6\u60C5")]),_:2},1032,["onClick"])),[[S,["road:intersection:detail"]]])]),_:1})]),_:1},8,["data"])),[[ie,t(N)]]),C(a(ae,{total:t(I),page:t(p).pageNum,"onUpdate:page":e[1]||(e[1]=o=>t(p).pageNum=o),limit:t(p).pageSize,"onUpdate:limit":e[2]||(e[2]=o=>t(p).pageSize=o),onPagination:x},null,8,["total","page","limit"]),[[z,t(I)>0]])]),a(P,{title:t(U),modelValue:t(b),"onUpdate:modelValue":e[10]||(e[10]=o=>F(b)?b.value=o:null),width:"500px","append-to-body":""},{footer:n(()=>[i("div",Ae,[a(r,{type:"primary",onClick:Z},{default:n(()=>[c("\u786E \u5B9A")]),_:1}),a(r,{onClick:H},{default:n(()=>[c("\u53D6 \u6D88")]),_:1})])]),default:n(()=>[a(oe,{ref:"intersectionRef",model:t(l),rules:t(G),"label-width":"80px"},{default:n(()=>[a(y,{label:"\u8DEF\u53E3\u540D\u79F0",prop:"intersectionName"},{default:n(()=>[a(d,{modelValue:t(l).intersectionName,"onUpdate:modelValue":e[3]||(e[3]=o=>t(l).intersectionName=o),placeholder:"\u8BF7\u8F93\u5165\u8DEF\u53E3\u540D\u79F0"},null,8,["modelValue"])]),_:1}),a(y,{label:"\u8DEF\u53E3ID",prop:"intersectionId"},{default:n(()=>[a(d,{modelValue:t(l).intersectionId,"onUpdate:modelValue":e[4]||(e[4]=o=>t(l).intersectionId=o),placeholder:"\u8BF7\u8F93\u5165\u8DEF\u53E3ID"},null,8,["modelValue"])]),_:1}),a(y,{label:"\u7ECF\u5EA6",prop:"longitude"},{default:n(()=>[a(d,{modelValue:t(l).longitude,"onUpdate:modelValue":e[5]||(e[5]=o=>t(l).longitude=o),placeholder:"\u8BF7\u8F93\u5165\u7ECF\u5EA6"},null,8,["modelValue"])]),_:1}),a(y,{label:"\u7EAC\u5EA6",prop:"latitude"},{default:n(()=>[a(d,{modelValue:t(l).latitude,"onUpdate:modelValue":e[6]||(e[6]=o=>t(l).latitude=o),placeholder:"\u8BF7\u8F93\u5165\u7EAC\u5EA6"},null,8,["modelValue"])]),_:1}),a(y,{label:"\u533A\u57DF\u7F16\u7801",prop:"areaCode"},{default:n(()=>[a(d,{modelValue:t(l).areaCode,"onUpdate:modelValue":e[7]||(e[7]=o=>t(l).areaCode=o),placeholder:"\u8BF7\u8F93\u5165\u533A\u57DF\u7F16\u7801"},null,8,["modelValue"])]),_:1}),a(y,{label:"\u63CF\u8FF0",prop:"description"},{default:n(()=>[a(d,{modelValue:t(l).description,"onUpdate:modelValue":e[8]||(e[8]=o=>t(l).description=o),placeholder:"\u8BF7\u8F93\u5165\u63CF\u8FF0",type:"textarea"},null,8,["modelValue"])]),_:1}),a(y,{label:"\u72B6\u6001",prop:"isActive"},{default:n(()=>[a(le,{modelValue:t(l).isActive,"onUpdate:modelValue":e[9]||(e[9]=o=>t(l).isActive=o)},{default:n(()=>[a(R,{label:!0},{default:n(()=>[c("\u5DF2\u6FC0\u6D3B")]),_:1}),a(R,{label:!1},{default:n(()=>[c("\u672A\u6FC0\u6D3B")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"]),a(P,{title:"\u8DEF\u53E3\u8BE6\u60C5",modelValue:t(w),"onUpdate:modelValue":e[12]||(e[12]=o=>F(w)?w.value=o:null),width:"500px","append-to-body":""},{footer:n(()=>[i("div",Xe,[a(r,{onClick:e[11]||(e[11]=o=>w.value=!1),type:"primary"},{default:n(()=>[c("\u5173 \u95ED")]),_:1})])]),default:n(()=>[i("div",we,[i("div",xe,[ke,i("span",De,g(t(v).intersectionId),1)]),i("div",Se,[Ue,i("span",Te,g(t(v).intersectionName),1)]),i("div",$e,[qe,i("span",Ee,g(t(v).longitude),1)]),i("div",Re,[Pe,i("span",Be,g(t(v).latitude),1)]),i("div",ze,[Fe,i("span",Ke,g(t(v).areaCode),1)]),i("div",Le,[Qe,i("span",Je,g(t(v).description),1)]),i("div",je,[Ge,i("span",He,[a(E,{type:t(v).isActive?"success":"info"},{default:n(()=>[c(g(t(v).isActive?"\u5DF2\u6FC0\u6D3B":"\u672A\u6FC0\u6D3B"),1)]),_:1},8,["type"])])]),i("div",Me,[Oe,i("span",We,g(t(v).createdTime),1)])])]),_:1},8,["modelValue"])])}}},tt=se(Ye,[["__scopeId","data-v-c84d2e8b"]]);export{tt as default}; diff --git a/airport/assets/index.a03f408c.js.gz b/airport/assets/index.a03f408c.js.gz new file mode 100644 index 0000000..a00fa41 Binary files /dev/null and b/airport/assets/index.a03f408c.js.gz differ diff --git a/airport/assets/index.aa3e8b37.css b/airport/assets/index.aa3e8b37.css new file mode 100644 index 0000000..2a383ca --- /dev/null +++ b/airport/assets/index.aa3e8b37.css @@ -0,0 +1 @@ +.app-container[data-v-d6958af6]{background-color:#292c38;border-radius:8px;overflow:hidden;height:calc(100vh - 130px)} diff --git a/airport/assets/index.b09083d4.js b/airport/assets/index.b09083d4.js new file mode 100644 index 0000000..374f54a --- /dev/null +++ b/airport/assets/index.b09083d4.js @@ -0,0 +1 @@ +import{_ as Z,v as X,d as B,o as D,c as L,l as t,x as b,f as C,e as l,w as _,Z as tt,$ as et,p as W,q as $,r as p,a0 as ht,i as lt,m as k,G as J,j as nt,J as ot,T as it,a1 as ct,C as rt,F as ut,H as At,I as pt,Q as ft,D as dt,L as at,a2 as gt,k as P,E as _t,O as st,s as mt}from"./index.79832097.js";/* empty css */import{c as St,V as bt}from"./detail.dbd9843f.js";import{bg as Ct,bq as xt}from"./VehicleMovementControlRefactored.96e4a3ca.js";import"./manager.4e506c5f.js";const yt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFbSURBVHgB7VXRcYMwDJV7/Q+ZADJB2aDdoIyQDdINkhE6QkboCN2g2QCYADKBK5XnnmNsYS6/eXfvDMqz8yRZB9EDCzCxoLW24KViFghdjDHjWg0lDj/ZOD48zZ45RDQnNQMWVLy0zDPzi+kcfYpbdriFTjQd4k4jBhrmNpkJb3yDk9cgfkC8lNLg+ZCz94nycPWeXc2X6814TsSL4H2j/JGKsAeyaWB+09QDObBk7v/ExuygE41kcGb2MCCamrQeYLPckDa4HT/M2tPUiPkYwr6oQDNLZKXpVM1Sk42WLg42tAYyUHY+RDklapnNzGHEkTTwQlMDxX1FUwOLYNAImo6mGyWHi4ndPYNW2PSgNYjXfjw1ByHc/d94WYcuR0/zj9xJjg1aFsIMOqzSaOfU1bdDbUf+TVaZl97TvOO5Jw286WjnuBki3LQYjuF52gfnBa9Xz/0qzQNZ+AUwuZUJXUrCvgAAAABJRU5ErkJggg==",wt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEaSURBVHgB1VXtDYIwEH0Y/ssGsoFxA53AEdQJ1AnEDXQDRnAD2UA3EDeACepd0iYFSz8kxPCSy4W+u9eWOw5g7IhspBAiIZdYBaKoRChI+ED2EP7g2I3xAAbxnBwHF9JK2JGSLaXldKNdZySJb+WJTggE5zhziXyR3fEjOJc19LVYI7mYKdlFWzuQmxu0KrIzvY6qtX7jfNZSXKyRiZassEF3F11bsYxa+qniYlhAp1igJyYYGNYbyBqsYceTbnrsIl03mMON1Ea6arBDT/y9BvzRpfKR225l6H3vDVSi3vcFmu84wXfv65hKXxvZIUZFO0ANrAzh4pnMbYxtn3H9hh0z+I5rbZOtCP/h7E1akcdmM0dIHdpZ48IHA0PzMIY5IW4AAAAASUVORK5CYII=",Vt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAdFSURBVHgBzVrNUhtHEO4ZCfuQHOQnQK5U4iIXpCewfEvFYBYfDUar8gOAn0DiCYBTTiktP8Y52YshsW+Sb76xvhEnVcgvkMh2UhVb7Ha+3h9l0Q9mVwT4qpZdzc7Mdk//THcPis4AhmHmPrlkZBRNsqI8ExU0cQ73XNSHSbUUUUsxOUorB+9f2rbVohGhKCWE6COiJVB2E+QVMJHNrBzFqjU2pp0/PPdd07baUf+7dx+Md9jLs4u+iksemMTn2xmlVkdhJjEDEeHMXAbxtmZt7+7WX1IKTM9WbnqeZ4IIXMqCBJeTMpKIgSnDrAnhitn6S+u1+AqPgu8MM58lDwuiariW955ZtdOOPRUDWPX8EfNTPLaPlKq8OAPdHQRhJMNc1UQlqNat00jjswxMG6bpYVKs+ures401OgfcnjaXtObFI1c9fL5n2Sf1PZGBSGVYqdlfbMuhc0QojQacwvpJKpUZ9iIi3oUon9vWAZ0zfj9w2l9NFHcU8cqNG8Vrb351moP66UGNIN6IiP+/9P00kG8LDay4fMeolAf16VMhMdgORHfRxMcBmgounMggw+6TgOvrHa9eFuIFINrxPLXWCTzhcIje354p1+mSYmqm3Ji6Y1bjbdnoIfT1VajOdUqJusm5K5gKO/QMdLPATHn/hSLxYBIH2fc21DqlhOxBY8SNkmF2N9GuCrlMVWKupVWdzXk2rnh0SB7VwUDJ86gFBiz/8qiNNgPBnbW9wIe4ymm+IbTBpVtferQYtflGHK7+ITi8noaBRwu8iptM2gKRtc572qnYqi/M2LjPJuIdUYE8ruW5DYQOCSGxGOx0/4NSRZGCLwEXW7esTkriaz7xWOlP76k4DxUZRLxgYVNZnzQVRZXwsxqOTQRbVIeVHUnBtwH4/EXt6SVKiEdYUSHE1+1NVYm/E3vI+iEzdJfIqVgBU+F9dmueLaWpCtVz7m8pO8l3WdMOiBZJLmtRH0k80oTEKlCH1scPdIx4WVmxB+1RQy48/7ld5pV4n06WZMHaGU0rlBB7ttUUJwFjzmlRH/xIHOfI6oNxYb4WV5nQHoSxNgxYnmvCJJ6XMKbrokNJ1GSOnxZ4hhJD2V94akbDa0xCp5qUFJr8j3ZEnCHEE+G2CGKbvj1sqocw1OVQ75twGSb6lKL+aBeX2nYVGZQQynfNXNDIYQuI+JJHmvDxQmik2z5PmYAp5dLDuFSkD9z0ctinHG/HrSVulxICKelbpKZ5zcR55LAtSg7Jg495GxW4R5rb7l8QGGpT7tgT8nR8kPTNUULAQTh+8UA++uTJj28pOdpQo1536RMeV5MIm2bYpvvsLTHx0fdBe05TesjuWog3uG5gD/As9ccm56N2ec7IDg3AKx13mUG40aKEsINQYgQGFIwSIhR/HzX5auIFngWq0nhU5qe46ggr9qVN3mG/6LrrkMkCmEid7YkKtcWfUkJ4ru9B6EosLhHMballGGyF5Qf7gZ0ZDKAledczR8l/UJRoI4tDIXw+vJrJltLYAXz+IW45uMPrcW8UYesej8t9flv1zS2rL1ISRuFqE0fAUeKV1aScfzqe6HJiBqAaFa2pcdUlSTRu9b4fRHhsrIzJ4z5LKYDwJC+lSlT18Ef9Z3BJ0NV5RaXt+9yIG+4wiM0grGiQ6D7GJo2DIsB4J6WUqaGvr7GrFSglfL0OmRCVkFh/ECNCeBQjsWxcGNNrE0ngzwHtUX6tE7nA3s76NRoB4vuhTqIWgUPABhXb6PLd7CzIzMy4N0qDadhuB0m+Dv2pMzVllmgEhDtty/+B3ACXrFI+vOTZCru2RyUeubtUt9uSvwQ5sVJNDoKzJo0GUcXWXE9uEAEqVAj7jARIsMysJdINcmJwsQZDNtLsB13iTJ84WenW0A8Hmx9tPQjcaxoE+QubrmZfit3CFsRSlRAPdcjEhiVhdCYjq0KGuDZWgyWpEMiJsUtoDeexlsYDhSXP8Z931n0pd8sqIgVX8T44XE96yADjnRTi5dkPGaLdtwesuveSDphMxMBnSz8iBSke0SXF9IxZn7qzUD2xExjYv22YS3TJgHOKJQl7etv7olHUhmY1qhTfo6BKlwSiOjhkWZSCc++7vvMBqcvfmCi+AxM/fIv6/AF+0wVCiJeCs4vTmhfPrFe97wfmA7u2ZaEmb8lAmYAuCBHx8DrWsKOmoSc0bw5ev/xmYjInpZGLkER4JvBciMfZ3FDXnjlpkoCJ4ltM8vjriaL67cB5RecAMVgQv4LNtba7c/LB4qmOWaMDN+QOzTSH0adF4Oepjp02B4OdfXEWx6xxTBnwweFhNDIh66wYiZ/+q8+oTC8SMSCIDqOjfw9g5MZ7e1aTUkCiSoQXMx7isLSn/4kZiCCMoLBakgNpqc8wkgsJD7wjep3NUisuHSMIEnMfj6gwlqVx9ssxLAceDqK/5ij/tpCagUHMoNQ3KdkdB/lqPtaljTY5jHA8P1rVzt+ad87ify3+BZke/kSnl7k+AAAAAElFTkSuQmCC",It="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAYFSURBVHgB1VrNbhtVFD73js2CVsLwAI0jBFXYxKFU6q7ODlGnmfQB8EQ8QNIVIiycbKhY1VmxQpmwYdeOm0Czi7uLRKtOdqEgxQl75CJKgXju6XdsT+Q6/vc4ST/JiWfmzvV35px77vkZRRHAtp3E/wHZlqJJVpRkopQmTuB/IhzDpEqKqKSYfKWVj+uPPM8t0ZBQNCCEdIVoEcyug14KE3nMylesSvG49v80wfOi55bD8bdufTF2xCbJAcYqThsIiZ8vW0rlhxGmbwFC4sycBXlPs/Y2NtYe0QCYmZu/boxxQAIf5UKDK/0K0pcAGdtZFuKK2f1b69XGJzwMPrWdZIwMHohaxmdl84G73Ou9PQmAp56sMN/H13JFqfmtCGy3FUQQizmnidIwreletNFVgBnbcQwmxVPPbz74YZVOATdmnEWteaESqNsPN12v09iOAoQmw0rN/ey5Pp0i6trYhlNY72RSVrsLIfkAqnzouXt0yvh9zy+/PzFVUMR3L1+eevfZr36x1Tjd6iTI2yH5Udl7L5DfFg6sOHvTns+2GnPChGTBHkF1Z02+EeCUCuBEWi3sExoIqnbH+fNCXgDSvjFq9ajmCdtD7P7GbHaNzikys9ntzE0n13guFn6p+/ocTGe80yRXlg7y2DUXaBSA5h/fGbvd7rLsQXHi7bTtHG+ixwIETDlMsLxVWC9RBxyTZypSlNDV2GgR39oKIGYNK3EvGhIOK3KuKkD96TsVrcd7+S1EmaUndy5NU4T45Os/tjFzuts4EF4NFD8NtVBdxAG2bpByz9PCbQdPTIeVV9dCzQvB5y9oo116Q8CaCqRq2tJiPpJ4DBoS94trX+4nr3x1aKcW9xM0IDY9t4gNLAUzSmgxHxycSpwj5APL2laK7lsX4rM0FJR3wahZhOE0iYMijRgheWg7CZv1g3+OCjQE8BB8zJOKIYdNKaM8GgJpmMOLi7GsdVQp7Hw7Xmq+3ky+8tJM+/nxoZIhpKQHkppqJk4ihy3REPjrbctmw/nA0ttClkZMXgB36leLB7D/5L173x/QEDDxABpkTKiSjUI0koenK0VFvo4yuCc0RQB/ZbxciZvpRiGwMaUbyQcmUvK1/SAqAQTNQsBcXiffYm1EATGhsvhTigCNQsjxqMkLNFZz+T1tvUMRIRTCIDALXpqpUZGvb8ClmCbl/3tkEAnSUAu5ESIE/o20goHiWlJKlajq4Y/iJL1hwOKdlFJmDHnArqWlvtk7xH19vHToULToax0yU1rCidhbFnnIBe7i3HxPdypCOFt1X9GmnmAki76PG1KBptsx8afINf1MxklvbrrFrreZYF4rq2MgZvB0EKskpGJdvUeR7NRlrTrHXByYnuIjZGVpVAvLkr/UUkpMjBhbSBW73fzkzriQ6hg7XV06XIN3Sz/+5lJVq1eWDtNC/pf68bBAjyHLrPPyvbqRSZqGhWxHtR+EuJbbT8qHIkTNfbITaK7mL8eFLaglJyEe6pAr3Sa5urSfYop1MCNjY+rUa6cQyJHSbTUXCyrrOz3sGfWS59hPhfWqNo+rEmGyDAnXu5W1a+R5uf2IFjVjJQJxqt0dFVU1ho4Pr2vpR7QgxSM6p5iZddYyNz/PdRwEAZ7esJ1FOmdAn2IRVcP95vMnolFUv+Y0qhSfoaBK5wRiOnCbC1Jwbr52oj8gdfnLE1PPIcR3H6E+v4djOkMIeSk4B+jWbD1wd5qvt8wHNjzXRU3elRtlAjojhOThddx2raa2HZpne7uPPpyYTGCHz5+FJuo9gYdCHr25tt7J6jRJTYipA0zy4wcTU+q3PX+HTgGyYEH+LjbX5Y1C58ZiT23WsOGG3KE4SDO6V9T8PK1hp01gwc5tRdFmbUTGhg+uN6ORCblRCdLY/VddTKYZfb9qEDajw9cDOKD1XqLYVpCoUhmaNYjDBu3+D/yyhwiCwmpaGtKS4KAS4aNCUDQV2o3FqNSoHbsWJCb+q1AqHqMxOAYJK2ymanmwOMxrCwML0EoYlPomkQekuJavJhuGlHFOmhE+coUSvLf/QnMhinctXgFUGmMPT+9l2wAAAABJRU5ErkJggg==",Bt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAXnSURBVHgB1VrNbhtVFD73ziQSAgnDC9QVghKUKM4T1F1A+pM0kz4AnogHSPoEdp4gzooVyoQNuzJuAknLIu6uu07VVoSChPsCyJVAQOO5h++MPWGa2OOfTJP0k8Yez9x755y55/9YUQZwHDf3KiTHUjTNivJMVNDEOXzn4jFMqqGIGoopUFoFuP/A970GnRCKRoQQ3SJaAWWXQV4BC/nMKlCsGmNjOvjDhC/rvteMx9+69dWFAzZ5DjFWcdGASTy+aSlVPQkzQzMQE87MJRDva9b+1tbGAxoB84tLl40xLojAoTzs4OqwjAzFwJzjVoRwxez9qfV68g2fBFcdN2+TwQtRFRyr23e9yqBzB2IAbz3fYv4ep82WUku7GchuNwgjFnNZExUhWlcG2Y2+DMw7rmuwKN56dfvut+t0Crgx765ozcutUN3e2fb8tLGpDMQiw0ot/uh7AZ0iOruxB6OwmSZSVq8bMfEhtnLH9/bplPHbftD8aGKmpojXLl2a+eD5L0G92zjd7SKId2Li35S8DwJ5ttDAiks3naVStzHHREgU9gBbd9bEJwGaCiGMSDfFPrYDYSR3XD0vxAtAdGCMWj9oW8LeELm/sVDaoHOKuYXS3txNt5y8ZscnHVtfhuhcTFskvD9ZhQdepjcCVbVmn9zudVd80BjxXtFxD53oIQMhU5mYK7u1zQaloUM8grY6ZQglsRHzCk57MiBiDSnx3jMRDatyLWKg8/bdltYXB3oaccP+4tkVyhDm/uQeotdiv3EgeD1U/CjehUiJQ0zEZO88KW4v+CI6rPzOLrStEGz+sjbao7cErKlGCMnlXIv4SOIxakh8Ftj2vbroDMQop0V88COzOMfcm/o93JmsHL0e3pushLhHmUH57xq1oMnQNGSqThmBNXsQzHKSCSEeX7DfuJcRlJKXzgUb5rCgjPIpI1ifP10Nf5qU0wqYiH29OJ+KNft0lTICUtIXkpraTJwfH7MalCGSTHQuZUq8AOY0OCBa05D//J0737ygrGESgaIZvXiQgiYWzWl6A/hf5rEDOjrK3RT7JPDboUTOpoyRJD4Wm6ROWNeeVihDiAg1xZ5SRkAGJYnHazIvOtHeCS5RxrChzc0PtfU+zjMpkejZZ13jqYiJTgCWBTqJV0NrUsE/B6ZAbxlQXMtLqRJVPXwoztNbBlifaSll2sgDHlta6pvDQOVaO1MuZQoeSg+ZJfRWvj1ukY9cYA3XlgaaqaArTDmlOdPUEwTJZ2OIGYVQ0+3IwUiuSSFqkttevd+01r0ph9gspI2BaUN+oXII06MQBeV0zOEmiKynzSNjavb1n/uGNcjKilh77Yfa5kzbDyhVR4wtRNX7TbZnn8gDUh8S7k5tkDJF++qzaFcRoRZRnqzHv08K9BhKzLoq55EnljQNiuxk6Q8Ef+98mpeDMkQ7f2E31BzlL9EOiFs+miyn4dX9QsHiVk8xQpRYgIXIj2s7iv/xQIiVKsBLl3uuaezNd64FDeoDmE83mf4ehhJxsgwON/uVtS0F4vkw0jyGtkIeuRZ1ZKinvxnXLflKfXl9Sz/YhXKk0OcU8wvuxtzNL8upg8DAoxuOu0LnDOhTrKBqeCwlPRZOo/q1qFGluI6CKp0TiOjAii1LwfnovWP9AanLX5qYeQkmvv4M9fl9/KYzhBAvBecQ3Zrdu97Do/e7JjRbvuehJu/JRFmAzggx8XBaXq9WU88OzfP9xw8+mZiGN6XqWexEpyewI8SjN9fTOllpi7SZmHmBRb77eGJG/bofPKRTgCgsiEfCzpWtWnpjcaBkO264IXeoj9KMHhRtO08bcHw5KOzibhZt1iTmHNjgTjPa1uRlxUiy+6/6iMxRDF3uiJvR8d8DOKTNQaLYbpCoUhlaMIjDRu3+j1yvEUZQWC1KQ1rqMwifA4TRddOix7ZNjeTuOO0gMfdviwpjNl2AYYCPYYelJoso9SR/W8ik4BQzgyBuGjXLArfz1XxiSBPXpBkRGKSwsN7BX5prWfzX4j986xIXywAYAwAAAABJRU5ErkJggg==",Dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAXmSURBVHgBzVrPcttkEN/97HKBGQwvUGcY6IRLZF6g5sbQpFH6AFgZHiDpEyR5gjgnTkwVLtyK0gTaW51bb1Z6IRRm4rwAuAPMUGJr+a1kpRrHTmT5I/FvRrHy6ZO0u9/ufvtHTBbgul7l3z65JaYFYaoKkWNIKvitpHOEuMNEHRYK2XCI64dB4HdoSjAVhBLdI1oHZXdBnoMHBSIcsnDn1i0T/h71X7cCv5vOf/Dg69tnElWlj7ks9QhM4vXdEnNzGmYmZiAlXEQaID4wYoL9/UeHVABLK6t3oyjyQAQO9rGCW5MyMhEDi663qYSziP+XMTtZCU+DL1yvWqYIAuFNHFsHT/zNvPfmYgBSr/ZEfsBpt8e8+syC7o6CMlIS2TBEdajW53lW40oGllzPi/BQSL158OS7HboG3Fvy1o2RtV6fHz498IPL5l7KQKoywrzyU+CHdI0YrMZzOIXdy1SqNO5CSnwfS/k08I/pmvHbcdj9aL62xyTbd+7UPnj1S9gaNc+MGgTxbkr8/6XveaDvVhqEpXHfXW2MmnNBhdRgz7B0N018FqDJ6cOJjDLsCyvQj/VOmrNCvAJEh1HEO2eJJxwP1ft7y41HNKNYXG48X7zvbWTHzldAVYfgLqE6WzSj0D0IYYhXRzSQjp0z0BfaAAObs6Q6w1Da4NL99yJaS8diBlT6QuL1jNklixDHqeCokkWUiXayqxAz0MfWjdDXtyn9mHCWEz1wXidLCDT+Eg7SVYgZgM9fM5HxySaMqLGplLpgYoMsQgzt4Zl1PefU7/+4tztHlhBLnOU5wm0f/3WI4yhzhcMwIEtYWm788SfznFH1wW5mN85hUVeMUFs9mtmhZBW21SbIGjh4N+JlQxEtQDotsgQQ6eFHXXITEu/ggM7KVjxG0RpZArMKXRyDHNZBxGdlBQaGq/oOwl9uKTM4GjhvYqyFt67b8kpISU/hjaoG7rOKHLZDNmCQIyfS34zVRVWJxZda7bZmWqRGDVUiC4A7DePiAfS/+vjxt6c0JWLJwpvBcFuQ+C5lKhIKqFILP2rEriW32gXtFUO2YFJXyatj5wg/JEtuNUjycTsMxIYrpIevhjtuXnwNxk26cTrOOlmAqlA3GxwVwsBwE7d55St34rm4x4ZbNbDm7oem9D4VhHzmpIbbzEo/kTY8j1bi2u3TzHh3oEqVadxqEr9Rxxg88p+zyKECODfcxG2OqFjwSnIMjSY78lRuFcW1qpYqUdXDH/hTKoLEcGO3OfI6S1uPkary1q0WSqBgvAtayjTIA46wq028Aon0U8N9eVkYPrJ6F7vVtwZdp0nfL1TXp5h3SijKkrg0Kc4lN95wuX00Fx+q9yNh9N5usc1NnL6Rw7gqobkm9VGTPPBb+W51XLxUE2x1iz5NA2YVngOV8sBoroQKuXsdKcA2IuhaefCQFmLsZVLDyodUotU4VLaCKPdM9BgaIqYZn+sfLZmjnNJGfF3LW3FOYp03hd3vBaLaP+cKZwaF5hMk+HOaQcYroNsyliVNlnNVJQZ6baW8PgngPr1s+nseSqTJclxemVGMKv2cM6CroCULLM/MFrZylX7gkdr3XM9KoGUT6FOso2p4Mjx+IRqFcawYhAdfoqBKMwJVHTRZ1rTgPHztQn9A6/J35muvwcQ3n6I+f3wcXruhZqHEa8G5j27Nsyf+i+HrI/OB/cD3UZP39cabNOqUeGxa/rhW09gOzavjo8NP5hcqiDmaN7ESg57AUyUevbmxrr102UMSJmqneMj3H8/X+Nfj8AVdA9RgQfw2ouTN/b3LG4u52qxpww25Q6tIMzovkl2WHiG4rMBgV57ZaLNmseh+tZE2o8uGfFuMZLv/fIXKDGPiTw3SZnT6eYD0aTdvFDsMjSo5ouWIxS3a/S/8sYcygsJqXRvSWp8RTS6YWlGPjspl6mRXx02KBpU3PXJulek2HAP2GHFFa7IirWk+WyjMwChmEEstaHYnSb5azUzpYqwLnx1GotULE/5tZM/Gtxb/AWMOQZN/bkPjAAAAAElFTkSuQmCC",T=i=>(W("data-v-73fb5fff"),i=i(),$(),i),Tt={class:"stats-container"},Ut={class:"stat-cards"},Mt={class:"stat-card online"},Nt=T(()=>t("div",{class:"stat-icon"},[t("img",{src:Vt,alt:"\u8F66\u8F86\u76D1\u63A7"})],-1)),zt={class:"stat-info"},Et=T(()=>t("div",{class:"stat-title"},"\u8F66\u8F86\u76D1\u63A7",-1)),Yt={class:"stat-bottom"},Ht={class:"stat-value"},Qt={class:"stat-change"},Rt=T(()=>t("span",{class:"percent"},"+30%",-1)),jt={class:"stat-card task"},kt=T(()=>t("div",{class:"stat-icon"},[t("img",{src:It,alt:"\u5728\u7EBF"})],-1)),Xt={class:"stat-info"},Lt=T(()=>t("div",{class:"stat-title"},"\u5728\u7EBF",-1)),Ot={class:"stat-bottom"},Kt={class:"stat-value"},Gt={class:"stat-change"},Jt=T(()=>t("span",{class:"percent"},"+20%",-1)),qt={class:"stat-card error"},Ft=T(()=>t("div",{class:"stat-icon"},[t("img",{src:Bt,alt:"\u79BB\u7EBF"})],-1)),Zt={class:"stat-info"},Pt=T(()=>t("div",{class:"stat-title"},"\u79BB\u7EBF",-1)),Wt={class:"stat-bottom"},$t={class:"stat-value"},te={class:"stat-change error-change"},ee=T(()=>t("span",{class:"percent"},"-10%",-1)),ae={class:"stat-card offline"},se=T(()=>t("div",{class:"stat-icon"},[t("img",{src:Dt,alt:"\u6545\u969C"})],-1)),le={class:"stat-info"},ne=T(()=>t("div",{class:"stat-title"},"\u6545\u969C",-1)),oe={class:"stat-bottom"},ie=T(()=>t("div",{class:"stat-value"},"0",-1)),ce={class:"stat-change error-change"},re=T(()=>t("span",{class:"percent"},"-5%",-1)),ue={__name:"VehicleStats",props:{stats:{type:Array,required:!0}},setup(i){const m=i,u=X(()=>{var A,f,S,I,w,U,M,N;return{total:(w=(A=m.stats.find(d=>d.title==="\u8F66\u8F86\u603B\u6570"))==null?void 0:A.count)!=null?w:(((f=m.stats.find(d=>d.title==="\u5728\u7EBF"))==null?void 0:f.count)||0)+(((S=m.stats.find(d=>d.title==="\u79BB\u7EBF"))==null?void 0:S.count)||0)+(((I=m.stats.find(d=>d.title==="\u6545\u969C"))==null?void 0:I.count)||0),online:((U=m.stats.find(d=>d.title==="\u5728\u7EBF"))==null?void 0:U.count)||0,error:((M=m.stats.find(d=>d.title==="\u6545\u969C"))==null?void 0:M.count)||0,offline:((N=m.stats.find(d=>d.title==="\u79BB\u7EBF"))==null?void 0:N.count)||0}});return(A,f)=>{const S=B("el-icon");return D(),L("div",Tt,[t("div",Ut,[t("div",Mt,[Nt,t("div",zt,[Et,t("div",Yt,[t("div",Ht,b(C(u).total),1),t("div",Qt,[Rt,l(S,null,{default:_(()=>[l(C(tt))]),_:1})])])])]),t("div",jt,[kt,t("div",Xt,[Lt,t("div",Ot,[t("div",Kt,b(C(u).online),1),t("div",Gt,[Jt,l(S,null,{default:_(()=>[l(C(tt))]),_:1})])])])]),t("div",qt,[Ft,t("div",Zt,[Pt,t("div",Wt,[t("div",$t,b(C(u).offline),1),t("div",te,[ee,l(S,null,{default:_(()=>[l(C(et))]),_:1})])])])]),t("div",ae,[se,t("div",le,[ne,t("div",oe,[ie,t("div",ce,[re,l(S,null,{default:_(()=>[l(C(et))]),_:1})])])])])])])}}},de=Z(ue,[["__scopeId","data-v-73fb5fff"]]);const ve={class:"vehicle-table"},he={key:0,class:"search-area"},Ae={class:"search-buttons"},pe={class:"action-buttons"},fe={class:"view-switcher"},ge={class:"pagination-container"},_e={__name:"VehicleTable",props:{vehicleData:{type:Array,required:!0},filters:{type:Object,default:()=>({})},hideSearch:{type:Boolean,default:!1}},emits:["view","control","selection-change","search","filter","reset","export","switch-view"],setup(i,{emit:m}){const u=i,A=p(""),f=p(""),S=p(""),I=p(1),w=p(7),U=512,M=p([]),N=p(!1);ht(()=>{u.filters&&(A.value=u.filters.searchText||"",f.value=u.filters.vehicleType||"",S.value=u.filters.vehicleStatus||"")});const d=X(()=>{let n=[...u.vehicleData];if(A.value){const o=A.value.toLowerCase();n=n.filter(V=>{var x,j,O,h;return((x=V.id)==null?void 0:x.toString().toLowerCase().includes(o))||((j=V.carId)==null?void 0:j.toLowerCase().includes(o))||((O=V.type)==null?void 0:O.toLowerCase().includes(o))||((h=V.organization)==null?void 0:h.toLowerCase().includes(o))})}return S.value&&(n=n.filter(o=>o.status===S.value)),f.value&&(n=n.filter(o=>o.type===f.value)),n}),Y=X(()=>d.value.length),z=X(()=>{const n=(I.value-1)*w.value,o=n+w.value;return d.value.slice(n,o)});function H(n){switch(n){case"\u4EFB\u52A1\u4E2D":return"success";case"\u5F85\u547D\u4E2D":return"";case"\u5145\u7535\u4E2D":return"warning";case"\u7B49\u5F85\u4E2D":return"info";default:return""}}function Q(){}function E(){m("filter",{searchText:A.value,vehicleType:f.value,vehicleStatus:S.value})}function R(){A.value="",f.value="",S.value="",m("reset")}function e(){m("export")}function a(n){m("view",n)}function s(n){N.value=n==="card",m("switch-view",n)}function r(n){M.value=n,m("selection-change",n)}function v({page:n,limit:o}){I.value=n,w.value=o}return(n,o)=>{const V=B("el-input"),x=B("el-option"),j=B("el-select"),O=B("el-button"),h=B("svg-icon"),c=B("el-table-column"),q=B("el-tag"),K=B("el-table");return D(),L("div",ve,[i.hideSearch?nt("",!0):(D(),L("div",he,[l(V,{modelValue:A.value,"onUpdate:modelValue":o[0]||(o[0]=g=>A.value=g),placeholder:"\u8BF7\u8F93\u5165\u8F66\u724C\u53F7\u67E5\u8BE2",clearable:"","prefix-icon":"Search",class:"search-input",onInput:Q,onKeyup:lt(E,["enter"])},null,8,["modelValue","onKeyup"]),l(j,{modelValue:f.value,"onUpdate:modelValue":o[1]||(o[1]=g=>f.value=g),placeholder:"\u8F66\u8F86\u7C7B\u578B",clearable:"",class:"search-select",onChange:E},{default:_(()=>[l(x,{label:"\u5168\u90E8",value:""}),l(x,{label:"\u9A71\u52A8\u8F66",value:"\u9A71\u52A8\u8F66"}),l(x,{label:"\u5DE1\u68C0\u8F66",value:"\u5DE1\u68C0\u8F66"})]),_:1},8,["modelValue"]),l(j,{modelValue:S.value,"onUpdate:modelValue":o[2]||(o[2]=g=>S.value=g),placeholder:"\u8F66\u8F86\u72B6\u6001",clearable:"",class:"search-select",onChange:E},{default:_(()=>[l(x,{label:"\u5168\u90E8",value:""}),l(x,{label:"\u5728\u7EBF",value:"\u5728\u7EBF"}),l(x,{label:"\u79BB\u7EBF",value:"\u79BB\u7EBF"}),l(x,{label:"\u6545\u969C",value:"\u6545\u969C"})]),_:1},8,["modelValue"]),t("div",Ae,[l(O,{type:"primary",class:"search-btn",onClick:E},{default:_(()=>[k("\u641C\u7D22")]),_:1}),l(O,{class:"reset-btn",onClick:R},{default:_(()=>[k("\u91CD\u7F6E")]),_:1}),l(O,{class:"export-btn",onClick:e},{default:_(()=>[k("\u5BFC\u51FA")]),_:1})]),t("div",pe,[t("div",fe,[t("div",{class:J(["view-btn list-view",{active:!N.value}]),onClick:o[3]||(o[3]=g=>s("list")),title:"\u5217\u8868\u89C6\u56FE"},[l(h,{"icon-class":"table"})],2),t("div",{class:J(["view-btn card-view",{active:N.value}]),onClick:o[4]||(o[4]=g=>s("card")),title:"\u5361\u7247\u89C6\u56FE"},[l(h,{"icon-class":"dashboard"})],2)])])])),t("div",{class:J(["table-container",{"full-height":i.hideSearch}])},[l(K,{data:C(z),style:{width:"100%"},onSelectionChange:r,"header-cell-style":{backgroundColor:"#343744",color:"#fff"},class:"custom-table","bg-color":"#292C38","max-height":U},{default:_(()=>[l(c,{type:"selection",width:"55"}),l(c,{label:"\u5E8F\u53F7",width:"70"},{default:_(g=>[k(b(g.$index+1),1)]),_:1}),l(c,{prop:"carId",label:"\u8F66\u8F86\u53F7"}),l(c,{prop:"type",label:"\u7C7B\u578B"}),l(c,{prop:"brand",label:"\u54C1\u724C"}),l(c,{prop:"organization",label:"\u6240\u5C5E\u5355\u4F4D",width:"120"}),l(c,{prop:"number",label:"\u5F53\u524D\u6545\u969C\u6570",width:"100"}),l(c,{prop:"routeStatus",label:"\u4F5C\u4E1A\u72B6\u6001"},{default:_(g=>[l(q,{type:H(g.row.routeStatus)},{default:_(()=>[k(b(g.row.routeStatus),1)]),_:2},1032,["type"])]),_:1}),l(c,{prop:"status",label:"\u8F66\u8F86\u72B6\u6001"},{default:_(g=>[l(q,{type:g.row.status==="\u5728\u7EBF"?"success":"danger"},{default:_(()=>[k(b(g.row.status),1)]),_:2},1032,["type"])]),_:1}),l(c,{prop:"chargeStatus",label:"\u5145\u7535\u72B6\u6001"}),l(c,{prop:"voltage",label:"\u603B\u7535\u538B"}),l(c,{prop:"current",label:"\u603B\u7535\u6D41"}),l(c,{prop:"soc",label:"SOC"}),l(c,{prop:"lastTime",label:"\u6700\u65B0\u65F6\u95F4",width:"170"}),l(c,{prop:"location",label:"\u6700\u65B0\u4F4D\u7F6E"}),l(c,{prop:"batteryLevel",label:"\u8D1F\u8D23\u4EBA"}),l(c,{prop:"contactPhone",label:"\u8D1F\u8D23\u4EBA\u7535\u8BDD",width:"130"}),l(c,{label:"\u64CD\u4F5C",width:"120"},{default:_(g=>[l(O,{link:"",text:"",type:"primary",onClick:F=>a(g.row)},{default:_(()=>[k(" \u67E5\u770B ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])],2),t("div",ge,[ot(l(ct,{total:C(Y),page:I.value,"onUpdate:page":o[5]||(o[5]=g=>I.value=g),limit:w.value,"onUpdate:limit":o[6]||(o[6]=g=>w.value=g),onPagination:v},null,8,["total","page","limit"]),[[it,C(Y)>0]])])])}}},me=Z(_e,[["__scopeId","data-v-10ac5811"]]);const y=i=>(W("data-v-6e701db6"),i=i(),$(),i),Se={class:"vehicle-cards"},be={class:"cards-grid"},Ce=["onClick"],xe={class:"card-content"},ye={class:"card-row card-header"},we={class:"left-content"},Ve=y(()=>t("img",{src:St,class:"car-icon",alt:"\u8F66\u8F86\u56FE\u6807"},null,-1)),Ie={class:"vehicle-info"},Be={class:"vehicle-id"},De={class:"vehicle-type"},Te={class:"right-content"},Ue={class:"card-row battery-info"},Me={class:"info-item battery-status"},Ne={class:"battery-container"},ze={class:"battery-icon"},Ee={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"14",viewBox:"0 0 24 14"},Ye=y(()=>t("rect",{x:"1",y:"2",width:"20",height:"10",rx:"1",ry:"1",fill:"transparent",stroke:"#00ff84","stroke-width":"1.5"},null,-1)),He=y(()=>t("rect",{x:"21",y:"4",width:"2",height:"6",rx:"1",ry:"1",fill:"#00ff84"},null,-1)),Qe=["width"],Re=y(()=>t("span",{class:"lightning-icon"},"\u26A1",-1)),je={class:"percentage"},ke=y(()=>t("span",{class:"divider"},"|",-1)),Xe={class:"info-item voltage"},Le=y(()=>t("i",{class:"el-icon voltage-icon"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[t("path",{fill:"currentColor",d:"M14 9.5V6h2V2H8v4h2v3.5L2 20h20L14 9.5zm-6 8.5l5-5l5 5H8z"})])],-1)),Oe=y(()=>t("span",{class:"divider"},"|",-1)),Ke={class:"info-item current"},Ge=y(()=>t("i",{class:"el-icon current-icon"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[t("path",{fill:"currentColor",d:"M16 7l-4-4l-4 4l1.41 1.41L11 6.83V20h2V6.83l1.59 1.58L16 7z"})])],-1)),Je={class:"card-row location-info"},qe=y(()=>t("i",{class:"el-icon location-icon"},[t("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg","data-v-78e17ca8":""},[t("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928zm0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6z"})])],-1)),Fe={class:"location-value"},Ze={class:"card-row contact-info"},Pe={class:"left-content"},We=y(()=>t("i",{class:"el-icon person-icon"},[t("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg","data-v-78e17ca8":""},[t("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0z"})])],-1)),$e={class:"contact-name"},ta={class:"right-content"},ea=y(()=>t("i",{class:"el-icon phone-icon"},[t("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg","data-v-78e17ca8":""},[t("path",{fill:"currentColor",d:"M768 896a128 128 0 0 0 128-128V256a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v512a128 128 0 0 0 128 128h512zm0 64H256a192 192 0 0 1-192-192V256a192 192 0 0 1 192-192h512a192 192 0 0 1 192 192v512a192 192 0 0 1-192 192z"}),t("path",{fill:"currentColor",d:"M542.336 711.552a32 32 0 0 1-33.92-29.44 431.04 431.04 0 0 0-166.272-173.76 32 32 0 0 1-2.048-50.592l42.688-38.816a32 32 0 0 1 43.008 3.328 353.6 353.6 0 0 1 151.936 167.52 32 32 0 0 1-28.8 45.76l-.512-13.28c.448 4.48.704 8.96.512 13.28zm215.808-261.12a32 32 0 0 1-46.08-12.608 803.2 803.2 0 0 0-315.392-280.064 32.128 32.128 0 0 1-9.216-43.392l38.016-51.2a32.128 32.128 0 0 1 44.352-8.448c123.136 88.576 242.688 196.544 339.456 347.648a32 32 0 0 1-11.264 47.424l-39.872 1.344.064-.704z"})])],-1)),aa={class:"contact-phone"},sa={class:"card-row company-info"},la={class:"left-content"},na=y(()=>t("i",{class:"el-icon brand-icon"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[t("path",{fill:"currentColor",d:"M12 4C7.59 4 4 7.59 4 12s3.59 8 8 8s8-3.59 8-8s-3.59-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6s6 2.69 6 6s-2.69 6-6 6zm-1-10h2v4h-2zm0 5h2v2h-2z"})])],-1)),oa={class:"brand-name"},ia={class:"right-content"},ca=y(()=>t("i",{class:"el-icon company-icon"},[t("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg","data-v-78e17ca8":""},[t("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v544a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32H160zm0-64h704a96 96 0 0 1 96 96v544a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96z"}),t("path",{fill:"currentColor",d:"M464 224a32 32 0 0 0-32 32v128a32 32 0 0 0 32 32h96a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32h-96zM96 384h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm142.4 234.24L326.4 800h64.32l96-170.24-41.92-64.96L384 704l-88.96-149.76-57.6 64z"})])],-1)),ra={class:"company-name"},ua={class:"card-row update-time"},da=y(()=>t("span",{class:"update-label"},"\u6700\u65B0\u66F4\u65B0\u65F6\u95F4\uFF1A",-1)),va={class:"update-value"},ha={class:"bottom-stats"},Aa={class:"status-counters"},pa={class:"status-counter online"},fa=y(()=>t("div",{class:"counter-label"},"\u5728\u7EBF\u8BBE\u5907:",-1)),ga={class:"counter-value"},_a={class:"status-counter offline"},ma=y(()=>t("div",{class:"counter-label"},"\u79BB\u7EBF\u8BBE\u5907:",-1)),Sa={class:"counter-value"},ba={class:"status-counter fault"},Ca=y(()=>t("span",{class:"counter-label"},"\u6545\u969C\u8BBE\u5907:",-1)),xa={class:"counter-value"},ya={class:"pagination-wrapper"},wa={__name:"VehicleCards",props:{vehicleData:{type:Array,required:!0},filters:{type:Object,default:()=>({})}},emits:["view","control"],setup(i,{emit:m}){const u=i,A=p(1),f=p(8),S=p(4),I=p(210);function w(){const e=window.innerWidth||document.documentElement.clientWidth;return e<=768?1:e<=1200?2:e<=1600?3:4}function U(){const e=w();S.value=e,f.value=e*2;const a=Math.max(0,M.value-f.value);(A.value-1)*f.value>a&&(A.value=1)}rt(()=>{U(),window.addEventListener("resize",U)}),ut(()=>{window.removeEventListener("resize",U)});const M=X(()=>u.vehicleData.length),N=X(()=>{const e=(A.value-1)*f.value,a=e+f.value;return u.vehicleData.slice(e,a)}),d=X(()=>u.vehicleData.filter(e=>e.status==="\u5728\u7EBF").length),Y=X(()=>u.vehicleData.filter(e=>e.status==="\u79BB\u7EBF").length),z=X(()=>u.vehicleData.filter(e=>e.status==="\u6545\u969C").length);function H(e){return parseInt(e)||0}function Q(e){const a=H(e);return Math.max(1,Math.min(18,a/100*18))}function E(e){m("view",e)}function R({page:e,limit:a}){A.value=e,f.value=a}return(e,a)=>(D(),L("div",Se,[t("div",{class:"cards-container",style:ft({"--card-row-height":I.value+"px"})},[t("div",be,[(D(!0),L(At,null,pt(C(N),s=>(D(),L("div",{key:s.id,class:J(["vehicle-card",{"task-status":s.routeStatus==="\u4EFB\u52A1\u4E2D","idle-status":s.routeStatus==="\u95F2\u7F6E\u4E2D","waiting-status":s.routeStatus==="\u7B49\u5F85\u4E2D"}]),onClick:r=>E(s)},[t("div",xe,[t("div",ye,[t("div",we,[Ve,t("div",Ie,[t("span",Be,b(s.carId),1),t("span",De,b(s.type),1)])]),t("div",Te,[t("span",{class:J(["status-tag",{task:s.routeStatus==="\u4EFB\u52A1\u4E2D",idle:s.routeStatus==="\u95F2\u7F6E\u4E2D",waiting:s.routeStatus==="\u7B49\u5F85\u4E2D"}])},b(s.routeStatus),3)])]),t("div",Ue,[t("div",Me,[t("div",Ne,[t("div",ze,[(D(),L("svg",Ee,[Ye,He,t("rect",{x:"2",y:"3",width:Q(s.soc),height:"8",rx:"1",ry:"1",fill:"#00ff84"},null,8,Qe)]))]),Re,t("span",je,b(s.soc),1)])]),ke,t("div",Xe,[Le,t("span",null,b(s.voltage),1)]),Oe,t("div",Ke,[Ge,t("span",null,b(s.current),1)])]),t("div",Je,[qe,t("span",Fe,b(s.location),1)]),t("div",Ze,[t("div",Pe,[We,t("span",$e,b(s.batteryLevel),1)]),t("div",ta,[ea,t("span",aa,b(s.contactPhone),1)])]),t("div",sa,[t("div",la,[na,t("span",oa,b(s.brand),1)]),t("div",ia,[ca,t("span",ra,b(s.organization),1)])]),t("div",ua,[da,t("span",va,b(s.lastTime),1)])])],10,Ce))),128))])],4),t("div",ha,[t("div",Aa,[t("div",pa,[fa,t("div",ga,b(C(d)),1)]),t("div",_a,[ma,t("span",Sa,b(C(Y)),1)]),t("div",ba,[Ca,t("span",xa,b(C(z)),1)])]),t("div",ya,[ot(l(ct,{total:C(M),page:A.value,"onUpdate:page":a[0]||(a[0]=s=>A.value=s),limit:f.value,"onUpdate:limit":a[1]||(a[1]=s=>f.value=s),onPagination:R},null,8,["total","page","limit"]),[[it,C(M)>0]])])])]))}},Va=Z(wa,[["__scopeId","data-v-6e701db6"]]);function Ia(){const i=p([]),m=Ct(),u=p({searchText:"",vehicleType:"",vehicleStatus:""}),A=p([{title:"\u8F66\u8F86\u603B\u6570",count:i.value.length},{title:"\u5728\u7EBF",count:i.value.filter(e=>e.status==="\u5728\u7EBF").length},{title:"\u4EFB\u52A1\u4E2D",count:i.value.filter(e=>e.routeStatus==="\u4EFB\u52A1\u4E2D").length},{title:"\u6545\u969C",count:i.value.filter(e=>e.status==="\u6545\u969C").length},{title:"\u79BB\u7EBF",count:i.value.filter(e=>e.status==="\u79BB\u7EBF").length}]);async function f(){var e,a,s,r;try{const v=await at({url:"/api/vehicle-manager/vehicles/summary",method:"get"}),n=v&&v.data!==void 0?v.data:v||{},o=i.value.filter(V=>V.routeStatus==="\u4EFB\u52A1\u4E2D").length;A.value=[{title:"\u8F66\u8F86\u603B\u6570",count:Number((e=n.totalCount)!=null?e:i.value.length)},{title:"\u5728\u7EBF",count:Number((a=n.onlineCount)!=null?a:0)},{title:"\u4EFB\u52A1\u4E2D",count:o},{title:"\u6545\u969C",count:Number((s=n.faultCount)!=null?s:0)},{title:"\u79BB\u7EBF",count:Number((r=n.offlineCount)!=null?r:0)}]}catch{A.value=[{title:"\u8F66\u8F86\u603B\u6570",count:i.value.length},{title:"\u5728\u7EBF",count:i.value.filter(n=>n.status==="\u5728\u7EBF").length},{title:"\u4EFB\u52A1\u4E2D",count:i.value.filter(n=>n.routeStatus==="\u4EFB\u52A1\u4E2D").length},{title:"\u6545\u969C",count:i.value.filter(n=>n.status==="\u6545\u969C").length},{title:"\u79BB\u7EBF",count:i.value.filter(n=>n.status==="\u79BB\u7EBF").length}]}}f();function S(e,a){return e==="fault"||a?"\u6545\u969C":e==="offline"?"\u79BB\u7EBF":(e==="online","\u5728\u7EBF")}function I(e){if(!e)return"--";const a=new Date(Number(e)),s=a.getFullYear(),r=String(a.getMonth()+1).padStart(2,"0"),v=String(a.getDate()).padStart(2,"0"),n=String(a.getHours()).padStart(2,"0"),o=String(a.getMinutes()).padStart(2,"0"),V=String(a.getSeconds()).padStart(2,"0");return`${s}-${r}-${v} ${n}:${o}:${V}`}function w(...e){for(const a of e)if(a!=null)return a}function U(e){const a=(e==null?void 0:e.position)||{},s=w(a==null?void 0:a.y,a==null?void 0:a.longitude,e==null?void 0:e.longitude,e==null?void 0:e.lng,e==null?void 0:e.lon,e==null?void 0:e.x),r=w(a==null?void 0:a.x,a==null?void 0:a.latitude,e==null?void 0:e.latitude,e==null?void 0:e.lat,e==null?void 0:e.y);if(s===void 0||r===void 0)return"--";const v=Number(s),n=Number(r),o=Number.isFinite(v)?v:s,V=Number.isFinite(n)?n:r;return`\u7ECF\u5EA6${o},\u7EAC\u5EA6${V}`}function M(e){var j;const a=U(e),s=e!=null&&e.currentTask?"\u4EFB\u52A1\u4E2D":"\u5F85\u547D\u4E2D",r=S(e==null?void 0:e.status,e==null?void 0:e.isFault),v=e==null?void 0:e.batteryLevel,n=typeof v=="number"?`${Math.round(v)}%`:v!=null?v:"--",o=e==null?void 0:e.vehicleId,x=m.getVehicleTypeOverride(o)||(e==null?void 0:e.vehicleType)||"";return{id:o,carId:o,type:x,brand:"",organization:"",routeStatus:s,status:r,chargeStatus:"",voltage:"",current:"",soc:n,lastTime:I(e==null?void 0:e.lastSeenAt),batteryLevel:(j=e==null?void 0:e.batteryLevel)!=null?j:"--",location:a,contactPhone:"",number:e!=null&&e.isFault?1:0}}function N(e,a){return{id:e,carId:e,type:a||"",brand:"",organization:"",routeStatus:"\u5F85\u547D\u4E2D",status:"\u5728\u7EBF",chargeStatus:"",voltage:"",current:"",soc:"--",lastTime:"--",batteryLevel:"--",location:"--",contactPhone:"",number:0}}function d(e){const a=Array.isArray(e)?e:[],s=new Set(a.map(n=>n==null?void 0:n.id).filter(Boolean)),r=m.vehicleTypeOverrides||{},v=[];return Object.keys(r).forEach(n=>{if(!n||s.has(n))return;const o=String(r[n]||"").toUpperCase();o!=="UNMANNED_VEHICLE"&&o!=="SPECIAL_VEHICLE"||v.push(N(n,r[n]))}),[...a,...v]}async function Y(e={pageNum:1,pageSize:100}){var a;try{const s=await at({url:"/api/vehicle-manager/vehicles",method:"get",params:e}),r=s&&s.data!==void 0?s.data:s||{},v=(r==null?void 0:r.rows)||((a=r==null?void 0:r.data)==null?void 0:a.rows)||[];i.value=d(v.map(M))}catch{i.value=d([])}}Y(),dt(()=>m.vehicleTypeOverrides,()=>{i.value=d(i.value)},{deep:!0});const z=X(()=>{let e=[...i.value];if(u.value.searchText){const a=u.value.searchText.toLowerCase();e=e.filter(s=>{var r,v,n,o;return((r=s.id)==null?void 0:r.toString().toLowerCase().includes(a))||((v=s.carId)==null?void 0:v.toLowerCase().includes(a))||((n=s.type)==null?void 0:n.toLowerCase().includes(a))||((o=s.organization)==null?void 0:o.toLowerCase().includes(a))})}return u.value.vehicleStatus&&(e=e.filter(a=>a.status===u.value.vehicleStatus)),u.value.vehicleType&&(e=e.filter(a=>a.type===u.value.vehicleType)),e});function H(e){switch(e){case"\u4EFB\u52A1\u4E2D":return"success";case"\u5F85\u547D\u4E2D":return"";case"\u5145\u7535\u4E2D":return"warning";case"\u7B49\u5F85\u4E2D":return"info";default:return""}}function Q(e){u.value={...u.value,...e}}function E(){u.value={searchText:"",vehicleType:"",vehicleStatus:""}}function R(){console.log("\u5BFC\u51FA\u6570\u636E",z.value)}return{vehicleData:i,vehicleStats:A,fetchVehicleStats:f,fetchVehicles:Y,filters:u,filteredVehicleData:z,getRouteStatusType:H,updateFilters:Q,resetFilters:E,exportData:R}}const vt=i=>(W("data-v-db1c64a9"),i=i(),$(),i),Ba={class:"monitor_container"},Da={key:"list-view"},Ta={class:"app-container"},Ua={class:"search-area"},Ma={class:"search-buttons"},Na={class:"action-buttons"},za={class:"view-switcher"},Ea=vt(()=>t("img",{src:yt,alt:"\u5217\u8868\u89C6\u56FE"},null,-1)),Ya=[Ea],Ha=vt(()=>t("img",{src:wt,alt:"\u5361\u7247\u89C6\u56FE"},null,-1)),Qa=[Ha],Ra={class:"content-area"},ja={key:"detail-view",class:"detail-view"},ka={__name:"index",emits:["edit-vehicle","view-vehicle"],setup(i,{emit:m}){const{proxy:u}=mt(),A=p(new Map),{vehicleData:f,vehicleStats:S,filters:I,filteredVehicleData:w,updateFilters:U,resetFilters:M,exportData:N}=Ia();dt(A,h=>{if(a.value&&s.value){const c=h.get(s.value.carId||s.value.id);c&&(s.value={...s.value,...c})}},{deep:!0});const d=p(null);rt(()=>{d.value&&d.value.$on("vehicle-details-updated",Y)}),ut(()=>{d.value&&d.value.$off("vehicle-details-updated",Y)});function Y(h){A.value.set(h.carId||h.id,h),m("vehicle-details-updated",h)}const z=p(""),H=p(""),Q=p(""),E=p(0),R=p("card");p("default");const e=p([]),a=p(!1),s=p(null);function r(h){const c=A.value.get(h.carId||h.id);s.value=c?{...h,...c}:h,a.value=!0}function v(){a.value=!1}function n(h){R.value=h}function o(h){_t.confirm(`\u786E\u5B9A\u8981\u5BF9 ${h.id} \u8FDB\u884C\u8FDC\u7A0B\u63A7\u5236\u5417\uFF1F`,"\u8B66\u544A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{st({type:"success",message:`\u5DF2\u53D1\u9001\u63A7\u5236\u6307\u4EE4\u5230\u8F66\u8F86 ${h.id}`})}).catch(()=>{st({type:"info",message:"\u5DF2\u53D6\u6D88\u64CD\u4F5C"})})}function V(h){e.value=h}function x(){U({searchText:z.value,vehicleType:H.value,vehicleStatus:Q.value})}function j(){z.value="",H.value="",Q.value="",M()}function O(){try{u.download("system/vehicle_type/export",{},`vehicle_type_${new Date().getTime()}.xlsx`)}catch(h){console.error("\u5BFC\u51FA\u5931\u8D25:",h)}}return(h,c)=>{const q=B("el-input"),K=B("el-option"),g=B("el-select"),F=B("el-button");return D(),L("div",Ba,[l(gt,{name:"fade",mode:"out-in"},{default:_(()=>[a.value?(D(),L("div",ja,[l(bt,{vehicle:s.value,onClose:v},null,8,["vehicle"]),s.value?(D(),P(xt,{key:0,vehicleData:s.value,ref_key:"vehicleMovementControlRef",ref:d},null,8,["vehicleData"])):nt("",!0)])):(D(),L("div",Da,[l(de,{modelValue:E.value,"onUpdate:modelValue":c[0]||(c[0]=G=>E.value=G),stats:C(S),class:"stats-section"},null,8,["modelValue","stats"]),t("div",Ta,[t("div",Ua,[l(q,{modelValue:z.value,"onUpdate:modelValue":c[1]||(c[1]=G=>z.value=G),placeholder:"\u8BF7\u8F93\u5165\u8F66\u724C\u53F7\u67E5\u8BE2",clearable:"","prefix-icon":"Search",class:"search-input",onKeyup:lt(x,["enter"])},null,8,["modelValue","onKeyup"]),l(g,{modelValue:H.value,"onUpdate:modelValue":c[2]||(c[2]=G=>H.value=G),placeholder:"\u8F66\u8F86\u7C7B\u578B",clearable:"",class:"search-select",onChange:x},{default:_(()=>[l(K,{label:"\u5168\u90E8",value:""}),l(K,{label:"\u9A71\u52A8\u8F66",value:"\u9A71\u52A8\u8F66"}),l(K,{label:"\u5DE1\u68C0\u8F66",value:"\u5DE1\u68C0\u8F66"})]),_:1},8,["modelValue"]),l(g,{modelValue:Q.value,"onUpdate:modelValue":c[3]||(c[3]=G=>Q.value=G),placeholder:"\u8F66\u8F86\u72B6\u6001",clearable:"",class:"search-select",onChange:x},{default:_(()=>[l(K,{label:"\u5168\u90E8",value:""}),l(K,{label:"\u5728\u7EBF",value:"\u5728\u7EBF"}),l(K,{label:"\u79BB\u7EBF",value:"\u79BB\u7EBF"}),l(K,{label:"\u6545\u969C",value:"\u6545\u969C"})]),_:1},8,["modelValue"]),t("div",Ma,[l(F,{type:"primary",class:"search-btn",onClick:x},{default:_(()=>[k("\u641C\u7D22")]),_:1}),l(F,{class:"reset-btn",onClick:j},{default:_(()=>[k("\u91CD\u7F6E")]),_:1}),l(F,{class:"export-btn",onClick:O},{default:_(()=>[k("\u5BFC\u51FA")]),_:1})]),t("div",Na,[t("div",za,[t("div",{class:J(["view-btn list-view",{active:R.value==="list"}]),onClick:c[4]||(c[4]=G=>n("list")),title:"\u5217\u8868\u89C6\u56FE"},Ya,2),t("div",{class:J(["view-btn card-view",{active:R.value==="card"}]),onClick:c[5]||(c[5]=G=>n("card")),title:"\u5361\u7247\u89C6\u56FE"},Qa,2)])])]),t("div",Ra,[R.value==="list"?(D(),P(me,{key:0,vehicleData:C(w),filters:C(I),onView:r,onControl:o,onSelectionChange:V,"hide-search":!0},null,8,["vehicleData","filters"])):(D(),P(Va,{key:1,vehicleData:C(w),filters:C(I),onView:r,onControl:o},null,8,["vehicleData","filters"]))])])]))]),_:1})])}}},Ja=Z(ka,[["__scopeId","data-v-db1c64a9"]]);export{Ja as default}; diff --git a/airport/assets/index.b09083d4.js.gz b/airport/assets/index.b09083d4.js.gz new file mode 100644 index 0000000..cbf1909 Binary files /dev/null and b/airport/assets/index.b09083d4.js.gz differ diff --git a/airport/assets/index.bb6087a5.css b/airport/assets/index.bb6087a5.css new file mode 100644 index 0000000..2aecd2e --- /dev/null +++ b/airport/assets/index.bb6087a5.css @@ -0,0 +1 @@ +.app-container[data-v-6f9fee2b]{padding:20px;background-color:#292c38;color:#fff;height:calc(100vh - 150px);overflow-y:auto;border-radius:10px}.search-action-bar[data-v-6f9fee2b]{display:flex;align-items:center;margin-bottom:20px}.search-action-bar .search-area[data-v-6f9fee2b]{display:flex;gap:10px}.search-action-bar .search-area .search-input[data-v-6f9fee2b]{width:250px}.search-action-bar .search-area .search-btn[data-v-6f9fee2b],.search-action-bar .search-area .reset-btn[data-v-6f9fee2b]{border-radius:8px;font-size:15px;height:36px;min-width:80px}.search-action-bar .search-area .search-btn[data-v-6f9fee2b]{background:#347ae2;color:#fff;border:none}.search-action-bar .search-area .reset-btn[data-v-6f9fee2b]{background:#343744;color:#96a0b5;border:none}.search-action-bar .action-buttons[data-v-6f9fee2b]{margin-left:auto;display:flex;gap:10px}.search-action-bar .action-buttons .add-btn[data-v-6f9fee2b],.search-action-bar .action-buttons .delete-btn[data-v-6f9fee2b]{border-radius:8px;font-size:15px;height:36px;min-width:80px}.search-action-bar .action-buttons .add-btn[data-v-6f9fee2b]{background:#347ae2;color:#fff;border:none}.search-action-bar .action-buttons .delete-btn[data-v-6f9fee2b]{background:#343744;color:#96a0b5;border:none}.custom-table[data-v-6f9fee2b]{background-color:#292c38!important;color:#fff;margin-bottom:20px;border-radius:4px;overflow:hidden}.custom-table[data-v-6f9fee2b] .el-loading-mask{background-color:#292c38b3!important}.custom-table[data-v-6f9fee2b] .el-table__empty-block{background-color:#292c38!important}.custom-table[data-v-6f9fee2b] .el-table__empty-text{color:#96a0b5!important}.custom-table[data-v-6f9fee2b] .el-table,.custom-table[data-v-6f9fee2b] .el-table__body{background-color:#292c38!important}.custom-table[data-v-6f9fee2b] .el-table__inner-wrapper:before{display:none}.custom-table[data-v-6f9fee2b] .el-table__header{border-top-left-radius:4px;border-top-right-radius:4px;overflow:hidden}.custom-table[data-v-6f9fee2b] .el-table__header-wrapper th{background-color:#343744!important;color:#96a0b5!important;font-weight:400;border-bottom:none}.custom-table[data-v-6f9fee2b] .el-table__header-wrapper tr th.el-table__cell:first-child,.custom-table[data-v-6f9fee2b] .el-table__header-wrapper tr th.el-table__cell:first-child .cell{border-top-left-radius:6px}.custom-table[data-v-6f9fee2b] .el-table__header-wrapper tr th.el-table__cell:last-child{border-top-right-radius:4px}.custom-table[data-v-6f9fee2b] .el-table__header-wrapper tr th.el-table__cell:last-child .cell{border-top-right-radius:4px}.custom-table[data-v-6f9fee2b] .el-table__header-wrapper .el-table__header th.el-table__cell{background-color:#343744!important;color:#96a0b5}.custom-table[data-v-6f9fee2b] .el-table__header-wrapper tr{background-color:#343744!important}.custom-table[data-v-6f9fee2b] .el-table__body-wrapper td{height:68px!important;background-color:#292c38;color:#fff;border-bottom:1px solid #4c4f5f}.custom-table[data-v-6f9fee2b] .el-table__body tr:hover>td{background:#2b3b5a!important}.custom-table[data-v-6f9fee2b] .el-button--link{border:none;background:transparent;color:#347ae2;padding:0;margin:0 5px}.custom-table[data-v-6f9fee2b] .el-button.is-text{background-color:transparent!important;border-color:transparent;color:#347ae2}.custom-table[data-v-6f9fee2b] .el-button.is-text:hover,.custom-table[data-v-6f9fee2b] .el-button.is-text:focus,.custom-table[data-v-6f9fee2b] .el-button.is-text:active{background-color:transparent!important;color:#347ae2}.custom-table[data-v-6f9fee2b] .el-button.el-button--primary.is-text,.custom-table[data-v-6f9fee2b] .el-button.el-button--primary.is-text:hover,.custom-table[data-v-6f9fee2b] .el-table__body tr:hover .el-button--link.is-text{background-color:transparent!important;color:#347ae2} diff --git a/airport/assets/index.bb6087a5.css.gz b/airport/assets/index.bb6087a5.css.gz new file mode 100644 index 0000000..c635ce9 Binary files /dev/null and b/airport/assets/index.bb6087a5.css.gz differ diff --git a/airport/assets/index.bd5f24ad.js b/airport/assets/index.bd5f24ad.js new file mode 100644 index 0000000..ddd61a1 --- /dev/null +++ b/airport/assets/index.bd5f24ad.js @@ -0,0 +1 @@ +import{_ as e,Y as _,r as s,o as t,c as n}from"./index.79832097.js";const c={class:"app-container home"},o=_({name:"Index"}),a=Object.assign(o,{setup(d){return s("3.8.4"),(p,r)=>(t(),n("div",c))}}),f=e(a,[["__scopeId","data-v-46c6bd0f"]]);export{f as default}; diff --git a/airport/assets/index.c68008f7.js b/airport/assets/index.c68008f7.js new file mode 100644 index 0000000..8fa0d19 --- /dev/null +++ b/airport/assets/index.c68008f7.js @@ -0,0 +1 @@ +import{r as c,v as u,C as d,a8 as m,J as _,f as n,o as a,c as p,l as f,Q as g,k as h,a9 as v}from"./index.79832097.js";const x=["src"],w={__name:"index",props:{src:{type:String,required:!0}},setup(i){const e=i,t=c(document.documentElement.clientHeight-94.5+"px;"),r=c(!0),s=u(()=>e.src);return d(()=>{setTimeout(()=>{r.value=!1},300),window.onresize=function(){t.value=document.documentElement.clientHeight-94.5+"px;"}}),(o,B)=>{const l=m("loading");return _((a(),p("div",{style:g("height:"+n(t))},[f("iframe",{src:n(s),frameborder:"no",style:{width:"100%",height:"100%"},scrolling:"auto"},null,8,x)],4)),[[l,n(r)]])}}},k={__name:"index",setup(i){var t;const e=c(((t=window.APP_CONFIG)==null?void 0:t.VITE_BASE_URL)+"/swagger-ui/index.html");return(r,s)=>(a(),h(n(w),{src:n(e),"onUpdate:src":s[0]||(s[0]=o=>v(e)?e.value=o:null)},null,8,["src"]))}};export{k as default}; diff --git a/airport/assets/index.c72073c7.css b/airport/assets/index.c72073c7.css new file mode 100644 index 0000000..7f2071f --- /dev/null +++ b/airport/assets/index.c72073c7.css @@ -0,0 +1 @@ +.app-container[data-v-bb9d9180]{padding:20px;background-color:#292c38;color:#fff;min-height:100%;border-radius:10px}.user-container[data-v-bb9d9180]{background-color:#292c38;border-radius:4px;height:calc(100vh - 180px)}.search-area[data-v-bb9d9180]{display:flex;align-items:center;margin-bottom:20px}.search-area .search-input[data-v-bb9d9180]{width:250px;margin-right:10px}.search-area .search-select[data-v-bb9d9180]{width:150px;margin-right:10px}.search-area .search-buttons[data-v-bb9d9180]{margin-right:20px;display:flex;gap:10px}.search-area .action-buttons[data-v-bb9d9180]{margin-left:auto;display:flex}[data-v-bb9d9180] .el-input__wrapper:hover{box-shadow:none!important}[data-v-bb9d9180] .el-select{border:none!important;width:140px!important;--el-border-color-hover: #343744!important;--el-border-color: #343744!important}[data-v-bb9d9180] .el-select__wrapper.is-focused{box-shadow:none!important}[data-v-bb9d9180] .el-select__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;width:140px;font-size:15px;border:none!important}[data-v-bb9d9180] .el-input__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;border:none!important;box-shadow:none!important}[data-v-bb9d9180] .el-select__placeholder{color:#96a0b5!important}.custom-table[data-v-bb9d9180]{background-color:#292c38!important;color:#fff;margin-bottom:20px;border-radius:4px;overflow:hidden}.custom-table[data-v-bb9d9180] .el-loading-mask{background-color:#292c38b3!important}.custom-table[data-v-bb9d9180] .el-table__empty-block{background-color:#292c38!important}.custom-table[data-v-bb9d9180] .el-table__empty-text{color:#96a0b5!important}.custom-table[data-v-bb9d9180] .el-table,.custom-table[data-v-bb9d9180] .el-table__body{background-color:#292c38!important}.custom-table .avatar-box[data-v-bb9d9180]{width:50px;height:50px;border-radius:6px}.custom-table .avatar-box img[data-v-bb9d9180]{width:100%;height:100%;object-fit:cover;border-radius:6px}.custom-table[data-v-bb9d9180] .el-table__inner-wrapper:before{display:none}.custom-table[data-v-bb9d9180] .el-table__header{border-top-left-radius:4px;border-top-right-radius:4px;overflow:hidden}.custom-table[data-v-bb9d9180] .el-table__header-wrapper th{background-color:#343744!important;color:#96a0b5!important;font-weight:400;border-bottom:none}.custom-table[data-v-bb9d9180] .el-table__header-wrapper tr th.el-table__cell:first-child,.custom-table[data-v-bb9d9180] .el-table__header-wrapper tr th.el-table__cell:first-child .cell{border-top-left-radius:6px}.custom-table[data-v-bb9d9180] .el-table__header-wrapper tr th.el-table__cell:last-child{border-top-right-radius:4px}.custom-table[data-v-bb9d9180] .el-table__header-wrapper tr th.el-table__cell:last-child .cell{border-top-right-radius:4px}.custom-table[data-v-bb9d9180] .el-table__header-wrapper .el-table__header th.el-table__cell{background-color:#343744!important;color:#96a0b5}.custom-table[data-v-bb9d9180] .el-table__header-wrapper tr{background-color:#343744!important}.custom-table[data-v-bb9d9180] .el-table__body-wrapper td{height:68px!important;background-color:#292c38;color:#fff;border-bottom:1px solid #4C4F5F}.custom-table[data-v-bb9d9180] .el-table__body tr:hover>td{background:#2B3B5A!important}.custom-table[data-v-bb9d9180] .el-button--link{border:none;background:transparent;color:#347ae2;padding:0;margin:0 5px}.custom-table[data-v-bb9d9180] .el-button.is-text{background-color:transparent!important;border-color:transparent;color:#347ae2}.custom-table[data-v-bb9d9180] .el-button.is-text:hover,.custom-table[data-v-bb9d9180] .el-button.is-text:focus,.custom-table[data-v-bb9d9180] .el-button.is-text:active{background-color:transparent!important;color:#347ae2}.custom-table[data-v-bb9d9180] .el-button.el-button--primary.is-text,.custom-table[data-v-bb9d9180] .el-button.el-button--primary.is-text:hover,.custom-table[data-v-bb9d9180] .el-table__body tr:hover .el-button--link.is-text{background-color:transparent!important;color:#347ae2}.status-normal[data-v-bb9d9180]{color:#67c23a}.status-disabled[data-v-bb9d9180]{color:#e6a23c}[data-v-bb9d9180] .el-input__wrapper{background-color:#292c38;box-shadow:0 0 0 1px #565c70 inset!important}[data-v-bb9d9180] .el-input__wrapper .el-input__inner{color:#fff}[data-v-bb9d9180] .el-input__count,[data-v-bb9d9180] .el-input__count .el-input__count-inner{background:transparent!important;color:#c0c4cc!important}[data-v-bb9d9180] .el-radio__label{color:#c8c9cc}[data-v-bb9d9180] .el-radio.is-checked .el-radio__label{color:#409eff}[data-v-bb9d9180] .el-button{background-color:#292c38;border-color:#4c4f5f;color:#fff}[data-v-bb9d9180] .el-button.el-button--primary{background-color:#409eff;border-color:#409eff}[data-v-bb9d9180] .el-select .el-input__wrapper{background-color:#292c38;box-shadow:0 0 0 1px #565c70 inset!important}.avatar-uploader-box[data-v-bb9d9180]{display:flex;justify-content:flex-start;margin-top:8px}.avatar-uploader[data-v-bb9d9180]{text-align:center}.avatar-preview[data-v-bb9d9180]{position:relative;width:120px;height:120px;border-radius:0;overflow:visible}.avatar-preview .avatar[data-v-bb9d9180]{width:100%;height:100%;object-fit:cover;border-radius:0;border:1px solid #343744}.avatar-preview .avatar-count[data-v-bb9d9180]{position:absolute;top:-5px;right:-30px;font-size:14px;color:#ffffffd9;z-index:1}.avatar-preview .avatar-replace[data-v-bb9d9180]{position:absolute;top:-8px;right:-8px;width:20px;height:20px;background-color:#00000080;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer;opacity:1;z-index:2}.avatar-preview .avatar-replace .el-icon[data-v-bb9d9180]{font-size:14px;color:#fff}.avatar-upload-placeholder[data-v-bb9d9180]{width:120px;height:120px;border:1px dashed #4C4F5F;border-radius:0;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:all .3s;position:relative;background-color:transparent;overflow:visible}.avatar-upload-placeholder[data-v-bb9d9180]:hover{border-color:#409eff}.avatar-upload-placeholder .avatar-uploader-icon[data-v-bb9d9180]{font-size:28px;color:#8c939d}.avatar-upload-placeholder .avatar-count[data-v-bb9d9180]{position:absolute;top:-5px;right:-30px;font-size:14px;color:#ffffffd9;z-index:1}[data-v-bb9d9180] .el-dialog .el-form-item__label{color:#96a0b5!important}[data-v-bb9d9180] .el-dialog .el-input__wrapper{background-color:#292c38!important;box-shadow:0 0 0 1px #565c70 inset!important}[data-v-bb9d9180] .el-dialog .el-input__wrapper .el-input__inner{color:#fff!important}[data-v-bb9d9180] .el-dialog .el-input__count,[data-v-bb9d9180] .el-dialog .el-input__count .el-input__count-inner{background:transparent!important;color:#c0c4cc!important}[data-v-bb9d9180] .el-dialog .el-radio__label{color:#c8c9cc!important}[data-v-bb9d9180] .el-dialog .el-radio.is-checked .el-radio__label{color:#409eff!important}[data-v-bb9d9180] .el-dialog .el-select .el-input__wrapper{background-color:#292c38!important;box-shadow:0 0 0 1px #565c70 inset!important}.search-area[data-v-bb9d9180] .el-input__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;border:none!important;box-shadow:none!important}[data-v-bb9d9180] .el-table{--el-table-bg-color: #292c38 !important;--el-table-tr-bg-color: #292c38 !important;--el-table-border-color: #4C4F5F !important;--el-table-header-bg-color: #343744 !important;--el-table-row-hover-bg-color: #2B3B5A !important}[data-v-bb9d9180] .el-table:before{display:none}.import-dialog[data-v-bb9d9180] .el-dialog__header{margin-right:0;padding:20px;border-bottom:1px solid #4C4F5F}.import-dialog[data-v-bb9d9180] .el-dialog__body{padding:20px}.import-dialog[data-v-bb9d9180] .el-dialog__footer{padding:20px;border-top:1px solid #4C4F5F}.import-dialog .import-title[data-v-bb9d9180]{font-size:14px;color:#96a0b5;margin-bottom:20px}.import-dialog .import-upload[data-v-bb9d9180] .el-upload-dragger{width:100%;height:200px;background-color:#292c38;border:1px dashed #4C4F5F;border-radius:8px;display:flex;justify-content:center;align-items:center}.import-dialog .import-upload[data-v-bb9d9180] .el-upload-dragger:hover{border-color:#347ae2}.import-dialog .import-upload .upload-content[data-v-bb9d9180]{display:flex;flex-direction:column;align-items:center;color:#96a0b5}.import-dialog .import-upload .upload-content .upload-icon[data-v-bb9d9180]{font-size:40px;color:#96a0b5;margin-bottom:10px}.import-dialog .import-upload .upload-content .upload-text[data-v-bb9d9180]{font-size:14px;margin-bottom:10px}.import-dialog .import-upload .upload-content .upload-link[data-v-bb9d9180]{display:flex;align-items:center;color:#347ae2;cursor:pointer}.import-dialog .import-upload .upload-content .upload-link .upload-icon-small[data-v-bb9d9180]{font-size:16px;margin-right:4px}.import-dialog .import-upload .upload-content .upload-link .click-upload[data-v-bb9d9180]{font-size:14px}.import-dialog .import-footer[data-v-bb9d9180]{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.import-dialog .import-footer .footer-left[data-v-bb9d9180] .el-checkbox__label{color:#96a0b5}.import-dialog .import-footer .footer-right[data-v-bb9d9180]{display:flex;align-items:center;gap:10px}.import-dialog .import-footer .footer-right .file-format[data-v-bb9d9180]{color:#96a0b5;font-size:12px}.import-dialog .import-footer .footer-right .download-link[data-v-bb9d9180]{font-size:12px}.import-dialog .dialog-footer[data-v-bb9d9180]{display:flex;justify-content:flex-end;gap:10px}.full-width-select[data-v-bb9d9180],[data-v-bb9d9180] .full-width-select,[data-v-bb9d9180] .full-width-select .el-input,[data-v-bb9d9180] .full-width-select .el-input__wrapper{width:100%!important} diff --git a/airport/assets/index.c72073c7.css.gz b/airport/assets/index.c72073c7.css.gz new file mode 100644 index 0000000..36e4fc9 Binary files /dev/null and b/airport/assets/index.c72073c7.css.gz differ diff --git a/airport/assets/index.cbe47255.js b/airport/assets/index.cbe47255.js new file mode 100644 index 0000000..2076efb --- /dev/null +++ b/airport/assets/index.cbe47255.js @@ -0,0 +1 @@ +import G from"./userAvatar.a6e65e8c.js";import V from"./userInfo.139acdfa.js";import N from"./resetPwd.d6a4bddd.js";import{b as w}from"./user.72b5bfe4.js";import{Y as C,r as k,a6 as B,d as i,o as f,c as h,e as s,w as l,l as e,f as t,m as c,x as a,j as P,a9 as T}from"./index.79832097.js";const U={class:"app-container"},j=e("div",{class:"clearfix"},[e("span",null,"\u4E2A\u4EBA\u4FE1\u606F")],-1),y={class:"text-center"},$={class:"list-group list-group-striped"},A={class:"list-group-item"},D={class:"pull-right"},E={class:"list-group-item"},O={class:"pull-right"},R={class:"list-group-item"},S={class:"pull-right"},Y={class:"list-group-item"},q={key:0,class:"pull-right"},z={class:"list-group-item"},F={class:"pull-right"},H={class:"list-group-item"},I={class:"pull-right"},J=e("div",{class:"clearfix"},[e("span",null,"\u57FA\u672C\u8D44\u6599")],-1),K=C({name:"Profile"}),ee=Object.assign(K,{setup(L){const _=k("userinfo"),o=B({user:{},roleGroup:{},postGroup:{}});function g(){w().then(n=>{o.user=n.data,o.roleGroup=n.roleGroup,o.postGroup=n.postGroup})}return g(),(n,u)=>{const r=i("svg-icon"),d=i("el-card"),p=i("el-col"),m=i("el-tab-pane"),v=i("el-tabs"),b=i("el-row");return f(),h("div",U,[s(b,{gutter:20},{default:l(()=>[s(p,{span:6,xs:24},{default:l(()=>[s(d,{class:"box-card"},{header:l(()=>[j]),default:l(()=>[e("div",null,[e("div",y,[s(t(G),{user:t(o).user},null,8,["user"])]),e("ul",$,[e("li",A,[s(r,{"icon-class":"user"}),c("\u7528\u6237\u540D\u79F0 "),e("div",D,a(t(o).user.userName),1)]),e("li",E,[s(r,{"icon-class":"phone"}),c("\u624B\u673A\u53F7\u7801 "),e("div",O,a(t(o).user.phonenumber),1)]),e("li",R,[s(r,{"icon-class":"email"}),c("\u7528\u6237\u90AE\u7BB1 "),e("div",S,a(t(o).user.email),1)]),e("li",Y,[s(r,{"icon-class":"tree"}),c("\u6240\u5C5E\u90E8\u95E8 "),t(o).user.dept?(f(),h("div",q,a(t(o).user.dept.deptName)+" / "+a(t(o).postGroup),1)):P("",!0)]),e("li",z,[s(r,{"icon-class":"peoples"}),c("\u6240\u5C5E\u89D2\u8272 "),e("div",F,a(t(o).roleGroup),1)]),e("li",H,[s(r,{"icon-class":"date"}),c("\u521B\u5EFA\u65E5\u671F "),e("div",I,a(t(o).user.createTime),1)])])])]),_:1})]),_:1}),s(p,{span:18,xs:24},{default:l(()=>[s(d,null,{header:l(()=>[J]),default:l(()=>[s(v,{modelValue:t(_),"onUpdate:modelValue":u[0]||(u[0]=x=>T(_)?_.value=x:null)},{default:l(()=>[s(m,{label:"\u57FA\u672C\u8D44\u6599",name:"userinfo"},{default:l(()=>[s(t(V),{user:t(o).user},null,8,["user"])]),_:1}),s(m,{label:"\u4FEE\u6539\u5BC6\u7801",name:"resetPwd"},{default:l(()=>[s(t(N))]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})])}}});export{ee as default}; diff --git a/airport/assets/index.cbe47255.js.gz b/airport/assets/index.cbe47255.js.gz new file mode 100644 index 0000000..704c784 Binary files /dev/null and b/airport/assets/index.cbe47255.js.gz differ diff --git a/airport/assets/index.cd59a76b.css b/airport/assets/index.cd59a76b.css new file mode 100644 index 0000000..7596823 --- /dev/null +++ b/airport/assets/index.cd59a76b.css @@ -0,0 +1 @@ +.app-container[data-v-3bac3967]{padding:20px;background-color:#292c38;color:#fff;min-height:100%;border-radius:10px}.type-container[data-v-3bac3967]{background-color:#292c38;border-radius:4px;height:calc(100vh - 180px);overflow-y:auto}.tabs-container[data-v-3bac3967]{position:relative;margin-bottom:20px;display:flex;align-items:center;gap:10px}.demo-tabs[data-v-3bac3967]{margin-bottom:0;flex:1}.demo-tabs[data-v-3bac3967] .el-tabs__header{margin-bottom:0}.demo-tabs[data-v-3bac3967] .el-tabs__item{color:#fff!important}.demo-tabs[data-v-3bac3967] .el-tabs__nav-wrap:after{height:1px;background-color:#4c4f5f}.demo-tabs[data-v-3bac3967] .el-tabs__item.is-active,.demo-tabs[data-v-3bac3967] .el-tabs__item:hover{color:#347ae2!important}.demo-tabs[data-v-3bac3967] .tab-label-text{margin-right:4px}.demo-tabs[data-v-3bac3967] .tab-delete-icon{opacity:0;color:#fff;font-size:14px;font-weight:700;cursor:pointer;transition:opacity .3s ease;margin-left:4px;display:inline-flex;align-items:center;justify-content:center}.demo-tabs[data-v-3bac3967] .tab-delete-icon .delete-icon-img{width:12px;height:12px;vertical-align:middle}.demo-tabs[data-v-3bac3967] .tab-delete-icon:hover{color:#fff}.demo-tabs[data-v-3bac3967] .el-tabs__item.is-active .tab-delete-icon,.demo-tabs[data-v-3bac3967] .el-tabs__item:hover .tab-delete-icon{opacity:1}.add-tab-btn[data-v-3bac3967]{position:absolute;right:0;top:10px;width:20px;height:20px;cursor:pointer;vertical-align:middle;transition:filter .2s;filter:brightness(1)}.add-tab-btn[data-v-3bac3967]:hover{filter:brightness(1.3)}.search-action-bar[data-v-3bac3967]{display:flex;align-items:center;margin-bottom:20px}.search-action-bar .search-area[data-v-3bac3967]{display:flex;gap:10px}.search-action-bar .search-area .search-input[data-v-3bac3967]{width:250px}.search-action-bar .search-area .search-btn[data-v-3bac3967],.search-action-bar .search-area .reset-btn[data-v-3bac3967]{border-radius:8px;font-size:15px;height:36px;min-width:80px}.search-action-bar .search-area .search-btn[data-v-3bac3967]{background:#347ae2;color:#fff;border:none}.search-action-bar .search-area .reset-btn[data-v-3bac3967]{background:#343744;color:#96a0b5;border:none}.search-action-bar .action-buttons[data-v-3bac3967]{margin-left:auto;display:flex;gap:10px}.search-action-bar .action-buttons .add-btn[data-v-3bac3967],.search-action-bar .action-buttons .delete-btn[data-v-3bac3967]{border-radius:8px;font-size:15px;height:36px;min-width:80px}.search-action-bar .action-buttons .add-btn[data-v-3bac3967]{background:#347ae2;color:#fff;border:none}.search-action-bar .action-buttons .delete-btn[data-v-3bac3967]{background:#343744;color:#96a0b5;border:none}.custom-table[data-v-3bac3967]{background-color:#292c38!important;color:#fff;margin-bottom:20px;border-radius:4px;overflow:hidden}.custom-table[data-v-3bac3967] .el-loading-mask{background-color:#292c38b3!important}.custom-table[data-v-3bac3967] .el-table__empty-block{background-color:#292c38!important}.custom-table[data-v-3bac3967] .el-table__empty-text{color:#96a0b5!important}.custom-table[data-v-3bac3967] .el-table,.custom-table[data-v-3bac3967] .el-table__body{background-color:#292c38!important}.custom-table[data-v-3bac3967] .el-table__inner-wrapper:before{display:none}.custom-table[data-v-3bac3967] .el-table__header{border-top-left-radius:4px;border-top-right-radius:4px;overflow:hidden}.custom-table[data-v-3bac3967] .el-table__header-wrapper th{background-color:#343744!important;color:#96a0b5!important;font-weight:400;border-bottom:none}.custom-table[data-v-3bac3967] .el-table__header-wrapper tr th.el-table__cell:first-child,.custom-table[data-v-3bac3967] .el-table__header-wrapper tr th.el-table__cell:first-child .cell{border-top-left-radius:6px}.custom-table[data-v-3bac3967] .el-table__header-wrapper tr th.el-table__cell:last-child{border-top-right-radius:4px}.custom-table[data-v-3bac3967] .el-table__header-wrapper tr th.el-table__cell:last-child .cell{border-top-right-radius:4px}.custom-table[data-v-3bac3967] .el-table__header-wrapper .el-table__header th.el-table__cell{background-color:#343744!important;color:#96a0b5}.custom-table[data-v-3bac3967] .el-table__header-wrapper tr{background-color:#343744!important}.custom-table[data-v-3bac3967] .el-table__body-wrapper td{height:68px!important;background-color:#292c38;color:#fff;border-bottom:1px solid #4c4f5f}.custom-table[data-v-3bac3967] .el-table__body tr:hover>td{background:#2b3b5a!important}.custom-table[data-v-3bac3967] .el-button--link{border:none;background:transparent;color:#347ae2;padding:0;margin:0 5px}.custom-table[data-v-3bac3967] .el-button.is-text{background-color:transparent!important;border-color:transparent;color:#347ae2}.custom-table[data-v-3bac3967] .el-button.is-text:hover,.custom-table[data-v-3bac3967] .el-button.is-text:focus,.custom-table[data-v-3bac3967] .el-button.is-text:active{background-color:transparent!important;color:#347ae2}.custom-table[data-v-3bac3967] .el-button.el-button--primary.is-text,.custom-table[data-v-3bac3967] .el-button.el-button--primary.is-text:hover,.custom-table[data-v-3bac3967] .el-table__body tr:hover .el-button--link.is-text{background-color:transparent!important;color:#347ae2} diff --git a/airport/assets/index.cd59a76b.css.gz b/airport/assets/index.cd59a76b.css.gz new file mode 100644 index 0000000..6561431 Binary files /dev/null and b/airport/assets/index.cd59a76b.css.gz differ diff --git a/airport/assets/index.d1eef18d.css b/airport/assets/index.d1eef18d.css new file mode 100644 index 0000000..d8e8854 --- /dev/null +++ b/airport/assets/index.d1eef18d.css @@ -0,0 +1 @@ +.app-container[data-v-4923134e]{padding:20px;background-color:#292c38;color:#fff;min-height:100%;border-radius:10px}.user-container[data-v-4923134e]{background-color:#292c38;border-radius:4px;height:calc(100vh - 180px);overflow-y:auto}.tabs-view[data-v-4923134e]{display:flex;border-bottom:1px solid #4c4f5f;margin-bottom:20px}.tabs-view .tab-item[data-v-4923134e]{padding:10px 20px;cursor:pointer;color:#96a0b5;position:relative;margin-right:20px}.tabs-view .tab-item.active[data-v-4923134e]{color:#fff;font-weight:700}.tabs-view .tab-item.active[data-v-4923134e]:after{content:"";position:absolute;bottom:-1px;left:0;width:100%;height:2px;background-color:#409eff}.search-area[data-v-4923134e]{display:flex;align-items:center;margin-bottom:20px}.search-area .search-input[data-v-4923134e]{width:250px;margin-right:10px}.search-area .search-select[data-v-4923134e]{width:150px;margin-right:10px}.search-area .search-buttons[data-v-4923134e]{margin-right:20px;display:flex;gap:10px}.search-area .action-buttons[data-v-4923134e]{margin-left:auto;display:flex}[data-v-4923134e] .el-input__wrapper:hover{box-shadow:none!important}[data-v-4923134e] .el-select{border:none!important;width:140px!important;--el-border-color-hover: #343744!important;--el-border-color: #343744!important}[data-v-4923134e] .el-select__wrapper.is-focused{box-shadow:none!important}[data-v-4923134e] .el-select__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;width:140px;font-size:15px;border:none!important}[data-v-4923134e] .el-input__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;border:none!important;box-shadow:none!important}[data-v-4923134e] .el-select__placeholder{color:#96a0b5!important}.avatar-box[data-v-4923134e]{width:50px;height:50px;object-fit:cover;overflow:hidden;border-radius:8px}.custom-table[data-v-4923134e]{background-color:#292c38!important;color:#fff;margin-bottom:20px;border-radius:4px;overflow:hidden}.custom-table[data-v-4923134e] .el-loading-mask{background-color:#292c38b3!important}.custom-table[data-v-4923134e] .el-table__empty-block{background-color:#292c38!important}.custom-table[data-v-4923134e] .el-table__empty-text{color:#96a0b5!important}.custom-table[data-v-4923134e] .el-table,.custom-table[data-v-4923134e] .el-table__body{background-color:#292c38!important}.custom-table[data-v-4923134e] .el-table__inner-wrapper:before{display:none}.custom-table[data-v-4923134e] .el-table__header{border-top-left-radius:4px;border-top-right-radius:4px;overflow:hidden}.custom-table[data-v-4923134e] .el-table__header-wrapper th{background-color:#343744!important;color:#96a0b5!important;font-weight:400;border-bottom:none}.custom-table[data-v-4923134e] .el-table__header-wrapper tr th.el-table__cell:first-child,.custom-table[data-v-4923134e] .el-table__header-wrapper tr th.el-table__cell:first-child .cell{border-top-left-radius:6px}.custom-table[data-v-4923134e] .el-table__header-wrapper tr th.el-table__cell:last-child{border-top-right-radius:4px}.custom-table[data-v-4923134e] .el-table__header-wrapper tr th.el-table__cell:last-child .cell{border-top-right-radius:4px}.custom-table[data-v-4923134e] .el-table__header-wrapper .el-table__header th.el-table__cell{background-color:#343744!important;color:#96a0b5}.custom-table[data-v-4923134e] .el-table__header-wrapper tr{background-color:#343744!important}.custom-table[data-v-4923134e] .el-table__body-wrapper td{height:68px!important;background-color:#292c38;color:#fff;border-bottom:1px solid #4C4F5F}.custom-table[data-v-4923134e] .el-table__body tr:hover>td{background:#2B3B5A!important}.custom-table[data-v-4923134e] .el-button--link{border:none;background:transparent;color:#347ae2;padding:0;margin:0 5px}.custom-table[data-v-4923134e] .el-button.is-text{background-color:transparent!important;border-color:transparent;color:#347ae2}.custom-table[data-v-4923134e] .el-button.is-text:hover,.custom-table[data-v-4923134e] .el-button.is-text:focus,.custom-table[data-v-4923134e] .el-button.is-text:active{background-color:transparent!important;color:#347ae2}.custom-table[data-v-4923134e] .el-button.el-button--primary.is-text,.custom-table[data-v-4923134e] .el-button.el-button--primary.is-text:hover,.custom-table[data-v-4923134e] .el-table__body tr:hover .el-button--link.is-text{background-color:transparent!important;color:#347ae2}.status-normal[data-v-4923134e]{color:#67c23a}.status-disabled[data-v-4923134e]{color:#e6a23c}[data-v-4923134e] .el-input__wrapper{background-color:#292c38;box-shadow:0 0 0 1px #565c70 inset!important}[data-v-4923134e] .el-input__wrapper .el-input__inner{color:#fff}[data-v-4923134e] .el-input__count,[data-v-4923134e] .el-input__count .el-input__count-inner{background:transparent!important;color:#c0c4cc!important}[data-v-4923134e] .el-radio__label{color:#c8c9cc}[data-v-4923134e] .el-radio.is-checked .el-radio__label{color:#409eff}[data-v-4923134e] .el-button{background-color:#292c38;border-color:#4c4f5f;color:#fff}[data-v-4923134e] .el-button.el-button--primary{background-color:#409eff;border-color:#409eff}[data-v-4923134e] .el-select .el-input__wrapper{background-color:#292c38;box-shadow:0 0 0 1px #565c70 inset!important}[data-v-4923134e] .el-dialog .el-form-item__label{color:#96a0b5!important}[data-v-4923134e] .el-dialog .el-radio__label{color:#c8c9cc!important}[data-v-4923134e] .el-dialog .el-radio.is-checked .el-radio__label{color:#409eff!important}.search-area[data-v-4923134e] .el-input__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;border:none!important;box-shadow:none!important}[data-v-4923134e] .el-table{--el-table-bg-color: #292c38 !important;--el-table-tr-bg-color: #292c38 !important;--el-table-border-color: #4C4F5F !important;--el-table-header-bg-color: #343744 !important;--el-table-row-hover-bg-color: #2B3B5A !important}[data-v-4923134e] .el-table:before{display:none}.import-dialog[data-v-4923134e] .el-dialog__header{margin-right:0;padding:20px;border-bottom:1px solid #4C4F5F}.import-dialog[data-v-4923134e] .el-dialog__body{padding:20px}.import-dialog[data-v-4923134e] .el-dialog__footer{padding:20px;border-top:1px solid #4C4F5F}.import-dialog .import-title[data-v-4923134e]{font-size:14px;color:#96a0b5;margin-bottom:20px}.import-dialog .import-upload[data-v-4923134e] .el-upload-dragger{width:100%;height:200px;background-color:#292c38;border:1px dashed #4C4F5F;border-radius:8px;display:flex;justify-content:center;align-items:center}.import-dialog .import-upload[data-v-4923134e] .el-upload-dragger:hover{border-color:#347ae2}.import-dialog .import-upload .upload-content[data-v-4923134e]{display:flex;flex-direction:column;align-items:center;color:#96a0b5}.import-dialog .import-upload .upload-content .upload-icon[data-v-4923134e]{font-size:40px;color:#96a0b5;margin-bottom:10px}.import-dialog .import-upload .upload-content .upload-text[data-v-4923134e]{font-size:14px;margin-bottom:10px}.import-dialog .import-upload .upload-content .upload-link[data-v-4923134e]{display:flex;align-items:center;color:#347ae2;cursor:pointer}.import-dialog .import-upload .upload-content .upload-link .upload-icon-small[data-v-4923134e]{font-size:16px;margin-right:4px}.import-dialog .import-upload .upload-content .upload-link .click-upload[data-v-4923134e]{font-size:14px}.import-dialog .import-footer[data-v-4923134e]{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.import-dialog .import-footer .footer-left[data-v-4923134e] .el-checkbox__label{color:#96a0b5}.import-dialog .import-footer .footer-right[data-v-4923134e]{display:flex;align-items:center;gap:10px}.import-dialog .import-footer .footer-right .file-format[data-v-4923134e]{color:#96a0b5;font-size:12px}.import-dialog .import-footer .footer-right .download-link[data-v-4923134e]{font-size:12px}.import-dialog .dialog-footer[data-v-4923134e]{display:flex;justify-content:flex-end;gap:10px}.avatar-uploader-box[data-v-4923134e]{display:flex;justify-content:flex-start;margin-top:8px}.avatar-uploader[data-v-4923134e]{text-align:center}.avatar-preview[data-v-4923134e]{position:relative;width:120px;height:120px;border-radius:0;overflow:visible}.avatar-preview .avatar[data-v-4923134e]{width:100%;height:100%;object-fit:cover;border-radius:0;border:1px solid #343744}.avatar-preview .avatar-count[data-v-4923134e]{position:absolute;top:-5px;right:-30px;font-size:14px;color:#ffffffd9;z-index:1}.avatar-preview .avatar-replace[data-v-4923134e]{position:absolute;top:-8px;right:-8px;width:20px;height:20px;background-color:#00000080;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer;opacity:1;z-index:2}.avatar-preview .avatar-replace .el-icon[data-v-4923134e]{font-size:14px;color:#fff}.avatar-upload-placeholder[data-v-4923134e]{width:120px;height:120px;border:1px dashed #4C4F5F;border-radius:0;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:all .3s;position:relative;background-color:transparent;overflow:visible}.avatar-upload-placeholder[data-v-4923134e]:hover{border-color:#409eff}.avatar-upload-placeholder .avatar-uploader-icon[data-v-4923134e]{font-size:28px;color:#8c939d}.avatar-upload-placeholder .avatar-count[data-v-4923134e]{position:absolute;top:-5px;right:-30px;font-size:14px;color:#ffffffd9;z-index:1} diff --git a/airport/assets/index.d1eef18d.css.gz b/airport/assets/index.d1eef18d.css.gz new file mode 100644 index 0000000..7f33644 Binary files /dev/null and b/airport/assets/index.d1eef18d.css.gz differ diff --git a/airport/assets/index.d35821d2.css b/airport/assets/index.d35821d2.css new file mode 100644 index 0000000..816c76d --- /dev/null +++ b/airport/assets/index.d35821d2.css @@ -0,0 +1 @@ +.app-container[data-v-849a2489]{padding:20px;background-color:#292c38;color:#fff;height:calc(100vh - 180px);overflow-y:auto;border-radius:10px} diff --git a/airport/assets/index.dc5226e1.css b/airport/assets/index.dc5226e1.css new file mode 100644 index 0000000..c9c9896 --- /dev/null +++ b/airport/assets/index.dc5226e1.css @@ -0,0 +1 @@ +.app-container[data-v-27579c90]{padding:20px;background-color:#292c38;color:#fff;height:calc(100vh - 180px);overflow-y:auto;border-radius:10px} diff --git a/airport/assets/index.e43ebe8d.js b/airport/assets/index.e43ebe8d.js new file mode 100644 index 0000000..5f53578 --- /dev/null +++ b/airport/assets/index.e43ebe8d.js @@ -0,0 +1 @@ +import{L,_ as fe,r as p,a6 as me,ae as pe,d as c,a8 as R,o as _,c as B,l as A,J as b,T as K,f as i,e as t,i as F,w as n,k as w,a9 as ve,s as ge,m as s,x as E,H as _e,I as he}from"./index.79832097.js";import{l as be}from"./intersection.55727948.js";function Ie(){return L({url:"/traffic-light/devices/list",method:"get"})}function z(v){return L({url:"/traffic-light/devices/"+v,method:"get"})}function ye(v){const{deviceId:d,...h}=v;return L({url:`/traffic-light/devices/${d}`,method:"put",data:h})}function Ve(v){return L({url:"/traffic-light/devices",method:"post",data:v})}function we(v){return L({url:"/road/trafficLight/"+v,method:"delete"})}const Ae={class:"app-container"},Le={class:"search-action-bar"},xe={class:"search-area"},Ne={class:"action-buttons"},ke={class:"dialog-footer"},Ce={__name:"index",setup(v){const{proxy:d}=ge();d.useDict("sys_normal_disable");const h=p([]),g=p(!1),x=p(!0),Q=p(!0),T=p([]),H=p(!0),J=p(!0),I=p(0),U=p(""),N=p([]);async function j(){try{const e=await be(),l=Array.isArray(e)?e:Array.isArray(e==null?void 0:e.rows)?e.rows:Array.isArray(e==null?void 0:e.data)?e.data:[];N.value=l.map(r=>({label:r.intersectionName||String(r.intersectionId),value:r.intersectionId}))}catch{N.value=[]}}const G=me({form:{},queryParams:{pageNum:1,pageSize:10,deviceId:void 0,intersectionId:void 0},rules:{deviceName:[{required:!0,message:"\u8BBE\u5907\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],deviceId:[{required:!0,message:"\u8BBE\u5907\u7F16\u53F7\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],intersectionId:[{required:!0,message:"\u8DEF\u53E3ID\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}}),{queryParams:f,form:o,rules:M}=pe(G);function y(){x.value=!0,Ie().then(e=>{console.log("\u83B7\u53D6\u7EA2\u7EFF\u706F\u5217\u8868\u6570\u636E:",e),Array.isArray(e)?(h.value=e,I.value=e.length):e.rows&&Array.isArray(e.rows)?(h.value=e.rows,I.value=e.total||e.rows.length):(h.value=[],I.value=0),x.value=!1}).catch(e=>{console.error("\u83B7\u53D6\u7EA2\u7EFF\u706F\u5217\u8868\u5931\u8D25:",e),h.value=[],I.value=0,x.value=!1})}function W(){g.value=!1,S()}function S(){o.value={id:void 0,deviceName:void 0,deviceId:void 0,ipAddress:void 0,intersectionId:void 0,isOnline:!1,isActive:!0,isEdit:!1},d.resetForm("trafficLightRef")}function k(){f.value.pageNum=1,y()}function X(){d.resetForm("queryRef"),k()}function Y(e){T.value=e.map(l=>l.deviceId),H.value=e.length!==1,J.value=!e.length}function Z(){S(),o.value.isEdit=!1,g.value=!0,U.value="\u6DFB\u52A0\u7EA2\u7EFF\u706F",N.value.length||j()}function ee(e){if(S(),!e||!e.deviceId){d.$modal.msgError("\u8BF7\u9009\u62E9\u4E00\u4E2A\u6709\u6548\u7684\u8BBE\u5907\u8FDB\u884C\u4FEE\u6539");return}const l=e.deviceId;z(l).then(r=>{console.log("\u83B7\u53D6\u8BBE\u5907\u8BE6\u60C5\u6570\u636E:",r),o.value=r,o.value.isEdit=!0,g.value=!0,U.value="\u4FEE\u6539\u7EA2\u7EFF\u706F"}).catch(r=>{console.error("\u83B7\u53D6\u8BBE\u5907\u8BE6\u60C5\u5931\u8D25:",r),d.$modal.msgError("\u83B7\u53D6\u8BBE\u5907\u8BE6\u60C5\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5")})}function te(){d.$refs.trafficLightRef.validate(e=>{if(e)if(o.value.isEdit){const l={deviceName:o.value.deviceName,intersectionId:o.value.intersectionId};ye({...l,deviceId:o.value.deviceId}).then(r=>{d.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),g.value=!1,y()}).catch(r=>{console.error("\u4FEE\u6539\u7EA2\u7EFF\u706F\u5931\u8D25:",r),d.$modal.msgError("\u4FEE\u6539\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5")})}else{const l={deviceId:o.value.deviceId,deviceName:o.value.deviceName,intersectionId:o.value.intersectionId};le(o.value.deviceId).then(r=>{if(!r){d.$modal.msgError("\u8BBE\u5907\u7F16\u53F7\u5DF2\u5B58\u5728");return}Ve(l).then(u=>{d.$modal.msgSuccess("\u65B0\u589E\u6210\u529F"),g.value=!1,y()}).catch(u=>{console.error("\u65B0\u589E\u7EA2\u7EFF\u706F\u5931\u8D25:",u),d.$modal.msgError("\u65B0\u589E\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5")})})}})}async function le(e){try{return await z(e),!1}catch{return!0}}function ae(e){const l=e.deviceId||T.value;d.$modal.confirm('\u662F\u5426\u786E\u8BA4\u5220\u9664\u7EA2\u7EFF\u706F\u7F16\u53F7\u4E3A"'+l+'"\u7684\u6570\u636E\u9879\uFF1F').then(function(){return we(l)}).then(()=>{y(),d.$modal.msgSuccess("\u5220\u9664\u6210\u529F")}).catch(()=>{})}function ne(){d.download("road/trafficLight/export",{...f.value},`trafficLight_${new Date().getTime()}.xlsx`)}return y(),(e,l)=>{const r=c("el-input"),u=c("el-button"),m=c("el-table-column"),q=c("el-tag"),ie=c("el-table"),oe=c("pagination"),V=c("el-form-item"),re=c("el-option"),de=c("el-select"),C=c("el-radio"),O=c("el-radio-group"),se=c("el-form"),ce=c("el-dialog"),D=R("hasPermi"),ue=R("loading");return _(),B("div",Ae,[A("div",Le,[b(A("div",xe,[t(r,{modelValue:i(f).deviceCode,"onUpdate:modelValue":l[0]||(l[0]=a=>i(f).deviceCode=a),placeholder:"\u8BF7\u8F93\u5165\u8BBE\u5907\u7F16\u53F7",clearable:"",class:"search-input",onKeyup:F(k,["enter"])},null,8,["modelValue","onKeyup"]),t(r,{modelValue:i(f).intersectionId,"onUpdate:modelValue":l[1]||(l[1]=a=>i(f).intersectionId=a),placeholder:"\u8BF7\u8F93\u5165\u8DEF\u53E3ID",clearable:"",class:"search-input",onKeyup:F(k,["enter"])},null,8,["modelValue","onKeyup"]),t(u,{class:"search-btn",onClick:k},{default:n(()=>[s("\u641C\u7D22")]),_:1}),t(u,{class:"reset-btn",onClick:X},{default:n(()=>[s("\u91CD\u7F6E")]),_:1})],512),[[K,i(Q)]]),A("div",Ne,[b((_(),w(u,{class:"add-btn",onClick:Z},{default:n(()=>[s("\u65B0\u589E")]),_:1})),[[D,["road:trafficLight:add"]]]),b((_(),w(u,{class:"delete-btn",onClick:ne},{default:n(()=>[s("\u5BFC\u51FA")]),_:1})),[[D,["road:trafficLight:export"]]])])]),b((_(),w(ie,{data:i(h),onSelectionChange:Y,class:"custom-table"},{default:n(()=>[t(m,{type:"selection",width:"55",align:"center"}),t(m,{label:"\u7EA2\u7EFF\u706FID",align:"center",prop:"id"}),t(m,{label:"\u8BBE\u5907\u540D\u79F0",align:"center",prop:"deviceName"}),t(m,{label:"\u8BBE\u5907\u7F16\u53F7",align:"center",prop:"deviceId"}),t(m,{label:"IP\u5730\u5740",align:"center",prop:"ipAddress"}),t(m,{label:"\u8DEF\u53E3ID",align:"center",prop:"intersectionId"}),t(m,{label:"\u662F\u5426\u5728\u7EBF",align:"center",prop:"isOnline"},{default:n(a=>[t(q,{type:a.row.isOnline?"success":"info"},{default:n(()=>[s(E(a.row.isOnline?"\u5728\u7EBF":"\u79BB\u7EBF"),1)]),_:2},1032,["type"])]),_:1}),t(m,{label:"\u662F\u5426\u6FC0\u6D3B",align:"center",prop:"isActive"},{default:n(a=>[t(q,{type:a.row.isActive?"success":"info"},{default:n(()=>[s(E(a.row.isActive?"\u5DF2\u6FC0\u6D3B":"\u672A\u6FC0\u6D3B"),1)]),_:2},1032,["type"])]),_:1}),t(m,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createdTime",width:"180"},{default:n(a=>{var $,P;return[A("span",null,E(e.parseTime(new Date((P=($=a.row.createdTime)==null?void 0:$.replace(/\.\d{3}\d{3}$/,""))!=null?P:""),"{y}-{m}-{d}")||"-"),1)]}),_:1}),t(m,{label:"\u64CD\u4F5C",align:"center","class-name":"small-padding fixed-width"},{default:n(a=>[b((_(),w(u,{link:"",type:"primary",onClick:$=>ee(a.row)},{default:n(()=>[s("\u4FEE\u6539")]),_:2},1032,["onClick"])),[[D,["road:trafficLight:edit"]]]),b((_(),w(u,{link:"",type:"primary",onClick:$=>ae(a.row)},{default:n(()=>[s("\u5220\u9664")]),_:2},1032,["onClick"])),[[D,["road:trafficLight:remove"]]])]),_:1})]),_:1},8,["data"])),[[ue,i(x)]]),b(t(oe,{total:i(I),page:i(f).pageNum,"onUpdate:page":l[2]||(l[2]=a=>i(f).pageNum=a),limit:i(f).pageSize,"onUpdate:limit":l[3]||(l[3]=a=>i(f).pageSize=a),onPagination:y},null,8,["total","page","limit"]),[[K,i(I)>0]]),t(ce,{title:i(U),modelValue:i(g),"onUpdate:modelValue":l[10]||(l[10]=a=>ve(g)?g.value=a:null),width:"500px","append-to-body":""},{footer:n(()=>[A("div",ke,[t(u,{type:"primary",onClick:te},{default:n(()=>[s("\u786E \u5B9A")]),_:1}),t(u,{onClick:W},{default:n(()=>[s("\u53D6 \u6D88")]),_:1})])]),default:n(()=>[t(se,{ref:"trafficLightRef",model:i(o),rules:i(M),"label-width":"80px"},{default:n(()=>[t(V,{label:"\u8BBE\u5907\u540D\u79F0",prop:"deviceName"},{default:n(()=>[t(r,{modelValue:i(o).deviceName,"onUpdate:modelValue":l[4]||(l[4]=a=>i(o).deviceName=a),placeholder:"\u8BF7\u8F93\u5165\u8BBE\u5907\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(V,{label:"\u8BBE\u5907\u7F16\u53F7",prop:"deviceId"},{default:n(()=>[t(r,{modelValue:i(o).deviceId,"onUpdate:modelValue":l[5]||(l[5]=a=>i(o).deviceId=a),placeholder:"\u8BF7\u8F93\u5165\u8BBE\u5907\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),t(V,{label:"IP\u5730\u5740",prop:"ipAddress"},{default:n(()=>[t(r,{modelValue:i(o).ipAddress,"onUpdate:modelValue":l[6]||(l[6]=a=>i(o).ipAddress=a),placeholder:"\u8BF7\u8F93\u5165IP\u5730\u5740"},null,8,["modelValue"])]),_:1}),t(V,{label:"\u8DEF\u53E3ID",prop:"intersectionId"},{default:n(()=>[t(de,{modelValue:i(o).intersectionId,"onUpdate:modelValue":l[7]||(l[7]=a=>i(o).intersectionId=a),placeholder:"\u8BF7\u9009\u62E9\u8DEF\u53E3",filterable:""},{default:n(()=>[(_(!0),B(_e,null,he(i(N),a=>(_(),w(re,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(V,{label:"\u662F\u5426\u5728\u7EBF",prop:"isOnline"},{default:n(()=>[t(O,{modelValue:i(o).isOnline,"onUpdate:modelValue":l[8]||(l[8]=a=>i(o).isOnline=a)},{default:n(()=>[t(C,{label:!0},{default:n(()=>[s("\u5728\u7EBF")]),_:1}),t(C,{label:!1},{default:n(()=>[s("\u79BB\u7EBF")]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(V,{label:"\u662F\u5426\u6FC0\u6D3B",prop:"isActive"},{default:n(()=>[t(O,{modelValue:i(o).isActive,"onUpdate:modelValue":l[9]||(l[9]=a=>i(o).isActive=a)},{default:n(()=>[t(C,{label:!0},{default:n(()=>[s("\u5DF2\u6FC0\u6D3B")]),_:1}),t(C,{label:!1},{default:n(()=>[s("\u672A\u6FC0\u6D3B")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}},Ue=fe(Ce,[["__scopeId","data-v-6f9fee2b"]]);export{Ue as default}; diff --git a/airport/assets/index.e43ebe8d.js.gz b/airport/assets/index.e43ebe8d.js.gz new file mode 100644 index 0000000..d9caa02 Binary files /dev/null and b/airport/assets/index.e43ebe8d.js.gz differ diff --git a/airport/assets/index.e94b0c30.js b/airport/assets/index.e94b0c30.js new file mode 100644 index 0000000..7eb5af6 --- /dev/null +++ b/airport/assets/index.e94b0c30.js @@ -0,0 +1 @@ +import{_ as o,d as c,o as n,c as s,m as t,e as a}from"./index.79832097.js";const r={};function _(d,i){const e=c("svg-icon");return n(),s("div",null,[t(" \u8868\u5355\u6784\u5EFA "),a(e,{"icon-class":"build"})])}const m=o(r,[["render",_]]);export{m as default}; diff --git a/airport/assets/index.f19bba48.css b/airport/assets/index.f19bba48.css new file mode 100644 index 0000000..cb1505a --- /dev/null +++ b/airport/assets/index.f19bba48.css @@ -0,0 +1 @@ +.app-container[data-v-8b526927]{padding:20px;background-color:#292c38;color:#fff;min-height:100%;border-radius:10px}.operlog-container[data-v-8b526927]{background-color:#292c38;border-radius:4px;height:calc(100vh - 180px);overflow-y:auto}.search-area[data-v-8b526927]{display:flex;align-items:center;margin-bottom:20px}.search-area .search-input[data-v-8b526927]{width:250px;margin-right:10px}.search-area .search-select[data-v-8b526927]{width:150px;margin-right:10px}.search-area .search-buttons[data-v-8b526927]{margin-right:20px;display:flex;gap:10px}.search-area .action-buttons[data-v-8b526927]{margin-left:auto;display:flex;gap:10px}[data-v-8b526927] .el-input__wrapper:hover{box-shadow:none!important}[data-v-8b526927] .el-select{border:none!important;width:140px!important;--el-border-color-hover: #343744 !important;--el-border-color: #343744 !important}[data-v-8b526927] .el-select__wrapper.is-focused{box-shadow:none!important}[data-v-8b526927] .el-select__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;width:140px;font-size:15px;border:none!important}[data-v-8b526927] .el-input__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;border:none!important;box-shadow:none!important}[data-v-8b526927] .el-select__placeholder{color:#96a0b5!important}.custom-table[data-v-8b526927]{background-color:#292c38;color:#fff;margin-bottom:20px;border-radius:4px;overflow:hidden}.custom-table[data-v-8b526927] .el-table__inner-wrapper:before{display:none}.custom-table[data-v-8b526927] .el-table__header{border-top-left-radius:4px;border-top-right-radius:4px;overflow:hidden}.custom-table[data-v-8b526927] .el-table__header-wrapper th{background-color:#343744!important;color:#96a0b5!important;font-weight:400;border-bottom:none}.custom-table[data-v-8b526927] .el-table__header-wrapper tr th.el-table__cell:first-child,.custom-table[data-v-8b526927] .el-table__header-wrapper tr th.el-table__cell:first-child .cell{border-top-left-radius:6px}.custom-table[data-v-8b526927] .el-table__header-wrapper tr th.el-table__cell:last-child{border-top-right-radius:4px}.custom-table[data-v-8b526927] .el-table__header-wrapper tr th.el-table__cell:last-child .cell{border-top-right-radius:4px}.custom-table[data-v-8b526927] .el-table__header-wrapper .el-table__header th.el-table__cell{background-color:#343744!important;color:#96a0b5}.custom-table[data-v-8b526927] .el-table__header-wrapper tr{background-color:#343744!important}.custom-table[data-v-8b526927] .el-table__body-wrapper td{height:68px!important;background-color:#292c38;color:#fff;border-bottom:1px solid #4C4F5F}.custom-table[data-v-8b526927] .el-table__body tr:hover>td{background:#2B3B5A!important}.custom-table[data-v-8b526927] .el-button--link{border:none;background:transparent;color:#347ae2;padding:0;margin:0 5px}.custom-table[data-v-8b526927] .el-button.is-text{background-color:transparent!important;border-color:transparent;color:#347ae2}.custom-table[data-v-8b526927] .el-button.is-text:hover,.custom-table[data-v-8b526927] .el-button.is-text:focus,.custom-table[data-v-8b526927] .el-button.is-text:active{background-color:transparent!important;color:#347ae2}.custom-table[data-v-8b526927] .el-button.el-button--primary.is-text,.custom-table[data-v-8b526927] .el-button.el-button--primary.is-text:hover,.custom-table[data-v-8b526927] .el-table__body tr:hover .el-button--link.is-text{background-color:transparent!important;color:#347ae2}.dict-text[data-v-8b526927]{display:inline-block;color:#fff}.status-item[data-v-8b526927]{display:flex;align-items:center}.status-item .status-dot[data-v-8b526927]{display:inline-block;width:8px;height:8px;border-radius:50%;background-color:#27ae60;margin-right:8px}.status-item .status-text[data-v-8b526927]{display:inline-block}.status-item.status-success .status-text[data-v-8b526927]{color:#27ae60} diff --git a/airport/assets/index.f19bba48.css.gz b/airport/assets/index.f19bba48.css.gz new file mode 100644 index 0000000..0e9f34a Binary files /dev/null and b/airport/assets/index.f19bba48.css.gz differ diff --git a/airport/assets/index.ff89fc96.css b/airport/assets/index.ff89fc96.css new file mode 100644 index 0000000..b8924e2 --- /dev/null +++ b/airport/assets/index.ff89fc96.css @@ -0,0 +1 @@ +.app-container[data-v-7e53c758]{padding:20px;background-color:#292c38;color:#fff;min-height:100%;border-radius:10px}.role-container[data-v-7e53c758]{background-color:#292c38;border-radius:4px;height:calc(100vh - 180px);overflow-y:auto}.search-area[data-v-7e53c758]{display:flex;align-items:center;margin-bottom:20px;flex-wrap:wrap}.search-area .search-input[data-v-7e53c758]{width:250px;margin-right:10px}.search-area .search-select[data-v-7e53c758]{width:150px;margin-right:10px}.search-area .search-buttons[data-v-7e53c758]{margin-right:20px;display:flex;gap:10px}.search-area .action-buttons[data-v-7e53c758]{margin-left:auto;display:flex;gap:10px}[data-v-7e53c758] .el-input__wrapper:hover{box-shadow:none!important}[data-v-7e53c758] .el-select{border:none!important;width:140px!important;--el-border-color-hover: #343744!important;--el-border-color: #343744!important}[data-v-7e53c758] .el-select__wrapper.is-focused{box-shadow:none!important}[data-v-7e53c758] .el-select__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;width:140px;font-size:15px;border:none!important}[data-v-7e53c758] .el-input__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;border:none!important;box-shadow:none!important}[data-v-7e53c758] .el-select__placeholder{color:#96a0b5!important}.custom-table[data-v-7e53c758]{background-color:#292c38!important;color:#fff;margin-bottom:20px;border-radius:4px;overflow:hidden}.custom-table[data-v-7e53c758] .el-loading-mask{background-color:#292c38b3!important}.custom-table[data-v-7e53c758] .el-table__empty-block{background-color:#292c38!important}.custom-table[data-v-7e53c758] .el-table__empty-text{color:#96a0b5!important}.custom-table[data-v-7e53c758] .el-table,.custom-table[data-v-7e53c758] .el-table__body{background-color:#292c38!important}.custom-table[data-v-7e53c758] .el-table__body-wrapper td{height:68px!important;background-color:#292c38;color:#fff;border-bottom:1px solid #4C4F5F}.status-normal[data-v-7e53c758]{color:#67c23a}.status-disabled[data-v-7e53c758]{color:#e6a23c}[data-v-7e53c758] .el-input__wrapper{background-color:#292c38;box-shadow:0 0 0 1px #565c70 inset!important}[data-v-7e53c758] .el-input__wrapper .el-input__inner{color:#fff}[data-v-7e53c758] .el-input__count,[data-v-7e53c758] .el-input__count .el-input__count-inner{background:transparent!important;color:#c0c4cc!important}[data-v-7e53c758] .el-radio__label{color:#c8c9cc}[data-v-7e53c758] .el-radio.is-checked .el-radio__label{color:#409eff}[data-v-7e53c758] .el-button{background-color:#292c38;border-color:#4c4f5f;color:#fff}[data-v-7e53c758] .el-button.el-button--primary{background-color:#409eff;border-color:#409eff}[data-v-7e53c758] .el-select .el-input__wrapper{background-color:#292c38;box-shadow:0 0 0 1px #565c70 inset!important}[data-v-7e53c758] .el-dialog .el-form-item__label{color:#96a0b5!important}[data-v-7e53c758] .el-dialog .el-radio__label{color:#c8c9cc!important}[data-v-7e53c758] .el-dialog .el-radio.is-checked .el-radio__label{color:#409eff!important}.search-area[data-v-7e53c758] .el-input__wrapper{background:#343744!important;color:#96a0b5!important;border-radius:8px!important;height:36px!important;border:none!important;box-shadow:none!important}.custom-table[data-v-7e53c758]{background-color:#292c38;color:#fff;margin-bottom:20px;border-radius:4px;overflow:hidden}.custom-table[data-v-7e53c758] .el-table__inner-wrapper:before{display:none}.custom-table[data-v-7e53c758] .el-table__header{border-top-left-radius:4px;border-top-right-radius:4px;overflow:hidden}.custom-table[data-v-7e53c758] .el-table__header-wrapper th{background-color:#343744!important;color:#96a0b5!important;font-weight:400;border-bottom:none}.custom-table[data-v-7e53c758] .el-table__header-wrapper tr th.el-table__cell:first-child,.custom-table[data-v-7e53c758] .el-table__header-wrapper tr th.el-table__cell:first-child .cell{border-top-left-radius:6px}.custom-table[data-v-7e53c758] .el-table__header-wrapper tr th.el-table__cell:last-child{border-top-right-radius:4px}.custom-table[data-v-7e53c758] .el-table__header-wrapper tr th.el-table__cell:last-child .cell{border-top-right-radius:4px}.custom-table[data-v-7e53c758] .el-table__header-wrapper .el-table__header th.el-table__cell{background-color:#343744!important;color:#96a0b5}.custom-table[data-v-7e53c758] .el-table__header-wrapper tr{background-color:#343744!important}.custom-table[data-v-7e53c758] .el-table__body-wrapper td{background-color:#292c38;color:#fff;height:68px;border-bottom:1px solid #4C4F5F}.custom-table[data-v-7e53c758] .el-table__body tr:hover>td{background:#2B3B5A!important}.custom-table[data-v-7e53c758] .el-button--link{border:none;background:transparent;color:#347ae2;padding:0;margin:0 5px}.custom-table[data-v-7e53c758] .el-button.is-text{background-color:transparent!important;border-color:transparent;color:#347ae2}.custom-table[data-v-7e53c758] .el-button.is-text:hover,.custom-table[data-v-7e53c758] .el-button.is-text:focus,.custom-table[data-v-7e53c758] .el-button.is-text:active{background-color:transparent!important;color:#347ae2}.custom-table[data-v-7e53c758] .el-button.el-button--primary.is-text,.custom-table[data-v-7e53c758] .el-button.el-button--primary.is-text:hover,.custom-table[data-v-7e53c758] .el-table__body tr:hover .el-button--link.is-text{background-color:transparent!important;color:#347ae2}.tree-border[data-v-7e53c758]{margin-top:5px;background-color:#343744;color:#fff;border:1px solid #4C4F5F;border-radius:4px;max-height:300px;overflow-y:auto}.tree-border[data-v-7e53c758] .el-tree{background-color:transparent;color:#fff}.tree-border[data-v-7e53c758] .el-tree-node__content{background-color:transparent}.tree-border[data-v-7e53c758] .el-tree-node__content:hover{background-color:#1e2233}.tree-border[data-v-7e53c758] .el-tree-node__content.is-current{background-color:#347ae233}.tree-border[data-v-7e53c758] .el-tree-node__label{color:#fff}.tree-border[data-v-7e53c758] .el-checkbox__input.is-checked .el-checkbox__inner{background-color:#347ae2;border-color:#347ae2}.tree-border[data-v-7e53c758] .el-checkbox__inner{background-color:#292c38;border-color:#4c4f5f}.permission-controls[data-v-7e53c758]{margin-bottom:10px;display:flex;gap:15px}[data-v-7e53c758] .el-dialog{background-color:#292c38;border-radius:8px}[data-v-7e53c758] .el-dialog .el-dialog__header{background-color:#292c38;color:#fff;border-bottom:1px solid #4C4F5F;padding:15px 20px}[data-v-7e53c758] .el-dialog .el-dialog__header .el-dialog__title{color:#fff;font-size:16px}[data-v-7e53c758] .el-dialog .el-dialog__header .el-dialog__headerbtn .el-dialog__close{color:#fff}[data-v-7e53c758] .el-dialog .el-dialog__body{background-color:#292c38;color:#fff;padding:20px}[data-v-7e53c758] .el-dialog .el-dialog__footer{background-color:#292c38;border-top:1px solid #4C4F5F;padding:15px 20px}[data-v-7e53c758] .el-dialog .el-form-item__label{color:#96a0b5}[data-v-7e53c758] .el-dialog .el-form-item{margin-bottom:20px}[data-v-7e53c758] .el-dialog .el-checkbox{color:#fff;margin-right:15px}[data-v-7e53c758] .el-dialog .el-checkbox__label{color:#fff}.dialog-footer[data-v-7e53c758]{display:flex;justify-content:center;gap:20px}.dialog-footer .search-btn[data-v-7e53c758]{width:100px;background-color:#347ae2;border-color:#347ae2}.dialog-footer .search-btn[data-v-7e53c758]:hover,.dialog-footer .search-btn[data-v-7e53c758]:focus{background-color:#4a8be8;border-color:#4a8be8}.dialog-footer .export-btn[data-v-7e53c758]{width:100px;background-color:transparent;border-color:#4c4f5f;color:#fff}.dialog-footer .export-btn[data-v-7e53c758]:hover,.dialog-footer .export-btn[data-v-7e53c758]:focus{background-color:#4c4f5f33;border-color:#4c4f5f;color:#fff}[data-v-7e53c758] .el-table{--el-table-bg-color: #292c38 !important;--el-table-tr-bg-color: #292c38 !important;--el-table-border-color: #4C4F5F !important;--el-table-header-bg-color: #343744 !important;--el-table-row-hover-bg-color: #2B3B5A !important}[data-v-7e53c758] .el-table:before{display:none} diff --git a/airport/assets/index.ff89fc96.css.gz b/airport/assets/index.ff89fc96.css.gz new file mode 100644 index 0000000..895bc69 Binary files /dev/null and b/airport/assets/index.ff89fc96.css.gz differ diff --git a/airport/assets/index.ffaa48ef.css b/airport/assets/index.ffaa48ef.css new file mode 100644 index 0000000..9886a8b --- /dev/null +++ b/airport/assets/index.ffaa48ef.css @@ -0,0 +1 @@ +.app-container[data-v-72f01920]{padding:20px;background-color:#292c38;color:#fff;height:calc(100vh - 180px);overflow-y:auto;border-radius:10px} diff --git a/airport/assets/input.a7187a4f.js b/airport/assets/input.a7187a4f.js new file mode 100644 index 0000000..522e78a --- /dev/null +++ b/airport/assets/input.a7187a4f.js @@ -0,0 +1 @@ +const t="/airport/assets/input.dc49aded.svg";export{t as default}; diff --git a/airport/assets/input.dc49aded.svg b/airport/assets/input.dc49aded.svg new file mode 100644 index 0000000..ab91381 --- /dev/null +++ b/airport/assets/input.dc49aded.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/international.7ee45404.js b/airport/assets/international.7ee45404.js new file mode 100644 index 0000000..917d7fe --- /dev/null +++ b/airport/assets/international.7ee45404.js @@ -0,0 +1 @@ +const t="/airport/assets/international.cdcfd9eb.svg";export{t as default}; diff --git a/airport/assets/international.cdcfd9eb.svg b/airport/assets/international.cdcfd9eb.svg new file mode 100644 index 0000000..e9b56ee --- /dev/null +++ b/airport/assets/international.cdcfd9eb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/intersection.55727948.js b/airport/assets/intersection.55727948.js new file mode 100644 index 0000000..914fdd4 --- /dev/null +++ b/airport/assets/intersection.55727948.js @@ -0,0 +1 @@ +import{L as r}from"./index.79832097.js";function c(){return r({url:"/traffic-light/intersections/list",method:"get"})}function i(e){return r({url:"/traffic-light/intersections/search",method:"get",params:e})}function s(e){return r({url:`/traffic-light/intersections/${e}`,method:"get"}).then(t=>(console.log("\u83B7\u53D6\u8DEF\u53E3\u8BE6\u60C5\u6210\u529F:",t),t)).catch(t=>{throw console.error("\u83B7\u53D6\u8DEF\u53E3\u8BE6\u60C5\u5931\u8D25:",t),t})}function a(e){return r({url:"/traffic-light/intersections",method:"post",data:e}).then(t=>(console.log("\u65B0\u589E\u8DEF\u53E3\u6210\u529F:",t),t)).catch(t=>{throw console.error("\u65B0\u589E\u8DEF\u53E3\u5931\u8D25:",t),t})}function l(e,t){return r({url:`/traffic-light/intersections/${e}`,method:"put",data:t}).then(n=>(console.log("\u4FEE\u6539\u8DEF\u53E3\u6210\u529F:",n),n)).catch(n=>{throw console.error("\u4FEE\u6539\u8DEF\u53E3\u5931\u8D25:",n),n})}export{s as a,a as b,i as g,c as l,l as u}; diff --git a/airport/assets/job.0a38faae.svg b/airport/assets/job.0a38faae.svg new file mode 100644 index 0000000..2a93a25 --- /dev/null +++ b/airport/assets/job.0a38faae.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/job.ef157af3.js b/airport/assets/job.ef157af3.js new file mode 100644 index 0000000..ccce8a4 --- /dev/null +++ b/airport/assets/job.ef157af3.js @@ -0,0 +1 @@ +const a="/airport/assets/job.0a38faae.svg";export{a as default}; diff --git a/airport/assets/language.407b7548.svg b/airport/assets/language.407b7548.svg new file mode 100644 index 0000000..0082b57 --- /dev/null +++ b/airport/assets/language.407b7548.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/language.443cf574.js b/airport/assets/language.443cf574.js new file mode 100644 index 0000000..fade664 --- /dev/null +++ b/airport/assets/language.443cf574.js @@ -0,0 +1 @@ +const a="/airport/assets/language.407b7548.svg";export{a as default}; diff --git a/airport/assets/layer.3b4c7d4a.png b/airport/assets/layer.3b4c7d4a.png new file mode 100644 index 0000000..2570046 Binary files /dev/null and b/airport/assets/layer.3b4c7d4a.png differ diff --git a/airport/assets/left_arrow.c4014874.png b/airport/assets/left_arrow.c4014874.png new file mode 100644 index 0000000..74e7255 Binary files /dev/null and b/airport/assets/left_arrow.c4014874.png differ diff --git a/airport/assets/light.32436962.svg b/airport/assets/light.32436962.svg new file mode 100644 index 0000000..8961eb6 --- /dev/null +++ b/airport/assets/light.32436962.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/link.64f798fb.js b/airport/assets/link.64f798fb.js new file mode 100644 index 0000000..0fc13f6 --- /dev/null +++ b/airport/assets/link.64f798fb.js @@ -0,0 +1 @@ +const s="/airport/assets/link.b0c4e028.svg";export{s as default}; diff --git a/airport/assets/link.b0c4e028.svg b/airport/assets/link.b0c4e028.svg new file mode 100644 index 0000000..48197ba --- /dev/null +++ b/airport/assets/link.b0c4e028.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/list.1107b3b6.svg b/airport/assets/list.1107b3b6.svg new file mode 100644 index 0000000..20259ed --- /dev/null +++ b/airport/assets/list.1107b3b6.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/list.88f483cb.js b/airport/assets/list.88f483cb.js new file mode 100644 index 0000000..463c4ca --- /dev/null +++ b/airport/assets/list.88f483cb.js @@ -0,0 +1 @@ +const s="/airport/assets/list.1107b3b6.svg";export{s as default}; diff --git a/airport/assets/lock.b3970863.js b/airport/assets/lock.b3970863.js new file mode 100644 index 0000000..1ada74a --- /dev/null +++ b/airport/assets/lock.b3970863.js @@ -0,0 +1 @@ +const a="/airport/assets/lock.eb3ac9a3.svg";export{a as default}; diff --git a/airport/assets/lock.eb3ac9a3.svg b/airport/assets/lock.eb3ac9a3.svg new file mode 100644 index 0000000..74fee54 --- /dev/null +++ b/airport/assets/lock.eb3ac9a3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/log.1cbe92a9.svg b/airport/assets/log.1cbe92a9.svg new file mode 100644 index 0000000..d879d33 --- /dev/null +++ b/airport/assets/log.1cbe92a9.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/log.6a61dc82.js b/airport/assets/log.6a61dc82.js new file mode 100644 index 0000000..572abf6 --- /dev/null +++ b/airport/assets/log.6a61dc82.js @@ -0,0 +1 @@ +const s="/airport/assets/log.1cbe92a9.svg";export{s as default}; diff --git a/airport/assets/login-background.295946ae.png b/airport/assets/login-background.295946ae.png new file mode 100644 index 0000000..41cdf74 Binary files /dev/null and b/airport/assets/login-background.295946ae.png differ diff --git a/airport/assets/login.4ceff1c2.js b/airport/assets/login.4ceff1c2.js new file mode 100644 index 0000000..eb6261e --- /dev/null +++ b/airport/assets/login.4ceff1c2.js @@ -0,0 +1,22 @@ +import{_ as ee,b as re,r as ct,d as st,o as lt,c as gt,e as k,w as Y,f as C,a as ie,g as ne,h as W,i as Ht,j as It,k as se,l as ot,m as kt,n as oe,p as he,q as ae,s as ue}from"./index.79832097.js";var Kt={exports:{}};/*! For license information please see jsencrypt.min.js.LICENSE.txt */(function(G,X){(function(dt,ht){G.exports=ht()})(window,()=>(()=>{var dt={155:x=>{var D,m,w=x.exports={};function tt(){throw new Error("setTimeout has not been defined")}function Q(){throw new Error("clearTimeout has not been defined")}function et(I){if(D===setTimeout)return setTimeout(I,0);if((D===tt||!D)&&setTimeout)return D=setTimeout,setTimeout(I,0);try{return D(I,0)}catch{try{return D.call(null,I,0)}catch{return D.call(this,I,0)}}}(function(){try{D=typeof setTimeout=="function"?setTimeout:tt}catch{D=tt}try{m=typeof clearTimeout=="function"?clearTimeout:Q}catch{m=Q}})();var M,T=[],A=!1,q=-1;function j(){A&&M&&(A=!1,M.length?T=M.concat(T):q=-1,T.length&&F())}function F(){if(!A){var I=et(j);A=!0;for(var L=T.length;L;){for(M=T,T=[];++q1)for(var E=1;E{for(var m in D)S.o(D,m)&&!S.o(x,m)&&Object.defineProperty(x,m,{enumerable:!0,get:D[m]})},S.o=(x,D)=>Object.prototype.hasOwnProperty.call(x,D);var mt={};return(()=>{function x(i){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(i)}function D(i,t){return i&t}function m(i,t){return i|t}function w(i,t){return i^t}function tt(i,t){return i&~t}function Q(i){if(i==0)return-1;var t=0;return(65535&i)==0&&(i>>=16,t+=16),(255&i)==0&&(i>>=8,t+=8),(15&i)==0&&(i>>=4,t+=4),(3&i)==0&&(i>>=2,t+=2),(1&i)==0&&++t,t}function et(i){for(var t=0;i!=0;)i&=i-1,++t;return t}S.d(mt,{default:()=>Xt});var M,T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function A(i){var t,e,r="";for(t=0;t+3<=i.length;t+=3)e=parseInt(i.substring(t,t+3),16),r+=T.charAt(e>>6)+T.charAt(63&e);for(t+1==i.length?(e=parseInt(i.substring(t,t+1),16),r+=T.charAt(e<<2)):t+2==i.length&&(e=parseInt(i.substring(t,t+2),16),r+=T.charAt(e>>2)+T.charAt((3&e)<<4));(3&r.length)>0;)r+="=";return r}function q(i){var t,e="",r=0,n=0;for(t=0;t>2),n=3&s,r=1):r==1?(e+=x(n<<2|s>>4),n=15&s,r=2):r==2?(e+=x(n),e+=x(s>>2),n=3&s,r=3):(e+=x(n<<2|s>>4),e+=x(15&s),r=0))}return r==1&&(e+=x(n<<2)),e}var j,F={decode:function(i){var t;if(j===void 0){var e=`= \f +\r \xA0\u2028\u2029`;for(j=Object.create(null),t=0;t<64;++t)j["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(j["-"]=62,j._=63,t=0;t=4?(r[r.length]=n>>16,r[r.length]=n>>8&255,r[r.length]=255&n,n=0,s=0):n<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=n>>10;break;case 3:r[r.length]=n>>16,r[r.length]=n>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(i){var t=F.re.exec(i);if(t)if(t[1])i=t[1];else{if(!t[2])throw new Error("RegExp out of sync");i=t[2]}return F.decode(i)}},U=1e13,N=function(){function i(t){this.buf=[+t||0]}return i.prototype.mulAdd=function(t,e){var r,n,s=this.buf,o=s.length;for(r=0;r0&&(s[r]=e)},i.prototype.sub=function(t){var e,r,n=this.buf,s=n.length;for(e=0;e=0;--n)r+=(U+e[n]).toString().substring(1);return r},i.prototype.valueOf=function(){for(var t=this.buf,e=0,r=t.length-1;r>=0;--r)e=e*U+t[r];return e},i.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},i}(),I=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,L=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function E(i,t){return i.length>t&&(i=i.substring(0,t)+"\u2026"),i}var $,vt=function(){function i(t,e){this.hexDigits="0123456789ABCDEF",t instanceof i?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=e)}return i.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},i.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},i.prototype.hexDump=function(t,e,r){for(var n="",s=t;s176)return!1}return!0},i.prototype.parseStringISO=function(t,e){for(var r="",n=t;n191&&s<224?String.fromCharCode((31&s)<<6|63&this.get(n++)):String.fromCharCode((15&s)<<12|(63&this.get(n++))<<6|63&this.get(n++))}return r},i.prototype.parseStringBMP=function(t,e){for(var r,n,s="",o=t;o127,o=s?255:0,h="";n==o&&++t4){for(h=n,r<<=3;(128&(+h^o))==0;)h=+h<<1,--r;h="("+r+` bit) +`}s&&(n-=256);for(var a=new N(n),c=t+1;c=c;--l)o+=a>>l&1?"1":"0";if(o.length>r)return s+E(o,r)}return s+o},i.prototype.parseOctetString=function(t,e,r){if(this.isASCII(t,e))return E(this.parseStringISO(t,e),r);var n=e-t,s="("+n+` byte) +`;n>(r/=2)&&(e=t+r);for(var o=t;or&&(s+="\u2026"),s},i.prototype.parseOID=function(t,e,r){for(var n="",s=new N,o=0,h=t;hr)return E(n,r);s=new N,o=0}}return o>0&&(n+=".incomplete"),n},i}(),Ut=function(){function i(t,e,r,n,s){if(!(n instanceof Nt))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=r,this.tag=n,this.sub=s}return i.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},i.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var e=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);switch(this.tag.tagNumber){case 1:return this.stream.get(e)===0?"false":"true";case 2:return this.stream.parseInteger(e,e+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);case 6:return this.stream.parseOID(e,e+r,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return E(this.stream.parseStringUTF(e,e+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return E(this.stream.parseStringISO(e,e+r),t);case 30:return E(this.stream.parseStringBMP(e,e+r),t);case 23:case 24:return this.stream.parseTime(e,e+r,this.tag.tagNumber==23)}return null},i.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},i.prototype.toPrettyString=function(t){t===void 0&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||this.tag.tagNumber!=3&&this.tag.tagNumber!=4||this.sub===null||(e+=" (encapsulates)"),e+=` +`,this.sub!==null){t+=" ";for(var r=0,n=this.sub.length;r6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(r===0)return null;e=0;for(var n=0;n>6,this.tagConstructed=(32&e)!=0,this.tagNumber=31&e,this.tagNumber==31){var r=new N;do e=t.get(),r.mulAdd(128,127&e);while(128&e);this.tagNumber=r.simplify()}}return i.prototype.isUniversal=function(){return this.tagClass===0},i.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},i}(),_=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],zt=(1<<26)/_[_.length-1],p=function(){function i(t,e,r){t!=null&&(typeof t=="number"?this.fromNumber(t,e,r):e==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,e))}return i.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(t==16)e=4;else if(t==8)e=3;else if(t==2)e=1;else if(t==32)e=5;else{if(t!=4)return this.toRadix(t);e=2}var r,n=(1<0)for(a>a)>0&&(s=!0,o=x(r));h>=0;)a>(a+=this.DB-e)):(r=this[h]>>(a-=e)&n,a<=0&&(a+=this.DB,--h)),r>0&&(s=!0),s&&(o+=x(r));return s?o:"0"},i.prototype.negate=function(){var t=d();return i.ZERO.subTo(this,t),t},i.prototype.abs=function(){return this.s<0?this.negate():this},i.prototype.compareTo=function(t){var e=this.s-t.s;if(e!=0)return e;var r=this.t;if((e=r-t.t)!=0)return this.s<0?-e:e;for(;--r>=0;)if((e=this[r]-t[r])!=0)return e;return 0},i.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+bt(this[this.t-1]^this.s&this.DM)},i.prototype.mod=function(t){var e=d();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(i.ZERO)>0&&t.subTo(e,e),e},i.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new Mt(e):new _t(e),this.exp(t,r)},i.prototype.clone=function(){var t=d();return this.copyTo(t),t},i.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<>24},i.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},i.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},i.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var r,n=this.DB-t*this.DB%8,s=0;if(t-- >0)for(n>n)!=(this.s&this.DM)>>n&&(e[s++]=r|this.s<=0;)n<8?(r=(this[t]&(1<>(n+=this.DB-8)):(r=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),(128&r)!=0&&(r|=-256),s==0&&(128&this.s)!=(128&r)&&++s,(s>0||r!=this.s)&&(e[s++]=r);return e},i.prototype.equals=function(t){return this.compareTo(t)==0},i.prototype.min=function(t){return this.compareTo(t)<0?this:t},i.prototype.max=function(t){return this.compareTo(t)>0?this:t},i.prototype.and=function(t){var e=d();return this.bitwiseTo(t,D,e),e},i.prototype.or=function(t){var e=d();return this.bitwiseTo(t,m,e),e},i.prototype.xor=function(t){var e=d();return this.bitwiseTo(t,w,e),e},i.prototype.andNot=function(t){var e=d();return this.bitwiseTo(t,tt,e),e},i.prototype.not=function(){for(var t=d(),e=0;e=this.t?this.s!=0:(this[e]&1<1){var v=d();for(n.sqrTo(h[1],v);a<=l;)h[a]=d(),n.mulTo(v,h[a-2],h[a]),a+=2}var g,B,b=t.t-1,y=!0,V=d();for(s=bt(t[b])-1;b>=0;){for(s>=c?g=t[b]>>s-c&l:(g=(t[b]&(1<0&&(g|=t[b-1]>>this.DB+s-c)),a=r;(1&g)==0;)g>>=1,--a;if((s-=a)<0&&(s+=this.DB,--b),y)h[g].copyTo(o),y=!1;else{for(;a>1;)n.sqrTo(o,V),n.sqrTo(V,o),a-=2;a>0?n.sqrTo(o,V):(B=o,o=V,V=B),n.mulTo(V,h[g],o)}for(;b>=0&&(t[b]&1<=0?(r.subTo(n,r),e&&s.subTo(h,s),o.subTo(a,o)):(n.subTo(r,n),e&&h.subTo(s,h),a.subTo(o,a))}return n.compareTo(i.ONE)!=0?i.ZERO:a.compareTo(t)>=0?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a},i.prototype.pow=function(t){return this.exp(t,new Zt)},i.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var n=e;e=r,r=n}var s=e.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return e;for(s0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},i.prototype.isProbablePrime=function(t){var e,r=this.abs();if(r.t==1&&r[0]<=_[_.length-1]){for(e=0;e<_.length;++e)if(r[0]==_[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<_.length;){for(var n=_[e],s=e+1;s<_.length&&n=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},i.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},i.prototype.fromString=function(t,e){var r;if(e==16)r=4;else if(e==8)r=3;else if(e==256)r=8;else if(e==2)r=1;else if(e==32)r=5;else{if(e!=4)return void this.fromRadix(t,e);r=2}this.t=0,this.s=0;for(var n=t.length,s=!1,o=0;--n>=0;){var h=r==8?255&+t[n]:Ct(t,n);h<0?t.charAt(n)=="-"&&(s=!0):(s=!1,o==0?this[this.t++]=h:o+r>this.DB?(this[this.t-1]|=(h&(1<>this.DB-o):this[this.t-1]|=h<=this.DB&&(o-=this.DB))}r==8&&(128&+t[0])!=0&&(this.s=-1,o>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},i.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},i.prototype.drShiftTo=function(t,e){for(var r=t;r=0;--a)e[a+o+1]=this[a]>>n|h,h=(this[a]&s)<=0;--a)e[a]=0;e[o]=h,e.t=this.t+o+1,e.s=this.s,e.clamp()},i.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,s=this.DB-n,o=(1<>n;for(var h=r+1;h>n;n>0&&(e[this.t-r-1]|=(this.s&o)<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[r++]=this.DV+n:n>0&&(e[r++]=n),e.t=r,e.clamp()},i.prototype.multiplyTo=function(t,e){var r=this.abs(),n=t.abs(),s=r.t;for(e.t=s+n.t;--s>=0;)e[s]=0;for(s=0;s=0;)t[r]=0;for(r=0;r=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},i.prototype.divRemTo=function(t,e,r){var n=t.abs();if(!(n.t<=0)){var s=this.abs();if(s.t0?(n.lShiftTo(c,o),s.lShiftTo(c,r)):(n.copyTo(o),s.copyTo(r));var l=o.t,v=o[l-1];if(v!=0){var g=v*(1<1?o[l-2]>>this.F2:0),B=this.FV/g,b=(1<=0&&(r[r.t++]=1,r.subTo(P,r)),i.ONE.dlShiftTo(l,P),P.subTo(o,o);o.t=0;){var H=r[--V]==v?this.DM:Math.floor(r[V]*B+(r[V-1]+y)*b);if((r[V]+=o.am(0,H,r,J,0,l))0&&r.rShiftTo(c,r),h<0&&i.ZERO.subTo(r,r)}}},i.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if((1&t)==0)return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},i.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},i.prototype.exp=function(t,e){if(t>4294967295||t<1)return i.ONE;var r=d(),n=d(),s=e.convert(this),o=bt(t)-1;for(s.copyTo(r);--o>=0;)if(e.sqrTo(r,n),(t&1<0)e.mulTo(n,s,r);else{var h=r;r=n,n=h}return e.revert(r)},i.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},i.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),n=rt(r),s=d(),o=d(),h="";for(this.divRemTo(n,s,o);s.signum()>0;)h=(r+o.intValue()).toString(t).substr(1)+h,s.divRemTo(n,s,o);return o.intValue().toString(t)+h},i.prototype.fromRadix=function(t,e){this.fromInt(0),e==null&&(e=10);for(var r=this.chunkSize(e),n=Math.pow(e,r),s=!1,o=0,h=0,a=0;a=r&&(this.dMultiply(n),this.dAddOffset(h,0),o=0,h=0))}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(h,0)),s&&i.ZERO.subTo(this,this)},i.prototype.fromNumber=function(t,e,r){if(typeof e=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(i.ONE.shiftLeft(t-1),m,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(i.ONE.shiftLeft(t-1),this);else{var n=[],s=7&t;n.length=1+(t>>3),e.nextBytes(n),s>0?n[0]&=(1<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[r++]=n:n<-1&&(e[r++]=this.DV+n),e.t=r,e.clamp()},i.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},i.prototype.dAddOffset=function(t,e){if(t!=0){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},i.prototype.multiplyLowerTo=function(t,e,r){var n=Math.min(this.t+t.t,e);for(r.s=0,r.t=n;n>0;)r[--n]=0;for(var s=r.t-this.t;n=0;)r[n]=0;for(n=Math.max(e-this.t,0);n0)if(e==0)r=this[0]%t;else for(var n=this.t-1;n>=0;--n)r=(e*r+this[n])%t;return r},i.prototype.millerRabin=function(t){var e=this.subtract(i.ONE),r=e.getLowestSetBit();if(r<=0)return!1;var n=e.shiftRight(r);(t=t+1>>1)>_.length&&(t=_.length);for(var s=d(),o=0;o0&&(r.rShiftTo(h,r),n.rShiftTo(h,n));var a=function(){(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n)),r.signum()>0?setTimeout(a,0):(h>0&&n.lShiftTo(h,n),setTimeout(function(){e(n)},0))};setTimeout(a,10)}},i.prototype.fromNumberAsync=function(t,e,r,n){if(typeof e=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(i.ONE.shiftLeft(t-1),m,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(i.ONE.shiftLeft(t-1),s),s.isProbablePrime(e)?setTimeout(function(){n()},0):setTimeout(o,0)};setTimeout(o,0)}else{var h=[],a=7&t;h.length=1+(t>>3),e.nextBytes(h),a>0?h[0]&=(1<=0?t.mod(this.m):t},i.prototype.revert=function(t){return t},i.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},i.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},i.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},i}(),_t=function(){function i(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(e,e),e},i.prototype.revert=function(t){var e=d();return t.copyTo(e),this.reduce(e),e},i.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},i.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},i.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},i}(),Yt=function(){function i(t){this.m=t,this.r2=d(),this.q3=d(),p.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return i.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=d();return t.copyTo(e),this.reduce(e),e},i.prototype.revert=function(t){return t},i.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},i.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},i.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},i}();function d(){return new p(null)}function R(i,t){return new p(i,t)}var Pt=typeof navigator<"u";Pt&&navigator.appName=="Microsoft Internet Explorer"?(p.prototype.am=function(i,t,e,r,n,s){for(var o=32767&t,h=t>>15;--s>=0;){var a=32767&this[i],c=this[i++]>>15,l=h*a+c*o;n=((a=o*a+((32767&l)<<15)+e[r]+(1073741823&n))>>>30)+(l>>>15)+h*c+(n>>>30),e[r++]=1073741823&a}return n},$=30):Pt&&navigator.appName!="Netscape"?(p.prototype.am=function(i,t,e,r,n,s){for(;--s>=0;){var o=t*this[i++]+e[r]+n;n=Math.floor(o/67108864),e[r++]=67108863&o}return n},$=26):(p.prototype.am=function(i,t,e,r,n,s){for(var o=16383&t,h=t>>14;--s>=0;){var a=16383&this[i],c=this[i++]>>14,l=h*a+c*o;n=((a=o*a+((16383&l)<<14)+e[r]+n)>>28)+(l>>14)+h*c,e[r++]=268435455&a}return n},$=28),p.prototype.DB=$,p.prototype.DM=(1<<$)-1,p.prototype.DV=1<<$,p.prototype.FV=Math.pow(2,52),p.prototype.F1=52-$,p.prototype.F2=2*$-52;var at,K,yt=[];for(at="0".charCodeAt(0),K=0;K<=9;++K)yt[at++]=K;for(at="a".charCodeAt(0),K=10;K<36;++K)yt[at++]=K;for(at="A".charCodeAt(0),K=10;K<36;++K)yt[at++]=K;function Ct(i,t){var e=yt[i.charCodeAt(t)];return e==null?-1:e}function rt(i){var t=d();return t.fromInt(i),t}function bt(i){var t,e=1;return(t=i>>>16)!=0&&(i=t,e+=16),(t=i>>8)!=0&&(i=t,e+=8),(t=i>>4)!=0&&(i=t,e+=4),(t=i>>2)!=0&&(i=t,e+=2),(t=i>>1)!=0&&(i=t,e+=1),e}p.ZERO=rt(0),p.ONE=rt(1);var Tt,z,Gt=function(){function i(){this.i=0,this.j=0,this.S=[]}return i.prototype.init=function(t){var e,r,n;for(e=0;e<256;++e)this.S[e]=e;for(r=0,e=0;e<256;++e)r=r+this.S[e]+t[e%t.length]&255,n=this.S[e],this.S[e]=this.S[r],this.S[r]=n;this.i=0,this.j=0},i.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},i}(),it=null;if(it==null){it=[],z=0;var St=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Bt=new Uint32Array(256);for(window.crypto.getRandomValues(Bt),St=0;St=256||z>=256)window.removeEventListener?window.removeEventListener("mousemove",wt,!1):window.detachEvent&&window.detachEvent("onmousemove",wt);else try{var t=i.x+i.y;it[z++]=255&t,Vt+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",wt,!1):window.attachEvent&&window.attachEvent("onmousemove",wt))}function Qt(){if(Tt==null){for(Tt=new Gt;z<256;){var i=Math.floor(65536*Math.random());it[z++]=255&i}for(Tt.init(it),z=0;z0&&e.length>0?(this.n=R(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},i.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,r=function(a,c){if(c=0&&c>0;){var g=a.charCodeAt(v--);g<128?l[--c]=g:g>127&&g<2048?(l[--c]=63&g|128,l[--c]=g>>6|192):(l[--c]=63&g|128,l[--c]=g>>6&63|128,l[--c]=g>>12|224)}l[--c]=0;for(var B=new Rt,b=[];c>2;){for(b[0]=0;b[0]==0;)B.nextBytes(b);l[--c]=b[0]}return l[--c]=2,l[--c]=0,new p(l)}(t,e);if(r==null)return null;var n=this.doPublic(r);if(n==null)return null;for(var s=n.toString(16),o=s.length,h=0;h<2*e-o;h++)s="0"+s;return s},i.prototype.setPrivate=function(t,e,r){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=R(t,16),this.e=parseInt(e,16),this.d=R(r,16)):console.error("Invalid RSA private key")},i.prototype.setPrivateEx=function(t,e,r,n,s,o,h,a){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=R(t,16),this.e=parseInt(e,16),this.d=R(r,16),this.p=R(n,16),this.q=R(s,16),this.dmp1=R(o,16),this.dmq1=R(h,16),this.coeff=R(a,16)):console.error("Invalid RSA private key")},i.prototype.generate=function(t,e){var r=new Rt,n=t>>1;this.e=parseInt(e,16);for(var s=new p(e,16);;){for(;this.p=new p(t-n,1,r),this.p.subtract(p.ONE).gcd(s).compareTo(p.ONE)!=0||!this.p.isProbablePrime(10););for(;this.q=new p(n,1,r),this.q.subtract(p.ONE).gcd(s).compareTo(p.ONE)!=0||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var h=this.p.subtract(p.ONE),a=this.q.subtract(p.ONE),c=h.multiply(a);if(c.gcd(s).compareTo(p.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(c),this.dmp1=this.d.mod(h),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},i.prototype.decrypt=function(t){var e=R(t,16),r=this.doPrivate(e);return r==null?null:function(n,s){for(var o=n.toByteArray(),h=0;h=o.length)return null;for(var a="";++h191&&c<224?(a+=String.fromCharCode((31&c)<<6|63&o[h+1]),++h):(a+=String.fromCharCode((15&c)<<12|(63&o[h+1])<<6|63&o[h+2]),h+=2)}return a}(r,this.n.bitLength()+7>>3)},i.prototype.generateAsync=function(t,e,r){var n=new Rt,s=t>>1;this.e=parseInt(e,16);var o=new p(e,16),h=this,a=function(){var c=function(){if(h.p.compareTo(h.q)<=0){var g=h.p;h.p=h.q,h.q=g}var B=h.p.subtract(p.ONE),b=h.q.subtract(p.ONE),y=B.multiply(b);y.gcd(o).compareTo(p.ONE)==0?(h.n=h.p.multiply(h.q),h.d=o.modInverse(y),h.dmp1=h.d.mod(B),h.dmq1=h.d.mod(b),h.coeff=h.q.modInverse(h.p),setTimeout(function(){r()},0)):setTimeout(a,0)},l=function(){h.q=d(),h.q.fromNumberAsync(s,1,n,function(){h.q.subtract(p.ONE).gcda(o,function(g){g.compareTo(p.ONE)==0&&h.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(l,0)})})},v=function(){h.p=d(),h.p.fromNumberAsync(t-s,1,n,function(){h.p.subtract(p.ONE).gcda(o,function(g){g.compareTo(p.ONE)==0&&h.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(v,0)})})};setTimeout(v,0)};setTimeout(a,0)},i.prototype.sign=function(t,e,r){var n=function(h,a){if(a15)throw"ASN.1 length too long to represent by 8x: n = "+i.toString(16);return(128+e).toString(16)+t},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},u.asn1.DERAbstractString=function(i){u.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},i!==void 0&&(typeof i=="string"?this.setString(i):i.str!==void 0?this.setString(i.str):i.hex!==void 0&&this.setStringHex(i.hex))},O.lang.extend(u.asn1.DERAbstractString,u.asn1.ASN1Object),u.asn1.DERAbstractTime=function(i){u.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,r){var n=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());e=="utc"&&(o=o.substr(2,2));var h=o+n(String(s.getMonth()+1),2)+n(String(s.getDate()),2)+n(String(s.getHours()),2)+n(String(s.getMinutes()),2)+n(String(s.getSeconds()),2);if(r===!0){var a=s.getMilliseconds();if(a!=0){var c=n(String(a),3);h=h+"."+(c=c.replace(/[0]+$/,""))}}return h+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,r,n,s,o){var h=new Date(Date.UTC(t,e-1,r,n,s,o,0));this.setByDate(h)},this.getFreshValueHex=function(){return this.hV}},O.lang.extend(u.asn1.DERAbstractTime,u.asn1.ASN1Object),u.asn1.DERAbstractStructured=function(i){u.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,i!==void 0&&i.array!==void 0&&(this.asn1Array=i.array)},O.lang.extend(u.asn1.DERAbstractStructured,u.asn1.ASN1Object),u.asn1.DERBoolean=function(){u.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},O.lang.extend(u.asn1.DERBoolean,u.asn1.ASN1Object),u.asn1.DERInteger=function(i){u.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=u.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new p(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},i!==void 0&&(i.bigint!==void 0?this.setByBigInteger(i.bigint):i.int!==void 0?this.setByInteger(i.int):typeof i=="number"?this.setByInteger(i):i.hex!==void 0&&this.setValueHex(i.hex))},O.lang.extend(u.asn1.DERInteger,u.asn1.ASN1Object),u.asn1.DERBitString=function(i){if(i!==void 0&&i.obj!==void 0){var t=u.asn1.ASN1Util.newObject(i.obj);i.hex="00"+t.getEncodedHex()}u.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,r){if(e<0||7=2?(P[P.length]=H,H=0,ut=0):H<<=4}}if(ut)throw new Error("Hex encoding incomplete: 4 bits missing");return P}(e):F.unarmor(e),o=Ut.decode(s);if(o.sub.length===3&&(o=o.sub[2].sub[0]),o.sub.length===9){r=o.sub[1].getHexStringValue(),this.n=R(r,16),n=o.sub[2].getHexStringValue(),this.e=parseInt(n,16);var h=o.sub[3].getHexStringValue();this.d=R(h,16);var a=o.sub[4].getHexStringValue();this.p=R(a,16);var c=o.sub[5].getHexStringValue();this.q=R(c,16);var l=o.sub[6].getHexStringValue();this.dmp1=R(l,16);var v=o.sub[7].getHexStringValue();this.dmq1=R(v,16);var g=o.sub[8].getHexStringValue();this.coeff=R(g,16)}else{if(o.sub.length!==2)return!1;if(o.sub[0].sub){var B=o.sub[1].sub[0];r=B.sub[0].getHexStringValue(),this.n=R(r,16),n=B.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else r=o.sub[0].getHexStringValue(),this.n=R(r,16),n=o.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new u.asn1.DERInteger({int:0}),new u.asn1.DERInteger({bigint:this.n}),new u.asn1.DERInteger({int:this.e}),new u.asn1.DERInteger({bigint:this.d}),new u.asn1.DERInteger({bigint:this.p}),new u.asn1.DERInteger({bigint:this.q}),new u.asn1.DERInteger({bigint:this.dmp1}),new u.asn1.DERInteger({bigint:this.dmq1}),new u.asn1.DERInteger({bigint:this.coeff})]};return new u.asn1.DERSequence(e).getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return A(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new u.asn1.DERSequence({array:[new u.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new u.asn1.DERNull]}),r=new u.asn1.DERSequence({array:[new u.asn1.DERInteger({bigint:this.n}),new u.asn1.DERInteger({int:this.e})]}),n=new u.asn1.DERBitString({hex:"00"+r.getEncodedHex()});return new u.asn1.DERSequence({array:[e,n]}).getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return A(this.getPublicBaseKey())},t.wordwrap=function(e,r){if(!e)return e;var n="(.{1,"+(r=r||64)+`})( +|$ +?)|(.{1,`+r+"})";return e.match(RegExp(n,"g")).join(` +`)},t.prototype.getPrivateKey=function(){var e=`-----BEGIN RSA PRIVATE KEY----- +`;return(e+=t.wordwrap(this.getPrivateBaseKeyB64())+` +`)+"-----END RSA PRIVATE KEY-----"},t.prototype.getPublicKey=function(){var e=`-----BEGIN PUBLIC KEY----- +`;return(e+=t.wordwrap(this.getPublicBaseKeyB64())+` +`)+"-----END PUBLIC KEY-----"},t.hasPublicKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}($t),Lt=S(155),Wt=Lt!==void 0?(qt=Lt.env)===null||qt===void 0?void 0:"3.3.1":void 0;const Xt=function(){function i(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return i.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new jt(t)},i.prototype.setPrivateKey=function(t){this.setKey(t)},i.prototype.setPublicKey=function(t){this.setKey(t)},i.prototype.decrypt=function(t){try{return this.getKey().decrypt(q(t))}catch{return!1}},i.prototype.encrypt=function(t){try{return A(this.getKey().encrypt(t))}catch{return!1}},i.prototype.sign=function(t,e,r){try{return A(this.getKey().sign(t,e,r))}catch{return!1}},i.prototype.verify=function(t,e,r){try{return this.getKey().verify(t,q(e),r)}catch{return!1}},i.prototype.getKey=function(t){if(!this.key){if(this.key=new jt,t&&{}.toString.call(t)==="[object Function]")return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},i.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},i.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},i.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},i.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},i.version=Wt,i}()})(),mt.default})())})(Kt);const Ft=Kt.exports,ce=`MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKoR8mX0rGKLqzcWmOzbfj64K8ZIgOdH +nzkXSOVOZbFu/TJhZ7rFAN+eaGkl3C4buccQd/EjEsj9ir7ijT7h96MCAwEAAQ==`,le=`MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAqhHyZfSsYourNxaY +7Nt+PrgrxkiA50efORdI5U5lsW79MmFnusUA355oaSXcLhu5xxB38SMSyP2KvuKN +PuH3owIDAQABAkAfoiLyL+Z4lf4Myxk6xUDgLaWGximj20CUf+5BKKnlrK+Ed8gA +kM0HqoTt2UZwA5E2MzS4EI2gjfQhz5X28uqxAiEA3wNFxfrCZlSZHb0gn2zDpWow +cSxQAgiCstxGUoOqlW8CIQDDOerGKH5OmCJ4Z21v+F25WaHYPxCFMvwxpcw99Ecv +DQIgIdhDTIqD2jfYjPTY8Jj3EDGPbH2HHuffvflECt3Ek60CIQCFRlCkHpi7hthh +YhovyloRYsM+IS9h/0BzlEAuO0ktMQIgSPT3aFAgJYwKpqRYKlLDVcflZFCKY7u3 +UP8iWi1Qw0Y=`;function fe(G){const X=new Ft;return X.setPublicKey(ce),X.encrypt(G)}function pe(G){const X=new Ft;return X.setPrivateKey(le),X.decrypt(G)}const At=G=>(he("data-v-bd1dd605"),G=G(),ae(),G),ge={class:"login"},de=At(()=>ot("h1",{class:"title"},"\u9752\u5C9B\u673A\u573A\u65E0\u4EBA\u9A7E\u9A76\u8F66\u8F86\u534F\u540C\u4E91\u5E73\u53F0",-1)),me=At(()=>ot("div",{class:"login-title"},"\u767B\u5F55",-1)),ve=At(()=>ot("div",{class:"form-label"},"\u8D26\u53F7",-1)),ye=At(()=>ot("div",{class:"form-label"},"\u5BC6\u7801",-1)),be={key:0,class:"form-label"},Te={class:"captcha-container"},Se={class:"login-code"},we=["src"],Ee={key:0},De={key:1},xe={key:0,style:{float:"right"}},Ae={__name:"login",setup(G){const X=re(),dt=ie(),{proxy:ht}=ue(),S=ct({username:"admin",password:"admin123",rememberMe:!1,code:"",uuid:""}),mt={username:[{required:!0,trigger:"blur",message:"\u8BF7\u8F93\u5165\u60A8\u7684\u8D26\u53F7"}],password:[{required:!0,trigger:"blur",message:"\u8BF7\u8F93\u5165\u60A8\u7684\u5BC6\u7801"}],code:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},x=ct(""),D=ct(!1),m=ct(!0),w=ct(!1),tt=ct(void 0);function Q(){ht.$refs.loginRef.validate(T=>{T&&(D.value=!0,S.value.rememberMe?(W.set("username",S.value.username,{expires:30}),W.set("password",fe(S.value.password),{expires:30}),W.set("rememberMe",S.value.rememberMe,{expires:30})):(W.remove("username"),W.remove("password"),W.remove("rememberMe")),X.login(S.value).then(()=>{dt.push({path:tt.value||"/"})}).catch(()=>{D.value=!1,m.value&&et()}))})}function et(){ne().then(T=>{m.value=T.captchaEnabled===void 0?!0:T.captchaEnabled,m.value&&(x.value="data:image/gif;base64,"+T.img,S.value.uuid=T.uuid)})}function M(){const T=W.get("username"),A=W.get("password"),q=W.get("rememberMe");S.value={username:T===void 0?S.value.username:T,password:A===void 0?S.value.password:pe(A),rememberMe:q===void 0?!1:Boolean(q)}}return et(),M(),(T,A)=>{const q=st("svg-icon"),j=st("el-input"),F=st("el-form-item"),U=st("el-checkbox"),N=st("el-button"),I=st("router-link"),L=st("el-form");return lt(),gt("div",ge,[de,k(L,{ref:"loginRef",model:C(S),rules:mt,class:"login-form"},{default:Y(()=>[me,ve,k(F,{prop:"username"},{default:Y(()=>[k(j,{modelValue:C(S).username,"onUpdate:modelValue":A[0]||(A[0]=E=>C(S).username=E),type:"text",size:"large","auto-complete":"off",placeholder:"\u8BF7\u8F93\u5165\u8D26\u53F7"},{prefix:Y(()=>[k(q,{"icon-class":"user",class:"el-input__icon input-icon"})]),_:1},8,["modelValue"])]),_:1}),ye,k(F,{prop:"password"},{default:Y(()=>[k(j,{modelValue:C(S).password,"onUpdate:modelValue":A[1]||(A[1]=E=>C(S).password=E),type:"password",size:"large","auto-complete":"off",placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",onKeyup:Ht(Q,["enter"])},{prefix:Y(()=>[k(q,{"icon-class":"password",class:"el-input__icon input-icon"})]),_:1},8,["modelValue","onKeyup"])]),_:1}),C(m)?(lt(),gt("div",be,"\u9A8C\u8BC1\u7801")):It("",!0),C(m)?(lt(),se(F,{key:1,prop:"code"},{default:Y(()=>[ot("div",Te,[k(j,{modelValue:C(S).code,"onUpdate:modelValue":A[2]||(A[2]=E=>C(S).code=E),size:"large","auto-complete":"off",placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",onKeyup:Ht(Q,["enter"])},{prefix:Y(()=>[k(q,{"icon-class":"validCode",class:"el-input__icon input-icon"})]),_:1},8,["modelValue","onKeyup"]),ot("div",Se,[ot("img",{src:C(x),onClick:et,class:"login-code-img"},null,8,we)])])]),_:1})):It("",!0),k(U,{modelValue:C(S).rememberMe,"onUpdate:modelValue":A[3]||(A[3]=E=>C(S).rememberMe=E),class:"remember-me"},{default:Y(()=>[kt("\u8BB0\u4F4F\u5BC6\u7801")]),_:1},8,["modelValue"]),k(F,{style:{width:"100%"}},{default:Y(()=>[k(N,{loading:C(D),size:"large",type:"primary",class:"login-button",onClick:oe(Q,["prevent"])},{default:Y(()=>[C(D)?(lt(),gt("span",De,"\u767B \u5F55 \u4E2D...")):(lt(),gt("span",Ee,"\u767B \u5F55"))]),_:1},8,["loading","onClick"]),C(w)?(lt(),gt("div",xe,[k(I,{class:"link-type",to:"/register"},{default:Y(()=>[kt("\u7ACB\u5373\u6CE8\u518C")]),_:1})])):It("",!0)]),_:1})]),_:1},8,["model"])])}}},Ve=ee(Ae,[["__scopeId","data-v-bd1dd605"]]);export{Ve as default}; diff --git a/airport/assets/login.4ceff1c2.js.gz b/airport/assets/login.4ceff1c2.js.gz new file mode 100644 index 0000000..49ee1c5 Binary files /dev/null and b/airport/assets/login.4ceff1c2.js.gz differ diff --git a/airport/assets/login.76af7e00.css b/airport/assets/login.76af7e00.css new file mode 100644 index 0000000..a8beb0e --- /dev/null +++ b/airport/assets/login.76af7e00.css @@ -0,0 +1 @@ +.login[data-v-bd1dd605]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;background-image:url(/airport/assets/login-background.295946ae.png);background-size:100% 100%}.title[data-v-bd1dd605]{margin:0 auto 30px;text-align:center;color:#fff;font-size:48px;font-weight:400}.login-title[data-v-bd1dd605]{color:#fff;font-size:36px;font-weight:400;margin-bottom:30px;display:inline-block;border-bottom:1px solid rgba(255,255,255,.2)}.form-label[data-v-bd1dd605]{color:#fff;font-size:16px;margin-bottom:10px;text-align:left}.login-form[data-v-bd1dd605]{border-radius:8px;background:rgba(41,44,56,.8);box-shadow:0 0 20px #00000080;width:636px;padding:40px 60px}.login-form .el-form-item[data-v-bd1dd605]{margin-bottom:25px}.login-form .el-input[data-v-bd1dd605]{height:56px}.login-form .el-input[data-v-bd1dd605] .el-input__wrapper{background-color:#ffffff1a;box-shadow:none;border-radius:4px;padding:0 15px;height:56px!important;line-height:56px}.login-form .el-input[data-v-bd1dd605] .el-input__inner{color:#fff;height:56px;line-height:56px;font-size:16px}.login-form .el-input input[data-v-bd1dd605]{height:56px}.login-form .input-icon[data-v-bd1dd605]{height:56px;width:20px;margin-right:10px;color:#ffffffb3}.captcha-container[data-v-bd1dd605]{width:100%;display:flex;align-items:center;gap:10px;justify-content:space-between}.captcha-container .el-input[data-v-bd1dd605]{flex:1}.captcha-container .el-input[data-v-bd1dd605] .el-input__wrapper,.login-code[data-v-bd1dd605]{height:56px}.login-code img[data-v-bd1dd605]{cursor:pointer;height:56px;width:100%;object-fit:cover;border-radius:4px}.remember-me[data-v-bd1dd605]{color:#fff;margin-bottom:25px}.login-button[data-v-bd1dd605]{height:56px;font-size:18px;background-color:#347ae2!important;border-color:#347ae2!important;width:100%;margin-top:10px}.link-type[data-v-bd1dd605]{color:#347ae2} diff --git a/airport/assets/login.76af7e00.css.gz b/airport/assets/login.76af7e00.css.gz new file mode 100644 index 0000000..ea15c8b Binary files /dev/null and b/airport/assets/login.76af7e00.css.gz differ diff --git a/airport/assets/logininfor.1258c2cb.js b/airport/assets/logininfor.1258c2cb.js new file mode 100644 index 0000000..ffce0e9 --- /dev/null +++ b/airport/assets/logininfor.1258c2cb.js @@ -0,0 +1 @@ +const o="/airport/assets/logininfor.9f779b90.svg";export{o as default}; diff --git a/airport/assets/logininfor.9f779b90.svg b/airport/assets/logininfor.9f779b90.svg new file mode 100644 index 0000000..267f844 --- /dev/null +++ b/airport/assets/logininfor.9f779b90.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/logo.67834c77.png b/airport/assets/logo.67834c77.png new file mode 100644 index 0000000..e263760 Binary files /dev/null and b/airport/assets/logo.67834c77.png differ diff --git a/airport/assets/manager.4e506c5f.js b/airport/assets/manager.4e506c5f.js new file mode 100644 index 0000000..c94d221 --- /dev/null +++ b/airport/assets/manager.4e506c5f.js @@ -0,0 +1 @@ +import{L as t}from"./index.79832097.js";function n(e){return t({url:`/api/vehicle-manager/tasks/${encodeURIComponent(e)}`,method:"get"})}function r(e){return t({url:`/api/vehicle-manager/vehicles/${encodeURIComponent(e)}/battery`,method:"get"})}export{r as a,n as g}; diff --git a/airport/assets/map.bc12a339.png b/airport/assets/map.bc12a339.png new file mode 100644 index 0000000..10ce951 Binary files /dev/null and b/airport/assets/map.bc12a339.png differ diff --git a/airport/assets/menu.d7f9bfd6.js b/airport/assets/menu.d7f9bfd6.js new file mode 100644 index 0000000..fb3c966 --- /dev/null +++ b/airport/assets/menu.d7f9bfd6.js @@ -0,0 +1 @@ +import{L as t}from"./index.79832097.js";function n(e){return t({url:"/system/menu/list",method:"get",params:e})}function r(e){return t({url:"/system/menu/"+e,method:"get"})}function s(){return t({url:"/system/menu/treeselect",method:"get"})}function m(e){return t({url:"/system/menu/roleMenuTreeselect/"+e,method:"get"})}function o(e){return t({url:"/system/menu",method:"post",data:e})}function l(e){return t({url:"/system/menu",method:"put",data:e})}function a(e){return t({url:"/system/menu/"+e,method:"delete"})}export{o as a,a as d,r as g,n as l,m as r,s as t,l as u}; diff --git a/airport/assets/message.082e45f4.js b/airport/assets/message.082e45f4.js new file mode 100644 index 0000000..a69a77c --- /dev/null +++ b/airport/assets/message.082e45f4.js @@ -0,0 +1 @@ +const s="/airport/assets/message.cb1eb2d5.svg";export{s as default}; diff --git a/airport/assets/message.cb1eb2d5.svg b/airport/assets/message.cb1eb2d5.svg new file mode 100644 index 0000000..14ca817 --- /dev/null +++ b/airport/assets/message.cb1eb2d5.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/money.1bcf65d6.js b/airport/assets/money.1bcf65d6.js new file mode 100644 index 0000000..4f6e6db --- /dev/null +++ b/airport/assets/money.1bcf65d6.js @@ -0,0 +1 @@ +const s="/airport/assets/money.ba9bc644.svg";export{s as default}; diff --git a/airport/assets/money.ba9bc644.svg b/airport/assets/money.ba9bc644.svg new file mode 100644 index 0000000..c1580de --- /dev/null +++ b/airport/assets/money.ba9bc644.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/monitor.0ec037be.svg b/airport/assets/monitor.0ec037be.svg new file mode 100644 index 0000000..bc308cb --- /dev/null +++ b/airport/assets/monitor.0ec037be.svg @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/airport/assets/monitor.16d358a5.js b/airport/assets/monitor.16d358a5.js new file mode 100644 index 0000000..d6c289e --- /dev/null +++ b/airport/assets/monitor.16d358a5.js @@ -0,0 +1 @@ +const o="/airport/assets/monitor.0ec037be.svg";export{o as default}; diff --git a/airport/assets/nested.0325dcc4.js b/airport/assets/nested.0325dcc4.js new file mode 100644 index 0000000..a16c0d0 --- /dev/null +++ b/airport/assets/nested.0325dcc4.js @@ -0,0 +1 @@ +const s="/airport/assets/nested.d8786b25.svg";export{s as default}; diff --git a/airport/assets/nested.d8786b25.svg b/airport/assets/nested.d8786b25.svg new file mode 100644 index 0000000..06713a8 --- /dev/null +++ b/airport/assets/nested.d8786b25.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/noPeopleCar.fbc855da.svg b/airport/assets/noPeopleCar.fbc855da.svg new file mode 100644 index 0000000..38a42f4 --- /dev/null +++ b/airport/assets/noPeopleCar.fbc855da.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/number.63af79ba.js b/airport/assets/number.63af79ba.js new file mode 100644 index 0000000..5ed7d98 --- /dev/null +++ b/airport/assets/number.63af79ba.js @@ -0,0 +1 @@ +const e="/airport/assets/number.674e5424.svg";export{e as default}; diff --git a/airport/assets/number.674e5424.svg b/airport/assets/number.674e5424.svg new file mode 100644 index 0000000..ad5ce9a --- /dev/null +++ b/airport/assets/number.674e5424.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/offline_car.b6d879a9.png b/airport/assets/offline_car.b6d879a9.png new file mode 100644 index 0000000..bd3038a Binary files /dev/null and b/airport/assets/offline_car.b6d879a9.png differ diff --git a/airport/assets/online.0bccf30b.js b/airport/assets/online.0bccf30b.js new file mode 100644 index 0000000..dbe6f2e --- /dev/null +++ b/airport/assets/online.0bccf30b.js @@ -0,0 +1 @@ +const e="/airport/assets/online.5f3e51bc.svg";export{e as default}; diff --git a/airport/assets/online.5f3e51bc.svg b/airport/assets/online.5f3e51bc.svg new file mode 100644 index 0000000..330a202 --- /dev/null +++ b/airport/assets/online.5f3e51bc.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/online_car.75a67313.png b/airport/assets/online_car.75a67313.png new file mode 100644 index 0000000..1f637eb Binary files /dev/null and b/airport/assets/online_car.75a67313.png differ diff --git a/airport/assets/password.4f940edf.js b/airport/assets/password.4f940edf.js new file mode 100644 index 0000000..0a75a30 --- /dev/null +++ b/airport/assets/password.4f940edf.js @@ -0,0 +1 @@ +const s="/airport/assets/password.bd1617ac.svg";export{s as default}; diff --git a/airport/assets/password.bd1617ac.svg b/airport/assets/password.bd1617ac.svg new file mode 100644 index 0000000..6c64def --- /dev/null +++ b/airport/assets/password.bd1617ac.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/pdf.53cff26e.js b/airport/assets/pdf.53cff26e.js new file mode 100644 index 0000000..9136bb8 --- /dev/null +++ b/airport/assets/pdf.53cff26e.js @@ -0,0 +1 @@ +const s="/airport/assets/pdf.77bd44ca.svg";export{s as default}; diff --git a/airport/assets/pdf.77bd44ca.svg b/airport/assets/pdf.77bd44ca.svg new file mode 100644 index 0000000..957aa0c --- /dev/null +++ b/airport/assets/pdf.77bd44ca.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/people.87963c2b.js b/airport/assets/people.87963c2b.js new file mode 100644 index 0000000..7ce72e6 --- /dev/null +++ b/airport/assets/people.87963c2b.js @@ -0,0 +1 @@ +const e="/airport/assets/people.be8c31f9.svg";export{e as default}; diff --git a/airport/assets/people.be8c31f9.svg b/airport/assets/people.be8c31f9.svg new file mode 100644 index 0000000..2bd54ae --- /dev/null +++ b/airport/assets/people.be8c31f9.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/peoples.0e6279eb.js b/airport/assets/peoples.0e6279eb.js new file mode 100644 index 0000000..cde6e21 --- /dev/null +++ b/airport/assets/peoples.0e6279eb.js @@ -0,0 +1 @@ +const e="/airport/assets/peoples.8b86ef22.svg";export{e as default}; diff --git a/airport/assets/peoples.8b86ef22.svg b/airport/assets/peoples.8b86ef22.svg new file mode 100644 index 0000000..aab852e --- /dev/null +++ b/airport/assets/peoples.8b86ef22.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/phone.5ce31124.js b/airport/assets/phone.5ce31124.js new file mode 100644 index 0000000..46b40c3 --- /dev/null +++ b/airport/assets/phone.5ce31124.js @@ -0,0 +1 @@ +const s="/airport/assets/phone.a711d14f.svg";export{s as default}; diff --git a/airport/assets/phone.a711d14f.svg b/airport/assets/phone.a711d14f.svg new file mode 100644 index 0000000..ab8e8c4 --- /dev/null +++ b/airport/assets/phone.a711d14f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/post.19463d24.svg b/airport/assets/post.19463d24.svg new file mode 100644 index 0000000..2922c61 --- /dev/null +++ b/airport/assets/post.19463d24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/post.8daa8f25.js b/airport/assets/post.8daa8f25.js new file mode 100644 index 0000000..aa81b36 --- /dev/null +++ b/airport/assets/post.8daa8f25.js @@ -0,0 +1 @@ +const s="/airport/assets/post.19463d24.svg";export{s as default}; diff --git a/airport/assets/profile.61408500.jpg b/airport/assets/profile.61408500.jpg new file mode 100644 index 0000000..b3a940b Binary files /dev/null and b/airport/assets/profile.61408500.jpg differ diff --git a/airport/assets/qq.74ce5ed3.js b/airport/assets/qq.74ce5ed3.js new file mode 100644 index 0000000..75f242a --- /dev/null +++ b/airport/assets/qq.74ce5ed3.js @@ -0,0 +1 @@ +const s="/airport/assets/qq.9e3df35a.svg";export{s as default}; diff --git a/airport/assets/qq.9e3df35a.svg b/airport/assets/qq.9e3df35a.svg new file mode 100644 index 0000000..ee13d4e --- /dev/null +++ b/airport/assets/qq.9e3df35a.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/question.0a0bd91d.svg b/airport/assets/question.0a0bd91d.svg new file mode 100644 index 0000000..cf75bd4 --- /dev/null +++ b/airport/assets/question.0a0bd91d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/question.0c8624b9.js b/airport/assets/question.0c8624b9.js new file mode 100644 index 0000000..d2dc54b --- /dev/null +++ b/airport/assets/question.0c8624b9.js @@ -0,0 +1 @@ +const s="/airport/assets/question.0a0bd91d.svg";export{s as default}; diff --git a/airport/assets/radio.30b8b47c.svg b/airport/assets/radio.30b8b47c.svg new file mode 100644 index 0000000..0cde345 --- /dev/null +++ b/airport/assets/radio.30b8b47c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/radio.d6beef62.js b/airport/assets/radio.d6beef62.js new file mode 100644 index 0000000..5eab62c --- /dev/null +++ b/airport/assets/radio.d6beef62.js @@ -0,0 +1 @@ +const a="/airport/assets/radio.30b8b47c.svg";export{a as default}; diff --git a/airport/assets/rate.2822f76c.svg b/airport/assets/rate.2822f76c.svg new file mode 100644 index 0000000..aa3b14d --- /dev/null +++ b/airport/assets/rate.2822f76c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/rate.4a8dcd58.js b/airport/assets/rate.4a8dcd58.js new file mode 100644 index 0000000..05850a2 --- /dev/null +++ b/airport/assets/rate.4a8dcd58.js @@ -0,0 +1 @@ +const t="/airport/assets/rate.2822f76c.svg";export{t as default}; diff --git a/airport/assets/red.892fd06c.svg b/airport/assets/red.892fd06c.svg new file mode 100644 index 0000000..9a0e2b9 --- /dev/null +++ b/airport/assets/red.892fd06c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/redis-list.1edbb4ff.js b/airport/assets/redis-list.1edbb4ff.js new file mode 100644 index 0000000..df4a3a1 --- /dev/null +++ b/airport/assets/redis-list.1edbb4ff.js @@ -0,0 +1 @@ +const s="/airport/assets/redis-list.eb03f8cd.svg";export{s as default}; diff --git a/airport/assets/redis-list.eb03f8cd.svg b/airport/assets/redis-list.eb03f8cd.svg new file mode 100644 index 0000000..98a15b2 --- /dev/null +++ b/airport/assets/redis-list.eb03f8cd.svg @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/airport/assets/redis.219b773c.svg b/airport/assets/redis.219b773c.svg new file mode 100644 index 0000000..2f1d62d --- /dev/null +++ b/airport/assets/redis.219b773c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/redis.615d741a.js b/airport/assets/redis.615d741a.js new file mode 100644 index 0000000..cfe3082 --- /dev/null +++ b/airport/assets/redis.615d741a.js @@ -0,0 +1 @@ +const s="/airport/assets/redis.219b773c.svg";export{s as default}; diff --git a/airport/assets/register.0c8d718f.css b/airport/assets/register.0c8d718f.css new file mode 100644 index 0000000..94294ba --- /dev/null +++ b/airport/assets/register.0c8d718f.css @@ -0,0 +1 @@ +.register[data-v-633d4fe5]{display:flex;justify-content:center;align-items:center;height:100%;background-image:url(../assets/images/login-background.jpg);background-size:cover}.title[data-v-633d4fe5]{margin:0 auto 30px;text-align:center;color:#707070}.register-form[data-v-633d4fe5]{border-radius:6px;background:#ffffff;width:400px;padding:25px 25px 5px}.register-form .el-input[data-v-633d4fe5],.register-form .el-input input[data-v-633d4fe5]{height:40px}.register-form .input-icon[data-v-633d4fe5]{height:39px;width:14px;margin-left:0}.register-tip[data-v-633d4fe5]{font-size:13px;text-align:center;color:#bfbfbf}.register-code[data-v-633d4fe5]{width:33%;height:40px;float:right}.register-code img[data-v-633d4fe5]{cursor:pointer;vertical-align:middle}.el-register-footer[data-v-633d4fe5]{height:40px;line-height:40px;position:fixed;bottom:0;width:100%;text-align:center;color:#fff;font-family:Arial;font-size:12px;letter-spacing:1px}.register-code-img[data-v-633d4fe5]{height:40px;padding-left:12px} diff --git a/airport/assets/register.ba332f30.js b/airport/assets/register.ba332f30.js new file mode 100644 index 0000000..5194965 --- /dev/null +++ b/airport/assets/register.ba332f30.js @@ -0,0 +1 @@ +import{_ as K,r as g,d as i,o as f,c as y,e,w as t,f as s,a as P,g as I,i as v,k as U,l as w,j as z,n as B,m as R,t as N,E as S,p as T,q as M,s as $}from"./index.79832097.js";const j=u=>(T("data-v-633d4fe5"),u=u(),M(),u),F={class:"register"},H=j(()=>w("h3",{class:"title"},"\u9752\u5C9B\u673A\u573A\u65E0\u4EBA\u9A7E\u9A76\u8F66\u8F86\u534F\u540C\u4E91\u5E73\u53F0",-1)),L={class:"register-code"},A=["src"],D={key:0},G={key:1},J={style:{float:"right"}},O={__name:"register",setup(u){const x=P(),{proxy:k}=$(),o=g({username:"",password:"",confirmPassword:"",code:"",uuid:""}),b={username:[{required:!0,trigger:"blur",message:"\u8BF7\u8F93\u5165\u60A8\u7684\u8D26\u53F7"},{min:2,max:20,message:"\u7528\u6237\u8D26\u53F7\u957F\u5EA6\u5FC5\u987B\u4ECB\u4E8E 2 \u548C 20 \u4E4B\u95F4",trigger:"blur"}],password:[{required:!0,trigger:"blur",message:"\u8BF7\u8F93\u5165\u60A8\u7684\u5BC6\u7801"},{min:5,max:20,message:"\u7528\u6237\u5BC6\u7801\u957F\u5EA6\u5FC5\u987B\u4ECB\u4E8E 5 \u548C 20 \u4E4B\u95F4",trigger:"blur"}],confirmPassword:[{required:!0,trigger:"blur",message:"\u8BF7\u518D\u6B21\u8F93\u5165\u60A8\u7684\u5BC6\u7801"},{required:!0,validator:(n,r,a)=>{o.value.password!==r?a(new Error("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4")):a()},trigger:"blur"}],code:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},V=g(""),c=g(!1),p=g(!0);function m(){k.$refs.registerRef.validate(n=>{n&&(c.value=!0,N(o.value).then(r=>{const a=o.value.username;S.alert("\u606D\u559C\u4F60\uFF0C\u60A8\u7684\u8D26\u53F7 "+a+" \u6CE8\u518C\u6210\u529F\uFF01","\u7CFB\u7EDF\u63D0\u793A",{dangerouslyUseHTMLString:!0,type:"success"}).then(()=>{x.push("/login")}).catch(()=>{})}).catch(()=>{c.value=!1,p&&h()}))})}function h(){I().then(n=>{p.value=n.captchaEnabled===void 0?!0:n.captchaEnabled,p.value&&(V.value="data:image/gif;base64,"+n.img,o.value.uuid=n.uuid)})}return h(),(n,r)=>{const a=i("svg-icon"),_=i("el-input"),d=i("el-form-item"),C=i("el-button"),q=i("router-link"),E=i("el-form");return f(),y("div",F,[e(E,{ref:"registerRef",model:s(o),rules:b,class:"register-form"},{default:t(()=>[H,e(d,{prop:"username"},{default:t(()=>[e(_,{modelValue:s(o).username,"onUpdate:modelValue":r[0]||(r[0]=l=>s(o).username=l),type:"text",size:"large","auto-complete":"off",placeholder:"\u8D26\u53F7"},{prefix:t(()=>[e(a,{"icon-class":"user",class:"el-input__icon input-icon"})]),_:1},8,["modelValue"])]),_:1}),e(d,{prop:"password"},{default:t(()=>[e(_,{modelValue:s(o).password,"onUpdate:modelValue":r[1]||(r[1]=l=>s(o).password=l),type:"password",size:"large","auto-complete":"off",placeholder:"\u5BC6\u7801",onKeyup:v(m,["enter"])},{prefix:t(()=>[e(a,{"icon-class":"password",class:"el-input__icon input-icon"})]),_:1},8,["modelValue","onKeyup"])]),_:1}),e(d,{prop:"confirmPassword"},{default:t(()=>[e(_,{modelValue:s(o).confirmPassword,"onUpdate:modelValue":r[2]||(r[2]=l=>s(o).confirmPassword=l),type:"password",size:"large","auto-complete":"off",placeholder:"\u786E\u8BA4\u5BC6\u7801",onKeyup:v(m,["enter"])},{prefix:t(()=>[e(a,{"icon-class":"password",class:"el-input__icon input-icon"})]),_:1},8,["modelValue","onKeyup"])]),_:1}),s(p)?(f(),U(d,{key:0,prop:"code"},{default:t(()=>[e(_,{size:"large",modelValue:s(o).code,"onUpdate:modelValue":r[3]||(r[3]=l=>s(o).code=l),"auto-complete":"off",placeholder:"\u9A8C\u8BC1\u7801",style:{width:"63%"},onKeyup:v(m,["enter"])},{prefix:t(()=>[e(a,{"icon-class":"validCode",class:"el-input__icon input-icon"})]),_:1},8,["modelValue","onKeyup"]),w("div",L,[w("img",{src:s(V),onClick:h,class:"register-code-img"},null,8,A)])]),_:1})):z("",!0),e(d,{style:{width:"100%"}},{default:t(()=>[e(C,{loading:s(c),size:"large",type:"primary",style:{width:"100%"},onClick:B(m,["prevent"])},{default:t(()=>[s(c)?(f(),y("span",G,"\u6CE8 \u518C \u4E2D...")):(f(),y("span",D,"\u6CE8 \u518C"))]),_:1},8,["loading","onClick"]),w("div",J,[e(q,{class:"link-type",to:"/login"},{default:t(()=>[R("\u4F7F\u7528\u5DF2\u6709\u8D26\u6237\u767B\u5F55")]),_:1})])]),_:1})]),_:1},8,["model"])])}}},X=K(O,[["__scopeId","data-v-633d4fe5"]]);export{X as default}; diff --git a/airport/assets/register.ba332f30.js.gz b/airport/assets/register.ba332f30.js.gz new file mode 100644 index 0000000..c973780 Binary files /dev/null and b/airport/assets/register.ba332f30.js.gz differ diff --git a/airport/assets/resetPwd.d6a4bddd.js b/airport/assets/resetPwd.d6a4bddd.js new file mode 100644 index 0000000..b81d8e5 --- /dev/null +++ b/airport/assets/resetPwd.d6a4bddd.js @@ -0,0 +1 @@ +import{f as _}from"./user.72b5bfe4.js";import{a6 as g,r as b,d as n,o as V,k as x,w as l,e as r,f as s,m as w,s as y}from"./index.79832097.js";const v={__name:"resetPwd",setup(q){const{proxy:u}=y(),e=g({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),i=b({oldPassword:[{required:!0,message:"\u65E7\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],newPassword:[{required:!0,message:"\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"},{min:6,max:20,message:"\u957F\u5EA6\u5728 6 \u5230 20 \u4E2A\u5B57\u7B26",trigger:"blur"}],confirmPassword:[{required:!0,message:"\u786E\u8BA4\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"},{required:!0,validator:(m,o,a)=>{e.newPassword!==o?a(new Error("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4")):a()},trigger:"blur"}]});function f(){u.$refs.pwdRef.validate(m=>{m&&_(e.oldPassword,e.newPassword).then(o=>{u.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F")})})}function c(){u.$tab.closePage()}return(m,o)=>{const a=n("el-input"),t=n("el-form-item"),p=n("el-button"),P=n("el-form");return V(),x(P,{ref:"pwdRef",model:s(e),rules:s(i),"label-width":"80px"},{default:l(()=>[r(t,{label:"\u65E7\u5BC6\u7801",prop:"oldPassword"},{default:l(()=>[r(a,{modelValue:s(e).oldPassword,"onUpdate:modelValue":o[0]||(o[0]=d=>s(e).oldPassword=d),placeholder:"\u8BF7\u8F93\u5165\u65E7\u5BC6\u7801",type:"password","show-password":""},null,8,["modelValue"])]),_:1}),r(t,{label:"\u65B0\u5BC6\u7801",prop:"newPassword"},{default:l(()=>[r(a,{modelValue:s(e).newPassword,"onUpdate:modelValue":o[1]||(o[1]=d=>s(e).newPassword=d),placeholder:"\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801",type:"password","show-password":""},null,8,["modelValue"])]),_:1}),r(t,{label:"\u786E\u8BA4\u5BC6\u7801",prop:"confirmPassword"},{default:l(()=>[r(a,{modelValue:s(e).confirmPassword,"onUpdate:modelValue":o[2]||(o[2]=d=>s(e).confirmPassword=d),placeholder:"\u8BF7\u786E\u8BA4\u65B0\u5BC6\u7801",type:"password","show-password":""},null,8,["modelValue"])]),_:1}),r(t,null,{default:l(()=>[r(p,{type:"primary",onClick:f},{default:l(()=>[w("\u4FDD\u5B58")]),_:1}),r(p,{type:"danger",onClick:c},{default:l(()=>[w("\u5173\u95ED")]),_:1})]),_:1})]),_:1},8,["model","rules"])}}};export{v as default}; diff --git a/airport/assets/resetPwd.d6a4bddd.js.gz b/airport/assets/resetPwd.d6a4bddd.js.gz new file mode 100644 index 0000000..3d53770 Binary files /dev/null and b/airport/assets/resetPwd.d6a4bddd.js.gz differ diff --git a/airport/assets/right_arrow.8a526dd7.png b/airport/assets/right_arrow.8a526dd7.png new file mode 100644 index 0000000..f86115b Binary files /dev/null and b/airport/assets/right_arrow.8a526dd7.png differ diff --git a/airport/assets/road.bae2eb4d.png b/airport/assets/road.bae2eb4d.png new file mode 100644 index 0000000..2abf971 Binary files /dev/null and b/airport/assets/road.bae2eb4d.png differ diff --git a/airport/assets/role.9b221df4.js b/airport/assets/role.9b221df4.js new file mode 100644 index 0000000..935c107 --- /dev/null +++ b/airport/assets/role.9b221df4.js @@ -0,0 +1 @@ +import{L as t}from"./index.79832097.js";function s(e){return t({url:"/system/role/list",method:"get",params:e})}function a(e){return t({url:"/system/role/"+e,method:"get"})}function l(e){return t({url:"/system/role/users/"+e,method:"get"})}function u(e){return t({url:"/system/role",method:"post",data:e})}function o(e){return t({url:"/system/role",method:"put",data:e})}function n(e){return t({url:"/system/role/dataScope",method:"put",data:e})}function m(e){return t({url:"/system/role/"+e,method:"delete"})}function c(e){return t({url:"/system/role/authUser/allocatedList",method:"get",params:e})}function d(e){return t({url:"/system/role/authUser/unallocatedList",method:"get",params:e})}function h(e){return t({url:"/system/role/authUser/cancel",method:"put",data:e})}function i(e){return t({url:"/system/role/authUser/cancelAll",method:"put",params:e})}function p(e){return t({url:"/system/role/authUser/selectAll",method:"put",params:e})}export{u as a,n as b,c,m as d,h as e,i as f,a as g,d as h,p as i,l as j,s as l,o as u}; diff --git a/airport/assets/role.9b221df4.js.gz b/airport/assets/role.9b221df4.js.gz new file mode 100644 index 0000000..bc1c734 Binary files /dev/null and b/airport/assets/role.9b221df4.js.gz differ diff --git a/airport/assets/row.1bd8ad7e.js b/airport/assets/row.1bd8ad7e.js new file mode 100644 index 0000000..bcd128a --- /dev/null +++ b/airport/assets/row.1bd8ad7e.js @@ -0,0 +1 @@ +const s="/airport/assets/row.55339924.svg";export{s as default}; diff --git a/airport/assets/row.55339924.svg b/airport/assets/row.55339924.svg new file mode 100644 index 0000000..0780992 --- /dev/null +++ b/airport/assets/row.55339924.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/search.33b822fc.js b/airport/assets/search.33b822fc.js new file mode 100644 index 0000000..a3b42c7 --- /dev/null +++ b/airport/assets/search.33b822fc.js @@ -0,0 +1 @@ +const s="/airport/assets/search.b05d8499.svg";export{s as default}; diff --git a/airport/assets/search.b05d8499.svg b/airport/assets/search.b05d8499.svg new file mode 100644 index 0000000..84233dd --- /dev/null +++ b/airport/assets/search.b05d8499.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/select.2173c004.svg b/airport/assets/select.2173c004.svg new file mode 100644 index 0000000..d628382 --- /dev/null +++ b/airport/assets/select.2173c004.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/select.558564a5.js b/airport/assets/select.558564a5.js new file mode 100644 index 0000000..a258476 --- /dev/null +++ b/airport/assets/select.558564a5.js @@ -0,0 +1 @@ +const s="/airport/assets/select.2173c004.svg";export{s as default}; diff --git a/airport/assets/selectUser.b448efa8.js b/airport/assets/selectUser.b448efa8.js new file mode 100644 index 0000000..0082417 --- /dev/null +++ b/airport/assets/selectUser.b448efa8.js @@ -0,0 +1 @@ +import{Y as j,r as f,a6 as P,d as s,o as Q,k as A,w as l,l as v,e,m as _,f as n,i as N,x as E,J as F,T as J,a9 as O,s as Y}from"./index.79832097.js";import{h as G,i as H}from"./role.9b221df4.js";const M={class:"dialog-footer"},W=j({name:"SelectUser"}),ee=Object.assign(W,{props:{roleId:{type:[Number,String]}},emits:["ok"],setup(S,{expose:k,emit:I}){const V=S,{proxy:p}=Y(),{sys_normal_disable:C}=p.useDict("sys_normal_disable"),h=f([]),i=f(!1),g=f(0),y=f([]),a=P({pageNum:1,pageSize:10,roleId:void 0,userName:void 0,phonenumber:void 0});function x(){a.roleId=V.roleId,b(),i.value=!0}function U(r){p.$refs.refTable.toggleRowSelection(r)}function R(r){y.value=r.map(o=>o.userId)}function b(){G(a).then(r=>{h.value=r.rows,g.value=r.total})}function m(){a.pageNum=1,b()}function T(){p.resetForm("queryRef"),m()}function K(){const r=a.roleId,o=y.value.join(",");if(o==""){p.$modal.msgError("\u8BF7\u9009\u62E9\u8981\u5206\u914D\u7684\u7528\u6237");return}H({roleId:r,userIds:o}).then(d=>{p.$modal.msgSuccess(d.msg),d.code===200&&(i.value=!1,I("ok"))})}return k({show:x}),(r,o)=>{const d=s("el-input"),w=s("el-form-item"),c=s("el-button"),$=s("el-form"),u=s("el-table-column"),q=s("dict-tag"),z=s("el-table"),B=s("pagination"),D=s("el-row"),L=s("el-dialog");return Q(),A(L,{title:"\u9009\u62E9\u7528\u6237",modelValue:n(i),"onUpdate:modelValue":o[5]||(o[5]=t=>O(i)?i.value=t:null),width:"800px",top:"5vh","append-to-body":""},{footer:l(()=>[v("div",M,[e(c,{type:"primary",onClick:K},{default:l(()=>[_("\u786E \u5B9A")]),_:1}),e(c,{onClick:o[4]||(o[4]=t=>i.value=!1)},{default:l(()=>[_("\u53D6 \u6D88")]),_:1})])]),default:l(()=>[e($,{model:n(a),ref:"queryRef",inline:!0},{default:l(()=>[e(w,{label:"\u7528\u6237\u540D\u79F0",prop:"userName"},{default:l(()=>[e(d,{modelValue:n(a).userName,"onUpdate:modelValue":o[0]||(o[0]=t=>n(a).userName=t),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D\u79F0",clearable:"",style:{width:"200px"},onKeyup:N(m,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(w,{label:"\u624B\u673A\u53F7\u7801",prop:"phonenumber"},{default:l(()=>[e(d,{modelValue:n(a).phonenumber,"onUpdate:modelValue":o[1]||(o[1]=t=>n(a).phonenumber=t),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801",clearable:"",style:{width:"200px"},onKeyup:N(m,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(w,null,{default:l(()=>[e(c,{type:"primary",icon:"Search",onClick:m},{default:l(()=>[_("\u641C\u7D22")]),_:1}),e(c,{icon:"Refresh",onClick:T},{default:l(()=>[_("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),e(D,null,{default:l(()=>[e(z,{onRowClick:U,ref:"refTable",data:n(h),onSelectionChange:R,height:"260px"},{default:l(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u7528\u6237\u540D\u79F0",prop:"userName","show-overflow-tooltip":!0}),e(u,{label:"\u7528\u6237\u6635\u79F0",prop:"nickName","show-overflow-tooltip":!0}),e(u,{label:"\u90AE\u7BB1",prop:"email","show-overflow-tooltip":!0}),e(u,{label:"\u624B\u673A",prop:"phonenumber","show-overflow-tooltip":!0}),e(u,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:l(t=>[e(q,{options:n(C),value:t.row.status},null,8,["options","value"])]),_:1}),e(u,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180"},{default:l(t=>[v("span",null,E(r.parseTime(t.row.createTime)),1)]),_:1})]),_:1},8,["data"]),F(e(B,{total:n(g),page:n(a).pageNum,"onUpdate:page":o[2]||(o[2]=t=>n(a).pageNum=t),limit:n(a).pageSize,"onUpdate:limit":o[3]||(o[3]=t=>n(a).pageSize=t),onPagination:b},null,8,["total","page","limit"]),[[J,n(g)>0]])]),_:1})]),_:1},8,["modelValue"])}}});export{ee as default}; diff --git a/airport/assets/selectUser.b448efa8.js.gz b/airport/assets/selectUser.b448efa8.js.gz new file mode 100644 index 0000000..8ab50a5 Binary files /dev/null and b/airport/assets/selectUser.b448efa8.js.gz differ diff --git a/airport/assets/server.6de32aac.svg b/airport/assets/server.6de32aac.svg new file mode 100644 index 0000000..eb287e3 --- /dev/null +++ b/airport/assets/server.6de32aac.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/server.f0461856.js b/airport/assets/server.f0461856.js new file mode 100644 index 0000000..0e0e5c4 --- /dev/null +++ b/airport/assets/server.f0461856.js @@ -0,0 +1 @@ +const e="/airport/assets/server.6de32aac.svg";export{e as default}; diff --git a/airport/assets/shopping.4f0d6668.svg b/airport/assets/shopping.4f0d6668.svg new file mode 100644 index 0000000..87513e7 --- /dev/null +++ b/airport/assets/shopping.4f0d6668.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/shopping.b0e0ebd3.js b/airport/assets/shopping.b0e0ebd3.js new file mode 100644 index 0000000..1e0224f --- /dev/null +++ b/airport/assets/shopping.b0e0ebd3.js @@ -0,0 +1 @@ +const s="/airport/assets/shopping.4f0d6668.svg";export{s as default}; diff --git a/airport/assets/size.a85972fe.js b/airport/assets/size.a85972fe.js new file mode 100644 index 0000000..2ecc013 --- /dev/null +++ b/airport/assets/size.a85972fe.js @@ -0,0 +1 @@ +const s="/airport/assets/size.fb05acae.svg";export{s as default}; diff --git a/airport/assets/size.fb05acae.svg b/airport/assets/size.fb05acae.svg new file mode 100644 index 0000000..ddb25b8 --- /dev/null +++ b/airport/assets/size.fb05acae.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/skill.025afb8f.svg b/airport/assets/skill.025afb8f.svg new file mode 100644 index 0000000..a3b7312 --- /dev/null +++ b/airport/assets/skill.025afb8f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/skill.bb02a4ac.js b/airport/assets/skill.bb02a4ac.js new file mode 100644 index 0000000..875389e --- /dev/null +++ b/airport/assets/skill.bb02a4ac.js @@ -0,0 +1 @@ +const s="/airport/assets/skill.025afb8f.svg";export{s as default}; diff --git a/airport/assets/slider.ab079a74.js b/airport/assets/slider.ab079a74.js new file mode 100644 index 0000000..f0afe67 --- /dev/null +++ b/airport/assets/slider.ab079a74.js @@ -0,0 +1 @@ +const s="/airport/assets/slider.f34180f2.svg";export{s as default}; diff --git a/airport/assets/slider.f34180f2.svg b/airport/assets/slider.f34180f2.svg new file mode 100644 index 0000000..fbe4f39 --- /dev/null +++ b/airport/assets/slider.f34180f2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/specialCar.14b1d09d.svg b/airport/assets/specialCar.14b1d09d.svg new file mode 100644 index 0000000..80443b2 --- /dev/null +++ b/airport/assets/specialCar.14b1d09d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/star.5374eaaa.js b/airport/assets/star.5374eaaa.js new file mode 100644 index 0000000..2e98c3a --- /dev/null +++ b/airport/assets/star.5374eaaa.js @@ -0,0 +1 @@ +const s="/airport/assets/star.dc81e60f.svg";export{s as default}; diff --git a/airport/assets/star.dc81e60f.svg b/airport/assets/star.dc81e60f.svg new file mode 100644 index 0000000..6cf86e6 --- /dev/null +++ b/airport/assets/star.dc81e60f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/subheading.16bbfdee.png b/airport/assets/subheading.16bbfdee.png new file mode 100644 index 0000000..7dc144d Binary files /dev/null and b/airport/assets/subheading.16bbfdee.png differ diff --git a/airport/assets/swagger.0f6005b0.js b/airport/assets/swagger.0f6005b0.js new file mode 100644 index 0000000..9763251 --- /dev/null +++ b/airport/assets/swagger.0f6005b0.js @@ -0,0 +1 @@ +const s="/airport/assets/swagger.c07d48c2.svg";export{s as default}; diff --git a/airport/assets/swagger.c07d48c2.svg b/airport/assets/swagger.c07d48c2.svg new file mode 100644 index 0000000..05d4e7b --- /dev/null +++ b/airport/assets/swagger.c07d48c2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/switch.39427d32.js b/airport/assets/switch.39427d32.js new file mode 100644 index 0000000..3165110 --- /dev/null +++ b/airport/assets/switch.39427d32.js @@ -0,0 +1 @@ +const s="/airport/assets/switch.ffcc91cd.svg";export{s as default}; diff --git a/airport/assets/switch.ffcc91cd.svg b/airport/assets/switch.ffcc91cd.svg new file mode 100644 index 0000000..0ba61e3 --- /dev/null +++ b/airport/assets/switch.ffcc91cd.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/system.c33d4c8a.svg b/airport/assets/system.c33d4c8a.svg new file mode 100644 index 0000000..5992593 --- /dev/null +++ b/airport/assets/system.c33d4c8a.svg @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/airport/assets/system.dd8f4370.js b/airport/assets/system.dd8f4370.js new file mode 100644 index 0000000..ae29430 --- /dev/null +++ b/airport/assets/system.dd8f4370.js @@ -0,0 +1 @@ +const s="/airport/assets/system.c33d4c8a.svg";export{s as default}; diff --git a/airport/assets/tab.837765b4.js b/airport/assets/tab.837765b4.js new file mode 100644 index 0000000..3fa715a --- /dev/null +++ b/airport/assets/tab.837765b4.js @@ -0,0 +1 @@ +const t="/airport/assets/tab.d7c08170.svg";export{t as default}; diff --git a/airport/assets/tab.d7c08170.svg b/airport/assets/tab.d7c08170.svg new file mode 100644 index 0000000..b4b48e4 --- /dev/null +++ b/airport/assets/tab.d7c08170.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/table.53c6772c.js b/airport/assets/table.53c6772c.js new file mode 100644 index 0000000..7cd8e0e --- /dev/null +++ b/airport/assets/table.53c6772c.js @@ -0,0 +1 @@ +const a="/airport/assets/table.8c21c0da.svg";export{a as default}; diff --git a/airport/assets/table.8c21c0da.svg b/airport/assets/table.8c21c0da.svg new file mode 100644 index 0000000..0e3dc9d --- /dev/null +++ b/airport/assets/table.8c21c0da.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/tabs.b8d4684b.png b/airport/assets/tabs.b8d4684b.png new file mode 100644 index 0000000..17577be Binary files /dev/null and b/airport/assets/tabs.b8d4684b.png differ diff --git a/airport/assets/textarea.7dc42e90.js b/airport/assets/textarea.7dc42e90.js new file mode 100644 index 0000000..81791ba --- /dev/null +++ b/airport/assets/textarea.7dc42e90.js @@ -0,0 +1 @@ +const a="/airport/assets/textarea.a253c0f4.svg";export{a as default}; diff --git a/airport/assets/textarea.a253c0f4.svg b/airport/assets/textarea.a253c0f4.svg new file mode 100644 index 0000000..2709f29 --- /dev/null +++ b/airport/assets/textarea.a253c0f4.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/theme.47bd8f77.svg b/airport/assets/theme.47bd8f77.svg new file mode 100644 index 0000000..5982a2f --- /dev/null +++ b/airport/assets/theme.47bd8f77.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/theme.988b699a.js b/airport/assets/theme.988b699a.js new file mode 100644 index 0000000..88fa1d7 --- /dev/null +++ b/airport/assets/theme.988b699a.js @@ -0,0 +1 @@ +const e="/airport/assets/theme.47bd8f77.svg";export{e as default}; diff --git a/airport/assets/time-range.134e4394.js b/airport/assets/time-range.134e4394.js new file mode 100644 index 0000000..b80a098 --- /dev/null +++ b/airport/assets/time-range.134e4394.js @@ -0,0 +1 @@ +const e="/airport/assets/time-range.18c6ed64.svg";export{e as default}; diff --git a/airport/assets/time-range.18c6ed64.svg b/airport/assets/time-range.18c6ed64.svg new file mode 100644 index 0000000..13c1202 --- /dev/null +++ b/airport/assets/time-range.18c6ed64.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/time.145701c2.js b/airport/assets/time.145701c2.js new file mode 100644 index 0000000..0c7472b --- /dev/null +++ b/airport/assets/time.145701c2.js @@ -0,0 +1 @@ +const t="/airport/assets/time.b96368e0.svg";export{t as default}; diff --git a/airport/assets/time.b96368e0.svg b/airport/assets/time.b96368e0.svg new file mode 100644 index 0000000..b376e32 --- /dev/null +++ b/airport/assets/time.b96368e0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/title.67230e91.png b/airport/assets/title.67230e91.png new file mode 100644 index 0000000..caf1ede Binary files /dev/null and b/airport/assets/title.67230e91.png differ diff --git a/airport/assets/tool.c30a4b30.js b/airport/assets/tool.c30a4b30.js new file mode 100644 index 0000000..04e8b2d --- /dev/null +++ b/airport/assets/tool.c30a4b30.js @@ -0,0 +1 @@ +const o="/airport/assets/tool.f015d958.svg";export{o as default}; diff --git a/airport/assets/tool.f015d958.svg b/airport/assets/tool.f015d958.svg new file mode 100644 index 0000000..48e0e35 --- /dev/null +++ b/airport/assets/tool.f015d958.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/tree-table.57eb7565.svg b/airport/assets/tree-table.57eb7565.svg new file mode 100644 index 0000000..8aafdb8 --- /dev/null +++ b/airport/assets/tree-table.57eb7565.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/tree-table.a57dac2f.js b/airport/assets/tree-table.a57dac2f.js new file mode 100644 index 0000000..631283a --- /dev/null +++ b/airport/assets/tree-table.a57dac2f.js @@ -0,0 +1 @@ +const e="/airport/assets/tree-table.57eb7565.svg";export{e as default}; diff --git a/airport/assets/tree.3a250732.js b/airport/assets/tree.3a250732.js new file mode 100644 index 0000000..d0bd6a2 --- /dev/null +++ b/airport/assets/tree.3a250732.js @@ -0,0 +1 @@ +const e="/airport/assets/tree.60cea6a4.svg";export{e as default}; diff --git a/airport/assets/tree.60cea6a4.svg b/airport/assets/tree.60cea6a4.svg new file mode 100644 index 0000000..dd4b7dd --- /dev/null +++ b/airport/assets/tree.60cea6a4.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/type.09636148.js b/airport/assets/type.09636148.js new file mode 100644 index 0000000..591b858 --- /dev/null +++ b/airport/assets/type.09636148.js @@ -0,0 +1 @@ +import{L as e}from"./index.79832097.js";function s(t){return e({url:"/system/dict/type/list",method:"get",params:t})}function u(t){return e({url:"/system/dict/type/"+t,method:"get"})}function d(t){return e({url:"/system/dict/type",method:"post",data:t})}function n(t){return e({url:"/system/dict/type",method:"put",data:t})}function o(t){return e({url:"/system/dict/type/"+t,method:"delete"})}function i(){return e({url:"/system/dict/type/refreshCache",method:"delete"})}function p(){return e({url:"/system/dict/type/optionselect",method:"get"})}export{d as a,o as d,u as g,s as l,p as o,i as r,n as u}; diff --git a/airport/assets/upload.02a15e1b.js b/airport/assets/upload.02a15e1b.js new file mode 100644 index 0000000..463b216 --- /dev/null +++ b/airport/assets/upload.02a15e1b.js @@ -0,0 +1 @@ +const a="/airport/assets/upload.ad3bb44a.svg";export{a as default}; diff --git a/airport/assets/upload.ad3bb44a.svg b/airport/assets/upload.ad3bb44a.svg new file mode 100644 index 0000000..bae49c0 --- /dev/null +++ b/airport/assets/upload.ad3bb44a.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/user.0c7aa22a.js b/airport/assets/user.0c7aa22a.js new file mode 100644 index 0000000..d09d568 --- /dev/null +++ b/airport/assets/user.0c7aa22a.js @@ -0,0 +1 @@ +const s="/airport/assets/user.64e211ff.svg";export{s as default}; diff --git a/airport/assets/user.64e211ff.svg b/airport/assets/user.64e211ff.svg new file mode 100644 index 0000000..0ba0716 --- /dev/null +++ b/airport/assets/user.64e211ff.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/user.72b5bfe4.js b/airport/assets/user.72b5bfe4.js new file mode 100644 index 0000000..11f1d18 --- /dev/null +++ b/airport/assets/user.72b5bfe4.js @@ -0,0 +1 @@ +import{L as t,ad as s}from"./index.79832097.js";function o(e){return t({url:"/system/user/list",method:"get",params:e})}function n(e){return t({url:"/system/user/"+s(e),method:"get"})}function d(e){return t({url:"/system/user",method:"post",data:e})}function m(e){return t({url:"/system/user",method:"put",data:e})}function l(e){return t({url:"/system/user/"+e,method:"delete"})}function p(){return t({url:"/system/user/profile",method:"get"})}function i(e){return t({url:"/system/user/profile",method:"put",data:e})}function f(e,r){return t({url:"/system/user/profile/updatePwd",method:"put",params:{oldPassword:e,newPassword:r}})}function h(e){return t({url:"/system/user/profile/avatar",method:"post",data:e})}function c(e){return t({url:"/system/user/authRole/"+e,method:"get"})}function y(e){return t({url:"/system/user/authRole",method:"put",params:e})}export{d as a,p as b,h as c,l as d,i as e,f,n as g,c as h,y as i,o as l,m as u}; diff --git a/airport/assets/userAvatar.974c9db4.css b/airport/assets/userAvatar.974c9db4.css new file mode 100644 index 0000000..8ea44a9 --- /dev/null +++ b/airport/assets/userAvatar.974c9db4.css @@ -0,0 +1 @@ +.vue-cropper[data-v-be5e5ddc]{position:relative;width:100%;height:100%;box-sizing:border-box;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;direction:ltr;touch-action:none;text-align:left;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-box[data-v-be5e5ddc],.cropper-box-canvas[data-v-be5e5ddc],.cropper-drag-box[data-v-be5e5ddc],.cropper-crop-box[data-v-be5e5ddc],.cropper-face[data-v-be5e5ddc]{position:absolute;top:0;right:0;bottom:0;left:0;user-select:none}.cropper-box-canvas img[data-v-be5e5ddc]{position:relative;text-align:left;user-select:none;transform:none;max-width:none;max-height:none}.cropper-box[data-v-be5e5ddc]{overflow:hidden}.cropper-move[data-v-be5e5ddc]{cursor:move}.cropper-crop[data-v-be5e5ddc]{cursor:crosshair}.cropper-modal[data-v-be5e5ddc]{background:rgba(0,0,0,.5)}.cropper-view-box[data-v-be5e5ddc]{display:block;overflow:hidden;width:100%;height:100%;outline:1px solid #39f;outline-color:#3399ffbf;user-select:none}.cropper-view-box img[data-v-be5e5ddc]{user-select:none;text-align:left;max-width:none;max-height:none}.cropper-face[data-v-be5e5ddc]{top:0;left:0;background-color:#fff;opacity:.1}.crop-info[data-v-be5e5ddc]{position:absolute;left:0px;min-width:65px;text-align:center;color:#fff;line-height:20px;background-color:#000c;font-size:12px}.crop-line[data-v-be5e5ddc]{position:absolute;display:block;width:100%;height:100%;opacity:.1}.line-w[data-v-be5e5ddc]{top:-3px;left:0;height:5px;cursor:n-resize}.line-a[data-v-be5e5ddc]{top:0;left:-3px;width:5px;cursor:w-resize}.line-s[data-v-be5e5ddc]{bottom:-3px;left:0;height:5px;cursor:s-resize}.line-d[data-v-be5e5ddc]{top:0;right:-3px;width:5px;cursor:e-resize}.crop-point[data-v-be5e5ddc]{position:absolute;width:8px;height:8px;opacity:.75;background-color:#39f;border-radius:100%}.point1[data-v-be5e5ddc]{top:-4px;left:-4px;cursor:nw-resize}.point2[data-v-be5e5ddc]{top:-5px;left:50%;margin-left:-3px;cursor:n-resize}.point3[data-v-be5e5ddc]{top:-4px;right:-4px;cursor:ne-resize}.point4[data-v-be5e5ddc]{top:50%;left:-4px;margin-top:-3px;cursor:w-resize}.point5[data-v-be5e5ddc]{top:50%;right:-4px;margin-top:-3px;cursor:e-resize}.point6[data-v-be5e5ddc]{bottom:-5px;left:-4px;cursor:sw-resize}.point7[data-v-be5e5ddc]{bottom:-5px;left:50%;margin-left:-3px;cursor:s-resize}.point8[data-v-be5e5ddc]{bottom:-5px;right:-4px;cursor:se-resize}@media screen and (max-width: 500px){.crop-point[data-v-be5e5ddc]{position:absolute;width:20px;height:20px;opacity:.45;background-color:#39f;border-radius:100%}.point1[data-v-be5e5ddc]{top:-10px;left:-10px}.point2[data-v-be5e5ddc],.point4[data-v-be5e5ddc],.point5[data-v-be5e5ddc],.point7[data-v-be5e5ddc]{display:none}.point3[data-v-be5e5ddc]{top:-10px;right:-10px}.point4[data-v-be5e5ddc]{top:0;left:0}.point6[data-v-be5e5ddc]{bottom:-10px;left:-10px}.point8[data-v-be5e5ddc]{bottom:-10px;right:-10px}}.user-info-head[data-v-f0f53903]{position:relative;display:inline-block;height:120px}.user-info-head[data-v-f0f53903]:hover:after{content:"+";position:absolute;left:0;right:0;top:0;bottom:0;color:#eee;background:rgba(0,0,0,.5);font-size:24px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;cursor:pointer;line-height:110px;border-radius:50%} diff --git a/airport/assets/userAvatar.974c9db4.css.gz b/airport/assets/userAvatar.974c9db4.css.gz new file mode 100644 index 0000000..2911cf7 Binary files /dev/null and b/airport/assets/userAvatar.974c9db4.css.gz differ diff --git a/airport/assets/userAvatar.a6e65e8c.js b/airport/assets/userAvatar.a6e65e8c.js new file mode 100644 index 0000000..5093aeb --- /dev/null +++ b/airport/assets/userAvatar.a6e65e8c.js @@ -0,0 +1,7 @@ +import{Y as R,o as W,c as I,J as E,T,l as m,Q as S,j as $,G as F,x as k,_ as V,b as j,r as L,a6 as q,d as O,f as y,e as C,w as x,k as G,m as A,a9 as Z,p as J,q as Q,s as K}from"./index.79832097.js";import{c as _}from"./user.72b5bfe4.js";const B={};B.getData=t=>new Promise((e,i)=>{let s={};tt(t).then(o=>{s.arrayBuffer=o,s.orientation=ot(o),e(s)}).catch(o=>{i(o)})});function tt(t){let e=null;return new Promise((i,s)=>{if(t.src)if(/^data\:/i.test(t.src))e=it(t.src),i(e);else if(/^blob\:/i.test(t.src)){var o=new FileReader;o.onload=function(h){e=h.target.result,i(e)},et(t.src,function(h){o.readAsArrayBuffer(h)})}else{var r=new XMLHttpRequest;r.onload=function(){if(this.status==200||this.status===0)e=r.response,i(e);else throw"Could not load image";r=null},r.open("GET",t.src,!0),r.responseType="arraybuffer",r.send(null)}else s("img error")})}function et(t,e){var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(s){(this.status==200||this.status===0)&&e(this.response)},i.send()}function it(t){t=t.replace(/^data\:([^\;]+)\;base64,/gmi,"");for(var e=atob(t),i=e.length,s=new ArrayBuffer(i),o=new Uint8Array(s),r=0;r=8&&(n=r+h)))),n){for(i=e.getUint16(n,a),f=0;f{const i=t.__vccOpts||t;for(const[s,o]of e)i[s]=o;return i};const ht=R({data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10}},computed:{cropInfo(){let t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){let e=1;this.high&&!this.full&&(e=window.devicePixelRatio),this.enlarge!==1&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE(){return!!window.ActiveXObject||"ActiveXObject"in window},passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){t!==""&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(t){var e=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(t,"i");for(var r=0;r=81)e=-1;else if(this.getVersion("safari")[0]>=605){const h=this.getVersion("version");h[0]>13&&h[1]>1&&(e=-1)}else{const h=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(h){let a=h[1];a=a.split("_"),(a[0]>13||a[0]>=13&&a[1]>=4)&&(e=-1)}}let o=document.createElement("canvas"),r=o.getContext("2d");switch(r.save(),e){case 2:o.width=i,o.height=s,r.translate(i,0),r.scale(-1,1);break;case 3:o.width=i,o.height=s,r.translate(i/2,s/2),r.rotate(180*Math.PI/180),r.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,r.translate(0,s),r.scale(1,-1);break;case 5:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.scale(1,-1);break;case 6:o.width=s,o.height=i,r.translate(s/2,i/2),r.rotate(90*Math.PI/180),r.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.translate(i,-s),r.scale(-1,1);break;case 8:o.height=i,o.width=s,r.translate(s/2,i/2),r.rotate(-90*Math.PI/180),r.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}r.drawImage(t,0,0,i,s),r.restore(),o.toBlob(h=>{let a=URL.createObjectURL(h);URL.revokeObjectURL(this.imgs),this.imgs=a},"image/"+this.outputType,1)},checkedImg(){if(this.img===null||this.img===""){this.imgs="",this.clearCrop();return}this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(this.img==="")return this.$emit("img-load","error"),!1;let i=t.width,s=t.height;B.getData(t).then(o=>{this.orientation=o.orientation||1;let r=Number(this.maxImgSize);if(!this.orientation&&ir&&(s=s/i*r,i=r),s>r&&(i=i/s*r,s=r),this.checkOrientationImage(t,this.orientation,i,s)})},t.onerror=()=>{this.$emit("img-load","error")},this.img.substr(0,4)!=="data"&&(t.crossOrigin=""),this.isIE){var e=new XMLHttpRequest;e.onload=function(){var i=URL.createObjectURL(this.response);t.src=i},e.open("GET",this.img,!0),e.responseType="blob",e.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),t.touches.length==2&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i={x:this.touches[0].clientX,y:this.touches[0].clientY},s={x:t.touches[0].clientX,y:t.touches[0].clientY},o={x:this.touches[1].clientX,y:this.touches[1].clientY},r={x:t.touches[1].clientX,y:t.touches[1].clientY},h=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),a=Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)),l=a-h,c=1;c=c/this.trueWidth>c/this.trueHeight?c/this.trueHeight:c/this.trueWidth,c=c>.1?.1:c;var n=c*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(n):l<0&&e>Math.abs(n)&&(e-=Math.abs(n)),this.touches=t.touches,setTimeout(()=>{this.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&t.touches.length===2)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e="clientX"in t?t.clientX:t.touches[0].clientX,i="clientY"in t?t.clientY:t.touches[0].clientY,s,o;s=e-this.moveX,o=i-this.moveY,this.$nextTick(()=>{if(this.centerBox){let r=this.getImgAxis(s,o,this.scale),h=this.getCropAxis(),a=this.trueHeight*this.scale,l=this.trueWidth*this.scale,c,n,p,f;switch(this.rotate){case 1:case-1:case 3:case-3:c=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(a-l)/2,n=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(l-a)/2,p=c-a+this.cropW,f=n-l+this.cropH;break;default:c=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,n=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,p=c-l+this.cropW,f=n-a+this.cropH;break}r.x1>=h.x1&&(s=c),r.y1>=h.y1&&(o=n),r.x2<=h.x2&&(s=p),r.y2<=h.y2&&(o=f)}this.x=s,this.y=o,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})})},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta,s=navigator.userAgent.indexOf("Firefox");i=s>0?i*30:i,this.isIE&&(i=-i);var o=this.coe;o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth;var r=o*i;r<0?e+=Math.abs(r):e>Math.abs(r)&&(e-=Math.abs(r));let h=r<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(()=>{this.scaling=!1,this.coe=this.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if(i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth,t=t*i,t>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick(()=>{var s=e-this.cropX,o=i-this.cropY;if(s>0?(this.cropW=s+this.cropChangeX>this.w?this.w-this.cropChangeX:s,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(s)>this.w?this.cropChangeX:Math.abs(s),this.cropOffsertX=this.cropChangeX+s>0?this.cropChangeX+s:0),!this.fixed)o>0?(this.cropH=o+this.cropChangeY>this.h?this.h-this.cropChangeY:o,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(o)>this.h?this.cropChangeY:Math.abs(o),this.cropOffsertY=this.cropChangeY+o>0?this.cropChangeY+o:0);else{var r=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];r+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],s>0?this.cropOffsertX=this.cropChangeX:this.cropOffsertX=this.cropChangeX-this.cropW):this.cropH=r,this.cropOffsertY=this.cropOffsertY}})},changeCropSize(t,e,i,s,o){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,o=this.h,r=0,h=0;if(this.centerBox){let a=this.getImgAxis(),l=a.x2,c=a.y2;r=a.x1>0?a.x1:0,h=a.y1>0?a.y1:0,s>l&&(s=l),o>c&&(o=c)}this.$nextTick(()=>{var a=e-this.cropX,l=i-this.cropY;if(this.canChangeX&&(this.changeCropTypeX===1?this.cropOldW-a>0?(this.cropW=s-this.cropChangeX-a<=s-r?this.cropOldW-a:this.cropOldW+this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX-a<=s-r?this.cropChangeX+a:r):(this.cropW=Math.abs(a)+this.cropChangeX<=s?Math.abs(a)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):this.changeCropTypeX===2&&(this.cropOldW+a>0?(this.cropW=this.cropOldW+a+this.cropOffsertX<=s?this.cropOldW+a:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(a+this.cropOldW)<=s-r?Math.abs(a+this.cropOldW):this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX+Math.abs(a+this.cropOldW)<=s-r?this.cropChangeX-Math.abs(a+this.cropOldW):r))),this.canChangeY&&(this.changeCropTypeY===1?this.cropOldH-l>0?(this.cropH=o-this.cropChangeY-l<=o-h?this.cropOldH-l:this.cropOldH+this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY-l<=o-h?this.cropChangeY+l:h):(this.cropH=Math.abs(l)+this.cropChangeY<=o?Math.abs(l)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):this.changeCropTypeY===2&&(this.cropOldH+l>0?(this.cropH=this.cropOldH+l+this.cropOffsertY<=o?this.cropOldH+l:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(l+this.cropOldH)<=o-h?Math.abs(l+this.cropOldH):this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY+Math.abs(l+this.cropOldH)<=o-h?this.cropChangeY-Math.abs(l+this.cropOldH):h))),this.canChangeX&&this.fixed){var c=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];c+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0]):this.cropH=c}if(this.canChangeY&&this.fixed){var n=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];n+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=n}})},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return Array.isArray[i]?s=i:s=[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop(){this.cropW===0&&this.cropH===0&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&t.touches.length===2)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e="clientX"in t?t.clientX:t.touches[0].clientX,i="clientY"in t?t.clientY:t.touches[0].clientY,s,o;s=e-this.cropOffsertX,o=i-this.cropOffsertY,this.cropX=s,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick(()=>{let o,r,h=i-this.cropX,a=s-this.cropY;if(e&&(h=this.cropOffsertX,a=this.cropOffsertY),h<=0?o=0:h+this.cropW>this.w?o=this.w-this.cropW:o=h,a<=0?r=0:a+this.cropH>this.h?r=this.h-this.cropH:r=a,this.centerBox){let l=this.getImgAxis();o<=l.x1&&(o=l.x1),o+this.cropW>l.x2&&(o=l.x2-this.cropW),r<=l.y1&&(r=l.y1),r+this.cropH>l.y2&&(r=l.y2-this.cropH)}this.cropOffsertX=o,this.cropOffsertY=r,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})})},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,r=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(o-r)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(r-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=new Image,s=this.rotate,o=this.trueWidth,r=this.trueHeight,h=this.cropOffsertX,a=this.cropOffsertY;i.onload=()=>{if(this.cropW!==0){let n=e.getContext("2d"),p=1;this.high&!this.full&&(p=window.devicePixelRatio),this.enlarge!==1&!this.full&&(p=Math.abs(Number(this.enlarge)));let f=this.cropW*p,X=this.cropH*p,d=o*this.scale*p,g=r*this.scale*p,v=(this.x-h+this.trueWidth*(1-this.scale)/2)*p,u=(this.y-a+this.trueHeight*(1-this.scale)/2)*p;switch(c(f,X),n.save(),s){case 0:this.full?(c(f/this.scale,X/this.scale),n.drawImage(i,v/this.scale,u/this.scale,d/this.scale,g/this.scale)):n.drawImage(i,v,u,d,g);break;case 1:case-3:this.full?(c(f/this.scale,X/this.scale),v=v/this.scale+(d/this.scale-g/this.scale)/2,u=u/this.scale+(g/this.scale-d/this.scale)/2,n.rotate(s*90*Math.PI/180),n.drawImage(i,u,-v-g/this.scale,d/this.scale,g/this.scale)):(v=v+(d-g)/2,u=u+(g-d)/2,n.rotate(s*90*Math.PI/180),n.drawImage(i,u,-v-g,d,g));break;case 2:case-2:this.full?(c(f/this.scale,X/this.scale),n.rotate(s*90*Math.PI/180),v=v/this.scale,u=u/this.scale,n.drawImage(i,-v-d/this.scale,-u-g/this.scale,d/this.scale,g/this.scale)):(n.rotate(s*90*Math.PI/180),n.drawImage(i,-v-d,-u-g,d,g));break;case 3:case-1:this.full?(c(f/this.scale,X/this.scale),v=v/this.scale+(d/this.scale-g/this.scale)/2,u=u/this.scale+(g/this.scale-d/this.scale)/2,n.rotate(s*90*Math.PI/180),n.drawImage(i,-u-d/this.scale,v,d/this.scale,g/this.scale)):(v=v+(d-g)/2,u=u+(g-d)/2,n.rotate(s*90*Math.PI/180),n.drawImage(i,-u-d,v,d,g));break;default:this.full?(c(f/this.scale,X/this.scale),n.drawImage(i,v/this.scale,u/this.scale,d/this.scale,g/this.scale)):n.drawImage(i,v,u,d,g)}n.restore()}else{let n=o*this.scale,p=r*this.scale,f=e.getContext("2d");switch(f.save(),s){case 0:c(n,p),f.drawImage(i,0,0,n,p);break;case 1:case-3:c(p,n),f.rotate(s*90*Math.PI/180),f.drawImage(i,0,-p,n,p);break;case 2:case-2:c(n,p),f.rotate(s*90*Math.PI/180),f.drawImage(i,-n,-p,n,p);break;case 3:case-1:c(p,n),f.rotate(s*90*Math.PI/180),f.drawImage(i,-n,0,n,p);break;default:c(n,p),f.drawImage(i,0,0,n,p)}f.restore()}t(e)};var l=this.img.substr(0,4);l!=="data"&&(i.crossOrigin="Anonymous"),i.src=this.imgs;function c(n,p){e.width=Math.round(n),e.height=Math.round(p)}},getCropData(t){this.getCropChecked(e=>{t(e.toDataURL("image/"+this.outputType,this.outputSize))})},getCropBlob(t){this.getCropChecked(e=>{e.toBlob(i=>t(i),"image/"+this.outputType,this.outputSize)})},showPreview(){if(this.isCanShow)this.isCanShow=!1,setTimeout(()=>{this.isCanShow=!0},16);else return!1;let t=this.cropW,e=this.cropH,i=this.scale;var s={};s.div={width:`${t}px`,height:`${e}px`};let o=(this.x-this.cropOffsertX)/i,r=(this.y-this.cropOffsertY)/i,h=0;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${r}px, ${h}px)rotateZ(${this.rotate*90}deg)`},s.html=` +
    +
    + +
    +
    `,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick(()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout(()=>{this.showPreview()},20)})},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i=i*t,i0;let a=(h?this.trueHeight:this.trueWidth)*this.scale,l=(h?this.trueWidth:this.trueHeight)*this.scale;i=ai?i:o,r=r>s?s:r,this.fixed&&(r=o/this.fixedNumber[0]*this.fixedNumber[1]),r>this.h&&(r=this.h,o=r/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(o,r)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(t=i.x2-i.x1,e=t/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(e=i.y2-i.y1,t=e/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick(()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)})},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick(()=>{this.checkedImg()})},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let o=this.getImgAxis(t,e,i),r=this.getCropAxis();o.x1>=r.x1&&(s=!1),o.x2<=r.x2&&(s=!1),o.y1>=r.y1&&(s=!1),o.y2<=r.y2&&(s=!1)}return s}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";let t=this;var e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(i,s,o){for(var r=atob(this.toDataURL(s,o).split(",")[1]),h=r.length,a=new Uint8Array(h),l=0;lt.scaleImg&&t.scaleImg(...h)),onMouseout:e[29]||(e[29]=(...h)=>t.cancelScale&&t.cancelScale(...h))},[t.imgs?(W(),I("div",at,[E(m("div",{class:"cropper-box-canvas",style:S({width:t.trueWidth+"px",height:t.trueHeight+"px",transform:"scale("+t.scale+","+t.scale+") translate3d("+t.x/t.scale+"px,"+t.y/t.scale+"px,0)rotateZ("+t.rotate*90+"deg)"})},[m("img",{src:t.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,nt)],4),[[T,!t.loading]])])):$("",!0),m("div",{class:F(["cropper-drag-box",{"cropper-move":t.move&&!t.crop,"cropper-crop":t.crop,"cropper-modal":t.cropping}]),onMousedown:e[0]||(e[0]=(...h)=>t.startMove&&t.startMove(...h)),onTouchstart:e[1]||(e[1]=(...h)=>t.startMove&&t.startMove(...h))},null,34),E(m("div",{class:"cropper-crop-box",style:S({width:t.cropW+"px",height:t.cropH+"px",transform:"translate3d("+t.cropOffsertX+"px,"+t.cropOffsertY+"px,0)"})},[m("span",lt,[m("img",{style:S({width:t.trueWidth+"px",height:t.trueHeight+"px",transform:"scale("+t.scale+","+t.scale+") translate3d("+(t.x-t.cropOffsertX)/t.scale+"px,"+(t.y-t.cropOffsertY)/t.scale+"px,0)rotateZ("+t.rotate*90+"deg)"}),src:t.imgs,alt:"cropper-img"},null,12,ct)]),m("span",{class:"cropper-face cropper-move",onMousedown:e[2]||(e[2]=(...h)=>t.cropMove&&t.cropMove(...h)),onTouchstart:e[3]||(e[3]=(...h)=>t.cropMove&&t.cropMove(...h))},null,32),t.info?(W(),I("span",{key:0,class:"crop-info",style:S({top:t.cropInfo.top})},k(t.cropInfo.width)+" \xD7 "+k(t.cropInfo.height),5)):$("",!0),t.fixedBox?$("",!0):(W(),I("span",pt,[m("span",{class:"crop-line line-w",onMousedown:e[4]||(e[4]=h=>t.changeCropSize(h,!1,!0,0,1)),onTouchstart:e[5]||(e[5]=h=>t.changeCropSize(h,!1,!0,0,1))},null,32),m("span",{class:"crop-line line-a",onMousedown:e[6]||(e[6]=h=>t.changeCropSize(h,!0,!1,1,0)),onTouchstart:e[7]||(e[7]=h=>t.changeCropSize(h,!0,!1,1,0))},null,32),m("span",{class:"crop-line line-s",onMousedown:e[8]||(e[8]=h=>t.changeCropSize(h,!1,!0,0,2)),onTouchstart:e[9]||(e[9]=h=>t.changeCropSize(h,!1,!0,0,2))},null,32),m("span",{class:"crop-line line-d",onMousedown:e[10]||(e[10]=h=>t.changeCropSize(h,!0,!1,2,0)),onTouchstart:e[11]||(e[11]=h=>t.changeCropSize(h,!0,!1,2,0))},null,32),m("span",{class:"crop-point point1",onMousedown:e[12]||(e[12]=h=>t.changeCropSize(h,!0,!0,1,1)),onTouchstart:e[13]||(e[13]=h=>t.changeCropSize(h,!0,!0,1,1))},null,32),m("span",{class:"crop-point point2",onMousedown:e[14]||(e[14]=h=>t.changeCropSize(h,!1,!0,0,1)),onTouchstart:e[15]||(e[15]=h=>t.changeCropSize(h,!1,!0,0,1))},null,32),m("span",{class:"crop-point point3",onMousedown:e[16]||(e[16]=h=>t.changeCropSize(h,!0,!0,2,1)),onTouchstart:e[17]||(e[17]=h=>t.changeCropSize(h,!0,!0,2,1))},null,32),m("span",{class:"crop-point point4",onMousedown:e[18]||(e[18]=h=>t.changeCropSize(h,!0,!1,1,0)),onTouchstart:e[19]||(e[19]=h=>t.changeCropSize(h,!0,!1,1,0))},null,32),m("span",{class:"crop-point point5",onMousedown:e[20]||(e[20]=h=>t.changeCropSize(h,!0,!1,2,0)),onTouchstart:e[21]||(e[21]=h=>t.changeCropSize(h,!0,!1,2,0))},null,32),m("span",{class:"crop-point point6",onMousedown:e[22]||(e[22]=h=>t.changeCropSize(h,!0,!0,1,2)),onTouchstart:e[23]||(e[23]=h=>t.changeCropSize(h,!0,!0,1,2))},null,32),m("span",{class:"crop-point point7",onMousedown:e[24]||(e[24]=h=>t.changeCropSize(h,!1,!0,0,2)),onTouchstart:e[25]||(e[25]=h=>t.changeCropSize(h,!1,!0,0,2))},null,32),m("span",{class:"crop-point point8",onMousedown:e[26]||(e[26]=h=>t.changeCropSize(h,!0,!0,2,2)),onTouchstart:e[27]||(e[27]=h=>t.changeCropSize(h,!0,!0,2,2))},null,32)]))],4),[[T,t.cropping]])],544)}var N=rt(ht,[["render",ut],["__scopeId","data-v-be5e5ddc"]]);typeof window<"u"&&window.Vue&&window.Vue.createApp({}).component("VueCropper",N);const ft=t=>(J("data-v-f0f53903"),t=t(),Q(),t),dt=["src"],gt={class:"avatar-upload-preview"},mt=["src"],vt=ft(()=>m("br",null,null,-1)),wt={__name:"userAvatar",setup(t){const e=j(),{proxy:i}=K(),s=L(!1),o=L(!1),r=L("\u4FEE\u6539\u5934\u50CF"),h=q({img:e.avatar,autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!0,outputType:"png",previews:{}});function a(){s.value=!0}function l(){o.value=!0}function c(){}function n(){i.$refs.cropper.rotateLeft()}function p(){i.$refs.cropper.rotateRight()}function f(u){u=u||1,i.$refs.cropper.changeScale(u)}function X(u){if(u.type.indexOf("image/")==-1)i.$modal.msgError("\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u4E0A\u4F20\u56FE\u7247\u7C7B\u578B,\u5982\uFF1AJPG\uFF0CPNG\u540E\u7F00\u7684\u6587\u4EF6\u3002");else{const w=new FileReader;w.readAsDataURL(u),w.onload=()=>{h.img=w.result}}}function d(){i.$refs.cropper.getCropBlob(u=>{let w=new FormData;w.append("avatarfile",u),_(w).then(b=>{var M;s.value=!1,h.img=((M=window.APP_CONFIG)==null?void 0:M.VITE_BASE_URL)+b.imgUrl,e.avatar=h.img,i.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),o.value=!1})})}function g(u){h.previews=u}function v(){h.img=e.avatar,h.visible=!1}return(u,w)=>{const b=O("el-col"),M=O("el-row"),z=O("Upload"),P=O("el-icon"),H=O("el-button"),U=O("el-upload"),D=O("el-dialog");return W(),I("div",{class:"user-info-head",onClick:w[6]||(w[6]=Y=>a())},[m("img",{src:y(h).img,title:"\u70B9\u51FB\u4E0A\u4F20\u5934\u50CF",class:"img-circle img-lg"},null,8,dt),C(D,{title:y(r),modelValue:y(s),"onUpdate:modelValue":w[5]||(w[5]=Y=>Z(s)?s.value=Y:null),width:"800px","append-to-body":"",onOpened:l,onClose:v},{default:x(()=>[C(M,null,{default:x(()=>[C(b,{xs:24,md:12,style:{height:"350px"}},{default:x(()=>[y(o)?(W(),G(y(N),{key:0,ref:"cropper",img:y(h).img,info:!0,autoCrop:y(h).autoCrop,autoCropWidth:y(h).autoCropWidth,autoCropHeight:y(h).autoCropHeight,fixedBox:y(h).fixedBox,outputType:y(h).outputType,onRealTime:g},null,8,["img","autoCrop","autoCropWidth","autoCropHeight","fixedBox","outputType"])):$("",!0)]),_:1}),C(b,{xs:24,md:12,style:{height:"350px"}},{default:x(()=>[m("div",gt,[m("img",{src:y(h).previews.url,style:S(y(h).previews.img)},null,12,mt)])]),_:1})]),_:1}),vt,C(M,null,{default:x(()=>[C(b,{lg:2,md:2},{default:x(()=>[C(U,{action:"#","http-request":c,"show-file-list":!1,"before-upload":X},{default:x(()=>[C(H,null,{default:x(()=>[A(" \u9009\u62E9 "),C(P,{class:"el-icon--right"},{default:x(()=>[C(z)]),_:1})]),_:1})]),_:1})]),_:1}),C(b,{lg:{span:1,offset:2},md:2},{default:x(()=>[C(H,{icon:"Plus",onClick:w[0]||(w[0]=Y=>f(1))})]),_:1}),C(b,{lg:{span:1,offset:1},md:2},{default:x(()=>[C(H,{icon:"Minus",onClick:w[1]||(w[1]=Y=>f(-1))})]),_:1}),C(b,{lg:{span:1,offset:1},md:2},{default:x(()=>[C(H,{icon:"RefreshLeft",onClick:w[2]||(w[2]=Y=>n())})]),_:1}),C(b,{lg:{span:1,offset:1},md:2},{default:x(()=>[C(H,{icon:"RefreshRight",onClick:w[3]||(w[3]=Y=>p())})]),_:1}),C(b,{lg:{span:2,offset:6},md:2},{default:x(()=>[C(H,{type:"primary",onClick:w[4]||(w[4]=Y=>d())},{default:x(()=>[A("\u63D0 \u4EA4")]),_:1})]),_:1})]),_:1})]),_:1},8,["title","modelValue"])])}}},yt=V(wt,[["__scopeId","data-v-f0f53903"]]);export{yt as default}; diff --git a/airport/assets/userAvatar.a6e65e8c.js.gz b/airport/assets/userAvatar.a6e65e8c.js.gz new file mode 100644 index 0000000..4444899 Binary files /dev/null and b/airport/assets/userAvatar.a6e65e8c.js.gz differ diff --git a/airport/assets/userInfo.139acdfa.js b/airport/assets/userInfo.139acdfa.js new file mode 100644 index 0000000..5a2f353 --- /dev/null +++ b/airport/assets/userInfo.139acdfa.js @@ -0,0 +1 @@ +import{e as _}from"./user.72b5bfe4.js";import{r as k,d as a,o as y,k as N,w as l,e,m as n,f as C,s as U}from"./index.79832097.js";const q={__name:"userInfo",props:{user:{type:Object}},setup(t){const p=t,{proxy:m}=U(),g=k({nickName:[{required:!0,message:"\u7528\u6237\u6635\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],email:[{required:!0,message:"\u90AE\u7BB1\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"},{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740",trigger:["blur","change"]}],phonenumber:[{required:!0,message:"\u624B\u673A\u53F7\u7801\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"},{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801",trigger:"blur"}]});function c(){m.$refs.userRef.validate(d=>{d&&_(p.user).then(r=>{m.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F")})})}function b(){m.$tab.closePage()}return(d,r)=>{const s=a("el-input"),u=a("el-form-item"),i=a("el-radio"),V=a("el-radio-group"),f=a("el-button"),x=a("el-form");return y(),N(x,{ref:"userRef",model:t.user,rules:C(g),"label-width":"80px"},{default:l(()=>[e(u,{label:"\u7528\u6237\u6635\u79F0",prop:"nickName"},{default:l(()=>[e(s,{modelValue:t.user.nickName,"onUpdate:modelValue":r[0]||(r[0]=o=>t.user.nickName=o),maxlength:"30"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u624B\u673A\u53F7\u7801",prop:"phonenumber"},{default:l(()=>[e(s,{modelValue:t.user.phonenumber,"onUpdate:modelValue":r[1]||(r[1]=o=>t.user.phonenumber=o),maxlength:"11"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u90AE\u7BB1",prop:"email"},{default:l(()=>[e(s,{modelValue:t.user.email,"onUpdate:modelValue":r[2]||(r[2]=o=>t.user.email=o),maxlength:"50"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u6027\u522B"},{default:l(()=>[e(V,{modelValue:t.user.sex,"onUpdate:modelValue":r[3]||(r[3]=o=>t.user.sex=o)},{default:l(()=>[e(i,{label:"0"},{default:l(()=>[n("\u7537")]),_:1}),e(i,{label:"1"},{default:l(()=>[n("\u5973")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(u,null,{default:l(()=>[e(f,{type:"primary",onClick:c},{default:l(()=>[n("\u4FDD\u5B58")]),_:1}),e(f,{type:"danger",onClick:b},{default:l(()=>[n("\u5173\u95ED")]),_:1})]),_:1})]),_:1},8,["model","rules"])}}};export{q as default}; diff --git a/airport/assets/userInfo.139acdfa.js.gz b/airport/assets/userInfo.139acdfa.js.gz new file mode 100644 index 0000000..dde2a9e Binary files /dev/null and b/airport/assets/userInfo.139acdfa.js.gz differ diff --git a/airport/assets/validCode.78b8cac8.svg b/airport/assets/validCode.78b8cac8.svg new file mode 100644 index 0000000..cfb1021 --- /dev/null +++ b/airport/assets/validCode.78b8cac8.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/validCode.c5c7d4df.js b/airport/assets/validCode.c5c7d4df.js new file mode 100644 index 0000000..959221a --- /dev/null +++ b/airport/assets/validCode.c5c7d4df.js @@ -0,0 +1 @@ +const a="/airport/assets/validCode.78b8cac8.svg";export{a as default}; diff --git a/airport/assets/vehicle_type.be7b2e4d.js b/airport/assets/vehicle_type.be7b2e4d.js new file mode 100644 index 0000000..5b45965 --- /dev/null +++ b/airport/assets/vehicle_type.be7b2e4d.js @@ -0,0 +1 @@ +import{L as t}from"./index.79832097.js";function l(e){return t({url:"/system/vehicle_type/list",method:"get",params:e})}function r(e){return t({url:"/system/vehicle_type/"+e,method:"get"})}function i(e){return t({url:"/system/vehicle_type",method:"post",data:e})}function u(e){return t({url:"/system/vehicle_type",method:"put",data:e})}function c(e){return t({url:"/system/vehicle_type/"+e,method:"delete"})}export{i as a,c as d,r as g,l,u}; diff --git a/airport/assets/wechat.9e78a6a9.svg b/airport/assets/wechat.9e78a6a9.svg new file mode 100644 index 0000000..c586e55 --- /dev/null +++ b/airport/assets/wechat.9e78a6a9.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/wechat.ec3af840.js b/airport/assets/wechat.ec3af840.js new file mode 100644 index 0000000..e4d3c1a --- /dev/null +++ b/airport/assets/wechat.ec3af840.js @@ -0,0 +1 @@ +const a="/airport/assets/wechat.9e78a6a9.svg";export{a as default}; diff --git a/airport/assets/yellow.ada6d5da.svg b/airport/assets/yellow.ada6d5da.svg new file mode 100644 index 0000000..e5156ce --- /dev/null +++ b/airport/assets/yellow.ada6d5da.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/zip.f12aeb4c.svg b/airport/assets/zip.f12aeb4c.svg new file mode 100644 index 0000000..f806fc4 --- /dev/null +++ b/airport/assets/zip.f12aeb4c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/airport/assets/zip.fc1b638f.js b/airport/assets/zip.fc1b638f.js new file mode 100644 index 0000000..c01d80c --- /dev/null +++ b/airport/assets/zip.fc1b638f.js @@ -0,0 +1 @@ +const s="/airport/assets/zip.f12aeb4c.svg";export{s as default}; diff --git a/airport/config.js b/airport/config.js new file mode 100644 index 0000000..12875eb --- /dev/null +++ b/airport/config.js @@ -0,0 +1,8 @@ +window.APP_CONFIG = { + VITE_BASE_URL: 'http://10.64.58.228:8080', + WS_BASE_URL: 'ws://10.64.58.228:8080/collision', + // VITE_BASE_URL: 'http://10.0.0.58:8080', + // WS_BASE_URL: 'ws://10.0.0.58:8080/collision', + ENABLE_ROUTE_DEBUG: true, + USE_MOCK_VEHICLE: true +}; diff --git a/airport/dianziweilan.json b/airport/dianziweilan.json new file mode 100644 index 0000000..8e22971 --- /dev/null +++ b/airport/dianziweilan.json @@ -0,0 +1,873 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09147593674439, + 36.3836398507422 + ], + [ + 120.09290262058053, + 36.38394658538347 + ], + [ + 120.09180395577773, + 36.38691682768518 + ], + [ + 120.09358176927812, + 36.38731443078515 + ], + [ + 120.09695868373905, + 36.37917574104331 + ], + [ + 120.09562196783139, + 36.37864196974916 + ], + [ + 120.10545406887745, + 36.353210271605235 + ], + [ + 120.10690552051399, + 36.353648555501884 + ], + [ + 120.11014487660282, + 36.34585009322999 + ], + [ + 120.10815457136059, + 36.345209746926756 + ], + [ + 120.10691104368496, + 36.34776683851184 + ], + [ + 120.10585552003766, + 36.347305844866 + ] + ] + }, + "properties": { + "type": "route", + "length": 5253.055562378595, + "vertices": 12 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09147593674439, + 36.3836398507422 + ], + [ + 120.09290262058053, + 36.38394658538347 + ], + [ + 120.09180395577773, + 36.38691682768518 + ], + [ + 120.09358176927812, + 36.38731443078515 + ], + [ + 120.09695868373905, + 36.37917574104331 + ], + [ + 120.09562196783139, + 36.37864196974916 + ], + [ + 120.10545406887745, + 36.353210271605235 + ], + [ + 120.10690552051399, + 36.353648555501884 + ], + [ + 120.11014487660282, + 36.34585009322999 + ], + [ + 120.10815457136059, + 36.345209746926756 + ], + [ + 120.10691104368496, + 36.34776683851184 + ], + [ + 120.10585552003766, + 36.347305844866 + ] + ] + }, + "properties": { + "type": "route", + "length": 5253.055562378595, + "vertices": 12 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09147593674439, + 36.3836398507422 + ], + [ + 120.09290262058053, + 36.38394658538347 + ], + [ + 120.09180395577773, + 36.38691682768518 + ], + [ + 120.09358176927812, + 36.38731443078515 + ], + [ + 120.09695868373905, + 36.37917574104331 + ], + [ + 120.09562196783139, + 36.37864196974916 + ], + [ + 120.10545406887745, + 36.353210271605235 + ], + [ + 120.10690552051399, + 36.353648555501884 + ], + [ + 120.11014487660282, + 36.34585009322999 + ], + [ + 120.10815457136059, + 36.345209746926756 + ], + [ + 120.10691104368496, + 36.34776683851184 + ], + [ + 120.10585552003766, + 36.347305844866 + ] + ] + }, + "properties": { + "type": "route", + "length": 5253.055562378595, + "vertices": 12 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09147593674439, + 36.3836398507422 + ], + [ + 120.09290262058053, + 36.38394658538347 + ], + [ + 120.09180395577773, + 36.38691682768518 + ], + [ + 120.09358176927812, + 36.38731443078515 + ], + [ + 120.09695868373905, + 36.37917574104331 + ], + [ + 120.09562196783139, + 36.37864196974916 + ], + [ + 120.10545406887745, + 36.353210271605235 + ], + [ + 120.10690552051399, + 36.353648555501884 + ], + [ + 120.11014487660282, + 36.34585009322999 + ], + [ + 120.10815457136059, + 36.345209746926756 + ], + [ + 120.10691104368496, + 36.34776683851184 + ], + [ + 120.10585552003766, + 36.347305844866 + ] + ] + }, + "properties": { + "type": "route", + "length": 5253.055562378595, + "vertices": 12 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.09147593674439, + 36.3836398507422 + ], + [ + 120.09290262058053, + 36.38394658538347 + ], + [ + 120.09180395577773, + 36.38691682768518 + ], + [ + 120.09358176927812, + 36.38731443078515 + ], + [ + 120.09695868373905, + 36.37917574104331 + ], + [ + 120.09562196783139, + 36.37864196974916 + ], + [ + 120.10545406887745, + 36.353210271605235 + ], + [ + 120.10690552051399, + 36.353648555501884 + ], + [ + 120.11014487660282, + 36.34585009322999 + ], + [ + 120.10815457136059, + 36.345209746926756 + ], + [ + 120.10691104368496, + 36.34776683851184 + ], + [ + 120.10585552003766, + 36.347305844866 + ], + [ + 120.09147593674439, + 36.3836398507422 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 703804.7562233653, + "perimeter": 8759.55567760329, + "vertices": 12 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09147593674439, + 36.3836398507422 + ], + [ + 120.09290262058053, + 36.38394658538347 + ], + [ + 120.09180395577773, + 36.38691682768518 + ], + [ + 120.09358176927812, + 36.38731443078515 + ], + [ + 120.09695868373905, + 36.37917574104331 + ], + [ + 120.09562196783139, + 36.37864196974916 + ], + [ + 120.10545406887745, + 36.353210271605235 + ], + [ + 120.10690552051399, + 36.353648555501884 + ], + [ + 120.11014487660282, + 36.34585009322999 + ], + [ + 120.10815457136059, + 36.345209746926756 + ], + [ + 120.10691104368496, + 36.34776683851184 + ], + [ + 120.10585552003766, + 36.347305844866 + ] + ] + }, + "properties": { + "type": "route", + "length": 5253.055562378595, + "vertices": 12 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07137678064761, + 36.3738026805809 + ], + [ + 120.06997285745818, + 36.37343892159092 + ], + [ + 120.06857290046547, + 36.37658145653373 + ], + [ + 120.06674504037619, + 36.37592003637543 + ], + [ + 120.0699811582018, + 36.367557222446216 + ], + [ + 120.07171616983796, + 36.36825717369634 + ], + [ + 120.0815772261356, + 36.342770621008825 + ], + [ + 120.08007567731644, + 36.342068588641474 + ], + [ + 120.08319937576387, + 36.33417770473279 + ], + [ + 120.08537446416751, + 36.33474128822992 + ], + [ + 120.08436332752468, + 36.337295919004525 + ], + [ + 120.08548599896662, + 36.33758679461424 + ] + ] + }, + "properties": { + "type": "route", + "length": 5364.679814338346, + "vertices": 12 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07137678064761, + 36.3738026805809 + ], + [ + 120.06997285745818, + 36.37343892159092 + ], + [ + 120.06857290046547, + 36.37658145653373 + ], + [ + 120.06674504037619, + 36.37592003637543 + ], + [ + 120.0699811582018, + 36.367557222446216 + ], + [ + 120.07171616983796, + 36.36825717369634 + ], + [ + 120.0815772261356, + 36.342770621008825 + ], + [ + 120.08007567731644, + 36.342068588641474 + ], + [ + 120.08319937576387, + 36.33417770473279 + ], + [ + 120.08537446416751, + 36.33474128822992 + ], + [ + 120.08436332752468, + 36.337295919004525 + ], + [ + 120.08548599896662, + 36.33758679461424 + ] + ] + }, + "properties": { + "type": "route", + "length": 5364.679814338346, + "vertices": 12 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07137678064761, + 36.3738026805809 + ], + [ + 120.06997285745818, + 36.37343892159092 + ], + [ + 120.06857290046547, + 36.37658145653373 + ], + [ + 120.06674504037619, + 36.37592003637543 + ], + [ + 120.0699811582018, + 36.367557222446216 + ], + [ + 120.07171616983796, + 36.36825717369634 + ], + [ + 120.0815772261356, + 36.342770621008825 + ], + [ + 120.08007567731644, + 36.342068588641474 + ], + [ + 120.08319937576387, + 36.33417770473279 + ], + [ + 120.08537446416751, + 36.33474128822992 + ], + [ + 120.08436332752468, + 36.337295919004525 + ], + [ + 120.08548599896662, + 36.33758679461424 + ] + ] + }, + "properties": { + "type": "route", + "length": 5364.679814338346, + "vertices": 12 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09147593674439, + 36.3836398507422 + ], + [ + 120.09290262058053, + 36.38394658538347 + ], + [ + 120.09180395577773, + 36.38691682768518 + ], + [ + 120.09358176927812, + 36.38731443078515 + ], + [ + 120.09695868373905, + 36.37917574104331 + ], + [ + 120.09562196783139, + 36.37864196974916 + ], + [ + 120.10545406887745, + 36.353210271605235 + ], + [ + 120.10690552051399, + 36.353648555501884 + ], + [ + 120.11014487660282, + 36.34585009322999 + ], + [ + 120.10815457136059, + 36.345209746926756 + ], + [ + 120.10691104368496, + 36.34776683851184 + ], + [ + 120.10585552003766, + 36.347305844866 + ] + ] + }, + "properties": { + "type": "route", + "length": 5253.055562378595, + "vertices": 12 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07137678064761, + 36.3738026805809 + ], + [ + 120.06997285745818, + 36.37343892159092 + ], + [ + 120.06857290046547, + 36.37658145653373 + ], + [ + 120.06674504037619, + 36.37592003637543 + ], + [ + 120.0699811582018, + 36.367557222446216 + ], + [ + 120.07171616983796, + 36.36825717369634 + ], + [ + 120.0815772261356, + 36.342770621008825 + ], + [ + 120.08007567731644, + 36.342068588641474 + ], + [ + 120.08319937576387, + 36.33417770473279 + ], + [ + 120.08537446416751, + 36.33474128822992 + ], + [ + 120.08436332752468, + 36.337295919004525 + ], + [ + 120.08548599896662, + 36.33758679461424 + ] + ] + }, + "properties": { + "type": "route", + "length": 5364.679814338346, + "vertices": 12 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07137678064761, + 36.3738026805809 + ], + [ + 120.06997285745818, + 36.37343892159092 + ], + [ + 120.06857290046547, + 36.37658145653373 + ], + [ + 120.06674504037619, + 36.37592003637543 + ], + [ + 120.0699811582018, + 36.367557222446216 + ], + [ + 120.07171616983796, + 36.36825717369634 + ], + [ + 120.0815772261356, + 36.342770621008825 + ], + [ + 120.08007567731644, + 36.342068588641474 + ], + [ + 120.08319937576387, + 36.33417770473279 + ], + [ + 120.08537446416751, + 36.33474128822992 + ], + [ + 120.08436332752468, + 36.337295919004525 + ], + [ + 120.08548599896662, + 36.33758679461424 + ] + ] + }, + "properties": { + "type": "route", + "length": 5364.679814338346, + "vertices": 12 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.07137678064761, + 36.3738026805809 + ], + [ + 120.06997285745818, + 36.37343892159092 + ], + [ + 120.06857290046547, + 36.37658145653373 + ], + [ + 120.06674504037619, + 36.37592003637543 + ], + [ + 120.0699811582018, + 36.367557222446216 + ], + [ + 120.07171616983796, + 36.36825717369634 + ], + [ + 120.0815772261356, + 36.342770621008825 + ], + [ + 120.08007567731644, + 36.342068588641474 + ], + [ + 120.08319937576387, + 36.33417770473279 + ], + [ + 120.08537446416751, + 36.33474128822992 + ], + [ + 120.08436332752468, + 36.337295919004525 + ], + [ + 120.08548599896662, + 36.33758679461424 + ], + [ + 120.07137678064761, + 36.3738026805809 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 684873.0974887626, + "perimeter": 8855.114241475796, + "vertices": 12 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07137678064761, + 36.3738026805809 + ], + [ + 120.06997285745818, + 36.37343892159092 + ], + [ + 120.06857290046547, + 36.37658145653373 + ], + [ + 120.06674504037619, + 36.37592003637543 + ], + [ + 120.0699811582018, + 36.367557222446216 + ], + [ + 120.07171616983796, + 36.36825717369634 + ], + [ + 120.0815772261356, + 36.342770621008825 + ], + [ + 120.08007567731644, + 36.342068588641474 + ], + [ + 120.08319937576387, + 36.33417770473279 + ], + [ + 120.08537446416751, + 36.33474128822992 + ], + [ + 120.08436332752468, + 36.337295919004525 + ], + [ + 120.08548599896662, + 36.33758679461424 + ] + ] + }, + "properties": { + "type": "route", + "length": 5364.679814338346, + "vertices": 12 + } + } + ] +} \ No newline at end of file diff --git a/airport/dianziweilan.json.gz b/airport/dianziweilan.json.gz new file mode 100644 index 0000000..06299f7 Binary files /dev/null and b/airport/dianziweilan.json.gz differ diff --git a/airport/dianziweilan1.json b/airport/dianziweilan1.json new file mode 100644 index 0000000..3a5b4e9 --- /dev/null +++ b/airport/dianziweilan1.json @@ -0,0 +1,93 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.07177603096052, + 36.370812533360755 + ], + [ + 120.08385709134191, + 36.33999243140878 + ], + [ + 120.08565563667813, + 36.34060862711547 + ], + [ + 120.08669982868061, + 36.34062878164365 + ], + [ + 120.07455220429061, + 36.37193239994289 + ], + [ + 120.07234631337181, + 36.37156118999518 + ], + [ + 120.07177603096052, + 36.370812533360755 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 671992.2620217785, + "perimeter": 6459.222679044949, + "vertices": 6 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.09357854630166, + 36.38111581893121 + ], + [ + 120.09150927608138, + 36.38118099552585 + ], + [ + 120.09017484057917, + 36.380485019173435 + ], + [ + 120.10265440053722, + 36.34926707805199 + ], + [ + 120.10434101414667, + 36.34985392006327 + ], + [ + 120.1053224475362, + 36.35065874503395 + ], + [ + 120.09357854630166, + 36.38111581893121 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 731220.4002154289, + "perimeter": 6460.346045623342, + "vertices": 6 + } + } + ] +} \ No newline at end of file diff --git a/airport/dianziweilan1.json.gz b/airport/dianziweilan1.json.gz new file mode 100644 index 0000000..339088c Binary files /dev/null and b/airport/dianziweilan1.json.gz differ diff --git a/airport/dianziweilan2-.json b/airport/dianziweilan2-.json new file mode 100644 index 0000000..ce1e7be --- /dev/null +++ b/airport/dianziweilan2-.json @@ -0,0 +1,135 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.09556015392272, + 36.37887632381514 + ], + [ + 120.10557815731683, + 36.35340511776819 + ], + [ + 120.10494030861503, + 36.353139870604515 + ], + [ + 120.0949985017879, + 36.37873093611939 + ], + [ + 120.09556015392272, + 36.37887632381514 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 118622.88654058108, + "perimeter": 5019.416339195768, + "vertices": 4 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09556015392272, + 36.37887632381514 + ], + [ + 120.10557815731683, + 36.35340511776819 + ], + [ + 120.10494030861503, + 36.353139870604515 + ], + [ + 120.0949985017879, + 36.37873093611939 + ] + ] + }, + "properties": { + "type": "route", + "length": 4975.590768230708, + "vertices": 4 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.09205709068296, + 36.38162470216411 + ], + [ + 120.10476292354788, + 36.34936376185109 + ], + [ + 120.10407907026854, + 36.349136661174086 + ], + [ + 120.09149653501211, + 36.381554692831116 + ], + [ + 120.09205709068296, + 36.38162470216411 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 150322.51896299704, + "perimeter": 6332.172793274331, + "vertices": 4 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09205709068296, + 36.38162470216411 + ], + [ + 120.10476292354788, + 36.34936376185109 + ], + [ + 120.10407907026854, + 36.349136661174086 + ], + [ + 120.09149653501211, + 36.381554692831116 + ] + ] + }, + "properties": { + "type": "route", + "length": 6290.023849913934, + "vertices": 4 + } + } + ] +} \ No newline at end of file diff --git a/airport/dianziweilan2-.json.gz b/airport/dianziweilan2-.json.gz new file mode 100644 index 0000000..40a63dd Binary files /dev/null and b/airport/dianziweilan2-.json.gz differ diff --git a/airport/dianziweilan2.json b/airport/dianziweilan2.json new file mode 100644 index 0000000..f23ca29 --- /dev/null +++ b/airport/dianziweilan2.json @@ -0,0 +1,77 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.09236342223025, + 36.3816931275766 + ], + [ + 120.09142601318554, + 36.38145045198584 + ], + [ + 120.10400234250483, + 36.3491242434101 + ], + [ + 120.10495715607009, + 36.34945937932206 + ], + [ + 120.09236342223025, + 36.3816931275766 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 233514.97672754098, + "perimeter": 6372.499974774155, + "vertices": 4 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.09581162662337, + 36.378891163069525 + ], + [ + 120.09512092126158, + 36.37871237020484 + ], + [ + 120.10516032611149, + 36.35320643561339 + ], + [ + 120.10575218630629, + 36.35335963832235 + ], + [ + 120.09581162662337, + 36.378891163069525 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 123140.62453764227, + "perimeter": 5020.640331403301, + "vertices": 4 + } + } + ] +} \ No newline at end of file diff --git a/airport/dianziweilan2.json.gz b/airport/dianziweilan2.json.gz new file mode 100644 index 0000000..194d2fb Binary files /dev/null and b/airport/dianziweilan2.json.gz differ diff --git a/airport/dianziweilan3-.json b/airport/dianziweilan3-.json new file mode 100644 index 0000000..2b91f4e --- /dev/null +++ b/airport/dianziweilan3-.json @@ -0,0 +1,141 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.07126825597614, + 36.373870312692 + ], + [ + 120.08565767727073, + 36.33739567742907 + ], + [ + 120.08421001541772, + 36.33693262586848 + ], + [ + 120.08510811495121, + 36.33452623760273 + ], + [ + 120.08328378633374, + 36.3340535363089 + ], + [ + 120.07999322370773, + 36.34195394178826 + ], + [ + 120.0821806224382, + 36.34260869507675 + ], + [ + 120.07192387973876, + 36.36823397480407 + ], + [ + 120.06998247490334, + 36.367642947730424 + ], + [ + 120.06680744040536, + 36.375793533252555 + ], + [ + 120.06886158147881, + 36.37623782791618 + ], + [ + 120.0700350314284, + 36.37355078213279 + ], + [ + 120.07126825597614, + 36.373870312692 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 619129.9708489422, + "perimeter": 8880.45214400111, + "vertices": 12 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.09154697740071, + 36.38378460409999 + ], + [ + 120.10579855016236, + 36.347361858897 + ], + [ + 120.10713014103605, + 36.34770655398146 + ], + [ + 120.10809077994466, + 36.34514041230832 + ], + [ + 120.11006545075166, + 36.34578348123954 + ], + [ + 120.10702174098964, + 36.353615984578795 + ], + [ + 120.10511397465083, + 36.353078190958996 + ], + [ + 120.09506073266323, + 36.378756469907316 + ], + [ + 120.09686842613158, + 36.379136426170966 + ], + [ + 120.0936976891363, + 36.38742016189649 + ], + [ + 120.09173984762114, + 36.38686938607892 + ], + [ + 120.09282978900617, + 36.38411668340226 + ], + [ + 120.09154697740071, + 36.38378460409999 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 614948.400917666, + "perimeter": 8856.21774423275, + "vertices": 12 + } + } + ] +} \ No newline at end of file diff --git a/airport/dianziweilan3-.json.gz b/airport/dianziweilan3-.json.gz new file mode 100644 index 0000000..6c45457 Binary files /dev/null and b/airport/dianziweilan3-.json.gz differ diff --git a/airport/dianziweilan3.json b/airport/dianziweilan3.json new file mode 100644 index 0000000..c27ccf8 --- /dev/null +++ b/airport/dianziweilan3.json @@ -0,0 +1,141 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.09156198485952, + 36.38374670544003 + ], + [ + 120.1058981720214, + 36.347398645139045 + ], + [ + 120.10708240124143, + 36.347704777171314 + ], + [ + 120.10804995434518, + 36.34532232120764 + ], + [ + 120.11004552823175, + 36.3458201108951 + ], + [ + 120.10709493318733, + 36.353527176950855 + ], + [ + 120.10520038611152, + 36.3529972029937 + ], + [ + 120.09510099202019, + 36.37876469280091 + ], + [ + 120.09686288712787, + 36.37926034388491 + ], + [ + 120.09363611063998, + 36.387410821002774 + ], + [ + 120.09184386239254, + 36.38686772331895 + ], + [ + 120.09291010674492, + 36.384154860841625 + ], + [ + 120.09156198485952, + 36.38374670544003 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 602528.4803776602, + "perimeter": 8788.572594646657, + "vertices": 12 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.07126176712471, + 36.373818047287116 + ], + [ + 120.08564996318957, + 36.33748384948377 + ], + [ + 120.08426005179666, + 36.33716332014748 + ], + [ + 120.08521045418537, + 36.33463852713961 + ], + [ + 120.08339105172972, + 36.33416710471437 + ], + [ + 120.08027843599086, + 36.34203004990396 + ], + [ + 120.08209800275336, + 36.342501518882145 + ], + [ + 120.0718432109588, + 36.368149293562794 + ], + [ + 120.07027524004351, + 36.36778259304395 + ], + [ + 120.06698410256378, + 36.37571834764419 + ], + [ + 120.06884877130268, + 36.37620151937567 + ], + [ + 120.07003290479581, + 36.37346005873477 + ], + [ + 120.07126176712471, + 36.373818047287116 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 610875.4253794011, + "perimeter": 8778.484096379749, + "vertices": 12 + } + } + ] +} \ No newline at end of file diff --git a/airport/dianziweilan3.json.gz b/airport/dianziweilan3.json.gz new file mode 100644 index 0000000..7ed7c26 Binary files /dev/null and b/airport/dianziweilan3.json.gz differ diff --git a/airport/favicon.ico b/airport/favicon.ico new file mode 100644 index 0000000..e263760 Binary files /dev/null and b/airport/favicon.ico differ diff --git a/airport/index.html b/airport/index.html new file mode 100644 index 0000000..545b776 --- /dev/null +++ b/airport/index.html @@ -0,0 +1,213 @@ + + + + + + + + + + 青岛机场 + + + + + + + + + +
    +
    + + + + \ No newline at end of file diff --git a/airport/index.html.gz b/airport/index.html.gz new file mode 100644 index 0000000..a5e464c Binary files /dev/null and b/airport/index.html.gz differ diff --git a/airport/quyu.json b/airport/quyu.json new file mode 100644 index 0000000..ba0745a --- /dev/null +++ b/airport/quyu.json @@ -0,0 +1,65 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [120.082584, 36.370196], + [120.085137, 36.370196], + [120.085137, 36.365117], + [120.082584, 36.365117], + [120.082584, 36.370196] + ] + ] + }, + "properties": { + "name": "无人车A测试区域", + "type": "polygon", + "color": "#FF5733" + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [120.085765, 36.371484], + [120.087465, 36.371484], + [120.087465, 36.368099], + [120.085765, 36.368099], + [120.085765, 36.371484] + ] + ] + }, + "properties": { + "name": "无人车B测试区域", + "type": "polygon", + "color": "#3374FF" + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [120.083, 36.371], + [120.087, 36.371], + [120.087, 36.365], + [120.083, 36.365], + [120.083, 36.371] + ] + ] + }, + "properties": { + "name": "无人车交汇测试区域", + "type": "polygon", + "color": "#33FF57" + } + } + ] + } \ No newline at end of file diff --git a/airport/quyu.json.gz b/airport/quyu.json.gz new file mode 100644 index 0000000..a0247ca Binary files /dev/null and b/airport/quyu.json.gz differ diff --git a/airport/quyu1.json b/airport/quyu1.json new file mode 100644 index 0000000..3d5abd2 --- /dev/null +++ b/airport/quyu1.json @@ -0,0 +1,49 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.08646134220226, + 36.36997466676866 + ], + [ + 120.086830266589, + 36.37063980458865 + ], + [ + 120.08515882034526, + 36.37156622537344 + ], + [ + 120.08543839423878, + 36.37073891647525 + ], + [ + 120.0851419887492, + 36.370416189872486 + ], + [ + 120.0858980160674, + 36.36986114517269 + ], + [ + 120.08646134220226, + 36.36997466676866 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 10388.360616276083, + "perimeter": 452.43662412430064, + "vertices": 6 + } + } + ] +} \ No newline at end of file diff --git a/airport/quyu2.json b/airport/quyu2.json new file mode 100644 index 0000000..dce8e84 --- /dev/null +++ b/airport/quyu2.json @@ -0,0 +1,77 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.08483597765024, + 36.36489863472901 + ], + [ + 120.08549104408633, + 36.36594996564427 + ], + [ + 120.08416649728491, + 36.36673180599232 + ], + [ + 120.08378219088705, + 36.36561378252756 + ], + [ + 120.08483597765024, + 36.36489863472901 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 11470.775100380806, + "perimeter": 439.0229879087821, + "vertices": 4 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.08483597765024, + 36.36489863472901 + ], + [ + 120.08549104408633, + 36.36594996564427 + ], + [ + 120.08416649728491, + 36.36673180599232 + ], + [ + 120.08378219088705, + 36.36561378252756 + ], + [ + 120.08483597765024, + 36.36489863472901 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 11470.775100380806, + "perimeter": 439.0229879087821, + "vertices": 4 + } + } + ] +} \ No newline at end of file diff --git a/airport/quyu2.json.gz b/airport/quyu2.json.gz new file mode 100644 index 0000000..60eccb6 Binary files /dev/null and b/airport/quyu2.json.gz differ diff --git a/airport/roadTest (10).json b/airport/roadTest (10).json new file mode 100644 index 0000000..ffae0a1 --- /dev/null +++ b/airport/roadTest (10).json @@ -0,0 +1,141 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.06680553322079, + 36.3756610761054 + ], + [ + 120.07009884215601, + 36.36776107535898 + ], + [ + 120.07192387838387, + 36.36823397445302 + ], + [ + 120.08211551872735, + 36.34263581071313 + ], + [ + 120.08014115531563, + 36.34199227410737 + ], + [ + 120.08336660705152, + 36.33411898061896 + ], + [ + 120.08504301897871, + 36.33455335486045 + ], + [ + 120.08402857238409, + 36.336841629878386 + ], + [ + 120.08557485116522, + 36.33733023474972 + ], + [ + 120.07108674301828, + 36.373779295504136 + ], + [ + 120.07006855545255, + 36.37360345404074 + ], + [ + 120.06879644514126, + 36.37626493617896 + ], + [ + 120.06680553322079, + 36.3756610761054 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 569673.194088469, + "perimeter": 8796.631683199665, + "vertices": 12 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.09158052032417, + 36.38383726985534 + ], + [ + 120.10584786828449, + 36.34737462568589 + ], + [ + 120.10717945959168, + 36.347719320219326 + ], + [ + 120.10806119675463, + 36.34535266057573 + ], + [ + 120.11000035410551, + 36.345810612041106 + ], + [ + 120.10690534134876, + 36.35349789084158 + ], + [ + 120.10521261655005, + 36.35310372469483 + ], + [ + 120.09506073266297, + 36.378756469907316 + ], + [ + 120.09678750396878, + 36.37920344577873 + ], + [ + 120.09364639423309, + 36.38727493491003 + ], + [ + 120.09182078069595, + 36.38680236960825 + ], + [ + 120.0927311105954, + 36.38409113927689 + ], + [ + 120.09158052032417, + 36.38383726985534 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 596196.297961674, + "perimeter": 8748.090107241624, + "vertices": 12 + } + } + ] +} \ No newline at end of file diff --git a/airport/roadTest (10).json.gz b/airport/roadTest (10).json.gz new file mode 100644 index 0000000..187a5f3 Binary files /dev/null and b/airport/roadTest (10).json.gz differ diff --git a/airport/roadTest (9).json b/airport/roadTest (9).json new file mode 100644 index 0000000..f23ca29 --- /dev/null +++ b/airport/roadTest (9).json @@ -0,0 +1,77 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.09236342223025, + 36.3816931275766 + ], + [ + 120.09142601318554, + 36.38145045198584 + ], + [ + 120.10400234250483, + 36.3491242434101 + ], + [ + 120.10495715607009, + 36.34945937932206 + ], + [ + 120.09236342223025, + 36.3816931275766 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 233514.97672754098, + "perimeter": 6372.499974774155, + "vertices": 4 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 120.09581162662337, + 36.378891163069525 + ], + [ + 120.09512092126158, + 36.37871237020484 + ], + [ + 120.10516032611149, + 36.35320643561339 + ], + [ + 120.10575218630629, + 36.35335963832235 + ], + [ + 120.09581162662337, + 36.378891163069525 + ] + ] + ] + }, + "properties": { + "type": "polygon", + "area": 123140.62453764227, + "perimeter": 5020.640331403301, + "vertices": 4 + } + } + ] +} \ No newline at end of file diff --git a/airport/roadTest (9).json.gz b/airport/roadTest (9).json.gz new file mode 100644 index 0000000..194d2fb Binary files /dev/null and b/airport/roadTest (9).json.gz differ diff --git a/airport/roadTest.json b/airport/roadTest.json new file mode 100644 index 0000000..3e93673 --- /dev/null +++ b/airport/roadTest.json @@ -0,0 +1,4044 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09230517220576, + 36.367381582802416 + ], + [ + 120.09167770900461, + 36.36721911602225 + ], + [ + 120.0913366227149, + 36.366868186189656 + ], + [ + 120.09143142316346, + 36.36666437498677 + ], + [ + 120.09201337879351, + 36.366335509359075 + ] + ] + }, + "properties": { + "type": "route", + "length": 162.78959649572573, + "vertices": 5 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09137256463661, + 36.36433252506123 + ], + [ + 120.09150486918158, + 36.36428102945066 + ], + [ + 120.09159356482644, + 36.364280175642165 + ], + [ + 120.09184512256293, + 36.36425479540026 + ], + [ + 120.09200842782454, + 36.36413986456283 + ], + [ + 120.09208367088529, + 36.36406882909753 + ] + ] + }, + "properties": { + "type": "route", + "length": 61.04490311417035, + "vertices": 6 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09288617366393, + 36.36555340785599 + ], + [ + 120.09273870405893, + 36.365539044939844 + ], + [ + 120.0915287526021, + 36.36457782690649 + ] + ] + }, + "properties": { + "type": "route", + "length": 137.12017232525972, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09201039749722, + 36.3663223485837 + ], + [ + 120.09239790163137, + 36.36625117553398 + ], + [ + 120.09274671600467, + 36.36620333245596 + ], + [ + 120.09284761847844, + 36.366067478369665 + ], + [ + 120.09293893040278, + 36.36576239669111 + ], + [ + 120.09287248952515, + 36.36558797745648 + ] + ] + }, + "properties": { + "type": "route", + "length": 116.03103671784747, + "vertices": 6 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08937631267577, + 36.368781461638626 + ], + [ + 120.08721262576732, + 36.36824325483559 + ], + [ + 120.08691716698358, + 36.36857548401697 + ] + ] + }, + "properties": { + "type": "route", + "length": 205.88011200776612, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08723294958376, + 36.368226424165904 + ], + [ + 120.08719779792229, + 36.36807370832067 + ], + [ + 120.0885218008375, + 36.36466057340617 + ], + [ + 120.08921959888754, + 36.36455405501545 + ], + [ + 120.09024031931158, + 36.365425961760586 + ], + [ + 120.09110412356343, + 36.36541765299143 + ], + [ + 120.09202625250308, + 36.36629714803504 + ] + ] + }, + "properties": { + "type": "route", + "length": 676.4236144777767, + "vertices": 7 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08792756657802, + 36.36348328790364 + ], + [ + 120.08825223714979, + 36.36336250891159 + ], + [ + 120.08869036728028, + 36.363356867595606 + ], + [ + 120.08919919277484, + 36.363574392321965 + ], + [ + 120.08935881873, + 36.363691956475236 + ], + [ + 120.0902261778953, + 36.36440251113966 + ], + [ + 120.09079687862882, + 36.36499812450593 + ], + [ + 120.090997753561, + 36.36514542293124 + ], + [ + 120.0909573091334, + 36.36541127109718 + ], + [ + 120.09101033854654, + 36.365277314026464 + ] + ] + }, + "properties": { + "type": "route", + "length": 336.71804083653325, + "vertices": 10 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09306069205658, + 36.361228874971225 + ], + [ + 120.09135553193344, + 36.361506660789026 + ], + [ + 120.0909063138033, + 36.36160727409694 + ], + [ + 120.08989207062153, + 36.362029703667154 + ], + [ + 120.08968506224835, + 36.36240997963872 + ], + [ + 120.08971583939245, + 36.36218959012177 + ], + [ + 120.08970808700641, + 36.362530122068314 + ], + [ + 120.0898585938556, + 36.362934472697475 + ], + [ + 120.090001971109, + 36.36314287126521 + ], + [ + 120.0893334288427, + 36.36365482393761 + ] + ] + }, + "properties": { + "type": "route", + "length": 467.84154251293944, + "vertices": 10 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09098877831384, + 36.36513833477584 + ], + [ + 120.0911772575096, + 36.365287187002956 + ] + ] + }, + "properties": { + "type": "route", + "length": 19.583086471890734, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09101186059554, + 36.36513954768839 + ], + [ + 120.09099329944898, + 36.36496323202268 + ], + [ + 120.09151485670287, + 36.364598049422725 + ], + [ + 120.0913657222748, + 36.36434980994373 + ] + ] + }, + "properties": { + "type": "route", + "length": 92.9146913370116, + "vertices": 4 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.090001971109, + 36.36314287126521 + ], + [ + 120.09135910939563, + 36.36435064875086 + ] + ] + }, + "properties": { + "type": "route", + "length": 150.0089749375779, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09088538400353, + 36.36394253171847 + ], + [ + 120.09027934740698, + 36.364367914572895 + ] + ] + }, + "properties": { + "type": "route", + "length": 59.652779847958584, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09064664369039, + 36.3641889951753 + ], + [ + 120.09040593611427, + 36.36401248427619 + ] + ] + }, + "properties": { + "type": "route", + "length": 24.154011766447233, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08589080465886, + 36.36844224827041 + ], + [ + 120.08564796103846, + 36.36843459242783 + ], + [ + 120.08521830483292, + 36.36831227165073 + ], + [ + 120.08475148202885, + 36.36818032319775 + ], + [ + 120.08451608795949, + 36.368119358154374 + ], + [ + 120.0842366403446, + 36.36785917973091 + ], + [ + 120.08398245809924, + 36.36763868672873 + ], + [ + 120.08390026534774, + 36.36736331225091 + ], + [ + 120.08540243804345, + 36.363466059921684 + ], + [ + 120.08523596026582, + 36.363334565022875 + ], + [ + 120.08570873979541, + 36.363313401248114 + ], + [ + 120.0866002235347, + 36.36351114783576 + ], + [ + 120.08666522707543, + 36.36317447504026 + ], + [ + 120.08793678952476, + 36.36348169431693 + ], + [ + 120.08760418634937, + 36.36380429963533 + ], + [ + 120.08729427698162, + 36.364552572481195 + ], + [ + 120.08742457017748, + 36.3647409752254 + ], + [ + 120.08840725156799, + 36.36498441549616 + ] + ] + }, + "properties": { + "type": "route", + "length": 1026.2698066593239, + "vertices": 18 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08418129191735, + 36.36275905083052 + ], + [ + 120.08401594324052, + 36.36214176727874 + ] + ] + }, + "properties": { + "type": "route", + "length": 58.05483600474621, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08538902061659, + 36.36264102072047 + ], + [ + 120.0851151617334, + 36.36191830629598 + ] + ] + }, + "properties": { + "type": "route", + "length": 69.47934191449849, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08696275735993, + 36.368598337441455 + ], + [ + 120.08676056100124, + 36.368557021718075 + ], + [ + 120.08632888419697, + 36.36857779540632 + ], + [ + 120.08587444779968, + 36.368449059174196 + ], + [ + 120.08615912089394, + 36.36766110636902 + ], + [ + 120.08615125496607, + 36.36740498457494 + ], + [ + 120.0856620936718, + 36.36743296087217 + ], + [ + 120.08523300257043, + 36.367067746587594 + ], + [ + 120.08588356829863, + 36.36570067996333 + ], + [ + 120.08664629820069, + 36.36356727020478 + ] + ] + }, + "properties": { + "type": "route", + "length": 603.9535035021506, + "vertices": 10 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08739979258549, + 36.36473455839161 + ], + [ + 120.08721939146311, + 36.36477621563951 + ], + [ + 120.08672601255077, + 36.36591885945835 + ], + [ + 120.08591231448003, + 36.36569707704753 + ] + ] + }, + "properties": { + "type": "route", + "length": 189.02149174380116, + "vertices": 4 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08677953574201, + 36.36592167306099 + ], + [ + 120.08623303832319, + 36.36737092907533 + ] + ] + }, + "properties": { + "type": "route", + "length": 139.26208694617264, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08312416302671, + 36.36304864462524 + ], + [ + 120.08288748886454, + 36.3623355510006 + ] + ] + }, + "properties": { + "type": "route", + "length": 67.86539115264556, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08522194570449, + 36.36340241469853 + ], + [ + 120.08345316775363, + 36.36369549453184 + ], + [ + 120.08327479059324, + 36.36359405529755 + ], + [ + 120.08327236037486, + 36.3634277169362 + ], + [ + 120.08318369784584, + 36.363272184719 + ], + [ + 120.08312861685243, + 36.36307189246005 + ], + [ + 120.08286595279525, + 36.36311432897431 + ], + [ + 120.08241989195703, + 36.363274969463085 + ], + [ + 120.0816854162295, + 36.363405089129685 + ], + [ + 120.08143650879357, + 36.36382669570677 + ], + [ + 120.08145026746105, + 36.364205868916365 + ], + [ + 120.08134168287485, + 36.364376593157004 + ], + [ + 120.08098087606777, + 36.36445988921981 + ], + [ + 120.08026631634905, + 36.36426374077572 + ] + ] + }, + "properties": { + "type": "route", + "length": 491.878909448041, + "vertices": 14 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08395030909857, + 36.36740941562921 + ], + [ + 120.07752053849707, + 36.36574389477443 + ] + ] + }, + "properties": { + "type": "route", + "length": 501.87568839052494, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07927044309683, + 36.36650247286561 + ], + [ + 120.0795124959652, + 36.36589128474989 + ] + ] + }, + "properties": { + "type": "route", + "length": 58.98751787127175, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07900621808542, + 36.36672125845379 + ], + [ + 120.07730103600278, + 36.366301614916814 + ] + ] + }, + "properties": { + "type": "route", + "length": 132.4939161922659, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08159945071007, + 36.36738194951049 + ], + [ + 120.07932832543008, + 36.36680469924859 + ] + ] + }, + "properties": { + "type": "route", + "length": 176.9636886525936, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08003142286783, + 36.364236035021264 + ], + [ + 120.07911468577812, + 36.363998552691385 + ] + ] + }, + "properties": { + "type": "route", + "length": 71.5601447039514, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08091309942165, + 36.3626273127474 + ], + [ + 120.08080389703014, + 36.36247588347341 + ], + [ + 120.08077703344766, + 36.36203109005059 + ], + [ + 120.08051700666972, + 36.36201845994045 + ], + [ + 120.08010806645714, + 36.3619262052389 + ], + [ + 120.07993765818398, + 36.36188662083374 + ] + ] + }, + "properties": { + "type": "route", + "length": 121.15517040691766, + "vertices": 6 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08078194742322, + 36.362018680887395 + ], + [ + 120.08091331645444, + 36.36194325301212 + ], + [ + 120.08279049590921, + 36.36163138202989 + ] + ] + }, + "properties": { + "type": "route", + "length": 154.446605497014, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08751970339976, + 36.37565454180427 + ], + [ + 120.08730242957928, + 36.37568597132966 + ], + [ + 120.08423512802648, + 36.37488192929542 + ], + [ + 120.08293469985733, + 36.37454514579447 + ], + [ + 120.08356071672048, + 36.372933956442 + ] + ] + }, + "properties": { + "type": "route", + "length": 512.7478877138294, + "vertices": 5 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08806084691777, + 36.374095578380725 + ], + [ + 120.08479915160945, + 36.37325094219152 + ], + [ + 120.08417053988273, + 36.374921792091214 + ] + ] + }, + "properties": { + "type": "route", + "length": 415.05756743061056, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07753355063686, + 36.3732848225724 + ], + [ + 120.07763378918028, + 36.37333217223772 + ], + [ + 120.07957397474819, + 36.373808006089966 + ] + ] + }, + "properties": { + "type": "route", + "length": 159.31515020326955, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08591986722104, + 36.38057484780335 + ], + [ + 120.08776057260889, + 36.37586396960593 + ], + [ + 120.08093146293335, + 36.37409542816977 + ], + [ + 120.07973281993368, + 36.37374490745048 + ], + [ + 120.07916930729012, + 36.37397950540186 + ], + [ + 120.07695895140692, + 36.373306801294795 + ] + ] + }, + "properties": { + "type": "route", + "length": 1304.3465628320484, + "vertices": 6 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08297098405372, + 36.374544799499674 + ], + [ + 120.07989284416612, + 36.3737378155829 + ] + ] + }, + "properties": { + "type": "route", + "length": 240.4973325546714, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08626993836283, + 36.37045159024551 + ], + [ + 120.08701628209222, + 36.36860115169873 + ] + ] + }, + "properties": { + "type": "route", + "length": 178.89342815576026, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.0926748715534, + 36.372125539144385 + ], + [ + 120.08845798582304, + 36.37103902738968 + ], + [ + 120.08933529482857, + 36.36882316170714 + ], + [ + 120.09155891177294, + 36.369350820419626 + ] + ] + }, + "properties": { + "type": "route", + "length": 715.0489974910035, + "vertices": 4 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08846340311582, + 36.37105274497372 + ], + [ + 120.08098015358489, + 36.36911470251917 + ] + ] + }, + "properties": { + "type": "route", + "length": 584.0511364943209, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09332654979026, + 36.37041255691754 + ], + [ + 120.08914763988895, + 36.36933053406705 + ], + [ + 120.08967337847756, + 36.36920472605886 + ], + [ + 120.0891495596892, + 36.369325685044885 + ] + ] + }, + "properties": { + "type": "route", + "length": 407.39462774791593, + "vertices": 4 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08480322716463, + 36.37325734386894 + ], + [ + 120.0835652601045, + 36.37294394427724 + ], + [ + 120.07965998714347, + 36.37192176795242 + ], + [ + 120.07734382333385, + 36.371327143433824 + ], + [ + 120.076662978817, + 36.373112766550975 + ], + [ + 120.07725990975308, + 36.37322463046436 + ] + ] + }, + "properties": { + "type": "route", + "length": 799.399790928904, + "vertices": 6 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07797357574425, + 36.3715063157258 + ], + [ + 120.07729372853609, + 36.37322269885922 + ], + [ + 120.07752732142379, + 36.37326717093007 + ] + ] + }, + "properties": { + "type": "route", + "length": 183.4804764842342, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07775009763814, + 36.37030665375086 + ], + [ + 120.07786470011676, + 36.369982822852464 + ] + ] + }, + "properties": { + "type": "route", + "length": 30.958203955234538, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07739834792335, + 36.37129818431599 + ], + [ + 120.07747771960676, + 36.371097796173245 + ] + ] + }, + "properties": { + "type": "route", + "length": 19.33923433371192, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08095413161786, + 36.369114937353196 + ], + [ + 120.08183055561364, + 36.36686735096304 + ] + ] + }, + "properties": { + "type": "route", + "length": 216.60831002209582, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.0830407404477, + 36.36963737105803 + ], + [ + 120.08387297994852, + 36.36746671760158 + ] + ] + }, + "properties": { + "type": "route", + "length": 208.87803589036915, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08095537592574, + 36.36910828498173 + ], + [ + 120.07664400302012, + 36.367991450106175 + ] + ] + }, + "properties": { + "type": "route", + "length": 336.51136960966915, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07805615326527, + 36.369568425641596 + ], + [ + 120.07848473694195, + 36.36848632639525 + ] + ] + }, + "properties": { + "type": "route", + "length": 104.43406188565872, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07349555029971, + 36.37826793341259 + ], + [ + 120.07630881859174, + 36.37107504317048 + ], + [ + 120.07734647836072, + 36.37131462076432 + ] + ] + }, + "properties": { + "type": "route", + "length": 773.5540214246104, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07673425752165, + 36.37313400134991 + ], + [ + 120.07663359897522, + 36.37344895634878 + ], + [ + 120.07351705516074, + 36.38125511192311 + ] + ] + }, + "properties": { + "type": "route", + "length": 783.7709005507754, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.0735213193717, + 36.38062612238478 + ], + [ + 120.07441210700473, + 36.378543681132804 + ] + ] + }, + "properties": { + "type": "route", + "length": 202.50472221588058, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07680978142153, + 36.37330821970944 + ], + [ + 120.07358844334514, + 36.381627339904966 + ], + [ + 120.0737899611933, + 36.3811187064606 + ], + [ + 120.07368375288935, + 36.38151182054548 + ] + ] + }, + "properties": { + "type": "route", + "length": 887.221900940306, + "vertices": 4 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07663846871903, + 36.37328457406789 + ], + [ + 120.07570570695563, + 36.37302345251129 + ], + [ + 120.07551464247457, + 36.37311036848743 + ] + ] + }, + "properties": { + "type": "route", + "length": 89.65657106331508, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07590464035358, + 36.37522835557089 + ], + [ + 120.07481144396704, + 36.37491592746626 + ] + ] + }, + "properties": { + "type": "route", + "length": 86.17220437064036, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07418009596611, + 36.37842578181452 + ], + [ + 120.07242810266762, + 36.377981650538445 + ], + [ + 120.0722409479807, + 36.378089066018205 + ], + [ + 120.0720308787138, + 36.378619274663635 + ], + [ + 120.07183194547517, + 36.37866517507846 + ], + [ + 120.07104162425168, + 36.37847016393852 + ] + ] + }, + "properties": { + "type": "route", + "length": 281.45214612146793, + "vertices": 6 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.06969532738111, + 36.378332061850536 + ], + [ + 120.0699124652238, + 36.378281965002344 + ], + [ + 120.07199986677179, + 36.37882277427982 + ], + [ + 120.07242486799254, + 36.378082043116144 + ], + [ + 120.07429282516037, + 36.37851278102013 + ] + ] + }, + "properties": { + "type": "route", + "length": 399.07163311206614, + "vertices": 5 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.06964158690508, + 36.37813779606164 + ], + [ + 120.06884897469102, + 36.38004687105683 + ] + ] + }, + "properties": { + "type": "route", + "length": 185.07116634023473, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07355113998642, + 36.38063384746582 + ], + [ + 120.07333167932916, + 36.38052381826429 + ], + [ + 120.07294952615175, + 36.38148836314147 + ] + ] + }, + "properties": { + "type": "route", + "length": 112.26867801537274, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07363082540019, + 36.3608459936879 + ], + [ + 120.07119391453114, + 36.366914904379094 + ], + [ + 120.07005338433488, + 36.36747020863234 + ], + [ + 120.06670711919823, + 36.37574972382062 + ], + [ + 120.068458023247, + 36.376309777677704 + ] + ] + }, + "properties": { + "type": "route", + "length": 1625.9717413260664, + "vertices": 5 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.0669764608976, + 36.3757712630809 + ], + [ + 120.06690220215596, + 36.375654580112865 + ], + [ + 120.07011328384122, + 36.36758065413142 + ], + [ + 120.0711722058949, + 36.3670365545714 + ] + ] + }, + "properties": { + "type": "route", + "length": 884.8164787670341, + "vertices": 4 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07108365663095, + 36.37848218815816 + ], + [ + 120.06965209128967, + 36.37811128557664 + ], + [ + 120.07119794680773, + 36.37408806925693 + ] + ] + }, + "properties": { + "type": "route", + "length": 498.90409746334626, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.06760325461443, + 36.3759531690378 + ], + [ + 120.06685275652173, + 36.37574895154551 + ] + ] + }, + "properties": { + "type": "route", + "length": 58.84994724698121, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.06886171061414, + 36.379923499405294 + ], + [ + 120.06867454733292, + 36.38003090915198 + ], + [ + 120.06770194354634, + 36.37977890409243 + ], + [ + 120.06756561330111, + 36.379636395732526 + ], + [ + 120.06883891985544, + 36.37633181337615 + ], + [ + 120.06869251239446, + 36.37624515780267 + ], + [ + 120.06758882530006, + 36.37595917394616 + ] + ] + }, + "properties": { + "type": "route", + "length": 527.2287750838923, + "vertices": 7 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.068458023247, + 36.376309777677704 + ], + [ + 120.06867862099783, + 36.376499882195596 + ], + [ + 120.0673802872737, + 36.37985934772181 + ], + [ + 120.0688105059539, + 36.38015015625953 + ], + [ + 120.06963568867532, + 36.37831660974727 + ] + ] + }, + "properties": { + "type": "route", + "length": 636.3381450169396, + "vertices": 5 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07117750924603, + 36.36703602664423 + ], + [ + 120.07229033694234, + 36.36422073838932 + ] + ] + }, + "properties": { + "type": "route", + "length": 271.66494148783744, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.07229623166843, + 36.36422422763676 + ], + [ + 120.07312039327692, + 36.36211300008861 + ] + ] + }, + "properties": { + "type": "route", + "length": 203.49775403418585, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08996697325493, + 36.387567278794684 + ], + [ + 120.09154256936812, + 36.3836224973851 + ], + [ + 120.09137918382478, + 36.38389815324613 + ], + [ + 120.09152385319823, + 36.383738254609916 + ] + ] + }, + "properties": { + "type": "route", + "length": 427.2434980466288, + "vertices": 4 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.0838234265996, + 36.385899699288466 + ], + [ + 120.08589762529387, + 36.38641673931029 + ] + ] + }, + "properties": { + "type": "route", + "length": 161.27611583598562, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08618894427211, + 36.38593135502494 + ], + [ + 120.0859803004432, + 36.3864581744462 + ] + ] + }, + "properties": { + "type": "route", + "length": 50.83400421883771, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.0898222666505, + 36.38770442602781 + ], + [ + 120.08986399516903, + 36.38784816393086 + ], + [ + 120.08910001666737, + 36.38977735528187 + ], + [ + 120.09059132827343, + 36.390163410549874 + ], + [ + 120.09168595284534, + 36.387149985629186 + ] + ] + }, + "properties": { + "type": "route", + "length": 604.6625337047785, + "vertices": 5 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08995467413106, + 36.387564094838346 + ], + [ + 120.08813044903694, + 36.38710279239363 + ] + ] + }, + "properties": { + "type": "route", + "length": 142.01539401795324, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09157061828544, + 36.3835859029222 + ], + [ + 120.0915485002757, + 36.38347053843841 + ] + ] + }, + "properties": { + "type": "route", + "length": 10.728398375193786, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09155389571897, + 36.38355964646194 + ], + [ + 120.09155389571897, + 36.38355964646194 + ] + ] + }, + "properties": { + "type": "route", + "length": 0, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09155044439787, + 36.383602608636224 + ], + [ + 120.09161538945544, + 36.383575565665254 + ] + ] + }, + "properties": { + "type": "route", + "length": 5.4281795274900615, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.0915386318517, + 36.38363244175932 + ], + [ + 120.09157504152739, + 36.383608976224835 + ] + ] + }, + "properties": { + "type": "route", + "length": 3.4597486153776926, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08406248974211, + 36.38592154333921 + ], + [ + 120.08804084790651, + 36.375875633652385 + ], + [ + 120.0886456585335, + 36.37593035096872 + ], + [ + 120.09094335303304, + 36.37652977763226 + ], + [ + 120.09153986250209, + 36.375009026388575 + ], + [ + 120.09140434164537, + 36.374942332123744 + ], + [ + 120.08804973663642, + 36.374089554876925 + ], + [ + 120.08742759225359, + 36.375660772798575 + ], + [ + 120.08804342883242, + 36.375886019668286 + ] + ] + }, + "properties": { + "type": "route", + "length": 1815.6868407478473, + "vertices": 9 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09186490457566, + 36.38719630929926 + ], + [ + 120.09208087278631, + 36.38706610635041 + ], + [ + 120.093751101913, + 36.38749844576519 + ], + [ + 120.09709499877324, + 36.379218192376996 + ], + [ + 120.0965463516915, + 36.37827858404046 + ], + [ + 120.09809276969479, + 36.37437186354997 + ] + ] + }, + "properties": { + "type": "route", + "length": 1423.2847301134298, + "vertices": 6 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08619672491872, + 36.385856585872524 + ], + [ + 120.08955530592058, + 36.37734098737437 + ], + [ + 120.08983475491266, + 36.377183097887425 + ], + [ + 120.09057310314917, + 36.377407155107015 + ], + [ + 120.09098355776787, + 36.37643896054056 + ], + [ + 120.08960986897455, + 36.3799426068876 + ], + [ + 120.08937420817705, + 36.38002412358862 + ], + [ + 120.08865255862082, + 36.379826316611876 + ] + ] + }, + "properties": { + "type": "route", + "length": 1412.884912665497, + "vertices": 8 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08781079035258, + 36.382238448493936 + ], + [ + 120.08816631747482, + 36.38217097593321 + ], + [ + 120.08958828507737, + 36.38256571614574 + ] + ] + }, + "properties": { + "type": "route", + "length": 138.85532936069995, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08362494311328, + 36.38516931786571 + ], + [ + 120.08637948106738, + 36.385935722514155 + ], + [ + 120.08776304303926, + 36.38235902240571 + ] + ] + }, + "properties": { + "type": "route", + "length": 560.8431074549671, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08957873591723, + 36.38258983162182 + ], + [ + 120.0897409319115, + 36.38284452015998 + ], + [ + 120.08803158005426, + 36.38716107987992 + ], + [ + 120.08973161435325, + 36.38760119711017 + ] + ] + }, + "properties": { + "type": "route", + "length": 575.4724142834314, + "vertices": 4 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09458590080749, + 36.37675758808924 + ], + [ + 120.09122470218325, + 36.37589837956023 + ] + ] + }, + "properties": { + "type": "route", + "length": 261.9846857219177, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08921264464772, + 36.36928321708934 + ], + [ + 120.0892037838252, + 36.369222118283425 + ] + ] + }, + "properties": { + "type": "route", + "length": 5.654114785242731, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.0892037838252, + 36.369222118283425 + ], + [ + 120.08920402012004, + 36.36923821709157 + ] + ] + }, + "properties": { + "type": "route", + "length": 1.4797542782217472, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09018943424715, + 36.37316059928419 + ], + [ + 120.09007256811093, + 36.373472471132416 + ] + ] + }, + "properties": { + "type": "route", + "length": 29.950364836901603, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09033869767251, + 36.372750200039846 + ], + [ + 120.09045172245614, + 36.37244802566699 + ] + ] + }, + "properties": { + "type": "route", + "length": 29.014828980224827, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09078621642264, + 36.371636541162616 + ], + [ + 120.09067464036235, + 36.37190166998985 + ] + ] + }, + "properties": { + "type": "route", + "length": 25.740087719302405, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09947184186667, + 36.35210633163703 + ], + [ + 120.09931946999279, + 36.351985994409524 + ], + [ + 120.08566527381407, + 36.34850376392216 + ] + ] + }, + "properties": { + "type": "route", + "length": 1080.4628031460388, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09414739125278, + 36.3499180918399 + ], + [ + 120.0945810103047, + 36.34882237370914 + ] + ] + }, + "properties": { + "type": "route", + "length": 105.76268340297358, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.0996017730175, + 36.35200928434351 + ], + [ + 120.09395133740445, + 36.350546181245875 + ], + [ + 120.09122526948046, + 36.3498516926901 + ] + ] + }, + "properties": { + "type": "route", + "length": 653.7066140495766, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09391765563977, + 36.35060641494906 + ], + [ + 120.09405240628755, + 36.35015810637147 + ] + ] + }, + "properties": { + "type": "route", + "length": 42.41241158822809, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09346586231142, + 36.36765926986599 + ], + [ + 120.09254386888756, + 36.36742055080719 + ] + ] + }, + "properties": { + "type": "route", + "length": 71.96171007520692, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09353553103031, + 36.369867939839224 + ], + [ + 120.09176491657155, + 36.36941485106306 + ] + ] + }, + "properties": { + "type": "route", + "length": 138.04131308409038, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.10030192187749, + 36.37510318635573 + ], + [ + 120.10054053809918, + 36.37450029097175 + ], + [ + 120.09980454997174, + 36.37428321160455 + ] + ] + }, + "properties": { + "type": "route", + "length": 116.40341978406042, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09816314304338, + 36.374443251376334 + ], + [ + 120.09841007182462, + 36.374400821530465 + ], + [ + 120.09970193119344, + 36.374708616230905 + ] + ] + }, + "properties": { + "type": "route", + "length": 118.85606775201612, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.0827837435433, + 36.36163419363703 + ], + [ + 120.08419771792393, + 36.36135282338942 + ], + [ + 120.08431885413711, + 36.36127474242235 + ], + [ + 120.08458541371517, + 36.360573024201656 + ], + [ + 120.08452059736261, + 36.36043765697274 + ], + [ + 120.08336274236164, + 36.35941714762354 + ], + [ + 120.08152672923383, + 36.35777398705403 + ] + ] + }, + "properties": { + "type": "route", + "length": 531.4902203453389, + "vertices": 7 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08222497300137, + 36.35837445765859 + ], + [ + 120.08249752290892, + 36.35819878008547 + ], + [ + 120.08270088149493, + 36.35816936522133 + ], + [ + 120.08292613341466, + 36.35812737861852 + ] + ] + }, + "properties": { + "type": "route", + "length": 58.4569780316984, + "vertices": 4 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08026854281822, + 36.36105105977815 + ], + [ + 120.08061019308303, + 36.361071153945474 + ], + [ + 120.08099586877405, + 36.360965828649725 + ], + [ + 120.08134639320153, + 36.3600806269043 + ], + [ + 120.08163119335966, + 36.35934714839872 + ], + [ + 120.08156885753785, + 36.35914856973662 + ], + [ + 120.08132893164141, + 36.35899976193565 + ], + [ + 120.08109615913912, + 36.35887561040241 + ] + ] + }, + "properties": { + "type": "route", + "length": 273.87604789501285, + "vertices": 8 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08359284672527, + 36.35959077025656 + ], + [ + 120.08378764999904, + 36.35944055768201 + ], + [ + 120.08392392500764, + 36.35935271715641 + ], + [ + 120.08414794372588, + 36.359342333054926 + ], + [ + 120.08438118622998, + 36.35926592688579 + ] + ] + }, + "properties": { + "type": "route", + "length": 68.35733253428965, + "vertices": 5 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08749887366383, + 36.33329001257585 + ], + [ + 120.08731652852796, + 36.33300348364993 + ], + [ + 120.08802861164611, + 36.331619307160324 + ], + [ + 120.08654797196392, + 36.331209101762674 + ], + [ + 120.08536802969464, + 36.334439537263556 + ] + ] + }, + "properties": { + "type": "route", + "length": 593.6241440156332, + "vertices": 5 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08777861028389, + 36.34561931335514 + ], + [ + 120.08862574042625, + 36.34331294810648 + ], + [ + 120.08821327333251, + 36.34286046715994 + ], + [ + 120.08765646460553, + 36.342689640706645 + ], + [ + 120.0909967473512, + 36.33424936274383 + ], + [ + 120.0876288088052, + 36.33337685065439 + ] + ] + }, + "properties": { + "type": "route", + "length": 1395.0245282032868, + "vertices": 6 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.10061708806204, + 36.34658193184503 + ], + [ + 120.10046775343444, + 36.346621498025804 + ], + [ + 120.100345028411, + 36.34689574562376 + ], + [ + 120.0996169003548, + 36.34875044527766 + ], + [ + 120.09957375376368, + 36.34884511679346 + ], + [ + 120.09941563825011, + 36.348928428041056 + ], + [ + 120.09930665564038, + 36.34891631668237 + ], + [ + 120.09824470940256, + 36.34865285555329 + ], + [ + 120.09648338276469, + 36.34819447557155 + ], + [ + 120.09496129071057, + 36.34780722194575 + ], + [ + 120.09348049308275, + 36.34743063941993 + ], + [ + 120.09182417289371, + 36.34700167203093 + ], + [ + 120.09003546974988, + 36.346540689236086 + ], + [ + 120.08833119913437, + 36.34611074883166 + ], + [ + 120.0876902631157, + 36.34592631574825 + ], + [ + 120.0876025614143, + 36.345846071985456 + ], + [ + 120.08757028231565, + 36.34574797039514 + ], + [ + 120.08759693372711, + 36.34563752191453 + ], + [ + 120.08795905847049, + 36.34474418745215 + ], + [ + 120.08841824142142, + 36.343576862831824 + ], + [ + 120.08841010811419, + 36.34348961831527 + ], + [ + 120.08835346714383, + 36.3434243236533 + ], + [ + 120.08818382499243, + 36.34336427205331 + ], + [ + 120.0879234713404, + 36.343310635204126 + ], + [ + 120.08756746353059, + 36.34321841255484 + ], + [ + 120.08740659065869, + 36.34317213656247 + ], + [ + 120.08660127511878, + 36.34515640120599 + ], + [ + 120.08605620206576, + 36.346504220277914 + ], + [ + 120.08591252702715, + 36.346579751940624 + ], + [ + 120.0856606715914, + 36.347280665513 + ], + [ + 120.08511570608684, + 36.348678887332035 + ], + [ + 120.08413756177342, + 36.351142691618776 + ], + [ + 120.0830728148407, + 36.35385363205192 + ], + [ + 120.08226159657946, + 36.35585940255423 + ] + ] + }, + "properties": { + "type": "route", + "length": 2704.0212596829656, + "vertices": 34 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08589944495536, + 36.34656142422162 + ], + [ + 120.08524099201816, + 36.34637641133991 + ], + [ + 120.08515318179616, + 36.34625260418839 + ], + [ + 120.08514824225558, + 36.346159890352354 + ], + [ + 120.08609525339409, + 36.34378251151815 + ], + [ + 120.08629684716432, + 36.34372405304932 + ], + [ + 120.08708843338485, + 36.343948366649755 + ] + ] + }, + "properties": { + "type": "route", + "length": 381.4236542325433, + "vertices": 7 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08868595318773, + 36.34606704563805 + ], + [ + 120.08776069386725, + 36.34574760955963 + ] + ] + }, + "properties": { + "type": "route", + "length": 74.8156721998905, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09954412374914, + 36.34869292269233 + ], + [ + 120.09933781593107, + 36.34879902340965 + ], + [ + 120.08875511791787, + 36.346058374301045 + ] + ] + }, + "properties": { + "type": "route", + "length": 844.5324174954981, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08742443978433, + 36.34315957242981 + ], + [ + 120.08919536184197, + 36.33857987615082 + ], + [ + 120.09087754127198, + 36.334314071425126 + ], + [ + 120.09075670543523, + 36.33425870785614 + ], + [ + 120.09057825561159, + 36.3341836069926 + ], + [ + 120.09027722245752, + 36.33412047768223 + ], + [ + 120.08873903069241, + 36.333724291680845 + ], + [ + 120.08725971778536, + 36.33334103543807 + ] + ] + }, + "properties": { + "type": "route", + "length": 1136.8939937761836, + "vertices": 8 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.0872484725758, + 36.33333351980478 + ], + [ + 120.08721659175642, + 36.33332065796784 + ], + [ + 120.08733129875682, + 36.33302363007461 + ] + ] + }, + "properties": { + "type": "route", + "length": 31.261626899731933, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08722515608667, + 36.33332057586008 + ], + [ + 120.0865032475753, + 36.33514464499107 + ], + [ + 120.0856280821977, + 36.33738277495251 + ] + ] + }, + "properties": { + "type": "route", + "length": 391.920406139604, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09966854920403, + 36.37446069920993 + ], + [ + 120.09849597799621, + 36.37418378205329 + ], + [ + 120.09818348216899, + 36.37381044220159 + ], + [ + 120.10457149352335, + 36.35791708797076 + ] + ] + }, + "properties": { + "type": "route", + "length": 1668.279441739451, + "vertices": 4 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09346981074984, + 36.36533105398572 + ], + [ + 120.09339454547242, + 36.36512888107102 + ], + [ + 120.09199894786845, + 36.36391118000241 + ], + [ + 120.09112782291554, + 36.36308045845624 + ], + [ + 120.09144860063954, + 36.362341433154626 + ], + [ + 120.09162993982957, + 36.36223995723443 + ], + [ + 120.09308003669052, + 36.361964627094764 + ], + [ + 120.09520521407936, + 36.361624298840304 + ], + [ + 120.09588440201063, + 36.36154895888838 + ], + [ + 120.09656480476451, + 36.35982977616304 + ], + [ + 120.09644492443934, + 36.360061346160165 + ], + [ + 120.09548459933552, + 36.35981270398036 + ], + [ + 120.09527305563621, + 36.359883527234295 + ], + [ + 120.09486417582957, + 36.36098794459317 + ] + ] + }, + "properties": { + "type": "route", + "length": 1070.2424892599522, + "vertices": 14 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09484001049739, + 36.36165533667965 + ], + [ + 120.0948912679406, + 36.36138316347045 + ], + [ + 120.0949297207375, + 36.36110767493869 + ], + [ + 120.09485086395438, + 36.36095024414157 + ], + [ + 120.09303558942874, + 36.361256628897884 + ], + [ + 120.09289980678223, + 36.36156400558854 + ], + [ + 120.09299501113082, + 36.36196544639187 + ] + ] + }, + "properties": { + "type": "route", + "length": 271.8394147513192, + "vertices": 7 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09428625575757, + 36.3656223683475 + ], + [ + 120.09589720641459, + 36.361552274074334 + ] + ] + }, + "properties": { + "type": "route", + "length": 392.8058998016557, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09461267551909, + 36.36469069860419 + ], + [ + 120.09440369593963, + 36.364648008896346 + ], + [ + 120.0940764282587, + 36.3643691711042 + ], + [ + 120.09470567603067, + 36.362636738755654 + ], + [ + 120.09522711732589, + 36.36253197436174 + ], + [ + 120.09546630868125, + 36.36260532132732 + ] + ] + }, + "properties": { + "type": "route", + "length": 276.2872408388605, + "vertices": 6 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09154657909106, + 36.37501689277013 + ], + [ + 120.09357703868652, + 36.369819455808646 + ], + [ + 120.0936693916783, + 36.36955894958308 + ], + [ + 120.09365908002451, + 36.36942985116358 + ], + [ + 120.09353167335208, + 36.369342681453915 + ], + [ + 120.0931735368105, + 36.36923189604347 + ], + [ + 120.0930637465676, + 36.369198955059325 + ], + [ + 120.09296754560715, + 36.36906116470353 + ], + [ + 120.0929969471349, + 36.36888816444726 + ], + [ + 120.0941368505999, + 36.36602258191677 + ], + [ + 120.09427344390011, + 36.36559287134368 + ], + [ + 120.09388656142157, + 36.365470125893616 + ], + [ + 120.09363944787337, + 36.36536099106821 + ], + [ + 120.09340022273011, + 36.36533065888983 + ], + [ + 120.0932738074196, + 36.36542435561471 + ], + [ + 120.09289539698621, + 36.36553408154041 + ] + ] + }, + "properties": { + "type": "route", + "length": 1047.869968695379, + "vertices": 16 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.0944783899722, + 36.3600075293529 + ], + [ + 120.0952996608588, + 36.35986966549112 + ] + ] + }, + "properties": { + "type": "route", + "length": 62.35972566209423, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09527910223338, + 36.359837380552996 + ], + [ + 120.09533598002608, + 36.35960944643901 + ], + [ + 120.09612212650737, + 36.35981299354144 + ] + ] + }, + "properties": { + "type": "route", + "length": 82.74304073307042, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.096212837022, + 36.3598364796818 + ], + [ + 120.09655391829702, + 36.35981694024058 + ], + [ + 120.09948272103922, + 36.352163071420605 + ] + ] + }, + "properties": { + "type": "route", + "length": 761.9126307305593, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.10080829093131, + 36.3464945351681 + ], + [ + 120.10043029333524, + 36.346370079170505 + ], + [ + 120.09959301564085, + 36.348652409781636 + ] + ] + }, + "properties": { + "type": "route", + "length": 249.20859046116502, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09461302537272, + 36.34866959726008 + ], + [ + 120.09496506258267, + 36.34785187951812 + ] + ] + }, + "properties": { + "type": "route", + "length": 79.6001974952838, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.10047094334482, + 36.349668784264594 + ], + [ + 120.09486349029181, + 36.34820530811956 + ] + ] + }, + "properties": { + "type": "route", + "length": 438.162698811968, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.09968433301103, + 36.35208818298911 + ], + [ + 120.09649269386098, + 36.360189492522046 + ] + ] + }, + "properties": { + "type": "route", + "length": 781.5857758168117, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.1084017575797, + 36.34524344946434 + ], + [ + 120.10818829938454, + 36.344869168781266 + ], + [ + 120.10944020204653, + 36.341870026768405 + ], + [ + 120.10803914695866, + 36.34150735195723 + ], + [ + 120.10725579706572, + 36.34340483839853 + ] + ] + }, + "properties": { + "type": "route", + "length": 622.2382170950949, + "vertices": 5 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.10598708179874, + 36.34328909030322 + ], + [ + 120.10491392582779, + 36.34301126765254 + ], + [ + 120.1046360887632, + 36.34363057297565 + ] + ] + }, + "properties": { + "type": "route", + "length": 144.37124535477292, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.10446915140714, + 36.34372028437895 + ], + [ + 120.104291482044, + 36.34375404603695 + ], + [ + 120.10282006913413, + 36.343319923998436 + ], + [ + 120.10175273033995, + 36.34610099109137 + ], + [ + 120.10110643772384, + 36.34590707285294 + ], + [ + 120.10082737281708, + 36.34644630399199 + ] + ] + }, + "properties": { + "type": "route", + "length": 502.7726389137765, + "vertices": 6 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.1046299334416, + 36.35785245412331 + ], + [ + 120.10590483452803, + 36.354380675219055 + ], + [ + 120.10705446138579, + 36.35380091090599 + ], + [ + 120.11013200019897, + 36.34577106394202 + ], + [ + 120.10835286840677, + 36.34528396496079 + ] + ] + }, + "properties": { + "type": "route", + "length": 1346.1629422985443, + "vertices": 5 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.0996317040665, + 36.35200552836603 + ], + [ + 120.10034705617034, + 36.350269463473275 + ], + [ + 120.10100085534613, + 36.35045023879539 + ], + [ + 120.10128261195482, + 36.35038513046339 + ], + [ + 120.10220641419947, + 36.34797824778102 + ], + [ + 120.10210528375424, + 36.34780250560728 + ], + [ + 120.10131424506908, + 36.34760920781633 + ], + [ + 120.10296201809032, + 36.34348001702287 + ], + [ + 120.10457446574516, + 36.343897475621695 + ] + ] + }, + "properties": { + "type": "route", + "length": 1077.152315209597, + "vertices": 9 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.10037234347335, + 36.35024149628963 + ], + [ + 120.10026657133096, + 36.35004154163596 + ], + [ + 120.10045391402322, + 36.34967587969143 + ], + [ + 120.10131837369028, + 36.34759877232304 + ] + ] + }, + "properties": { + "type": "route", + "length": 257.85726477519586, + "vertices": 4 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.10156786533415, + 36.34686031233486 + ], + [ + 120.10062565385557, + 36.34658184843099 + ] + ] + }, + "properties": { + "type": "route", + "length": 74.60065192052686, + "vertices": 2 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08536685756032, + 36.33435947367016 + ], + [ + 120.0849328490506, + 36.3344597204537 + ], + [ + 120.08324470911208, + 36.33407548407589 + ], + [ + 120.07995738392427, + 36.34213065765486 + ], + [ + 120.0804960279807, + 36.34309446383787 + ], + [ + 120.07362650157614, + 36.36085690993681 + ] + ] + }, + "properties": { + "type": "route", + "length": 2752.0332564018036, + "vertices": 6 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08561568098223, + 36.34854484462884 + ], + [ + 120.08532542651335, + 36.348604470387286 + ], + [ + 120.08240268026812, + 36.35607114887323 + ] + ] + }, + "properties": { + "type": "route", + "length": 742.2333271457335, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.0762815502121, + 36.3710792318983 + ], + [ + 120.076059427581, + 36.37098269533194 + ], + [ + 120.0756218348242, + 36.37088037851289 + ], + [ + 120.07547520100854, + 36.37069877261705 + ], + [ + 120.07760727388532, + 36.36538489943473 + ], + [ + 120.07786946422677, + 36.36530920718269 + ], + [ + 120.07834816295271, + 36.365411123979456 + ], + [ + 120.07859351253397, + 36.36530897219525 + ], + [ + 120.08225672600086, + 36.35585132626768 + ] + ] + }, + "properties": { + "type": "route", + "length": 1575.0077426746834, + "vertices": 9 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.0822418290994, + 36.35605644286631 + ], + [ + 120.08242678751157, + 36.356347028516716 + ], + [ + 120.08341363966312, + 36.35654874127707 + ] + ] + }, + "properties": { + "type": "route", + "length": 105.72468266719702, + "vertices": 3 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.08209552623437, + 36.35636193239104 + ], + [ + 120.0830414092656, + 36.356629059161484 + ], + [ + 120.08318455252996, + 36.35685394294988 + ], + [ + 120.08277941540528, + 36.35784267518146 + ], + [ + 120.08285665515287, + 36.358061535062156 + ], + [ + 120.08439596791624, + 36.359244623330085 + ], + [ + 120.0853160013667, + 36.35999109928532 + ], + [ + 120.08554635980552, + 36.360271708409584 + ], + [ + 120.08591048258872, + 36.36069743406884 + ], + [ + 120.08605802593735, + 36.361221724513854 + ], + [ + 120.08601933099384, + 36.3613884560381 + ], + [ + 120.08585376022205, + 36.36159965803264 + ], + [ + 120.08557224141904, + 36.36175873503844 + ], + [ + 120.08514254999201, + 36.361912574139275 + ], + [ + 120.08291487719745, + 36.362329819293315 + ], + [ + 120.08091567783082, + 36.3626184094076 + ], + [ + 120.08075696883891, + 36.363019190728835 + ], + [ + 120.0809209257146, + 36.3632605144509 + ], + [ + 120.08117759570642, + 36.36337119198838 + ], + [ + 120.0827437099262, + 36.363003555432854 + ], + [ + 120.08289334092987, + 36.36310859714997 + ], + [ + 120.08337308307458, + 36.36300086874228 + ], + [ + 120.08412738870126, + 36.36282064049403 + ], + [ + 120.08533463129045, + 36.362669343707786 + ], + [ + 120.08601355527266, + 36.36267947763753 + ], + [ + 120.0863485288711, + 36.36279937605806 + ], + [ + 120.08655808925704, + 36.36306354646299 + ], + [ + 120.08670027899227, + 36.363221891343784 + ] + ] + }, + "properties": { + "type": "route", + "length": 1549.5830810044822, + "vertices": 28 + } + }, + { + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 120.0838549056216, + 36.35720231320198 + ], + [ + 120.08345355559337, + 36.35653211821028 + ] + ] + }, + "properties": { + "type": "route", + "length": 68.4521211261467, + "vertices": 2 + } + } + ] +} \ No newline at end of file diff --git a/airport/roadTest.json.gz b/airport/roadTest.json.gz new file mode 100644 index 0000000..347b7e5 Binary files /dev/null and b/airport/roadTest.json.gz differ diff --git a/airport/机场.png b/airport/机场.png new file mode 100644 index 0000000..8e15063 Binary files /dev/null and b/airport/机场.png differ diff --git a/src/components/map/controls/OpenLayersZoomControl.vue b/src/components/map/controls/OpenLayersZoomControl.vue index 9648987..5d1ae22 100644 --- a/src/components/map/controls/OpenLayersZoomControl.vue +++ b/src/components/map/controls/OpenLayersZoomControl.vue @@ -254,7 +254,12 @@ async function handleRouteModifyConfirm(payload) { flightNo: bindId, routeType: payload.routeType, routeStatus: res.data.routeStatus || 'ACTIVE', - routeGeometry: res.data.routeGeometry + routeGeometry: + res.data.geoPath || + res.data.featureLayer || + res.data.featureCollection || + res.data.geojson || + res.data.routeGeometry }; if (props.vehicleMovementControl && typeof props.vehicleMovementControl.handleAircraftRouteUpdate === 'function') { diff --git a/src/components/map/controls/VehicleMovementControlRefactored.vue b/src/components/map/controls/VehicleMovementControlRefactored.vue index 22703e5..437e4e8 100644 --- a/src/components/map/controls/VehicleMovementControlRefactored.vue +++ b/src/components/map/controls/VehicleMovementControlRefactored.vue @@ -55,6 +55,7 @@ import Feature from 'ol/Feature'; import Point from 'ol/geom/Point'; import { LineString } from 'ol/geom'; import { transform } from 'ol/proj'; +import GeoJSON from 'ol/format/GeoJSON'; import proj4 from 'proj4'; import { register } from 'ol/proj/proj4.js'; import { get as getProj } from 'ol/proj'; @@ -238,9 +239,80 @@ const alertMessage = ref(''); const alertType = ref(''); let alertTimer = null; -// 违规状态计时器 +// 违规/冲突状态计时器 const violationStatusTimers = ref({}); +function clearStatusTimer(key) { + const timers = violationStatusTimers.value || {}; + const t = timers[key]; + if (t) { + clearTimeout(t); + delete timers[key]; + violationStatusTimers.value = timers; + } +} + +function setStatusTimer(key, fn, ms) { + clearStatusTimer(key); + const timers = violationStatusTimers.value || {}; + timers[key] = setTimeout(fn, ms); + violationStatusTimers.value = timers; +} + +function clearConflictStatus(vehicleId) { + const v = vehicles.value?.[vehicleId]; + if (!v) return; + + v.warning = false; + v.alarm = false; + + if (v.position && labelSystem.value) { + labelSystem.value.removeVehicleLabel(vehicleId); + updateVehicleLabelIfAllowed(vehicleId, v.position, v.speed > 0.1 ? v.speed : 0); + } + + if (v.feature && styleManager.value) { + setVehicleStyleRespectVisibility(vehicleId, styleManager.value.getVehicleStyle(vehicleId, v.speed, v.heading)); + } +} + +function markConflictStatus(vehicleId, level, message, ttlMs) { + const v = vehicles.value?.[vehicleId]; + if (!v) return; + + const now = Date.now(); + v.lastConflictAt = now; + v.lastConflictLevel = level; + + if (level === 'alarm') { + v.alarm = true; + v.warning = false; + } else if (!v.alarm) { + v.warning = true; + } + + if (v.position) { + updateVehicleLabelIfAllowed(vehicleId, v.position, v.speed, { + description: message, + isWarning: level === 'warning', + isAlarm: level === 'alarm' + }); + } + + const timerKey = `conflict:${vehicleId}`; + setStatusTimer( + timerKey, + () => { + const latest = vehicles.value?.[vehicleId]; + if (!latest) return; + if (latest.lastConflictAt !== now) return; + clearConflictStatus(vehicleId); + clearStatusTimer(timerKey); + }, + Number(ttlMs) > 0 ? Number(ttlMs) : 10000 + ); +} + // 告警列表管理 const alarmList = ref([]); // 存储所有告警信息 const maxAlarmCount = 100; // 最大告警数量,防止列表过长 @@ -777,6 +849,11 @@ function handleWsMessage(message) { handlePositionUpdate(data.payload); break; + case 'collision_warning': + console.log(`碰撞预警: ${data.payload?.message || data.payload?.object1?.objectName || ''}`); + handlePathConflictAlert(data.payload); + break; + case 'path_conflict_alert': // 处理冲突告警和预警 console.log(`冲突告警/预警: ${data.payload?.object1?.objectName || data.payload?.messageType}`); @@ -1084,6 +1161,12 @@ function handleAircraftRouteUpdate(payload) { } const { flightNo, routeType, routeStatus, routeGeometry } = payload; + + const geoJsonObject = parseGeoJsonLike(routeGeometry); + if (geoJsonObject) { + updateAircraftRouteFromGeoJson(flightNo, geoJsonObject, routeType, routeStatus); + return; + } // 解析LINESTRING格式的routeGeometry const coordinates = parseLineStringGeometry(routeGeometry); @@ -1096,6 +1179,126 @@ function handleAircraftRouteUpdate(payload) { updateAircraftRoute(flightNo, coordinates, routeType, routeStatus); } +function parseGeoJsonLike(value) { + if (!value) return null + if (typeof value === 'object') { + const t = String(value?.type || '') + if (t === 'Feature' || t === 'FeatureCollection' || t === 'GeometryCollection') return value + return null + } + if (typeof value !== 'string') return null + const s = value.trim() + if (!s || (s[0] !== '{' && s[0] !== '[')) return null + try { + const obj = JSON.parse(s) + const t = String(obj?.type || '') + if (t === 'Feature' || t === 'FeatureCollection' || t === 'GeometryCollection') return obj + return null + } catch (e) { + return null + } +} + +function removeAircraftRouteFeatures(flightNo) { + if (!aircraftRouteSource) return + const all = aircraftRouteSource.getFeatures() + all.forEach((f) => { + const id = String(f?.getId?.() || '') + const fFlight = f?.get?.('flightNo') + if (fFlight === flightNo || id === flightNo || (id && id.startsWith(`${flightNo}-`))) { + aircraftRouteSource.removeFeature(f) + } + }) +} + +function updateAircraftRouteFromGeoJson(flightNo, geoJsonObject, routeType, routeStatus) { + if (!aircraftRouteSource || !props.map) return + + if (aircraftRouteTimers[flightNo]) { + clearTimeout(aircraftRouteTimers[flightNo]) + delete aircraftRouteTimers[flightNo] + } + + removeAircraftRouteFeatures(flightNo) + + const viewProj = props.map.getView().getProjection() + const geojson = new GeoJSON() + const rawFeatures = geojson.readFeatures(geoJsonObject, { + dataProjection: viewProj, + featureProjection: viewProj + }) + + let dataProj = viewProj + const firstLine = rawFeatures.find((f) => f?.getGeometry?.()?.getType?.() === 'LineString') + const firstCoords = firstLine?.getGeometry?.()?.getCoordinates?.() + const firstCoord = Array.isArray(firstCoords) && firstCoords.length ? firstCoords[0] : null + if (Array.isArray(firstCoord) && firstCoord.length === 2) { + const x = Number(firstCoord[0]) + const y = Number(firstCoord[1]) + if (Number.isFinite(x) && Number.isFinite(y)) { + const looksLikeLngLat = Math.abs(x) <= 180 && Math.abs(y) <= 90 + dataProj = looksLikeLngLat ? 'EPSG:4326' : 'EPSG:4528' + } + } + + const features = dataProj === viewProj + ? rawFeatures + : geojson.readFeatures(geoJsonObject, { + dataProjection: dataProj, + featureProjection: viewProj + }) + + let firstLineCoords = null + features.forEach((f, idx) => { + const existingId = f.getId() + if (existingId === undefined || existingId === null || String(existingId).trim() === '') { + f.setId(`${flightNo}-geo-${idx}`) + } else { + f.setId(`${flightNo}-geo-${existingId}`) + } + f.set('flightNo', flightNo) + if (routeType) f.set('routeType', routeType) + if (routeStatus) f.set('routeStatus', routeStatus) + if (f.getGeometry()?.getType?.() === 'LineString' && !firstLineCoords) { + firstLineCoords = f.getGeometry().getCoordinates() + f.setStyle(getRouteStyle(routeType, routeStatus)) + } + aircraftRouteSource.addFeature(f) + }) + + if (firstLineCoords && firstLineCoords.length) { + aircraftRoutes.value[flightNo] = { + flightNo, + routeType, + routeStatus, + coordinates: firstLineCoords, + feature: null, + lastUpdateTime: Date.now() + } + aircraftRouteProgress[flightNo] = { maxIndexSeen: 0, endHitCount: 0, lastIndex: 0 } + } + + if (vehicles.value[flightNo]) { + const currentVehicle = vehicles.value[flightNo] + const isAircraftVehicle = currentVehicle.isAircraft || currentVehicle.type?.toUpperCase() === 'AIRCRAFT' + if (isAircraftVehicle) { + vehicles.value[flightNo] = { ...currentVehicle, hasAircraftRoute: true } + const v = vehicles.value[flightNo] + if (v.feature) { + if (styleManager.value) { + setVehicleStyleRespectVisibility(flightNo, styleManager.value.getVehicleStyle(flightNo, v.speed, v.heading)) + } else { + setVehicleStyleRespectVisibility(flightNo, getDefaultVehicleStyle(v)) + } + } + } + } + + aircraftRouteTimers[flightNo] = setTimeout(() => { + removeAircraftRoute(flightNo) + }, 300000) +} + // 解析LINESTRING格式的字符串,提取坐标点 function parseLineStringGeometry(lineString) { // 移除LINESTRING前缀和括号 @@ -1424,6 +1627,8 @@ function removeAircraftRoute(flightNo) { delete aircraftRouteTimers[flightNo]; console.log(`已清除航班 ${flightNo} 的路线定时器`); } + + removeAircraftRouteFeatures(flightNo) // 移除路线Feature const feature = aircraftRouteSource.getFeatureById(flightNo); @@ -1510,21 +1715,9 @@ function handlePathConflictAlert(payload) { rawData: payload }); - // 在地图上标记该车辆的预警状态 - if (vehicles.value[vehicleId]) { - vehicles.value[vehicleId].warning = true; - vehicles.value[vehicleId].alarm = false; - vehicles.value[vehicleId].critical = false; - vehicles.value[vehicleId].info = false; - - // 如果车辆已有位置信息,更新标签显示 - if (vehicles.value[vehicleId].position) { - updateVehicleLabelIfAllowed(vehicleId, vehicles.value[vehicleId].position, vehicles.value[vehicleId].speed, { - description: message, - isWarning: true - }); - } - } + // 冲突预警默认10秒无新消息自动清除 + markConflictStatus(vehicleId, 'warning', message, 10000); + markConflictStatus(otherVehicleId, 'warning', message, 10000); } else if (isAlert) { console.log('处理冲突告警:', vehicleId, otherVehicleId); const alertMessage = `⚠️ 告警:${message}`; @@ -1541,33 +1734,9 @@ function handlePathConflictAlert(payload) { rawData: payload }); - // 在地图上标记该车辆的告警状态 - if (vehicles.value[vehicleId]) { - vehicles.value[vehicleId].alarm = true; - vehicles.value[vehicleId].warning = false; - vehicles.value[vehicleId].critical = false; - vehicles.value[vehicleId].info = false; - - // 更新车辆图标为告警图标 - if (vehicles.value[vehicleId].feature && styleManager.value) { - setVehicleStyleRespectVisibility( - vehicleId, - styleManager.value.getVehicleStyle( - vehicleId, - vehicles.value[vehicleId].speed, - vehicles.value[vehicleId].heading - ) - ); - } - - // 更新标签显示 - if (vehicles.value[vehicleId].position && labelSystem.value) { - updateVehicleLabelIfAllowed(vehicleId, vehicles.value[vehicleId].position, vehicles.value[vehicleId].speed, { - description: message, - isAlarm: true - }); - } - } + // 冲突告警默认15秒无新消息自动清除 + markConflictStatus(vehicleId, 'alarm', message, 15000); + markConflictStatus(otherVehicleId, 'alarm', message, 15000); } else { console.log(`未知的冲突消息类型: ${payload.messageType || payload.alertType}`); } @@ -2045,6 +2214,14 @@ function cleanup() { delete aircraftRouteTimers[flightNo]; }); console.log('已清理所有飞机路线定时器'); + + // 清理所有冲突/违规状态定时器 + const statusTimers = violationStatusTimers.value || {}; + Object.keys(statusTimers).forEach((key) => { + clearTimeout(statusTimers[key]); + delete statusTimers[key]; + }); + violationStatusTimers.value = {}; // 移除图层 if (vehicleLayer && props.map) { @@ -2389,7 +2566,7 @@ defineExpose({ [40508513.641064, 4024186.813497], [40508714.127776, 4024250.934516], [40508853.166318, 4024293.929307], - [40508966.275693, 4024330.441807] + [40509022.478135, 4024346.688892] ] }, { diff --git a/src/components/map/controls/VehicleRunningEditDialog.vue b/src/components/map/controls/VehicleRunningEditDialog.vue index 71f4e7e..1a0e32c 100644 --- a/src/components/map/controls/VehicleRunningEditDialog.vue +++ b/src/components/map/controls/VehicleRunningEditDialog.vue @@ -333,8 +333,6 @@ async function handleConfirm() { if (!r?.id) return vehicleDisplayStore.setVehicleTypeOverride(r.id, r.typeSelected || normalizeTypeForSelection(r.objectType)) vehicleDisplayStore.setVehicleRouteAssignment(r.id, r.routeName) - const t = String(r.typeSelected || r.objectType || '').toUpperCase() - if (t === 'AIRCRAFT' || t === 'AIRCRAFT_IN' || t === 'AIRCRAFT_OUT' || t === 'HANGKONG') return vehicleDisplayStore.setVehicleEnabled(r.id, r.enabled === true) }) diff --git a/报文调试.pdf b/报文调试.pdf new file mode 100644 index 0000000..1a9dbe8 Binary files /dev/null and b/报文调试.pdf differ